Add packaging/libsqlfs.changes file
[platform/core/base/libsqlfs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="sqlfs.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 #  include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 #  include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 #  include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKG_CONFIG ac_pt_PKG_CONFIG DEPS_CFLAGS DEPS_LIBS LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
948 ac_env_PKG_CONFIG_value=$PKG_CONFIG
949 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
950 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
951 ac_env_DEPS_CFLAGS_set=${DEPS_CFLAGS+set}
952 ac_env_DEPS_CFLAGS_value=$DEPS_CFLAGS
953 ac_cv_env_DEPS_CFLAGS_set=${DEPS_CFLAGS+set}
954 ac_cv_env_DEPS_CFLAGS_value=$DEPS_CFLAGS
955 ac_env_DEPS_LIBS_set=${DEPS_LIBS+set}
956 ac_env_DEPS_LIBS_value=$DEPS_LIBS
957 ac_cv_env_DEPS_LIBS_set=${DEPS_LIBS+set}
958 ac_cv_env_DEPS_LIBS_value=$DEPS_LIBS
959
960 #
961 # Report the --help message.
962 #
963 if test "$ac_init_help" = "long"; then
964   # Omit some internal or obsolete options to make the list less imposing.
965   # This message is too long to be a string in the A/UX 3.1 sh.
966   cat <<_ACEOF
967 \`configure' configures this package to adapt to many kinds of systems.
968
969 Usage: $0 [OPTION]... [VAR=VALUE]...
970
971 To assign environment variables (e.g., CC, CFLAGS...), specify them as
972 VAR=VALUE.  See below for descriptions of some of the useful variables.
973
974 Defaults for the options are specified in brackets.
975
976 Configuration:
977   -h, --help              display this help and exit
978       --help=short        display options specific to this package
979       --help=recursive    display the short help of all the included packages
980   -V, --version           display version information and exit
981   -q, --quiet, --silent   do not print \`checking...' messages
982       --cache-file=FILE   cache test results in FILE [disabled]
983   -C, --config-cache      alias for \`--cache-file=config.cache'
984   -n, --no-create         do not create output files
985       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
986
987 _ACEOF
988
989   cat <<_ACEOF
990 Installation directories:
991   --prefix=PREFIX         install architecture-independent files in PREFIX
992                           [$ac_default_prefix]
993   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
994                           [PREFIX]
995
996 By default, \`make install' will install all the files in
997 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
998 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
999 for instance \`--prefix=\$HOME'.
1000
1001 For better control, use the options below.
1002
1003 Fine tuning of the installation directories:
1004   --bindir=DIR           user executables [EPREFIX/bin]
1005   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1006   --libexecdir=DIR       program executables [EPREFIX/libexec]
1007   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1008   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1009   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1010   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1011   --libdir=DIR           object code libraries [EPREFIX/lib]
1012   --includedir=DIR       C header files [PREFIX/include]
1013   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1014   --infodir=DIR          info documentation [PREFIX/info]
1015   --mandir=DIR           man documentation [PREFIX/man]
1016 _ACEOF
1017
1018   cat <<\_ACEOF
1019
1020 Program names:
1021   --program-prefix=PREFIX            prepend PREFIX to installed program names
1022   --program-suffix=SUFFIX            append SUFFIX to installed program names
1023   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1024
1025 System types:
1026   --build=BUILD     configure for building on BUILD [guessed]
1027   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1028   --target=TARGET   configure for building compilers for TARGET [HOST]
1029 _ACEOF
1030 fi
1031
1032 if test -n "$ac_init_help"; then
1033
1034   cat <<\_ACEOF
1035
1036 Optional Features:
1037   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1038   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1039   --disable-dependency-tracking  speeds up one-time build
1040   --enable-dependency-tracking   do not reject slow dependency extractors
1041   --enable-shared[=PKGS]
1042                           build shared libraries [default=yes]
1043   --enable-static[=PKGS]
1044                           build static libraries [default=yes]
1045   --enable-fast-install[=PKGS]
1046                           optimize for fast installation [default=yes]
1047   --disable-libtool-lock  avoid locking (might break parallel builds)
1048   --disable-largefile     omit support for large files
1049
1050 Optional Packages:
1051   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1052   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1053   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1054   --with-pic              try to use only PIC/non-PIC objects [default=use
1055                           both]
1056   --with-tags[=TAGS]
1057                           include additional configurations [automatic]
1058
1059 Some influential environment variables:
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1063               nonstandard directory <lib dir>
1064   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065               headers in a nonstandard directory <include dir>
1066   CPP         C preprocessor
1067   CXX         C++ compiler command
1068   CXXFLAGS    C++ compiler flags
1069   CXXCPP      C++ preprocessor
1070   F77         Fortran 77 compiler command
1071   FFLAGS      Fortran 77 compiler flags
1072   PKG_CONFIG  path to pkg-config utility
1073   DEPS_CFLAGS C compiler flags for DEPS, overriding pkg-config
1074   DEPS_LIBS   linker flags for DEPS, overriding pkg-config
1075
1076 Use these variables to override the choices made by `configure' or to help
1077 it to find libraries and programs with nonstandard names/locations.
1078
1079 _ACEOF
1080 fi
1081
1082 if test "$ac_init_help" = "recursive"; then
1083   # If there are subdirs, report their specific --help.
1084   ac_popdir=`pwd`
1085   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1086     test -d $ac_dir || continue
1087     ac_builddir=.
1088
1089 if test "$ac_dir" != .; then
1090   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1091   # A "../" for each directory in $ac_dir_suffix.
1092   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1093 else
1094   ac_dir_suffix= ac_top_builddir=
1095 fi
1096
1097 case $srcdir in
1098   .)  # No --srcdir option.  We are building in place.
1099     ac_srcdir=.
1100     if test -z "$ac_top_builddir"; then
1101        ac_top_srcdir=.
1102     else
1103        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1104     fi ;;
1105   [\\/]* | ?:[\\/]* )  # Absolute path.
1106     ac_srcdir=$srcdir$ac_dir_suffix;
1107     ac_top_srcdir=$srcdir ;;
1108   *) # Relative path.
1109     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1110     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1111 esac
1112
1113 # Do not use `cd foo && pwd` to compute absolute paths, because
1114 # the directories may not exist.
1115 case `pwd` in
1116 .) ac_abs_builddir="$ac_dir";;
1117 *)
1118   case "$ac_dir" in
1119   .) ac_abs_builddir=`pwd`;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1121   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1126 *)
1127   case ${ac_top_builddir}. in
1128   .) ac_abs_top_builddir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1130   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_srcdir=$ac_srcdir;;
1135 *)
1136   case $ac_srcdir in
1137   .) ac_abs_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1139   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1140   esac;;
1141 esac
1142 case $ac_abs_builddir in
1143 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1144 *)
1145   case $ac_top_srcdir in
1146   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1147   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1148   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1149   esac;;
1150 esac
1151
1152     cd $ac_dir
1153     # Check for guested configure; otherwise get Cygnus style configure.
1154     if test -f $ac_srcdir/configure.gnu; then
1155       echo
1156       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1157     elif test -f $ac_srcdir/configure; then
1158       echo
1159       $SHELL $ac_srcdir/configure  --help=recursive
1160     elif test -f $ac_srcdir/configure.ac ||
1161            test -f $ac_srcdir/configure.in; then
1162       echo
1163       $ac_configure --help
1164     else
1165       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1166     fi
1167     cd $ac_popdir
1168   done
1169 fi
1170
1171 test -n "$ac_init_help" && exit 0
1172 if $ac_init_version; then
1173   cat <<\_ACEOF
1174
1175 Copyright (C) 2003 Free Software Foundation, Inc.
1176 This configure script is free software; the Free Software Foundation
1177 gives unlimited permission to copy, distribute and modify it.
1178 _ACEOF
1179   exit 0
1180 fi
1181 exec 5>config.log
1182 cat >&5 <<_ACEOF
1183 This file contains any messages produced by compilers while
1184 running configure, to aid debugging if configure makes a mistake.
1185
1186 It was created by $as_me, which was
1187 generated by GNU Autoconf 2.59.  Invocation command line was
1188
1189   $ $0 $@
1190
1191 _ACEOF
1192 {
1193 cat <<_ASUNAME
1194 ## --------- ##
1195 ## Platform. ##
1196 ## --------- ##
1197
1198 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1199 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1200 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1201 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1202 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1203
1204 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1205 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1206
1207 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1208 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1209 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1210 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1211 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1212 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1213 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1214
1215 _ASUNAME
1216
1217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1218 for as_dir in $PATH
1219 do
1220   IFS=$as_save_IFS
1221   test -z "$as_dir" && as_dir=.
1222   echo "PATH: $as_dir"
1223 done
1224
1225 } >&5
1226
1227 cat >&5 <<_ACEOF
1228
1229
1230 ## ----------- ##
1231 ## Core tests. ##
1232 ## ----------- ##
1233
1234 _ACEOF
1235
1236
1237 # Keep a trace of the command line.
1238 # Strip out --no-create and --no-recursion so they do not pile up.
1239 # Strip out --silent because we don't want to record it for future runs.
1240 # Also quote any args containing shell meta-characters.
1241 # Make two passes to allow for proper duplicate-argument suppression.
1242 ac_configure_args=
1243 ac_configure_args0=
1244 ac_configure_args1=
1245 ac_sep=
1246 ac_must_keep_next=false
1247 for ac_pass in 1 2
1248 do
1249   for ac_arg
1250   do
1251     case $ac_arg in
1252     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1253     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1254     | -silent | --silent | --silen | --sile | --sil)
1255       continue ;;
1256     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1257       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1258     esac
1259     case $ac_pass in
1260     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1261     2)
1262       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1263       if test $ac_must_keep_next = true; then
1264         ac_must_keep_next=false # Got value, back to normal.
1265       else
1266         case $ac_arg in
1267           *=* | --config-cache | -C | -disable-* | --disable-* \
1268           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1269           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1270           | -with-* | --with-* | -without-* | --without-* | --x)
1271             case "$ac_configure_args0 " in
1272               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1273             esac
1274             ;;
1275           -* ) ac_must_keep_next=true ;;
1276         esac
1277       fi
1278       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1279       # Get rid of the leading space.
1280       ac_sep=" "
1281       ;;
1282     esac
1283   done
1284 done
1285 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1286 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1287
1288 # When interrupted or exit'd, cleanup temporary files, and complete
1289 # config.log.  We remove comments because anyway the quotes in there
1290 # would cause problems or look ugly.
1291 # WARNING: Be sure not to use single quotes in there, as some shells,
1292 # such as our DU 5.0 friend, will then `close' the trap.
1293 trap 'exit_status=$?
1294   # Save into config.log some information that might help in debugging.
1295   {
1296     echo
1297
1298     cat <<\_ASBOX
1299 ## ---------------- ##
1300 ## Cache variables. ##
1301 ## ---------------- ##
1302 _ASBOX
1303     echo
1304     # The following way of writing the cache mishandles newlines in values,
1305 {
1306   (set) 2>&1 |
1307     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1308     *ac_space=\ *)
1309       sed -n \
1310         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1311           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1312       ;;
1313     *)
1314       sed -n \
1315         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1316       ;;
1317     esac;
1318 }
1319     echo
1320
1321     cat <<\_ASBOX
1322 ## ----------------- ##
1323 ## Output variables. ##
1324 ## ----------------- ##
1325 _ASBOX
1326     echo
1327     for ac_var in $ac_subst_vars
1328     do
1329       eval ac_val=$`echo $ac_var`
1330       echo "$ac_var='"'"'$ac_val'"'"'"
1331     done | sort
1332     echo
1333
1334     if test -n "$ac_subst_files"; then
1335       cat <<\_ASBOX
1336 ## ------------- ##
1337 ## Output files. ##
1338 ## ------------- ##
1339 _ASBOX
1340       echo
1341       for ac_var in $ac_subst_files
1342       do
1343         eval ac_val=$`echo $ac_var`
1344         echo "$ac_var='"'"'$ac_val'"'"'"
1345       done | sort
1346       echo
1347     fi
1348
1349     if test -s confdefs.h; then
1350       cat <<\_ASBOX
1351 ## ----------- ##
1352 ## confdefs.h. ##
1353 ## ----------- ##
1354 _ASBOX
1355       echo
1356       sed "/^$/d" confdefs.h | sort
1357       echo
1358     fi
1359     test "$ac_signal" != 0 &&
1360       echo "$as_me: caught signal $ac_signal"
1361     echo "$as_me: exit $exit_status"
1362   } >&5
1363   rm -f core *.core &&
1364   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1365     exit $exit_status
1366      ' 0
1367 for ac_signal in 1 2 13 15; do
1368   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1369 done
1370 ac_signal=0
1371
1372 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1373 rm -rf conftest* confdefs.h
1374 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1375 echo >confdefs.h
1376
1377 # Predefined preprocessor variables.
1378
1379 cat >>confdefs.h <<_ACEOF
1380 #define PACKAGE_NAME "$PACKAGE_NAME"
1381 _ACEOF
1382
1383
1384 cat >>confdefs.h <<_ACEOF
1385 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1386 _ACEOF
1387
1388
1389 cat >>confdefs.h <<_ACEOF
1390 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1391 _ACEOF
1392
1393
1394 cat >>confdefs.h <<_ACEOF
1395 #define PACKAGE_STRING "$PACKAGE_STRING"
1396 _ACEOF
1397
1398
1399 cat >>confdefs.h <<_ACEOF
1400 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1401 _ACEOF
1402
1403
1404 # Let the site file select an alternate cache file if it wants to.
1405 # Prefer explicitly selected file to automatically selected ones.
1406 if test -z "$CONFIG_SITE"; then
1407   if test "x$prefix" != xNONE; then
1408     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1409   else
1410     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1411   fi
1412 fi
1413 for ac_site_file in $CONFIG_SITE; do
1414   if test -r "$ac_site_file"; then
1415     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1416 echo "$as_me: loading site script $ac_site_file" >&6;}
1417     sed 's/^/| /' "$ac_site_file" >&5
1418     . "$ac_site_file"
1419   fi
1420 done
1421
1422 if test -r "$cache_file"; then
1423   # Some versions of bash will fail to source /dev/null (special
1424   # files actually), so we avoid doing that.
1425   if test -f "$cache_file"; then
1426     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1427 echo "$as_me: loading cache $cache_file" >&6;}
1428     case $cache_file in
1429       [\\/]* | ?:[\\/]* ) . $cache_file;;
1430       *)                      . ./$cache_file;;
1431     esac
1432   fi
1433 else
1434   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1435 echo "$as_me: creating cache $cache_file" >&6;}
1436   >$cache_file
1437 fi
1438
1439 # Check that the precious variables saved in the cache have kept the same
1440 # value.
1441 ac_cache_corrupted=false
1442 for ac_var in `(set) 2>&1 |
1443                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1444   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1445   eval ac_new_set=\$ac_env_${ac_var}_set
1446   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1447   eval ac_new_val="\$ac_env_${ac_var}_value"
1448   case $ac_old_set,$ac_new_set in
1449     set,)
1450       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1451 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1452       ac_cache_corrupted=: ;;
1453     ,set)
1454       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1455 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1456       ac_cache_corrupted=: ;;
1457     ,);;
1458     *)
1459       if test "x$ac_old_val" != "x$ac_new_val"; then
1460         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1461 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1462         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1463 echo "$as_me:   former value:  $ac_old_val" >&2;}
1464         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1465 echo "$as_me:   current value: $ac_new_val" >&2;}
1466         ac_cache_corrupted=:
1467       fi;;
1468   esac
1469   # Pass precious variables to config.status.
1470   if test "$ac_new_set" = set; then
1471     case $ac_new_val in
1472     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1473       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1474     *) ac_arg=$ac_var=$ac_new_val ;;
1475     esac
1476     case " $ac_configure_args " in
1477       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1478       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1479     esac
1480   fi
1481 done
1482 if $ac_cache_corrupted; then
1483   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1484 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1485   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1486 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1487    { (exit 1); exit 1; }; }
1488 fi
1489
1490 ac_ext=c
1491 ac_cpp='$CPP $CPPFLAGS'
1492 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1493 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1494 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516 ac_aux_dir=
1517 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1518   if test -f $ac_dir/install-sh; then
1519     ac_aux_dir=$ac_dir
1520     ac_install_sh="$ac_aux_dir/install-sh -c"
1521     break
1522   elif test -f $ac_dir/install.sh; then
1523     ac_aux_dir=$ac_dir
1524     ac_install_sh="$ac_aux_dir/install.sh -c"
1525     break
1526   elif test -f $ac_dir/shtool; then
1527     ac_aux_dir=$ac_dir
1528     ac_install_sh="$ac_aux_dir/shtool install -c"
1529     break
1530   fi
1531 done
1532 if test -z "$ac_aux_dir"; then
1533   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1534 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1535    { (exit 1); exit 1; }; }
1536 fi
1537 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1538 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1539 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1540
1541 # Make sure we can run config.sub.
1542 $ac_config_sub sun4 >/dev/null 2>&1 ||
1543   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1544 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1545    { (exit 1); exit 1; }; }
1546
1547 echo "$as_me:$LINENO: checking build system type" >&5
1548 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1549 if test "${ac_cv_build+set}" = set; then
1550   echo $ECHO_N "(cached) $ECHO_C" >&6
1551 else
1552   ac_cv_build_alias=$build_alias
1553 test -z "$ac_cv_build_alias" &&
1554   ac_cv_build_alias=`$ac_config_guess`
1555 test -z "$ac_cv_build_alias" &&
1556   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1557 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1558    { (exit 1); exit 1; }; }
1559 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1560   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1561 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1562    { (exit 1); exit 1; }; }
1563
1564 fi
1565 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1566 echo "${ECHO_T}$ac_cv_build" >&6
1567 build=$ac_cv_build
1568 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1569 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1570 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1571
1572
1573 echo "$as_me:$LINENO: checking host system type" >&5
1574 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1575 if test "${ac_cv_host+set}" = set; then
1576   echo $ECHO_N "(cached) $ECHO_C" >&6
1577 else
1578   ac_cv_host_alias=$host_alias
1579 test -z "$ac_cv_host_alias" &&
1580   ac_cv_host_alias=$ac_cv_build_alias
1581 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1582   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1583 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1584    { (exit 1); exit 1; }; }
1585
1586 fi
1587 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1588 echo "${ECHO_T}$ac_cv_host" >&6
1589 host=$ac_cv_host
1590 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1591 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1592 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1593
1594
1595 echo "$as_me:$LINENO: checking target system type" >&5
1596 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1597 if test "${ac_cv_target+set}" = set; then
1598   echo $ECHO_N "(cached) $ECHO_C" >&6
1599 else
1600   ac_cv_target_alias=$target_alias
1601 test "x$ac_cv_target_alias" = "x" &&
1602   ac_cv_target_alias=$ac_cv_host_alias
1603 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1604   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1605 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1606    { (exit 1); exit 1; }; }
1607
1608 fi
1609 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1610 echo "${ECHO_T}$ac_cv_target" >&6
1611 target=$ac_cv_target
1612 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1613 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1614 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1615
1616
1617 # The aliases save the names the user supplied, while $host etc.
1618 # will get canonicalized.
1619 test -n "$target_alias" &&
1620   test "$program_prefix$program_suffix$program_transform_name" = \
1621     NONENONEs,x,x, &&
1622   program_prefix=${target_alias}-
1623 ac_aux_dir=
1624 for ac_dir in . $srcdir/.; do
1625   if test -f $ac_dir/install-sh; then
1626     ac_aux_dir=$ac_dir
1627     ac_install_sh="$ac_aux_dir/install-sh -c"
1628     break
1629   elif test -f $ac_dir/install.sh; then
1630     ac_aux_dir=$ac_dir
1631     ac_install_sh="$ac_aux_dir/install.sh -c"
1632     break
1633   elif test -f $ac_dir/shtool; then
1634     ac_aux_dir=$ac_dir
1635     ac_install_sh="$ac_aux_dir/shtool install -c"
1636     break
1637   fi
1638 done
1639 if test -z "$ac_aux_dir"; then
1640   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5
1641 echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;}
1642    { (exit 1); exit 1; }; }
1643 fi
1644 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1645 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1646 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1647
1648
1649 am__api_version="1.9"
1650 # Find a good install program.  We prefer a C program (faster),
1651 # so one script is as good as another.  But avoid the broken or
1652 # incompatible versions:
1653 # SysV /etc/install, /usr/sbin/install
1654 # SunOS /usr/etc/install
1655 # IRIX /sbin/install
1656 # AIX /bin/install
1657 # AmigaOS /C/install, which installs bootblocks on floppy discs
1658 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1659 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1660 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1661 # OS/2's system install, which has a completely different semantic
1662 # ./install, which can be erroneously created by make from ./install.sh.
1663 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1664 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1665 if test -z "$INSTALL"; then
1666 if test "${ac_cv_path_install+set}" = set; then
1667   echo $ECHO_N "(cached) $ECHO_C" >&6
1668 else
1669   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1670 for as_dir in $PATH
1671 do
1672   IFS=$as_save_IFS
1673   test -z "$as_dir" && as_dir=.
1674   # Account for people who put trailing slashes in PATH elements.
1675 case $as_dir/ in
1676   ./ | .// | /cC/* | \
1677   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1678   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1679   /usr/ucb/* ) ;;
1680   *)
1681     # OSF1 and SCO ODT 3.0 have their own names for install.
1682     # Don't use installbsd from OSF since it installs stuff as root
1683     # by default.
1684     for ac_prog in ginstall scoinst install; do
1685       for ac_exec_ext in '' $ac_executable_extensions; do
1686         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1687           if test $ac_prog = install &&
1688             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1689             # AIX install.  It has an incompatible calling convention.
1690             :
1691           elif test $ac_prog = install &&
1692             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1693             # program-specific install script used by HP pwplus--don't use.
1694             :
1695           else
1696             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1697             break 3
1698           fi
1699         fi
1700       done
1701     done
1702     ;;
1703 esac
1704 done
1705
1706
1707 fi
1708   if test "${ac_cv_path_install+set}" = set; then
1709     INSTALL=$ac_cv_path_install
1710   else
1711     # As a last resort, use the slow shell script.  We don't cache a
1712     # path for INSTALL within a source directory, because that will
1713     # break other packages using the cache if that directory is
1714     # removed, or if the path is relative.
1715     INSTALL=$ac_install_sh
1716   fi
1717 fi
1718 echo "$as_me:$LINENO: result: $INSTALL" >&5
1719 echo "${ECHO_T}$INSTALL" >&6
1720
1721 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1722 # It thinks the first close brace ends the variable substitution.
1723 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1724
1725 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1726
1727 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1728
1729 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1730 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1731 # Just in case
1732 sleep 1
1733 echo timestamp > conftest.file
1734 # Do `set' in a subshell so we don't clobber the current shell's
1735 # arguments.  Must try -L first in case configure is actually a
1736 # symlink; some systems play weird games with the mod time of symlinks
1737 # (eg FreeBSD returns the mod time of the symlink's containing
1738 # directory).
1739 if (
1740    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1741    if test "$*" = "X"; then
1742       # -L didn't work.
1743       set X `ls -t $srcdir/configure conftest.file`
1744    fi
1745    rm -f conftest.file
1746    if test "$*" != "X $srcdir/configure conftest.file" \
1747       && test "$*" != "X conftest.file $srcdir/configure"; then
1748
1749       # If neither matched, then we have a broken ls.  This can happen
1750       # if, for instance, CONFIG_SHELL is bash and it inherits a
1751       # broken ls alias from the environment.  This has actually
1752       # happened.  Such a system could not be considered "sane".
1753       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1754 alias in your environment" >&5
1755 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1756 alias in your environment" >&2;}
1757    { (exit 1); exit 1; }; }
1758    fi
1759
1760    test "$2" = conftest.file
1761    )
1762 then
1763    # Ok.
1764    :
1765 else
1766    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1767 Check your system clock" >&5
1768 echo "$as_me: error: newly created file is older than distributed files!
1769 Check your system clock" >&2;}
1770    { (exit 1); exit 1; }; }
1771 fi
1772 echo "$as_me:$LINENO: result: yes" >&5
1773 echo "${ECHO_T}yes" >&6
1774 test "$program_prefix" != NONE &&
1775   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1776 # Use a double $ so make ignores it.
1777 test "$program_suffix" != NONE &&
1778   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1779 # Double any \ or $.  echo might interpret backslashes.
1780 # By default was `s,x,x', remove it if useless.
1781 cat <<\_ACEOF >conftest.sed
1782 s/[\\$]/&&/g;s/;s,x,x,$//
1783 _ACEOF
1784 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1785 rm conftest.sed
1786
1787 # expand $ac_aux_dir to an absolute path
1788 am_aux_dir=`cd $ac_aux_dir && pwd`
1789
1790 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1791 # Use eval to expand $SHELL
1792 if eval "$MISSING --run true"; then
1793   am_missing_run="$MISSING --run "
1794 else
1795   am_missing_run=
1796   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1797 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1798 fi
1799
1800 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1801   # We used to keeping the `.' as first argument, in order to
1802   # allow $(mkdir_p) to be used without argument.  As in
1803   #   $(mkdir_p) $(somedir)
1804   # where $(somedir) is conditionally defined.  However this is wrong
1805   # for two reasons:
1806   #  1. if the package is installed by a user who cannot write `.'
1807   #     make install will fail,
1808   #  2. the above comment should most certainly read
1809   #     $(mkdir_p) $(DESTDIR)$(somedir)
1810   #     so it does not work when $(somedir) is undefined and
1811   #     $(DESTDIR) is not.
1812   #  To support the latter case, we have to write
1813   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1814   #  so the `.' trick is pointless.
1815   mkdir_p='mkdir -p --'
1816 else
1817   # On NextStep and OpenStep, the `mkdir' command does not
1818   # recognize any option.  It will interpret all options as
1819   # directories to create, and then abort because `.' already
1820   # exists.
1821   for d in ./-p ./--version;
1822   do
1823     test -d $d && rmdir $d
1824   done
1825   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1826   if test -f "$ac_aux_dir/mkinstalldirs"; then
1827     mkdir_p='$(mkinstalldirs)'
1828   else
1829     mkdir_p='$(install_sh) -d'
1830   fi
1831 fi
1832
1833 for ac_prog in gawk mawk nawk awk
1834 do
1835   # Extract the first word of "$ac_prog", so it can be a program name with args.
1836 set dummy $ac_prog; ac_word=$2
1837 echo "$as_me:$LINENO: checking for $ac_word" >&5
1838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1839 if test "${ac_cv_prog_AWK+set}" = set; then
1840   echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842   if test -n "$AWK"; then
1843   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1844 else
1845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1846 for as_dir in $PATH
1847 do
1848   IFS=$as_save_IFS
1849   test -z "$as_dir" && as_dir=.
1850   for ac_exec_ext in '' $ac_executable_extensions; do
1851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1852     ac_cv_prog_AWK="$ac_prog"
1853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1854     break 2
1855   fi
1856 done
1857 done
1858
1859 fi
1860 fi
1861 AWK=$ac_cv_prog_AWK
1862 if test -n "$AWK"; then
1863   echo "$as_me:$LINENO: result: $AWK" >&5
1864 echo "${ECHO_T}$AWK" >&6
1865 else
1866   echo "$as_me:$LINENO: result: no" >&5
1867 echo "${ECHO_T}no" >&6
1868 fi
1869
1870   test -n "$AWK" && break
1871 done
1872
1873 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1874 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1875 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1876 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1877   echo $ECHO_N "(cached) $ECHO_C" >&6
1878 else
1879   cat >conftest.make <<\_ACEOF
1880 all:
1881         @echo 'ac_maketemp="$(MAKE)"'
1882 _ACEOF
1883 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1884 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1885 if test -n "$ac_maketemp"; then
1886   eval ac_cv_prog_make_${ac_make}_set=yes
1887 else
1888   eval ac_cv_prog_make_${ac_make}_set=no
1889 fi
1890 rm -f conftest.make
1891 fi
1892 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1893   echo "$as_me:$LINENO: result: yes" >&5
1894 echo "${ECHO_T}yes" >&6
1895   SET_MAKE=
1896 else
1897   echo "$as_me:$LINENO: result: no" >&5
1898 echo "${ECHO_T}no" >&6
1899   SET_MAKE="MAKE=${MAKE-make}"
1900 fi
1901
1902 rm -rf .tst 2>/dev/null
1903 mkdir .tst 2>/dev/null
1904 if test -d .tst; then
1905   am__leading_dot=.
1906 else
1907   am__leading_dot=_
1908 fi
1909 rmdir .tst 2>/dev/null
1910
1911 # test to see if srcdir already configured
1912 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1913    test -f $srcdir/config.status; then
1914   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1915 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1916    { (exit 1); exit 1; }; }
1917 fi
1918
1919 # test whether we have cygpath
1920 if test -z "$CYGPATH_W"; then
1921   if (cygpath --version) >/dev/null 2>/dev/null; then
1922     CYGPATH_W='cygpath -w'
1923   else
1924     CYGPATH_W=echo
1925   fi
1926 fi
1927
1928
1929 # Define the identity of the package.
1930  PACKAGE=libsqlfs
1931  VERSION=1.1
1932
1933
1934 cat >>confdefs.h <<_ACEOF
1935 #define PACKAGE "$PACKAGE"
1936 _ACEOF
1937
1938
1939 cat >>confdefs.h <<_ACEOF
1940 #define VERSION "$VERSION"
1941 _ACEOF
1942
1943 # Some tools Automake needs.
1944
1945 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1946
1947
1948 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1949
1950
1951 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1952
1953
1954 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1955
1956
1957 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1958
1959 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1960
1961 # Installed binaries are usually stripped using `strip' when the user
1962 # run `make install-strip'.  However `strip' might not be the right
1963 # tool to use in cross-compilation environments, therefore Automake
1964 # will honor the `STRIP' environment variable to overrule this program.
1965 if test "$cross_compiling" != no; then
1966   if test -n "$ac_tool_prefix"; then
1967   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1968 set dummy ${ac_tool_prefix}strip; ac_word=$2
1969 echo "$as_me:$LINENO: checking for $ac_word" >&5
1970 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1971 if test "${ac_cv_prog_STRIP+set}" = set; then
1972   echo $ECHO_N "(cached) $ECHO_C" >&6
1973 else
1974   if test -n "$STRIP"; then
1975   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1976 else
1977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1978 for as_dir in $PATH
1979 do
1980   IFS=$as_save_IFS
1981   test -z "$as_dir" && as_dir=.
1982   for ac_exec_ext in '' $ac_executable_extensions; do
1983   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1984     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1985     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1986     break 2
1987   fi
1988 done
1989 done
1990
1991 fi
1992 fi
1993 STRIP=$ac_cv_prog_STRIP
1994 if test -n "$STRIP"; then
1995   echo "$as_me:$LINENO: result: $STRIP" >&5
1996 echo "${ECHO_T}$STRIP" >&6
1997 else
1998   echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002 fi
2003 if test -z "$ac_cv_prog_STRIP"; then
2004   ac_ct_STRIP=$STRIP
2005   # Extract the first word of "strip", so it can be a program name with args.
2006 set dummy strip; ac_word=$2
2007 echo "$as_me:$LINENO: checking for $ac_word" >&5
2008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2009 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2010   echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012   if test -n "$ac_ct_STRIP"; then
2013   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2014 else
2015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2016 for as_dir in $PATH
2017 do
2018   IFS=$as_save_IFS
2019   test -z "$as_dir" && as_dir=.
2020   for ac_exec_ext in '' $ac_executable_extensions; do
2021   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2022     ac_cv_prog_ac_ct_STRIP="strip"
2023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2024     break 2
2025   fi
2026 done
2027 done
2028
2029   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2030 fi
2031 fi
2032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2033 if test -n "$ac_ct_STRIP"; then
2034   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2035 echo "${ECHO_T}$ac_ct_STRIP" >&6
2036 else
2037   echo "$as_me:$LINENO: result: no" >&5
2038 echo "${ECHO_T}no" >&6
2039 fi
2040
2041   STRIP=$ac_ct_STRIP
2042 else
2043   STRIP="$ac_cv_prog_STRIP"
2044 fi
2045
2046 fi
2047 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2048
2049 # We need awk for the "check" target.  The system "awk" is bad on
2050 # some platforms.
2051 # Always define AMTAR for backward compatibility.
2052
2053 AMTAR=${AMTAR-"${am_missing_run}tar"}
2054
2055 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2056
2057
2058
2059
2060
2061
2062 ac_ext=c
2063 ac_cpp='$CPP $CPPFLAGS'
2064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2067 if test -n "$ac_tool_prefix"; then
2068   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2070 echo "$as_me:$LINENO: checking for $ac_word" >&5
2071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2072 if test "${ac_cv_prog_CC+set}" = set; then
2073   echo $ECHO_N "(cached) $ECHO_C" >&6
2074 else
2075   if test -n "$CC"; then
2076   ac_cv_prog_CC="$CC" # Let the user override the test.
2077 else
2078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2079 for as_dir in $PATH
2080 do
2081   IFS=$as_save_IFS
2082   test -z "$as_dir" && as_dir=.
2083   for ac_exec_ext in '' $ac_executable_extensions; do
2084   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2085     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2087     break 2
2088   fi
2089 done
2090 done
2091
2092 fi
2093 fi
2094 CC=$ac_cv_prog_CC
2095 if test -n "$CC"; then
2096   echo "$as_me:$LINENO: result: $CC" >&5
2097 echo "${ECHO_T}$CC" >&6
2098 else
2099   echo "$as_me:$LINENO: result: no" >&5
2100 echo "${ECHO_T}no" >&6
2101 fi
2102
2103 fi
2104 if test -z "$ac_cv_prog_CC"; then
2105   ac_ct_CC=$CC
2106   # Extract the first word of "gcc", so it can be a program name with args.
2107 set dummy gcc; ac_word=$2
2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2111   echo $ECHO_N "(cached) $ECHO_C" >&6
2112 else
2113   if test -n "$ac_ct_CC"; then
2114   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2115 else
2116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2117 for as_dir in $PATH
2118 do
2119   IFS=$as_save_IFS
2120   test -z "$as_dir" && as_dir=.
2121   for ac_exec_ext in '' $ac_executable_extensions; do
2122   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2123     ac_cv_prog_ac_ct_CC="gcc"
2124     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2125     break 2
2126   fi
2127 done
2128 done
2129
2130 fi
2131 fi
2132 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2133 if test -n "$ac_ct_CC"; then
2134   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2135 echo "${ECHO_T}$ac_ct_CC" >&6
2136 else
2137   echo "$as_me:$LINENO: result: no" >&5
2138 echo "${ECHO_T}no" >&6
2139 fi
2140
2141   CC=$ac_ct_CC
2142 else
2143   CC="$ac_cv_prog_CC"
2144 fi
2145
2146 if test -z "$CC"; then
2147   if test -n "$ac_tool_prefix"; then
2148   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2149 set dummy ${ac_tool_prefix}cc; ac_word=$2
2150 echo "$as_me:$LINENO: checking for $ac_word" >&5
2151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2152 if test "${ac_cv_prog_CC+set}" = set; then
2153   echo $ECHO_N "(cached) $ECHO_C" >&6
2154 else
2155   if test -n "$CC"; then
2156   ac_cv_prog_CC="$CC" # Let the user override the test.
2157 else
2158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2159 for as_dir in $PATH
2160 do
2161   IFS=$as_save_IFS
2162   test -z "$as_dir" && as_dir=.
2163   for ac_exec_ext in '' $ac_executable_extensions; do
2164   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2165     ac_cv_prog_CC="${ac_tool_prefix}cc"
2166     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2167     break 2
2168   fi
2169 done
2170 done
2171
2172 fi
2173 fi
2174 CC=$ac_cv_prog_CC
2175 if test -n "$CC"; then
2176   echo "$as_me:$LINENO: result: $CC" >&5
2177 echo "${ECHO_T}$CC" >&6
2178 else
2179   echo "$as_me:$LINENO: result: no" >&5
2180 echo "${ECHO_T}no" >&6
2181 fi
2182
2183 fi
2184 if test -z "$ac_cv_prog_CC"; then
2185   ac_ct_CC=$CC
2186   # Extract the first word of "cc", so it can be a program name with args.
2187 set dummy cc; ac_word=$2
2188 echo "$as_me:$LINENO: checking for $ac_word" >&5
2189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2190 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2191   echo $ECHO_N "(cached) $ECHO_C" >&6
2192 else
2193   if test -n "$ac_ct_CC"; then
2194   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2195 else
2196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2197 for as_dir in $PATH
2198 do
2199   IFS=$as_save_IFS
2200   test -z "$as_dir" && as_dir=.
2201   for ac_exec_ext in '' $ac_executable_extensions; do
2202   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2203     ac_cv_prog_ac_ct_CC="cc"
2204     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2205     break 2
2206   fi
2207 done
2208 done
2209
2210 fi
2211 fi
2212 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213 if test -n "$ac_ct_CC"; then
2214   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2215 echo "${ECHO_T}$ac_ct_CC" >&6
2216 else
2217   echo "$as_me:$LINENO: result: no" >&5
2218 echo "${ECHO_T}no" >&6
2219 fi
2220
2221   CC=$ac_ct_CC
2222 else
2223   CC="$ac_cv_prog_CC"
2224 fi
2225
2226 fi
2227 if test -z "$CC"; then
2228   # Extract the first word of "cc", so it can be a program name with args.
2229 set dummy cc; ac_word=$2
2230 echo "$as_me:$LINENO: checking for $ac_word" >&5
2231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2232 if test "${ac_cv_prog_CC+set}" = set; then
2233   echo $ECHO_N "(cached) $ECHO_C" >&6
2234 else
2235   if test -n "$CC"; then
2236   ac_cv_prog_CC="$CC" # Let the user override the test.
2237 else
2238   ac_prog_rejected=no
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2240 for as_dir in $PATH
2241 do
2242   IFS=$as_save_IFS
2243   test -z "$as_dir" && as_dir=.
2244   for ac_exec_ext in '' $ac_executable_extensions; do
2245   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2247        ac_prog_rejected=yes
2248        continue
2249      fi
2250     ac_cv_prog_CC="cc"
2251     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2252     break 2
2253   fi
2254 done
2255 done
2256
2257 if test $ac_prog_rejected = yes; then
2258   # We found a bogon in the path, so make sure we never use it.
2259   set dummy $ac_cv_prog_CC
2260   shift
2261   if test $# != 0; then
2262     # We chose a different compiler from the bogus one.
2263     # However, it has the same basename, so the bogon will be chosen
2264     # first if we set CC to just the basename; use the full file name.
2265     shift
2266     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2267   fi
2268 fi
2269 fi
2270 fi
2271 CC=$ac_cv_prog_CC
2272 if test -n "$CC"; then
2273   echo "$as_me:$LINENO: result: $CC" >&5
2274 echo "${ECHO_T}$CC" >&6
2275 else
2276   echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6
2278 fi
2279
2280 fi
2281 if test -z "$CC"; then
2282   if test -n "$ac_tool_prefix"; then
2283   for ac_prog in cl
2284   do
2285     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2286 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2287 echo "$as_me:$LINENO: checking for $ac_word" >&5
2288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2289 if test "${ac_cv_prog_CC+set}" = set; then
2290   echo $ECHO_N "(cached) $ECHO_C" >&6
2291 else
2292   if test -n "$CC"; then
2293   ac_cv_prog_CC="$CC" # Let the user override the test.
2294 else
2295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 for as_dir in $PATH
2297 do
2298   IFS=$as_save_IFS
2299   test -z "$as_dir" && as_dir=.
2300   for ac_exec_ext in '' $ac_executable_extensions; do
2301   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2302     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2303     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2304     break 2
2305   fi
2306 done
2307 done
2308
2309 fi
2310 fi
2311 CC=$ac_cv_prog_CC
2312 if test -n "$CC"; then
2313   echo "$as_me:$LINENO: result: $CC" >&5
2314 echo "${ECHO_T}$CC" >&6
2315 else
2316   echo "$as_me:$LINENO: result: no" >&5
2317 echo "${ECHO_T}no" >&6
2318 fi
2319
2320     test -n "$CC" && break
2321   done
2322 fi
2323 if test -z "$CC"; then
2324   ac_ct_CC=$CC
2325   for ac_prog in cl
2326 do
2327   # Extract the first word of "$ac_prog", so it can be a program name with args.
2328 set dummy $ac_prog; ac_word=$2
2329 echo "$as_me:$LINENO: checking for $ac_word" >&5
2330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2331 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2332   echo $ECHO_N "(cached) $ECHO_C" >&6
2333 else
2334   if test -n "$ac_ct_CC"; then
2335   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2336 else
2337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2338 for as_dir in $PATH
2339 do
2340   IFS=$as_save_IFS
2341   test -z "$as_dir" && as_dir=.
2342   for ac_exec_ext in '' $ac_executable_extensions; do
2343   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2344     ac_cv_prog_ac_ct_CC="$ac_prog"
2345     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2346     break 2
2347   fi
2348 done
2349 done
2350
2351 fi
2352 fi
2353 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2354 if test -n "$ac_ct_CC"; then
2355   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2356 echo "${ECHO_T}$ac_ct_CC" >&6
2357 else
2358   echo "$as_me:$LINENO: result: no" >&5
2359 echo "${ECHO_T}no" >&6
2360 fi
2361
2362   test -n "$ac_ct_CC" && break
2363 done
2364
2365   CC=$ac_ct_CC
2366 fi
2367
2368 fi
2369
2370
2371 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2372 See \`config.log' for more details." >&5
2373 echo "$as_me: error: no acceptable C compiler found in \$PATH
2374 See \`config.log' for more details." >&2;}
2375    { (exit 1); exit 1; }; }
2376
2377 # Provide some information about the compiler.
2378 echo "$as_me:$LINENO:" \
2379      "checking for C compiler version" >&5
2380 ac_compiler=`set X $ac_compile; echo $2`
2381 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2382   (eval $ac_compiler --version </dev/null >&5) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }
2386 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2387   (eval $ac_compiler -v </dev/null >&5) 2>&5
2388   ac_status=$?
2389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390   (exit $ac_status); }
2391 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2392   (eval $ac_compiler -V </dev/null >&5) 2>&5
2393   ac_status=$?
2394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2395   (exit $ac_status); }
2396
2397 cat >conftest.$ac_ext <<_ACEOF
2398 /* confdefs.h.  */
2399 _ACEOF
2400 cat confdefs.h >>conftest.$ac_ext
2401 cat >>conftest.$ac_ext <<_ACEOF
2402 /* end confdefs.h.  */
2403
2404 int
2405 main ()
2406 {
2407
2408   ;
2409   return 0;
2410 }
2411 _ACEOF
2412 ac_clean_files_save=$ac_clean_files
2413 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2414 # Try to create an executable without -o first, disregard a.out.
2415 # It will help us diagnose broken compilers, and finding out an intuition
2416 # of exeext.
2417 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2418 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2419 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2420 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2421   (eval $ac_link_default) 2>&5
2422   ac_status=$?
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); }; then
2425   # Find the output, starting from the most likely.  This scheme is
2426 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2427 # resort.
2428
2429 # Be careful to initialize this variable, since it used to be cached.
2430 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2431 ac_cv_exeext=
2432 # b.out is created by i960 compilers.
2433 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2434 do
2435   test -f "$ac_file" || continue
2436   case $ac_file in
2437     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2438         ;;
2439     conftest.$ac_ext )
2440         # This is the source file.
2441         ;;
2442     [ab].out )
2443         # We found the default executable, but exeext='' is most
2444         # certainly right.
2445         break;;
2446     *.* )
2447         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2448         # FIXME: I believe we export ac_cv_exeext for Libtool,
2449         # but it would be cool to find out if it's true.  Does anybody
2450         # maintain Libtool? --akim.
2451         export ac_cv_exeext
2452         break;;
2453     * )
2454         break;;
2455   esac
2456 done
2457 else
2458   echo "$as_me: failed program was:" >&5
2459 sed 's/^/| /' conftest.$ac_ext >&5
2460
2461 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2462 See \`config.log' for more details." >&5
2463 echo "$as_me: error: C compiler cannot create executables
2464 See \`config.log' for more details." >&2;}
2465    { (exit 77); exit 77; }; }
2466 fi
2467
2468 ac_exeext=$ac_cv_exeext
2469 echo "$as_me:$LINENO: result: $ac_file" >&5
2470 echo "${ECHO_T}$ac_file" >&6
2471
2472 # Check the compiler produces executables we can run.  If not, either
2473 # the compiler is broken, or we cross compile.
2474 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2475 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2476 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2477 # If not cross compiling, check that we can run a simple program.
2478 if test "$cross_compiling" != yes; then
2479   if { ac_try='./$ac_file'
2480   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2481   (eval $ac_try) 2>&5
2482   ac_status=$?
2483   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484   (exit $ac_status); }; }; then
2485     cross_compiling=no
2486   else
2487     if test "$cross_compiling" = maybe; then
2488         cross_compiling=yes
2489     else
2490         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2491 If you meant to cross compile, use \`--host'.
2492 See \`config.log' for more details." >&5
2493 echo "$as_me: error: cannot run C compiled programs.
2494 If you meant to cross compile, use \`--host'.
2495 See \`config.log' for more details." >&2;}
2496    { (exit 1); exit 1; }; }
2497     fi
2498   fi
2499 fi
2500 echo "$as_me:$LINENO: result: yes" >&5
2501 echo "${ECHO_T}yes" >&6
2502
2503 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2504 ac_clean_files=$ac_clean_files_save
2505 # Check the compiler produces executables we can run.  If not, either
2506 # the compiler is broken, or we cross compile.
2507 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2508 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2509 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2510 echo "${ECHO_T}$cross_compiling" >&6
2511
2512 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2513 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2514 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2515   (eval $ac_link) 2>&5
2516   ac_status=$?
2517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2518   (exit $ac_status); }; then
2519   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2520 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2521 # work properly (i.e., refer to `conftest.exe'), while it won't with
2522 # `rm'.
2523 for ac_file in conftest.exe conftest conftest.*; do
2524   test -f "$ac_file" || continue
2525   case $ac_file in
2526     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2527     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2528           export ac_cv_exeext
2529           break;;
2530     * ) break;;
2531   esac
2532 done
2533 else
2534   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2535 See \`config.log' for more details." >&5
2536 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2537 See \`config.log' for more details." >&2;}
2538    { (exit 1); exit 1; }; }
2539 fi
2540
2541 rm -f conftest$ac_cv_exeext
2542 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2543 echo "${ECHO_T}$ac_cv_exeext" >&6
2544
2545 rm -f conftest.$ac_ext
2546 EXEEXT=$ac_cv_exeext
2547 ac_exeext=$EXEEXT
2548 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2549 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2550 if test "${ac_cv_objext+set}" = set; then
2551   echo $ECHO_N "(cached) $ECHO_C" >&6
2552 else
2553   cat >conftest.$ac_ext <<_ACEOF
2554 /* confdefs.h.  */
2555 _ACEOF
2556 cat confdefs.h >>conftest.$ac_ext
2557 cat >>conftest.$ac_ext <<_ACEOF
2558 /* end confdefs.h.  */
2559
2560 int
2561 main ()
2562 {
2563
2564   ;
2565   return 0;
2566 }
2567 _ACEOF
2568 rm -f conftest.o conftest.obj
2569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2570   (eval $ac_compile) 2>&5
2571   ac_status=$?
2572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573   (exit $ac_status); }; then
2574   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2575   case $ac_file in
2576     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2577     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2578        break;;
2579   esac
2580 done
2581 else
2582   echo "$as_me: failed program was:" >&5
2583 sed 's/^/| /' conftest.$ac_ext >&5
2584
2585 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2586 See \`config.log' for more details." >&5
2587 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2588 See \`config.log' for more details." >&2;}
2589    { (exit 1); exit 1; }; }
2590 fi
2591
2592 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2593 fi
2594 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2595 echo "${ECHO_T}$ac_cv_objext" >&6
2596 OBJEXT=$ac_cv_objext
2597 ac_objext=$OBJEXT
2598 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2599 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2600 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2601   echo $ECHO_N "(cached) $ECHO_C" >&6
2602 else
2603   cat >conftest.$ac_ext <<_ACEOF
2604 /* confdefs.h.  */
2605 _ACEOF
2606 cat confdefs.h >>conftest.$ac_ext
2607 cat >>conftest.$ac_ext <<_ACEOF
2608 /* end confdefs.h.  */
2609
2610 int
2611 main ()
2612 {
2613 #ifndef __GNUC__
2614        choke me
2615 #endif
2616
2617   ;
2618   return 0;
2619 }
2620 _ACEOF
2621 rm -f conftest.$ac_objext
2622 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2623   (eval $ac_compile) 2>conftest.er1
2624   ac_status=$?
2625   grep -v '^ *+' conftest.er1 >conftest.err
2626   rm -f conftest.er1
2627   cat conftest.err >&5
2628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2629   (exit $ac_status); } &&
2630          { ac_try='test -z "$ac_c_werror_flag"
2631                          || test ! -s conftest.err'
2632   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2633   (eval $ac_try) 2>&5
2634   ac_status=$?
2635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2636   (exit $ac_status); }; } &&
2637          { ac_try='test -s conftest.$ac_objext'
2638   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2639   (eval $ac_try) 2>&5
2640   ac_status=$?
2641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2642   (exit $ac_status); }; }; then
2643   ac_compiler_gnu=yes
2644 else
2645   echo "$as_me: failed program was:" >&5
2646 sed 's/^/| /' conftest.$ac_ext >&5
2647
2648 ac_compiler_gnu=no
2649 fi
2650 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2651 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2652
2653 fi
2654 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2655 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2656 GCC=`test $ac_compiler_gnu = yes && echo yes`
2657 ac_test_CFLAGS=${CFLAGS+set}
2658 ac_save_CFLAGS=$CFLAGS
2659 CFLAGS="-g"
2660 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2661 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2662 if test "${ac_cv_prog_cc_g+set}" = set; then
2663   echo $ECHO_N "(cached) $ECHO_C" >&6
2664 else
2665   cat >conftest.$ac_ext <<_ACEOF
2666 /* confdefs.h.  */
2667 _ACEOF
2668 cat confdefs.h >>conftest.$ac_ext
2669 cat >>conftest.$ac_ext <<_ACEOF
2670 /* end confdefs.h.  */
2671
2672 int
2673 main ()
2674 {
2675
2676   ;
2677   return 0;
2678 }
2679 _ACEOF
2680 rm -f conftest.$ac_objext
2681 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2682   (eval $ac_compile) 2>conftest.er1
2683   ac_status=$?
2684   grep -v '^ *+' conftest.er1 >conftest.err
2685   rm -f conftest.er1
2686   cat conftest.err >&5
2687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2688   (exit $ac_status); } &&
2689          { ac_try='test -z "$ac_c_werror_flag"
2690                          || test ! -s conftest.err'
2691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2692   (eval $ac_try) 2>&5
2693   ac_status=$?
2694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695   (exit $ac_status); }; } &&
2696          { ac_try='test -s conftest.$ac_objext'
2697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2698   (eval $ac_try) 2>&5
2699   ac_status=$?
2700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2701   (exit $ac_status); }; }; then
2702   ac_cv_prog_cc_g=yes
2703 else
2704   echo "$as_me: failed program was:" >&5
2705 sed 's/^/| /' conftest.$ac_ext >&5
2706
2707 ac_cv_prog_cc_g=no
2708 fi
2709 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2710 fi
2711 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2712 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2713 if test "$ac_test_CFLAGS" = set; then
2714   CFLAGS=$ac_save_CFLAGS
2715 elif test $ac_cv_prog_cc_g = yes; then
2716   if test "$GCC" = yes; then
2717     CFLAGS="-g -O2"
2718   else
2719     CFLAGS="-g"
2720   fi
2721 else
2722   if test "$GCC" = yes; then
2723     CFLAGS="-O2"
2724   else
2725     CFLAGS=
2726   fi
2727 fi
2728 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2729 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2730 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2731   echo $ECHO_N "(cached) $ECHO_C" >&6
2732 else
2733   ac_cv_prog_cc_stdc=no
2734 ac_save_CC=$CC
2735 cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h.  */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h.  */
2741 #include <stdarg.h>
2742 #include <stdio.h>
2743 #include <sys/types.h>
2744 #include <sys/stat.h>
2745 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2746 struct buf { int x; };
2747 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2748 static char *e (p, i)
2749      char **p;
2750      int i;
2751 {
2752   return p[i];
2753 }
2754 static char *f (char * (*g) (char **, int), char **p, ...)
2755 {
2756   char *s;
2757   va_list v;
2758   va_start (v,p);
2759   s = g (p, va_arg (v,int));
2760   va_end (v);
2761   return s;
2762 }
2763
2764 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2765    function prototypes and stuff, but not '\xHH' hex character constants.
2766    These don't provoke an error unfortunately, instead are silently treated
2767    as 'x'.  The following induces an error, until -std1 is added to get
2768    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2769    array size at least.  It's necessary to write '\x00'==0 to get something
2770    that's true only with -std1.  */
2771 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2772
2773 int test (int i, double x);
2774 struct s1 {int (*f) (int a);};
2775 struct s2 {int (*f) (double a);};
2776 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2777 int argc;
2778 char **argv;
2779 int
2780 main ()
2781 {
2782 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2783   ;
2784   return 0;
2785 }
2786 _ACEOF
2787 # Don't try gcc -ansi; that turns off useful extensions and
2788 # breaks some systems' header files.
2789 # AIX                   -qlanglvl=ansi
2790 # Ultrix and OSF/1      -std1
2791 # HP-UX 10.20 and later -Ae
2792 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2793 # SVR4                  -Xc -D__EXTENSIONS__
2794 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2795 do
2796   CC="$ac_save_CC $ac_arg"
2797   rm -f conftest.$ac_objext
2798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2799   (eval $ac_compile) 2>conftest.er1
2800   ac_status=$?
2801   grep -v '^ *+' conftest.er1 >conftest.err
2802   rm -f conftest.er1
2803   cat conftest.err >&5
2804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2805   (exit $ac_status); } &&
2806          { ac_try='test -z "$ac_c_werror_flag"
2807                          || test ! -s conftest.err'
2808   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2809   (eval $ac_try) 2>&5
2810   ac_status=$?
2811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812   (exit $ac_status); }; } &&
2813          { ac_try='test -s conftest.$ac_objext'
2814   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2815   (eval $ac_try) 2>&5
2816   ac_status=$?
2817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818   (exit $ac_status); }; }; then
2819   ac_cv_prog_cc_stdc=$ac_arg
2820 break
2821 else
2822   echo "$as_me: failed program was:" >&5
2823 sed 's/^/| /' conftest.$ac_ext >&5
2824
2825 fi
2826 rm -f conftest.err conftest.$ac_objext
2827 done
2828 rm -f conftest.$ac_ext conftest.$ac_objext
2829 CC=$ac_save_CC
2830
2831 fi
2832
2833 case "x$ac_cv_prog_cc_stdc" in
2834   x|xno)
2835     echo "$as_me:$LINENO: result: none needed" >&5
2836 echo "${ECHO_T}none needed" >&6 ;;
2837   *)
2838     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2839 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2840     CC="$CC $ac_cv_prog_cc_stdc" ;;
2841 esac
2842
2843 # Some people use a C++ compiler to compile C.  Since we use `exit',
2844 # in C++ we need to declare it.  In case someone uses the same compiler
2845 # for both compiling C and C++ we need to have the C++ compiler decide
2846 # the declaration of exit, since it's the most demanding environment.
2847 cat >conftest.$ac_ext <<_ACEOF
2848 #ifndef __cplusplus
2849   choke me
2850 #endif
2851 _ACEOF
2852 rm -f conftest.$ac_objext
2853 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2854   (eval $ac_compile) 2>conftest.er1
2855   ac_status=$?
2856   grep -v '^ *+' conftest.er1 >conftest.err
2857   rm -f conftest.er1
2858   cat conftest.err >&5
2859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2860   (exit $ac_status); } &&
2861          { ac_try='test -z "$ac_c_werror_flag"
2862                          || test ! -s conftest.err'
2863   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2864   (eval $ac_try) 2>&5
2865   ac_status=$?
2866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2867   (exit $ac_status); }; } &&
2868          { ac_try='test -s conftest.$ac_objext'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; }; then
2874   for ac_declaration in \
2875    '' \
2876    'extern "C" void std::exit (int) throw (); using std::exit;' \
2877    'extern "C" void std::exit (int); using std::exit;' \
2878    'extern "C" void exit (int) throw ();' \
2879    'extern "C" void exit (int);' \
2880    'void exit (int);'
2881 do
2882   cat >conftest.$ac_ext <<_ACEOF
2883 /* confdefs.h.  */
2884 _ACEOF
2885 cat confdefs.h >>conftest.$ac_ext
2886 cat >>conftest.$ac_ext <<_ACEOF
2887 /* end confdefs.h.  */
2888 $ac_declaration
2889 #include <stdlib.h>
2890 int
2891 main ()
2892 {
2893 exit (42);
2894   ;
2895   return 0;
2896 }
2897 _ACEOF
2898 rm -f conftest.$ac_objext
2899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2900   (eval $ac_compile) 2>conftest.er1
2901   ac_status=$?
2902   grep -v '^ *+' conftest.er1 >conftest.err
2903   rm -f conftest.er1
2904   cat conftest.err >&5
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } &&
2907          { ac_try='test -z "$ac_c_werror_flag"
2908                          || test ! -s conftest.err'
2909   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2910   (eval $ac_try) 2>&5
2911   ac_status=$?
2912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2913   (exit $ac_status); }; } &&
2914          { ac_try='test -s conftest.$ac_objext'
2915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2916   (eval $ac_try) 2>&5
2917   ac_status=$?
2918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919   (exit $ac_status); }; }; then
2920   :
2921 else
2922   echo "$as_me: failed program was:" >&5
2923 sed 's/^/| /' conftest.$ac_ext >&5
2924
2925 continue
2926 fi
2927 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2928   cat >conftest.$ac_ext <<_ACEOF
2929 /* confdefs.h.  */
2930 _ACEOF
2931 cat confdefs.h >>conftest.$ac_ext
2932 cat >>conftest.$ac_ext <<_ACEOF
2933 /* end confdefs.h.  */
2934 $ac_declaration
2935 int
2936 main ()
2937 {
2938 exit (42);
2939   ;
2940   return 0;
2941 }
2942 _ACEOF
2943 rm -f conftest.$ac_objext
2944 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2945   (eval $ac_compile) 2>conftest.er1
2946   ac_status=$?
2947   grep -v '^ *+' conftest.er1 >conftest.err
2948   rm -f conftest.er1
2949   cat conftest.err >&5
2950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2951   (exit $ac_status); } &&
2952          { ac_try='test -z "$ac_c_werror_flag"
2953                          || test ! -s conftest.err'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; } &&
2959          { ac_try='test -s conftest.$ac_objext'
2960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2961   (eval $ac_try) 2>&5
2962   ac_status=$?
2963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964   (exit $ac_status); }; }; then
2965   break
2966 else
2967   echo "$as_me: failed program was:" >&5
2968 sed 's/^/| /' conftest.$ac_ext >&5
2969
2970 fi
2971 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2972 done
2973 rm -f conftest*
2974 if test -n "$ac_declaration"; then
2975   echo '#ifdef __cplusplus' >>confdefs.h
2976   echo $ac_declaration      >>confdefs.h
2977   echo '#endif'             >>confdefs.h
2978 fi
2979
2980 else
2981   echo "$as_me: failed program was:" >&5
2982 sed 's/^/| /' conftest.$ac_ext >&5
2983
2984 fi
2985 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2986 ac_ext=c
2987 ac_cpp='$CPP $CPPFLAGS'
2988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2991 DEPDIR="${am__leading_dot}deps"
2992
2993           ac_config_commands="$ac_config_commands depfiles"
2994
2995
2996 am_make=${MAKE-make}
2997 cat > confinc << 'END'
2998 am__doit:
2999         @echo done
3000 .PHONY: am__doit
3001 END
3002 # If we don't find an include directive, just comment out the code.
3003 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3004 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3005 am__include="#"
3006 am__quote=
3007 _am_result=none
3008 # First try GNU make style include.
3009 echo "include confinc" > confmf
3010 # We grep out `Entering directory' and `Leaving directory'
3011 # messages which can occur if `w' ends up in MAKEFLAGS.
3012 # In particular we don't look at `^make:' because GNU make might
3013 # be invoked under some other name (usually "gmake"), in which
3014 # case it prints its new name instead of `make'.
3015 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3016    am__include=include
3017    am__quote=
3018    _am_result=GNU
3019 fi
3020 # Now try BSD make style include.
3021 if test "$am__include" = "#"; then
3022    echo '.include "confinc"' > confmf
3023    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3024       am__include=.include
3025       am__quote="\""
3026       _am_result=BSD
3027    fi
3028 fi
3029
3030
3031 echo "$as_me:$LINENO: result: $_am_result" >&5
3032 echo "${ECHO_T}$_am_result" >&6
3033 rm -f confinc confmf
3034
3035 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3036 if test "${enable_dependency_tracking+set}" = set; then
3037   enableval="$enable_dependency_tracking"
3038
3039 fi;
3040 if test "x$enable_dependency_tracking" != xno; then
3041   am_depcomp="$ac_aux_dir/depcomp"
3042   AMDEPBACKSLASH='\'
3043 fi
3044
3045
3046 if test "x$enable_dependency_tracking" != xno; then
3047   AMDEP_TRUE=
3048   AMDEP_FALSE='#'
3049 else
3050   AMDEP_TRUE='#'
3051   AMDEP_FALSE=
3052 fi
3053
3054
3055
3056
3057 depcc="$CC"   am_compiler_list=
3058
3059 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3060 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3061 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3062   echo $ECHO_N "(cached) $ECHO_C" >&6
3063 else
3064   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3065   # We make a subdir and do the tests there.  Otherwise we can end up
3066   # making bogus files that we don't know about and never remove.  For
3067   # instance it was reported that on HP-UX the gcc test will end up
3068   # making a dummy file named `D' -- because `-MD' means `put the output
3069   # in D'.
3070   mkdir conftest.dir
3071   # Copy depcomp to subdir because otherwise we won't find it if we're
3072   # using a relative directory.
3073   cp "$am_depcomp" conftest.dir
3074   cd conftest.dir
3075   # We will build objects and dependencies in a subdirectory because
3076   # it helps to detect inapplicable dependency modes.  For instance
3077   # both Tru64's cc and ICC support -MD to output dependencies as a
3078   # side effect of compilation, but ICC will put the dependencies in
3079   # the current directory while Tru64 will put them in the object
3080   # directory.
3081   mkdir sub
3082
3083   am_cv_CC_dependencies_compiler_type=none
3084   if test "$am_compiler_list" = ""; then
3085      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3086   fi
3087   for depmode in $am_compiler_list; do
3088     # Setup a source with many dependencies, because some compilers
3089     # like to wrap large dependency lists on column 80 (with \), and
3090     # we should not choose a depcomp mode which is confused by this.
3091     #
3092     # We need to recreate these files for each test, as the compiler may
3093     # overwrite some of them when testing with obscure command lines.
3094     # This happens at least with the AIX C compiler.
3095     : > sub/conftest.c
3096     for i in 1 2 3 4 5 6; do
3097       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3098       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3099       # Solaris 8's {/usr,}/bin/sh.
3100       touch sub/conftst$i.h
3101     done
3102     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3103
3104     case $depmode in
3105     nosideeffect)
3106       # after this tag, mechanisms are not by side-effect, so they'll
3107       # only be used when explicitly requested
3108       if test "x$enable_dependency_tracking" = xyes; then
3109         continue
3110       else
3111         break
3112       fi
3113       ;;
3114     none) break ;;
3115     esac
3116     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3117     # mode.  It turns out that the SunPro C++ compiler does not properly
3118     # handle `-M -o', and we need to detect this.
3119     if depmode=$depmode \
3120        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3121        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3122        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3123          >/dev/null 2>conftest.err &&
3124        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3125        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3126        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3127       # icc doesn't choke on unknown options, it will just issue warnings
3128       # or remarks (even with -Werror).  So we grep stderr for any message
3129       # that says an option was ignored or not supported.
3130       # When given -MP, icc 7.0 and 7.1 complain thusly:
3131       #   icc: Command line warning: ignoring option '-M'; no argument required
3132       # The diagnosis changed in icc 8.0:
3133       #   icc: Command line remark: option '-MP' not supported
3134       if (grep 'ignoring option' conftest.err ||
3135           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3136         am_cv_CC_dependencies_compiler_type=$depmode
3137         break
3138       fi
3139     fi
3140   done
3141
3142   cd ..
3143   rm -rf conftest.dir
3144 else
3145   am_cv_CC_dependencies_compiler_type=none
3146 fi
3147
3148 fi
3149 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3150 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3151 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3152
3153
3154
3155 if
3156   test "x$enable_dependency_tracking" != xno \
3157   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3158   am__fastdepCC_TRUE=
3159   am__fastdepCC_FALSE='#'
3160 else
3161   am__fastdepCC_TRUE='#'
3162   am__fastdepCC_FALSE=
3163 fi
3164
3165
3166
3167 # Check whether --enable-shared or --disable-shared was given.
3168 if test "${enable_shared+set}" = set; then
3169   enableval="$enable_shared"
3170   p=${PACKAGE-default}
3171     case $enableval in
3172     yes) enable_shared=yes ;;
3173     no) enable_shared=no ;;
3174     *)
3175       enable_shared=no
3176       # Look at the argument we got.  We use all the common list separators.
3177       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3178       for pkg in $enableval; do
3179         IFS="$lt_save_ifs"
3180         if test "X$pkg" = "X$p"; then
3181           enable_shared=yes
3182         fi
3183       done
3184       IFS="$lt_save_ifs"
3185       ;;
3186     esac
3187 else
3188   enable_shared=yes
3189 fi;
3190
3191 # Check whether --enable-static or --disable-static was given.
3192 if test "${enable_static+set}" = set; then
3193   enableval="$enable_static"
3194   p=${PACKAGE-default}
3195     case $enableval in
3196     yes) enable_static=yes ;;
3197     no) enable_static=no ;;
3198     *)
3199      enable_static=no
3200       # Look at the argument we got.  We use all the common list separators.
3201       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3202       for pkg in $enableval; do
3203         IFS="$lt_save_ifs"
3204         if test "X$pkg" = "X$p"; then
3205           enable_static=yes
3206         fi
3207       done
3208       IFS="$lt_save_ifs"
3209       ;;
3210     esac
3211 else
3212   enable_static=yes
3213 fi;
3214
3215 # Check whether --enable-fast-install or --disable-fast-install was given.
3216 if test "${enable_fast_install+set}" = set; then
3217   enableval="$enable_fast_install"
3218   p=${PACKAGE-default}
3219     case $enableval in
3220     yes) enable_fast_install=yes ;;
3221     no) enable_fast_install=no ;;
3222     *)
3223       enable_fast_install=no
3224       # Look at the argument we got.  We use all the common list separators.
3225       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3226       for pkg in $enableval; do
3227         IFS="$lt_save_ifs"
3228         if test "X$pkg" = "X$p"; then
3229           enable_fast_install=yes
3230         fi
3231       done
3232       IFS="$lt_save_ifs"
3233       ;;
3234     esac
3235 else
3236   enable_fast_install=yes
3237 fi;
3238
3239 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3240 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3241 if test "${lt_cv_path_SED+set}" = set; then
3242   echo $ECHO_N "(cached) $ECHO_C" >&6
3243 else
3244   # Loop through the user's path and test for sed and gsed.
3245 # Then use that list of sed's as ones to test for truncation.
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249   IFS=$as_save_IFS
3250   test -z "$as_dir" && as_dir=.
3251   for lt_ac_prog in sed gsed; do
3252     for ac_exec_ext in '' $ac_executable_extensions; do
3253       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3254         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3255       fi
3256     done
3257   done
3258 done
3259 lt_ac_max=0
3260 lt_ac_count=0
3261 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3262 # along with /bin/sed that truncates output.
3263 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3264   test ! -f $lt_ac_sed && continue
3265   cat /dev/null > conftest.in
3266   lt_ac_count=0
3267   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3268   # Check for GNU sed and select it if it is found.
3269   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3270     lt_cv_path_SED=$lt_ac_sed
3271     break
3272   fi
3273   while true; do
3274     cat conftest.in conftest.in >conftest.tmp
3275     mv conftest.tmp conftest.in
3276     cp conftest.in conftest.nl
3277     echo >>conftest.nl
3278     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3279     cmp -s conftest.out conftest.nl || break
3280     # 10000 chars as input seems more than enough
3281     test $lt_ac_count -gt 10 && break
3282     lt_ac_count=`expr $lt_ac_count + 1`
3283     if test $lt_ac_count -gt $lt_ac_max; then
3284       lt_ac_max=$lt_ac_count
3285       lt_cv_path_SED=$lt_ac_sed
3286     fi
3287   done
3288 done
3289
3290 fi
3291
3292 SED=$lt_cv_path_SED
3293 echo "$as_me:$LINENO: result: $SED" >&5
3294 echo "${ECHO_T}$SED" >&6
3295
3296 echo "$as_me:$LINENO: checking for egrep" >&5
3297 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3298 if test "${ac_cv_prog_egrep+set}" = set; then
3299   echo $ECHO_N "(cached) $ECHO_C" >&6
3300 else
3301   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3302     then ac_cv_prog_egrep='grep -E'
3303     else ac_cv_prog_egrep='egrep'
3304     fi
3305 fi
3306 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3307 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3308  EGREP=$ac_cv_prog_egrep
3309
3310
3311
3312 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3313 if test "${with_gnu_ld+set}" = set; then
3314   withval="$with_gnu_ld"
3315   test "$withval" = no || with_gnu_ld=yes
3316 else
3317   with_gnu_ld=no
3318 fi;
3319 ac_prog=ld
3320 if test "$GCC" = yes; then
3321   # Check if gcc -print-prog-name=ld gives a path.
3322   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3323 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3324   case $host in
3325   *-*-mingw*)
3326     # gcc leaves a trailing carriage return which upsets mingw
3327     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3328   *)
3329     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3330   esac
3331   case $ac_prog in
3332     # Accept absolute paths.
3333     [\\/]* | ?:[\\/]*)
3334       re_direlt='/[^/][^/]*/\.\./'
3335       # Canonicalize the pathname of ld
3336       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3337       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3338         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3339       done
3340       test -z "$LD" && LD="$ac_prog"
3341       ;;
3342   "")
3343     # If it fails, then pretend we aren't using GCC.
3344     ac_prog=ld
3345     ;;
3346   *)
3347     # If it is relative, then search for the first ld in PATH.
3348     with_gnu_ld=unknown
3349     ;;
3350   esac
3351 elif test "$with_gnu_ld" = yes; then
3352   echo "$as_me:$LINENO: checking for GNU ld" >&5
3353 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3354 else
3355   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3356 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3357 fi
3358 if test "${lt_cv_path_LD+set}" = set; then
3359   echo $ECHO_N "(cached) $ECHO_C" >&6
3360 else
3361   if test -z "$LD"; then
3362   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3363   for ac_dir in $PATH; do
3364     IFS="$lt_save_ifs"
3365     test -z "$ac_dir" && ac_dir=.
3366     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3367       lt_cv_path_LD="$ac_dir/$ac_prog"
3368       # Check to see if the program is GNU ld.  I'd rather use --version,
3369       # but apparently some variants of GNU ld only accept -v.
3370       # Break only if it was the GNU/non-GNU ld that we prefer.
3371       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3372       *GNU* | *'with BFD'*)
3373         test "$with_gnu_ld" != no && break
3374         ;;
3375       *)
3376         test "$with_gnu_ld" != yes && break
3377         ;;
3378       esac
3379     fi
3380   done
3381   IFS="$lt_save_ifs"
3382 else
3383   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3384 fi
3385 fi
3386
3387 LD="$lt_cv_path_LD"
3388 if test -n "$LD"; then
3389   echo "$as_me:$LINENO: result: $LD" >&5
3390 echo "${ECHO_T}$LD" >&6
3391 else
3392   echo "$as_me:$LINENO: result: no" >&5
3393 echo "${ECHO_T}no" >&6
3394 fi
3395 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3396 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3397    { (exit 1); exit 1; }; }
3398 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3399 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3400 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3401   echo $ECHO_N "(cached) $ECHO_C" >&6
3402 else
3403   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3404 case `$LD -v 2>&1 </dev/null` in
3405 *GNU* | *'with BFD'*)
3406   lt_cv_prog_gnu_ld=yes
3407   ;;
3408 *)
3409   lt_cv_prog_gnu_ld=no
3410   ;;
3411 esac
3412 fi
3413 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3414 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3415 with_gnu_ld=$lt_cv_prog_gnu_ld
3416
3417
3418 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3419 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3420 if test "${lt_cv_ld_reload_flag+set}" = set; then
3421   echo $ECHO_N "(cached) $ECHO_C" >&6
3422 else
3423   lt_cv_ld_reload_flag='-r'
3424 fi
3425 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3426 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3427 reload_flag=$lt_cv_ld_reload_flag
3428 case $reload_flag in
3429 "" | " "*) ;;
3430 *) reload_flag=" $reload_flag" ;;
3431 esac
3432 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3433 case $host_os in
3434   darwin*)
3435     if test "$GCC" = yes; then
3436       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3437     else
3438       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3439     fi
3440     ;;
3441 esac
3442
3443 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3444 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3445 if test "${lt_cv_path_NM+set}" = set; then
3446   echo $ECHO_N "(cached) $ECHO_C" >&6
3447 else
3448   if test -n "$NM"; then
3449   # Let the user override the test.
3450   lt_cv_path_NM="$NM"
3451 else
3452   lt_nm_to_check="${ac_tool_prefix}nm"
3453   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3454     lt_nm_to_check="$lt_nm_to_check nm"
3455   fi
3456   for lt_tmp_nm in $lt_nm_to_check; do
3457     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3458     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3459       IFS="$lt_save_ifs"
3460       test -z "$ac_dir" && ac_dir=.
3461       tmp_nm="$ac_dir/$lt_tmp_nm"
3462       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3463         # Check to see if the nm accepts a BSD-compat flag.
3464         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3465         #   nm: unknown option "B" ignored
3466         # Tru64's nm complains that /dev/null is an invalid object file
3467         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3468         */dev/null* | *'Invalid file or object type'*)
3469           lt_cv_path_NM="$tmp_nm -B"
3470           break
3471           ;;
3472         *)
3473           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3474           */dev/null*)
3475             lt_cv_path_NM="$tmp_nm -p"
3476             break
3477             ;;
3478           *)
3479             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3480             continue # so that we can try to find one that supports BSD flags
3481             ;;
3482           esac
3483           ;;
3484         esac
3485       fi
3486     done
3487     IFS="$lt_save_ifs"
3488   done
3489   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3490 fi
3491 fi
3492 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3493 echo "${ECHO_T}$lt_cv_path_NM" >&6
3494 NM="$lt_cv_path_NM"
3495
3496 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3497 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3498 LN_S=$as_ln_s
3499 if test "$LN_S" = "ln -s"; then
3500   echo "$as_me:$LINENO: result: yes" >&5
3501 echo "${ECHO_T}yes" >&6
3502 else
3503   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3504 echo "${ECHO_T}no, using $LN_S" >&6
3505 fi
3506
3507 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3508 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3509 if test "${lt_cv_deplibs_check_method+set}" = set; then
3510   echo $ECHO_N "(cached) $ECHO_C" >&6
3511 else
3512   lt_cv_file_magic_cmd='$MAGIC_CMD'
3513 lt_cv_file_magic_test_file=
3514 lt_cv_deplibs_check_method='unknown'
3515 # Need to set the preceding variable on all platforms that support
3516 # interlibrary dependencies.
3517 # 'none' -- dependencies not supported.
3518 # `unknown' -- same as none, but documents that we really don't know.
3519 # 'pass_all' -- all dependencies passed with no checks.
3520 # 'test_compile' -- check by making test program.
3521 # 'file_magic [[regex]]' -- check by looking for files in library path
3522 # which responds to the $file_magic_cmd with a given extended regex.
3523 # If you have `file' or equivalent on your system and you're not sure
3524 # whether `pass_all' will *always* work, you probably want this one.
3525
3526 case $host_os in
3527 aix4* | aix5*)
3528   lt_cv_deplibs_check_method=pass_all
3529   ;;
3530
3531 beos*)
3532   lt_cv_deplibs_check_method=pass_all
3533   ;;
3534
3535 bsdi[45]*)
3536   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3537   lt_cv_file_magic_cmd='/usr/bin/file -L'
3538   lt_cv_file_magic_test_file=/shlib/libc.so
3539   ;;
3540
3541 cygwin*)
3542   # func_win32_libid is a shell function defined in ltmain.sh
3543   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3544   lt_cv_file_magic_cmd='func_win32_libid'
3545   ;;
3546
3547 mingw* | pw32*)
3548   # Base MSYS/MinGW do not provide the 'file' command needed by
3549   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3550   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3551   lt_cv_file_magic_cmd='$OBJDUMP -f'
3552   ;;
3553
3554 darwin* | rhapsody*)
3555   lt_cv_deplibs_check_method=pass_all
3556   ;;
3557
3558 freebsd* | kfreebsd*-gnu | dragonfly*)
3559   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3560     case $host_cpu in
3561     i*86 )
3562       # Not sure whether the presence of OpenBSD here was a mistake.
3563       # Let's accept both of them until this is cleared up.
3564       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3565       lt_cv_file_magic_cmd=/usr/bin/file
3566       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3567       ;;
3568     esac
3569   else
3570     lt_cv_deplibs_check_method=pass_all
3571   fi
3572   ;;
3573
3574 gnu*)
3575   lt_cv_deplibs_check_method=pass_all
3576   ;;
3577
3578 hpux10.20* | hpux11*)
3579   lt_cv_file_magic_cmd=/usr/bin/file
3580   case $host_cpu in
3581   ia64*)
3582     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3583     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3584     ;;
3585   hppa*64*)
3586     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]'
3587     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3588     ;;
3589   *)
3590     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3591     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3592     ;;
3593   esac
3594   ;;
3595
3596 interix3*)
3597   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
3598   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
3599   ;;
3600
3601 irix5* | irix6* | nonstopux*)
3602   case $LD in
3603   *-32|*"-32 ") libmagic=32-bit;;
3604   *-n32|*"-n32 ") libmagic=N32;;
3605   *-64|*"-64 ") libmagic=64-bit;;
3606   *) libmagic=never-match;;
3607   esac
3608   lt_cv_deplibs_check_method=pass_all
3609   ;;
3610
3611 # This must be Linux ELF.
3612 linux*)
3613   lt_cv_deplibs_check_method=pass_all
3614   ;;
3615
3616 netbsd*)
3617   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3618     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3619   else
3620     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3621   fi
3622   ;;
3623
3624 newos6*)
3625   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3626   lt_cv_file_magic_cmd=/usr/bin/file
3627   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3628   ;;
3629
3630 nto-qnx*)
3631   lt_cv_deplibs_check_method=unknown
3632   ;;
3633
3634 openbsd*)
3635   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3636     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
3637   else
3638     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3639   fi
3640   ;;
3641
3642 osf3* | osf4* | osf5*)
3643   lt_cv_deplibs_check_method=pass_all
3644   ;;
3645
3646 solaris*)
3647   lt_cv_deplibs_check_method=pass_all
3648   ;;
3649
3650 sysv4 | sysv4.3*)
3651   case $host_vendor in
3652   motorola)
3653     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]'
3654     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3655     ;;
3656   ncr)
3657     lt_cv_deplibs_check_method=pass_all
3658     ;;
3659   sequent)
3660     lt_cv_file_magic_cmd='/bin/file'
3661     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3662     ;;
3663   sni)
3664     lt_cv_file_magic_cmd='/bin/file'
3665     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3666     lt_cv_file_magic_test_file=/lib/libc.so
3667     ;;
3668   siemens)
3669     lt_cv_deplibs_check_method=pass_all
3670     ;;
3671   pc)
3672     lt_cv_deplibs_check_method=pass_all
3673     ;;
3674   esac
3675   ;;
3676
3677 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
3678   lt_cv_deplibs_check_method=pass_all
3679   ;;
3680 esac
3681
3682 fi
3683 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3684 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3685 file_magic_cmd=$lt_cv_file_magic_cmd
3686 deplibs_check_method=$lt_cv_deplibs_check_method
3687 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3688
3689
3690
3691
3692 # If no C compiler was specified, use CC.
3693 LTCC=${LTCC-"$CC"}
3694
3695 # If no C compiler flags were specified, use CFLAGS.
3696 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
3697
3698 # Allow CC to be a program name with arguments.
3699 compiler=$CC
3700
3701
3702 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3703 if test "${enable_libtool_lock+set}" = set; then
3704   enableval="$enable_libtool_lock"
3705
3706 fi;
3707 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3708
3709 # Some flags need to be propagated to the compiler or linker for good
3710 # libtool support.
3711 case $host in
3712 ia64-*-hpux*)
3713   # Find out which ABI we are using.
3714   echo 'int i;' > conftest.$ac_ext
3715   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3716   (eval $ac_compile) 2>&5
3717   ac_status=$?
3718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719   (exit $ac_status); }; then
3720     case `/usr/bin/file conftest.$ac_objext` in
3721     *ELF-32*)
3722       HPUX_IA64_MODE="32"
3723       ;;
3724     *ELF-64*)
3725       HPUX_IA64_MODE="64"
3726       ;;
3727     esac
3728   fi
3729   rm -rf conftest*
3730   ;;
3731 *-*-irix6*)
3732   # Find out which ABI we are using.
3733   echo '#line 3733 "configure"' > conftest.$ac_ext
3734   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3735   (eval $ac_compile) 2>&5
3736   ac_status=$?
3737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738   (exit $ac_status); }; then
3739    if test "$lt_cv_prog_gnu_ld" = yes; then
3740     case `/usr/bin/file conftest.$ac_objext` in
3741     *32-bit*)
3742       LD="${LD-ld} -melf32bsmip"
3743       ;;
3744     *N32*)
3745       LD="${LD-ld} -melf32bmipn32"
3746       ;;
3747     *64-bit*)
3748       LD="${LD-ld} -melf64bmip"
3749       ;;
3750     esac
3751    else
3752     case `/usr/bin/file conftest.$ac_objext` in
3753     *32-bit*)
3754       LD="${LD-ld} -32"
3755       ;;
3756     *N32*)
3757       LD="${LD-ld} -n32"
3758       ;;
3759     *64-bit*)
3760       LD="${LD-ld} -64"
3761       ;;
3762     esac
3763    fi
3764   fi
3765   rm -rf conftest*
3766   ;;
3767
3768 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3769   # Find out which ABI we are using.
3770   echo 'int i;' > conftest.$ac_ext
3771   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3772   (eval $ac_compile) 2>&5
3773   ac_status=$?
3774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3775   (exit $ac_status); }; then
3776     case `/usr/bin/file conftest.o` in
3777     *32-bit*)
3778       case $host in
3779         x86_64-*linux*)
3780           LD="${LD-ld} -m elf_i386"
3781           ;;
3782         ppc64-*linux*|powerpc64-*linux*)
3783           LD="${LD-ld} -m elf32ppclinux"
3784           ;;
3785         s390x-*linux*)
3786           LD="${LD-ld} -m elf_s390"
3787           ;;
3788         sparc64-*linux*)
3789           LD="${LD-ld} -m elf32_sparc"
3790           ;;
3791       esac
3792       ;;
3793     *64-bit*)
3794       case $host in
3795         x86_64-*linux*)
3796           LD="${LD-ld} -m elf_x86_64"
3797           ;;
3798         ppc*-*linux*|powerpc*-*linux*)
3799           LD="${LD-ld} -m elf64ppc"
3800           ;;
3801         s390*-*linux*)
3802           LD="${LD-ld} -m elf64_s390"
3803           ;;
3804         sparc*-*linux*)
3805           LD="${LD-ld} -m elf64_sparc"
3806           ;;
3807       esac
3808       ;;
3809     esac
3810   fi
3811   rm -rf conftest*
3812   ;;
3813
3814 *-*-sco3.2v5*)
3815   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3816   SAVE_CFLAGS="$CFLAGS"
3817   CFLAGS="$CFLAGS -belf"
3818   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3819 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3820 if test "${lt_cv_cc_needs_belf+set}" = set; then
3821   echo $ECHO_N "(cached) $ECHO_C" >&6
3822 else
3823   ac_ext=c
3824 ac_cpp='$CPP $CPPFLAGS'
3825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3828
3829      cat >conftest.$ac_ext <<_ACEOF
3830 /* confdefs.h.  */
3831 _ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h.  */
3835
3836 int
3837 main ()
3838 {
3839
3840   ;
3841   return 0;
3842 }
3843 _ACEOF
3844 rm -f conftest.$ac_objext conftest$ac_exeext
3845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3846   (eval $ac_link) 2>conftest.er1
3847   ac_status=$?
3848   grep -v '^ *+' conftest.er1 >conftest.err
3849   rm -f conftest.er1
3850   cat conftest.err >&5
3851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3852   (exit $ac_status); } &&
3853          { ac_try='test -z "$ac_c_werror_flag"
3854                          || test ! -s conftest.err'
3855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3856   (eval $ac_try) 2>&5
3857   ac_status=$?
3858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859   (exit $ac_status); }; } &&
3860          { ac_try='test -s conftest$ac_exeext'
3861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3862   (eval $ac_try) 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   lt_cv_cc_needs_belf=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871 lt_cv_cc_needs_belf=no
3872 fi
3873 rm -f conftest.err conftest.$ac_objext \
3874       conftest$ac_exeext conftest.$ac_ext
3875      ac_ext=c
3876 ac_cpp='$CPP $CPPFLAGS'
3877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880
3881 fi
3882 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3883 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3884   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3885     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3886     CFLAGS="$SAVE_CFLAGS"
3887   fi
3888   ;;
3889 sparc*-*solaris*)
3890   # Find out which ABI we are using.
3891   echo 'int i;' > conftest.$ac_ext
3892   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3893   (eval $ac_compile) 2>&5
3894   ac_status=$?
3895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3896   (exit $ac_status); }; then
3897     case `/usr/bin/file conftest.o` in
3898     *64-bit*)
3899       case $lt_cv_prog_gnu_ld in
3900       yes*) LD="${LD-ld} -m elf64_sparc" ;;
3901       *)    LD="${LD-ld} -64" ;;
3902       esac
3903       ;;
3904     esac
3905   fi
3906   rm -rf conftest*
3907   ;;
3908
3909
3910 esac
3911
3912 need_locks="$enable_libtool_lock"
3913
3914
3915 ac_ext=c
3916 ac_cpp='$CPP $CPPFLAGS'
3917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3920 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3921 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3922 # On Suns, sometimes $CPP names a directory.
3923 if test -n "$CPP" && test -d "$CPP"; then
3924   CPP=
3925 fi
3926 if test -z "$CPP"; then
3927   if test "${ac_cv_prog_CPP+set}" = set; then
3928   echo $ECHO_N "(cached) $ECHO_C" >&6
3929 else
3930       # Double quotes because CPP needs to be expanded
3931     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3932     do
3933       ac_preproc_ok=false
3934 for ac_c_preproc_warn_flag in '' yes
3935 do
3936   # Use a header file that comes with gcc, so configuring glibc
3937   # with a fresh cross-compiler works.
3938   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3939   # <limits.h> exists even on freestanding compilers.
3940   # On the NeXT, cc -E runs the code through the compiler's parser,
3941   # not just through cpp. "Syntax error" is here to catch this case.
3942   cat >conftest.$ac_ext <<_ACEOF
3943 /* confdefs.h.  */
3944 _ACEOF
3945 cat confdefs.h >>conftest.$ac_ext
3946 cat >>conftest.$ac_ext <<_ACEOF
3947 /* end confdefs.h.  */
3948 #ifdef __STDC__
3949 # include <limits.h>
3950 #else
3951 # include <assert.h>
3952 #endif
3953                      Syntax error
3954 _ACEOF
3955 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3956   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3957   ac_status=$?
3958   grep -v '^ *+' conftest.er1 >conftest.err
3959   rm -f conftest.er1
3960   cat conftest.err >&5
3961   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3962   (exit $ac_status); } >/dev/null; then
3963   if test -s conftest.err; then
3964     ac_cpp_err=$ac_c_preproc_warn_flag
3965     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3966   else
3967     ac_cpp_err=
3968   fi
3969 else
3970   ac_cpp_err=yes
3971 fi
3972 if test -z "$ac_cpp_err"; then
3973   :
3974 else
3975   echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978   # Broken: fails on valid input.
3979 continue
3980 fi
3981 rm -f conftest.err conftest.$ac_ext
3982
3983   # OK, works on sane cases.  Now check whether non-existent headers
3984   # can be detected and how.
3985   cat >conftest.$ac_ext <<_ACEOF
3986 /* confdefs.h.  */
3987 _ACEOF
3988 cat confdefs.h >>conftest.$ac_ext
3989 cat >>conftest.$ac_ext <<_ACEOF
3990 /* end confdefs.h.  */
3991 #include <ac_nonexistent.h>
3992 _ACEOF
3993 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3994   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3995   ac_status=$?
3996   grep -v '^ *+' conftest.er1 >conftest.err
3997   rm -f conftest.er1
3998   cat conftest.err >&5
3999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4000   (exit $ac_status); } >/dev/null; then
4001   if test -s conftest.err; then
4002     ac_cpp_err=$ac_c_preproc_warn_flag
4003     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4004   else
4005     ac_cpp_err=
4006   fi
4007 else
4008   ac_cpp_err=yes
4009 fi
4010 if test -z "$ac_cpp_err"; then
4011   # Broken: success on invalid input.
4012 continue
4013 else
4014   echo "$as_me: failed program was:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4016
4017   # Passes both tests.
4018 ac_preproc_ok=:
4019 break
4020 fi
4021 rm -f conftest.err conftest.$ac_ext
4022
4023 done
4024 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4025 rm -f conftest.err conftest.$ac_ext
4026 if $ac_preproc_ok; then
4027   break
4028 fi
4029
4030     done
4031     ac_cv_prog_CPP=$CPP
4032
4033 fi
4034   CPP=$ac_cv_prog_CPP
4035 else
4036   ac_cv_prog_CPP=$CPP
4037 fi
4038 echo "$as_me:$LINENO: result: $CPP" >&5
4039 echo "${ECHO_T}$CPP" >&6
4040 ac_preproc_ok=false
4041 for ac_c_preproc_warn_flag in '' yes
4042 do
4043   # Use a header file that comes with gcc, so configuring glibc
4044   # with a fresh cross-compiler works.
4045   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4046   # <limits.h> exists even on freestanding compilers.
4047   # On the NeXT, cc -E runs the code through the compiler's parser,
4048   # not just through cpp. "Syntax error" is here to catch this case.
4049   cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h.  */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h.  */
4055 #ifdef __STDC__
4056 # include <limits.h>
4057 #else
4058 # include <assert.h>
4059 #endif
4060                      Syntax error
4061 _ACEOF
4062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4064   ac_status=$?
4065   grep -v '^ *+' conftest.er1 >conftest.err
4066   rm -f conftest.er1
4067   cat conftest.err >&5
4068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4069   (exit $ac_status); } >/dev/null; then
4070   if test -s conftest.err; then
4071     ac_cpp_err=$ac_c_preproc_warn_flag
4072     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4073   else
4074     ac_cpp_err=
4075   fi
4076 else
4077   ac_cpp_err=yes
4078 fi
4079 if test -z "$ac_cpp_err"; then
4080   :
4081 else
4082   echo "$as_me: failed program was:" >&5
4083 sed 's/^/| /' conftest.$ac_ext >&5
4084
4085   # Broken: fails on valid input.
4086 continue
4087 fi
4088 rm -f conftest.err conftest.$ac_ext
4089
4090   # OK, works on sane cases.  Now check whether non-existent headers
4091   # can be detected and how.
4092   cat >conftest.$ac_ext <<_ACEOF
4093 /* confdefs.h.  */
4094 _ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h.  */
4098 #include <ac_nonexistent.h>
4099 _ACEOF
4100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4101   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4102   ac_status=$?
4103   grep -v '^ *+' conftest.er1 >conftest.err
4104   rm -f conftest.er1
4105   cat conftest.err >&5
4106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4107   (exit $ac_status); } >/dev/null; then
4108   if test -s conftest.err; then
4109     ac_cpp_err=$ac_c_preproc_warn_flag
4110     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4111   else
4112     ac_cpp_err=
4113   fi
4114 else
4115   ac_cpp_err=yes
4116 fi
4117 if test -z "$ac_cpp_err"; then
4118   # Broken: success on invalid input.
4119 continue
4120 else
4121   echo "$as_me: failed program was:" >&5
4122 sed 's/^/| /' conftest.$ac_ext >&5
4123
4124   # Passes both tests.
4125 ac_preproc_ok=:
4126 break
4127 fi
4128 rm -f conftest.err conftest.$ac_ext
4129
4130 done
4131 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4132 rm -f conftest.err conftest.$ac_ext
4133 if $ac_preproc_ok; then
4134   :
4135 else
4136   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4137 See \`config.log' for more details." >&5
4138 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4139 See \`config.log' for more details." >&2;}
4140    { (exit 1); exit 1; }; }
4141 fi
4142
4143 ac_ext=c
4144 ac_cpp='$CPP $CPPFLAGS'
4145 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4146 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4147 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4148
4149
4150 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4151 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4152 if test "${ac_cv_header_stdc+set}" = set; then
4153   echo $ECHO_N "(cached) $ECHO_C" >&6
4154 else
4155   cat >conftest.$ac_ext <<_ACEOF
4156 /* confdefs.h.  */
4157 _ACEOF
4158 cat confdefs.h >>conftest.$ac_ext
4159 cat >>conftest.$ac_ext <<_ACEOF
4160 /* end confdefs.h.  */
4161 #include <stdlib.h>
4162 #include <stdarg.h>
4163 #include <string.h>
4164 #include <float.h>
4165
4166 int
4167 main ()
4168 {
4169
4170   ;
4171   return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.$ac_objext
4175 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4176   (eval $ac_compile) 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } &&
4183          { ac_try='test -z "$ac_c_werror_flag"
4184                          || test ! -s conftest.err'
4185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4186   (eval $ac_try) 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); }; } &&
4190          { ac_try='test -s conftest.$ac_objext'
4191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4192   (eval $ac_try) 2>&5
4193   ac_status=$?
4194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4195   (exit $ac_status); }; }; then
4196   ac_cv_header_stdc=yes
4197 else
4198   echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4200
4201 ac_cv_header_stdc=no
4202 fi
4203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4204
4205 if test $ac_cv_header_stdc = yes; then
4206   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4207   cat >conftest.$ac_ext <<_ACEOF
4208 /* confdefs.h.  */
4209 _ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h.  */
4213 #include <string.h>
4214
4215 _ACEOF
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217   $EGREP "memchr" >/dev/null 2>&1; then
4218   :
4219 else
4220   ac_cv_header_stdc=no
4221 fi
4222 rm -f conftest*
4223
4224 fi
4225
4226 if test $ac_cv_header_stdc = yes; then
4227   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4228   cat >conftest.$ac_ext <<_ACEOF
4229 /* confdefs.h.  */
4230 _ACEOF
4231 cat confdefs.h >>conftest.$ac_ext
4232 cat >>conftest.$ac_ext <<_ACEOF
4233 /* end confdefs.h.  */
4234 #include <stdlib.h>
4235
4236 _ACEOF
4237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4238   $EGREP "free" >/dev/null 2>&1; then
4239   :
4240 else
4241   ac_cv_header_stdc=no
4242 fi
4243 rm -f conftest*
4244
4245 fi
4246
4247 if test $ac_cv_header_stdc = yes; then
4248   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4249   if test "$cross_compiling" = yes; then
4250   :
4251 else
4252   cat >conftest.$ac_ext <<_ACEOF
4253 /* confdefs.h.  */
4254 _ACEOF
4255 cat confdefs.h >>conftest.$ac_ext
4256 cat >>conftest.$ac_ext <<_ACEOF
4257 /* end confdefs.h.  */
4258 #include <ctype.h>
4259 #if ((' ' & 0x0FF) == 0x020)
4260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4262 #else
4263 # define ISLOWER(c) \
4264                    (('a' <= (c) && (c) <= 'i') \
4265                      || ('j' <= (c) && (c) <= 'r') \
4266                      || ('s' <= (c) && (c) <= 'z'))
4267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4268 #endif
4269
4270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4271 int
4272 main ()
4273 {
4274   int i;
4275   for (i = 0; i < 256; i++)
4276     if (XOR (islower (i), ISLOWER (i))
4277         || toupper (i) != TOUPPER (i))
4278       exit(2);
4279   exit (0);
4280 }
4281 _ACEOF
4282 rm -f conftest$ac_exeext
4283 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284   (eval $ac_link) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4289   (eval $ac_try) 2>&5
4290   ac_status=$?
4291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292   (exit $ac_status); }; }; then
4293   :
4294 else
4295   echo "$as_me: program exited with status $ac_status" >&5
4296 echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 ( exit $ac_status )
4300 ac_cv_header_stdc=no
4301 fi
4302 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 fi
4305 fi
4306 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4307 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4308 if test $ac_cv_header_stdc = yes; then
4309
4310 cat >>confdefs.h <<\_ACEOF
4311 #define STDC_HEADERS 1
4312 _ACEOF
4313
4314 fi
4315
4316 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4327                   inttypes.h stdint.h unistd.h
4328 do
4329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4330 echo "$as_me:$LINENO: checking for $ac_header" >&5
4331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4332 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4333   echo $ECHO_N "(cached) $ECHO_C" >&6
4334 else
4335   cat >conftest.$ac_ext <<_ACEOF
4336 /* confdefs.h.  */
4337 _ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h.  */
4341 $ac_includes_default
4342
4343 #include <$ac_header>
4344 _ACEOF
4345 rm -f conftest.$ac_objext
4346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4347   (eval $ac_compile) 2>conftest.er1
4348   ac_status=$?
4349   grep -v '^ *+' conftest.er1 >conftest.err
4350   rm -f conftest.er1
4351   cat conftest.err >&5
4352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4353   (exit $ac_status); } &&
4354          { ac_try='test -z "$ac_c_werror_flag"
4355                          || test ! -s conftest.err'
4356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4357   (eval $ac_try) 2>&5
4358   ac_status=$?
4359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4360   (exit $ac_status); }; } &&
4361          { ac_try='test -s conftest.$ac_objext'
4362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4363   (eval $ac_try) 2>&5
4364   ac_status=$?
4365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366   (exit $ac_status); }; }; then
4367   eval "$as_ac_Header=yes"
4368 else
4369   echo "$as_me: failed program was:" >&5
4370 sed 's/^/| /' conftest.$ac_ext >&5
4371
4372 eval "$as_ac_Header=no"
4373 fi
4374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4375 fi
4376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4379   cat >>confdefs.h <<_ACEOF
4380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4381 _ACEOF
4382
4383 fi
4384
4385 done
4386
4387
4388
4389 for ac_header in dlfcn.h
4390 do
4391 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4392 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4393   echo "$as_me:$LINENO: checking for $ac_header" >&5
4394 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4395 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4396   echo $ECHO_N "(cached) $ECHO_C" >&6
4397 fi
4398 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4399 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4400 else
4401   # Is the header compilable?
4402 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h.  */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h.  */
4410 $ac_includes_default
4411 #include <$ac_header>
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4415   (eval $ac_compile) 2>conftest.er1
4416   ac_status=$?
4417   grep -v '^ *+' conftest.er1 >conftest.err
4418   rm -f conftest.er1
4419   cat conftest.err >&5
4420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421   (exit $ac_status); } &&
4422          { ac_try='test -z "$ac_c_werror_flag"
4423                          || test ! -s conftest.err'
4424   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4425   (eval $ac_try) 2>&5
4426   ac_status=$?
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); }; } &&
4429          { ac_try='test -s conftest.$ac_objext'
4430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4431   (eval $ac_try) 2>&5
4432   ac_status=$?
4433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4434   (exit $ac_status); }; }; then
4435   ac_header_compiler=yes
4436 else
4437   echo "$as_me: failed program was:" >&5
4438 sed 's/^/| /' conftest.$ac_ext >&5
4439
4440 ac_header_compiler=no
4441 fi
4442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4443 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4444 echo "${ECHO_T}$ac_header_compiler" >&6
4445
4446 # Is the header present?
4447 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4448 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4449 cat >conftest.$ac_ext <<_ACEOF
4450 /* confdefs.h.  */
4451 _ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h.  */
4455 #include <$ac_header>
4456 _ACEOF
4457 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4458   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4459   ac_status=$?
4460   grep -v '^ *+' conftest.er1 >conftest.err
4461   rm -f conftest.er1
4462   cat conftest.err >&5
4463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464   (exit $ac_status); } >/dev/null; then
4465   if test -s conftest.err; then
4466     ac_cpp_err=$ac_c_preproc_warn_flag
4467     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4468   else
4469     ac_cpp_err=
4470   fi
4471 else
4472   ac_cpp_err=yes
4473 fi
4474 if test -z "$ac_cpp_err"; then
4475   ac_header_preproc=yes
4476 else
4477   echo "$as_me: failed program was:" >&5
4478 sed 's/^/| /' conftest.$ac_ext >&5
4479
4480   ac_header_preproc=no
4481 fi
4482 rm -f conftest.err conftest.$ac_ext
4483 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4484 echo "${ECHO_T}$ac_header_preproc" >&6
4485
4486 # So?  What about this header?
4487 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4488   yes:no: )
4489     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4490 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4491     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4492 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4493     ac_header_preproc=yes
4494     ;;
4495   no:yes:* )
4496     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4497 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4498     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4499 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4500     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4501 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4502     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4503 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4504     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4505 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4506     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4507 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4508     (
4509       cat <<\_ASBOX
4510 ## ------------------------------------------ ##
4511 ## Report this to the AC_PACKAGE_NAME lists.  ##
4512 ## ------------------------------------------ ##
4513 _ASBOX
4514     ) |
4515       sed "s/^/$as_me: WARNING:     /" >&2
4516     ;;
4517 esac
4518 echo "$as_me:$LINENO: checking for $ac_header" >&5
4519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4521   echo $ECHO_N "(cached) $ECHO_C" >&6
4522 else
4523   eval "$as_ac_Header=\$ac_header_preproc"
4524 fi
4525 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4526 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4527
4528 fi
4529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4530   cat >>confdefs.h <<_ACEOF
4531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4532 _ACEOF
4533
4534 fi
4535
4536 done
4537
4538 ac_ext=cc
4539 ac_cpp='$CXXCPP $CPPFLAGS'
4540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4543 if test -n "$ac_tool_prefix"; then
4544   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4545   do
4546     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4547 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4548 echo "$as_me:$LINENO: checking for $ac_word" >&5
4549 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4550 if test "${ac_cv_prog_CXX+set}" = set; then
4551   echo $ECHO_N "(cached) $ECHO_C" >&6
4552 else
4553   if test -n "$CXX"; then
4554   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4555 else
4556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4557 for as_dir in $PATH
4558 do
4559   IFS=$as_save_IFS
4560   test -z "$as_dir" && as_dir=.
4561   for ac_exec_ext in '' $ac_executable_extensions; do
4562   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4563     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4564     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4565     break 2
4566   fi
4567 done
4568 done
4569
4570 fi
4571 fi
4572 CXX=$ac_cv_prog_CXX
4573 if test -n "$CXX"; then
4574   echo "$as_me:$LINENO: result: $CXX" >&5
4575 echo "${ECHO_T}$CXX" >&6
4576 else
4577   echo "$as_me:$LINENO: result: no" >&5
4578 echo "${ECHO_T}no" >&6
4579 fi
4580
4581     test -n "$CXX" && break
4582   done
4583 fi
4584 if test -z "$CXX"; then
4585   ac_ct_CXX=$CXX
4586   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4587 do
4588   # Extract the first word of "$ac_prog", so it can be a program name with args.
4589 set dummy $ac_prog; ac_word=$2
4590 echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4592 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4593   echo $ECHO_N "(cached) $ECHO_C" >&6
4594 else
4595   if test -n "$ac_ct_CXX"; then
4596   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4597 else
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4599 for as_dir in $PATH
4600 do
4601   IFS=$as_save_IFS
4602   test -z "$as_dir" && as_dir=.
4603   for ac_exec_ext in '' $ac_executable_extensions; do
4604   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4605     ac_cv_prog_ac_ct_CXX="$ac_prog"
4606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4607     break 2
4608   fi
4609 done
4610 done
4611
4612 fi
4613 fi
4614 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4615 if test -n "$ac_ct_CXX"; then
4616   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4617 echo "${ECHO_T}$ac_ct_CXX" >&6
4618 else
4619   echo "$as_me:$LINENO: result: no" >&5
4620 echo "${ECHO_T}no" >&6
4621 fi
4622
4623   test -n "$ac_ct_CXX" && break
4624 done
4625 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4626
4627   CXX=$ac_ct_CXX
4628 fi
4629
4630
4631 # Provide some information about the compiler.
4632 echo "$as_me:$LINENO:" \
4633      "checking for C++ compiler version" >&5
4634 ac_compiler=`set X $ac_compile; echo $2`
4635 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4636   (eval $ac_compiler --version </dev/null >&5) 2>&5
4637   ac_status=$?
4638   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4639   (exit $ac_status); }
4640 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4641   (eval $ac_compiler -v </dev/null >&5) 2>&5
4642   ac_status=$?
4643   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4644   (exit $ac_status); }
4645 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4646   (eval $ac_compiler -V </dev/null >&5) 2>&5
4647   ac_status=$?
4648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4649   (exit $ac_status); }
4650
4651 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4652 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4653 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4654   echo $ECHO_N "(cached) $ECHO_C" >&6
4655 else
4656   cat >conftest.$ac_ext <<_ACEOF
4657 /* confdefs.h.  */
4658 _ACEOF
4659 cat confdefs.h >>conftest.$ac_ext
4660 cat >>conftest.$ac_ext <<_ACEOF
4661 /* end confdefs.h.  */
4662
4663 int
4664 main ()
4665 {
4666 #ifndef __GNUC__
4667        choke me
4668 #endif
4669
4670   ;
4671   return 0;
4672 }
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4676   (eval $ac_compile) 2>conftest.er1
4677   ac_status=$?
4678   grep -v '^ *+' conftest.er1 >conftest.err
4679   rm -f conftest.er1
4680   cat conftest.err >&5
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); } &&
4683          { ac_try='test -z "$ac_cxx_werror_flag"
4684                          || test ! -s conftest.err'
4685   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4686   (eval $ac_try) 2>&5
4687   ac_status=$?
4688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689   (exit $ac_status); }; } &&
4690          { ac_try='test -s conftest.$ac_objext'
4691   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4692   (eval $ac_try) 2>&5
4693   ac_status=$?
4694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4695   (exit $ac_status); }; }; then
4696   ac_compiler_gnu=yes
4697 else
4698   echo "$as_me: failed program was:" >&5
4699 sed 's/^/| /' conftest.$ac_ext >&5
4700
4701 ac_compiler_gnu=no
4702 fi
4703 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4704 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4705
4706 fi
4707 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4708 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4709 GXX=`test $ac_compiler_gnu = yes && echo yes`
4710 ac_test_CXXFLAGS=${CXXFLAGS+set}
4711 ac_save_CXXFLAGS=$CXXFLAGS
4712 CXXFLAGS="-g"
4713 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4714 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4715 if test "${ac_cv_prog_cxx_g+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   cat >conftest.$ac_ext <<_ACEOF
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724
4725 int
4726 main ()
4727 {
4728
4729   ;
4730   return 0;
4731 }
4732 _ACEOF
4733 rm -f conftest.$ac_objext
4734 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4735   (eval $ac_compile) 2>conftest.er1
4736   ac_status=$?
4737   grep -v '^ *+' conftest.er1 >conftest.err
4738   rm -f conftest.er1
4739   cat conftest.err >&5
4740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4741   (exit $ac_status); } &&
4742          { ac_try='test -z "$ac_cxx_werror_flag"
4743                          || test ! -s conftest.err'
4744   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4745   (eval $ac_try) 2>&5
4746   ac_status=$?
4747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4748   (exit $ac_status); }; } &&
4749          { ac_try='test -s conftest.$ac_objext'
4750   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4751   (eval $ac_try) 2>&5
4752   ac_status=$?
4753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754   (exit $ac_status); }; }; then
4755   ac_cv_prog_cxx_g=yes
4756 else
4757   echo "$as_me: failed program was:" >&5
4758 sed 's/^/| /' conftest.$ac_ext >&5
4759
4760 ac_cv_prog_cxx_g=no
4761 fi
4762 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4763 fi
4764 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4765 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4766 if test "$ac_test_CXXFLAGS" = set; then
4767   CXXFLAGS=$ac_save_CXXFLAGS
4768 elif test $ac_cv_prog_cxx_g = yes; then
4769   if test "$GXX" = yes; then
4770     CXXFLAGS="-g -O2"
4771   else
4772     CXXFLAGS="-g"
4773   fi
4774 else
4775   if test "$GXX" = yes; then
4776     CXXFLAGS="-O2"
4777   else
4778     CXXFLAGS=
4779   fi
4780 fi
4781 for ac_declaration in \
4782    '' \
4783    'extern "C" void std::exit (int) throw (); using std::exit;' \
4784    'extern "C" void std::exit (int); using std::exit;' \
4785    'extern "C" void exit (int) throw ();' \
4786    'extern "C" void exit (int);' \
4787    'void exit (int);'
4788 do
4789   cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h.  */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h.  */
4795 $ac_declaration
4796 #include <stdlib.h>
4797 int
4798 main ()
4799 {
4800 exit (42);
4801   ;
4802   return 0;
4803 }
4804 _ACEOF
4805 rm -f conftest.$ac_objext
4806 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4807   (eval $ac_compile) 2>conftest.er1
4808   ac_status=$?
4809   grep -v '^ *+' conftest.er1 >conftest.err
4810   rm -f conftest.er1
4811   cat conftest.err >&5
4812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4813   (exit $ac_status); } &&
4814          { ac_try='test -z "$ac_cxx_werror_flag"
4815                          || test ! -s conftest.err'
4816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4817   (eval $ac_try) 2>&5
4818   ac_status=$?
4819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820   (exit $ac_status); }; } &&
4821          { ac_try='test -s conftest.$ac_objext'
4822   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4823   (eval $ac_try) 2>&5
4824   ac_status=$?
4825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4826   (exit $ac_status); }; }; then
4827   :
4828 else
4829   echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4831
4832 continue
4833 fi
4834 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4835   cat >conftest.$ac_ext <<_ACEOF
4836 /* confdefs.h.  */
4837 _ACEOF
4838 cat confdefs.h >>conftest.$ac_ext
4839 cat >>conftest.$ac_ext <<_ACEOF
4840 /* end confdefs.h.  */
4841 $ac_declaration
4842 int
4843 main ()
4844 {
4845 exit (42);
4846   ;
4847   return 0;
4848 }
4849 _ACEOF
4850 rm -f conftest.$ac_objext
4851 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4852   (eval $ac_compile) 2>conftest.er1
4853   ac_status=$?
4854   grep -v '^ *+' conftest.er1 >conftest.err
4855   rm -f conftest.er1
4856   cat conftest.err >&5
4857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4858   (exit $ac_status); } &&
4859          { ac_try='test -z "$ac_cxx_werror_flag"
4860                          || test ! -s conftest.err'
4861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4862   (eval $ac_try) 2>&5
4863   ac_status=$?
4864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4865   (exit $ac_status); }; } &&
4866          { ac_try='test -s conftest.$ac_objext'
4867   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4868   (eval $ac_try) 2>&5
4869   ac_status=$?
4870   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871   (exit $ac_status); }; }; then
4872   break
4873 else
4874   echo "$as_me: failed program was:" >&5
4875 sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 fi
4878 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4879 done
4880 rm -f conftest*
4881 if test -n "$ac_declaration"; then
4882   echo '#ifdef __cplusplus' >>confdefs.h
4883   echo $ac_declaration      >>confdefs.h
4884   echo '#endif'             >>confdefs.h
4885 fi
4886
4887 ac_ext=cc
4888 ac_cpp='$CXXCPP $CPPFLAGS'
4889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4892
4893 depcc="$CXX"  am_compiler_list=
4894
4895 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4896 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4897 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4898   echo $ECHO_N "(cached) $ECHO_C" >&6
4899 else
4900   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4901   # We make a subdir and do the tests there.  Otherwise we can end up
4902   # making bogus files that we don't know about and never remove.  For
4903   # instance it was reported that on HP-UX the gcc test will end up
4904   # making a dummy file named `D' -- because `-MD' means `put the output
4905   # in D'.
4906   mkdir conftest.dir
4907   # Copy depcomp to subdir because otherwise we won't find it if we're
4908   # using a relative directory.
4909   cp "$am_depcomp" conftest.dir
4910   cd conftest.dir
4911   # We will build objects and dependencies in a subdirectory because
4912   # it helps to detect inapplicable dependency modes.  For instance
4913   # both Tru64's cc and ICC support -MD to output dependencies as a
4914   # side effect of compilation, but ICC will put the dependencies in
4915   # the current directory while Tru64 will put them in the object
4916   # directory.
4917   mkdir sub
4918
4919   am_cv_CXX_dependencies_compiler_type=none
4920   if test "$am_compiler_list" = ""; then
4921      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4922   fi
4923   for depmode in $am_compiler_list; do
4924     # Setup a source with many dependencies, because some compilers
4925     # like to wrap large dependency lists on column 80 (with \), and
4926     # we should not choose a depcomp mode which is confused by this.
4927     #
4928     # We need to recreate these files for each test, as the compiler may
4929     # overwrite some of them when testing with obscure command lines.
4930     # This happens at least with the AIX C compiler.
4931     : > sub/conftest.c
4932     for i in 1 2 3 4 5 6; do
4933       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4934       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4935       # Solaris 8's {/usr,}/bin/sh.
4936       touch sub/conftst$i.h
4937     done
4938     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4939
4940     case $depmode in
4941     nosideeffect)
4942       # after this tag, mechanisms are not by side-effect, so they'll
4943       # only be used when explicitly requested
4944       if test "x$enable_dependency_tracking" = xyes; then
4945         continue
4946       else
4947         break
4948       fi
4949       ;;
4950     none) break ;;
4951     esac
4952     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4953     # mode.  It turns out that the SunPro C++ compiler does not properly
4954     # handle `-M -o', and we need to detect this.
4955     if depmode=$depmode \
4956        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4957        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4958        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4959          >/dev/null 2>conftest.err &&
4960        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4961        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4962        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4963       # icc doesn't choke on unknown options, it will just issue warnings
4964       # or remarks (even with -Werror).  So we grep stderr for any message
4965       # that says an option was ignored or not supported.
4966       # When given -MP, icc 7.0 and 7.1 complain thusly:
4967       #   icc: Command line warning: ignoring option '-M'; no argument required
4968       # The diagnosis changed in icc 8.0:
4969       #   icc: Command line remark: option '-MP' not supported
4970       if (grep 'ignoring option' conftest.err ||
4971           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4972         am_cv_CXX_dependencies_compiler_type=$depmode
4973         break
4974       fi
4975     fi
4976   done
4977
4978   cd ..
4979   rm -rf conftest.dir
4980 else
4981   am_cv_CXX_dependencies_compiler_type=none
4982 fi
4983
4984 fi
4985 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4986 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4987 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4988
4989
4990
4991 if
4992   test "x$enable_dependency_tracking" != xno \
4993   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4994   am__fastdepCXX_TRUE=
4995   am__fastdepCXX_FALSE='#'
4996 else
4997   am__fastdepCXX_TRUE='#'
4998   am__fastdepCXX_FALSE=
4999 fi
5000
5001
5002
5003
5004 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5005     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5006     (test "X$CXX" != "Xg++"))) ; then
5007   ac_ext=cc
5008 ac_cpp='$CXXCPP $CPPFLAGS'
5009 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5012 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5013 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5014 if test -z "$CXXCPP"; then
5015   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5016   echo $ECHO_N "(cached) $ECHO_C" >&6
5017 else
5018       # Double quotes because CXXCPP needs to be expanded
5019     for CXXCPP in "$CXX -E" "/lib/cpp"
5020     do
5021       ac_preproc_ok=false
5022 for ac_cxx_preproc_warn_flag in '' yes
5023 do
5024   # Use a header file that comes with gcc, so configuring glibc
5025   # with a fresh cross-compiler works.
5026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5027   # <limits.h> exists even on freestanding compilers.
5028   # On the NeXT, cc -E runs the code through the compiler's parser,
5029   # not just through cpp. "Syntax error" is here to catch this case.
5030   cat >conftest.$ac_ext <<_ACEOF
5031 /* confdefs.h.  */
5032 _ACEOF
5033 cat confdefs.h >>conftest.$ac_ext
5034 cat >>conftest.$ac_ext <<_ACEOF
5035 /* end confdefs.h.  */
5036 #ifdef __STDC__
5037 # include <limits.h>
5038 #else
5039 # include <assert.h>
5040 #endif
5041                      Syntax error
5042 _ACEOF
5043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5045   ac_status=$?
5046   grep -v '^ *+' conftest.er1 >conftest.err
5047   rm -f conftest.er1
5048   cat conftest.err >&5
5049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5050   (exit $ac_status); } >/dev/null; then
5051   if test -s conftest.err; then
5052     ac_cpp_err=$ac_cxx_preproc_warn_flag
5053     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5054   else
5055     ac_cpp_err=
5056   fi
5057 else
5058   ac_cpp_err=yes
5059 fi
5060 if test -z "$ac_cpp_err"; then
5061   :
5062 else
5063   echo "$as_me: failed program was:" >&5
5064 sed 's/^/| /' conftest.$ac_ext >&5
5065
5066   # Broken: fails on valid input.
5067 continue
5068 fi
5069 rm -f conftest.err conftest.$ac_ext
5070
5071   # OK, works on sane cases.  Now check whether non-existent headers
5072   # can be detected and how.
5073   cat >conftest.$ac_ext <<_ACEOF
5074 /* confdefs.h.  */
5075 _ACEOF
5076 cat confdefs.h >>conftest.$ac_ext
5077 cat >>conftest.$ac_ext <<_ACEOF
5078 /* end confdefs.h.  */
5079 #include <ac_nonexistent.h>
5080 _ACEOF
5081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5083   ac_status=$?
5084   grep -v '^ *+' conftest.er1 >conftest.err
5085   rm -f conftest.er1
5086   cat conftest.err >&5
5087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5088   (exit $ac_status); } >/dev/null; then
5089   if test -s conftest.err; then
5090     ac_cpp_err=$ac_cxx_preproc_warn_flag
5091     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5092   else
5093     ac_cpp_err=
5094   fi
5095 else
5096   ac_cpp_err=yes
5097 fi
5098 if test -z "$ac_cpp_err"; then
5099   # Broken: success on invalid input.
5100 continue
5101 else
5102   echo "$as_me: failed program was:" >&5
5103 sed 's/^/| /' conftest.$ac_ext >&5
5104
5105   # Passes both tests.
5106 ac_preproc_ok=:
5107 break
5108 fi
5109 rm -f conftest.err conftest.$ac_ext
5110
5111 done
5112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5113 rm -f conftest.err conftest.$ac_ext
5114 if $ac_preproc_ok; then
5115   break
5116 fi
5117
5118     done
5119     ac_cv_prog_CXXCPP=$CXXCPP
5120
5121 fi
5122   CXXCPP=$ac_cv_prog_CXXCPP
5123 else
5124   ac_cv_prog_CXXCPP=$CXXCPP
5125 fi
5126 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5127 echo "${ECHO_T}$CXXCPP" >&6
5128 ac_preproc_ok=false
5129 for ac_cxx_preproc_warn_flag in '' yes
5130 do
5131   # Use a header file that comes with gcc, so configuring glibc
5132   # with a fresh cross-compiler works.
5133   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5134   # <limits.h> exists even on freestanding compilers.
5135   # On the NeXT, cc -E runs the code through the compiler's parser,
5136   # not just through cpp. "Syntax error" is here to catch this case.
5137   cat >conftest.$ac_ext <<_ACEOF
5138 /* confdefs.h.  */
5139 _ACEOF
5140 cat confdefs.h >>conftest.$ac_ext
5141 cat >>conftest.$ac_ext <<_ACEOF
5142 /* end confdefs.h.  */
5143 #ifdef __STDC__
5144 # include <limits.h>
5145 #else
5146 # include <assert.h>
5147 #endif
5148                      Syntax error
5149 _ACEOF
5150 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5151   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5152   ac_status=$?
5153   grep -v '^ *+' conftest.er1 >conftest.err
5154   rm -f conftest.er1
5155   cat conftest.err >&5
5156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5157   (exit $ac_status); } >/dev/null; then
5158   if test -s conftest.err; then
5159     ac_cpp_err=$ac_cxx_preproc_warn_flag
5160     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5161   else
5162     ac_cpp_err=
5163   fi
5164 else
5165   ac_cpp_err=yes
5166 fi
5167 if test -z "$ac_cpp_err"; then
5168   :
5169 else
5170   echo "$as_me: failed program was:" >&5
5171 sed 's/^/| /' conftest.$ac_ext >&5
5172
5173   # Broken: fails on valid input.
5174 continue
5175 fi
5176 rm -f conftest.err conftest.$ac_ext
5177
5178   # OK, works on sane cases.  Now check whether non-existent headers
5179   # can be detected and how.
5180   cat >conftest.$ac_ext <<_ACEOF
5181 /* confdefs.h.  */
5182 _ACEOF
5183 cat confdefs.h >>conftest.$ac_ext
5184 cat >>conftest.$ac_ext <<_ACEOF
5185 /* end confdefs.h.  */
5186 #include <ac_nonexistent.h>
5187 _ACEOF
5188 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5189   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5190   ac_status=$?
5191   grep -v '^ *+' conftest.er1 >conftest.err
5192   rm -f conftest.er1
5193   cat conftest.err >&5
5194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5195   (exit $ac_status); } >/dev/null; then
5196   if test -s conftest.err; then
5197     ac_cpp_err=$ac_cxx_preproc_warn_flag
5198     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5199   else
5200     ac_cpp_err=
5201   fi
5202 else
5203   ac_cpp_err=yes
5204 fi
5205 if test -z "$ac_cpp_err"; then
5206   # Broken: success on invalid input.
5207 continue
5208 else
5209   echo "$as_me: failed program was:" >&5
5210 sed 's/^/| /' conftest.$ac_ext >&5
5211
5212   # Passes both tests.
5213 ac_preproc_ok=:
5214 break
5215 fi
5216 rm -f conftest.err conftest.$ac_ext
5217
5218 done
5219 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5220 rm -f conftest.err conftest.$ac_ext
5221 if $ac_preproc_ok; then
5222   :
5223 else
5224   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5225 See \`config.log' for more details." >&5
5226 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5227 See \`config.log' for more details." >&2;}
5228    { (exit 1); exit 1; }; }
5229 fi
5230
5231 ac_ext=cc
5232 ac_cpp='$CXXCPP $CPPFLAGS'
5233 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5234 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5235 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5236
5237 fi
5238
5239
5240 ac_ext=f
5241 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5242 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5243 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5244 if test -n "$ac_tool_prefix"; then
5245   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5246   do
5247     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5249 echo "$as_me:$LINENO: checking for $ac_word" >&5
5250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5251 if test "${ac_cv_prog_F77+set}" = set; then
5252   echo $ECHO_N "(cached) $ECHO_C" >&6
5253 else
5254   if test -n "$F77"; then
5255   ac_cv_prog_F77="$F77" # Let the user override the test.
5256 else
5257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5258 for as_dir in $PATH
5259 do
5260   IFS=$as_save_IFS
5261   test -z "$as_dir" && as_dir=.
5262   for ac_exec_ext in '' $ac_executable_extensions; do
5263   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5264     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5265     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5266     break 2
5267   fi
5268 done
5269 done
5270
5271 fi
5272 fi
5273 F77=$ac_cv_prog_F77
5274 if test -n "$F77"; then
5275   echo "$as_me:$LINENO: result: $F77" >&5
5276 echo "${ECHO_T}$F77" >&6
5277 else
5278   echo "$as_me:$LINENO: result: no" >&5
5279 echo "${ECHO_T}no" >&6
5280 fi
5281
5282     test -n "$F77" && break
5283   done
5284 fi
5285 if test -z "$F77"; then
5286   ac_ct_F77=$F77
5287   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5288 do
5289   # Extract the first word of "$ac_prog", so it can be a program name with args.
5290 set dummy $ac_prog; ac_word=$2
5291 echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5293 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5294   echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296   if test -n "$ac_ct_F77"; then
5297   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5298 else
5299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5300 for as_dir in $PATH
5301 do
5302   IFS=$as_save_IFS
5303   test -z "$as_dir" && as_dir=.
5304   for ac_exec_ext in '' $ac_executable_extensions; do
5305   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5306     ac_cv_prog_ac_ct_F77="$ac_prog"
5307     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5308     break 2
5309   fi
5310 done
5311 done
5312
5313 fi
5314 fi
5315 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5316 if test -n "$ac_ct_F77"; then
5317   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5318 echo "${ECHO_T}$ac_ct_F77" >&6
5319 else
5320   echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6
5322 fi
5323
5324   test -n "$ac_ct_F77" && break
5325 done
5326
5327   F77=$ac_ct_F77
5328 fi
5329
5330
5331 # Provide some information about the compiler.
5332 echo "$as_me:5332:" \
5333      "checking for Fortran 77 compiler version" >&5
5334 ac_compiler=`set X $ac_compile; echo $2`
5335 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5336   (eval $ac_compiler --version </dev/null >&5) 2>&5
5337   ac_status=$?
5338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5339   (exit $ac_status); }
5340 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5341   (eval $ac_compiler -v </dev/null >&5) 2>&5
5342   ac_status=$?
5343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5344   (exit $ac_status); }
5345 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5346   (eval $ac_compiler -V </dev/null >&5) 2>&5
5347   ac_status=$?
5348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5349   (exit $ac_status); }
5350 rm -f a.out
5351
5352 # If we don't use `.F' as extension, the preprocessor is not run on the
5353 # input file.  (Note that this only needs to work for GNU compilers.)
5354 ac_save_ext=$ac_ext
5355 ac_ext=F
5356 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5357 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5358 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5359   echo $ECHO_N "(cached) $ECHO_C" >&6
5360 else
5361   cat >conftest.$ac_ext <<_ACEOF
5362       program main
5363 #ifndef __GNUC__
5364        choke me
5365 #endif
5366
5367       end
5368 _ACEOF
5369 rm -f conftest.$ac_objext
5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5371   (eval $ac_compile) 2>conftest.er1
5372   ac_status=$?
5373   grep -v '^ *+' conftest.er1 >conftest.err
5374   rm -f conftest.er1
5375   cat conftest.err >&5
5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377   (exit $ac_status); } &&
5378          { ac_try='test -z "$ac_f77_werror_flag"
5379                          || test ! -s conftest.err'
5380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5381   (eval $ac_try) 2>&5
5382   ac_status=$?
5383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384   (exit $ac_status); }; } &&
5385          { ac_try='test -s conftest.$ac_objext'
5386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5387   (eval $ac_try) 2>&5
5388   ac_status=$?
5389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5390   (exit $ac_status); }; }; then
5391   ac_compiler_gnu=yes
5392 else
5393   echo "$as_me: failed program was:" >&5
5394 sed 's/^/| /' conftest.$ac_ext >&5
5395
5396 ac_compiler_gnu=no
5397 fi
5398 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5400
5401 fi
5402 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5403 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5404 ac_ext=$ac_save_ext
5405 ac_test_FFLAGS=${FFLAGS+set}
5406 ac_save_FFLAGS=$FFLAGS
5407 FFLAGS=
5408 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5409 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5410 if test "${ac_cv_prog_f77_g+set}" = set; then
5411   echo $ECHO_N "(cached) $ECHO_C" >&6
5412 else
5413   FFLAGS=-g
5414 cat >conftest.$ac_ext <<_ACEOF
5415       program main
5416
5417       end
5418 _ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421   (eval $ac_compile) 2>conftest.er1
5422   ac_status=$?
5423   grep -v '^ *+' conftest.er1 >conftest.err
5424   rm -f conftest.er1
5425   cat conftest.err >&5
5426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427   (exit $ac_status); } &&
5428          { ac_try='test -z "$ac_f77_werror_flag"
5429                          || test ! -s conftest.err'
5430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5431   (eval $ac_try) 2>&5
5432   ac_status=$?
5433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5434   (exit $ac_status); }; } &&
5435          { ac_try='test -s conftest.$ac_objext'
5436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5437   (eval $ac_try) 2>&5
5438   ac_status=$?
5439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440   (exit $ac_status); }; }; then
5441   ac_cv_prog_f77_g=yes
5442 else
5443   echo "$as_me: failed program was:" >&5
5444 sed 's/^/| /' conftest.$ac_ext >&5
5445
5446 ac_cv_prog_f77_g=no
5447 fi
5448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5449
5450 fi
5451 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5452 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5453 if test "$ac_test_FFLAGS" = set; then
5454   FFLAGS=$ac_save_FFLAGS
5455 elif test $ac_cv_prog_f77_g = yes; then
5456   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5457     FFLAGS="-g -O2"
5458   else
5459     FFLAGS="-g"
5460   fi
5461 else
5462   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5463     FFLAGS="-O2"
5464   else
5465     FFLAGS=
5466   fi
5467 fi
5468
5469 G77=`test $ac_compiler_gnu = yes && echo yes`
5470 ac_ext=c
5471 ac_cpp='$CPP $CPPFLAGS'
5472 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5475
5476
5477
5478 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5479
5480 # find the maximum length of command line arguments
5481 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5482 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5483 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5484   echo $ECHO_N "(cached) $ECHO_C" >&6
5485 else
5486     i=0
5487   teststring="ABCD"
5488
5489   case $build_os in
5490   msdosdjgpp*)
5491     # On DJGPP, this test can blow up pretty badly due to problems in libc
5492     # (any single argument exceeding 2000 bytes causes a buffer overrun
5493     # during glob expansion).  Even if it were fixed, the result of this
5494     # check would be larger than it should be.
5495     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5496     ;;
5497
5498   gnu*)
5499     # Under GNU Hurd, this test is not required because there is
5500     # no limit to the length of command line arguments.
5501     # Libtool will interpret -1 as no limit whatsoever
5502     lt_cv_sys_max_cmd_len=-1;
5503     ;;
5504
5505   cygwin* | mingw*)
5506     # On Win9x/ME, this test blows up -- it succeeds, but takes
5507     # about 5 minutes as the teststring grows exponentially.
5508     # Worse, since 9x/ME are not pre-emptively multitasking,
5509     # you end up with a "frozen" computer, even though with patience
5510     # the test eventually succeeds (with a max line length of 256k).
5511     # Instead, let's just punt: use the minimum linelength reported by
5512     # all of the supported platforms: 8192 (on NT/2K/XP).
5513     lt_cv_sys_max_cmd_len=8192;
5514     ;;
5515
5516   amigaos*)
5517     # On AmigaOS with pdksh, this test takes hours, literally.
5518     # So we just punt and use a minimum line length of 8192.
5519     lt_cv_sys_max_cmd_len=8192;
5520     ;;
5521
5522   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5523     # This has been around since 386BSD, at least.  Likely further.
5524     if test -x /sbin/sysctl; then
5525       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5526     elif test -x /usr/sbin/sysctl; then
5527       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5528     else
5529       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5530     fi
5531     # And add a safety zone
5532     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5533     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5534     ;;
5535
5536   interix*)
5537     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5538     lt_cv_sys_max_cmd_len=196608
5539     ;;
5540
5541   osf*)
5542     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5543     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5544     # nice to cause kernel panics so lets avoid the loop below.
5545     # First set a reasonable default.
5546     lt_cv_sys_max_cmd_len=16384
5547     #
5548     if test -x /sbin/sysconfig; then
5549       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5550         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5551       esac
5552     fi
5553     ;;
5554   sco3.2v5*)
5555     lt_cv_sys_max_cmd_len=102400
5556     ;;
5557   sysv5* | sco5v6* | sysv4.2uw2*)
5558     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5559     if test -n "$kargmax"; then
5560       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5561     else
5562       lt_cv_sys_max_cmd_len=32768
5563     fi
5564     ;;
5565   *)
5566     # If test is not a shell built-in, we'll probably end up computing a
5567     # maximum length that is only half of the actual maximum length, but
5568     # we can't tell.
5569     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5570     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5571                = "XX$teststring") >/dev/null 2>&1 &&
5572             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5573             lt_cv_sys_max_cmd_len=$new_result &&
5574             test $i != 17 # 1/2 MB should be enough
5575     do
5576       i=`expr $i + 1`
5577       teststring=$teststring$teststring
5578     done
5579     teststring=
5580     # Add a significant safety factor because C++ compilers can tack on massive
5581     # amounts of additional arguments before passing them to the linker.
5582     # It appears as though 1/2 is a usable value.
5583     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5584     ;;
5585   esac
5586
5587 fi
5588
5589 if test -n $lt_cv_sys_max_cmd_len ; then
5590   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5591 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5592 else
5593   echo "$as_me:$LINENO: result: none" >&5
5594 echo "${ECHO_T}none" >&6
5595 fi
5596
5597
5598
5599
5600 # Check for command to grab the raw symbol name followed by C symbol from nm.
5601 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5602 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5603 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5604   echo $ECHO_N "(cached) $ECHO_C" >&6
5605 else
5606
5607 # These are sane defaults that work on at least a few old systems.
5608 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5609
5610 # Character class describing NM global symbol codes.
5611 symcode='[BCDEGRST]'
5612
5613 # Regexp to match symbols that can be accessed directly from C.
5614 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5615
5616 # Transform an extracted symbol line into a proper C declaration
5617 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5618
5619 # Transform an extracted symbol line into symbol name and symbol address
5620 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'"
5621
5622 # Define system-specific variables.
5623 case $host_os in
5624 aix*)
5625   symcode='[BCDT]'
5626   ;;
5627 cygwin* | mingw* | pw32*)
5628   symcode='[ABCDGISTW]'
5629   ;;
5630 hpux*) # Its linker distinguishes data from code symbols
5631   if test "$host_cpu" = ia64; then
5632     symcode='[ABCDEGRST]'
5633   fi
5634   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5635   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'"
5636   ;;
5637 linux*)
5638   if test "$host_cpu" = ia64; then
5639     symcode='[ABCDGIRSTW]'
5640     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5641     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'"
5642   fi
5643   ;;
5644 irix* | nonstopux*)
5645   symcode='[BCDEGRST]'
5646   ;;
5647 osf*)
5648   symcode='[BCDEGQRST]'
5649   ;;
5650 solaris*)
5651   symcode='[BDRT]'
5652   ;;
5653 sco3.2v5*)
5654   symcode='[DT]'
5655   ;;
5656 sysv4.2uw2*)
5657   symcode='[DT]'
5658   ;;
5659 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5660   symcode='[ABDT]'
5661   ;;
5662 sysv4)
5663   symcode='[DFNSTU]'
5664   ;;
5665 esac
5666
5667 # Handle CRLF in mingw tool chain
5668 opt_cr=
5669 case $build_os in
5670 mingw*)
5671   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5672   ;;
5673 esac
5674
5675 # If we're using GNU nm, then use its standard symbol codes.
5676 case `$NM -V 2>&1` in
5677 *GNU* | *'with BFD'*)
5678   symcode='[ABCDGIRSTW]' ;;
5679 esac
5680
5681 # Try without a prefix undercore, then with it.
5682 for ac_symprfx in "" "_"; do
5683
5684   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5685   symxfrm="\\1 $ac_symprfx\\2 \\2"
5686
5687   # Write the raw and C identifiers.
5688   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5689
5690   # Check to see that the pipe works correctly.
5691   pipe_works=no
5692
5693   rm -f conftest*
5694   cat > conftest.$ac_ext <<EOF
5695 #ifdef __cplusplus
5696 extern "C" {
5697 #endif
5698 char nm_test_var;
5699 void nm_test_func(){}
5700 #ifdef __cplusplus
5701 }
5702 #endif
5703 int main(){nm_test_var='a';nm_test_func();return(0);}
5704 EOF
5705
5706   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5707   (eval $ac_compile) 2>&5
5708   ac_status=$?
5709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5710   (exit $ac_status); }; then
5711     # Now try to grab the symbols.
5712     nlist=conftest.nm
5713     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5714   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5715   ac_status=$?
5716   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717   (exit $ac_status); } && test -s "$nlist"; then
5718       # Try sorting and uniquifying the output.
5719       if sort "$nlist" | uniq > "$nlist"T; then
5720         mv -f "$nlist"T "$nlist"
5721       else
5722         rm -f "$nlist"T
5723       fi
5724
5725       # Make sure that we snagged all the symbols we need.
5726       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5727         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5728           cat <<EOF > conftest.$ac_ext
5729 #ifdef __cplusplus
5730 extern "C" {
5731 #endif
5732
5733 EOF
5734           # Now generate the symbol file.
5735           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5736
5737           cat <<EOF >> conftest.$ac_ext
5738 #if defined (__STDC__) && __STDC__
5739 # define lt_ptr_t void *
5740 #else
5741 # define lt_ptr_t char *
5742 # define const
5743 #endif
5744
5745 /* The mapping between symbol names and symbols. */
5746 const struct {
5747   const char *name;
5748   lt_ptr_t address;
5749 }
5750 lt_preloaded_symbols[] =
5751 {
5752 EOF
5753           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5754           cat <<\EOF >> conftest.$ac_ext
5755   {0, (lt_ptr_t) 0}
5756 };
5757
5758 #ifdef __cplusplus
5759 }
5760 #endif
5761 EOF
5762           # Now try linking the two files.
5763           mv conftest.$ac_objext conftstm.$ac_objext
5764           lt_save_LIBS="$LIBS"
5765           lt_save_CFLAGS="$CFLAGS"
5766           LIBS="conftstm.$ac_objext"
5767           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5768           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5769   (eval $ac_link) 2>&5
5770   ac_status=$?
5771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5773             pipe_works=yes
5774           fi
5775           LIBS="$lt_save_LIBS"
5776           CFLAGS="$lt_save_CFLAGS"
5777         else
5778           echo "cannot find nm_test_func in $nlist" >&5
5779         fi
5780       else
5781         echo "cannot find nm_test_var in $nlist" >&5
5782       fi
5783     else
5784       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5785     fi
5786   else
5787     echo "$progname: failed program was:" >&5
5788     cat conftest.$ac_ext >&5
5789   fi
5790   rm -f conftest* conftst*
5791
5792   # Do not use the global_symbol_pipe unless it works.
5793   if test "$pipe_works" = yes; then
5794     break
5795   else
5796     lt_cv_sys_global_symbol_pipe=
5797   fi
5798 done
5799
5800 fi
5801
5802 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5803   lt_cv_sys_global_symbol_to_cdecl=
5804 fi
5805 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5806   echo "$as_me:$LINENO: result: failed" >&5
5807 echo "${ECHO_T}failed" >&6
5808 else
5809   echo "$as_me:$LINENO: result: ok" >&5
5810 echo "${ECHO_T}ok" >&6
5811 fi
5812
5813 echo "$as_me:$LINENO: checking for objdir" >&5
5814 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5815 if test "${lt_cv_objdir+set}" = set; then
5816   echo $ECHO_N "(cached) $ECHO_C" >&6
5817 else
5818   rm -f .libs 2>/dev/null
5819 mkdir .libs 2>/dev/null
5820 if test -d .libs; then
5821   lt_cv_objdir=.libs
5822 else
5823   # MS-DOS does not allow filenames that begin with a dot.
5824   lt_cv_objdir=_libs
5825 fi
5826 rmdir .libs 2>/dev/null
5827 fi
5828 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5829 echo "${ECHO_T}$lt_cv_objdir" >&6
5830 objdir=$lt_cv_objdir
5831
5832
5833
5834
5835
5836 case $host_os in
5837 aix3*)
5838   # AIX sometimes has problems with the GCC collect2 program.  For some
5839   # reason, if we set the COLLECT_NAMES environment variable, the problems
5840   # vanish in a puff of smoke.
5841   if test "X${COLLECT_NAMES+set}" != Xset; then
5842     COLLECT_NAMES=
5843     export COLLECT_NAMES
5844   fi
5845   ;;
5846 esac
5847
5848 # Sed substitution that helps us do robust quoting.  It backslashifies
5849 # metacharacters that are still active within double-quoted strings.
5850 Xsed='sed -e 1s/^X//'
5851 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5852
5853 # Same as above, but do not quote variable references.
5854 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5855
5856 # Sed substitution to delay expansion of an escaped shell variable in a
5857 # double_quote_subst'ed string.
5858 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5859
5860 # Sed substitution to avoid accidental globbing in evaled expressions
5861 no_glob_subst='s/\*/\\\*/g'
5862
5863 # Constants:
5864 rm="rm -f"
5865
5866 # Global variables:
5867 default_ofile=libtool
5868 can_build_shared=yes
5869
5870 # All known linkers require a `.a' archive for static linking (except MSVC,
5871 # which needs '.lib').
5872 libext=a
5873 ltmain="$ac_aux_dir/ltmain.sh"
5874 ofile="$default_ofile"
5875 with_gnu_ld="$lt_cv_prog_gnu_ld"
5876
5877 if test -n "$ac_tool_prefix"; then
5878   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5879 set dummy ${ac_tool_prefix}ar; ac_word=$2
5880 echo "$as_me:$LINENO: checking for $ac_word" >&5
5881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5882 if test "${ac_cv_prog_AR+set}" = set; then
5883   echo $ECHO_N "(cached) $ECHO_C" >&6
5884 else
5885   if test -n "$AR"; then
5886   ac_cv_prog_AR="$AR" # Let the user override the test.
5887 else
5888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5889 for as_dir in $PATH
5890 do
5891   IFS=$as_save_IFS
5892   test -z "$as_dir" && as_dir=.
5893   for ac_exec_ext in '' $ac_executable_extensions; do
5894   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5895     ac_cv_prog_AR="${ac_tool_prefix}ar"
5896     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5897     break 2
5898   fi
5899 done
5900 done
5901
5902 fi
5903 fi
5904 AR=$ac_cv_prog_AR
5905 if test -n "$AR"; then
5906   echo "$as_me:$LINENO: result: $AR" >&5
5907 echo "${ECHO_T}$AR" >&6
5908 else
5909   echo "$as_me:$LINENO: result: no" >&5
5910 echo "${ECHO_T}no" >&6
5911 fi
5912
5913 fi
5914 if test -z "$ac_cv_prog_AR"; then
5915   ac_ct_AR=$AR
5916   # Extract the first word of "ar", so it can be a program name with args.
5917 set dummy ar; ac_word=$2
5918 echo "$as_me:$LINENO: checking for $ac_word" >&5
5919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5920 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5921   echo $ECHO_N "(cached) $ECHO_C" >&6
5922 else
5923   if test -n "$ac_ct_AR"; then
5924   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5925 else
5926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5927 for as_dir in $PATH
5928 do
5929   IFS=$as_save_IFS
5930   test -z "$as_dir" && as_dir=.
5931   for ac_exec_ext in '' $ac_executable_extensions; do
5932   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5933     ac_cv_prog_ac_ct_AR="ar"
5934     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5935     break 2
5936   fi
5937 done
5938 done
5939
5940   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5941 fi
5942 fi
5943 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5944 if test -n "$ac_ct_AR"; then
5945   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5946 echo "${ECHO_T}$ac_ct_AR" >&6
5947 else
5948   echo "$as_me:$LINENO: result: no" >&5
5949 echo "${ECHO_T}no" >&6
5950 fi
5951
5952   AR=$ac_ct_AR
5953 else
5954   AR="$ac_cv_prog_AR"
5955 fi
5956
5957 if test -n "$ac_tool_prefix"; then
5958   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5960 echo "$as_me:$LINENO: checking for $ac_word" >&5
5961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5962 if test "${ac_cv_prog_RANLIB+set}" = set; then
5963   echo $ECHO_N "(cached) $ECHO_C" >&6
5964 else
5965   if test -n "$RANLIB"; then
5966   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5967 else
5968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5969 for as_dir in $PATH
5970 do
5971   IFS=$as_save_IFS
5972   test -z "$as_dir" && as_dir=.
5973   for ac_exec_ext in '' $ac_executable_extensions; do
5974   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5975     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5976     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5977     break 2
5978   fi
5979 done
5980 done
5981
5982 fi
5983 fi
5984 RANLIB=$ac_cv_prog_RANLIB
5985 if test -n "$RANLIB"; then
5986   echo "$as_me:$LINENO: result: $RANLIB" >&5
5987 echo "${ECHO_T}$RANLIB" >&6
5988 else
5989   echo "$as_me:$LINENO: result: no" >&5
5990 echo "${ECHO_T}no" >&6
5991 fi
5992
5993 fi
5994 if test -z "$ac_cv_prog_RANLIB"; then
5995   ac_ct_RANLIB=$RANLIB
5996   # Extract the first word of "ranlib", so it can be a program name with args.
5997 set dummy ranlib; ac_word=$2
5998 echo "$as_me:$LINENO: checking for $ac_word" >&5
5999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6000 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6001   echo $ECHO_N "(cached) $ECHO_C" >&6
6002 else
6003   if test -n "$ac_ct_RANLIB"; then
6004   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6005 else
6006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6007 for as_dir in $PATH
6008 do
6009   IFS=$as_save_IFS
6010   test -z "$as_dir" && as_dir=.
6011   for ac_exec_ext in '' $ac_executable_extensions; do
6012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6013     ac_cv_prog_ac_ct_RANLIB="ranlib"
6014     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6015     break 2
6016   fi
6017 done
6018 done
6019
6020   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6021 fi
6022 fi
6023 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6024 if test -n "$ac_ct_RANLIB"; then
6025   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6026 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6027 else
6028   echo "$as_me:$LINENO: result: no" >&5
6029 echo "${ECHO_T}no" >&6
6030 fi
6031
6032   RANLIB=$ac_ct_RANLIB
6033 else
6034   RANLIB="$ac_cv_prog_RANLIB"
6035 fi
6036
6037 if test -n "$ac_tool_prefix"; then
6038   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6039 set dummy ${ac_tool_prefix}strip; ac_word=$2
6040 echo "$as_me:$LINENO: checking for $ac_word" >&5
6041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6042 if test "${ac_cv_prog_STRIP+set}" = set; then
6043   echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045   if test -n "$STRIP"; then
6046   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
6051   IFS=$as_save_IFS
6052   test -z "$as_dir" && as_dir=.
6053   for ac_exec_ext in '' $ac_executable_extensions; do
6054   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6056     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6057     break 2
6058   fi
6059 done
6060 done
6061
6062 fi
6063 fi
6064 STRIP=$ac_cv_prog_STRIP
6065 if test -n "$STRIP"; then
6066   echo "$as_me:$LINENO: result: $STRIP" >&5
6067 echo "${ECHO_T}$STRIP" >&6
6068 else
6069   echo "$as_me:$LINENO: result: no" >&5
6070 echo "${ECHO_T}no" >&6
6071 fi
6072
6073 fi
6074 if test -z "$ac_cv_prog_STRIP"; then
6075   ac_ct_STRIP=$STRIP
6076   # Extract the first word of "strip", so it can be a program name with args.
6077 set dummy strip; ac_word=$2
6078 echo "$as_me:$LINENO: checking for $ac_word" >&5
6079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6080 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6081   echo $ECHO_N "(cached) $ECHO_C" >&6
6082 else
6083   if test -n "$ac_ct_STRIP"; then
6084   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6085 else
6086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6087 for as_dir in $PATH
6088 do
6089   IFS=$as_save_IFS
6090   test -z "$as_dir" && as_dir=.
6091   for ac_exec_ext in '' $ac_executable_extensions; do
6092   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6093     ac_cv_prog_ac_ct_STRIP="strip"
6094     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095     break 2
6096   fi
6097 done
6098 done
6099
6100   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6101 fi
6102 fi
6103 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6104 if test -n "$ac_ct_STRIP"; then
6105   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6106 echo "${ECHO_T}$ac_ct_STRIP" >&6
6107 else
6108   echo "$as_me:$LINENO: result: no" >&5
6109 echo "${ECHO_T}no" >&6
6110 fi
6111
6112   STRIP=$ac_ct_STRIP
6113 else
6114   STRIP="$ac_cv_prog_STRIP"
6115 fi
6116
6117
6118 old_CC="$CC"
6119 old_CFLAGS="$CFLAGS"
6120
6121 # Set sane defaults for various variables
6122 test -z "$AR" && AR=ar
6123 test -z "$AR_FLAGS" && AR_FLAGS=cru
6124 test -z "$AS" && AS=as
6125 test -z "$CC" && CC=cc
6126 test -z "$LTCC" && LTCC=$CC
6127 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6128 test -z "$DLLTOOL" && DLLTOOL=dlltool
6129 test -z "$LD" && LD=ld
6130 test -z "$LN_S" && LN_S="ln -s"
6131 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6132 test -z "$NM" && NM=nm
6133 test -z "$SED" && SED=sed
6134 test -z "$OBJDUMP" && OBJDUMP=objdump
6135 test -z "$RANLIB" && RANLIB=:
6136 test -z "$STRIP" && STRIP=:
6137 test -z "$ac_objext" && ac_objext=o
6138
6139 # Determine commands to create old-style static archives.
6140 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6141 old_postinstall_cmds='chmod 644 $oldlib'
6142 old_postuninstall_cmds=
6143
6144 if test -n "$RANLIB"; then
6145   case $host_os in
6146   openbsd*)
6147     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6148     ;;
6149   *)
6150     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6151     ;;
6152   esac
6153   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6154 fi
6155
6156 for cc_temp in $compiler""; do
6157   case $cc_temp in
6158     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6159     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6160     \-*) ;;
6161     *) break;;
6162   esac
6163 done
6164 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6165
6166
6167 # Only perform the check for file, if the check method requires it
6168 case $deplibs_check_method in
6169 file_magic*)
6170   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6171     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6172 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6173 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6174   echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176   case $MAGIC_CMD in
6177 [\\/*] |  ?:[\\/]*)
6178   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6179   ;;
6180 *)
6181   lt_save_MAGIC_CMD="$MAGIC_CMD"
6182   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6183   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6184   for ac_dir in $ac_dummy; do
6185     IFS="$lt_save_ifs"
6186     test -z "$ac_dir" && ac_dir=.
6187     if test -f $ac_dir/${ac_tool_prefix}file; then
6188       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6189       if test -n "$file_magic_test_file"; then
6190         case $deplibs_check_method in
6191         "file_magic "*)
6192           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6193           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6194           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6195             $EGREP "$file_magic_regex" > /dev/null; then
6196             :
6197           else
6198             cat <<EOF 1>&2
6199
6200 *** Warning: the command libtool uses to detect shared libraries,
6201 *** $file_magic_cmd, produces output that libtool cannot recognize.
6202 *** The result is that libtool may fail to recognize shared libraries
6203 *** as such.  This will affect the creation of libtool libraries that
6204 *** depend on shared libraries, but programs linked with such libtool
6205 *** libraries will work regardless of this problem.  Nevertheless, you
6206 *** may want to report the problem to your system manager and/or to
6207 *** bug-libtool@gnu.org
6208
6209 EOF
6210           fi ;;
6211         esac
6212       fi
6213       break
6214     fi
6215   done
6216   IFS="$lt_save_ifs"
6217   MAGIC_CMD="$lt_save_MAGIC_CMD"
6218   ;;
6219 esac
6220 fi
6221
6222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6223 if test -n "$MAGIC_CMD"; then
6224   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6225 echo "${ECHO_T}$MAGIC_CMD" >&6
6226 else
6227   echo "$as_me:$LINENO: result: no" >&5
6228 echo "${ECHO_T}no" >&6
6229 fi
6230
6231 if test -z "$lt_cv_path_MAGIC_CMD"; then
6232   if test -n "$ac_tool_prefix"; then
6233     echo "$as_me:$LINENO: checking for file" >&5
6234 echo $ECHO_N "checking for file... $ECHO_C" >&6
6235 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6236   echo $ECHO_N "(cached) $ECHO_C" >&6
6237 else
6238   case $MAGIC_CMD in
6239 [\\/*] |  ?:[\\/]*)
6240   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6241   ;;
6242 *)
6243   lt_save_MAGIC_CMD="$MAGIC_CMD"
6244   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6245   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6246   for ac_dir in $ac_dummy; do
6247     IFS="$lt_save_ifs"
6248     test -z "$ac_dir" && ac_dir=.
6249     if test -f $ac_dir/file; then
6250       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6251       if test -n "$file_magic_test_file"; then
6252         case $deplibs_check_method in
6253         "file_magic "*)
6254           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6255           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6256           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6257             $EGREP "$file_magic_regex" > /dev/null; then
6258             :
6259           else
6260             cat <<EOF 1>&2
6261
6262 *** Warning: the command libtool uses to detect shared libraries,
6263 *** $file_magic_cmd, produces output that libtool cannot recognize.
6264 *** The result is that libtool may fail to recognize shared libraries
6265 *** as such.  This will affect the creation of libtool libraries that
6266 *** depend on shared libraries, but programs linked with such libtool
6267 *** libraries will work regardless of this problem.  Nevertheless, you
6268 *** may want to report the problem to your system manager and/or to
6269 *** bug-libtool@gnu.org
6270
6271 EOF
6272           fi ;;
6273         esac
6274       fi
6275       break
6276     fi
6277   done
6278   IFS="$lt_save_ifs"
6279   MAGIC_CMD="$lt_save_MAGIC_CMD"
6280   ;;
6281 esac
6282 fi
6283
6284 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6285 if test -n "$MAGIC_CMD"; then
6286   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6287 echo "${ECHO_T}$MAGIC_CMD" >&6
6288 else
6289   echo "$as_me:$LINENO: result: no" >&5
6290 echo "${ECHO_T}no" >&6
6291 fi
6292
6293   else
6294     MAGIC_CMD=:
6295   fi
6296 fi
6297
6298   fi
6299   ;;
6300 esac
6301
6302 enable_dlopen=no
6303 enable_win32_dll=no
6304
6305 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6306 if test "${enable_libtool_lock+set}" = set; then
6307   enableval="$enable_libtool_lock"
6308
6309 fi;
6310 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6311
6312
6313 # Check whether --with-pic or --without-pic was given.
6314 if test "${with_pic+set}" = set; then
6315   withval="$with_pic"
6316   pic_mode="$withval"
6317 else
6318   pic_mode=default
6319 fi;
6320 test -z "$pic_mode" && pic_mode=default
6321
6322 # Use C for the default configuration in the libtool script
6323 tagname=
6324 lt_save_CC="$CC"
6325 ac_ext=c
6326 ac_cpp='$CPP $CPPFLAGS'
6327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6330
6331
6332 # Source file extension for C test sources.
6333 ac_ext=c
6334
6335 # Object file extension for compiled C test sources.
6336 objext=o
6337 objext=$objext
6338
6339 # Code to be used in simple compile tests
6340 lt_simple_compile_test_code="int some_variable = 0;\n"
6341
6342 # Code to be used in simple link tests
6343 lt_simple_link_test_code='int main(){return(0);}\n'
6344
6345
6346 # If no C compiler was specified, use CC.
6347 LTCC=${LTCC-"$CC"}
6348
6349 # If no C compiler flags were specified, use CFLAGS.
6350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6351
6352 # Allow CC to be a program name with arguments.
6353 compiler=$CC
6354
6355
6356 # save warnings/boilerplate of simple test code
6357 ac_outfile=conftest.$ac_objext
6358 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6359 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6360 _lt_compiler_boilerplate=`cat conftest.err`
6361 $rm conftest*
6362
6363 ac_outfile=conftest.$ac_objext
6364 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6365 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6366 _lt_linker_boilerplate=`cat conftest.err`
6367 $rm conftest*
6368
6369
6370
6371 lt_prog_compiler_no_builtin_flag=
6372
6373 if test "$GCC" = yes; then
6374   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6375
6376
6377 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6378 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6379 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6380   echo $ECHO_N "(cached) $ECHO_C" >&6
6381 else
6382   lt_cv_prog_compiler_rtti_exceptions=no
6383   ac_outfile=conftest.$ac_objext
6384    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6385    lt_compiler_flag="-fno-rtti -fno-exceptions"
6386    # Insert the option either (1) after the last *FLAGS variable, or
6387    # (2) before a word containing "conftest.", or (3) at the end.
6388    # Note that $ac_compile itself does not contain backslashes and begins
6389    # with a dollar sign (not a hyphen), so the echo should work correctly.
6390    # The option is referenced via a variable to avoid confusing sed.
6391    lt_compile=`echo "$ac_compile" | $SED \
6392    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6393    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6394    -e 's:$: $lt_compiler_flag:'`
6395    (eval echo "\"\$as_me:6395: $lt_compile\"" >&5)
6396    (eval "$lt_compile" 2>conftest.err)
6397    ac_status=$?
6398    cat conftest.err >&5
6399    echo "$as_me:6399: \$? = $ac_status" >&5
6400    if (exit $ac_status) && test -s "$ac_outfile"; then
6401      # The compiler can only warn and ignore the option if not recognized
6402      # So say no if there are warnings other than the usual output.
6403      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6404      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6405      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6406        lt_cv_prog_compiler_rtti_exceptions=yes
6407      fi
6408    fi
6409    $rm conftest*
6410
6411 fi
6412 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6413 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6414
6415 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6416     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6417 else
6418     :
6419 fi
6420
6421 fi
6422
6423 lt_prog_compiler_wl=
6424 lt_prog_compiler_pic=
6425 lt_prog_compiler_static=
6426
6427 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6428 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6429
6430   if test "$GCC" = yes; then
6431     lt_prog_compiler_wl='-Wl,'
6432     lt_prog_compiler_static='-static'
6433
6434     case $host_os in
6435       aix*)
6436       # All AIX code is PIC.
6437       if test "$host_cpu" = ia64; then
6438         # AIX 5 now supports IA64 processor
6439         lt_prog_compiler_static='-Bstatic'
6440       fi
6441       ;;
6442
6443     amigaos*)
6444       # FIXME: we need at least 68020 code to build shared libraries, but
6445       # adding the `-m68020' flag to GCC prevents building anything better,
6446       # like `-m68040'.
6447       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6448       ;;
6449
6450     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6451       # PIC is the default for these OSes.
6452       ;;
6453
6454     mingw* | pw32* | os2*)
6455       # This hack is so that the source file can tell whether it is being
6456       # built for inclusion in a dll (and should export symbols for example).
6457       lt_prog_compiler_pic='-DDLL_EXPORT'
6458       ;;
6459
6460     darwin* | rhapsody*)
6461       # PIC is the default on this platform
6462       # Common symbols not allowed in MH_DYLIB files
6463       lt_prog_compiler_pic='-fno-common'
6464       ;;
6465
6466     interix3*)
6467       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6468       # Instead, we relocate shared libraries at runtime.
6469       ;;
6470
6471     msdosdjgpp*)
6472       # Just because we use GCC doesn't mean we suddenly get shared libraries
6473       # on systems that don't support them.
6474       lt_prog_compiler_can_build_shared=no
6475       enable_shared=no
6476       ;;
6477
6478     sysv4*MP*)
6479       if test -d /usr/nec; then
6480         lt_prog_compiler_pic=-Kconform_pic
6481       fi
6482       ;;
6483
6484     hpux*)
6485       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6486       # not for PA HP-UX.
6487       case $host_cpu in
6488       hppa*64*|ia64*)
6489         # +Z the default
6490         ;;
6491       *)
6492         lt_prog_compiler_pic='-fPIC'
6493         ;;
6494       esac
6495       ;;
6496
6497     *)
6498       lt_prog_compiler_pic='-fPIC'
6499       ;;
6500     esac
6501   else
6502     # PORTME Check for flag to pass linker flags through the system compiler.
6503     case $host_os in
6504     aix*)
6505       lt_prog_compiler_wl='-Wl,'
6506       if test "$host_cpu" = ia64; then
6507         # AIX 5 now supports IA64 processor
6508         lt_prog_compiler_static='-Bstatic'
6509       else
6510         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6511       fi
6512       ;;
6513       darwin*)
6514         # PIC is the default on this platform
6515         # Common symbols not allowed in MH_DYLIB files
6516        case $cc_basename in
6517          xlc*)
6518          lt_prog_compiler_pic='-qnocommon'
6519          lt_prog_compiler_wl='-Wl,'
6520          ;;
6521        esac
6522        ;;
6523
6524     mingw* | pw32* | os2*)
6525       # This hack is so that the source file can tell whether it is being
6526       # built for inclusion in a dll (and should export symbols for example).
6527       lt_prog_compiler_pic='-DDLL_EXPORT'
6528       ;;
6529
6530     hpux9* | hpux10* | hpux11*)
6531       lt_prog_compiler_wl='-Wl,'
6532       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6533       # not for PA HP-UX.
6534       case $host_cpu in
6535       hppa*64*|ia64*)
6536         # +Z the default
6537         ;;
6538       *)
6539         lt_prog_compiler_pic='+Z'
6540         ;;
6541       esac
6542       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6543       lt_prog_compiler_static='${wl}-a ${wl}archive'
6544       ;;
6545
6546     irix5* | irix6* | nonstopux*)
6547       lt_prog_compiler_wl='-Wl,'
6548       # PIC (with -KPIC) is the default.
6549       lt_prog_compiler_static='-non_shared'
6550       ;;
6551
6552     newsos6)
6553       lt_prog_compiler_pic='-KPIC'
6554       lt_prog_compiler_static='-Bstatic'
6555       ;;
6556
6557     linux*)
6558       case $cc_basename in
6559       icc* | ecc*)
6560         lt_prog_compiler_wl='-Wl,'
6561         lt_prog_compiler_pic='-KPIC'
6562         lt_prog_compiler_static='-static'
6563         ;;
6564       pgcc* | pgf77* | pgf90* | pgf95*)
6565         # Portland Group compilers (*not* the Pentium gcc compiler,
6566         # which looks to be a dead project)
6567         lt_prog_compiler_wl='-Wl,'
6568         lt_prog_compiler_pic='-fpic'
6569         lt_prog_compiler_static='-Bstatic'
6570         ;;
6571       ccc*)
6572         lt_prog_compiler_wl='-Wl,'
6573         # All Alpha code is PIC.
6574         lt_prog_compiler_static='-non_shared'
6575         ;;
6576       esac
6577       ;;
6578
6579     osf3* | osf4* | osf5*)
6580       lt_prog_compiler_wl='-Wl,'
6581       # All OSF/1 code is PIC.
6582       lt_prog_compiler_static='-non_shared'
6583       ;;
6584
6585     solaris*)
6586       lt_prog_compiler_pic='-KPIC'
6587       lt_prog_compiler_static='-Bstatic'
6588       case $cc_basename in
6589       f77* | f90* | f95*)
6590         lt_prog_compiler_wl='-Qoption ld ';;
6591       *)
6592         lt_prog_compiler_wl='-Wl,';;
6593       esac
6594       ;;
6595
6596     sunos4*)
6597       lt_prog_compiler_wl='-Qoption ld '
6598       lt_prog_compiler_pic='-PIC'
6599       lt_prog_compiler_static='-Bstatic'
6600       ;;
6601
6602     sysv4 | sysv4.2uw2* | sysv4.3*)
6603       lt_prog_compiler_wl='-Wl,'
6604       lt_prog_compiler_pic='-KPIC'
6605       lt_prog_compiler_static='-Bstatic'
6606       ;;
6607
6608     sysv4*MP*)
6609       if test -d /usr/nec ;then
6610         lt_prog_compiler_pic='-Kconform_pic'
6611         lt_prog_compiler_static='-Bstatic'
6612       fi
6613       ;;
6614
6615     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6616       lt_prog_compiler_wl='-Wl,'
6617       lt_prog_compiler_pic='-KPIC'
6618       lt_prog_compiler_static='-Bstatic'
6619       ;;
6620
6621     unicos*)
6622       lt_prog_compiler_wl='-Wl,'
6623       lt_prog_compiler_can_build_shared=no
6624       ;;
6625
6626     uts4*)
6627       lt_prog_compiler_pic='-pic'
6628       lt_prog_compiler_static='-Bstatic'
6629       ;;
6630
6631     *)
6632       lt_prog_compiler_can_build_shared=no
6633       ;;
6634     esac
6635   fi
6636
6637 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6638 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6639
6640 #
6641 # Check to make sure the PIC flag actually works.
6642 #
6643 if test -n "$lt_prog_compiler_pic"; then
6644
6645 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6646 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6647 if test "${lt_prog_compiler_pic_works+set}" = set; then
6648   echo $ECHO_N "(cached) $ECHO_C" >&6
6649 else
6650   lt_prog_compiler_pic_works=no
6651   ac_outfile=conftest.$ac_objext
6652    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6653    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6654    # Insert the option either (1) after the last *FLAGS variable, or
6655    # (2) before a word containing "conftest.", or (3) at the end.
6656    # Note that $ac_compile itself does not contain backslashes and begins
6657    # with a dollar sign (not a hyphen), so the echo should work correctly.
6658    # The option is referenced via a variable to avoid confusing sed.
6659    lt_compile=`echo "$ac_compile" | $SED \
6660    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6661    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6662    -e 's:$: $lt_compiler_flag:'`
6663    (eval echo "\"\$as_me:6663: $lt_compile\"" >&5)
6664    (eval "$lt_compile" 2>conftest.err)
6665    ac_status=$?
6666    cat conftest.err >&5
6667    echo "$as_me:6667: \$? = $ac_status" >&5
6668    if (exit $ac_status) && test -s "$ac_outfile"; then
6669      # The compiler can only warn and ignore the option if not recognized
6670      # So say no if there are warnings other than the usual output.
6671      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6672      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6673      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6674        lt_prog_compiler_pic_works=yes
6675      fi
6676    fi
6677    $rm conftest*
6678
6679 fi
6680 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6681 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6682
6683 if test x"$lt_prog_compiler_pic_works" = xyes; then
6684     case $lt_prog_compiler_pic in
6685      "" | " "*) ;;
6686      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6687      esac
6688 else
6689     lt_prog_compiler_pic=
6690      lt_prog_compiler_can_build_shared=no
6691 fi
6692
6693 fi
6694 case $host_os in
6695   # For platforms which do not support PIC, -DPIC is meaningless:
6696   *djgpp*)
6697     lt_prog_compiler_pic=
6698     ;;
6699   *)
6700     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6701     ;;
6702 esac
6703
6704 #
6705 # Check to make sure the static flag actually works.
6706 #
6707 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6708 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6709 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6710 if test "${lt_prog_compiler_static_works+set}" = set; then
6711   echo $ECHO_N "(cached) $ECHO_C" >&6
6712 else
6713   lt_prog_compiler_static_works=no
6714    save_LDFLAGS="$LDFLAGS"
6715    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6716    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6717    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6718      # The linker can only warn and ignore the option if not recognized
6719      # So say no if there are warnings
6720      if test -s conftest.err; then
6721        # Append any errors to the config.log.
6722        cat conftest.err 1>&5
6723        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6724        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6725        if diff conftest.exp conftest.er2 >/dev/null; then
6726          lt_prog_compiler_static_works=yes
6727        fi
6728      else
6729        lt_prog_compiler_static_works=yes
6730      fi
6731    fi
6732    $rm conftest*
6733    LDFLAGS="$save_LDFLAGS"
6734
6735 fi
6736 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6737 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6738
6739 if test x"$lt_prog_compiler_static_works" = xyes; then
6740     :
6741 else
6742     lt_prog_compiler_static=
6743 fi
6744
6745
6746 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6747 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6748 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6749   echo $ECHO_N "(cached) $ECHO_C" >&6
6750 else
6751   lt_cv_prog_compiler_c_o=no
6752    $rm -r conftest 2>/dev/null
6753    mkdir conftest
6754    cd conftest
6755    mkdir out
6756    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6757
6758    lt_compiler_flag="-o out/conftest2.$ac_objext"
6759    # Insert the option either (1) after the last *FLAGS variable, or
6760    # (2) before a word containing "conftest.", or (3) at the end.
6761    # Note that $ac_compile itself does not contain backslashes and begins
6762    # with a dollar sign (not a hyphen), so the echo should work correctly.
6763    lt_compile=`echo "$ac_compile" | $SED \
6764    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6765    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6766    -e 's:$: $lt_compiler_flag:'`
6767    (eval echo "\"\$as_me:6767: $lt_compile\"" >&5)
6768    (eval "$lt_compile" 2>out/conftest.err)
6769    ac_status=$?
6770    cat out/conftest.err >&5
6771    echo "$as_me:6771: \$? = $ac_status" >&5
6772    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6773    then
6774      # The compiler can only warn and ignore the option if not recognized
6775      # So say no if there are warnings
6776      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6777      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6778      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6779        lt_cv_prog_compiler_c_o=yes
6780      fi
6781    fi
6782    chmod u+w . 2>&5
6783    $rm conftest*
6784    # SGI C++ compiler will create directory out/ii_files/ for
6785    # template instantiation
6786    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6787    $rm out/* && rmdir out
6788    cd ..
6789    rmdir conftest
6790    $rm conftest*
6791
6792 fi
6793 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6794 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6795
6796
6797 hard_links="nottested"
6798 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6799   # do not overwrite the value of need_locks provided by the user
6800   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6801 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6802   hard_links=yes
6803   $rm conftest*
6804   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6805   touch conftest.a
6806   ln conftest.a conftest.b 2>&5 || hard_links=no
6807   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6808   echo "$as_me:$LINENO: result: $hard_links" >&5
6809 echo "${ECHO_T}$hard_links" >&6
6810   if test "$hard_links" = no; then
6811     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6812 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6813     need_locks=warn
6814   fi
6815 else
6816   need_locks=no
6817 fi
6818
6819 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6820 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6821
6822   runpath_var=
6823   allow_undefined_flag=
6824   enable_shared_with_static_runtimes=no
6825   archive_cmds=
6826   archive_expsym_cmds=
6827   old_archive_From_new_cmds=
6828   old_archive_from_expsyms_cmds=
6829   export_dynamic_flag_spec=
6830   whole_archive_flag_spec=
6831   thread_safe_flag_spec=
6832   hardcode_libdir_flag_spec=
6833   hardcode_libdir_flag_spec_ld=
6834   hardcode_libdir_separator=
6835   hardcode_direct=no
6836   hardcode_minus_L=no
6837   hardcode_shlibpath_var=unsupported
6838   link_all_deplibs=unknown
6839   hardcode_automatic=no
6840   module_cmds=
6841   module_expsym_cmds=
6842   always_export_symbols=no
6843   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6844   # include_expsyms should be a list of space-separated symbols to be *always*
6845   # included in the symbol list
6846   include_expsyms=
6847   # exclude_expsyms can be an extended regexp of symbols to exclude
6848   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6849   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6850   # as well as any symbol that contains `d'.
6851   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6852   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6853   # platforms (ab)use it in PIC code, but their linkers get confused if
6854   # the symbol is explicitly referenced.  Since portable code cannot
6855   # rely on this symbol name, it's probably fine to never include it in
6856   # preloaded symbol tables.
6857   extract_expsyms_cmds=
6858   # Just being paranoid about ensuring that cc_basename is set.
6859   for cc_temp in $compiler""; do
6860   case $cc_temp in
6861     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6862     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6863     \-*) ;;
6864     *) break;;
6865   esac
6866 done
6867 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6868
6869   case $host_os in
6870   cygwin* | mingw* | pw32*)
6871     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6872     # When not using gcc, we currently assume that we are using
6873     # Microsoft Visual C++.
6874     if test "$GCC" != yes; then
6875       with_gnu_ld=no
6876     fi
6877     ;;
6878   interix*)
6879     # we just hope/assume this is gcc and not c89 (= MSVC++)
6880     with_gnu_ld=yes
6881     ;;
6882   openbsd*)
6883     with_gnu_ld=no
6884     ;;
6885   esac
6886
6887   ld_shlibs=yes
6888   if test "$with_gnu_ld" = yes; then
6889     # If archive_cmds runs LD, not CC, wlarc should be empty
6890     wlarc='${wl}'
6891
6892     # Set some defaults for GNU ld with shared library support. These
6893     # are reset later if shared libraries are not supported. Putting them
6894     # here allows them to be overridden if necessary.
6895     runpath_var=LD_RUN_PATH
6896     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6897     export_dynamic_flag_spec='${wl}--export-dynamic'
6898     # ancient GNU ld didn't support --whole-archive et. al.
6899     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6900         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6901       else
6902         whole_archive_flag_spec=
6903     fi
6904     supports_anon_versioning=no
6905     case `$LD -v 2>/dev/null` in
6906       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6907       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6908       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6909       *\ 2.11.*) ;; # other 2.11 versions
6910       *) supports_anon_versioning=yes ;;
6911     esac
6912
6913     # See if GNU ld supports shared libraries.
6914     case $host_os in
6915     aix3* | aix4* | aix5*)
6916       # On AIX/PPC, the GNU linker is very broken
6917       if test "$host_cpu" != ia64; then
6918         ld_shlibs=no
6919         cat <<EOF 1>&2
6920
6921 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6922 *** to be unable to reliably create shared libraries on AIX.
6923 *** Therefore, libtool is disabling shared libraries support.  If you
6924 *** really care for shared libraries, you may want to modify your PATH
6925 *** so that a non-GNU linker is found, and then restart.
6926
6927 EOF
6928       fi
6929       ;;
6930
6931     amigaos*)
6932       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)'
6933       hardcode_libdir_flag_spec='-L$libdir'
6934       hardcode_minus_L=yes
6935
6936       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6937       # that the semantics of dynamic libraries on AmigaOS, at least up
6938       # to version 4, is to share data among multiple programs linked
6939       # with the same dynamic library.  Since this doesn't match the
6940       # behavior of shared libraries on other platforms, we can't use
6941       # them.
6942       ld_shlibs=no
6943       ;;
6944
6945     beos*)
6946       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6947         allow_undefined_flag=unsupported
6948         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6949         # support --undefined.  This deserves some investigation.  FIXME
6950         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6951       else
6952         ld_shlibs=no
6953       fi
6954       ;;
6955
6956     cygwin* | mingw* | pw32*)
6957       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6958       # as there is no search path for DLLs.
6959       hardcode_libdir_flag_spec='-L$libdir'
6960       allow_undefined_flag=unsupported
6961       always_export_symbols=no
6962       enable_shared_with_static_runtimes=yes
6963       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6964
6965       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6966         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6967         # If the export-symbols file already is a .def file (1st line
6968         # is EXPORTS), use it as is; otherwise, prepend...
6969         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6970           cp $export_symbols $output_objdir/$soname.def;
6971         else
6972           echo EXPORTS > $output_objdir/$soname.def;
6973           cat $export_symbols >> $output_objdir/$soname.def;
6974         fi~
6975         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6976       else
6977         ld_shlibs=no
6978       fi
6979       ;;
6980
6981     interix3*)
6982       hardcode_direct=no
6983       hardcode_shlibpath_var=no
6984       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6985       export_dynamic_flag_spec='${wl}-E'
6986       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6987       # Instead, shared libraries are loaded at an image base (0x10000000 by
6988       # default) and relocated if they conflict, which is a slow very memory
6989       # consuming and fragmenting process.  To avoid this, we pick a random,
6990       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6991       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6992       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6993       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6994       ;;
6995
6996     linux*)
6997       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6998         tmp_addflag=
6999         case $cc_basename,$host_cpu in
7000         pgcc*)                          # Portland Group C compiler
7001           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7002           tmp_addflag=' $pic_flag'
7003           ;;
7004         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7005           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7006           tmp_addflag=' $pic_flag -Mnomain' ;;
7007         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7008           tmp_addflag=' -i_dynamic' ;;
7009         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7010           tmp_addflag=' -i_dynamic -nofor_main' ;;
7011         ifc* | ifort*)                  # Intel Fortran compiler
7012           tmp_addflag=' -nofor_main' ;;
7013         esac
7014         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7015
7016         if test $supports_anon_versioning = yes; then
7017           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7018   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7019   $echo "local: *; };" >> $output_objdir/$libname.ver~
7020           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7021         fi
7022       else
7023         ld_shlibs=no
7024       fi
7025       ;;
7026
7027     netbsd*)
7028       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7029         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7030         wlarc=
7031       else
7032         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7033         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7034       fi
7035       ;;
7036
7037     solaris*)
7038       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7039         ld_shlibs=no
7040         cat <<EOF 1>&2
7041
7042 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7043 *** create shared libraries on Solaris systems.  Therefore, libtool
7044 *** is disabling shared libraries support.  We urge you to upgrade GNU
7045 *** binutils to release 2.9.1 or newer.  Another option is to modify
7046 *** your PATH or compiler configuration so that the native linker is
7047 *** used, and then restart.
7048
7049 EOF
7050       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7051         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7052         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7053       else
7054         ld_shlibs=no
7055       fi
7056       ;;
7057
7058     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7059       case `$LD -v 2>&1` in
7060         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7061         ld_shlibs=no
7062         cat <<_LT_EOF 1>&2
7063
7064 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7065 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7066 *** is disabling shared libraries support.  We urge you to upgrade GNU
7067 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7068 *** your PATH or compiler configuration so that the native linker is
7069 *** used, and then restart.
7070
7071 _LT_EOF
7072         ;;
7073         *)
7074           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7075             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7076             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7077             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7078           else
7079             ld_shlibs=no
7080           fi
7081         ;;
7082       esac
7083       ;;
7084
7085     sunos4*)
7086       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7087       wlarc=
7088       hardcode_direct=yes
7089       hardcode_shlibpath_var=no
7090       ;;
7091
7092     *)
7093       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7094         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7095         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7096       else
7097         ld_shlibs=no
7098       fi
7099       ;;
7100     esac
7101
7102     if test "$ld_shlibs" = no; then
7103       runpath_var=
7104       hardcode_libdir_flag_spec=
7105       export_dynamic_flag_spec=
7106       whole_archive_flag_spec=
7107     fi
7108   else
7109     # PORTME fill in a description of your system's linker (not GNU ld)
7110     case $host_os in
7111     aix3*)
7112       allow_undefined_flag=unsupported
7113       always_export_symbols=yes
7114       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'
7115       # Note: this linker hardcodes the directories in LIBPATH if there
7116       # are no directories specified by -L.
7117       hardcode_minus_L=yes
7118       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7119         # Neither direct hardcoding nor static linking is supported with a
7120         # broken collect2.
7121         hardcode_direct=unsupported
7122       fi
7123       ;;
7124
7125     aix4* | aix5*)
7126       if test "$host_cpu" = ia64; then
7127         # On IA64, the linker does run time linking by default, so we don't
7128         # have to do anything special.
7129         aix_use_runtimelinking=no
7130         exp_sym_flag='-Bexport'
7131         no_entry_flag=""
7132       else
7133         # If we're using GNU nm, then we don't want the "-C" option.
7134         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7135         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7136           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'
7137         else
7138           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'
7139         fi
7140         aix_use_runtimelinking=no
7141
7142         # Test if we are trying to use run time linking or normal
7143         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7144         # need to do runtime linking.
7145         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7146           for ld_flag in $LDFLAGS; do
7147           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7148             aix_use_runtimelinking=yes
7149             break
7150           fi
7151           done
7152           ;;
7153         esac
7154
7155         exp_sym_flag='-bexport'
7156         no_entry_flag='-bnoentry'
7157       fi
7158
7159       # When large executables or shared objects are built, AIX ld can
7160       # have problems creating the table of contents.  If linking a library
7161       # or program results in "error TOC overflow" add -mminimal-toc to
7162       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7163       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7164
7165       archive_cmds=''
7166       hardcode_direct=yes
7167       hardcode_libdir_separator=':'
7168       link_all_deplibs=yes
7169
7170       if test "$GCC" = yes; then
7171         case $host_os in aix4.[012]|aix4.[012].*)
7172         # We only want to do this on AIX 4.2 and lower, the check
7173         # below for broken collect2 doesn't work under 4.3+
7174           collect2name=`${CC} -print-prog-name=collect2`
7175           if test -f "$collect2name" && \
7176            strings "$collect2name" | grep resolve_lib_name >/dev/null
7177           then
7178           # We have reworked collect2
7179           hardcode_direct=yes
7180           else
7181           # We have old collect2
7182           hardcode_direct=unsupported
7183           # It fails to find uninstalled libraries when the uninstalled
7184           # path is not listed in the libpath.  Setting hardcode_minus_L
7185           # to unsupported forces relinking
7186           hardcode_minus_L=yes
7187           hardcode_libdir_flag_spec='-L$libdir'
7188           hardcode_libdir_separator=
7189           fi
7190           ;;
7191         esac
7192         shared_flag='-shared'
7193         if test "$aix_use_runtimelinking" = yes; then
7194           shared_flag="$shared_flag "'${wl}-G'
7195         fi
7196       else
7197         # not using gcc
7198         if test "$host_cpu" = ia64; then
7199         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7200         # chokes on -Wl,-G. The following line is correct:
7201           shared_flag='-G'
7202         else
7203           if test "$aix_use_runtimelinking" = yes; then
7204             shared_flag='${wl}-G'
7205           else
7206             shared_flag='${wl}-bM:SRE'
7207           fi
7208         fi
7209       fi
7210
7211       # It seems that -bexpall does not export symbols beginning with
7212       # underscore (_), so it is better to generate a list of symbols to export.
7213       always_export_symbols=yes
7214       if test "$aix_use_runtimelinking" = yes; then
7215         # Warning - without using the other runtime loading flags (-brtl),
7216         # -berok will link without error, but may produce a broken library.
7217         allow_undefined_flag='-berok'
7218        # Determine the default libpath from the value encoded in an empty executable.
7219        cat >conftest.$ac_ext <<_ACEOF
7220 /* confdefs.h.  */
7221 _ACEOF
7222 cat confdefs.h >>conftest.$ac_ext
7223 cat >>conftest.$ac_ext <<_ACEOF
7224 /* end confdefs.h.  */
7225
7226 int
7227 main ()
7228 {
7229
7230   ;
7231   return 0;
7232 }
7233 _ACEOF
7234 rm -f conftest.$ac_objext conftest$ac_exeext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7236   (eval $ac_link) 2>conftest.er1
7237   ac_status=$?
7238   grep -v '^ *+' conftest.er1 >conftest.err
7239   rm -f conftest.er1
7240   cat conftest.err >&5
7241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242   (exit $ac_status); } &&
7243          { ac_try='test -z "$ac_c_werror_flag"
7244                          || test ! -s conftest.err'
7245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246   (eval $ac_try) 2>&5
7247   ac_status=$?
7248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249   (exit $ac_status); }; } &&
7250          { ac_try='test -s conftest$ac_exeext'
7251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252   (eval $ac_try) 2>&5
7253   ac_status=$?
7254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255   (exit $ac_status); }; }; then
7256
7257 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7258 }'`
7259 # Check for a 64-bit object if we didn't find anything.
7260 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; }
7261 }'`; fi
7262 else
7263   echo "$as_me: failed program was:" >&5
7264 sed 's/^/| /' conftest.$ac_ext >&5
7265
7266 fi
7267 rm -f conftest.err conftest.$ac_objext \
7268       conftest$ac_exeext conftest.$ac_ext
7269 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7270
7271        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7272         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7273        else
7274         if test "$host_cpu" = ia64; then
7275           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7276           allow_undefined_flag="-z nodefs"
7277           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7278         else
7279          # Determine the default libpath from the value encoded in an empty executable.
7280          cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h.  */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
7285 /* end confdefs.h.  */
7286
7287 int
7288 main ()
7289 {
7290
7291   ;
7292   return 0;
7293 }
7294 _ACEOF
7295 rm -f conftest.$ac_objext conftest$ac_exeext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7297   (eval $ac_link) 2>conftest.er1
7298   ac_status=$?
7299   grep -v '^ *+' conftest.er1 >conftest.err
7300   rm -f conftest.er1
7301   cat conftest.err >&5
7302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303   (exit $ac_status); } &&
7304          { ac_try='test -z "$ac_c_werror_flag"
7305                          || test ! -s conftest.err'
7306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307   (eval $ac_try) 2>&5
7308   ac_status=$?
7309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310   (exit $ac_status); }; } &&
7311          { ac_try='test -s conftest$ac_exeext'
7312   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7313   (eval $ac_try) 2>&5
7314   ac_status=$?
7315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7316   (exit $ac_status); }; }; then
7317
7318 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7319 }'`
7320 # Check for a 64-bit object if we didn't find anything.
7321 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; }
7322 }'`; fi
7323 else
7324   echo "$as_me: failed program was:" >&5
7325 sed 's/^/| /' conftest.$ac_ext >&5
7326
7327 fi
7328 rm -f conftest.err conftest.$ac_objext \
7329       conftest$ac_exeext conftest.$ac_ext
7330 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7331
7332          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7333           # Warning - without using the other run time loading flags,
7334           # -berok will link without error, but may produce a broken library.
7335           no_undefined_flag=' ${wl}-bernotok'
7336           allow_undefined_flag=' ${wl}-berok'
7337           # Exported symbols can be pulled into shared objects from archives
7338           whole_archive_flag_spec='$convenience'
7339           archive_cmds_need_lc=yes
7340           # This is similar to how AIX traditionally builds its shared libraries.
7341           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7342         fi
7343       fi
7344       ;;
7345
7346     amigaos*)
7347       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)'
7348       hardcode_libdir_flag_spec='-L$libdir'
7349       hardcode_minus_L=yes
7350       # see comment about different semantics on the GNU ld section
7351       ld_shlibs=no
7352       ;;
7353
7354     bsdi[45]*)
7355       export_dynamic_flag_spec=-rdynamic
7356       ;;
7357
7358     cygwin* | mingw* | pw32*)
7359       # When not using gcc, we currently assume that we are using
7360       # Microsoft Visual C++.
7361       # hardcode_libdir_flag_spec is actually meaningless, as there is
7362       # no search path for DLLs.
7363       hardcode_libdir_flag_spec=' '
7364       allow_undefined_flag=unsupported
7365       # Tell ltmain to make .lib files, not .a files.
7366       libext=lib
7367       # Tell ltmain to make .dll files, not .so files.
7368       shrext_cmds=".dll"
7369       # FIXME: Setting linknames here is a bad hack.
7370       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7371       # The linker will automatically build a .lib file if we build a DLL.
7372       old_archive_From_new_cmds='true'
7373       # FIXME: Should let the user specify the lib program.
7374       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7375       fix_srcfile_path='`cygpath -w "$srcfile"`'
7376       enable_shared_with_static_runtimes=yes
7377       ;;
7378
7379     darwin* | rhapsody*)
7380       case $host_os in
7381         rhapsody* | darwin1.[012])
7382          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7383          ;;
7384        *) # Darwin 1.3 on
7385          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7386            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7387          else
7388            case ${MACOSX_DEPLOYMENT_TARGET} in
7389              10.[012])
7390                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7391                ;;
7392              10.*)
7393                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7394                ;;
7395            esac
7396          fi
7397          ;;
7398       esac
7399       archive_cmds_need_lc=no
7400       hardcode_direct=no
7401       hardcode_automatic=yes
7402       hardcode_shlibpath_var=unsupported
7403       whole_archive_flag_spec=''
7404       link_all_deplibs=yes
7405     if test "$GCC" = yes ; then
7406         output_verbose_link_cmd='echo'
7407         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7408       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7409       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7410       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}'
7411       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}'
7412     else
7413       case $cc_basename in
7414         xlc*)
7415          output_verbose_link_cmd='echo'
7416          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7417          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7418           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7419          archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7420           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}'
7421           ;;
7422        *)
7423          ld_shlibs=no
7424           ;;
7425       esac
7426     fi
7427       ;;
7428
7429     dgux*)
7430       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7431       hardcode_libdir_flag_spec='-L$libdir'
7432       hardcode_shlibpath_var=no
7433       ;;
7434
7435     freebsd1*)
7436       ld_shlibs=no
7437       ;;
7438
7439     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7440     # support.  Future versions do this automatically, but an explicit c++rt0.o
7441     # does not break anything, and helps significantly (at the cost of a little
7442     # extra space).
7443     freebsd2.2*)
7444       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7445       hardcode_libdir_flag_spec='-R$libdir'
7446       hardcode_direct=yes
7447       hardcode_shlibpath_var=no
7448       ;;
7449
7450     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7451     freebsd2*)
7452       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7453       hardcode_direct=yes
7454       hardcode_minus_L=yes
7455       hardcode_shlibpath_var=no
7456       ;;
7457
7458     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7459     freebsd* | kfreebsd*-gnu | dragonfly*)
7460       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7461       hardcode_libdir_flag_spec='-R$libdir'
7462       hardcode_direct=yes
7463       hardcode_shlibpath_var=no
7464       ;;
7465
7466     hpux9*)
7467       if test "$GCC" = yes; then
7468         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'
7469       else
7470         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'
7471       fi
7472       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7473       hardcode_libdir_separator=:
7474       hardcode_direct=yes
7475
7476       # hardcode_minus_L: Not really in the search PATH,
7477       # but as the default location of the library.
7478       hardcode_minus_L=yes
7479       export_dynamic_flag_spec='${wl}-E'
7480       ;;
7481
7482     hpux10*)
7483       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7484         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7485       else
7486         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7487       fi
7488       if test "$with_gnu_ld" = no; then
7489         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7490         hardcode_libdir_separator=:
7491
7492         hardcode_direct=yes
7493         export_dynamic_flag_spec='${wl}-E'
7494
7495         # hardcode_minus_L: Not really in the search PATH,
7496         # but as the default location of the library.
7497         hardcode_minus_L=yes
7498       fi
7499       ;;
7500
7501     hpux11*)
7502       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7503         case $host_cpu in
7504         hppa*64*)
7505           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7506           ;;
7507         ia64*)
7508           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7509           ;;
7510         *)
7511           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7512           ;;
7513         esac
7514       else
7515         case $host_cpu in
7516         hppa*64*)
7517           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7518           ;;
7519         ia64*)
7520           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7521           ;;
7522         *)
7523           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7524           ;;
7525         esac
7526       fi
7527       if test "$with_gnu_ld" = no; then
7528         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7529         hardcode_libdir_separator=:
7530
7531         case $host_cpu in
7532         hppa*64*|ia64*)
7533           hardcode_libdir_flag_spec_ld='+b $libdir'
7534           hardcode_direct=no
7535           hardcode_shlibpath_var=no
7536           ;;
7537         *)
7538           hardcode_direct=yes
7539           export_dynamic_flag_spec='${wl}-E'
7540
7541           # hardcode_minus_L: Not really in the search PATH,
7542           # but as the default location of the library.
7543           hardcode_minus_L=yes
7544           ;;
7545         esac
7546       fi
7547       ;;
7548
7549     irix5* | irix6* | nonstopux*)
7550       if test "$GCC" = yes; then
7551         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'
7552       else
7553         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'
7554         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7555       fi
7556       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7557       hardcode_libdir_separator=:
7558       link_all_deplibs=yes
7559       ;;
7560
7561     netbsd*)
7562       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7563         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7564       else
7565         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7566       fi
7567       hardcode_libdir_flag_spec='-R$libdir'
7568       hardcode_direct=yes
7569       hardcode_shlibpath_var=no
7570       ;;
7571
7572     newsos6)
7573       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7574       hardcode_direct=yes
7575       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7576       hardcode_libdir_separator=:
7577       hardcode_shlibpath_var=no
7578       ;;
7579
7580     openbsd*)
7581       hardcode_direct=yes
7582       hardcode_shlibpath_var=no
7583       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7584         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7585         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7586         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7587         export_dynamic_flag_spec='${wl}-E'
7588       else
7589        case $host_os in
7590          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7591            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7592            hardcode_libdir_flag_spec='-R$libdir'
7593            ;;
7594          *)
7595            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7596            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7597            ;;
7598        esac
7599       fi
7600       ;;
7601
7602     os2*)
7603       hardcode_libdir_flag_spec='-L$libdir'
7604       hardcode_minus_L=yes
7605       allow_undefined_flag=unsupported
7606       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'
7607       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7608       ;;
7609
7610     osf3*)
7611       if test "$GCC" = yes; then
7612         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7613         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'
7614       else
7615         allow_undefined_flag=' -expect_unresolved \*'
7616         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'
7617       fi
7618       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7619       hardcode_libdir_separator=:
7620       ;;
7621
7622     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7623       if test "$GCC" = yes; then
7624         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7625         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'
7626         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7627       else
7628         allow_undefined_flag=' -expect_unresolved \*'
7629         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'
7630         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7631         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7632
7633         # Both c and cxx compiler support -rpath directly
7634         hardcode_libdir_flag_spec='-rpath $libdir'
7635       fi
7636       hardcode_libdir_separator=:
7637       ;;
7638
7639     solaris*)
7640       no_undefined_flag=' -z text'
7641       if test "$GCC" = yes; then
7642         wlarc='${wl}'
7643         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7644         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7645           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7646       else
7647         wlarc=''
7648         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7649         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7650         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7651       fi
7652       hardcode_libdir_flag_spec='-R$libdir'
7653       hardcode_shlibpath_var=no
7654       case $host_os in
7655       solaris2.[0-5] | solaris2.[0-5].*) ;;
7656       *)
7657         # The compiler driver will combine linker options so we
7658         # cannot just pass the convience library names through
7659         # without $wl, iff we do not link with $LD.
7660         # Luckily, gcc supports the same syntax we need for Sun Studio.
7661         # Supported since Solaris 2.6 (maybe 2.5.1?)
7662         case $wlarc in
7663         '')
7664           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7665         *)
7666           whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7667         esac ;;
7668       esac
7669       link_all_deplibs=yes
7670       ;;
7671
7672     sunos4*)
7673       if test "x$host_vendor" = xsequent; then
7674         # Use $CC to link under sequent, because it throws in some extra .o
7675         # files that make .init and .fini sections work.
7676         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7677       else
7678         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7679       fi
7680       hardcode_libdir_flag_spec='-L$libdir'
7681       hardcode_direct=yes
7682       hardcode_minus_L=yes
7683       hardcode_shlibpath_var=no
7684       ;;
7685
7686     sysv4)
7687       case $host_vendor in
7688         sni)
7689           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7690           hardcode_direct=yes # is this really true???
7691         ;;
7692         siemens)
7693           ## LD is ld it makes a PLAMLIB
7694           ## CC just makes a GrossModule.
7695           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7696           reload_cmds='$CC -r -o $output$reload_objs'
7697           hardcode_direct=no
7698         ;;
7699         motorola)
7700           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7701           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7702         ;;
7703       esac
7704       runpath_var='LD_RUN_PATH'
7705       hardcode_shlibpath_var=no
7706       ;;
7707
7708     sysv4.3*)
7709       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7710       hardcode_shlibpath_var=no
7711       export_dynamic_flag_spec='-Bexport'
7712       ;;
7713
7714     sysv4*MP*)
7715       if test -d /usr/nec; then
7716         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7717         hardcode_shlibpath_var=no
7718         runpath_var=LD_RUN_PATH
7719         hardcode_runpath_var=yes
7720         ld_shlibs=yes
7721       fi
7722       ;;
7723
7724     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7725       no_undefined_flag='${wl}-z,text'
7726       archive_cmds_need_lc=no
7727       hardcode_shlibpath_var=no
7728       runpath_var='LD_RUN_PATH'
7729
7730       if test "$GCC" = yes; then
7731         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7732         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7733       else
7734         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7735         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7736       fi
7737       ;;
7738
7739     sysv5* | sco3.2v5* | sco5v6*)
7740       # Note: We can NOT use -z defs as we might desire, because we do not
7741       # link with -lc, and that would cause any symbols used from libc to
7742       # always be unresolved, which means just about no library would
7743       # ever link correctly.  If we're not using GNU ld we use -z text
7744       # though, which does catch some bad symbols but isn't as heavy-handed
7745       # as -z defs.
7746       no_undefined_flag='${wl}-z,text'
7747       allow_undefined_flag='${wl}-z,nodefs'
7748       archive_cmds_need_lc=no
7749       hardcode_shlibpath_var=no
7750       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7751       hardcode_libdir_separator=':'
7752       link_all_deplibs=yes
7753       export_dynamic_flag_spec='${wl}-Bexport'
7754       runpath_var='LD_RUN_PATH'
7755
7756       if test "$GCC" = yes; then
7757         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7758         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7759       else
7760         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7761         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7762       fi
7763       ;;
7764
7765     uts4*)
7766       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7767       hardcode_libdir_flag_spec='-L$libdir'
7768       hardcode_shlibpath_var=no
7769       ;;
7770
7771     *)
7772       ld_shlibs=no
7773       ;;
7774     esac
7775   fi
7776
7777 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7778 echo "${ECHO_T}$ld_shlibs" >&6
7779 test "$ld_shlibs" = no && can_build_shared=no
7780
7781 #
7782 # Do we need to explicitly link libc?
7783 #
7784 case "x$archive_cmds_need_lc" in
7785 x|xyes)
7786   # Assume -lc should be added
7787   archive_cmds_need_lc=yes
7788
7789   if test "$enable_shared" = yes && test "$GCC" = yes; then
7790     case $archive_cmds in
7791     *'~'*)
7792       # FIXME: we may have to deal with multi-command sequences.
7793       ;;
7794     '$CC '*)
7795       # Test whether the compiler implicitly links with -lc since on some
7796       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7797       # to ld, don't add -lc before -lgcc.
7798       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7799 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7800       $rm conftest*
7801       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7802
7803       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7804   (eval $ac_compile) 2>&5
7805   ac_status=$?
7806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807   (exit $ac_status); } 2>conftest.err; then
7808         soname=conftest
7809         lib=conftest
7810         libobjs=conftest.$ac_objext
7811         deplibs=
7812         wl=$lt_prog_compiler_wl
7813         pic_flag=$lt_prog_compiler_pic
7814         compiler_flags=-v
7815         linker_flags=-v
7816         verstring=
7817         output_objdir=.
7818         libname=conftest
7819         lt_save_allow_undefined_flag=$allow_undefined_flag
7820         allow_undefined_flag=
7821         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7822   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7823   ac_status=$?
7824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825   (exit $ac_status); }
7826         then
7827           archive_cmds_need_lc=no
7828         else
7829           archive_cmds_need_lc=yes
7830         fi
7831         allow_undefined_flag=$lt_save_allow_undefined_flag
7832       else
7833         cat conftest.err 1>&5
7834       fi
7835       $rm conftest*
7836       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7837 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7838       ;;
7839     esac
7840   fi
7841   ;;
7842 esac
7843
7844 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7845 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7846 library_names_spec=
7847 libname_spec='lib$name'
7848 soname_spec=
7849 shrext_cmds=".so"
7850 postinstall_cmds=
7851 postuninstall_cmds=
7852 finish_cmds=
7853 finish_eval=
7854 shlibpath_var=
7855 shlibpath_overrides_runpath=unknown
7856 version_type=none
7857 dynamic_linker="$host_os ld.so"
7858 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7859 if test "$GCC" = yes; then
7860   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7861   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7862     # if the path contains ";" then we assume it to be the separator
7863     # otherwise default to the standard path separator (i.e. ":") - it is
7864     # assumed that no part of a normal pathname contains ";" but that should
7865     # okay in the real world where ";" in dirpaths is itself problematic.
7866     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7867   else
7868     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7869   fi
7870 else
7871   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7872 fi
7873 need_lib_prefix=unknown
7874 hardcode_into_libs=no
7875
7876 # when you set need_version to no, make sure it does not cause -set_version
7877 # flags to be left without arguments
7878 need_version=unknown
7879
7880 case $host_os in
7881 aix3*)
7882   version_type=linux
7883   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7884   shlibpath_var=LIBPATH
7885
7886   # AIX 3 has no versioning support, so we append a major version to the name.
7887   soname_spec='${libname}${release}${shared_ext}$major'
7888   ;;
7889
7890 aix4* | aix5*)
7891   version_type=linux
7892   need_lib_prefix=no
7893   need_version=no
7894   hardcode_into_libs=yes
7895   if test "$host_cpu" = ia64; then
7896     # AIX 5 supports IA64
7897     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7898     shlibpath_var=LD_LIBRARY_PATH
7899   else
7900     # With GCC up to 2.95.x, collect2 would create an import file
7901     # for dependence libraries.  The import file would start with
7902     # the line `#! .'.  This would cause the generated library to
7903     # depend on `.', always an invalid library.  This was fixed in
7904     # development snapshots of GCC prior to 3.0.
7905     case $host_os in
7906       aix4 | aix4.[01] | aix4.[01].*)
7907       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7908            echo ' yes '
7909            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7910         :
7911       else
7912         can_build_shared=no
7913       fi
7914       ;;
7915     esac
7916     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7917     # soname into executable. Probably we can add versioning support to
7918     # collect2, so additional links can be useful in future.
7919     if test "$aix_use_runtimelinking" = yes; then
7920       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7921       # instead of lib<name>.a to let people know that these are not
7922       # typical AIX shared libraries.
7923       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7924     else
7925       # We preserve .a as extension for shared libraries through AIX4.2
7926       # and later when we are not doing run time linking.
7927       library_names_spec='${libname}${release}.a $libname.a'
7928       soname_spec='${libname}${release}${shared_ext}$major'
7929     fi
7930     shlibpath_var=LIBPATH
7931   fi
7932   ;;
7933
7934 amigaos*)
7935   library_names_spec='$libname.ixlibrary $libname.a'
7936   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7937   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'
7938   ;;
7939
7940 beos*)
7941   library_names_spec='${libname}${shared_ext}'
7942   dynamic_linker="$host_os ld.so"
7943   shlibpath_var=LIBRARY_PATH
7944   ;;
7945
7946 bsdi[45]*)
7947   version_type=linux
7948   need_version=no
7949   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7950   soname_spec='${libname}${release}${shared_ext}$major'
7951   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7952   shlibpath_var=LD_LIBRARY_PATH
7953   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7954   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7955   # the default ld.so.conf also contains /usr/contrib/lib and
7956   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7957   # libtool to hard-code these into programs
7958   ;;
7959
7960 cygwin* | mingw* | pw32*)
7961   version_type=windows
7962   shrext_cmds=".dll"
7963   need_version=no
7964   need_lib_prefix=no
7965
7966   case $GCC,$host_os in
7967   yes,cygwin* | yes,mingw* | yes,pw32*)
7968     library_names_spec='$libname.dll.a'
7969     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7970     postinstall_cmds='base_file=`basename \${file}`~
7971       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7972       dldir=$destdir/`dirname \$dlpath`~
7973       test -d \$dldir || mkdir -p \$dldir~
7974       $install_prog $dir/$dlname \$dldir/$dlname~
7975       chmod a+x \$dldir/$dlname'
7976     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7977       dlpath=$dir/\$dldll~
7978        $rm \$dlpath'
7979     shlibpath_overrides_runpath=yes
7980
7981     case $host_os in
7982     cygwin*)
7983       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7984       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7985       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7986       ;;
7987     mingw*)
7988       # MinGW DLLs use traditional 'lib' prefix
7989       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7990       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7991       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7992         # It is most probably a Windows format PATH printed by
7993         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7994         # path with ; separators, and with drive letters. We can handle the
7995         # drive letters (cygwin fileutils understands them), so leave them,
7996         # especially as we might pass files found there to a mingw objdump,
7997         # which wouldn't understand a cygwinified path. Ahh.
7998         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7999       else
8000         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8001       fi
8002       ;;
8003     pw32*)
8004       # pw32 DLLs use 'pw' prefix rather than 'lib'
8005       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8006       ;;
8007     esac
8008     ;;
8009
8010   *)
8011     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8012     ;;
8013   esac
8014   dynamic_linker='Win32 ld.exe'
8015   # FIXME: first we should search . and the directory the executable is in
8016   shlibpath_var=PATH
8017   ;;
8018
8019 darwin* | rhapsody*)
8020   dynamic_linker="$host_os dyld"
8021   version_type=darwin
8022   need_lib_prefix=no
8023   need_version=no
8024   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8025   soname_spec='${libname}${release}${major}$shared_ext'
8026   shlibpath_overrides_runpath=yes
8027   shlibpath_var=DYLD_LIBRARY_PATH
8028   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8029   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8030   if test "$GCC" = yes; then
8031     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"`
8032   else
8033     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8034   fi
8035   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8036   ;;
8037
8038 dgux*)
8039   version_type=linux
8040   need_lib_prefix=no
8041   need_version=no
8042   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8043   soname_spec='${libname}${release}${shared_ext}$major'
8044   shlibpath_var=LD_LIBRARY_PATH
8045   ;;
8046
8047 freebsd1*)
8048   dynamic_linker=no
8049   ;;
8050
8051 kfreebsd*-gnu)
8052   version_type=linux
8053   need_lib_prefix=no
8054   need_version=no
8055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8056   soname_spec='${libname}${release}${shared_ext}$major'
8057   shlibpath_var=LD_LIBRARY_PATH
8058   shlibpath_overrides_runpath=no
8059   hardcode_into_libs=yes
8060   dynamic_linker='GNU ld.so'
8061   ;;
8062
8063 freebsd* | dragonfly*)
8064   # DragonFly does not have aout.  When/if they implement a new
8065   # versioning mechanism, adjust this.
8066   if test -x /usr/bin/objformat; then
8067     objformat=`/usr/bin/objformat`
8068   else
8069     case $host_os in
8070     freebsd[123]*) objformat=aout ;;
8071     *) objformat=elf ;;
8072     esac
8073   fi
8074   version_type=freebsd-$objformat
8075   case $version_type in
8076     freebsd-elf*)
8077       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8078       need_version=no
8079       need_lib_prefix=no
8080       ;;
8081     freebsd-*)
8082       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8083       need_version=yes
8084       ;;
8085   esac
8086   shlibpath_var=LD_LIBRARY_PATH
8087   case $host_os in
8088   freebsd2*)
8089     shlibpath_overrides_runpath=yes
8090     ;;
8091   freebsd3.[01]* | freebsdelf3.[01]*)
8092     shlibpath_overrides_runpath=yes
8093     hardcode_into_libs=yes
8094     ;;
8095   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8096   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8097     shlibpath_overrides_runpath=no
8098     hardcode_into_libs=yes
8099     ;;
8100   freebsd*) # from 4.6 on
8101     shlibpath_overrides_runpath=yes
8102     hardcode_into_libs=yes
8103     ;;
8104   esac
8105   ;;
8106
8107 gnu*)
8108   version_type=linux
8109   need_lib_prefix=no
8110   need_version=no
8111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8112   soname_spec='${libname}${release}${shared_ext}$major'
8113   shlibpath_var=LD_LIBRARY_PATH
8114   hardcode_into_libs=yes
8115   ;;
8116
8117 hpux9* | hpux10* | hpux11*)
8118   # Give a soname corresponding to the major version so that dld.sl refuses to
8119   # link against other versions.
8120   version_type=sunos
8121   need_lib_prefix=no
8122   need_version=no
8123   case $host_cpu in
8124   ia64*)
8125     shrext_cmds='.so'
8126     hardcode_into_libs=yes
8127     dynamic_linker="$host_os dld.so"
8128     shlibpath_var=LD_LIBRARY_PATH
8129     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8131     soname_spec='${libname}${release}${shared_ext}$major'
8132     if test "X$HPUX_IA64_MODE" = X32; then
8133       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8134     else
8135       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8136     fi
8137     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8138     ;;
8139    hppa*64*)
8140      shrext_cmds='.sl'
8141      hardcode_into_libs=yes
8142      dynamic_linker="$host_os dld.sl"
8143      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8144      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8145      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8146      soname_spec='${libname}${release}${shared_ext}$major'
8147      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8148      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8149      ;;
8150    *)
8151     shrext_cmds='.sl'
8152     dynamic_linker="$host_os dld.sl"
8153     shlibpath_var=SHLIB_PATH
8154     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8156     soname_spec='${libname}${release}${shared_ext}$major'
8157     ;;
8158   esac
8159   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8160   postinstall_cmds='chmod 555 $lib'
8161   ;;
8162
8163 interix3*)
8164   version_type=linux
8165   need_lib_prefix=no
8166   need_version=no
8167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8168   soname_spec='${libname}${release}${shared_ext}$major'
8169   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8170   shlibpath_var=LD_LIBRARY_PATH
8171   shlibpath_overrides_runpath=no
8172   hardcode_into_libs=yes
8173   ;;
8174
8175 irix5* | irix6* | nonstopux*)
8176   case $host_os in
8177     nonstopux*) version_type=nonstopux ;;
8178     *)
8179         if test "$lt_cv_prog_gnu_ld" = yes; then
8180                 version_type=linux
8181         else
8182                 version_type=irix
8183         fi ;;
8184   esac
8185   need_lib_prefix=no
8186   need_version=no
8187   soname_spec='${libname}${release}${shared_ext}$major'
8188   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8189   case $host_os in
8190   irix5* | nonstopux*)
8191     libsuff= shlibsuff=
8192     ;;
8193   *)
8194     case $LD in # libtool.m4 will add one of these switches to LD
8195     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8196       libsuff= shlibsuff= libmagic=32-bit;;
8197     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8198       libsuff=32 shlibsuff=N32 libmagic=N32;;
8199     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8200       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8201     *) libsuff= shlibsuff= libmagic=never-match;;
8202     esac
8203     ;;
8204   esac
8205   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8206   shlibpath_overrides_runpath=no
8207   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8208   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8209   hardcode_into_libs=yes
8210   ;;
8211
8212 # No shared lib support for Linux oldld, aout, or coff.
8213 linux*oldld* | linux*aout* | linux*coff*)
8214   dynamic_linker=no
8215   ;;
8216
8217 # This must be Linux ELF.
8218 linux*)
8219   version_type=linux
8220   need_lib_prefix=no
8221   need_version=no
8222   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8223   soname_spec='${libname}${release}${shared_ext}$major'
8224   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8225   shlibpath_var=LD_LIBRARY_PATH
8226   shlibpath_overrides_runpath=no
8227   # This implies no fast_install, which is unacceptable.
8228   # Some rework will be needed to allow for fast_install
8229   # before this can be enabled.
8230   hardcode_into_libs=yes
8231
8232   # find out which ABI we are using
8233   libsuff=
8234   case "$host_cpu" in
8235   x86_64*|s390x*|powerpc64*)
8236     echo '#line 8236 "configure"' > conftest.$ac_ext
8237     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8238   (eval $ac_compile) 2>&5
8239   ac_status=$?
8240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241   (exit $ac_status); }; then
8242       case `/usr/bin/file conftest.$ac_objext` in
8243       *64-bit*)
8244         libsuff=64
8245         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8246         ;;
8247       esac
8248     fi
8249     rm -rf conftest*
8250     ;;
8251   esac
8252
8253   # Append ld.so.conf contents to the search path
8254   if test -f /etc/ld.so.conf; then
8255     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8256     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8257   fi
8258
8259   # We used to test for /lib/ld.so.1 and disable shared libraries on
8260   # powerpc, because MkLinux only supported shared libraries with the
8261   # GNU dynamic linker.  Since this was broken with cross compilers,
8262   # most powerpc-linux boxes support dynamic linking these days and
8263   # people can always --disable-shared, the test was removed, and we
8264   # assume the GNU/Linux dynamic linker is in use.
8265   dynamic_linker='GNU/Linux ld.so'
8266   ;;
8267
8268 knetbsd*-gnu)
8269   version_type=linux
8270   need_lib_prefix=no
8271   need_version=no
8272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8273   soname_spec='${libname}${release}${shared_ext}$major'
8274   shlibpath_var=LD_LIBRARY_PATH
8275   shlibpath_overrides_runpath=no
8276   hardcode_into_libs=yes
8277   dynamic_linker='GNU ld.so'
8278   ;;
8279
8280 netbsd*)
8281   version_type=sunos
8282   need_lib_prefix=no
8283   need_version=no
8284   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8285     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8286     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8287     dynamic_linker='NetBSD (a.out) ld.so'
8288   else
8289     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8290     soname_spec='${libname}${release}${shared_ext}$major'
8291     dynamic_linker='NetBSD ld.elf_so'
8292   fi
8293   shlibpath_var=LD_LIBRARY_PATH
8294   shlibpath_overrides_runpath=yes
8295   hardcode_into_libs=yes
8296   ;;
8297
8298 newsos6)
8299   version_type=linux
8300   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8301   shlibpath_var=LD_LIBRARY_PATH
8302   shlibpath_overrides_runpath=yes
8303   ;;
8304
8305 nto-qnx*)
8306   version_type=linux
8307   need_lib_prefix=no
8308   need_version=no
8309   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8310   soname_spec='${libname}${release}${shared_ext}$major'
8311   shlibpath_var=LD_LIBRARY_PATH
8312   shlibpath_overrides_runpath=yes
8313   ;;
8314
8315 openbsd*)
8316   version_type=sunos
8317   sys_lib_dlsearch_path_spec="/usr/lib"
8318   need_lib_prefix=no
8319   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8320   case $host_os in
8321     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8322     *)                         need_version=no  ;;
8323   esac
8324   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8325   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8326   shlibpath_var=LD_LIBRARY_PATH
8327   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8328     case $host_os in
8329       openbsd2.[89] | openbsd2.[89].*)
8330         shlibpath_overrides_runpath=no
8331         ;;
8332       *)
8333         shlibpath_overrides_runpath=yes
8334         ;;
8335       esac
8336   else
8337     shlibpath_overrides_runpath=yes
8338   fi
8339   ;;
8340
8341 os2*)
8342   libname_spec='$name'
8343   shrext_cmds=".dll"
8344   need_lib_prefix=no
8345   library_names_spec='$libname${shared_ext} $libname.a'
8346   dynamic_linker='OS/2 ld.exe'
8347   shlibpath_var=LIBPATH
8348   ;;
8349
8350 osf3* | osf4* | osf5*)
8351   version_type=osf
8352   need_lib_prefix=no
8353   need_version=no
8354   soname_spec='${libname}${release}${shared_ext}$major'
8355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356   shlibpath_var=LD_LIBRARY_PATH
8357   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8358   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8359   ;;
8360
8361 solaris*)
8362   version_type=linux
8363   need_lib_prefix=no
8364   need_version=no
8365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8366   soname_spec='${libname}${release}${shared_ext}$major'
8367   shlibpath_var=LD_LIBRARY_PATH
8368   shlibpath_overrides_runpath=yes
8369   hardcode_into_libs=yes
8370   # ldd complains unless libraries are executable
8371   postinstall_cmds='chmod +x $lib'
8372   ;;
8373
8374 sunos4*)
8375   version_type=sunos
8376   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8377   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8378   shlibpath_var=LD_LIBRARY_PATH
8379   shlibpath_overrides_runpath=yes
8380   if test "$with_gnu_ld" = yes; then
8381     need_lib_prefix=no
8382   fi
8383   need_version=yes
8384   ;;
8385
8386 sysv4 | sysv4.3*)
8387   version_type=linux
8388   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8389   soname_spec='${libname}${release}${shared_ext}$major'
8390   shlibpath_var=LD_LIBRARY_PATH
8391   case $host_vendor in
8392     sni)
8393       shlibpath_overrides_runpath=no
8394       need_lib_prefix=no
8395       export_dynamic_flag_spec='${wl}-Blargedynsym'
8396       runpath_var=LD_RUN_PATH
8397       ;;
8398     siemens)
8399       need_lib_prefix=no
8400       ;;
8401     motorola)
8402       need_lib_prefix=no
8403       need_version=no
8404       shlibpath_overrides_runpath=no
8405       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8406       ;;
8407   esac
8408   ;;
8409
8410 sysv4*MP*)
8411   if test -d /usr/nec ;then
8412     version_type=linux
8413     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8414     soname_spec='$libname${shared_ext}.$major'
8415     shlibpath_var=LD_LIBRARY_PATH
8416   fi
8417   ;;
8418
8419 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8420   version_type=freebsd-elf
8421   need_lib_prefix=no
8422   need_version=no
8423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8424   soname_spec='${libname}${release}${shared_ext}$major'
8425   shlibpath_var=LD_LIBRARY_PATH
8426   hardcode_into_libs=yes
8427   if test "$with_gnu_ld" = yes; then
8428     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8429     shlibpath_overrides_runpath=no
8430   else
8431     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8432     shlibpath_overrides_runpath=yes
8433     case $host_os in
8434       sco3.2v5*)
8435         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8436         ;;
8437     esac
8438   fi
8439   sys_lib_dlsearch_path_spec='/usr/lib'
8440   ;;
8441
8442 uts4*)
8443   version_type=linux
8444   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8445   soname_spec='${libname}${release}${shared_ext}$major'
8446   shlibpath_var=LD_LIBRARY_PATH
8447   ;;
8448
8449 *)
8450   dynamic_linker=no
8451   ;;
8452 esac
8453 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8454 echo "${ECHO_T}$dynamic_linker" >&6
8455 test "$dynamic_linker" = no && can_build_shared=no
8456
8457 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8458 if test "$GCC" = yes; then
8459   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8460 fi
8461
8462 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8463 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8464 hardcode_action=
8465 if test -n "$hardcode_libdir_flag_spec" || \
8466    test -n "$runpath_var" || \
8467    test "X$hardcode_automatic" = "Xyes" ; then
8468
8469   # We can hardcode non-existant directories.
8470   if test "$hardcode_direct" != no &&
8471      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8472      # have to relink, otherwise we might link with an installed library
8473      # when we should be linking with a yet-to-be-installed one
8474      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8475      test "$hardcode_minus_L" != no; then
8476     # Linking always hardcodes the temporary library directory.
8477     hardcode_action=relink
8478   else
8479     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8480     hardcode_action=immediate
8481   fi
8482 else
8483   # We cannot hardcode anything, or else we can only hardcode existing
8484   # directories.
8485   hardcode_action=unsupported
8486 fi
8487 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8488 echo "${ECHO_T}$hardcode_action" >&6
8489
8490 if test "$hardcode_action" = relink; then
8491   # Fast installation is not supported
8492   enable_fast_install=no
8493 elif test "$shlibpath_overrides_runpath" = yes ||
8494      test "$enable_shared" = no; then
8495   # Fast installation is not necessary
8496   enable_fast_install=needless
8497 fi
8498
8499 striplib=
8500 old_striplib=
8501 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8502 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8503 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8504   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8505   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8506   echo "$as_me:$LINENO: result: yes" >&5
8507 echo "${ECHO_T}yes" >&6
8508 else
8509 # FIXME - insert some real tests, host_os isn't really good enough
8510   case $host_os in
8511    darwin*)
8512        if test -n "$STRIP" ; then
8513          striplib="$STRIP -x"
8514          echo "$as_me:$LINENO: result: yes" >&5
8515 echo "${ECHO_T}yes" >&6
8516        else
8517   echo "$as_me:$LINENO: result: no" >&5
8518 echo "${ECHO_T}no" >&6
8519 fi
8520        ;;
8521    *)
8522   echo "$as_me:$LINENO: result: no" >&5
8523 echo "${ECHO_T}no" >&6
8524     ;;
8525   esac
8526 fi
8527
8528 if test "x$enable_dlopen" != xyes; then
8529   enable_dlopen=unknown
8530   enable_dlopen_self=unknown
8531   enable_dlopen_self_static=unknown
8532 else
8533   lt_cv_dlopen=no
8534   lt_cv_dlopen_libs=
8535
8536   case $host_os in
8537   beos*)
8538     lt_cv_dlopen="load_add_on"
8539     lt_cv_dlopen_libs=
8540     lt_cv_dlopen_self=yes
8541     ;;
8542
8543   mingw* | pw32*)
8544     lt_cv_dlopen="LoadLibrary"
8545     lt_cv_dlopen_libs=
8546    ;;
8547
8548   cygwin*)
8549     lt_cv_dlopen="dlopen"
8550     lt_cv_dlopen_libs=
8551    ;;
8552
8553   darwin*)
8554   # if libdl is installed we need to link against it
8555     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8556 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8557 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8558   echo $ECHO_N "(cached) $ECHO_C" >&6
8559 else
8560   ac_check_lib_save_LIBS=$LIBS
8561 LIBS="-ldl  $LIBS"
8562 cat >conftest.$ac_ext <<_ACEOF
8563 /* confdefs.h.  */
8564 _ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h.  */
8568
8569 /* Override any gcc2 internal prototype to avoid an error.  */
8570 #ifdef __cplusplus
8571 extern "C"
8572 #endif
8573 /* We use char because int might match the return type of a gcc2
8574    builtin and then its argument prototype would still apply.  */
8575 char dlopen ();
8576 int
8577 main ()
8578 {
8579 dlopen ();
8580   ;
8581   return 0;
8582 }
8583 _ACEOF
8584 rm -f conftest.$ac_objext conftest$ac_exeext
8585 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8586   (eval $ac_link) 2>conftest.er1
8587   ac_status=$?
8588   grep -v '^ *+' conftest.er1 >conftest.err
8589   rm -f conftest.er1
8590   cat conftest.err >&5
8591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8592   (exit $ac_status); } &&
8593          { ac_try='test -z "$ac_c_werror_flag"
8594                          || test ! -s conftest.err'
8595   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8596   (eval $ac_try) 2>&5
8597   ac_status=$?
8598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8599   (exit $ac_status); }; } &&
8600          { ac_try='test -s conftest$ac_exeext'
8601   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8602   (eval $ac_try) 2>&5
8603   ac_status=$?
8604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605   (exit $ac_status); }; }; then
8606   ac_cv_lib_dl_dlopen=yes
8607 else
8608   echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8610
8611 ac_cv_lib_dl_dlopen=no
8612 fi
8613 rm -f conftest.err conftest.$ac_objext \
8614       conftest$ac_exeext conftest.$ac_ext
8615 LIBS=$ac_check_lib_save_LIBS
8616 fi
8617 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8618 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8619 if test $ac_cv_lib_dl_dlopen = yes; then
8620   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8621 else
8622
8623     lt_cv_dlopen="dyld"
8624     lt_cv_dlopen_libs=
8625     lt_cv_dlopen_self=yes
8626
8627 fi
8628
8629    ;;
8630
8631   *)
8632     echo "$as_me:$LINENO: checking for shl_load" >&5
8633 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8634 if test "${ac_cv_func_shl_load+set}" = set; then
8635   echo $ECHO_N "(cached) $ECHO_C" >&6
8636 else
8637   cat >conftest.$ac_ext <<_ACEOF
8638 /* confdefs.h.  */
8639 _ACEOF
8640 cat confdefs.h >>conftest.$ac_ext
8641 cat >>conftest.$ac_ext <<_ACEOF
8642 /* end confdefs.h.  */
8643 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8645 #define shl_load innocuous_shl_load
8646
8647 /* System header to define __stub macros and hopefully few prototypes,
8648     which can conflict with char shl_load (); below.
8649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8650     <limits.h> exists even on freestanding compilers.  */
8651
8652 #ifdef __STDC__
8653 # include <limits.h>
8654 #else
8655 # include <assert.h>
8656 #endif
8657
8658 #undef shl_load
8659
8660 /* Override any gcc2 internal prototype to avoid an error.  */
8661 #ifdef __cplusplus
8662 extern "C"
8663 {
8664 #endif
8665 /* We use char because int might match the return type of a gcc2
8666    builtin and then its argument prototype would still apply.  */
8667 char shl_load ();
8668 /* The GNU C library defines this for functions which it implements
8669     to always fail with ENOSYS.  Some functions are actually named
8670     something starting with __ and the normal name is an alias.  */
8671 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8672 choke me
8673 #else
8674 char (*f) () = shl_load;
8675 #endif
8676 #ifdef __cplusplus
8677 }
8678 #endif
8679
8680 int
8681 main ()
8682 {
8683 return f != shl_load;
8684   ;
8685   return 0;
8686 }
8687 _ACEOF
8688 rm -f conftest.$ac_objext conftest$ac_exeext
8689 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8690   (eval $ac_link) 2>conftest.er1
8691   ac_status=$?
8692   grep -v '^ *+' conftest.er1 >conftest.err
8693   rm -f conftest.er1
8694   cat conftest.err >&5
8695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696   (exit $ac_status); } &&
8697          { ac_try='test -z "$ac_c_werror_flag"
8698                          || test ! -s conftest.err'
8699   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8700   (eval $ac_try) 2>&5
8701   ac_status=$?
8702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703   (exit $ac_status); }; } &&
8704          { ac_try='test -s conftest$ac_exeext'
8705   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8706   (eval $ac_try) 2>&5
8707   ac_status=$?
8708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709   (exit $ac_status); }; }; then
8710   ac_cv_func_shl_load=yes
8711 else
8712   echo "$as_me: failed program was:" >&5
8713 sed 's/^/| /' conftest.$ac_ext >&5
8714
8715 ac_cv_func_shl_load=no
8716 fi
8717 rm -f conftest.err conftest.$ac_objext \
8718       conftest$ac_exeext conftest.$ac_ext
8719 fi
8720 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8721 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8722 if test $ac_cv_func_shl_load = yes; then
8723   lt_cv_dlopen="shl_load"
8724 else
8725   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8726 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8727 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8728   echo $ECHO_N "(cached) $ECHO_C" >&6
8729 else
8730   ac_check_lib_save_LIBS=$LIBS
8731 LIBS="-ldld  $LIBS"
8732 cat >conftest.$ac_ext <<_ACEOF
8733 /* confdefs.h.  */
8734 _ACEOF
8735 cat confdefs.h >>conftest.$ac_ext
8736 cat >>conftest.$ac_ext <<_ACEOF
8737 /* end confdefs.h.  */
8738
8739 /* Override any gcc2 internal prototype to avoid an error.  */
8740 #ifdef __cplusplus
8741 extern "C"
8742 #endif
8743 /* We use char because int might match the return type of a gcc2
8744    builtin and then its argument prototype would still apply.  */
8745 char shl_load ();
8746 int
8747 main ()
8748 {
8749 shl_load ();
8750   ;
8751   return 0;
8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext conftest$ac_exeext
8755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8756   (eval $ac_link) 2>conftest.er1
8757   ac_status=$?
8758   grep -v '^ *+' conftest.er1 >conftest.err
8759   rm -f conftest.er1
8760   cat conftest.err >&5
8761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8762   (exit $ac_status); } &&
8763          { ac_try='test -z "$ac_c_werror_flag"
8764                          || test ! -s conftest.err'
8765   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8766   (eval $ac_try) 2>&5
8767   ac_status=$?
8768   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769   (exit $ac_status); }; } &&
8770          { ac_try='test -s conftest$ac_exeext'
8771   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8772   (eval $ac_try) 2>&5
8773   ac_status=$?
8774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8775   (exit $ac_status); }; }; then
8776   ac_cv_lib_dld_shl_load=yes
8777 else
8778   echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 ac_cv_lib_dld_shl_load=no
8782 fi
8783 rm -f conftest.err conftest.$ac_objext \
8784       conftest$ac_exeext conftest.$ac_ext
8785 LIBS=$ac_check_lib_save_LIBS
8786 fi
8787 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8788 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8789 if test $ac_cv_lib_dld_shl_load = yes; then
8790   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8791 else
8792   echo "$as_me:$LINENO: checking for dlopen" >&5
8793 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8794 if test "${ac_cv_func_dlopen+set}" = set; then
8795   echo $ECHO_N "(cached) $ECHO_C" >&6
8796 else
8797   cat >conftest.$ac_ext <<_ACEOF
8798 /* confdefs.h.  */
8799 _ACEOF
8800 cat confdefs.h >>conftest.$ac_ext
8801 cat >>conftest.$ac_ext <<_ACEOF
8802 /* end confdefs.h.  */
8803 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8804    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8805 #define dlopen innocuous_dlopen
8806
8807 /* System header to define __stub macros and hopefully few prototypes,
8808     which can conflict with char dlopen (); below.
8809     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8810     <limits.h> exists even on freestanding compilers.  */
8811
8812 #ifdef __STDC__
8813 # include <limits.h>
8814 #else
8815 # include <assert.h>
8816 #endif
8817
8818 #undef dlopen
8819
8820 /* Override any gcc2 internal prototype to avoid an error.  */
8821 #ifdef __cplusplus
8822 extern "C"
8823 {
8824 #endif
8825 /* We use char because int might match the return type of a gcc2
8826    builtin and then its argument prototype would still apply.  */
8827 char dlopen ();
8828 /* The GNU C library defines this for functions which it implements
8829     to always fail with ENOSYS.  Some functions are actually named
8830     something starting with __ and the normal name is an alias.  */
8831 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8832 choke me
8833 #else
8834 char (*f) () = dlopen;
8835 #endif
8836 #ifdef __cplusplus
8837 }
8838 #endif
8839
8840 int
8841 main ()
8842 {
8843 return f != dlopen;
8844   ;
8845   return 0;
8846 }
8847 _ACEOF
8848 rm -f conftest.$ac_objext conftest$ac_exeext
8849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8850   (eval $ac_link) 2>conftest.er1
8851   ac_status=$?
8852   grep -v '^ *+' conftest.er1 >conftest.err
8853   rm -f conftest.er1
8854   cat conftest.err >&5
8855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8856   (exit $ac_status); } &&
8857          { ac_try='test -z "$ac_c_werror_flag"
8858                          || test ! -s conftest.err'
8859   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8860   (eval $ac_try) 2>&5
8861   ac_status=$?
8862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8863   (exit $ac_status); }; } &&
8864          { ac_try='test -s conftest$ac_exeext'
8865   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866   (eval $ac_try) 2>&5
8867   ac_status=$?
8868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869   (exit $ac_status); }; }; then
8870   ac_cv_func_dlopen=yes
8871 else
8872   echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8874
8875 ac_cv_func_dlopen=no
8876 fi
8877 rm -f conftest.err conftest.$ac_objext \
8878       conftest$ac_exeext conftest.$ac_ext
8879 fi
8880 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8881 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8882 if test $ac_cv_func_dlopen = yes; then
8883   lt_cv_dlopen="dlopen"
8884 else
8885   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8886 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8887 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8888   echo $ECHO_N "(cached) $ECHO_C" >&6
8889 else
8890   ac_check_lib_save_LIBS=$LIBS
8891 LIBS="-ldl  $LIBS"
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898
8899 /* Override any gcc2 internal prototype to avoid an error.  */
8900 #ifdef __cplusplus
8901 extern "C"
8902 #endif
8903 /* We use char because int might match the return type of a gcc2
8904    builtin and then its argument prototype would still apply.  */
8905 char dlopen ();
8906 int
8907 main ()
8908 {
8909 dlopen ();
8910   ;
8911   return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext conftest$ac_exeext
8915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8916   (eval $ac_link) 2>conftest.er1
8917   ac_status=$?
8918   grep -v '^ *+' conftest.er1 >conftest.err
8919   rm -f conftest.er1
8920   cat conftest.err >&5
8921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8922   (exit $ac_status); } &&
8923          { ac_try='test -z "$ac_c_werror_flag"
8924                          || test ! -s conftest.err'
8925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8926   (eval $ac_try) 2>&5
8927   ac_status=$?
8928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8929   (exit $ac_status); }; } &&
8930          { ac_try='test -s conftest$ac_exeext'
8931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8932   (eval $ac_try) 2>&5
8933   ac_status=$?
8934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935   (exit $ac_status); }; }; then
8936   ac_cv_lib_dl_dlopen=yes
8937 else
8938   echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 ac_cv_lib_dl_dlopen=no
8942 fi
8943 rm -f conftest.err conftest.$ac_objext \
8944       conftest$ac_exeext conftest.$ac_ext
8945 LIBS=$ac_check_lib_save_LIBS
8946 fi
8947 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8948 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8949 if test $ac_cv_lib_dl_dlopen = yes; then
8950   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8951 else
8952   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8953 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8954 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8955   echo $ECHO_N "(cached) $ECHO_C" >&6
8956 else
8957   ac_check_lib_save_LIBS=$LIBS
8958 LIBS="-lsvld  $LIBS"
8959 cat >conftest.$ac_ext <<_ACEOF
8960 /* confdefs.h.  */
8961 _ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h.  */
8965
8966 /* Override any gcc2 internal prototype to avoid an error.  */
8967 #ifdef __cplusplus
8968 extern "C"
8969 #endif
8970 /* We use char because int might match the return type of a gcc2
8971    builtin and then its argument prototype would still apply.  */
8972 char dlopen ();
8973 int
8974 main ()
8975 {
8976 dlopen ();
8977   ;
8978   return 0;
8979 }
8980 _ACEOF
8981 rm -f conftest.$ac_objext conftest$ac_exeext
8982 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8983   (eval $ac_link) 2>conftest.er1
8984   ac_status=$?
8985   grep -v '^ *+' conftest.er1 >conftest.err
8986   rm -f conftest.er1
8987   cat conftest.err >&5
8988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8989   (exit $ac_status); } &&
8990          { ac_try='test -z "$ac_c_werror_flag"
8991                          || test ! -s conftest.err'
8992   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8993   (eval $ac_try) 2>&5
8994   ac_status=$?
8995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996   (exit $ac_status); }; } &&
8997          { ac_try='test -s conftest$ac_exeext'
8998   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8999   (eval $ac_try) 2>&5
9000   ac_status=$?
9001   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002   (exit $ac_status); }; }; then
9003   ac_cv_lib_svld_dlopen=yes
9004 else
9005   echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.$ac_ext >&5
9007
9008 ac_cv_lib_svld_dlopen=no
9009 fi
9010 rm -f conftest.err conftest.$ac_objext \
9011       conftest$ac_exeext conftest.$ac_ext
9012 LIBS=$ac_check_lib_save_LIBS
9013 fi
9014 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9015 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9016 if test $ac_cv_lib_svld_dlopen = yes; then
9017   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9018 else
9019   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9020 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9021 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9022   echo $ECHO_N "(cached) $ECHO_C" >&6
9023 else
9024   ac_check_lib_save_LIBS=$LIBS
9025 LIBS="-ldld  $LIBS"
9026 cat >conftest.$ac_ext <<_ACEOF
9027 /* confdefs.h.  */
9028 _ACEOF
9029 cat confdefs.h >>conftest.$ac_ext
9030 cat >>conftest.$ac_ext <<_ACEOF
9031 /* end confdefs.h.  */
9032
9033 /* Override any gcc2 internal prototype to avoid an error.  */
9034 #ifdef __cplusplus
9035 extern "C"
9036 #endif
9037 /* We use char because int might match the return type of a gcc2
9038    builtin and then its argument prototype would still apply.  */
9039 char dld_link ();
9040 int
9041 main ()
9042 {
9043 dld_link ();
9044   ;
9045   return 0;
9046 }
9047 _ACEOF
9048 rm -f conftest.$ac_objext conftest$ac_exeext
9049 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9050   (eval $ac_link) 2>conftest.er1
9051   ac_status=$?
9052   grep -v '^ *+' conftest.er1 >conftest.err
9053   rm -f conftest.er1
9054   cat conftest.err >&5
9055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9056   (exit $ac_status); } &&
9057          { ac_try='test -z "$ac_c_werror_flag"
9058                          || test ! -s conftest.err'
9059   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060   (eval $ac_try) 2>&5
9061   ac_status=$?
9062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063   (exit $ac_status); }; } &&
9064          { ac_try='test -s conftest$ac_exeext'
9065   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9066   (eval $ac_try) 2>&5
9067   ac_status=$?
9068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069   (exit $ac_status); }; }; then
9070   ac_cv_lib_dld_dld_link=yes
9071 else
9072   echo "$as_me: failed program was:" >&5
9073 sed 's/^/| /' conftest.$ac_ext >&5
9074
9075 ac_cv_lib_dld_dld_link=no
9076 fi
9077 rm -f conftest.err conftest.$ac_objext \
9078       conftest$ac_exeext conftest.$ac_ext
9079 LIBS=$ac_check_lib_save_LIBS
9080 fi
9081 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9082 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9083 if test $ac_cv_lib_dld_dld_link = yes; then
9084   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9085 fi
9086
9087
9088 fi
9089
9090
9091 fi
9092
9093
9094 fi
9095
9096
9097 fi
9098
9099
9100 fi
9101
9102     ;;
9103   esac
9104
9105   if test "x$lt_cv_dlopen" != xno; then
9106     enable_dlopen=yes
9107   else
9108     enable_dlopen=no
9109   fi
9110
9111   case $lt_cv_dlopen in
9112   dlopen)
9113     save_CPPFLAGS="$CPPFLAGS"
9114     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9115
9116     save_LDFLAGS="$LDFLAGS"
9117     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9118
9119     save_LIBS="$LIBS"
9120     LIBS="$lt_cv_dlopen_libs $LIBS"
9121
9122     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9123 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9124 if test "${lt_cv_dlopen_self+set}" = set; then
9125   echo $ECHO_N "(cached) $ECHO_C" >&6
9126 else
9127           if test "$cross_compiling" = yes; then :
9128   lt_cv_dlopen_self=cross
9129 else
9130   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9131   lt_status=$lt_dlunknown
9132   cat > conftest.$ac_ext <<EOF
9133 #line 9133 "configure"
9134 #include "confdefs.h"
9135
9136 #if HAVE_DLFCN_H
9137 #include <dlfcn.h>
9138 #endif
9139
9140 #include <stdio.h>
9141
9142 #ifdef RTLD_GLOBAL
9143 #  define LT_DLGLOBAL           RTLD_GLOBAL
9144 #else
9145 #  ifdef DL_GLOBAL
9146 #    define LT_DLGLOBAL         DL_GLOBAL
9147 #  else
9148 #    define LT_DLGLOBAL         0
9149 #  endif
9150 #endif
9151
9152 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9153    find out it does not work in some platform. */
9154 #ifndef LT_DLLAZY_OR_NOW
9155 #  ifdef RTLD_LAZY
9156 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9157 #  else
9158 #    ifdef DL_LAZY
9159 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9160 #    else
9161 #      ifdef RTLD_NOW
9162 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9163 #      else
9164 #        ifdef DL_NOW
9165 #          define LT_DLLAZY_OR_NOW      DL_NOW
9166 #        else
9167 #          define LT_DLLAZY_OR_NOW      0
9168 #        endif
9169 #      endif
9170 #    endif
9171 #  endif
9172 #endif
9173
9174 #ifdef __cplusplus
9175 extern "C" void exit (int);
9176 #endif
9177
9178 void fnord() { int i=42;}
9179 int main ()
9180 {
9181   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9182   int status = $lt_dlunknown;
9183
9184   if (self)
9185     {
9186       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9187       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9188       /* dlclose (self); */
9189     }
9190   else
9191     puts (dlerror ());
9192
9193     exit (status);
9194 }
9195 EOF
9196   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9197   (eval $ac_link) 2>&5
9198   ac_status=$?
9199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9201     (./conftest; exit; ) >&5 2>/dev/null
9202     lt_status=$?
9203     case x$lt_status in
9204       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9205       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9206       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9207     esac
9208   else :
9209     # compilation failed
9210     lt_cv_dlopen_self=no
9211   fi
9212 fi
9213 rm -fr conftest*
9214
9215
9216 fi
9217 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9218 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9219
9220     if test "x$lt_cv_dlopen_self" = xyes; then
9221       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9222       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9223 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9224 if test "${lt_cv_dlopen_self_static+set}" = set; then
9225   echo $ECHO_N "(cached) $ECHO_C" >&6
9226 else
9227           if test "$cross_compiling" = yes; then :
9228   lt_cv_dlopen_self_static=cross
9229 else
9230   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9231   lt_status=$lt_dlunknown
9232   cat > conftest.$ac_ext <<EOF
9233 #line 9233 "configure"
9234 #include "confdefs.h"
9235
9236 #if HAVE_DLFCN_H
9237 #include <dlfcn.h>
9238 #endif
9239
9240 #include <stdio.h>
9241
9242 #ifdef RTLD_GLOBAL
9243 #  define LT_DLGLOBAL           RTLD_GLOBAL
9244 #else
9245 #  ifdef DL_GLOBAL
9246 #    define LT_DLGLOBAL         DL_GLOBAL
9247 #  else
9248 #    define LT_DLGLOBAL         0
9249 #  endif
9250 #endif
9251
9252 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9253    find out it does not work in some platform. */
9254 #ifndef LT_DLLAZY_OR_NOW
9255 #  ifdef RTLD_LAZY
9256 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9257 #  else
9258 #    ifdef DL_LAZY
9259 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9260 #    else
9261 #      ifdef RTLD_NOW
9262 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9263 #      else
9264 #        ifdef DL_NOW
9265 #          define LT_DLLAZY_OR_NOW      DL_NOW
9266 #        else
9267 #          define LT_DLLAZY_OR_NOW      0
9268 #        endif
9269 #      endif
9270 #    endif
9271 #  endif
9272 #endif
9273
9274 #ifdef __cplusplus
9275 extern "C" void exit (int);
9276 #endif
9277
9278 void fnord() { int i=42;}
9279 int main ()
9280 {
9281   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9282   int status = $lt_dlunknown;
9283
9284   if (self)
9285     {
9286       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9287       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9288       /* dlclose (self); */
9289     }
9290   else
9291     puts (dlerror ());
9292
9293     exit (status);
9294 }
9295 EOF
9296   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9297   (eval $ac_link) 2>&5
9298   ac_status=$?
9299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9300   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9301     (./conftest; exit; ) >&5 2>/dev/null
9302     lt_status=$?
9303     case x$lt_status in
9304       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9305       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9306       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9307     esac
9308   else :
9309     # compilation failed
9310     lt_cv_dlopen_self_static=no
9311   fi
9312 fi
9313 rm -fr conftest*
9314
9315
9316 fi
9317 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9318 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9319     fi
9320
9321     CPPFLAGS="$save_CPPFLAGS"
9322     LDFLAGS="$save_LDFLAGS"
9323     LIBS="$save_LIBS"
9324     ;;
9325   esac
9326
9327   case $lt_cv_dlopen_self in
9328   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9329   *) enable_dlopen_self=unknown ;;
9330   esac
9331
9332   case $lt_cv_dlopen_self_static in
9333   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9334   *) enable_dlopen_self_static=unknown ;;
9335   esac
9336 fi
9337
9338
9339 # Report which library types will actually be built
9340 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9341 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9342 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9343 echo "${ECHO_T}$can_build_shared" >&6
9344
9345 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9346 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9347 test "$can_build_shared" = "no" && enable_shared=no
9348
9349 # On AIX, shared libraries and static libraries use the same namespace, and
9350 # are all built from PIC.
9351 case $host_os in
9352 aix3*)
9353   test "$enable_shared" = yes && enable_static=no
9354   if test -n "$RANLIB"; then
9355     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9356     postinstall_cmds='$RANLIB $lib'
9357   fi
9358   ;;
9359
9360 aix4* | aix5*)
9361   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9362     test "$enable_shared" = yes && enable_static=no
9363   fi
9364     ;;
9365 esac
9366 echo "$as_me:$LINENO: result: $enable_shared" >&5
9367 echo "${ECHO_T}$enable_shared" >&6
9368
9369 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9370 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9371 # Make sure either enable_shared or enable_static is yes.
9372 test "$enable_shared" = yes || enable_static=yes
9373 echo "$as_me:$LINENO: result: $enable_static" >&5
9374 echo "${ECHO_T}$enable_static" >&6
9375
9376 # The else clause should only fire when bootstrapping the
9377 # libtool distribution, otherwise you forgot to ship ltmain.sh
9378 # with your package, and you will get complaints that there are
9379 # no rules to generate ltmain.sh.
9380 if test -f "$ltmain"; then
9381   # See if we are running on zsh, and set the options which allow our commands through
9382   # without removal of \ escapes.
9383   if test -n "${ZSH_VERSION+set}" ; then
9384     setopt NO_GLOB_SUBST
9385   fi
9386   # Now quote all the things that may contain metacharacters while being
9387   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9388   # variables and quote the copies for generation of the libtool script.
9389   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9390     SED SHELL STRIP \
9391     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9392     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9393     deplibs_check_method reload_flag reload_cmds need_locks \
9394     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9395     lt_cv_sys_global_symbol_to_c_name_address \
9396     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9397     old_postinstall_cmds old_postuninstall_cmds \
9398     compiler \
9399     CC \
9400     LD \
9401     lt_prog_compiler_wl \
9402     lt_prog_compiler_pic \
9403     lt_prog_compiler_static \
9404     lt_prog_compiler_no_builtin_flag \
9405     export_dynamic_flag_spec \
9406     thread_safe_flag_spec \
9407     whole_archive_flag_spec \
9408     enable_shared_with_static_runtimes \
9409     old_archive_cmds \
9410     old_archive_from_new_cmds \
9411     predep_objects \
9412     postdep_objects \
9413     predeps \
9414     postdeps \
9415     compiler_lib_search_path \
9416     archive_cmds \
9417     archive_expsym_cmds \
9418     postinstall_cmds \
9419     postuninstall_cmds \
9420     old_archive_from_expsyms_cmds \
9421     allow_undefined_flag \
9422     no_undefined_flag \
9423     export_symbols_cmds \
9424     hardcode_libdir_flag_spec \
9425     hardcode_libdir_flag_spec_ld \
9426     hardcode_libdir_separator \
9427     hardcode_automatic \
9428     module_cmds \
9429     module_expsym_cmds \
9430     lt_cv_prog_compiler_c_o \
9431     exclude_expsyms \
9432     include_expsyms; do
9433
9434     case $var in
9435     old_archive_cmds | \
9436     old_archive_from_new_cmds | \
9437     archive_cmds | \
9438     archive_expsym_cmds | \
9439     module_cmds | \
9440     module_expsym_cmds | \
9441     old_archive_from_expsyms_cmds | \
9442     export_symbols_cmds | \
9443     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9444     postinstall_cmds | postuninstall_cmds | \
9445     old_postinstall_cmds | old_postuninstall_cmds | \
9446     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9447       # Double-quote double-evaled strings.
9448       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9449       ;;
9450     *)
9451       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9452       ;;
9453     esac
9454   done
9455
9456   case $lt_echo in
9457   *'\$0 --fallback-echo"')
9458     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9459     ;;
9460   esac
9461
9462 cfgfile="${ofile}T"
9463   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9464   $rm -f "$cfgfile"
9465   { echo "$as_me:$LINENO: creating $ofile" >&5
9466 echo "$as_me: creating $ofile" >&6;}
9467
9468   cat <<__EOF__ >> "$cfgfile"
9469 #! $SHELL
9470
9471 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9472 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9473 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9474 #
9475 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9476 # Free Software Foundation, Inc.
9477 #
9478 # This file is part of GNU Libtool:
9479 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9480 #
9481 # This program is free software; you can redistribute it and/or modify
9482 # it under the terms of the GNU General Public License as published by
9483 # the Free Software Foundation; either version 2 of the License, or
9484 # (at your option) any later version.
9485 #
9486 # This program is distributed in the hope that it will be useful, but
9487 # WITHOUT ANY WARRANTY; without even the implied warranty of
9488 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9489 # General Public License for more details.
9490 #
9491 # You should have received a copy of the GNU General Public License
9492 # along with this program; if not, write to the Free Software
9493 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9494 #
9495 # As a special exception to the GNU General Public License, if you
9496 # distribute this file as part of a program that contains a
9497 # configuration script generated by Autoconf, you may include it under
9498 # the same distribution terms that you use for the rest of that program.
9499
9500 # A sed program that does not truncate output.
9501 SED=$lt_SED
9502
9503 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9504 Xsed="$SED -e 1s/^X//"
9505
9506 # The HP-UX ksh and POSIX shell print the target directory to stdout
9507 # if CDPATH is set.
9508 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9509
9510 # The names of the tagged configurations supported by this script.
9511 available_tags=
9512
9513 # ### BEGIN LIBTOOL CONFIG
9514
9515 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9516
9517 # Shell to use when invoking shell scripts.
9518 SHELL=$lt_SHELL
9519
9520 # Whether or not to build shared libraries.
9521 build_libtool_libs=$enable_shared
9522
9523 # Whether or not to build static libraries.
9524 build_old_libs=$enable_static
9525
9526 # Whether or not to add -lc for building shared libraries.
9527 build_libtool_need_lc=$archive_cmds_need_lc
9528
9529 # Whether or not to disallow shared libs when runtime libs are static
9530 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9531
9532 # Whether or not to optimize for fast installation.
9533 fast_install=$enable_fast_install
9534
9535 # The host system.
9536 host_alias=$host_alias
9537 host=$host
9538 host_os=$host_os
9539
9540 # The build system.
9541 build_alias=$build_alias
9542 build=$build
9543 build_os=$build_os
9544
9545 # An echo program that does not interpret backslashes.
9546 echo=$lt_echo
9547
9548 # The archiver.
9549 AR=$lt_AR
9550 AR_FLAGS=$lt_AR_FLAGS
9551
9552 # A C compiler.
9553 LTCC=$lt_LTCC
9554
9555 # LTCC compiler flags.
9556 LTCFLAGS=$lt_LTCFLAGS
9557
9558 # A language-specific compiler.
9559 CC=$lt_compiler
9560
9561 # Is the compiler the GNU C compiler?
9562 with_gcc=$GCC
9563
9564 # An ERE matcher.
9565 EGREP=$lt_EGREP
9566
9567 # The linker used to build libraries.
9568 LD=$lt_LD
9569
9570 # Whether we need hard or soft links.
9571 LN_S=$lt_LN_S
9572
9573 # A BSD-compatible nm program.
9574 NM=$lt_NM
9575
9576 # A symbol stripping program
9577 STRIP=$lt_STRIP
9578
9579 # Used to examine libraries when file_magic_cmd begins "file"
9580 MAGIC_CMD=$MAGIC_CMD
9581
9582 # Used on cygwin: DLL creation program.
9583 DLLTOOL="$DLLTOOL"
9584
9585 # Used on cygwin: object dumper.
9586 OBJDUMP="$OBJDUMP"
9587
9588 # Used on cygwin: assembler.
9589 AS="$AS"
9590
9591 # The name of the directory that contains temporary libtool files.
9592 objdir=$objdir
9593
9594 # How to create reloadable object files.
9595 reload_flag=$lt_reload_flag
9596 reload_cmds=$lt_reload_cmds
9597
9598 # How to pass a linker flag through the compiler.
9599 wl=$lt_lt_prog_compiler_wl
9600
9601 # Object file suffix (normally "o").
9602 objext="$ac_objext"
9603
9604 # Old archive suffix (normally "a").
9605 libext="$libext"
9606
9607 # Shared library suffix (normally ".so").
9608 shrext_cmds='$shrext_cmds'
9609
9610 # Executable file suffix (normally "").
9611 exeext="$exeext"
9612
9613 # Additional compiler flags for building library objects.
9614 pic_flag=$lt_lt_prog_compiler_pic
9615 pic_mode=$pic_mode
9616
9617 # What is the maximum length of a command?
9618 max_cmd_len=$lt_cv_sys_max_cmd_len
9619
9620 # Does compiler simultaneously support -c and -o options?
9621 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9622
9623 # Must we lock files when doing compilation?
9624 need_locks=$lt_need_locks
9625
9626 # Do we need the lib prefix for modules?
9627 need_lib_prefix=$need_lib_prefix
9628
9629 # Do we need a version for libraries?
9630 need_version=$need_version
9631
9632 # Whether dlopen is supported.
9633 dlopen_support=$enable_dlopen
9634
9635 # Whether dlopen of programs is supported.
9636 dlopen_self=$enable_dlopen_self
9637
9638 # Whether dlopen of statically linked programs is supported.
9639 dlopen_self_static=$enable_dlopen_self_static
9640
9641 # Compiler flag to prevent dynamic linking.
9642 link_static_flag=$lt_lt_prog_compiler_static
9643
9644 # Compiler flag to turn off builtin functions.
9645 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9646
9647 # Compiler flag to allow reflexive dlopens.
9648 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9649
9650 # Compiler flag to generate shared objects directly from archives.
9651 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9652
9653 # Compiler flag to generate thread-safe objects.
9654 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9655
9656 # Library versioning type.
9657 version_type=$version_type
9658
9659 # Format of library name prefix.
9660 libname_spec=$lt_libname_spec
9661
9662 # List of archive names.  First name is the real one, the rest are links.
9663 # The last name is the one that the linker finds with -lNAME.
9664 library_names_spec=$lt_library_names_spec
9665
9666 # The coded name of the library, if different from the real name.
9667 soname_spec=$lt_soname_spec
9668
9669 # Commands used to build and install an old-style archive.
9670 RANLIB=$lt_RANLIB
9671 old_archive_cmds=$lt_old_archive_cmds
9672 old_postinstall_cmds=$lt_old_postinstall_cmds
9673 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9674
9675 # Create an old-style archive from a shared archive.
9676 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9677
9678 # Create a temporary old-style archive to link instead of a shared archive.
9679 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9680
9681 # Commands used to build and install a shared archive.
9682 archive_cmds=$lt_archive_cmds
9683 archive_expsym_cmds=$lt_archive_expsym_cmds
9684 postinstall_cmds=$lt_postinstall_cmds
9685 postuninstall_cmds=$lt_postuninstall_cmds
9686
9687 # Commands used to build a loadable module (assumed same as above if empty)
9688 module_cmds=$lt_module_cmds
9689 module_expsym_cmds=$lt_module_expsym_cmds
9690
9691 # Commands to strip libraries.
9692 old_striplib=$lt_old_striplib
9693 striplib=$lt_striplib
9694
9695 # Dependencies to place before the objects being linked to create a
9696 # shared library.
9697 predep_objects=$lt_predep_objects
9698
9699 # Dependencies to place after the objects being linked to create a
9700 # shared library.
9701 postdep_objects=$lt_postdep_objects
9702
9703 # Dependencies to place before the objects being linked to create a
9704 # shared library.
9705 predeps=$lt_predeps
9706
9707 # Dependencies to place after the objects being linked to create a
9708 # shared library.
9709 postdeps=$lt_postdeps
9710
9711 # The library search path used internally by the compiler when linking
9712 # a shared library.
9713 compiler_lib_search_path=$lt_compiler_lib_search_path
9714
9715 # Method to check whether dependent libraries are shared objects.
9716 deplibs_check_method=$lt_deplibs_check_method
9717
9718 # Command to use when deplibs_check_method == file_magic.
9719 file_magic_cmd=$lt_file_magic_cmd
9720
9721 # Flag that allows shared libraries with undefined symbols to be built.
9722 allow_undefined_flag=$lt_allow_undefined_flag
9723
9724 # Flag that forces no undefined symbols.
9725 no_undefined_flag=$lt_no_undefined_flag
9726
9727 # Commands used to finish a libtool library installation in a directory.
9728 finish_cmds=$lt_finish_cmds
9729
9730 # Same as above, but a single script fragment to be evaled but not shown.
9731 finish_eval=$lt_finish_eval
9732
9733 # Take the output of nm and produce a listing of raw symbols and C names.
9734 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9735
9736 # Transform the output of nm in a proper C declaration
9737 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9738
9739 # Transform the output of nm in a C name address pair
9740 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9741
9742 # This is the shared library runtime path variable.
9743 runpath_var=$runpath_var
9744
9745 # This is the shared library path variable.
9746 shlibpath_var=$shlibpath_var
9747
9748 # Is shlibpath searched before the hard-coded library search path?
9749 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9750
9751 # How to hardcode a shared library path into an executable.
9752 hardcode_action=$hardcode_action
9753
9754 # Whether we should hardcode library paths into libraries.
9755 hardcode_into_libs=$hardcode_into_libs
9756
9757 # Flag to hardcode \$libdir into a binary during linking.
9758 # This must work even if \$libdir does not exist.
9759 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9760
9761 # If ld is used when linking, flag to hardcode \$libdir into
9762 # a binary during linking. This must work even if \$libdir does
9763 # not exist.
9764 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9765
9766 # Whether we need a single -rpath flag with a separated argument.
9767 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9768
9769 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9770 # resulting binary.
9771 hardcode_direct=$hardcode_direct
9772
9773 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9774 # resulting binary.
9775 hardcode_minus_L=$hardcode_minus_L
9776
9777 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9778 # the resulting binary.
9779 hardcode_shlibpath_var=$hardcode_shlibpath_var
9780
9781 # Set to yes if building a shared library automatically hardcodes DIR into the library
9782 # and all subsequent libraries and executables linked against it.
9783 hardcode_automatic=$hardcode_automatic
9784
9785 # Variables whose values should be saved in libtool wrapper scripts and
9786 # restored at relink time.
9787 variables_saved_for_relink="$variables_saved_for_relink"
9788
9789 # Whether libtool must link a program against all its dependency libraries.
9790 link_all_deplibs=$link_all_deplibs
9791
9792 # Compile-time system search path for libraries
9793 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9794
9795 # Run-time system search path for libraries
9796 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9797
9798 # Fix the shell variable \$srcfile for the compiler.
9799 fix_srcfile_path="$fix_srcfile_path"
9800
9801 # Set to yes if exported symbols are required.
9802 always_export_symbols=$always_export_symbols
9803
9804 # The commands to list exported symbols.
9805 export_symbols_cmds=$lt_export_symbols_cmds
9806
9807 # The commands to extract the exported symbol list from a shared archive.
9808 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9809
9810 # Symbols that should not be listed in the preloaded symbols.
9811 exclude_expsyms=$lt_exclude_expsyms
9812
9813 # Symbols that must always be exported.
9814 include_expsyms=$lt_include_expsyms
9815
9816 # ### END LIBTOOL CONFIG
9817
9818 __EOF__
9819
9820
9821   case $host_os in
9822   aix3*)
9823     cat <<\EOF >> "$cfgfile"
9824
9825 # AIX sometimes has problems with the GCC collect2 program.  For some
9826 # reason, if we set the COLLECT_NAMES environment variable, the problems
9827 # vanish in a puff of smoke.
9828 if test "X${COLLECT_NAMES+set}" != Xset; then
9829   COLLECT_NAMES=
9830   export COLLECT_NAMES
9831 fi
9832 EOF
9833     ;;
9834   esac
9835
9836   # We use sed instead of cat because bash on DJGPP gets confused if
9837   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9838   # text mode, it properly converts lines to CR/LF.  This bash problem
9839   # is reportedly fixed, but why not run on old versions too?
9840   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9841
9842   mv -f "$cfgfile" "$ofile" || \
9843     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9844   chmod +x "$ofile"
9845
9846 else
9847   # If there is no Makefile yet, we rely on a make rule to execute
9848   # `config.status --recheck' to rerun these tests and create the
9849   # libtool script then.
9850   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9851   if test -f "$ltmain_in"; then
9852     test -f Makefile && make "$ltmain"
9853   fi
9854 fi
9855
9856
9857 ac_ext=c
9858 ac_cpp='$CPP $CPPFLAGS'
9859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9862
9863 CC="$lt_save_CC"
9864
9865
9866 # Check whether --with-tags or --without-tags was given.
9867 if test "${with_tags+set}" = set; then
9868   withval="$with_tags"
9869   tagnames="$withval"
9870 fi;
9871
9872 if test -f "$ltmain" && test -n "$tagnames"; then
9873   if test ! -f "${ofile}"; then
9874     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9875 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9876   fi
9877
9878   if test -z "$LTCC"; then
9879     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9880     if test -z "$LTCC"; then
9881       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9882 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9883     else
9884       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9885 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9886     fi
9887   fi
9888   if test -z "$LTCFLAGS"; then
9889     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9890   fi
9891
9892   # Extract list of available tagged configurations in $ofile.
9893   # Note that this assumes the entire list is on one line.
9894   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9895
9896   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9897   for tagname in $tagnames; do
9898     IFS="$lt_save_ifs"
9899     # Check whether tagname contains only valid characters
9900     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9901     "") ;;
9902     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9903 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9904    { (exit 1); exit 1; }; }
9905         ;;
9906     esac
9907
9908     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9909     then
9910       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9911 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9912    { (exit 1); exit 1; }; }
9913     fi
9914
9915     # Update the list of available tags.
9916     if test -n "$tagname"; then
9917       echo appending configuration tag \"$tagname\" to $ofile
9918
9919       case $tagname in
9920       CXX)
9921         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9922             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9923             (test "X$CXX" != "Xg++"))) ; then
9924           ac_ext=cc
9925 ac_cpp='$CXXCPP $CPPFLAGS'
9926 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9927 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9928 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9929
9930
9931
9932
9933 archive_cmds_need_lc_CXX=no
9934 allow_undefined_flag_CXX=
9935 always_export_symbols_CXX=no
9936 archive_expsym_cmds_CXX=
9937 export_dynamic_flag_spec_CXX=
9938 hardcode_direct_CXX=no
9939 hardcode_libdir_flag_spec_CXX=
9940 hardcode_libdir_flag_spec_ld_CXX=
9941 hardcode_libdir_separator_CXX=
9942 hardcode_minus_L_CXX=no
9943 hardcode_shlibpath_var_CXX=unsupported
9944 hardcode_automatic_CXX=no
9945 module_cmds_CXX=
9946 module_expsym_cmds_CXX=
9947 link_all_deplibs_CXX=unknown
9948 old_archive_cmds_CXX=$old_archive_cmds
9949 no_undefined_flag_CXX=
9950 whole_archive_flag_spec_CXX=
9951 enable_shared_with_static_runtimes_CXX=no
9952
9953 # Dependencies to place before and after the object being linked:
9954 predep_objects_CXX=
9955 postdep_objects_CXX=
9956 predeps_CXX=
9957 postdeps_CXX=
9958 compiler_lib_search_path_CXX=
9959
9960 # Source file extension for C++ test sources.
9961 ac_ext=cpp
9962
9963 # Object file extension for compiled C++ test sources.
9964 objext=o
9965 objext_CXX=$objext
9966
9967 # Code to be used in simple compile tests
9968 lt_simple_compile_test_code="int some_variable = 0;\n"
9969
9970 # Code to be used in simple link tests
9971 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9972
9973 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9974
9975 # If no C compiler was specified, use CC.
9976 LTCC=${LTCC-"$CC"}
9977
9978 # If no C compiler flags were specified, use CFLAGS.
9979 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9980
9981 # Allow CC to be a program name with arguments.
9982 compiler=$CC
9983
9984
9985 # save warnings/boilerplate of simple test code
9986 ac_outfile=conftest.$ac_objext
9987 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9988 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9989 _lt_compiler_boilerplate=`cat conftest.err`
9990 $rm conftest*
9991
9992 ac_outfile=conftest.$ac_objext
9993 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9994 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9995 _lt_linker_boilerplate=`cat conftest.err`
9996 $rm conftest*
9997
9998
9999 # Allow CC to be a program name with arguments.
10000 lt_save_CC=$CC
10001 lt_save_LD=$LD
10002 lt_save_GCC=$GCC
10003 GCC=$GXX
10004 lt_save_with_gnu_ld=$with_gnu_ld
10005 lt_save_path_LD=$lt_cv_path_LD
10006 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10007   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10008 else
10009   $as_unset lt_cv_prog_gnu_ld
10010 fi
10011 if test -n "${lt_cv_path_LDCXX+set}"; then
10012   lt_cv_path_LD=$lt_cv_path_LDCXX
10013 else
10014   $as_unset lt_cv_path_LD
10015 fi
10016 test -z "${LDCXX+set}" || LD=$LDCXX
10017 CC=${CXX-"c++"}
10018 compiler=$CC
10019 compiler_CXX=$CC
10020 for cc_temp in $compiler""; do
10021   case $cc_temp in
10022     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10023     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10024     \-*) ;;
10025     *) break;;
10026   esac
10027 done
10028 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10029
10030
10031 # We don't want -fno-exception wen compiling C++ code, so set the
10032 # no_builtin_flag separately
10033 if test "$GXX" = yes; then
10034   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10035 else
10036   lt_prog_compiler_no_builtin_flag_CXX=
10037 fi
10038
10039 if test "$GXX" = yes; then
10040   # Set up default GNU C++ configuration
10041
10042
10043 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10044 if test "${with_gnu_ld+set}" = set; then
10045   withval="$with_gnu_ld"
10046   test "$withval" = no || with_gnu_ld=yes
10047 else
10048   with_gnu_ld=no
10049 fi;
10050 ac_prog=ld
10051 if test "$GCC" = yes; then
10052   # Check if gcc -print-prog-name=ld gives a path.
10053   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10054 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10055   case $host in
10056   *-*-mingw*)
10057     # gcc leaves a trailing carriage return which upsets mingw
10058     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10059   *)
10060     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10061   esac
10062   case $ac_prog in
10063     # Accept absolute paths.
10064     [\\/]* | ?:[\\/]*)
10065       re_direlt='/[^/][^/]*/\.\./'
10066       # Canonicalize the pathname of ld
10067       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10068       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10069         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10070       done
10071       test -z "$LD" && LD="$ac_prog"
10072       ;;
10073   "")
10074     # If it fails, then pretend we aren't using GCC.
10075     ac_prog=ld
10076     ;;
10077   *)
10078     # If it is relative, then search for the first ld in PATH.
10079     with_gnu_ld=unknown
10080     ;;
10081   esac
10082 elif test "$with_gnu_ld" = yes; then
10083   echo "$as_me:$LINENO: checking for GNU ld" >&5
10084 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10085 else
10086   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10087 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10088 fi
10089 if test "${lt_cv_path_LD+set}" = set; then
10090   echo $ECHO_N "(cached) $ECHO_C" >&6
10091 else
10092   if test -z "$LD"; then
10093   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10094   for ac_dir in $PATH; do
10095     IFS="$lt_save_ifs"
10096     test -z "$ac_dir" && ac_dir=.
10097     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10098       lt_cv_path_LD="$ac_dir/$ac_prog"
10099       # Check to see if the program is GNU ld.  I'd rather use --version,
10100       # but apparently some variants of GNU ld only accept -v.
10101       # Break only if it was the GNU/non-GNU ld that we prefer.
10102       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10103       *GNU* | *'with BFD'*)
10104         test "$with_gnu_ld" != no && break
10105         ;;
10106       *)
10107         test "$with_gnu_ld" != yes && break
10108         ;;
10109       esac
10110     fi
10111   done
10112   IFS="$lt_save_ifs"
10113 else
10114   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10115 fi
10116 fi
10117
10118 LD="$lt_cv_path_LD"
10119 if test -n "$LD"; then
10120   echo "$as_me:$LINENO: result: $LD" >&5
10121 echo "${ECHO_T}$LD" >&6
10122 else
10123   echo "$as_me:$LINENO: result: no" >&5
10124 echo "${ECHO_T}no" >&6
10125 fi
10126 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10127 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10128    { (exit 1); exit 1; }; }
10129 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10130 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10131 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10132   echo $ECHO_N "(cached) $ECHO_C" >&6
10133 else
10134   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10135 case `$LD -v 2>&1 </dev/null` in
10136 *GNU* | *'with BFD'*)
10137   lt_cv_prog_gnu_ld=yes
10138   ;;
10139 *)
10140   lt_cv_prog_gnu_ld=no
10141   ;;
10142 esac
10143 fi
10144 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10145 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10146 with_gnu_ld=$lt_cv_prog_gnu_ld
10147
10148
10149
10150   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10151   # archiving commands below assume that GNU ld is being used.
10152   if test "$with_gnu_ld" = yes; then
10153     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10154     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'
10155
10156     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10157     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10158
10159     # If archive_cmds runs LD, not CC, wlarc should be empty
10160     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10161     #     investigate it a little bit more. (MM)
10162     wlarc='${wl}'
10163
10164     # ancient GNU ld didn't support --whole-archive et. al.
10165     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10166         grep 'no-whole-archive' > /dev/null; then
10167       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10168     else
10169       whole_archive_flag_spec_CXX=
10170     fi
10171   else
10172     with_gnu_ld=no
10173     wlarc=
10174
10175     # A generic and very simple default shared library creation
10176     # command for GNU C++ for the case where it uses the native
10177     # linker, instead of GNU ld.  If possible, this setting should
10178     # overridden to take advantage of the native linker features on
10179     # the platform it is being used on.
10180     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10181   fi
10182
10183   # Commands to make compiler produce verbose output that lists
10184   # what "hidden" libraries, object files and flags are used when
10185   # linking a shared library.
10186   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10187
10188 else
10189   GXX=no
10190   with_gnu_ld=no
10191   wlarc=
10192 fi
10193
10194 # PORTME: fill in a description of your system's C++ link characteristics
10195 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10196 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10197 ld_shlibs_CXX=yes
10198 case $host_os in
10199   aix3*)
10200     # FIXME: insert proper C++ library support
10201     ld_shlibs_CXX=no
10202     ;;
10203   aix4* | aix5*)
10204     if test "$host_cpu" = ia64; then
10205       # On IA64, the linker does run time linking by default, so we don't
10206       # have to do anything special.
10207       aix_use_runtimelinking=no
10208       exp_sym_flag='-Bexport'
10209       no_entry_flag=""
10210     else
10211       aix_use_runtimelinking=no
10212
10213       # Test if we are trying to use run time linking or normal
10214       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10215       # need to do runtime linking.
10216       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10217         for ld_flag in $LDFLAGS; do
10218           case $ld_flag in
10219           *-brtl*)
10220             aix_use_runtimelinking=yes
10221             break
10222             ;;
10223           esac
10224         done
10225         ;;
10226       esac
10227
10228       exp_sym_flag='-bexport'
10229       no_entry_flag='-bnoentry'
10230     fi
10231
10232     # When large executables or shared objects are built, AIX ld can
10233     # have problems creating the table of contents.  If linking a library
10234     # or program results in "error TOC overflow" add -mminimal-toc to
10235     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10236     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10237
10238     archive_cmds_CXX=''
10239     hardcode_direct_CXX=yes
10240     hardcode_libdir_separator_CXX=':'
10241     link_all_deplibs_CXX=yes
10242
10243     if test "$GXX" = yes; then
10244       case $host_os in aix4.[012]|aix4.[012].*)
10245       # We only want to do this on AIX 4.2 and lower, the check
10246       # below for broken collect2 doesn't work under 4.3+
10247         collect2name=`${CC} -print-prog-name=collect2`
10248         if test -f "$collect2name" && \
10249            strings "$collect2name" | grep resolve_lib_name >/dev/null
10250         then
10251           # We have reworked collect2
10252           hardcode_direct_CXX=yes
10253         else
10254           # We have old collect2
10255           hardcode_direct_CXX=unsupported
10256           # It fails to find uninstalled libraries when the uninstalled
10257           # path is not listed in the libpath.  Setting hardcode_minus_L
10258           # to unsupported forces relinking
10259           hardcode_minus_L_CXX=yes
10260           hardcode_libdir_flag_spec_CXX='-L$libdir'
10261           hardcode_libdir_separator_CXX=
10262         fi
10263         ;;
10264       esac
10265       shared_flag='-shared'
10266       if test "$aix_use_runtimelinking" = yes; then
10267         shared_flag="$shared_flag "'${wl}-G'
10268       fi
10269     else
10270       # not using gcc
10271       if test "$host_cpu" = ia64; then
10272         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10273         # chokes on -Wl,-G. The following line is correct:
10274         shared_flag='-G'
10275       else
10276         if test "$aix_use_runtimelinking" = yes; then
10277           shared_flag='${wl}-G'
10278         else
10279           shared_flag='${wl}-bM:SRE'
10280         fi
10281       fi
10282     fi
10283
10284     # It seems that -bexpall does not export symbols beginning with
10285     # underscore (_), so it is better to generate a list of symbols to export.
10286     always_export_symbols_CXX=yes
10287     if test "$aix_use_runtimelinking" = yes; then
10288       # Warning - without using the other runtime loading flags (-brtl),
10289       # -berok will link without error, but may produce a broken library.
10290       allow_undefined_flag_CXX='-berok'
10291       # Determine the default libpath from the value encoded in an empty executable.
10292       cat >conftest.$ac_ext <<_ACEOF
10293 /* confdefs.h.  */
10294 _ACEOF
10295 cat confdefs.h >>conftest.$ac_ext
10296 cat >>conftest.$ac_ext <<_ACEOF
10297 /* end confdefs.h.  */
10298
10299 int
10300 main ()
10301 {
10302
10303   ;
10304   return 0;
10305 }
10306 _ACEOF
10307 rm -f conftest.$ac_objext conftest$ac_exeext
10308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10309   (eval $ac_link) 2>conftest.er1
10310   ac_status=$?
10311   grep -v '^ *+' conftest.er1 >conftest.err
10312   rm -f conftest.er1
10313   cat conftest.err >&5
10314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10315   (exit $ac_status); } &&
10316          { ac_try='test -z "$ac_cxx_werror_flag"
10317                          || test ! -s conftest.err'
10318   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10319   (eval $ac_try) 2>&5
10320   ac_status=$?
10321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10322   (exit $ac_status); }; } &&
10323          { ac_try='test -s conftest$ac_exeext'
10324   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10325   (eval $ac_try) 2>&5
10326   ac_status=$?
10327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328   (exit $ac_status); }; }; then
10329
10330 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10331 }'`
10332 # Check for a 64-bit object if we didn't find anything.
10333 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; }
10334 }'`; fi
10335 else
10336   echo "$as_me: failed program was:" >&5
10337 sed 's/^/| /' conftest.$ac_ext >&5
10338
10339 fi
10340 rm -f conftest.err conftest.$ac_objext \
10341       conftest$ac_exeext conftest.$ac_ext
10342 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10343
10344       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10345
10346       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10347      else
10348       if test "$host_cpu" = ia64; then
10349         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10350         allow_undefined_flag_CXX="-z nodefs"
10351         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10352       else
10353         # Determine the default libpath from the value encoded in an empty executable.
10354         cat >conftest.$ac_ext <<_ACEOF
10355 /* confdefs.h.  */
10356 _ACEOF
10357 cat confdefs.h >>conftest.$ac_ext
10358 cat >>conftest.$ac_ext <<_ACEOF
10359 /* end confdefs.h.  */
10360
10361 int
10362 main ()
10363 {
10364
10365   ;
10366   return 0;
10367 }
10368 _ACEOF
10369 rm -f conftest.$ac_objext conftest$ac_exeext
10370 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10371   (eval $ac_link) 2>conftest.er1
10372   ac_status=$?
10373   grep -v '^ *+' conftest.er1 >conftest.err
10374   rm -f conftest.er1
10375   cat conftest.err >&5
10376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10377   (exit $ac_status); } &&
10378          { ac_try='test -z "$ac_cxx_werror_flag"
10379                          || test ! -s conftest.err'
10380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10381   (eval $ac_try) 2>&5
10382   ac_status=$?
10383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10384   (exit $ac_status); }; } &&
10385          { ac_try='test -s conftest$ac_exeext'
10386   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10387   (eval $ac_try) 2>&5
10388   ac_status=$?
10389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390   (exit $ac_status); }; }; then
10391
10392 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10393 }'`
10394 # Check for a 64-bit object if we didn't find anything.
10395 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; }
10396 }'`; fi
10397 else
10398   echo "$as_me: failed program was:" >&5
10399 sed 's/^/| /' conftest.$ac_ext >&5
10400
10401 fi
10402 rm -f conftest.err conftest.$ac_objext \
10403       conftest$ac_exeext conftest.$ac_ext
10404 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10405
10406         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10407         # Warning - without using the other run time loading flags,
10408         # -berok will link without error, but may produce a broken library.
10409         no_undefined_flag_CXX=' ${wl}-bernotok'
10410         allow_undefined_flag_CXX=' ${wl}-berok'
10411         # Exported symbols can be pulled into shared objects from archives
10412         whole_archive_flag_spec_CXX='$convenience'
10413         archive_cmds_need_lc_CXX=yes
10414         # This is similar to how AIX traditionally builds its shared libraries.
10415         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10416       fi
10417     fi
10418     ;;
10419
10420   beos*)
10421     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10422       allow_undefined_flag_CXX=unsupported
10423       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10424       # support --undefined.  This deserves some investigation.  FIXME
10425       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10426     else
10427       ld_shlibs_CXX=no
10428     fi
10429     ;;
10430
10431   chorus*)
10432     case $cc_basename in
10433       *)
10434         # FIXME: insert proper C++ library support
10435         ld_shlibs_CXX=no
10436         ;;
10437     esac
10438     ;;
10439
10440   cygwin* | mingw* | pw32*)
10441     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10442     # as there is no search path for DLLs.
10443     hardcode_libdir_flag_spec_CXX='-L$libdir'
10444     allow_undefined_flag_CXX=unsupported
10445     always_export_symbols_CXX=no
10446     enable_shared_with_static_runtimes_CXX=yes
10447
10448     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10449       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10450       # If the export-symbols file already is a .def file (1st line
10451       # is EXPORTS), use it as is; otherwise, prepend...
10452       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10453         cp $export_symbols $output_objdir/$soname.def;
10454       else
10455         echo EXPORTS > $output_objdir/$soname.def;
10456         cat $export_symbols >> $output_objdir/$soname.def;
10457       fi~
10458       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10459     else
10460       ld_shlibs_CXX=no
10461     fi
10462   ;;
10463       darwin* | rhapsody*)
10464         case $host_os in
10465         rhapsody* | darwin1.[012])
10466          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10467          ;;
10468        *) # Darwin 1.3 on
10469          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10470            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10471          else
10472            case ${MACOSX_DEPLOYMENT_TARGET} in
10473              10.[012])
10474                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10475                ;;
10476              10.*)
10477                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10478                ;;
10479            esac
10480          fi
10481          ;;
10482         esac
10483       archive_cmds_need_lc_CXX=no
10484       hardcode_direct_CXX=no
10485       hardcode_automatic_CXX=yes
10486       hardcode_shlibpath_var_CXX=unsupported
10487       whole_archive_flag_spec_CXX=''
10488       link_all_deplibs_CXX=yes
10489
10490     if test "$GXX" = yes ; then
10491       lt_int_apple_cc_single_mod=no
10492       output_verbose_link_cmd='echo'
10493       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10494        lt_int_apple_cc_single_mod=yes
10495       fi
10496       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10497        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10498       else
10499           archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10500         fi
10501         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10502         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10503           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10504             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}'
10505           else
10506             archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10507           fi
10508             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}'
10509       else
10510       case $cc_basename in
10511         xlc*)
10512          output_verbose_link_cmd='echo'
10513           archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10514           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10515           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10516           archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10517           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}'
10518           ;;
10519        *)
10520          ld_shlibs_CXX=no
10521           ;;
10522       esac
10523       fi
10524         ;;
10525
10526   dgux*)
10527     case $cc_basename in
10528       ec++*)
10529         # FIXME: insert proper C++ library support
10530         ld_shlibs_CXX=no
10531         ;;
10532       ghcx*)
10533         # Green Hills C++ Compiler
10534         # FIXME: insert proper C++ library support
10535         ld_shlibs_CXX=no
10536         ;;
10537       *)
10538         # FIXME: insert proper C++ library support
10539         ld_shlibs_CXX=no
10540         ;;
10541     esac
10542     ;;
10543   freebsd[12]*)
10544     # C++ shared libraries reported to be fairly broken before switch to ELF
10545     ld_shlibs_CXX=no
10546     ;;
10547   freebsd-elf*)
10548     archive_cmds_need_lc_CXX=no
10549     ;;
10550   freebsd* | kfreebsd*-gnu | dragonfly*)
10551     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10552     # conventions
10553     ld_shlibs_CXX=yes
10554     ;;
10555   gnu*)
10556     ;;
10557   hpux9*)
10558     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10559     hardcode_libdir_separator_CXX=:
10560     export_dynamic_flag_spec_CXX='${wl}-E'
10561     hardcode_direct_CXX=yes
10562     hardcode_minus_L_CXX=yes # Not in the search PATH,
10563                                 # but as the default
10564                                 # location of the library.
10565
10566     case $cc_basename in
10567     CC*)
10568       # FIXME: insert proper C++ library support
10569       ld_shlibs_CXX=no
10570       ;;
10571     aCC*)
10572       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'
10573       # Commands to make compiler produce verbose output that lists
10574       # what "hidden" libraries, object files and flags are used when
10575       # linking a shared library.
10576       #
10577       # There doesn't appear to be a way to prevent this compiler from
10578       # explicitly linking system object files so we need to strip them
10579       # from the output so that they don't get included in the library
10580       # dependencies.
10581       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'
10582       ;;
10583     *)
10584       if test "$GXX" = yes; then
10585         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'
10586       else
10587         # FIXME: insert proper C++ library support
10588         ld_shlibs_CXX=no
10589       fi
10590       ;;
10591     esac
10592     ;;
10593   hpux10*|hpux11*)
10594     if test $with_gnu_ld = no; then
10595       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10596       hardcode_libdir_separator_CXX=:
10597
10598       case $host_cpu in
10599       hppa*64*|ia64*)
10600         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10601         ;;
10602       *)
10603         export_dynamic_flag_spec_CXX='${wl}-E'
10604         ;;
10605       esac
10606     fi
10607     case $host_cpu in
10608     hppa*64*|ia64*)
10609       hardcode_direct_CXX=no
10610       hardcode_shlibpath_var_CXX=no
10611       ;;
10612     *)
10613       hardcode_direct_CXX=yes
10614       hardcode_minus_L_CXX=yes # Not in the search PATH,
10615                                               # but as the default
10616                                               # location of the library.
10617       ;;
10618     esac
10619
10620     case $cc_basename in
10621       CC*)
10622         # FIXME: insert proper C++ library support
10623         ld_shlibs_CXX=no
10624         ;;
10625       aCC*)
10626         case $host_cpu in
10627         hppa*64*)
10628           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10629           ;;
10630         ia64*)
10631           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10632           ;;
10633         *)
10634           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10635           ;;
10636         esac
10637         # Commands to make compiler produce verbose output that lists
10638         # what "hidden" libraries, object files and flags are used when
10639         # linking a shared library.
10640         #
10641         # There doesn't appear to be a way to prevent this compiler from
10642         # explicitly linking system object files so we need to strip them
10643         # from the output so that they don't get included in the library
10644         # dependencies.
10645         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'
10646         ;;
10647       *)
10648         if test "$GXX" = yes; then
10649           if test $with_gnu_ld = no; then
10650             case $host_cpu in
10651             hppa*64*)
10652               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10653               ;;
10654             ia64*)
10655               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10656               ;;
10657             *)
10658               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'
10659               ;;
10660             esac
10661           fi
10662         else
10663           # FIXME: insert proper C++ library support
10664           ld_shlibs_CXX=no
10665         fi
10666         ;;
10667     esac
10668     ;;
10669   interix3*)
10670     hardcode_direct_CXX=no
10671     hardcode_shlibpath_var_CXX=no
10672     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10673     export_dynamic_flag_spec_CXX='${wl}-E'
10674     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10675     # Instead, shared libraries are loaded at an image base (0x10000000 by
10676     # default) and relocated if they conflict, which is a slow very memory
10677     # consuming and fragmenting process.  To avoid this, we pick a random,
10678     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10679     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10680     archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10681     archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10682     ;;
10683   irix5* | irix6*)
10684     case $cc_basename in
10685       CC*)
10686         # SGI C++
10687         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10688
10689         # Archives containing C++ object files must be created using
10690         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10691         # necessary to make sure instantiated templates are included
10692         # in the archive.
10693         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10694         ;;
10695       *)
10696         if test "$GXX" = yes; then
10697           if test "$with_gnu_ld" = no; then
10698             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10699           else
10700             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'
10701           fi
10702         fi
10703         link_all_deplibs_CXX=yes
10704         ;;
10705     esac
10706     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10707     hardcode_libdir_separator_CXX=:
10708     ;;
10709   linux*)
10710     case $cc_basename in
10711       KCC*)
10712         # Kuck and Associates, Inc. (KAI) C++ Compiler
10713
10714         # KCC will only create a shared library if the output file
10715         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10716         # to its proper name (with version) after linking.
10717         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'
10718         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'
10719         # Commands to make compiler produce verbose output that lists
10720         # what "hidden" libraries, object files and flags are used when
10721         # linking a shared library.
10722         #
10723         # There doesn't appear to be a way to prevent this compiler from
10724         # explicitly linking system object files so we need to strip them
10725         # from the output so that they don't get included in the library
10726         # dependencies.
10727         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'
10728
10729         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10730         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10731
10732         # Archives containing C++ object files must be created using
10733         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10734         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10735         ;;
10736       icpc*)
10737         # Intel C++
10738         with_gnu_ld=yes
10739         # version 8.0 and above of icpc choke on multiply defined symbols
10740         # if we add $predep_objects and $postdep_objects, however 7.1 and
10741         # earlier do not add the objects themselves.
10742         case `$CC -V 2>&1` in
10743         *"Version 7."*)
10744           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10745           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'
10746           ;;
10747         *)  # Version 8.0 or newer
10748           tmp_idyn=
10749           case $host_cpu in
10750             ia64*) tmp_idyn=' -i_dynamic';;
10751           esac
10752           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10753           archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10754           ;;
10755         esac
10756         archive_cmds_need_lc_CXX=no
10757         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10758         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10759         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10760         ;;
10761       pgCC*)
10762         # Portland Group C++ compiler
10763         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10764         archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
10765
10766         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10767         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10768         whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10769         ;;
10770       cxx*)
10771         # Compaq C++
10772         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10773         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'
10774
10775         runpath_var=LD_RUN_PATH
10776         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10777         hardcode_libdir_separator_CXX=:
10778
10779         # Commands to make compiler produce verbose output that lists
10780         # what "hidden" libraries, object files and flags are used when
10781         # linking a shared library.
10782         #
10783         # There doesn't appear to be a way to prevent this compiler from
10784         # explicitly linking system object files so we need to strip them
10785         # from the output so that they don't get included in the library
10786         # dependencies.
10787         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'
10788         ;;
10789     esac
10790     ;;
10791   lynxos*)
10792     # FIXME: insert proper C++ library support
10793     ld_shlibs_CXX=no
10794     ;;
10795   m88k*)
10796     # FIXME: insert proper C++ library support
10797     ld_shlibs_CXX=no
10798     ;;
10799   mvs*)
10800     case $cc_basename in
10801       cxx*)
10802         # FIXME: insert proper C++ library support
10803         ld_shlibs_CXX=no
10804         ;;
10805       *)
10806         # FIXME: insert proper C++ library support
10807         ld_shlibs_CXX=no
10808         ;;
10809     esac
10810     ;;
10811   netbsd*)
10812     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10813       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10814       wlarc=
10815       hardcode_libdir_flag_spec_CXX='-R$libdir'
10816       hardcode_direct_CXX=yes
10817       hardcode_shlibpath_var_CXX=no
10818     fi
10819     # Workaround some broken pre-1.5 toolchains
10820     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10821     ;;
10822   openbsd2*)
10823     # C++ shared libraries are fairly broken
10824     ld_shlibs_CXX=no
10825     ;;
10826   openbsd*)
10827     hardcode_direct_CXX=yes
10828     hardcode_shlibpath_var_CXX=no
10829     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10830     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10831     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10832       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10833       export_dynamic_flag_spec_CXX='${wl}-E'
10834       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10835     fi
10836     output_verbose_link_cmd='echo'
10837     ;;
10838   osf3*)
10839     case $cc_basename in
10840       KCC*)
10841         # Kuck and Associates, Inc. (KAI) C++ Compiler
10842
10843         # KCC will only create a shared library if the output file
10844         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10845         # to its proper name (with version) after linking.
10846         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'
10847
10848         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10849         hardcode_libdir_separator_CXX=:
10850
10851         # Archives containing C++ object files must be created using
10852         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10853         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10854
10855         ;;
10856       RCC*)
10857         # Rational C++ 2.4.1
10858         # FIXME: insert proper C++ library support
10859         ld_shlibs_CXX=no
10860         ;;
10861       cxx*)
10862         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10863         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10864
10865         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10866         hardcode_libdir_separator_CXX=:
10867
10868         # Commands to make compiler produce verbose output that lists
10869         # what "hidden" libraries, object files and flags are used when
10870         # linking a shared library.
10871         #
10872         # There doesn't appear to be a way to prevent this compiler from
10873         # explicitly linking system object files so we need to strip them
10874         # from the output so that they don't get included in the library
10875         # dependencies.
10876         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'
10877         ;;
10878       *)
10879         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10880           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10881           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10882
10883           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10884           hardcode_libdir_separator_CXX=:
10885
10886           # Commands to make compiler produce verbose output that lists
10887           # what "hidden" libraries, object files and flags are used when
10888           # linking a shared library.
10889           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10890
10891         else
10892           # FIXME: insert proper C++ library support
10893           ld_shlibs_CXX=no
10894         fi
10895         ;;
10896     esac
10897     ;;
10898   osf4* | osf5*)
10899     case $cc_basename in
10900       KCC*)
10901         # Kuck and Associates, Inc. (KAI) C++ Compiler
10902
10903         # KCC will only create a shared library if the output file
10904         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10905         # to its proper name (with version) after linking.
10906         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'
10907
10908         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10909         hardcode_libdir_separator_CXX=:
10910
10911         # Archives containing C++ object files must be created using
10912         # the KAI C++ compiler.
10913         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10914         ;;
10915       RCC*)
10916         # Rational C++ 2.4.1
10917         # FIXME: insert proper C++ library support
10918         ld_shlibs_CXX=no
10919         ;;
10920       cxx*)
10921         allow_undefined_flag_CXX=' -expect_unresolved \*'
10922         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10923         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10924           echo "-hidden">> $lib.exp~
10925           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
10926           $rm $lib.exp'
10927
10928         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10929         hardcode_libdir_separator_CXX=:
10930
10931         # Commands to make compiler produce verbose output that lists
10932         # what "hidden" libraries, object files and flags are used when
10933         # linking a shared library.
10934         #
10935         # There doesn't appear to be a way to prevent this compiler from
10936         # explicitly linking system object files so we need to strip them
10937         # from the output so that they don't get included in the library
10938         # dependencies.
10939         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'
10940         ;;
10941       *)
10942         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10943           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10944          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10945
10946           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10947           hardcode_libdir_separator_CXX=:
10948
10949           # Commands to make compiler produce verbose output that lists
10950           # what "hidden" libraries, object files and flags are used when
10951           # linking a shared library.
10952           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10953
10954         else
10955           # FIXME: insert proper C++ library support
10956           ld_shlibs_CXX=no
10957         fi
10958         ;;
10959     esac
10960     ;;
10961   psos*)
10962     # FIXME: insert proper C++ library support
10963     ld_shlibs_CXX=no
10964     ;;
10965   sunos4*)
10966     case $cc_basename in
10967       CC*)
10968         # Sun C++ 4.x
10969         # FIXME: insert proper C++ library support
10970         ld_shlibs_CXX=no
10971         ;;
10972       lcc*)
10973         # Lucid
10974         # FIXME: insert proper C++ library support
10975         ld_shlibs_CXX=no
10976         ;;
10977       *)
10978         # FIXME: insert proper C++ library support
10979         ld_shlibs_CXX=no
10980         ;;
10981     esac
10982     ;;
10983   solaris*)
10984     case $cc_basename in
10985       CC*)
10986         # Sun C++ 4.2, 5.x and Centerline C++
10987         archive_cmds_need_lc_CXX=yes
10988         no_undefined_flag_CXX=' -zdefs'
10989         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10990         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10991         $CC -G${allow_undefined_flag}  ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10992
10993         hardcode_libdir_flag_spec_CXX='-R$libdir'
10994         hardcode_shlibpath_var_CXX=no
10995         case $host_os in
10996           solaris2.[0-5] | solaris2.[0-5].*) ;;
10997           *)
10998             # The C++ compiler is used as linker so we must use $wl
10999             # flag to pass the commands to the underlying system
11000             # linker. We must also pass each convience library through
11001             # to the system linker between allextract/defaultextract.
11002             # The C++ compiler will combine linker options so we
11003             # cannot just pass the convience library names through
11004             # without $wl.
11005             # Supported since Solaris 2.6 (maybe 2.5.1?)
11006             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11007             ;;
11008         esac
11009         link_all_deplibs_CXX=yes
11010
11011         output_verbose_link_cmd='echo'
11012
11013         # Archives containing C++ object files must be created using
11014         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11015         # necessary to make sure instantiated templates are included
11016         # in the archive.
11017         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11018         ;;
11019       gcx*)
11020         # Green Hills C++ Compiler
11021         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11022
11023         # The C++ compiler must be used to create the archive.
11024         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11025         ;;
11026       *)
11027         # GNU C++ compiler with Solaris linker
11028         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11029           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11030           if $CC --version | grep -v '^2\.7' > /dev/null; then
11031             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11032             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11033                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11034
11035             # Commands to make compiler produce verbose output that lists
11036             # what "hidden" libraries, object files and flags are used when
11037             # linking a shared library.
11038             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11039           else
11040             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11041             # platform.
11042             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11043             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11044                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11045
11046             # Commands to make compiler produce verbose output that lists
11047             # what "hidden" libraries, object files and flags are used when
11048             # linking a shared library.
11049             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11050           fi
11051
11052           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11053         fi
11054         ;;
11055     esac
11056     ;;
11057   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11058     no_undefined_flag_CXX='${wl}-z,text'
11059     archive_cmds_need_lc_CXX=no
11060     hardcode_shlibpath_var_CXX=no
11061     runpath_var='LD_RUN_PATH'
11062
11063     case $cc_basename in
11064       CC*)
11065         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11066         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11067         ;;
11068       *)
11069         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11070         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11071         ;;
11072     esac
11073     ;;
11074   sysv5* | sco3.2v5* | sco5v6*)
11075     # Note: We can NOT use -z defs as we might desire, because we do not
11076     # link with -lc, and that would cause any symbols used from libc to
11077     # always be unresolved, which means just about no library would
11078     # ever link correctly.  If we're not using GNU ld we use -z text
11079     # though, which does catch some bad symbols but isn't as heavy-handed
11080     # as -z defs.
11081     # For security reasons, it is highly recommended that you always
11082     # use absolute paths for naming shared libraries, and exclude the
11083     # DT_RUNPATH tag from executables and libraries.  But doing so
11084     # requires that you compile everything twice, which is a pain.
11085     # So that behaviour is only enabled if SCOABSPATH is set to a
11086     # non-empty value in the environment.  Most likely only useful for
11087     # creating official distributions of packages.
11088     # This is a hack until libtool officially supports absolute path
11089     # names for shared libraries.
11090     no_undefined_flag_CXX='${wl}-z,text'
11091     allow_undefined_flag_CXX='${wl}-z,nodefs'
11092     archive_cmds_need_lc_CXX=no
11093     hardcode_shlibpath_var_CXX=no
11094     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11095     hardcode_libdir_separator_CXX=':'
11096     link_all_deplibs_CXX=yes
11097     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11098     runpath_var='LD_RUN_PATH'
11099
11100     case $cc_basename in
11101       CC*)
11102         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11103         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11104         ;;
11105       *)
11106         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11107         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11108         ;;
11109     esac
11110     ;;
11111   tandem*)
11112     case $cc_basename in
11113       NCC*)
11114         # NonStop-UX NCC 3.20
11115         # FIXME: insert proper C++ library support
11116         ld_shlibs_CXX=no
11117         ;;
11118       *)
11119         # FIXME: insert proper C++ library support
11120         ld_shlibs_CXX=no
11121         ;;
11122     esac
11123     ;;
11124   vxworks*)
11125     # FIXME: insert proper C++ library support
11126     ld_shlibs_CXX=no
11127     ;;
11128   *)
11129     # FIXME: insert proper C++ library support
11130     ld_shlibs_CXX=no
11131     ;;
11132 esac
11133 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11134 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11135 test "$ld_shlibs_CXX" = no && can_build_shared=no
11136
11137 GCC_CXX="$GXX"
11138 LD_CXX="$LD"
11139
11140
11141 cat > conftest.$ac_ext <<EOF
11142 class Foo
11143 {
11144 public:
11145   Foo (void) { a = 0; }
11146 private:
11147   int a;
11148 };
11149 EOF
11150
11151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11152   (eval $ac_compile) 2>&5
11153   ac_status=$?
11154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11155   (exit $ac_status); }; then
11156   # Parse the compiler output and extract the necessary
11157   # objects, libraries and library flags.
11158
11159   # Sentinel used to keep track of whether or not we are before
11160   # the conftest object file.
11161   pre_test_object_deps_done=no
11162
11163   # The `*' in the case matches for architectures that use `case' in
11164   # $output_verbose_cmd can trigger glob expansion during the loop
11165   # eval without this substitution.
11166   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11167
11168   for p in `eval $output_verbose_link_cmd`; do
11169     case $p in
11170
11171     -L* | -R* | -l*)
11172        # Some compilers place space between "-{L,R}" and the path.
11173        # Remove the space.
11174        if test $p = "-L" \
11175           || test $p = "-R"; then
11176          prev=$p
11177          continue
11178        else
11179          prev=
11180        fi
11181
11182        if test "$pre_test_object_deps_done" = no; then
11183          case $p in
11184          -L* | -R*)
11185            # Internal compiler library paths should come after those
11186            # provided the user.  The postdeps already come after the
11187            # user supplied libs so there is no need to process them.
11188            if test -z "$compiler_lib_search_path_CXX"; then
11189              compiler_lib_search_path_CXX="${prev}${p}"
11190            else
11191              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11192            fi
11193            ;;
11194          # The "-l" case would never come before the object being
11195          # linked, so don't bother handling this case.
11196          esac
11197        else
11198          if test -z "$postdeps_CXX"; then
11199            postdeps_CXX="${prev}${p}"
11200          else
11201            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11202          fi
11203        fi
11204        ;;
11205
11206     *.$objext)
11207        # This assumes that the test object file only shows up
11208        # once in the compiler output.
11209        if test "$p" = "conftest.$objext"; then
11210          pre_test_object_deps_done=yes
11211          continue
11212        fi
11213
11214        if test "$pre_test_object_deps_done" = no; then
11215          if test -z "$predep_objects_CXX"; then
11216            predep_objects_CXX="$p"
11217          else
11218            predep_objects_CXX="$predep_objects_CXX $p"
11219          fi
11220        else
11221          if test -z "$postdep_objects_CXX"; then
11222            postdep_objects_CXX="$p"
11223          else
11224            postdep_objects_CXX="$postdep_objects_CXX $p"
11225          fi
11226        fi
11227        ;;
11228
11229     *) ;; # Ignore the rest.
11230
11231     esac
11232   done
11233
11234   # Clean up.
11235   rm -f a.out a.exe
11236 else
11237   echo "libtool.m4: error: problem compiling CXX test program"
11238 fi
11239
11240 $rm -f confest.$objext
11241
11242 # PORTME: override above test on systems where it is broken
11243 case $host_os in
11244 interix3*)
11245   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11246   # hack all around it, let's just trust "g++" to DTRT.
11247   predep_objects_CXX=
11248   postdep_objects_CXX=
11249   postdeps_CXX=
11250   ;;
11251
11252 solaris*)
11253   case $cc_basename in
11254   CC*)
11255     # Adding this requires a known-good setup of shared libraries for
11256     # Sun compiler versions before 5.6, else PIC objects from an old
11257     # archive will be linked into the output, leading to subtle bugs.
11258     postdeps_CXX='-lCstd -lCrun'
11259     ;;
11260   esac
11261   ;;
11262 esac
11263
11264
11265 case " $postdeps_CXX " in
11266 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11267 esac
11268
11269 lt_prog_compiler_wl_CXX=
11270 lt_prog_compiler_pic_CXX=
11271 lt_prog_compiler_static_CXX=
11272
11273 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11274 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11275
11276   # C++ specific cases for pic, static, wl, etc.
11277   if test "$GXX" = yes; then
11278     lt_prog_compiler_wl_CXX='-Wl,'
11279     lt_prog_compiler_static_CXX='-static'
11280
11281     case $host_os in
11282     aix*)
11283       # All AIX code is PIC.
11284       if test "$host_cpu" = ia64; then
11285         # AIX 5 now supports IA64 processor
11286         lt_prog_compiler_static_CXX='-Bstatic'
11287       fi
11288       ;;
11289     amigaos*)
11290       # FIXME: we need at least 68020 code to build shared libraries, but
11291       # adding the `-m68020' flag to GCC prevents building anything better,
11292       # like `-m68040'.
11293       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11294       ;;
11295     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11296       # PIC is the default for these OSes.
11297       ;;
11298     mingw* | os2* | pw32*)
11299       # This hack is so that the source file can tell whether it is being
11300       # built for inclusion in a dll (and should export symbols for example).
11301       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11302       ;;
11303     darwin* | rhapsody*)
11304       # PIC is the default on this platform
11305       # Common symbols not allowed in MH_DYLIB files
11306       lt_prog_compiler_pic_CXX='-fno-common'
11307       ;;
11308     *djgpp*)
11309       # DJGPP does not support shared libraries at all
11310       lt_prog_compiler_pic_CXX=
11311       ;;
11312     interix3*)
11313       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11314       # Instead, we relocate shared libraries at runtime.
11315       ;;
11316     sysv4*MP*)
11317       if test -d /usr/nec; then
11318         lt_prog_compiler_pic_CXX=-Kconform_pic
11319       fi
11320       ;;
11321     hpux*)
11322       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11323       # not for PA HP-UX.
11324       case $host_cpu in
11325       hppa*64*|ia64*)
11326         ;;
11327       *)
11328         lt_prog_compiler_pic_CXX='-fPIC'
11329         ;;
11330       esac
11331       ;;
11332     *)
11333       lt_prog_compiler_pic_CXX='-fPIC'
11334       ;;
11335     esac
11336   else
11337     case $host_os in
11338       aix4* | aix5*)
11339         # All AIX code is PIC.
11340         if test "$host_cpu" = ia64; then
11341           # AIX 5 now supports IA64 processor
11342           lt_prog_compiler_static_CXX='-Bstatic'
11343         else
11344           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11345         fi
11346         ;;
11347       chorus*)
11348         case $cc_basename in
11349         cxch68*)
11350           # Green Hills C++ Compiler
11351           # _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"
11352           ;;
11353         esac
11354         ;;
11355        darwin*)
11356          # PIC is the default on this platform
11357          # Common symbols not allowed in MH_DYLIB files
11358          case $cc_basename in
11359            xlc*)
11360            lt_prog_compiler_pic_CXX='-qnocommon'
11361            lt_prog_compiler_wl_CXX='-Wl,'
11362            ;;
11363          esac
11364        ;;
11365       dgux*)
11366         case $cc_basename in
11367           ec++*)
11368             lt_prog_compiler_pic_CXX='-KPIC'
11369             ;;
11370           ghcx*)
11371             # Green Hills C++ Compiler
11372             lt_prog_compiler_pic_CXX='-pic'
11373             ;;
11374           *)
11375             ;;
11376         esac
11377         ;;
11378       freebsd* | kfreebsd*-gnu | dragonfly*)
11379         # FreeBSD uses GNU C++
11380         ;;
11381       hpux9* | hpux10* | hpux11*)
11382         case $cc_basename in
11383           CC*)
11384             lt_prog_compiler_wl_CXX='-Wl,'
11385             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11386             if test "$host_cpu" != ia64; then
11387               lt_prog_compiler_pic_CXX='+Z'
11388             fi
11389             ;;
11390           aCC*)
11391             lt_prog_compiler_wl_CXX='-Wl,'
11392             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11393             case $host_cpu in
11394             hppa*64*|ia64*)
11395               # +Z the default
11396               ;;
11397             *)
11398               lt_prog_compiler_pic_CXX='+Z'
11399               ;;
11400             esac
11401             ;;
11402           *)
11403             ;;
11404         esac
11405         ;;
11406       interix*)
11407         # This is c89, which is MS Visual C++ (no shared libs)
11408         # Anyone wants to do a port?
11409         ;;
11410       irix5* | irix6* | nonstopux*)
11411         case $cc_basename in
11412           CC*)
11413             lt_prog_compiler_wl_CXX='-Wl,'
11414             lt_prog_compiler_static_CXX='-non_shared'
11415             # CC pic flag -KPIC is the default.
11416             ;;
11417           *)
11418             ;;
11419         esac
11420         ;;
11421       linux*)
11422         case $cc_basename in
11423           KCC*)
11424             # KAI C++ Compiler
11425             lt_prog_compiler_wl_CXX='--backend -Wl,'
11426             lt_prog_compiler_pic_CXX='-fPIC'
11427             ;;
11428           icpc* | ecpc*)
11429             # Intel C++
11430             lt_prog_compiler_wl_CXX='-Wl,'
11431             lt_prog_compiler_pic_CXX='-KPIC'
11432             lt_prog_compiler_static_CXX='-static'
11433             ;;
11434           pgCC*)
11435             # Portland Group C++ compiler.
11436             lt_prog_compiler_wl_CXX='-Wl,'
11437             lt_prog_compiler_pic_CXX='-fpic'
11438             lt_prog_compiler_static_CXX='-Bstatic'
11439             ;;
11440           cxx*)
11441             # Compaq C++
11442             # Make sure the PIC flag is empty.  It appears that all Alpha
11443             # Linux and Compaq Tru64 Unix objects are PIC.
11444             lt_prog_compiler_pic_CXX=
11445             lt_prog_compiler_static_CXX='-non_shared'
11446             ;;
11447           *)
11448             ;;
11449         esac
11450         ;;
11451       lynxos*)
11452         ;;
11453       m88k*)
11454         ;;
11455       mvs*)
11456         case $cc_basename in
11457           cxx*)
11458             lt_prog_compiler_pic_CXX='-W c,exportall'
11459             ;;
11460           *)
11461             ;;
11462         esac
11463         ;;
11464       netbsd*)
11465         ;;
11466       osf3* | osf4* | osf5*)
11467         case $cc_basename in
11468           KCC*)
11469             lt_prog_compiler_wl_CXX='--backend -Wl,'
11470             ;;
11471           RCC*)
11472             # Rational C++ 2.4.1
11473             lt_prog_compiler_pic_CXX='-pic'
11474             ;;
11475           cxx*)
11476             # Digital/Compaq C++
11477             lt_prog_compiler_wl_CXX='-Wl,'
11478             # Make sure the PIC flag is empty.  It appears that all Alpha
11479             # Linux and Compaq Tru64 Unix objects are PIC.
11480             lt_prog_compiler_pic_CXX=
11481             lt_prog_compiler_static_CXX='-non_shared'
11482             ;;
11483           *)
11484             ;;
11485         esac
11486         ;;
11487       psos*)
11488         ;;
11489       solaris*)
11490         case $cc_basename in
11491           CC*)
11492             # Sun C++ 4.2, 5.x and Centerline C++
11493             lt_prog_compiler_pic_CXX='-KPIC'
11494             lt_prog_compiler_static_CXX='-Bstatic'
11495             lt_prog_compiler_wl_CXX='-Qoption ld '
11496             ;;
11497           gcx*)
11498             # Green Hills C++ Compiler
11499             lt_prog_compiler_pic_CXX='-PIC'
11500             ;;
11501           *)
11502             ;;
11503         esac
11504         ;;
11505       sunos4*)
11506         case $cc_basename in
11507           CC*)
11508             # Sun C++ 4.x
11509             lt_prog_compiler_pic_CXX='-pic'
11510             lt_prog_compiler_static_CXX='-Bstatic'
11511             ;;
11512           lcc*)
11513             # Lucid
11514             lt_prog_compiler_pic_CXX='-pic'
11515             ;;
11516           *)
11517             ;;
11518         esac
11519         ;;
11520       tandem*)
11521         case $cc_basename in
11522           NCC*)
11523             # NonStop-UX NCC 3.20
11524             lt_prog_compiler_pic_CXX='-KPIC'
11525             ;;
11526           *)
11527             ;;
11528         esac
11529         ;;
11530       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11531         case $cc_basename in
11532           CC*)
11533             lt_prog_compiler_wl_CXX='-Wl,'
11534             lt_prog_compiler_pic_CXX='-KPIC'
11535             lt_prog_compiler_static_CXX='-Bstatic'
11536             ;;
11537         esac
11538         ;;
11539       vxworks*)
11540         ;;
11541       *)
11542         lt_prog_compiler_can_build_shared_CXX=no
11543         ;;
11544     esac
11545   fi
11546
11547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11548 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11549
11550 #
11551 # Check to make sure the PIC flag actually works.
11552 #
11553 if test -n "$lt_prog_compiler_pic_CXX"; then
11554
11555 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11556 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11557 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11558   echo $ECHO_N "(cached) $ECHO_C" >&6
11559 else
11560   lt_prog_compiler_pic_works_CXX=no
11561   ac_outfile=conftest.$ac_objext
11562    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11563    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11564    # Insert the option either (1) after the last *FLAGS variable, or
11565    # (2) before a word containing "conftest.", or (3) at the end.
11566    # Note that $ac_compile itself does not contain backslashes and begins
11567    # with a dollar sign (not a hyphen), so the echo should work correctly.
11568    # The option is referenced via a variable to avoid confusing sed.
11569    lt_compile=`echo "$ac_compile" | $SED \
11570    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11572    -e 's:$: $lt_compiler_flag:'`
11573    (eval echo "\"\$as_me:11573: $lt_compile\"" >&5)
11574    (eval "$lt_compile" 2>conftest.err)
11575    ac_status=$?
11576    cat conftest.err >&5
11577    echo "$as_me:11577: \$? = $ac_status" >&5
11578    if (exit $ac_status) && test -s "$ac_outfile"; then
11579      # The compiler can only warn and ignore the option if not recognized
11580      # So say no if there are warnings other than the usual output.
11581      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11582      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11583      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11584        lt_prog_compiler_pic_works_CXX=yes
11585      fi
11586    fi
11587    $rm conftest*
11588
11589 fi
11590 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11591 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11592
11593 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11594     case $lt_prog_compiler_pic_CXX in
11595      "" | " "*) ;;
11596      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11597      esac
11598 else
11599     lt_prog_compiler_pic_CXX=
11600      lt_prog_compiler_can_build_shared_CXX=no
11601 fi
11602
11603 fi
11604 case $host_os in
11605   # For platforms which do not support PIC, -DPIC is meaningless:
11606   *djgpp*)
11607     lt_prog_compiler_pic_CXX=
11608     ;;
11609   *)
11610     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11611     ;;
11612 esac
11613
11614 #
11615 # Check to make sure the static flag actually works.
11616 #
11617 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11618 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11619 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11620 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11621   echo $ECHO_N "(cached) $ECHO_C" >&6
11622 else
11623   lt_prog_compiler_static_works_CXX=no
11624    save_LDFLAGS="$LDFLAGS"
11625    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11626    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11627    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11628      # The linker can only warn and ignore the option if not recognized
11629      # So say no if there are warnings
11630      if test -s conftest.err; then
11631        # Append any errors to the config.log.
11632        cat conftest.err 1>&5
11633        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11634        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11635        if diff conftest.exp conftest.er2 >/dev/null; then
11636          lt_prog_compiler_static_works_CXX=yes
11637        fi
11638      else
11639        lt_prog_compiler_static_works_CXX=yes
11640      fi
11641    fi
11642    $rm conftest*
11643    LDFLAGS="$save_LDFLAGS"
11644
11645 fi
11646 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11647 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11648
11649 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11650     :
11651 else
11652     lt_prog_compiler_static_CXX=
11653 fi
11654
11655
11656 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11657 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11658 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11659   echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661   lt_cv_prog_compiler_c_o_CXX=no
11662    $rm -r conftest 2>/dev/null
11663    mkdir conftest
11664    cd conftest
11665    mkdir out
11666    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11667
11668    lt_compiler_flag="-o out/conftest2.$ac_objext"
11669    # Insert the option either (1) after the last *FLAGS variable, or
11670    # (2) before a word containing "conftest.", or (3) at the end.
11671    # Note that $ac_compile itself does not contain backslashes and begins
11672    # with a dollar sign (not a hyphen), so the echo should work correctly.
11673    lt_compile=`echo "$ac_compile" | $SED \
11674    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11675    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11676    -e 's:$: $lt_compiler_flag:'`
11677    (eval echo "\"\$as_me:11677: $lt_compile\"" >&5)
11678    (eval "$lt_compile" 2>out/conftest.err)
11679    ac_status=$?
11680    cat out/conftest.err >&5
11681    echo "$as_me:11681: \$? = $ac_status" >&5
11682    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11683    then
11684      # The compiler can only warn and ignore the option if not recognized
11685      # So say no if there are warnings
11686      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11687      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11688      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11689        lt_cv_prog_compiler_c_o_CXX=yes
11690      fi
11691    fi
11692    chmod u+w . 2>&5
11693    $rm conftest*
11694    # SGI C++ compiler will create directory out/ii_files/ for
11695    # template instantiation
11696    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11697    $rm out/* && rmdir out
11698    cd ..
11699    rmdir conftest
11700    $rm conftest*
11701
11702 fi
11703 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11704 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11705
11706
11707 hard_links="nottested"
11708 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11709   # do not overwrite the value of need_locks provided by the user
11710   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11711 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11712   hard_links=yes
11713   $rm conftest*
11714   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11715   touch conftest.a
11716   ln conftest.a conftest.b 2>&5 || hard_links=no
11717   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11718   echo "$as_me:$LINENO: result: $hard_links" >&5
11719 echo "${ECHO_T}$hard_links" >&6
11720   if test "$hard_links" = no; then
11721     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11722 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11723     need_locks=warn
11724   fi
11725 else
11726   need_locks=no
11727 fi
11728
11729 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11730 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11731
11732   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11733   case $host_os in
11734   aix4* | aix5*)
11735     # If we're using GNU nm, then we don't want the "-C" option.
11736     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11737     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11738       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'
11739     else
11740       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'
11741     fi
11742     ;;
11743   pw32*)
11744     export_symbols_cmds_CXX="$ltdll_cmds"
11745   ;;
11746   cygwin* | mingw*)
11747     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11748   ;;
11749   *)
11750     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11751   ;;
11752   esac
11753
11754 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11755 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11756 test "$ld_shlibs_CXX" = no && can_build_shared=no
11757
11758 #
11759 # Do we need to explicitly link libc?
11760 #
11761 case "x$archive_cmds_need_lc_CXX" in
11762 x|xyes)
11763   # Assume -lc should be added
11764   archive_cmds_need_lc_CXX=yes
11765
11766   if test "$enable_shared" = yes && test "$GCC" = yes; then
11767     case $archive_cmds_CXX in
11768     *'~'*)
11769       # FIXME: we may have to deal with multi-command sequences.
11770       ;;
11771     '$CC '*)
11772       # Test whether the compiler implicitly links with -lc since on some
11773       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11774       # to ld, don't add -lc before -lgcc.
11775       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11776 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11777       $rm conftest*
11778       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11779
11780       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11781   (eval $ac_compile) 2>&5
11782   ac_status=$?
11783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11784   (exit $ac_status); } 2>conftest.err; then
11785         soname=conftest
11786         lib=conftest
11787         libobjs=conftest.$ac_objext
11788         deplibs=
11789         wl=$lt_prog_compiler_wl_CXX
11790         pic_flag=$lt_prog_compiler_pic_CXX
11791         compiler_flags=-v
11792         linker_flags=-v
11793         verstring=
11794         output_objdir=.
11795         libname=conftest
11796         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11797         allow_undefined_flag_CXX=
11798         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11799   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11800   ac_status=$?
11801   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802   (exit $ac_status); }
11803         then
11804           archive_cmds_need_lc_CXX=no
11805         else
11806           archive_cmds_need_lc_CXX=yes
11807         fi
11808         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11809       else
11810         cat conftest.err 1>&5
11811       fi
11812       $rm conftest*
11813       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11814 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11815       ;;
11816     esac
11817   fi
11818   ;;
11819 esac
11820
11821 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11822 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11823 library_names_spec=
11824 libname_spec='lib$name'
11825 soname_spec=
11826 shrext_cmds=".so"
11827 postinstall_cmds=
11828 postuninstall_cmds=
11829 finish_cmds=
11830 finish_eval=
11831 shlibpath_var=
11832 shlibpath_overrides_runpath=unknown
11833 version_type=none
11834 dynamic_linker="$host_os ld.so"
11835 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11836 if test "$GCC" = yes; then
11837   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11838   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11839     # if the path contains ";" then we assume it to be the separator
11840     # otherwise default to the standard path separator (i.e. ":") - it is
11841     # assumed that no part of a normal pathname contains ";" but that should
11842     # okay in the real world where ";" in dirpaths is itself problematic.
11843     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11844   else
11845     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11846   fi
11847 else
11848   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11849 fi
11850 need_lib_prefix=unknown
11851 hardcode_into_libs=no
11852
11853 # when you set need_version to no, make sure it does not cause -set_version
11854 # flags to be left without arguments
11855 need_version=unknown
11856
11857 case $host_os in
11858 aix3*)
11859   version_type=linux
11860   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11861   shlibpath_var=LIBPATH
11862
11863   # AIX 3 has no versioning support, so we append a major version to the name.
11864   soname_spec='${libname}${release}${shared_ext}$major'
11865   ;;
11866
11867 aix4* | aix5*)
11868   version_type=linux
11869   need_lib_prefix=no
11870   need_version=no
11871   hardcode_into_libs=yes
11872   if test "$host_cpu" = ia64; then
11873     # AIX 5 supports IA64
11874     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11875     shlibpath_var=LD_LIBRARY_PATH
11876   else
11877     # With GCC up to 2.95.x, collect2 would create an import file
11878     # for dependence libraries.  The import file would start with
11879     # the line `#! .'.  This would cause the generated library to
11880     # depend on `.', always an invalid library.  This was fixed in
11881     # development snapshots of GCC prior to 3.0.
11882     case $host_os in
11883       aix4 | aix4.[01] | aix4.[01].*)
11884       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11885            echo ' yes '
11886            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11887         :
11888       else
11889         can_build_shared=no
11890       fi
11891       ;;
11892     esac
11893     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11894     # soname into executable. Probably we can add versioning support to
11895     # collect2, so additional links can be useful in future.
11896     if test "$aix_use_runtimelinking" = yes; then
11897       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11898       # instead of lib<name>.a to let people know that these are not
11899       # typical AIX shared libraries.
11900       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11901     else
11902       # We preserve .a as extension for shared libraries through AIX4.2
11903       # and later when we are not doing run time linking.
11904       library_names_spec='${libname}${release}.a $libname.a'
11905       soname_spec='${libname}${release}${shared_ext}$major'
11906     fi
11907     shlibpath_var=LIBPATH
11908   fi
11909   ;;
11910
11911 amigaos*)
11912   library_names_spec='$libname.ixlibrary $libname.a'
11913   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11914   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'
11915   ;;
11916
11917 beos*)
11918   library_names_spec='${libname}${shared_ext}'
11919   dynamic_linker="$host_os ld.so"
11920   shlibpath_var=LIBRARY_PATH
11921   ;;
11922
11923 bsdi[45]*)
11924   version_type=linux
11925   need_version=no
11926   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11927   soname_spec='${libname}${release}${shared_ext}$major'
11928   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11929   shlibpath_var=LD_LIBRARY_PATH
11930   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11931   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11932   # the default ld.so.conf also contains /usr/contrib/lib and
11933   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11934   # libtool to hard-code these into programs
11935   ;;
11936
11937 cygwin* | mingw* | pw32*)
11938   version_type=windows
11939   shrext_cmds=".dll"
11940   need_version=no
11941   need_lib_prefix=no
11942
11943   case $GCC,$host_os in
11944   yes,cygwin* | yes,mingw* | yes,pw32*)
11945     library_names_spec='$libname.dll.a'
11946     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11947     postinstall_cmds='base_file=`basename \${file}`~
11948       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11949       dldir=$destdir/`dirname \$dlpath`~
11950       test -d \$dldir || mkdir -p \$dldir~
11951       $install_prog $dir/$dlname \$dldir/$dlname~
11952       chmod a+x \$dldir/$dlname'
11953     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11954       dlpath=$dir/\$dldll~
11955        $rm \$dlpath'
11956     shlibpath_overrides_runpath=yes
11957
11958     case $host_os in
11959     cygwin*)
11960       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11961       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11962       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11963       ;;
11964     mingw*)
11965       # MinGW DLLs use traditional 'lib' prefix
11966       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11967       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11968       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11969         # It is most probably a Windows format PATH printed by
11970         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11971         # path with ; separators, and with drive letters. We can handle the
11972         # drive letters (cygwin fileutils understands them), so leave them,
11973         # especially as we might pass files found there to a mingw objdump,
11974         # which wouldn't understand a cygwinified path. Ahh.
11975         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11976       else
11977         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11978       fi
11979       ;;
11980     pw32*)
11981       # pw32 DLLs use 'pw' prefix rather than 'lib'
11982       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11983       ;;
11984     esac
11985     ;;
11986
11987   *)
11988     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11989     ;;
11990   esac
11991   dynamic_linker='Win32 ld.exe'
11992   # FIXME: first we should search . and the directory the executable is in
11993   shlibpath_var=PATH
11994   ;;
11995
11996 darwin* | rhapsody*)
11997   dynamic_linker="$host_os dyld"
11998   version_type=darwin
11999   need_lib_prefix=no
12000   need_version=no
12001   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12002   soname_spec='${libname}${release}${major}$shared_ext'
12003   shlibpath_overrides_runpath=yes
12004   shlibpath_var=DYLD_LIBRARY_PATH
12005   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12006   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12007   if test "$GCC" = yes; then
12008     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"`
12009   else
12010     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12011   fi
12012   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12013   ;;
12014
12015 dgux*)
12016   version_type=linux
12017   need_lib_prefix=no
12018   need_version=no
12019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12020   soname_spec='${libname}${release}${shared_ext}$major'
12021   shlibpath_var=LD_LIBRARY_PATH
12022   ;;
12023
12024 freebsd1*)
12025   dynamic_linker=no
12026   ;;
12027
12028 kfreebsd*-gnu)
12029   version_type=linux
12030   need_lib_prefix=no
12031   need_version=no
12032   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12033   soname_spec='${libname}${release}${shared_ext}$major'
12034   shlibpath_var=LD_LIBRARY_PATH
12035   shlibpath_overrides_runpath=no
12036   hardcode_into_libs=yes
12037   dynamic_linker='GNU ld.so'
12038   ;;
12039
12040 freebsd* | dragonfly*)
12041   # DragonFly does not have aout.  When/if they implement a new
12042   # versioning mechanism, adjust this.
12043   if test -x /usr/bin/objformat; then
12044     objformat=`/usr/bin/objformat`
12045   else
12046     case $host_os in
12047     freebsd[123]*) objformat=aout ;;
12048     *) objformat=elf ;;
12049     esac
12050   fi
12051   version_type=freebsd-$objformat
12052   case $version_type in
12053     freebsd-elf*)
12054       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12055       need_version=no
12056       need_lib_prefix=no
12057       ;;
12058     freebsd-*)
12059       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12060       need_version=yes
12061       ;;
12062   esac
12063   shlibpath_var=LD_LIBRARY_PATH
12064   case $host_os in
12065   freebsd2*)
12066     shlibpath_overrides_runpath=yes
12067     ;;
12068   freebsd3.[01]* | freebsdelf3.[01]*)
12069     shlibpath_overrides_runpath=yes
12070     hardcode_into_libs=yes
12071     ;;
12072   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12073   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12074     shlibpath_overrides_runpath=no
12075     hardcode_into_libs=yes
12076     ;;
12077   freebsd*) # from 4.6 on
12078     shlibpath_overrides_runpath=yes
12079     hardcode_into_libs=yes
12080     ;;
12081   esac
12082   ;;
12083
12084 gnu*)
12085   version_type=linux
12086   need_lib_prefix=no
12087   need_version=no
12088   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12089   soname_spec='${libname}${release}${shared_ext}$major'
12090   shlibpath_var=LD_LIBRARY_PATH
12091   hardcode_into_libs=yes
12092   ;;
12093
12094 hpux9* | hpux10* | hpux11*)
12095   # Give a soname corresponding to the major version so that dld.sl refuses to
12096   # link against other versions.
12097   version_type=sunos
12098   need_lib_prefix=no
12099   need_version=no
12100   case $host_cpu in
12101   ia64*)
12102     shrext_cmds='.so'
12103     hardcode_into_libs=yes
12104     dynamic_linker="$host_os dld.so"
12105     shlibpath_var=LD_LIBRARY_PATH
12106     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12107     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12108     soname_spec='${libname}${release}${shared_ext}$major'
12109     if test "X$HPUX_IA64_MODE" = X32; then
12110       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12111     else
12112       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12113     fi
12114     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12115     ;;
12116    hppa*64*)
12117      shrext_cmds='.sl'
12118      hardcode_into_libs=yes
12119      dynamic_linker="$host_os dld.sl"
12120      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12121      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12122      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123      soname_spec='${libname}${release}${shared_ext}$major'
12124      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12125      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12126      ;;
12127    *)
12128     shrext_cmds='.sl'
12129     dynamic_linker="$host_os dld.sl"
12130     shlibpath_var=SHLIB_PATH
12131     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12133     soname_spec='${libname}${release}${shared_ext}$major'
12134     ;;
12135   esac
12136   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12137   postinstall_cmds='chmod 555 $lib'
12138   ;;
12139
12140 interix3*)
12141   version_type=linux
12142   need_lib_prefix=no
12143   need_version=no
12144   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12145   soname_spec='${libname}${release}${shared_ext}$major'
12146   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12147   shlibpath_var=LD_LIBRARY_PATH
12148   shlibpath_overrides_runpath=no
12149   hardcode_into_libs=yes
12150   ;;
12151
12152 irix5* | irix6* | nonstopux*)
12153   case $host_os in
12154     nonstopux*) version_type=nonstopux ;;
12155     *)
12156         if test "$lt_cv_prog_gnu_ld" = yes; then
12157                 version_type=linux
12158         else
12159                 version_type=irix
12160         fi ;;
12161   esac
12162   need_lib_prefix=no
12163   need_version=no
12164   soname_spec='${libname}${release}${shared_ext}$major'
12165   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12166   case $host_os in
12167   irix5* | nonstopux*)
12168     libsuff= shlibsuff=
12169     ;;
12170   *)
12171     case $LD in # libtool.m4 will add one of these switches to LD
12172     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12173       libsuff= shlibsuff= libmagic=32-bit;;
12174     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12175       libsuff=32 shlibsuff=N32 libmagic=N32;;
12176     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12177       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12178     *) libsuff= shlibsuff= libmagic=never-match;;
12179     esac
12180     ;;
12181   esac
12182   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12183   shlibpath_overrides_runpath=no
12184   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12185   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12186   hardcode_into_libs=yes
12187   ;;
12188
12189 # No shared lib support for Linux oldld, aout, or coff.
12190 linux*oldld* | linux*aout* | linux*coff*)
12191   dynamic_linker=no
12192   ;;
12193
12194 # This must be Linux ELF.
12195 linux*)
12196   version_type=linux
12197   need_lib_prefix=no
12198   need_version=no
12199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12200   soname_spec='${libname}${release}${shared_ext}$major'
12201   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12202   shlibpath_var=LD_LIBRARY_PATH
12203   shlibpath_overrides_runpath=no
12204   # This implies no fast_install, which is unacceptable.
12205   # Some rework will be needed to allow for fast_install
12206   # before this can be enabled.
12207   hardcode_into_libs=yes
12208
12209   # find out which ABI we are using
12210   libsuff=
12211   case "$host_cpu" in
12212   x86_64*|s390x*|powerpc64*)
12213     echo '#line 12213 "configure"' > conftest.$ac_ext
12214     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12215   (eval $ac_compile) 2>&5
12216   ac_status=$?
12217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218   (exit $ac_status); }; then
12219       case `/usr/bin/file conftest.$ac_objext` in
12220       *64-bit*)
12221         libsuff=64
12222         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12223         ;;
12224       esac
12225     fi
12226     rm -rf conftest*
12227     ;;
12228   esac
12229
12230   # Append ld.so.conf contents to the search path
12231   if test -f /etc/ld.so.conf; then
12232     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12233     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12234   fi
12235
12236   # We used to test for /lib/ld.so.1 and disable shared libraries on
12237   # powerpc, because MkLinux only supported shared libraries with the
12238   # GNU dynamic linker.  Since this was broken with cross compilers,
12239   # most powerpc-linux boxes support dynamic linking these days and
12240   # people can always --disable-shared, the test was removed, and we
12241   # assume the GNU/Linux dynamic linker is in use.
12242   dynamic_linker='GNU/Linux ld.so'
12243   ;;
12244
12245 knetbsd*-gnu)
12246   version_type=linux
12247   need_lib_prefix=no
12248   need_version=no
12249   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12250   soname_spec='${libname}${release}${shared_ext}$major'
12251   shlibpath_var=LD_LIBRARY_PATH
12252   shlibpath_overrides_runpath=no
12253   hardcode_into_libs=yes
12254   dynamic_linker='GNU ld.so'
12255   ;;
12256
12257 netbsd*)
12258   version_type=sunos
12259   need_lib_prefix=no
12260   need_version=no
12261   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12262     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12263     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12264     dynamic_linker='NetBSD (a.out) ld.so'
12265   else
12266     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12267     soname_spec='${libname}${release}${shared_ext}$major'
12268     dynamic_linker='NetBSD ld.elf_so'
12269   fi
12270   shlibpath_var=LD_LIBRARY_PATH
12271   shlibpath_overrides_runpath=yes
12272   hardcode_into_libs=yes
12273   ;;
12274
12275 newsos6)
12276   version_type=linux
12277   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12278   shlibpath_var=LD_LIBRARY_PATH
12279   shlibpath_overrides_runpath=yes
12280   ;;
12281
12282 nto-qnx*)
12283   version_type=linux
12284   need_lib_prefix=no
12285   need_version=no
12286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12287   soname_spec='${libname}${release}${shared_ext}$major'
12288   shlibpath_var=LD_LIBRARY_PATH
12289   shlibpath_overrides_runpath=yes
12290   ;;
12291
12292 openbsd*)
12293   version_type=sunos
12294   sys_lib_dlsearch_path_spec="/usr/lib"
12295   need_lib_prefix=no
12296   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12297   case $host_os in
12298     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12299     *)                         need_version=no  ;;
12300   esac
12301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12302   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12303   shlibpath_var=LD_LIBRARY_PATH
12304   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12305     case $host_os in
12306       openbsd2.[89] | openbsd2.[89].*)
12307         shlibpath_overrides_runpath=no
12308         ;;
12309       *)
12310         shlibpath_overrides_runpath=yes
12311         ;;
12312       esac
12313   else
12314     shlibpath_overrides_runpath=yes
12315   fi
12316   ;;
12317
12318 os2*)
12319   libname_spec='$name'
12320   shrext_cmds=".dll"
12321   need_lib_prefix=no
12322   library_names_spec='$libname${shared_ext} $libname.a'
12323   dynamic_linker='OS/2 ld.exe'
12324   shlibpath_var=LIBPATH
12325   ;;
12326
12327 osf3* | osf4* | osf5*)
12328   version_type=osf
12329   need_lib_prefix=no
12330   need_version=no
12331   soname_spec='${libname}${release}${shared_ext}$major'
12332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12333   shlibpath_var=LD_LIBRARY_PATH
12334   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12335   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12336   ;;
12337
12338 solaris*)
12339   version_type=linux
12340   need_lib_prefix=no
12341   need_version=no
12342   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12343   soname_spec='${libname}${release}${shared_ext}$major'
12344   shlibpath_var=LD_LIBRARY_PATH
12345   shlibpath_overrides_runpath=yes
12346   hardcode_into_libs=yes
12347   # ldd complains unless libraries are executable
12348   postinstall_cmds='chmod +x $lib'
12349   ;;
12350
12351 sunos4*)
12352   version_type=sunos
12353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12354   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12355   shlibpath_var=LD_LIBRARY_PATH
12356   shlibpath_overrides_runpath=yes
12357   if test "$with_gnu_ld" = yes; then
12358     need_lib_prefix=no
12359   fi
12360   need_version=yes
12361   ;;
12362
12363 sysv4 | sysv4.3*)
12364   version_type=linux
12365   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12366   soname_spec='${libname}${release}${shared_ext}$major'
12367   shlibpath_var=LD_LIBRARY_PATH
12368   case $host_vendor in
12369     sni)
12370       shlibpath_overrides_runpath=no
12371       need_lib_prefix=no
12372       export_dynamic_flag_spec='${wl}-Blargedynsym'
12373       runpath_var=LD_RUN_PATH
12374       ;;
12375     siemens)
12376       need_lib_prefix=no
12377       ;;
12378     motorola)
12379       need_lib_prefix=no
12380       need_version=no
12381       shlibpath_overrides_runpath=no
12382       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12383       ;;
12384   esac
12385   ;;
12386
12387 sysv4*MP*)
12388   if test -d /usr/nec ;then
12389     version_type=linux
12390     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12391     soname_spec='$libname${shared_ext}.$major'
12392     shlibpath_var=LD_LIBRARY_PATH
12393   fi
12394   ;;
12395
12396 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12397   version_type=freebsd-elf
12398   need_lib_prefix=no
12399   need_version=no
12400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12401   soname_spec='${libname}${release}${shared_ext}$major'
12402   shlibpath_var=LD_LIBRARY_PATH
12403   hardcode_into_libs=yes
12404   if test "$with_gnu_ld" = yes; then
12405     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12406     shlibpath_overrides_runpath=no
12407   else
12408     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12409     shlibpath_overrides_runpath=yes
12410     case $host_os in
12411       sco3.2v5*)
12412         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12413         ;;
12414     esac
12415   fi
12416   sys_lib_dlsearch_path_spec='/usr/lib'
12417   ;;
12418
12419 uts4*)
12420   version_type=linux
12421   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12422   soname_spec='${libname}${release}${shared_ext}$major'
12423   shlibpath_var=LD_LIBRARY_PATH
12424   ;;
12425
12426 *)
12427   dynamic_linker=no
12428   ;;
12429 esac
12430 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12431 echo "${ECHO_T}$dynamic_linker" >&6
12432 test "$dynamic_linker" = no && can_build_shared=no
12433
12434 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12435 if test "$GCC" = yes; then
12436   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12437 fi
12438
12439 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12440 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12441 hardcode_action_CXX=
12442 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12443    test -n "$runpath_var_CXX" || \
12444    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12445
12446   # We can hardcode non-existant directories.
12447   if test "$hardcode_direct_CXX" != no &&
12448      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12449      # have to relink, otherwise we might link with an installed library
12450      # when we should be linking with a yet-to-be-installed one
12451      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12452      test "$hardcode_minus_L_CXX" != no; then
12453     # Linking always hardcodes the temporary library directory.
12454     hardcode_action_CXX=relink
12455   else
12456     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12457     hardcode_action_CXX=immediate
12458   fi
12459 else
12460   # We cannot hardcode anything, or else we can only hardcode existing
12461   # directories.
12462   hardcode_action_CXX=unsupported
12463 fi
12464 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12465 echo "${ECHO_T}$hardcode_action_CXX" >&6
12466
12467 if test "$hardcode_action_CXX" = relink; then
12468   # Fast installation is not supported
12469   enable_fast_install=no
12470 elif test "$shlibpath_overrides_runpath" = yes ||
12471      test "$enable_shared" = no; then
12472   # Fast installation is not necessary
12473   enable_fast_install=needless
12474 fi
12475
12476
12477 # The else clause should only fire when bootstrapping the
12478 # libtool distribution, otherwise you forgot to ship ltmain.sh
12479 # with your package, and you will get complaints that there are
12480 # no rules to generate ltmain.sh.
12481 if test -f "$ltmain"; then
12482   # See if we are running on zsh, and set the options which allow our commands through
12483   # without removal of \ escapes.
12484   if test -n "${ZSH_VERSION+set}" ; then
12485     setopt NO_GLOB_SUBST
12486   fi
12487   # Now quote all the things that may contain metacharacters while being
12488   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12489   # variables and quote the copies for generation of the libtool script.
12490   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12491     SED SHELL STRIP \
12492     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12493     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12494     deplibs_check_method reload_flag reload_cmds need_locks \
12495     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12496     lt_cv_sys_global_symbol_to_c_name_address \
12497     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12498     old_postinstall_cmds old_postuninstall_cmds \
12499     compiler_CXX \
12500     CC_CXX \
12501     LD_CXX \
12502     lt_prog_compiler_wl_CXX \
12503     lt_prog_compiler_pic_CXX \
12504     lt_prog_compiler_static_CXX \
12505     lt_prog_compiler_no_builtin_flag_CXX \
12506     export_dynamic_flag_spec_CXX \
12507     thread_safe_flag_spec_CXX \
12508     whole_archive_flag_spec_CXX \
12509     enable_shared_with_static_runtimes_CXX \
12510     old_archive_cmds_CXX \
12511     old_archive_from_new_cmds_CXX \
12512     predep_objects_CXX \
12513     postdep_objects_CXX \
12514     predeps_CXX \
12515     postdeps_CXX \
12516     compiler_lib_search_path_CXX \
12517     archive_cmds_CXX \
12518     archive_expsym_cmds_CXX \
12519     postinstall_cmds_CXX \
12520     postuninstall_cmds_CXX \
12521     old_archive_from_expsyms_cmds_CXX \
12522     allow_undefined_flag_CXX \
12523     no_undefined_flag_CXX \
12524     export_symbols_cmds_CXX \
12525     hardcode_libdir_flag_spec_CXX \
12526     hardcode_libdir_flag_spec_ld_CXX \
12527     hardcode_libdir_separator_CXX \
12528     hardcode_automatic_CXX \
12529     module_cmds_CXX \
12530     module_expsym_cmds_CXX \
12531     lt_cv_prog_compiler_c_o_CXX \
12532     exclude_expsyms_CXX \
12533     include_expsyms_CXX; do
12534
12535     case $var in
12536     old_archive_cmds_CXX | \
12537     old_archive_from_new_cmds_CXX | \
12538     archive_cmds_CXX | \
12539     archive_expsym_cmds_CXX | \
12540     module_cmds_CXX | \
12541     module_expsym_cmds_CXX | \
12542     old_archive_from_expsyms_cmds_CXX | \
12543     export_symbols_cmds_CXX | \
12544     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12545     postinstall_cmds | postuninstall_cmds | \
12546     old_postinstall_cmds | old_postuninstall_cmds | \
12547     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12548       # Double-quote double-evaled strings.
12549       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12550       ;;
12551     *)
12552       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12553       ;;
12554     esac
12555   done
12556
12557   case $lt_echo in
12558   *'\$0 --fallback-echo"')
12559     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12560     ;;
12561   esac
12562
12563 cfgfile="$ofile"
12564
12565   cat <<__EOF__ >> "$cfgfile"
12566 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12567
12568 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12569
12570 # Shell to use when invoking shell scripts.
12571 SHELL=$lt_SHELL
12572
12573 # Whether or not to build shared libraries.
12574 build_libtool_libs=$enable_shared
12575
12576 # Whether or not to build static libraries.
12577 build_old_libs=$enable_static
12578
12579 # Whether or not to add -lc for building shared libraries.
12580 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12581
12582 # Whether or not to disallow shared libs when runtime libs are static
12583 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12584
12585 # Whether or not to optimize for fast installation.
12586 fast_install=$enable_fast_install
12587
12588 # The host system.
12589 host_alias=$host_alias
12590 host=$host
12591 host_os=$host_os
12592
12593 # The build system.
12594 build_alias=$build_alias
12595 build=$build
12596 build_os=$build_os
12597
12598 # An echo program that does not interpret backslashes.
12599 echo=$lt_echo
12600
12601 # The archiver.
12602 AR=$lt_AR
12603 AR_FLAGS=$lt_AR_FLAGS
12604
12605 # A C compiler.
12606 LTCC=$lt_LTCC
12607
12608 # LTCC compiler flags.
12609 LTCFLAGS=$lt_LTCFLAGS
12610
12611 # A language-specific compiler.
12612 CC=$lt_compiler_CXX
12613
12614 # Is the compiler the GNU C compiler?
12615 with_gcc=$GCC_CXX
12616
12617 # An ERE matcher.
12618 EGREP=$lt_EGREP
12619
12620 # The linker used to build libraries.
12621 LD=$lt_LD_CXX
12622
12623 # Whether we need hard or soft links.
12624 LN_S=$lt_LN_S
12625
12626 # A BSD-compatible nm program.
12627 NM=$lt_NM
12628
12629 # A symbol stripping program
12630 STRIP=$lt_STRIP
12631
12632 # Used to examine libraries when file_magic_cmd begins "file"
12633 MAGIC_CMD=$MAGIC_CMD
12634
12635 # Used on cygwin: DLL creation program.
12636 DLLTOOL="$DLLTOOL"
12637
12638 # Used on cygwin: object dumper.
12639 OBJDUMP="$OBJDUMP"
12640
12641 # Used on cygwin: assembler.
12642 AS="$AS"
12643
12644 # The name of the directory that contains temporary libtool files.
12645 objdir=$objdir
12646
12647 # How to create reloadable object files.
12648 reload_flag=$lt_reload_flag
12649 reload_cmds=$lt_reload_cmds
12650
12651 # How to pass a linker flag through the compiler.
12652 wl=$lt_lt_prog_compiler_wl_CXX
12653
12654 # Object file suffix (normally "o").
12655 objext="$ac_objext"
12656
12657 # Old archive suffix (normally "a").
12658 libext="$libext"
12659
12660 # Shared library suffix (normally ".so").
12661 shrext_cmds='$shrext_cmds'
12662
12663 # Executable file suffix (normally "").
12664 exeext="$exeext"
12665
12666 # Additional compiler flags for building library objects.
12667 pic_flag=$lt_lt_prog_compiler_pic_CXX
12668 pic_mode=$pic_mode
12669
12670 # What is the maximum length of a command?
12671 max_cmd_len=$lt_cv_sys_max_cmd_len
12672
12673 # Does compiler simultaneously support -c and -o options?
12674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12675
12676 # Must we lock files when doing compilation?
12677 need_locks=$lt_need_locks
12678
12679 # Do we need the lib prefix for modules?
12680 need_lib_prefix=$need_lib_prefix
12681
12682 # Do we need a version for libraries?
12683 need_version=$need_version
12684
12685 # Whether dlopen is supported.
12686 dlopen_support=$enable_dlopen
12687
12688 # Whether dlopen of programs is supported.
12689 dlopen_self=$enable_dlopen_self
12690
12691 # Whether dlopen of statically linked programs is supported.
12692 dlopen_self_static=$enable_dlopen_self_static
12693
12694 # Compiler flag to prevent dynamic linking.
12695 link_static_flag=$lt_lt_prog_compiler_static_CXX
12696
12697 # Compiler flag to turn off builtin functions.
12698 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12699
12700 # Compiler flag to allow reflexive dlopens.
12701 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12702
12703 # Compiler flag to generate shared objects directly from archives.
12704 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12705
12706 # Compiler flag to generate thread-safe objects.
12707 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12708
12709 # Library versioning type.
12710 version_type=$version_type
12711
12712 # Format of library name prefix.
12713 libname_spec=$lt_libname_spec
12714
12715 # List of archive names.  First name is the real one, the rest are links.
12716 # The last name is the one that the linker finds with -lNAME.
12717 library_names_spec=$lt_library_names_spec
12718
12719 # The coded name of the library, if different from the real name.
12720 soname_spec=$lt_soname_spec
12721
12722 # Commands used to build and install an old-style archive.
12723 RANLIB=$lt_RANLIB
12724 old_archive_cmds=$lt_old_archive_cmds_CXX
12725 old_postinstall_cmds=$lt_old_postinstall_cmds
12726 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12727
12728 # Create an old-style archive from a shared archive.
12729 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12730
12731 # Create a temporary old-style archive to link instead of a shared archive.
12732 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12733
12734 # Commands used to build and install a shared archive.
12735 archive_cmds=$lt_archive_cmds_CXX
12736 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12737 postinstall_cmds=$lt_postinstall_cmds
12738 postuninstall_cmds=$lt_postuninstall_cmds
12739
12740 # Commands used to build a loadable module (assumed same as above if empty)
12741 module_cmds=$lt_module_cmds_CXX
12742 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12743
12744 # Commands to strip libraries.
12745 old_striplib=$lt_old_striplib
12746 striplib=$lt_striplib
12747
12748 # Dependencies to place before the objects being linked to create a
12749 # shared library.
12750 predep_objects=$lt_predep_objects_CXX
12751
12752 # Dependencies to place after the objects being linked to create a
12753 # shared library.
12754 postdep_objects=$lt_postdep_objects_CXX
12755
12756 # Dependencies to place before the objects being linked to create a
12757 # shared library.
12758 predeps=$lt_predeps_CXX
12759
12760 # Dependencies to place after the objects being linked to create a
12761 # shared library.
12762 postdeps=$lt_postdeps_CXX
12763
12764 # The library search path used internally by the compiler when linking
12765 # a shared library.
12766 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12767
12768 # Method to check whether dependent libraries are shared objects.
12769 deplibs_check_method=$lt_deplibs_check_method
12770
12771 # Command to use when deplibs_check_method == file_magic.
12772 file_magic_cmd=$lt_file_magic_cmd
12773
12774 # Flag that allows shared libraries with undefined symbols to be built.
12775 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12776
12777 # Flag that forces no undefined symbols.
12778 no_undefined_flag=$lt_no_undefined_flag_CXX
12779
12780 # Commands used to finish a libtool library installation in a directory.
12781 finish_cmds=$lt_finish_cmds
12782
12783 # Same as above, but a single script fragment to be evaled but not shown.
12784 finish_eval=$lt_finish_eval
12785
12786 # Take the output of nm and produce a listing of raw symbols and C names.
12787 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12788
12789 # Transform the output of nm in a proper C declaration
12790 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12791
12792 # Transform the output of nm in a C name address pair
12793 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12794
12795 # This is the shared library runtime path variable.
12796 runpath_var=$runpath_var
12797
12798 # This is the shared library path variable.
12799 shlibpath_var=$shlibpath_var
12800
12801 # Is shlibpath searched before the hard-coded library search path?
12802 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12803
12804 # How to hardcode a shared library path into an executable.
12805 hardcode_action=$hardcode_action_CXX
12806
12807 # Whether we should hardcode library paths into libraries.
12808 hardcode_into_libs=$hardcode_into_libs
12809
12810 # Flag to hardcode \$libdir into a binary during linking.
12811 # This must work even if \$libdir does not exist.
12812 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12813
12814 # If ld is used when linking, flag to hardcode \$libdir into
12815 # a binary during linking. This must work even if \$libdir does
12816 # not exist.
12817 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12818
12819 # Whether we need a single -rpath flag with a separated argument.
12820 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12821
12822 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12823 # resulting binary.
12824 hardcode_direct=$hardcode_direct_CXX
12825
12826 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12827 # resulting binary.
12828 hardcode_minus_L=$hardcode_minus_L_CXX
12829
12830 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12831 # the resulting binary.
12832 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12833
12834 # Set to yes if building a shared library automatically hardcodes DIR into the library
12835 # and all subsequent libraries and executables linked against it.
12836 hardcode_automatic=$hardcode_automatic_CXX
12837
12838 # Variables whose values should be saved in libtool wrapper scripts and
12839 # restored at relink time.
12840 variables_saved_for_relink="$variables_saved_for_relink"
12841
12842 # Whether libtool must link a program against all its dependency libraries.
12843 link_all_deplibs=$link_all_deplibs_CXX
12844
12845 # Compile-time system search path for libraries
12846 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12847
12848 # Run-time system search path for libraries
12849 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12850
12851 # Fix the shell variable \$srcfile for the compiler.
12852 fix_srcfile_path="$fix_srcfile_path_CXX"
12853
12854 # Set to yes if exported symbols are required.
12855 always_export_symbols=$always_export_symbols_CXX
12856
12857 # The commands to list exported symbols.
12858 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12859
12860 # The commands to extract the exported symbol list from a shared archive.
12861 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12862
12863 # Symbols that should not be listed in the preloaded symbols.
12864 exclude_expsyms=$lt_exclude_expsyms_CXX
12865
12866 # Symbols that must always be exported.
12867 include_expsyms=$lt_include_expsyms_CXX
12868
12869 # ### END LIBTOOL TAG CONFIG: $tagname
12870
12871 __EOF__
12872
12873
12874 else
12875   # If there is no Makefile yet, we rely on a make rule to execute
12876   # `config.status --recheck' to rerun these tests and create the
12877   # libtool script then.
12878   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12879   if test -f "$ltmain_in"; then
12880     test -f Makefile && make "$ltmain"
12881   fi
12882 fi
12883
12884
12885 ac_ext=c
12886 ac_cpp='$CPP $CPPFLAGS'
12887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12890
12891 CC=$lt_save_CC
12892 LDCXX=$LD
12893 LD=$lt_save_LD
12894 GCC=$lt_save_GCC
12895 with_gnu_ldcxx=$with_gnu_ld
12896 with_gnu_ld=$lt_save_with_gnu_ld
12897 lt_cv_path_LDCXX=$lt_cv_path_LD
12898 lt_cv_path_LD=$lt_save_path_LD
12899 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12900 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12901
12902         else
12903           tagname=""
12904         fi
12905         ;;
12906
12907       F77)
12908         if test -n "$F77" && test "X$F77" != "Xno"; then
12909
12910 ac_ext=f
12911 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12912 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12913 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12914
12915
12916 archive_cmds_need_lc_F77=no
12917 allow_undefined_flag_F77=
12918 always_export_symbols_F77=no
12919 archive_expsym_cmds_F77=
12920 export_dynamic_flag_spec_F77=
12921 hardcode_direct_F77=no
12922 hardcode_libdir_flag_spec_F77=
12923 hardcode_libdir_flag_spec_ld_F77=
12924 hardcode_libdir_separator_F77=
12925 hardcode_minus_L_F77=no
12926 hardcode_automatic_F77=no
12927 module_cmds_F77=
12928 module_expsym_cmds_F77=
12929 link_all_deplibs_F77=unknown
12930 old_archive_cmds_F77=$old_archive_cmds
12931 no_undefined_flag_F77=
12932 whole_archive_flag_spec_F77=
12933 enable_shared_with_static_runtimes_F77=no
12934
12935 # Source file extension for f77 test sources.
12936 ac_ext=f
12937
12938 # Object file extension for compiled f77 test sources.
12939 objext=o
12940 objext_F77=$objext
12941
12942 # Code to be used in simple compile tests
12943 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12944
12945 # Code to be used in simple link tests
12946 lt_simple_link_test_code="      program t\n      end\n"
12947
12948 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12949
12950 # If no C compiler was specified, use CC.
12951 LTCC=${LTCC-"$CC"}
12952
12953 # If no C compiler flags were specified, use CFLAGS.
12954 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12955
12956 # Allow CC to be a program name with arguments.
12957 compiler=$CC
12958
12959
12960 # save warnings/boilerplate of simple test code
12961 ac_outfile=conftest.$ac_objext
12962 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12963 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12964 _lt_compiler_boilerplate=`cat conftest.err`
12965 $rm conftest*
12966
12967 ac_outfile=conftest.$ac_objext
12968 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12969 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12970 _lt_linker_boilerplate=`cat conftest.err`
12971 $rm conftest*
12972
12973
12974 # Allow CC to be a program name with arguments.
12975 lt_save_CC="$CC"
12976 CC=${F77-"f77"}
12977 compiler=$CC
12978 compiler_F77=$CC
12979 for cc_temp in $compiler""; do
12980   case $cc_temp in
12981     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12982     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12983     \-*) ;;
12984     *) break;;
12985   esac
12986 done
12987 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12988
12989
12990 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12991 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12992 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12993 echo "${ECHO_T}$can_build_shared" >&6
12994
12995 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12996 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12997 test "$can_build_shared" = "no" && enable_shared=no
12998
12999 # On AIX, shared libraries and static libraries use the same namespace, and
13000 # are all built from PIC.
13001 case $host_os in
13002 aix3*)
13003   test "$enable_shared" = yes && enable_static=no
13004   if test -n "$RANLIB"; then
13005     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13006     postinstall_cmds='$RANLIB $lib'
13007   fi
13008   ;;
13009 aix4* | aix5*)
13010   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13011     test "$enable_shared" = yes && enable_static=no
13012   fi
13013   ;;
13014 esac
13015 echo "$as_me:$LINENO: result: $enable_shared" >&5
13016 echo "${ECHO_T}$enable_shared" >&6
13017
13018 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13019 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13020 # Make sure either enable_shared or enable_static is yes.
13021 test "$enable_shared" = yes || enable_static=yes
13022 echo "$as_me:$LINENO: result: $enable_static" >&5
13023 echo "${ECHO_T}$enable_static" >&6
13024
13025 GCC_F77="$G77"
13026 LD_F77="$LD"
13027
13028 lt_prog_compiler_wl_F77=
13029 lt_prog_compiler_pic_F77=
13030 lt_prog_compiler_static_F77=
13031
13032 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13033 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13034
13035   if test "$GCC" = yes; then
13036     lt_prog_compiler_wl_F77='-Wl,'
13037     lt_prog_compiler_static_F77='-static'
13038
13039     case $host_os in
13040       aix*)
13041       # All AIX code is PIC.
13042       if test "$host_cpu" = ia64; then
13043         # AIX 5 now supports IA64 processor
13044         lt_prog_compiler_static_F77='-Bstatic'
13045       fi
13046       ;;
13047
13048     amigaos*)
13049       # FIXME: we need at least 68020 code to build shared libraries, but
13050       # adding the `-m68020' flag to GCC prevents building anything better,
13051       # like `-m68040'.
13052       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13053       ;;
13054
13055     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13056       # PIC is the default for these OSes.
13057       ;;
13058
13059     mingw* | pw32* | os2*)
13060       # This hack is so that the source file can tell whether it is being
13061       # built for inclusion in a dll (and should export symbols for example).
13062       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13063       ;;
13064
13065     darwin* | rhapsody*)
13066       # PIC is the default on this platform
13067       # Common symbols not allowed in MH_DYLIB files
13068       lt_prog_compiler_pic_F77='-fno-common'
13069       ;;
13070
13071     interix3*)
13072       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13073       # Instead, we relocate shared libraries at runtime.
13074       ;;
13075
13076     msdosdjgpp*)
13077       # Just because we use GCC doesn't mean we suddenly get shared libraries
13078       # on systems that don't support them.
13079       lt_prog_compiler_can_build_shared_F77=no
13080       enable_shared=no
13081       ;;
13082
13083     sysv4*MP*)
13084       if test -d /usr/nec; then
13085         lt_prog_compiler_pic_F77=-Kconform_pic
13086       fi
13087       ;;
13088
13089     hpux*)
13090       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13091       # not for PA HP-UX.
13092       case $host_cpu in
13093       hppa*64*|ia64*)
13094         # +Z the default
13095         ;;
13096       *)
13097         lt_prog_compiler_pic_F77='-fPIC'
13098         ;;
13099       esac
13100       ;;
13101
13102     *)
13103       lt_prog_compiler_pic_F77='-fPIC'
13104       ;;
13105     esac
13106   else
13107     # PORTME Check for flag to pass linker flags through the system compiler.
13108     case $host_os in
13109     aix*)
13110       lt_prog_compiler_wl_F77='-Wl,'
13111       if test "$host_cpu" = ia64; then
13112         # AIX 5 now supports IA64 processor
13113         lt_prog_compiler_static_F77='-Bstatic'
13114       else
13115         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13116       fi
13117       ;;
13118       darwin*)
13119         # PIC is the default on this platform
13120         # Common symbols not allowed in MH_DYLIB files
13121        case $cc_basename in
13122          xlc*)
13123          lt_prog_compiler_pic_F77='-qnocommon'
13124          lt_prog_compiler_wl_F77='-Wl,'
13125          ;;
13126        esac
13127        ;;
13128
13129     mingw* | pw32* | os2*)
13130       # This hack is so that the source file can tell whether it is being
13131       # built for inclusion in a dll (and should export symbols for example).
13132       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13133       ;;
13134
13135     hpux9* | hpux10* | hpux11*)
13136       lt_prog_compiler_wl_F77='-Wl,'
13137       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13138       # not for PA HP-UX.
13139       case $host_cpu in
13140       hppa*64*|ia64*)
13141         # +Z the default
13142         ;;
13143       *)
13144         lt_prog_compiler_pic_F77='+Z'
13145         ;;
13146       esac
13147       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13148       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13149       ;;
13150
13151     irix5* | irix6* | nonstopux*)
13152       lt_prog_compiler_wl_F77='-Wl,'
13153       # PIC (with -KPIC) is the default.
13154       lt_prog_compiler_static_F77='-non_shared'
13155       ;;
13156
13157     newsos6)
13158       lt_prog_compiler_pic_F77='-KPIC'
13159       lt_prog_compiler_static_F77='-Bstatic'
13160       ;;
13161
13162     linux*)
13163       case $cc_basename in
13164       icc* | ecc*)
13165         lt_prog_compiler_wl_F77='-Wl,'
13166         lt_prog_compiler_pic_F77='-KPIC'
13167         lt_prog_compiler_static_F77='-static'
13168         ;;
13169       pgcc* | pgf77* | pgf90* | pgf95*)
13170         # Portland Group compilers (*not* the Pentium gcc compiler,
13171         # which looks to be a dead project)
13172         lt_prog_compiler_wl_F77='-Wl,'
13173         lt_prog_compiler_pic_F77='-fpic'
13174         lt_prog_compiler_static_F77='-Bstatic'
13175         ;;
13176       ccc*)
13177         lt_prog_compiler_wl_F77='-Wl,'
13178         # All Alpha code is PIC.
13179         lt_prog_compiler_static_F77='-non_shared'
13180         ;;
13181       esac
13182       ;;
13183
13184     osf3* | osf4* | osf5*)
13185       lt_prog_compiler_wl_F77='-Wl,'
13186       # All OSF/1 code is PIC.
13187       lt_prog_compiler_static_F77='-non_shared'
13188       ;;
13189
13190     solaris*)
13191       lt_prog_compiler_pic_F77='-KPIC'
13192       lt_prog_compiler_static_F77='-Bstatic'
13193       case $cc_basename in
13194       f77* | f90* | f95*)
13195         lt_prog_compiler_wl_F77='-Qoption ld ';;
13196       *)
13197         lt_prog_compiler_wl_F77='-Wl,';;
13198       esac
13199       ;;
13200
13201     sunos4*)
13202       lt_prog_compiler_wl_F77='-Qoption ld '
13203       lt_prog_compiler_pic_F77='-PIC'
13204       lt_prog_compiler_static_F77='-Bstatic'
13205       ;;
13206
13207     sysv4 | sysv4.2uw2* | sysv4.3*)
13208       lt_prog_compiler_wl_F77='-Wl,'
13209       lt_prog_compiler_pic_F77='-KPIC'
13210       lt_prog_compiler_static_F77='-Bstatic'
13211       ;;
13212
13213     sysv4*MP*)
13214       if test -d /usr/nec ;then
13215         lt_prog_compiler_pic_F77='-Kconform_pic'
13216         lt_prog_compiler_static_F77='-Bstatic'
13217       fi
13218       ;;
13219
13220     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13221       lt_prog_compiler_wl_F77='-Wl,'
13222       lt_prog_compiler_pic_F77='-KPIC'
13223       lt_prog_compiler_static_F77='-Bstatic'
13224       ;;
13225
13226     unicos*)
13227       lt_prog_compiler_wl_F77='-Wl,'
13228       lt_prog_compiler_can_build_shared_F77=no
13229       ;;
13230
13231     uts4*)
13232       lt_prog_compiler_pic_F77='-pic'
13233       lt_prog_compiler_static_F77='-Bstatic'
13234       ;;
13235
13236     *)
13237       lt_prog_compiler_can_build_shared_F77=no
13238       ;;
13239     esac
13240   fi
13241
13242 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13243 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13244
13245 #
13246 # Check to make sure the PIC flag actually works.
13247 #
13248 if test -n "$lt_prog_compiler_pic_F77"; then
13249
13250 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13251 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13252 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13253   echo $ECHO_N "(cached) $ECHO_C" >&6
13254 else
13255   lt_prog_compiler_pic_works_F77=no
13256   ac_outfile=conftest.$ac_objext
13257    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13258    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13259    # Insert the option either (1) after the last *FLAGS variable, or
13260    # (2) before a word containing "conftest.", or (3) at the end.
13261    # Note that $ac_compile itself does not contain backslashes and begins
13262    # with a dollar sign (not a hyphen), so the echo should work correctly.
13263    # The option is referenced via a variable to avoid confusing sed.
13264    lt_compile=`echo "$ac_compile" | $SED \
13265    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13266    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13267    -e 's:$: $lt_compiler_flag:'`
13268    (eval echo "\"\$as_me:13268: $lt_compile\"" >&5)
13269    (eval "$lt_compile" 2>conftest.err)
13270    ac_status=$?
13271    cat conftest.err >&5
13272    echo "$as_me:13272: \$? = $ac_status" >&5
13273    if (exit $ac_status) && test -s "$ac_outfile"; then
13274      # The compiler can only warn and ignore the option if not recognized
13275      # So say no if there are warnings other than the usual output.
13276      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13277      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13278      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13279        lt_prog_compiler_pic_works_F77=yes
13280      fi
13281    fi
13282    $rm conftest*
13283
13284 fi
13285 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13286 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13287
13288 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13289     case $lt_prog_compiler_pic_F77 in
13290      "" | " "*) ;;
13291      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13292      esac
13293 else
13294     lt_prog_compiler_pic_F77=
13295      lt_prog_compiler_can_build_shared_F77=no
13296 fi
13297
13298 fi
13299 case $host_os in
13300   # For platforms which do not support PIC, -DPIC is meaningless:
13301   *djgpp*)
13302     lt_prog_compiler_pic_F77=
13303     ;;
13304   *)
13305     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13306     ;;
13307 esac
13308
13309 #
13310 # Check to make sure the static flag actually works.
13311 #
13312 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13313 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13314 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13315 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13316   echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318   lt_prog_compiler_static_works_F77=no
13319    save_LDFLAGS="$LDFLAGS"
13320    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13321    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13322    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13323      # The linker can only warn and ignore the option if not recognized
13324      # So say no if there are warnings
13325      if test -s conftest.err; then
13326        # Append any errors to the config.log.
13327        cat conftest.err 1>&5
13328        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13329        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13330        if diff conftest.exp conftest.er2 >/dev/null; then
13331          lt_prog_compiler_static_works_F77=yes
13332        fi
13333      else
13334        lt_prog_compiler_static_works_F77=yes
13335      fi
13336    fi
13337    $rm conftest*
13338    LDFLAGS="$save_LDFLAGS"
13339
13340 fi
13341 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13342 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13343
13344 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13345     :
13346 else
13347     lt_prog_compiler_static_F77=
13348 fi
13349
13350
13351 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13352 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13353 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13354   echo $ECHO_N "(cached) $ECHO_C" >&6
13355 else
13356   lt_cv_prog_compiler_c_o_F77=no
13357    $rm -r conftest 2>/dev/null
13358    mkdir conftest
13359    cd conftest
13360    mkdir out
13361    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13362
13363    lt_compiler_flag="-o out/conftest2.$ac_objext"
13364    # Insert the option either (1) after the last *FLAGS variable, or
13365    # (2) before a word containing "conftest.", or (3) at the end.
13366    # Note that $ac_compile itself does not contain backslashes and begins
13367    # with a dollar sign (not a hyphen), so the echo should work correctly.
13368    lt_compile=`echo "$ac_compile" | $SED \
13369    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13370    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13371    -e 's:$: $lt_compiler_flag:'`
13372    (eval echo "\"\$as_me:13372: $lt_compile\"" >&5)
13373    (eval "$lt_compile" 2>out/conftest.err)
13374    ac_status=$?
13375    cat out/conftest.err >&5
13376    echo "$as_me:13376: \$? = $ac_status" >&5
13377    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13378    then
13379      # The compiler can only warn and ignore the option if not recognized
13380      # So say no if there are warnings
13381      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13382      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13383      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13384        lt_cv_prog_compiler_c_o_F77=yes
13385      fi
13386    fi
13387    chmod u+w . 2>&5
13388    $rm conftest*
13389    # SGI C++ compiler will create directory out/ii_files/ for
13390    # template instantiation
13391    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13392    $rm out/* && rmdir out
13393    cd ..
13394    rmdir conftest
13395    $rm conftest*
13396
13397 fi
13398 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13399 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13400
13401
13402 hard_links="nottested"
13403 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13404   # do not overwrite the value of need_locks provided by the user
13405   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13406 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13407   hard_links=yes
13408   $rm conftest*
13409   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13410   touch conftest.a
13411   ln conftest.a conftest.b 2>&5 || hard_links=no
13412   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13413   echo "$as_me:$LINENO: result: $hard_links" >&5
13414 echo "${ECHO_T}$hard_links" >&6
13415   if test "$hard_links" = no; then
13416     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13417 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13418     need_locks=warn
13419   fi
13420 else
13421   need_locks=no
13422 fi
13423
13424 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13425 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13426
13427   runpath_var=
13428   allow_undefined_flag_F77=
13429   enable_shared_with_static_runtimes_F77=no
13430   archive_cmds_F77=
13431   archive_expsym_cmds_F77=
13432   old_archive_From_new_cmds_F77=
13433   old_archive_from_expsyms_cmds_F77=
13434   export_dynamic_flag_spec_F77=
13435   whole_archive_flag_spec_F77=
13436   thread_safe_flag_spec_F77=
13437   hardcode_libdir_flag_spec_F77=
13438   hardcode_libdir_flag_spec_ld_F77=
13439   hardcode_libdir_separator_F77=
13440   hardcode_direct_F77=no
13441   hardcode_minus_L_F77=no
13442   hardcode_shlibpath_var_F77=unsupported
13443   link_all_deplibs_F77=unknown
13444   hardcode_automatic_F77=no
13445   module_cmds_F77=
13446   module_expsym_cmds_F77=
13447   always_export_symbols_F77=no
13448   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13449   # include_expsyms should be a list of space-separated symbols to be *always*
13450   # included in the symbol list
13451   include_expsyms_F77=
13452   # exclude_expsyms can be an extended regexp of symbols to exclude
13453   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13454   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13455   # as well as any symbol that contains `d'.
13456   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13457   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13458   # platforms (ab)use it in PIC code, but their linkers get confused if
13459   # the symbol is explicitly referenced.  Since portable code cannot
13460   # rely on this symbol name, it's probably fine to never include it in
13461   # preloaded symbol tables.
13462   extract_expsyms_cmds=
13463   # Just being paranoid about ensuring that cc_basename is set.
13464   for cc_temp in $compiler""; do
13465   case $cc_temp in
13466     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13467     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13468     \-*) ;;
13469     *) break;;
13470   esac
13471 done
13472 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13473
13474   case $host_os in
13475   cygwin* | mingw* | pw32*)
13476     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13477     # When not using gcc, we currently assume that we are using
13478     # Microsoft Visual C++.
13479     if test "$GCC" != yes; then
13480       with_gnu_ld=no
13481     fi
13482     ;;
13483   interix*)
13484     # we just hope/assume this is gcc and not c89 (= MSVC++)
13485     with_gnu_ld=yes
13486     ;;
13487   openbsd*)
13488     with_gnu_ld=no
13489     ;;
13490   esac
13491
13492   ld_shlibs_F77=yes
13493   if test "$with_gnu_ld" = yes; then
13494     # If archive_cmds runs LD, not CC, wlarc should be empty
13495     wlarc='${wl}'
13496
13497     # Set some defaults for GNU ld with shared library support. These
13498     # are reset later if shared libraries are not supported. Putting them
13499     # here allows them to be overridden if necessary.
13500     runpath_var=LD_RUN_PATH
13501     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13502     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13503     # ancient GNU ld didn't support --whole-archive et. al.
13504     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13505         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13506       else
13507         whole_archive_flag_spec_F77=
13508     fi
13509     supports_anon_versioning=no
13510     case `$LD -v 2>/dev/null` in
13511       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13512       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13513       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13514       *\ 2.11.*) ;; # other 2.11 versions
13515       *) supports_anon_versioning=yes ;;
13516     esac
13517
13518     # See if GNU ld supports shared libraries.
13519     case $host_os in
13520     aix3* | aix4* | aix5*)
13521       # On AIX/PPC, the GNU linker is very broken
13522       if test "$host_cpu" != ia64; then
13523         ld_shlibs_F77=no
13524         cat <<EOF 1>&2
13525
13526 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13527 *** to be unable to reliably create shared libraries on AIX.
13528 *** Therefore, libtool is disabling shared libraries support.  If you
13529 *** really care for shared libraries, you may want to modify your PATH
13530 *** so that a non-GNU linker is found, and then restart.
13531
13532 EOF
13533       fi
13534       ;;
13535
13536     amigaos*)
13537       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)'
13538       hardcode_libdir_flag_spec_F77='-L$libdir'
13539       hardcode_minus_L_F77=yes
13540
13541       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13542       # that the semantics of dynamic libraries on AmigaOS, at least up
13543       # to version 4, is to share data among multiple programs linked
13544       # with the same dynamic library.  Since this doesn't match the
13545       # behavior of shared libraries on other platforms, we can't use
13546       # them.
13547       ld_shlibs_F77=no
13548       ;;
13549
13550     beos*)
13551       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13552         allow_undefined_flag_F77=unsupported
13553         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13554         # support --undefined.  This deserves some investigation.  FIXME
13555         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13556       else
13557         ld_shlibs_F77=no
13558       fi
13559       ;;
13560
13561     cygwin* | mingw* | pw32*)
13562       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13563       # as there is no search path for DLLs.
13564       hardcode_libdir_flag_spec_F77='-L$libdir'
13565       allow_undefined_flag_F77=unsupported
13566       always_export_symbols_F77=no
13567       enable_shared_with_static_runtimes_F77=yes
13568       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13569
13570       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13571         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13572         # If the export-symbols file already is a .def file (1st line
13573         # is EXPORTS), use it as is; otherwise, prepend...
13574         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13575           cp $export_symbols $output_objdir/$soname.def;
13576         else
13577           echo EXPORTS > $output_objdir/$soname.def;
13578           cat $export_symbols >> $output_objdir/$soname.def;
13579         fi~
13580         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13581       else
13582         ld_shlibs_F77=no
13583       fi
13584       ;;
13585
13586     interix3*)
13587       hardcode_direct_F77=no
13588       hardcode_shlibpath_var_F77=no
13589       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13590       export_dynamic_flag_spec_F77='${wl}-E'
13591       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13592       # Instead, shared libraries are loaded at an image base (0x10000000 by
13593       # default) and relocated if they conflict, which is a slow very memory
13594       # consuming and fragmenting process.  To avoid this, we pick a random,
13595       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13596       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13597       archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13598       archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13599       ;;
13600
13601     linux*)
13602       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13603         tmp_addflag=
13604         case $cc_basename,$host_cpu in
13605         pgcc*)                          # Portland Group C compiler
13606           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13607           tmp_addflag=' $pic_flag'
13608           ;;
13609         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13610           whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13611           tmp_addflag=' $pic_flag -Mnomain' ;;
13612         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13613           tmp_addflag=' -i_dynamic' ;;
13614         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13615           tmp_addflag=' -i_dynamic -nofor_main' ;;
13616         ifc* | ifort*)                  # Intel Fortran compiler
13617           tmp_addflag=' -nofor_main' ;;
13618         esac
13619         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13620
13621         if test $supports_anon_versioning = yes; then
13622           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13623   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13624   $echo "local: *; };" >> $output_objdir/$libname.ver~
13625           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13626         fi
13627       else
13628         ld_shlibs_F77=no
13629       fi
13630       ;;
13631
13632     netbsd*)
13633       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13634         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13635         wlarc=
13636       else
13637         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13638         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13639       fi
13640       ;;
13641
13642     solaris*)
13643       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13644         ld_shlibs_F77=no
13645         cat <<EOF 1>&2
13646
13647 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13648 *** create shared libraries on Solaris systems.  Therefore, libtool
13649 *** is disabling shared libraries support.  We urge you to upgrade GNU
13650 *** binutils to release 2.9.1 or newer.  Another option is to modify
13651 *** your PATH or compiler configuration so that the native linker is
13652 *** used, and then restart.
13653
13654 EOF
13655       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13656         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13657         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13658       else
13659         ld_shlibs_F77=no
13660       fi
13661       ;;
13662
13663     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13664       case `$LD -v 2>&1` in
13665         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13666         ld_shlibs_F77=no
13667         cat <<_LT_EOF 1>&2
13668
13669 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13670 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13671 *** is disabling shared libraries support.  We urge you to upgrade GNU
13672 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13673 *** your PATH or compiler configuration so that the native linker is
13674 *** used, and then restart.
13675
13676 _LT_EOF
13677         ;;
13678         *)
13679           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13680             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13681             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13682             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13683           else
13684             ld_shlibs_F77=no
13685           fi
13686         ;;
13687       esac
13688       ;;
13689
13690     sunos4*)
13691       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13692       wlarc=
13693       hardcode_direct_F77=yes
13694       hardcode_shlibpath_var_F77=no
13695       ;;
13696
13697     *)
13698       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13699         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13700         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13701       else
13702         ld_shlibs_F77=no
13703       fi
13704       ;;
13705     esac
13706
13707     if test "$ld_shlibs_F77" = no; then
13708       runpath_var=
13709       hardcode_libdir_flag_spec_F77=
13710       export_dynamic_flag_spec_F77=
13711       whole_archive_flag_spec_F77=
13712     fi
13713   else
13714     # PORTME fill in a description of your system's linker (not GNU ld)
13715     case $host_os in
13716     aix3*)
13717       allow_undefined_flag_F77=unsupported
13718       always_export_symbols_F77=yes
13719       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'
13720       # Note: this linker hardcodes the directories in LIBPATH if there
13721       # are no directories specified by -L.
13722       hardcode_minus_L_F77=yes
13723       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13724         # Neither direct hardcoding nor static linking is supported with a
13725         # broken collect2.
13726         hardcode_direct_F77=unsupported
13727       fi
13728       ;;
13729
13730     aix4* | aix5*)
13731       if test "$host_cpu" = ia64; then
13732         # On IA64, the linker does run time linking by default, so we don't
13733         # have to do anything special.
13734         aix_use_runtimelinking=no
13735         exp_sym_flag='-Bexport'
13736         no_entry_flag=""
13737       else
13738         # If we're using GNU nm, then we don't want the "-C" option.
13739         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13740         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13741           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'
13742         else
13743           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'
13744         fi
13745         aix_use_runtimelinking=no
13746
13747         # Test if we are trying to use run time linking or normal
13748         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13749         # need to do runtime linking.
13750         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13751           for ld_flag in $LDFLAGS; do
13752           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13753             aix_use_runtimelinking=yes
13754             break
13755           fi
13756           done
13757           ;;
13758         esac
13759
13760         exp_sym_flag='-bexport'
13761         no_entry_flag='-bnoentry'
13762       fi
13763
13764       # When large executables or shared objects are built, AIX ld can
13765       # have problems creating the table of contents.  If linking a library
13766       # or program results in "error TOC overflow" add -mminimal-toc to
13767       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13768       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13769
13770       archive_cmds_F77=''
13771       hardcode_direct_F77=yes
13772       hardcode_libdir_separator_F77=':'
13773       link_all_deplibs_F77=yes
13774
13775       if test "$GCC" = yes; then
13776         case $host_os in aix4.[012]|aix4.[012].*)
13777         # We only want to do this on AIX 4.2 and lower, the check
13778         # below for broken collect2 doesn't work under 4.3+
13779           collect2name=`${CC} -print-prog-name=collect2`
13780           if test -f "$collect2name" && \
13781            strings "$collect2name" | grep resolve_lib_name >/dev/null
13782           then
13783           # We have reworked collect2
13784           hardcode_direct_F77=yes
13785           else
13786           # We have old collect2
13787           hardcode_direct_F77=unsupported
13788           # It fails to find uninstalled libraries when the uninstalled
13789           # path is not listed in the libpath.  Setting hardcode_minus_L
13790           # to unsupported forces relinking
13791           hardcode_minus_L_F77=yes
13792           hardcode_libdir_flag_spec_F77='-L$libdir'
13793           hardcode_libdir_separator_F77=
13794           fi
13795           ;;
13796         esac
13797         shared_flag='-shared'
13798         if test "$aix_use_runtimelinking" = yes; then
13799           shared_flag="$shared_flag "'${wl}-G'
13800         fi
13801       else
13802         # not using gcc
13803         if test "$host_cpu" = ia64; then
13804         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13805         # chokes on -Wl,-G. The following line is correct:
13806           shared_flag='-G'
13807         else
13808           if test "$aix_use_runtimelinking" = yes; then
13809             shared_flag='${wl}-G'
13810           else
13811             shared_flag='${wl}-bM:SRE'
13812           fi
13813         fi
13814       fi
13815
13816       # It seems that -bexpall does not export symbols beginning with
13817       # underscore (_), so it is better to generate a list of symbols to export.
13818       always_export_symbols_F77=yes
13819       if test "$aix_use_runtimelinking" = yes; then
13820         # Warning - without using the other runtime loading flags (-brtl),
13821         # -berok will link without error, but may produce a broken library.
13822         allow_undefined_flag_F77='-berok'
13823        # Determine the default libpath from the value encoded in an empty executable.
13824        cat >conftest.$ac_ext <<_ACEOF
13825       program main
13826
13827       end
13828 _ACEOF
13829 rm -f conftest.$ac_objext conftest$ac_exeext
13830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13831   (eval $ac_link) 2>conftest.er1
13832   ac_status=$?
13833   grep -v '^ *+' conftest.er1 >conftest.err
13834   rm -f conftest.er1
13835   cat conftest.err >&5
13836   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837   (exit $ac_status); } &&
13838          { ac_try='test -z "$ac_f77_werror_flag"
13839                          || test ! -s conftest.err'
13840   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13841   (eval $ac_try) 2>&5
13842   ac_status=$?
13843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13844   (exit $ac_status); }; } &&
13845          { ac_try='test -s conftest$ac_exeext'
13846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13847   (eval $ac_try) 2>&5
13848   ac_status=$?
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   (exit $ac_status); }; }; then
13851
13852 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13853 }'`
13854 # Check for a 64-bit object if we didn't find anything.
13855 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; }
13856 }'`; fi
13857 else
13858   echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13860
13861 fi
13862 rm -f conftest.err conftest.$ac_objext \
13863       conftest$ac_exeext conftest.$ac_ext
13864 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13865
13866        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13867         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13868        else
13869         if test "$host_cpu" = ia64; then
13870           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13871           allow_undefined_flag_F77="-z nodefs"
13872           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
13873         else
13874          # Determine the default libpath from the value encoded in an empty executable.
13875          cat >conftest.$ac_ext <<_ACEOF
13876       program main
13877
13878       end
13879 _ACEOF
13880 rm -f conftest.$ac_objext conftest$ac_exeext
13881 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13882   (eval $ac_link) 2>conftest.er1
13883   ac_status=$?
13884   grep -v '^ *+' conftest.er1 >conftest.err
13885   rm -f conftest.er1
13886   cat conftest.err >&5
13887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888   (exit $ac_status); } &&
13889          { ac_try='test -z "$ac_f77_werror_flag"
13890                          || test ! -s conftest.err'
13891   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13892   (eval $ac_try) 2>&5
13893   ac_status=$?
13894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895   (exit $ac_status); }; } &&
13896          { ac_try='test -s conftest$ac_exeext'
13897   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13898   (eval $ac_try) 2>&5
13899   ac_status=$?
13900   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901   (exit $ac_status); }; }; then
13902
13903 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13904 }'`
13905 # Check for a 64-bit object if we didn't find anything.
13906 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; }
13907 }'`; fi
13908 else
13909   echo "$as_me: failed program was:" >&5
13910 sed 's/^/| /' conftest.$ac_ext >&5
13911
13912 fi
13913 rm -f conftest.err conftest.$ac_objext \
13914       conftest$ac_exeext conftest.$ac_ext
13915 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13916
13917          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13918           # Warning - without using the other run time loading flags,
13919           # -berok will link without error, but may produce a broken library.
13920           no_undefined_flag_F77=' ${wl}-bernotok'
13921           allow_undefined_flag_F77=' ${wl}-berok'
13922           # Exported symbols can be pulled into shared objects from archives
13923           whole_archive_flag_spec_F77='$convenience'
13924           archive_cmds_need_lc_F77=yes
13925           # This is similar to how AIX traditionally builds its shared libraries.
13926           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13927         fi
13928       fi
13929       ;;
13930
13931     amigaos*)
13932       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)'
13933       hardcode_libdir_flag_spec_F77='-L$libdir'
13934       hardcode_minus_L_F77=yes
13935       # see comment about different semantics on the GNU ld section
13936       ld_shlibs_F77=no
13937       ;;
13938
13939     bsdi[45]*)
13940       export_dynamic_flag_spec_F77=-rdynamic
13941       ;;
13942
13943     cygwin* | mingw* | pw32*)
13944       # When not using gcc, we currently assume that we are using
13945       # Microsoft Visual C++.
13946       # hardcode_libdir_flag_spec is actually meaningless, as there is
13947       # no search path for DLLs.
13948       hardcode_libdir_flag_spec_F77=' '
13949       allow_undefined_flag_F77=unsupported
13950       # Tell ltmain to make .lib files, not .a files.
13951       libext=lib
13952       # Tell ltmain to make .dll files, not .so files.
13953       shrext_cmds=".dll"
13954       # FIXME: Setting linknames here is a bad hack.
13955       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13956       # The linker will automatically build a .lib file if we build a DLL.
13957       old_archive_From_new_cmds_F77='true'
13958       # FIXME: Should let the user specify the lib program.
13959       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13960       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13961       enable_shared_with_static_runtimes_F77=yes
13962       ;;
13963
13964     darwin* | rhapsody*)
13965       case $host_os in
13966         rhapsody* | darwin1.[012])
13967          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13968          ;;
13969        *) # Darwin 1.3 on
13970          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13971            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13972          else
13973            case ${MACOSX_DEPLOYMENT_TARGET} in
13974              10.[012])
13975                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13976                ;;
13977              10.*)
13978                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13979                ;;
13980            esac
13981          fi
13982          ;;
13983       esac
13984       archive_cmds_need_lc_F77=no
13985       hardcode_direct_F77=no
13986       hardcode_automatic_F77=yes
13987       hardcode_shlibpath_var_F77=unsupported
13988       whole_archive_flag_spec_F77=''
13989       link_all_deplibs_F77=yes
13990     if test "$GCC" = yes ; then
13991         output_verbose_link_cmd='echo'
13992         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13993       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13994       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13995       archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13996       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}'
13997     else
13998       case $cc_basename in
13999         xlc*)
14000          output_verbose_link_cmd='echo'
14001          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14002          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14003           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14004          archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14005           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}'
14006           ;;
14007        *)
14008          ld_shlibs_F77=no
14009           ;;
14010       esac
14011     fi
14012       ;;
14013
14014     dgux*)
14015       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14016       hardcode_libdir_flag_spec_F77='-L$libdir'
14017       hardcode_shlibpath_var_F77=no
14018       ;;
14019
14020     freebsd1*)
14021       ld_shlibs_F77=no
14022       ;;
14023
14024     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14025     # support.  Future versions do this automatically, but an explicit c++rt0.o
14026     # does not break anything, and helps significantly (at the cost of a little
14027     # extra space).
14028     freebsd2.2*)
14029       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14030       hardcode_libdir_flag_spec_F77='-R$libdir'
14031       hardcode_direct_F77=yes
14032       hardcode_shlibpath_var_F77=no
14033       ;;
14034
14035     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14036     freebsd2*)
14037       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14038       hardcode_direct_F77=yes
14039       hardcode_minus_L_F77=yes
14040       hardcode_shlibpath_var_F77=no
14041       ;;
14042
14043     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14044     freebsd* | kfreebsd*-gnu | dragonfly*)
14045       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14046       hardcode_libdir_flag_spec_F77='-R$libdir'
14047       hardcode_direct_F77=yes
14048       hardcode_shlibpath_var_F77=no
14049       ;;
14050
14051     hpux9*)
14052       if test "$GCC" = yes; then
14053         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'
14054       else
14055         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'
14056       fi
14057       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14058       hardcode_libdir_separator_F77=:
14059       hardcode_direct_F77=yes
14060
14061       # hardcode_minus_L: Not really in the search PATH,
14062       # but as the default location of the library.
14063       hardcode_minus_L_F77=yes
14064       export_dynamic_flag_spec_F77='${wl}-E'
14065       ;;
14066
14067     hpux10*)
14068       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14069         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14070       else
14071         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14072       fi
14073       if test "$with_gnu_ld" = no; then
14074         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14075         hardcode_libdir_separator_F77=:
14076
14077         hardcode_direct_F77=yes
14078         export_dynamic_flag_spec_F77='${wl}-E'
14079
14080         # hardcode_minus_L: Not really in the search PATH,
14081         # but as the default location of the library.
14082         hardcode_minus_L_F77=yes
14083       fi
14084       ;;
14085
14086     hpux11*)
14087       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14088         case $host_cpu in
14089         hppa*64*)
14090           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14091           ;;
14092         ia64*)
14093           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14094           ;;
14095         *)
14096           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14097           ;;
14098         esac
14099       else
14100         case $host_cpu in
14101         hppa*64*)
14102           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14103           ;;
14104         ia64*)
14105           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14106           ;;
14107         *)
14108           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14109           ;;
14110         esac
14111       fi
14112       if test "$with_gnu_ld" = no; then
14113         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14114         hardcode_libdir_separator_F77=:
14115
14116         case $host_cpu in
14117         hppa*64*|ia64*)
14118           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14119           hardcode_direct_F77=no
14120           hardcode_shlibpath_var_F77=no
14121           ;;
14122         *)
14123           hardcode_direct_F77=yes
14124           export_dynamic_flag_spec_F77='${wl}-E'
14125
14126           # hardcode_minus_L: Not really in the search PATH,
14127           # but as the default location of the library.
14128           hardcode_minus_L_F77=yes
14129           ;;
14130         esac
14131       fi
14132       ;;
14133
14134     irix5* | irix6* | nonstopux*)
14135       if test "$GCC" = yes; then
14136         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'
14137       else
14138         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'
14139         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14140       fi
14141       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14142       hardcode_libdir_separator_F77=:
14143       link_all_deplibs_F77=yes
14144       ;;
14145
14146     netbsd*)
14147       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14148         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14149       else
14150         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14151       fi
14152       hardcode_libdir_flag_spec_F77='-R$libdir'
14153       hardcode_direct_F77=yes
14154       hardcode_shlibpath_var_F77=no
14155       ;;
14156
14157     newsos6)
14158       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14159       hardcode_direct_F77=yes
14160       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14161       hardcode_libdir_separator_F77=:
14162       hardcode_shlibpath_var_F77=no
14163       ;;
14164
14165     openbsd*)
14166       hardcode_direct_F77=yes
14167       hardcode_shlibpath_var_F77=no
14168       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14169         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14170         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14171         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14172         export_dynamic_flag_spec_F77='${wl}-E'
14173       else
14174        case $host_os in
14175          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14176            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14177            hardcode_libdir_flag_spec_F77='-R$libdir'
14178            ;;
14179          *)
14180            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14181            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14182            ;;
14183        esac
14184       fi
14185       ;;
14186
14187     os2*)
14188       hardcode_libdir_flag_spec_F77='-L$libdir'
14189       hardcode_minus_L_F77=yes
14190       allow_undefined_flag_F77=unsupported
14191       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'
14192       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14193       ;;
14194
14195     osf3*)
14196       if test "$GCC" = yes; then
14197         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14198         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'
14199       else
14200         allow_undefined_flag_F77=' -expect_unresolved \*'
14201         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'
14202       fi
14203       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14204       hardcode_libdir_separator_F77=:
14205       ;;
14206
14207     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14208       if test "$GCC" = yes; then
14209         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14210         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'
14211         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14212       else
14213         allow_undefined_flag_F77=' -expect_unresolved \*'
14214         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'
14215         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~
14216         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14217
14218         # Both c and cxx compiler support -rpath directly
14219         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14220       fi
14221       hardcode_libdir_separator_F77=:
14222       ;;
14223
14224     solaris*)
14225       no_undefined_flag_F77=' -z text'
14226       if test "$GCC" = yes; then
14227         wlarc='${wl}'
14228         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14229         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14230           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14231       else
14232         wlarc=''
14233         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14234         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14235         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14236       fi
14237       hardcode_libdir_flag_spec_F77='-R$libdir'
14238       hardcode_shlibpath_var_F77=no
14239       case $host_os in
14240       solaris2.[0-5] | solaris2.[0-5].*) ;;
14241       *)
14242         # The compiler driver will combine linker options so we
14243         # cannot just pass the convience library names through
14244         # without $wl, iff we do not link with $LD.
14245         # Luckily, gcc supports the same syntax we need for Sun Studio.
14246         # Supported since Solaris 2.6 (maybe 2.5.1?)
14247         case $wlarc in
14248         '')
14249           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14250         *)
14251           whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14252         esac ;;
14253       esac
14254       link_all_deplibs_F77=yes
14255       ;;
14256
14257     sunos4*)
14258       if test "x$host_vendor" = xsequent; then
14259         # Use $CC to link under sequent, because it throws in some extra .o
14260         # files that make .init and .fini sections work.
14261         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14262       else
14263         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14264       fi
14265       hardcode_libdir_flag_spec_F77='-L$libdir'
14266       hardcode_direct_F77=yes
14267       hardcode_minus_L_F77=yes
14268       hardcode_shlibpath_var_F77=no
14269       ;;
14270
14271     sysv4)
14272       case $host_vendor in
14273         sni)
14274           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14275           hardcode_direct_F77=yes # is this really true???
14276         ;;
14277         siemens)
14278           ## LD is ld it makes a PLAMLIB
14279           ## CC just makes a GrossModule.
14280           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14281           reload_cmds_F77='$CC -r -o $output$reload_objs'
14282           hardcode_direct_F77=no
14283         ;;
14284         motorola)
14285           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14286           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14287         ;;
14288       esac
14289       runpath_var='LD_RUN_PATH'
14290       hardcode_shlibpath_var_F77=no
14291       ;;
14292
14293     sysv4.3*)
14294       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14295       hardcode_shlibpath_var_F77=no
14296       export_dynamic_flag_spec_F77='-Bexport'
14297       ;;
14298
14299     sysv4*MP*)
14300       if test -d /usr/nec; then
14301         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14302         hardcode_shlibpath_var_F77=no
14303         runpath_var=LD_RUN_PATH
14304         hardcode_runpath_var=yes
14305         ld_shlibs_F77=yes
14306       fi
14307       ;;
14308
14309     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14310       no_undefined_flag_F77='${wl}-z,text'
14311       archive_cmds_need_lc_F77=no
14312       hardcode_shlibpath_var_F77=no
14313       runpath_var='LD_RUN_PATH'
14314
14315       if test "$GCC" = yes; then
14316         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14317         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14318       else
14319         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14321       fi
14322       ;;
14323
14324     sysv5* | sco3.2v5* | sco5v6*)
14325       # Note: We can NOT use -z defs as we might desire, because we do not
14326       # link with -lc, and that would cause any symbols used from libc to
14327       # always be unresolved, which means just about no library would
14328       # ever link correctly.  If we're not using GNU ld we use -z text
14329       # though, which does catch some bad symbols but isn't as heavy-handed
14330       # as -z defs.
14331       no_undefined_flag_F77='${wl}-z,text'
14332       allow_undefined_flag_F77='${wl}-z,nodefs'
14333       archive_cmds_need_lc_F77=no
14334       hardcode_shlibpath_var_F77=no
14335       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14336       hardcode_libdir_separator_F77=':'
14337       link_all_deplibs_F77=yes
14338       export_dynamic_flag_spec_F77='${wl}-Bexport'
14339       runpath_var='LD_RUN_PATH'
14340
14341       if test "$GCC" = yes; then
14342         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14343         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14344       else
14345         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14346         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14347       fi
14348       ;;
14349
14350     uts4*)
14351       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14352       hardcode_libdir_flag_spec_F77='-L$libdir'
14353       hardcode_shlibpath_var_F77=no
14354       ;;
14355
14356     *)
14357       ld_shlibs_F77=no
14358       ;;
14359     esac
14360   fi
14361
14362 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14363 echo "${ECHO_T}$ld_shlibs_F77" >&6
14364 test "$ld_shlibs_F77" = no && can_build_shared=no
14365
14366 #
14367 # Do we need to explicitly link libc?
14368 #
14369 case "x$archive_cmds_need_lc_F77" in
14370 x|xyes)
14371   # Assume -lc should be added
14372   archive_cmds_need_lc_F77=yes
14373
14374   if test "$enable_shared" = yes && test "$GCC" = yes; then
14375     case $archive_cmds_F77 in
14376     *'~'*)
14377       # FIXME: we may have to deal with multi-command sequences.
14378       ;;
14379     '$CC '*)
14380       # Test whether the compiler implicitly links with -lc since on some
14381       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14382       # to ld, don't add -lc before -lgcc.
14383       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14384 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14385       $rm conftest*
14386       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14387
14388       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14389   (eval $ac_compile) 2>&5
14390   ac_status=$?
14391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392   (exit $ac_status); } 2>conftest.err; then
14393         soname=conftest
14394         lib=conftest
14395         libobjs=conftest.$ac_objext
14396         deplibs=
14397         wl=$lt_prog_compiler_wl_F77
14398         pic_flag=$lt_prog_compiler_pic_F77
14399         compiler_flags=-v
14400         linker_flags=-v
14401         verstring=
14402         output_objdir=.
14403         libname=conftest
14404         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14405         allow_undefined_flag_F77=
14406         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14407   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14408   ac_status=$?
14409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14410   (exit $ac_status); }
14411         then
14412           archive_cmds_need_lc_F77=no
14413         else
14414           archive_cmds_need_lc_F77=yes
14415         fi
14416         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14417       else
14418         cat conftest.err 1>&5
14419       fi
14420       $rm conftest*
14421       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14422 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14423       ;;
14424     esac
14425   fi
14426   ;;
14427 esac
14428
14429 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14430 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14431 library_names_spec=
14432 libname_spec='lib$name'
14433 soname_spec=
14434 shrext_cmds=".so"
14435 postinstall_cmds=
14436 postuninstall_cmds=
14437 finish_cmds=
14438 finish_eval=
14439 shlibpath_var=
14440 shlibpath_overrides_runpath=unknown
14441 version_type=none
14442 dynamic_linker="$host_os ld.so"
14443 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14444 if test "$GCC" = yes; then
14445   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14446   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14447     # if the path contains ";" then we assume it to be the separator
14448     # otherwise default to the standard path separator (i.e. ":") - it is
14449     # assumed that no part of a normal pathname contains ";" but that should
14450     # okay in the real world where ";" in dirpaths is itself problematic.
14451     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14452   else
14453     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14454   fi
14455 else
14456   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14457 fi
14458 need_lib_prefix=unknown
14459 hardcode_into_libs=no
14460
14461 # when you set need_version to no, make sure it does not cause -set_version
14462 # flags to be left without arguments
14463 need_version=unknown
14464
14465 case $host_os in
14466 aix3*)
14467   version_type=linux
14468   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14469   shlibpath_var=LIBPATH
14470
14471   # AIX 3 has no versioning support, so we append a major version to the name.
14472   soname_spec='${libname}${release}${shared_ext}$major'
14473   ;;
14474
14475 aix4* | aix5*)
14476   version_type=linux
14477   need_lib_prefix=no
14478   need_version=no
14479   hardcode_into_libs=yes
14480   if test "$host_cpu" = ia64; then
14481     # AIX 5 supports IA64
14482     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14483     shlibpath_var=LD_LIBRARY_PATH
14484   else
14485     # With GCC up to 2.95.x, collect2 would create an import file
14486     # for dependence libraries.  The import file would start with
14487     # the line `#! .'.  This would cause the generated library to
14488     # depend on `.', always an invalid library.  This was fixed in
14489     # development snapshots of GCC prior to 3.0.
14490     case $host_os in
14491       aix4 | aix4.[01] | aix4.[01].*)
14492       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14493            echo ' yes '
14494            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14495         :
14496       else
14497         can_build_shared=no
14498       fi
14499       ;;
14500     esac
14501     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14502     # soname into executable. Probably we can add versioning support to
14503     # collect2, so additional links can be useful in future.
14504     if test "$aix_use_runtimelinking" = yes; then
14505       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14506       # instead of lib<name>.a to let people know that these are not
14507       # typical AIX shared libraries.
14508       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14509     else
14510       # We preserve .a as extension for shared libraries through AIX4.2
14511       # and later when we are not doing run time linking.
14512       library_names_spec='${libname}${release}.a $libname.a'
14513       soname_spec='${libname}${release}${shared_ext}$major'
14514     fi
14515     shlibpath_var=LIBPATH
14516   fi
14517   ;;
14518
14519 amigaos*)
14520   library_names_spec='$libname.ixlibrary $libname.a'
14521   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14522   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'
14523   ;;
14524
14525 beos*)
14526   library_names_spec='${libname}${shared_ext}'
14527   dynamic_linker="$host_os ld.so"
14528   shlibpath_var=LIBRARY_PATH
14529   ;;
14530
14531 bsdi[45]*)
14532   version_type=linux
14533   need_version=no
14534   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535   soname_spec='${libname}${release}${shared_ext}$major'
14536   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14537   shlibpath_var=LD_LIBRARY_PATH
14538   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14539   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14540   # the default ld.so.conf also contains /usr/contrib/lib and
14541   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14542   # libtool to hard-code these into programs
14543   ;;
14544
14545 cygwin* | mingw* | pw32*)
14546   version_type=windows
14547   shrext_cmds=".dll"
14548   need_version=no
14549   need_lib_prefix=no
14550
14551   case $GCC,$host_os in
14552   yes,cygwin* | yes,mingw* | yes,pw32*)
14553     library_names_spec='$libname.dll.a'
14554     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14555     postinstall_cmds='base_file=`basename \${file}`~
14556       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14557       dldir=$destdir/`dirname \$dlpath`~
14558       test -d \$dldir || mkdir -p \$dldir~
14559       $install_prog $dir/$dlname \$dldir/$dlname~
14560       chmod a+x \$dldir/$dlname'
14561     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14562       dlpath=$dir/\$dldll~
14563        $rm \$dlpath'
14564     shlibpath_overrides_runpath=yes
14565
14566     case $host_os in
14567     cygwin*)
14568       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14569       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14570       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14571       ;;
14572     mingw*)
14573       # MinGW DLLs use traditional 'lib' prefix
14574       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14575       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14576       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14577         # It is most probably a Windows format PATH printed by
14578         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14579         # path with ; separators, and with drive letters. We can handle the
14580         # drive letters (cygwin fileutils understands them), so leave them,
14581         # especially as we might pass files found there to a mingw objdump,
14582         # which wouldn't understand a cygwinified path. Ahh.
14583         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14584       else
14585         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14586       fi
14587       ;;
14588     pw32*)
14589       # pw32 DLLs use 'pw' prefix rather than 'lib'
14590       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14591       ;;
14592     esac
14593     ;;
14594
14595   *)
14596     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14597     ;;
14598   esac
14599   dynamic_linker='Win32 ld.exe'
14600   # FIXME: first we should search . and the directory the executable is in
14601   shlibpath_var=PATH
14602   ;;
14603
14604 darwin* | rhapsody*)
14605   dynamic_linker="$host_os dyld"
14606   version_type=darwin
14607   need_lib_prefix=no
14608   need_version=no
14609   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14610   soname_spec='${libname}${release}${major}$shared_ext'
14611   shlibpath_overrides_runpath=yes
14612   shlibpath_var=DYLD_LIBRARY_PATH
14613   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14614   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14615   if test "$GCC" = yes; then
14616     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"`
14617   else
14618     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14619   fi
14620   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14621   ;;
14622
14623 dgux*)
14624   version_type=linux
14625   need_lib_prefix=no
14626   need_version=no
14627   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14628   soname_spec='${libname}${release}${shared_ext}$major'
14629   shlibpath_var=LD_LIBRARY_PATH
14630   ;;
14631
14632 freebsd1*)
14633   dynamic_linker=no
14634   ;;
14635
14636 kfreebsd*-gnu)
14637   version_type=linux
14638   need_lib_prefix=no
14639   need_version=no
14640   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14641   soname_spec='${libname}${release}${shared_ext}$major'
14642   shlibpath_var=LD_LIBRARY_PATH
14643   shlibpath_overrides_runpath=no
14644   hardcode_into_libs=yes
14645   dynamic_linker='GNU ld.so'
14646   ;;
14647
14648 freebsd* | dragonfly*)
14649   # DragonFly does not have aout.  When/if they implement a new
14650   # versioning mechanism, adjust this.
14651   if test -x /usr/bin/objformat; then
14652     objformat=`/usr/bin/objformat`
14653   else
14654     case $host_os in
14655     freebsd[123]*) objformat=aout ;;
14656     *) objformat=elf ;;
14657     esac
14658   fi
14659   version_type=freebsd-$objformat
14660   case $version_type in
14661     freebsd-elf*)
14662       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14663       need_version=no
14664       need_lib_prefix=no
14665       ;;
14666     freebsd-*)
14667       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14668       need_version=yes
14669       ;;
14670   esac
14671   shlibpath_var=LD_LIBRARY_PATH
14672   case $host_os in
14673   freebsd2*)
14674     shlibpath_overrides_runpath=yes
14675     ;;
14676   freebsd3.[01]* | freebsdelf3.[01]*)
14677     shlibpath_overrides_runpath=yes
14678     hardcode_into_libs=yes
14679     ;;
14680   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14681   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14682     shlibpath_overrides_runpath=no
14683     hardcode_into_libs=yes
14684     ;;
14685   freebsd*) # from 4.6 on
14686     shlibpath_overrides_runpath=yes
14687     hardcode_into_libs=yes
14688     ;;
14689   esac
14690   ;;
14691
14692 gnu*)
14693   version_type=linux
14694   need_lib_prefix=no
14695   need_version=no
14696   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14697   soname_spec='${libname}${release}${shared_ext}$major'
14698   shlibpath_var=LD_LIBRARY_PATH
14699   hardcode_into_libs=yes
14700   ;;
14701
14702 hpux9* | hpux10* | hpux11*)
14703   # Give a soname corresponding to the major version so that dld.sl refuses to
14704   # link against other versions.
14705   version_type=sunos
14706   need_lib_prefix=no
14707   need_version=no
14708   case $host_cpu in
14709   ia64*)
14710     shrext_cmds='.so'
14711     hardcode_into_libs=yes
14712     dynamic_linker="$host_os dld.so"
14713     shlibpath_var=LD_LIBRARY_PATH
14714     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14715     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14716     soname_spec='${libname}${release}${shared_ext}$major'
14717     if test "X$HPUX_IA64_MODE" = X32; then
14718       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14719     else
14720       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14721     fi
14722     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14723     ;;
14724    hppa*64*)
14725      shrext_cmds='.sl'
14726      hardcode_into_libs=yes
14727      dynamic_linker="$host_os dld.sl"
14728      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14729      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14730      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14731      soname_spec='${libname}${release}${shared_ext}$major'
14732      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14733      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14734      ;;
14735    *)
14736     shrext_cmds='.sl'
14737     dynamic_linker="$host_os dld.sl"
14738     shlibpath_var=SHLIB_PATH
14739     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14740     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14741     soname_spec='${libname}${release}${shared_ext}$major'
14742     ;;
14743   esac
14744   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14745   postinstall_cmds='chmod 555 $lib'
14746   ;;
14747
14748 interix3*)
14749   version_type=linux
14750   need_lib_prefix=no
14751   need_version=no
14752   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14753   soname_spec='${libname}${release}${shared_ext}$major'
14754   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14755   shlibpath_var=LD_LIBRARY_PATH
14756   shlibpath_overrides_runpath=no
14757   hardcode_into_libs=yes
14758   ;;
14759
14760 irix5* | irix6* | nonstopux*)
14761   case $host_os in
14762     nonstopux*) version_type=nonstopux ;;
14763     *)
14764         if test "$lt_cv_prog_gnu_ld" = yes; then
14765                 version_type=linux
14766         else
14767                 version_type=irix
14768         fi ;;
14769   esac
14770   need_lib_prefix=no
14771   need_version=no
14772   soname_spec='${libname}${release}${shared_ext}$major'
14773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14774   case $host_os in
14775   irix5* | nonstopux*)
14776     libsuff= shlibsuff=
14777     ;;
14778   *)
14779     case $LD in # libtool.m4 will add one of these switches to LD
14780     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14781       libsuff= shlibsuff= libmagic=32-bit;;
14782     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14783       libsuff=32 shlibsuff=N32 libmagic=N32;;
14784     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14785       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14786     *) libsuff= shlibsuff= libmagic=never-match;;
14787     esac
14788     ;;
14789   esac
14790   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14791   shlibpath_overrides_runpath=no
14792   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14793   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14794   hardcode_into_libs=yes
14795   ;;
14796
14797 # No shared lib support for Linux oldld, aout, or coff.
14798 linux*oldld* | linux*aout* | linux*coff*)
14799   dynamic_linker=no
14800   ;;
14801
14802 # This must be Linux ELF.
14803 linux*)
14804   version_type=linux
14805   need_lib_prefix=no
14806   need_version=no
14807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14808   soname_spec='${libname}${release}${shared_ext}$major'
14809   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14810   shlibpath_var=LD_LIBRARY_PATH
14811   shlibpath_overrides_runpath=no
14812   # This implies no fast_install, which is unacceptable.
14813   # Some rework will be needed to allow for fast_install
14814   # before this can be enabled.
14815   hardcode_into_libs=yes
14816
14817   # find out which ABI we are using
14818   libsuff=
14819   case "$host_cpu" in
14820   x86_64*|s390x*|powerpc64*)
14821     echo '#line 14821 "configure"' > conftest.$ac_ext
14822     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14823   (eval $ac_compile) 2>&5
14824   ac_status=$?
14825   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826   (exit $ac_status); }; then
14827       case `/usr/bin/file conftest.$ac_objext` in
14828       *64-bit*)
14829         libsuff=64
14830         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14831         ;;
14832       esac
14833     fi
14834     rm -rf conftest*
14835     ;;
14836   esac
14837
14838   # Append ld.so.conf contents to the search path
14839   if test -f /etc/ld.so.conf; then
14840     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14841     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14842   fi
14843
14844   # We used to test for /lib/ld.so.1 and disable shared libraries on
14845   # powerpc, because MkLinux only supported shared libraries with the
14846   # GNU dynamic linker.  Since this was broken with cross compilers,
14847   # most powerpc-linux boxes support dynamic linking these days and
14848   # people can always --disable-shared, the test was removed, and we
14849   # assume the GNU/Linux dynamic linker is in use.
14850   dynamic_linker='GNU/Linux ld.so'
14851   ;;
14852
14853 knetbsd*-gnu)
14854   version_type=linux
14855   need_lib_prefix=no
14856   need_version=no
14857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14858   soname_spec='${libname}${release}${shared_ext}$major'
14859   shlibpath_var=LD_LIBRARY_PATH
14860   shlibpath_overrides_runpath=no
14861   hardcode_into_libs=yes
14862   dynamic_linker='GNU ld.so'
14863   ;;
14864
14865 netbsd*)
14866   version_type=sunos
14867   need_lib_prefix=no
14868   need_version=no
14869   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14870     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14871     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14872     dynamic_linker='NetBSD (a.out) ld.so'
14873   else
14874     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14875     soname_spec='${libname}${release}${shared_ext}$major'
14876     dynamic_linker='NetBSD ld.elf_so'
14877   fi
14878   shlibpath_var=LD_LIBRARY_PATH
14879   shlibpath_overrides_runpath=yes
14880   hardcode_into_libs=yes
14881   ;;
14882
14883 newsos6)
14884   version_type=linux
14885   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14886   shlibpath_var=LD_LIBRARY_PATH
14887   shlibpath_overrides_runpath=yes
14888   ;;
14889
14890 nto-qnx*)
14891   version_type=linux
14892   need_lib_prefix=no
14893   need_version=no
14894   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895   soname_spec='${libname}${release}${shared_ext}$major'
14896   shlibpath_var=LD_LIBRARY_PATH
14897   shlibpath_overrides_runpath=yes
14898   ;;
14899
14900 openbsd*)
14901   version_type=sunos
14902   sys_lib_dlsearch_path_spec="/usr/lib"
14903   need_lib_prefix=no
14904   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14905   case $host_os in
14906     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14907     *)                         need_version=no  ;;
14908   esac
14909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14910   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14911   shlibpath_var=LD_LIBRARY_PATH
14912   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14913     case $host_os in
14914       openbsd2.[89] | openbsd2.[89].*)
14915         shlibpath_overrides_runpath=no
14916         ;;
14917       *)
14918         shlibpath_overrides_runpath=yes
14919         ;;
14920       esac
14921   else
14922     shlibpath_overrides_runpath=yes
14923   fi
14924   ;;
14925
14926 os2*)
14927   libname_spec='$name'
14928   shrext_cmds=".dll"
14929   need_lib_prefix=no
14930   library_names_spec='$libname${shared_ext} $libname.a'
14931   dynamic_linker='OS/2 ld.exe'
14932   shlibpath_var=LIBPATH
14933   ;;
14934
14935 osf3* | osf4* | osf5*)
14936   version_type=osf
14937   need_lib_prefix=no
14938   need_version=no
14939   soname_spec='${libname}${release}${shared_ext}$major'
14940   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14941   shlibpath_var=LD_LIBRARY_PATH
14942   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14943   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14944   ;;
14945
14946 solaris*)
14947   version_type=linux
14948   need_lib_prefix=no
14949   need_version=no
14950   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14951   soname_spec='${libname}${release}${shared_ext}$major'
14952   shlibpath_var=LD_LIBRARY_PATH
14953   shlibpath_overrides_runpath=yes
14954   hardcode_into_libs=yes
14955   # ldd complains unless libraries are executable
14956   postinstall_cmds='chmod +x $lib'
14957   ;;
14958
14959 sunos4*)
14960   version_type=sunos
14961   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14962   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14963   shlibpath_var=LD_LIBRARY_PATH
14964   shlibpath_overrides_runpath=yes
14965   if test "$with_gnu_ld" = yes; then
14966     need_lib_prefix=no
14967   fi
14968   need_version=yes
14969   ;;
14970
14971 sysv4 | sysv4.3*)
14972   version_type=linux
14973   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14974   soname_spec='${libname}${release}${shared_ext}$major'
14975   shlibpath_var=LD_LIBRARY_PATH
14976   case $host_vendor in
14977     sni)
14978       shlibpath_overrides_runpath=no
14979       need_lib_prefix=no
14980       export_dynamic_flag_spec='${wl}-Blargedynsym'
14981       runpath_var=LD_RUN_PATH
14982       ;;
14983     siemens)
14984       need_lib_prefix=no
14985       ;;
14986     motorola)
14987       need_lib_prefix=no
14988       need_version=no
14989       shlibpath_overrides_runpath=no
14990       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14991       ;;
14992   esac
14993   ;;
14994
14995 sysv4*MP*)
14996   if test -d /usr/nec ;then
14997     version_type=linux
14998     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14999     soname_spec='$libname${shared_ext}.$major'
15000     shlibpath_var=LD_LIBRARY_PATH
15001   fi
15002   ;;
15003
15004 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15005   version_type=freebsd-elf
15006   need_lib_prefix=no
15007   need_version=no
15008   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15009   soname_spec='${libname}${release}${shared_ext}$major'
15010   shlibpath_var=LD_LIBRARY_PATH
15011   hardcode_into_libs=yes
15012   if test "$with_gnu_ld" = yes; then
15013     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15014     shlibpath_overrides_runpath=no
15015   else
15016     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15017     shlibpath_overrides_runpath=yes
15018     case $host_os in
15019       sco3.2v5*)
15020         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15021         ;;
15022     esac
15023   fi
15024   sys_lib_dlsearch_path_spec='/usr/lib'
15025   ;;
15026
15027 uts4*)
15028   version_type=linux
15029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15030   soname_spec='${libname}${release}${shared_ext}$major'
15031   shlibpath_var=LD_LIBRARY_PATH
15032   ;;
15033
15034 *)
15035   dynamic_linker=no
15036   ;;
15037 esac
15038 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15039 echo "${ECHO_T}$dynamic_linker" >&6
15040 test "$dynamic_linker" = no && can_build_shared=no
15041
15042 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15043 if test "$GCC" = yes; then
15044   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15045 fi
15046
15047 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15048 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15049 hardcode_action_F77=
15050 if test -n "$hardcode_libdir_flag_spec_F77" || \
15051    test -n "$runpath_var_F77" || \
15052    test "X$hardcode_automatic_F77" = "Xyes" ; then
15053
15054   # We can hardcode non-existant directories.
15055   if test "$hardcode_direct_F77" != no &&
15056      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15057      # have to relink, otherwise we might link with an installed library
15058      # when we should be linking with a yet-to-be-installed one
15059      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15060      test "$hardcode_minus_L_F77" != no; then
15061     # Linking always hardcodes the temporary library directory.
15062     hardcode_action_F77=relink
15063   else
15064     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15065     hardcode_action_F77=immediate
15066   fi
15067 else
15068   # We cannot hardcode anything, or else we can only hardcode existing
15069   # directories.
15070   hardcode_action_F77=unsupported
15071 fi
15072 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15073 echo "${ECHO_T}$hardcode_action_F77" >&6
15074
15075 if test "$hardcode_action_F77" = relink; then
15076   # Fast installation is not supported
15077   enable_fast_install=no
15078 elif test "$shlibpath_overrides_runpath" = yes ||
15079      test "$enable_shared" = no; then
15080   # Fast installation is not necessary
15081   enable_fast_install=needless
15082 fi
15083
15084
15085 # The else clause should only fire when bootstrapping the
15086 # libtool distribution, otherwise you forgot to ship ltmain.sh
15087 # with your package, and you will get complaints that there are
15088 # no rules to generate ltmain.sh.
15089 if test -f "$ltmain"; then
15090   # See if we are running on zsh, and set the options which allow our commands through
15091   # without removal of \ escapes.
15092   if test -n "${ZSH_VERSION+set}" ; then
15093     setopt NO_GLOB_SUBST
15094   fi
15095   # Now quote all the things that may contain metacharacters while being
15096   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15097   # variables and quote the copies for generation of the libtool script.
15098   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15099     SED SHELL STRIP \
15100     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15101     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15102     deplibs_check_method reload_flag reload_cmds need_locks \
15103     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15104     lt_cv_sys_global_symbol_to_c_name_address \
15105     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15106     old_postinstall_cmds old_postuninstall_cmds \
15107     compiler_F77 \
15108     CC_F77 \
15109     LD_F77 \
15110     lt_prog_compiler_wl_F77 \
15111     lt_prog_compiler_pic_F77 \
15112     lt_prog_compiler_static_F77 \
15113     lt_prog_compiler_no_builtin_flag_F77 \
15114     export_dynamic_flag_spec_F77 \
15115     thread_safe_flag_spec_F77 \
15116     whole_archive_flag_spec_F77 \
15117     enable_shared_with_static_runtimes_F77 \
15118     old_archive_cmds_F77 \
15119     old_archive_from_new_cmds_F77 \
15120     predep_objects_F77 \
15121     postdep_objects_F77 \
15122     predeps_F77 \
15123     postdeps_F77 \
15124     compiler_lib_search_path_F77 \
15125     archive_cmds_F77 \
15126     archive_expsym_cmds_F77 \
15127     postinstall_cmds_F77 \
15128     postuninstall_cmds_F77 \
15129     old_archive_from_expsyms_cmds_F77 \
15130     allow_undefined_flag_F77 \
15131     no_undefined_flag_F77 \
15132     export_symbols_cmds_F77 \
15133     hardcode_libdir_flag_spec_F77 \
15134     hardcode_libdir_flag_spec_ld_F77 \
15135     hardcode_libdir_separator_F77 \
15136     hardcode_automatic_F77 \
15137     module_cmds_F77 \
15138     module_expsym_cmds_F77 \
15139     lt_cv_prog_compiler_c_o_F77 \
15140     exclude_expsyms_F77 \
15141     include_expsyms_F77; do
15142
15143     case $var in
15144     old_archive_cmds_F77 | \
15145     old_archive_from_new_cmds_F77 | \
15146     archive_cmds_F77 | \
15147     archive_expsym_cmds_F77 | \
15148     module_cmds_F77 | \
15149     module_expsym_cmds_F77 | \
15150     old_archive_from_expsyms_cmds_F77 | \
15151     export_symbols_cmds_F77 | \
15152     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15153     postinstall_cmds | postuninstall_cmds | \
15154     old_postinstall_cmds | old_postuninstall_cmds | \
15155     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15156       # Double-quote double-evaled strings.
15157       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15158       ;;
15159     *)
15160       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15161       ;;
15162     esac
15163   done
15164
15165   case $lt_echo in
15166   *'\$0 --fallback-echo"')
15167     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15168     ;;
15169   esac
15170
15171 cfgfile="$ofile"
15172
15173   cat <<__EOF__ >> "$cfgfile"
15174 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15175
15176 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15177
15178 # Shell to use when invoking shell scripts.
15179 SHELL=$lt_SHELL
15180
15181 # Whether or not to build shared libraries.
15182 build_libtool_libs=$enable_shared
15183
15184 # Whether or not to build static libraries.
15185 build_old_libs=$enable_static
15186
15187 # Whether or not to add -lc for building shared libraries.
15188 build_libtool_need_lc=$archive_cmds_need_lc_F77
15189
15190 # Whether or not to disallow shared libs when runtime libs are static
15191 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15192
15193 # Whether or not to optimize for fast installation.
15194 fast_install=$enable_fast_install
15195
15196 # The host system.
15197 host_alias=$host_alias
15198 host=$host
15199 host_os=$host_os
15200
15201 # The build system.
15202 build_alias=$build_alias
15203 build=$build
15204 build_os=$build_os
15205
15206 # An echo program that does not interpret backslashes.
15207 echo=$lt_echo
15208
15209 # The archiver.
15210 AR=$lt_AR
15211 AR_FLAGS=$lt_AR_FLAGS
15212
15213 # A C compiler.
15214 LTCC=$lt_LTCC
15215
15216 # LTCC compiler flags.
15217 LTCFLAGS=$lt_LTCFLAGS
15218
15219 # A language-specific compiler.
15220 CC=$lt_compiler_F77
15221
15222 # Is the compiler the GNU C compiler?
15223 with_gcc=$GCC_F77
15224
15225 # An ERE matcher.
15226 EGREP=$lt_EGREP
15227
15228 # The linker used to build libraries.
15229 LD=$lt_LD_F77
15230
15231 # Whether we need hard or soft links.
15232 LN_S=$lt_LN_S
15233
15234 # A BSD-compatible nm program.
15235 NM=$lt_NM
15236
15237 # A symbol stripping program
15238 STRIP=$lt_STRIP
15239
15240 # Used to examine libraries when file_magic_cmd begins "file"
15241 MAGIC_CMD=$MAGIC_CMD
15242
15243 # Used on cygwin: DLL creation program.
15244 DLLTOOL="$DLLTOOL"
15245
15246 # Used on cygwin: object dumper.
15247 OBJDUMP="$OBJDUMP"
15248
15249 # Used on cygwin: assembler.
15250 AS="$AS"
15251
15252 # The name of the directory that contains temporary libtool files.
15253 objdir=$objdir
15254
15255 # How to create reloadable object files.
15256 reload_flag=$lt_reload_flag
15257 reload_cmds=$lt_reload_cmds
15258
15259 # How to pass a linker flag through the compiler.
15260 wl=$lt_lt_prog_compiler_wl_F77
15261
15262 # Object file suffix (normally "o").
15263 objext="$ac_objext"
15264
15265 # Old archive suffix (normally "a").
15266 libext="$libext"
15267
15268 # Shared library suffix (normally ".so").
15269 shrext_cmds='$shrext_cmds'
15270
15271 # Executable file suffix (normally "").
15272 exeext="$exeext"
15273
15274 # Additional compiler flags for building library objects.
15275 pic_flag=$lt_lt_prog_compiler_pic_F77
15276 pic_mode=$pic_mode
15277
15278 # What is the maximum length of a command?
15279 max_cmd_len=$lt_cv_sys_max_cmd_len
15280
15281 # Does compiler simultaneously support -c and -o options?
15282 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15283
15284 # Must we lock files when doing compilation?
15285 need_locks=$lt_need_locks
15286
15287 # Do we need the lib prefix for modules?
15288 need_lib_prefix=$need_lib_prefix
15289
15290 # Do we need a version for libraries?
15291 need_version=$need_version
15292
15293 # Whether dlopen is supported.
15294 dlopen_support=$enable_dlopen
15295
15296 # Whether dlopen of programs is supported.
15297 dlopen_self=$enable_dlopen_self
15298
15299 # Whether dlopen of statically linked programs is supported.
15300 dlopen_self_static=$enable_dlopen_self_static
15301
15302 # Compiler flag to prevent dynamic linking.
15303 link_static_flag=$lt_lt_prog_compiler_static_F77
15304
15305 # Compiler flag to turn off builtin functions.
15306 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15307
15308 # Compiler flag to allow reflexive dlopens.
15309 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15310
15311 # Compiler flag to generate shared objects directly from archives.
15312 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15313
15314 # Compiler flag to generate thread-safe objects.
15315 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15316
15317 # Library versioning type.
15318 version_type=$version_type
15319
15320 # Format of library name prefix.
15321 libname_spec=$lt_libname_spec
15322
15323 # List of archive names.  First name is the real one, the rest are links.
15324 # The last name is the one that the linker finds with -lNAME.
15325 library_names_spec=$lt_library_names_spec
15326
15327 # The coded name of the library, if different from the real name.
15328 soname_spec=$lt_soname_spec
15329
15330 # Commands used to build and install an old-style archive.
15331 RANLIB=$lt_RANLIB
15332 old_archive_cmds=$lt_old_archive_cmds_F77
15333 old_postinstall_cmds=$lt_old_postinstall_cmds
15334 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15335
15336 # Create an old-style archive from a shared archive.
15337 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15338
15339 # Create a temporary old-style archive to link instead of a shared archive.
15340 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15341
15342 # Commands used to build and install a shared archive.
15343 archive_cmds=$lt_archive_cmds_F77
15344 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15345 postinstall_cmds=$lt_postinstall_cmds
15346 postuninstall_cmds=$lt_postuninstall_cmds
15347
15348 # Commands used to build a loadable module (assumed same as above if empty)
15349 module_cmds=$lt_module_cmds_F77
15350 module_expsym_cmds=$lt_module_expsym_cmds_F77
15351
15352 # Commands to strip libraries.
15353 old_striplib=$lt_old_striplib
15354 striplib=$lt_striplib
15355
15356 # Dependencies to place before the objects being linked to create a
15357 # shared library.
15358 predep_objects=$lt_predep_objects_F77
15359
15360 # Dependencies to place after the objects being linked to create a
15361 # shared library.
15362 postdep_objects=$lt_postdep_objects_F77
15363
15364 # Dependencies to place before the objects being linked to create a
15365 # shared library.
15366 predeps=$lt_predeps_F77
15367
15368 # Dependencies to place after the objects being linked to create a
15369 # shared library.
15370 postdeps=$lt_postdeps_F77
15371
15372 # The library search path used internally by the compiler when linking
15373 # a shared library.
15374 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15375
15376 # Method to check whether dependent libraries are shared objects.
15377 deplibs_check_method=$lt_deplibs_check_method
15378
15379 # Command to use when deplibs_check_method == file_magic.
15380 file_magic_cmd=$lt_file_magic_cmd
15381
15382 # Flag that allows shared libraries with undefined symbols to be built.
15383 allow_undefined_flag=$lt_allow_undefined_flag_F77
15384
15385 # Flag that forces no undefined symbols.
15386 no_undefined_flag=$lt_no_undefined_flag_F77
15387
15388 # Commands used to finish a libtool library installation in a directory.
15389 finish_cmds=$lt_finish_cmds
15390
15391 # Same as above, but a single script fragment to be evaled but not shown.
15392 finish_eval=$lt_finish_eval
15393
15394 # Take the output of nm and produce a listing of raw symbols and C names.
15395 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15396
15397 # Transform the output of nm in a proper C declaration
15398 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15399
15400 # Transform the output of nm in a C name address pair
15401 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15402
15403 # This is the shared library runtime path variable.
15404 runpath_var=$runpath_var
15405
15406 # This is the shared library path variable.
15407 shlibpath_var=$shlibpath_var
15408
15409 # Is shlibpath searched before the hard-coded library search path?
15410 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15411
15412 # How to hardcode a shared library path into an executable.
15413 hardcode_action=$hardcode_action_F77
15414
15415 # Whether we should hardcode library paths into libraries.
15416 hardcode_into_libs=$hardcode_into_libs
15417
15418 # Flag to hardcode \$libdir into a binary during linking.
15419 # This must work even if \$libdir does not exist.
15420 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15421
15422 # If ld is used when linking, flag to hardcode \$libdir into
15423 # a binary during linking. This must work even if \$libdir does
15424 # not exist.
15425 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15426
15427 # Whether we need a single -rpath flag with a separated argument.
15428 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15429
15430 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15431 # resulting binary.
15432 hardcode_direct=$hardcode_direct_F77
15433
15434 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15435 # resulting binary.
15436 hardcode_minus_L=$hardcode_minus_L_F77
15437
15438 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15439 # the resulting binary.
15440 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15441
15442 # Set to yes if building a shared library automatically hardcodes DIR into the library
15443 # and all subsequent libraries and executables linked against it.
15444 hardcode_automatic=$hardcode_automatic_F77
15445
15446 # Variables whose values should be saved in libtool wrapper scripts and
15447 # restored at relink time.
15448 variables_saved_for_relink="$variables_saved_for_relink"
15449
15450 # Whether libtool must link a program against all its dependency libraries.
15451 link_all_deplibs=$link_all_deplibs_F77
15452
15453 # Compile-time system search path for libraries
15454 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15455
15456 # Run-time system search path for libraries
15457 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15458
15459 # Fix the shell variable \$srcfile for the compiler.
15460 fix_srcfile_path="$fix_srcfile_path_F77"
15461
15462 # Set to yes if exported symbols are required.
15463 always_export_symbols=$always_export_symbols_F77
15464
15465 # The commands to list exported symbols.
15466 export_symbols_cmds=$lt_export_symbols_cmds_F77
15467
15468 # The commands to extract the exported symbol list from a shared archive.
15469 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15470
15471 # Symbols that should not be listed in the preloaded symbols.
15472 exclude_expsyms=$lt_exclude_expsyms_F77
15473
15474 # Symbols that must always be exported.
15475 include_expsyms=$lt_include_expsyms_F77
15476
15477 # ### END LIBTOOL TAG CONFIG: $tagname
15478
15479 __EOF__
15480
15481
15482 else
15483   # If there is no Makefile yet, we rely on a make rule to execute
15484   # `config.status --recheck' to rerun these tests and create the
15485   # libtool script then.
15486   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15487   if test -f "$ltmain_in"; then
15488     test -f Makefile && make "$ltmain"
15489   fi
15490 fi
15491
15492
15493 ac_ext=c
15494 ac_cpp='$CPP $CPPFLAGS'
15495 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15496 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15497 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15498
15499 CC="$lt_save_CC"
15500
15501         else
15502           tagname=""
15503         fi
15504         ;;
15505
15506       GCJ)
15507         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15508
15509
15510
15511 # Source file extension for Java test sources.
15512 ac_ext=java
15513
15514 # Object file extension for compiled Java test sources.
15515 objext=o
15516 objext_GCJ=$objext
15517
15518 # Code to be used in simple compile tests
15519 lt_simple_compile_test_code="class foo {}\n"
15520
15521 # Code to be used in simple link tests
15522 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15523
15524 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15525
15526 # If no C compiler was specified, use CC.
15527 LTCC=${LTCC-"$CC"}
15528
15529 # If no C compiler flags were specified, use CFLAGS.
15530 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15531
15532 # Allow CC to be a program name with arguments.
15533 compiler=$CC
15534
15535
15536 # save warnings/boilerplate of simple test code
15537 ac_outfile=conftest.$ac_objext
15538 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15539 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15540 _lt_compiler_boilerplate=`cat conftest.err`
15541 $rm conftest*
15542
15543 ac_outfile=conftest.$ac_objext
15544 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15545 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15546 _lt_linker_boilerplate=`cat conftest.err`
15547 $rm conftest*
15548
15549
15550 # Allow CC to be a program name with arguments.
15551 lt_save_CC="$CC"
15552 CC=${GCJ-"gcj"}
15553 compiler=$CC
15554 compiler_GCJ=$CC
15555 for cc_temp in $compiler""; do
15556   case $cc_temp in
15557     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15558     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15559     \-*) ;;
15560     *) break;;
15561   esac
15562 done
15563 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15564
15565
15566 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15567 archive_cmds_need_lc_GCJ=no
15568
15569 old_archive_cmds_GCJ=$old_archive_cmds
15570
15571
15572 lt_prog_compiler_no_builtin_flag_GCJ=
15573
15574 if test "$GCC" = yes; then
15575   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15576
15577
15578 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15579 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15580 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15581   echo $ECHO_N "(cached) $ECHO_C" >&6
15582 else
15583   lt_cv_prog_compiler_rtti_exceptions=no
15584   ac_outfile=conftest.$ac_objext
15585    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15586    lt_compiler_flag="-fno-rtti -fno-exceptions"
15587    # Insert the option either (1) after the last *FLAGS variable, or
15588    # (2) before a word containing "conftest.", or (3) at the end.
15589    # Note that $ac_compile itself does not contain backslashes and begins
15590    # with a dollar sign (not a hyphen), so the echo should work correctly.
15591    # The option is referenced via a variable to avoid confusing sed.
15592    lt_compile=`echo "$ac_compile" | $SED \
15593    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15594    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15595    -e 's:$: $lt_compiler_flag:'`
15596    (eval echo "\"\$as_me:15596: $lt_compile\"" >&5)
15597    (eval "$lt_compile" 2>conftest.err)
15598    ac_status=$?
15599    cat conftest.err >&5
15600    echo "$as_me:15600: \$? = $ac_status" >&5
15601    if (exit $ac_status) && test -s "$ac_outfile"; then
15602      # The compiler can only warn and ignore the option if not recognized
15603      # So say no if there are warnings other than the usual output.
15604      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15605      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15606      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15607        lt_cv_prog_compiler_rtti_exceptions=yes
15608      fi
15609    fi
15610    $rm conftest*
15611
15612 fi
15613 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15614 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15615
15616 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15617     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15618 else
15619     :
15620 fi
15621
15622 fi
15623
15624 lt_prog_compiler_wl_GCJ=
15625 lt_prog_compiler_pic_GCJ=
15626 lt_prog_compiler_static_GCJ=
15627
15628 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15629 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15630
15631   if test "$GCC" = yes; then
15632     lt_prog_compiler_wl_GCJ='-Wl,'
15633     lt_prog_compiler_static_GCJ='-static'
15634
15635     case $host_os in
15636       aix*)
15637       # All AIX code is PIC.
15638       if test "$host_cpu" = ia64; then
15639         # AIX 5 now supports IA64 processor
15640         lt_prog_compiler_static_GCJ='-Bstatic'
15641       fi
15642       ;;
15643
15644     amigaos*)
15645       # FIXME: we need at least 68020 code to build shared libraries, but
15646       # adding the `-m68020' flag to GCC prevents building anything better,
15647       # like `-m68040'.
15648       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15649       ;;
15650
15651     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15652       # PIC is the default for these OSes.
15653       ;;
15654
15655     mingw* | pw32* | os2*)
15656       # This hack is so that the source file can tell whether it is being
15657       # built for inclusion in a dll (and should export symbols for example).
15658       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15659       ;;
15660
15661     darwin* | rhapsody*)
15662       # PIC is the default on this platform
15663       # Common symbols not allowed in MH_DYLIB files
15664       lt_prog_compiler_pic_GCJ='-fno-common'
15665       ;;
15666
15667     interix3*)
15668       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15669       # Instead, we relocate shared libraries at runtime.
15670       ;;
15671
15672     msdosdjgpp*)
15673       # Just because we use GCC doesn't mean we suddenly get shared libraries
15674       # on systems that don't support them.
15675       lt_prog_compiler_can_build_shared_GCJ=no
15676       enable_shared=no
15677       ;;
15678
15679     sysv4*MP*)
15680       if test -d /usr/nec; then
15681         lt_prog_compiler_pic_GCJ=-Kconform_pic
15682       fi
15683       ;;
15684
15685     hpux*)
15686       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15687       # not for PA HP-UX.
15688       case $host_cpu in
15689       hppa*64*|ia64*)
15690         # +Z the default
15691         ;;
15692       *)
15693         lt_prog_compiler_pic_GCJ='-fPIC'
15694         ;;
15695       esac
15696       ;;
15697
15698     *)
15699       lt_prog_compiler_pic_GCJ='-fPIC'
15700       ;;
15701     esac
15702   else
15703     # PORTME Check for flag to pass linker flags through the system compiler.
15704     case $host_os in
15705     aix*)
15706       lt_prog_compiler_wl_GCJ='-Wl,'
15707       if test "$host_cpu" = ia64; then
15708         # AIX 5 now supports IA64 processor
15709         lt_prog_compiler_static_GCJ='-Bstatic'
15710       else
15711         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15712       fi
15713       ;;
15714       darwin*)
15715         # PIC is the default on this platform
15716         # Common symbols not allowed in MH_DYLIB files
15717        case $cc_basename in
15718          xlc*)
15719          lt_prog_compiler_pic_GCJ='-qnocommon'
15720          lt_prog_compiler_wl_GCJ='-Wl,'
15721          ;;
15722        esac
15723        ;;
15724
15725     mingw* | pw32* | os2*)
15726       # This hack is so that the source file can tell whether it is being
15727       # built for inclusion in a dll (and should export symbols for example).
15728       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15729       ;;
15730
15731     hpux9* | hpux10* | hpux11*)
15732       lt_prog_compiler_wl_GCJ='-Wl,'
15733       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15734       # not for PA HP-UX.
15735       case $host_cpu in
15736       hppa*64*|ia64*)
15737         # +Z the default
15738         ;;
15739       *)
15740         lt_prog_compiler_pic_GCJ='+Z'
15741         ;;
15742       esac
15743       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15744       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15745       ;;
15746
15747     irix5* | irix6* | nonstopux*)
15748       lt_prog_compiler_wl_GCJ='-Wl,'
15749       # PIC (with -KPIC) is the default.
15750       lt_prog_compiler_static_GCJ='-non_shared'
15751       ;;
15752
15753     newsos6)
15754       lt_prog_compiler_pic_GCJ='-KPIC'
15755       lt_prog_compiler_static_GCJ='-Bstatic'
15756       ;;
15757
15758     linux*)
15759       case $cc_basename in
15760       icc* | ecc*)
15761         lt_prog_compiler_wl_GCJ='-Wl,'
15762         lt_prog_compiler_pic_GCJ='-KPIC'
15763         lt_prog_compiler_static_GCJ='-static'
15764         ;;
15765       pgcc* | pgf77* | pgf90* | pgf95*)
15766         # Portland Group compilers (*not* the Pentium gcc compiler,
15767         # which looks to be a dead project)
15768         lt_prog_compiler_wl_GCJ='-Wl,'
15769         lt_prog_compiler_pic_GCJ='-fpic'
15770         lt_prog_compiler_static_GCJ='-Bstatic'
15771         ;;
15772       ccc*)
15773         lt_prog_compiler_wl_GCJ='-Wl,'
15774         # All Alpha code is PIC.
15775         lt_prog_compiler_static_GCJ='-non_shared'
15776         ;;
15777       esac
15778       ;;
15779
15780     osf3* | osf4* | osf5*)
15781       lt_prog_compiler_wl_GCJ='-Wl,'
15782       # All OSF/1 code is PIC.
15783       lt_prog_compiler_static_GCJ='-non_shared'
15784       ;;
15785
15786     solaris*)
15787       lt_prog_compiler_pic_GCJ='-KPIC'
15788       lt_prog_compiler_static_GCJ='-Bstatic'
15789       case $cc_basename in
15790       f77* | f90* | f95*)
15791         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15792       *)
15793         lt_prog_compiler_wl_GCJ='-Wl,';;
15794       esac
15795       ;;
15796
15797     sunos4*)
15798       lt_prog_compiler_wl_GCJ='-Qoption ld '
15799       lt_prog_compiler_pic_GCJ='-PIC'
15800       lt_prog_compiler_static_GCJ='-Bstatic'
15801       ;;
15802
15803     sysv4 | sysv4.2uw2* | sysv4.3*)
15804       lt_prog_compiler_wl_GCJ='-Wl,'
15805       lt_prog_compiler_pic_GCJ='-KPIC'
15806       lt_prog_compiler_static_GCJ='-Bstatic'
15807       ;;
15808
15809     sysv4*MP*)
15810       if test -d /usr/nec ;then
15811         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15812         lt_prog_compiler_static_GCJ='-Bstatic'
15813       fi
15814       ;;
15815
15816     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15817       lt_prog_compiler_wl_GCJ='-Wl,'
15818       lt_prog_compiler_pic_GCJ='-KPIC'
15819       lt_prog_compiler_static_GCJ='-Bstatic'
15820       ;;
15821
15822     unicos*)
15823       lt_prog_compiler_wl_GCJ='-Wl,'
15824       lt_prog_compiler_can_build_shared_GCJ=no
15825       ;;
15826
15827     uts4*)
15828       lt_prog_compiler_pic_GCJ='-pic'
15829       lt_prog_compiler_static_GCJ='-Bstatic'
15830       ;;
15831
15832     *)
15833       lt_prog_compiler_can_build_shared_GCJ=no
15834       ;;
15835     esac
15836   fi
15837
15838 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15839 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15840
15841 #
15842 # Check to make sure the PIC flag actually works.
15843 #
15844 if test -n "$lt_prog_compiler_pic_GCJ"; then
15845
15846 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15847 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15848 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15849   echo $ECHO_N "(cached) $ECHO_C" >&6
15850 else
15851   lt_prog_compiler_pic_works_GCJ=no
15852   ac_outfile=conftest.$ac_objext
15853    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15854    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15855    # Insert the option either (1) after the last *FLAGS variable, or
15856    # (2) before a word containing "conftest.", or (3) at the end.
15857    # Note that $ac_compile itself does not contain backslashes and begins
15858    # with a dollar sign (not a hyphen), so the echo should work correctly.
15859    # The option is referenced via a variable to avoid confusing sed.
15860    lt_compile=`echo "$ac_compile" | $SED \
15861    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15862    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15863    -e 's:$: $lt_compiler_flag:'`
15864    (eval echo "\"\$as_me:15864: $lt_compile\"" >&5)
15865    (eval "$lt_compile" 2>conftest.err)
15866    ac_status=$?
15867    cat conftest.err >&5
15868    echo "$as_me:15868: \$? = $ac_status" >&5
15869    if (exit $ac_status) && test -s "$ac_outfile"; then
15870      # The compiler can only warn and ignore the option if not recognized
15871      # So say no if there are warnings other than the usual output.
15872      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15873      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15874      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15875        lt_prog_compiler_pic_works_GCJ=yes
15876      fi
15877    fi
15878    $rm conftest*
15879
15880 fi
15881 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15882 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15883
15884 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15885     case $lt_prog_compiler_pic_GCJ in
15886      "" | " "*) ;;
15887      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15888      esac
15889 else
15890     lt_prog_compiler_pic_GCJ=
15891      lt_prog_compiler_can_build_shared_GCJ=no
15892 fi
15893
15894 fi
15895 case $host_os in
15896   # For platforms which do not support PIC, -DPIC is meaningless:
15897   *djgpp*)
15898     lt_prog_compiler_pic_GCJ=
15899     ;;
15900   *)
15901     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15902     ;;
15903 esac
15904
15905 #
15906 # Check to make sure the static flag actually works.
15907 #
15908 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15909 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15910 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15911 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15912   echo $ECHO_N "(cached) $ECHO_C" >&6
15913 else
15914   lt_prog_compiler_static_works_GCJ=no
15915    save_LDFLAGS="$LDFLAGS"
15916    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15917    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15918    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15919      # The linker can only warn and ignore the option if not recognized
15920      # So say no if there are warnings
15921      if test -s conftest.err; then
15922        # Append any errors to the config.log.
15923        cat conftest.err 1>&5
15924        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15925        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15926        if diff conftest.exp conftest.er2 >/dev/null; then
15927          lt_prog_compiler_static_works_GCJ=yes
15928        fi
15929      else
15930        lt_prog_compiler_static_works_GCJ=yes
15931      fi
15932    fi
15933    $rm conftest*
15934    LDFLAGS="$save_LDFLAGS"
15935
15936 fi
15937 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15938 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15939
15940 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15941     :
15942 else
15943     lt_prog_compiler_static_GCJ=
15944 fi
15945
15946
15947 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15948 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15949 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15950   echo $ECHO_N "(cached) $ECHO_C" >&6
15951 else
15952   lt_cv_prog_compiler_c_o_GCJ=no
15953    $rm -r conftest 2>/dev/null
15954    mkdir conftest
15955    cd conftest
15956    mkdir out
15957    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15958
15959    lt_compiler_flag="-o out/conftest2.$ac_objext"
15960    # Insert the option either (1) after the last *FLAGS variable, or
15961    # (2) before a word containing "conftest.", or (3) at the end.
15962    # Note that $ac_compile itself does not contain backslashes and begins
15963    # with a dollar sign (not a hyphen), so the echo should work correctly.
15964    lt_compile=`echo "$ac_compile" | $SED \
15965    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15966    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15967    -e 's:$: $lt_compiler_flag:'`
15968    (eval echo "\"\$as_me:15968: $lt_compile\"" >&5)
15969    (eval "$lt_compile" 2>out/conftest.err)
15970    ac_status=$?
15971    cat out/conftest.err >&5
15972    echo "$as_me:15972: \$? = $ac_status" >&5
15973    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15974    then
15975      # The compiler can only warn and ignore the option if not recognized
15976      # So say no if there are warnings
15977      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15978      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15979      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15980        lt_cv_prog_compiler_c_o_GCJ=yes
15981      fi
15982    fi
15983    chmod u+w . 2>&5
15984    $rm conftest*
15985    # SGI C++ compiler will create directory out/ii_files/ for
15986    # template instantiation
15987    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15988    $rm out/* && rmdir out
15989    cd ..
15990    rmdir conftest
15991    $rm conftest*
15992
15993 fi
15994 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15995 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15996
15997
15998 hard_links="nottested"
15999 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16000   # do not overwrite the value of need_locks provided by the user
16001   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16002 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16003   hard_links=yes
16004   $rm conftest*
16005   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16006   touch conftest.a
16007   ln conftest.a conftest.b 2>&5 || hard_links=no
16008   ln conftest.a conftest.b 2>/dev/null && hard_links=no
16009   echo "$as_me:$LINENO: result: $hard_links" >&5
16010 echo "${ECHO_T}$hard_links" >&6
16011   if test "$hard_links" = no; then
16012     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16013 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16014     need_locks=warn
16015   fi
16016 else
16017   need_locks=no
16018 fi
16019
16020 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16021 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16022
16023   runpath_var=
16024   allow_undefined_flag_GCJ=
16025   enable_shared_with_static_runtimes_GCJ=no
16026   archive_cmds_GCJ=
16027   archive_expsym_cmds_GCJ=
16028   old_archive_From_new_cmds_GCJ=
16029   old_archive_from_expsyms_cmds_GCJ=
16030   export_dynamic_flag_spec_GCJ=
16031   whole_archive_flag_spec_GCJ=
16032   thread_safe_flag_spec_GCJ=
16033   hardcode_libdir_flag_spec_GCJ=
16034   hardcode_libdir_flag_spec_ld_GCJ=
16035   hardcode_libdir_separator_GCJ=
16036   hardcode_direct_GCJ=no
16037   hardcode_minus_L_GCJ=no
16038   hardcode_shlibpath_var_GCJ=unsupported
16039   link_all_deplibs_GCJ=unknown
16040   hardcode_automatic_GCJ=no
16041   module_cmds_GCJ=
16042   module_expsym_cmds_GCJ=
16043   always_export_symbols_GCJ=no
16044   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16045   # include_expsyms should be a list of space-separated symbols to be *always*
16046   # included in the symbol list
16047   include_expsyms_GCJ=
16048   # exclude_expsyms can be an extended regexp of symbols to exclude
16049   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16050   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16051   # as well as any symbol that contains `d'.
16052   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16053   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16054   # platforms (ab)use it in PIC code, but their linkers get confused if
16055   # the symbol is explicitly referenced.  Since portable code cannot
16056   # rely on this symbol name, it's probably fine to never include it in
16057   # preloaded symbol tables.
16058   extract_expsyms_cmds=
16059   # Just being paranoid about ensuring that cc_basename is set.
16060   for cc_temp in $compiler""; do
16061   case $cc_temp in
16062     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16063     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16064     \-*) ;;
16065     *) break;;
16066   esac
16067 done
16068 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16069
16070   case $host_os in
16071   cygwin* | mingw* | pw32*)
16072     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16073     # When not using gcc, we currently assume that we are using
16074     # Microsoft Visual C++.
16075     if test "$GCC" != yes; then
16076       with_gnu_ld=no
16077     fi
16078     ;;
16079   interix*)
16080     # we just hope/assume this is gcc and not c89 (= MSVC++)
16081     with_gnu_ld=yes
16082     ;;
16083   openbsd*)
16084     with_gnu_ld=no
16085     ;;
16086   esac
16087
16088   ld_shlibs_GCJ=yes
16089   if test "$with_gnu_ld" = yes; then
16090     # If archive_cmds runs LD, not CC, wlarc should be empty
16091     wlarc='${wl}'
16092
16093     # Set some defaults for GNU ld with shared library support. These
16094     # are reset later if shared libraries are not supported. Putting them
16095     # here allows them to be overridden if necessary.
16096     runpath_var=LD_RUN_PATH
16097     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16098     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16099     # ancient GNU ld didn't support --whole-archive et. al.
16100     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16101         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16102       else
16103         whole_archive_flag_spec_GCJ=
16104     fi
16105     supports_anon_versioning=no
16106     case `$LD -v 2>/dev/null` in
16107       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16108       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16109       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16110       *\ 2.11.*) ;; # other 2.11 versions
16111       *) supports_anon_versioning=yes ;;
16112     esac
16113
16114     # See if GNU ld supports shared libraries.
16115     case $host_os in
16116     aix3* | aix4* | aix5*)
16117       # On AIX/PPC, the GNU linker is very broken
16118       if test "$host_cpu" != ia64; then
16119         ld_shlibs_GCJ=no
16120         cat <<EOF 1>&2
16121
16122 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16123 *** to be unable to reliably create shared libraries on AIX.
16124 *** Therefore, libtool is disabling shared libraries support.  If you
16125 *** really care for shared libraries, you may want to modify your PATH
16126 *** so that a non-GNU linker is found, and then restart.
16127
16128 EOF
16129       fi
16130       ;;
16131
16132     amigaos*)
16133       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)'
16134       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16135       hardcode_minus_L_GCJ=yes
16136
16137       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16138       # that the semantics of dynamic libraries on AmigaOS, at least up
16139       # to version 4, is to share data among multiple programs linked
16140       # with the same dynamic library.  Since this doesn't match the
16141       # behavior of shared libraries on other platforms, we can't use
16142       # them.
16143       ld_shlibs_GCJ=no
16144       ;;
16145
16146     beos*)
16147       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16148         allow_undefined_flag_GCJ=unsupported
16149         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16150         # support --undefined.  This deserves some investigation.  FIXME
16151         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16152       else
16153         ld_shlibs_GCJ=no
16154       fi
16155       ;;
16156
16157     cygwin* | mingw* | pw32*)
16158       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16159       # as there is no search path for DLLs.
16160       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16161       allow_undefined_flag_GCJ=unsupported
16162       always_export_symbols_GCJ=no
16163       enable_shared_with_static_runtimes_GCJ=yes
16164       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16165
16166       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16167         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16168         # If the export-symbols file already is a .def file (1st line
16169         # is EXPORTS), use it as is; otherwise, prepend...
16170         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16171           cp $export_symbols $output_objdir/$soname.def;
16172         else
16173           echo EXPORTS > $output_objdir/$soname.def;
16174           cat $export_symbols >> $output_objdir/$soname.def;
16175         fi~
16176         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16177       else
16178         ld_shlibs_GCJ=no
16179       fi
16180       ;;
16181
16182     interix3*)
16183       hardcode_direct_GCJ=no
16184       hardcode_shlibpath_var_GCJ=no
16185       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16186       export_dynamic_flag_spec_GCJ='${wl}-E'
16187       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16188       # Instead, shared libraries are loaded at an image base (0x10000000 by
16189       # default) and relocated if they conflict, which is a slow very memory
16190       # consuming and fragmenting process.  To avoid this, we pick a random,
16191       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16192       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16193       archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16194       archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16195       ;;
16196
16197     linux*)
16198       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16199         tmp_addflag=
16200         case $cc_basename,$host_cpu in
16201         pgcc*)                          # Portland Group C compiler
16202           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16203           tmp_addflag=' $pic_flag'
16204           ;;
16205         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16206           whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16207           tmp_addflag=' $pic_flag -Mnomain' ;;
16208         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16209           tmp_addflag=' -i_dynamic' ;;
16210         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16211           tmp_addflag=' -i_dynamic -nofor_main' ;;
16212         ifc* | ifort*)                  # Intel Fortran compiler
16213           tmp_addflag=' -nofor_main' ;;
16214         esac
16215         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16216
16217         if test $supports_anon_versioning = yes; then
16218           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16219   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16220   $echo "local: *; };" >> $output_objdir/$libname.ver~
16221           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16222         fi
16223       else
16224         ld_shlibs_GCJ=no
16225       fi
16226       ;;
16227
16228     netbsd*)
16229       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16230         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16231         wlarc=
16232       else
16233         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16234         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16235       fi
16236       ;;
16237
16238     solaris*)
16239       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16240         ld_shlibs_GCJ=no
16241         cat <<EOF 1>&2
16242
16243 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16244 *** create shared libraries on Solaris systems.  Therefore, libtool
16245 *** is disabling shared libraries support.  We urge you to upgrade GNU
16246 *** binutils to release 2.9.1 or newer.  Another option is to modify
16247 *** your PATH or compiler configuration so that the native linker is
16248 *** used, and then restart.
16249
16250 EOF
16251       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16252         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16253         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16254       else
16255         ld_shlibs_GCJ=no
16256       fi
16257       ;;
16258
16259     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16260       case `$LD -v 2>&1` in
16261         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16262         ld_shlibs_GCJ=no
16263         cat <<_LT_EOF 1>&2
16264
16265 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16266 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16267 *** is disabling shared libraries support.  We urge you to upgrade GNU
16268 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16269 *** your PATH or compiler configuration so that the native linker is
16270 *** used, and then restart.
16271
16272 _LT_EOF
16273         ;;
16274         *)
16275           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16276             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16277             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16278             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16279           else
16280             ld_shlibs_GCJ=no
16281           fi
16282         ;;
16283       esac
16284       ;;
16285
16286     sunos4*)
16287       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16288       wlarc=
16289       hardcode_direct_GCJ=yes
16290       hardcode_shlibpath_var_GCJ=no
16291       ;;
16292
16293     *)
16294       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16295         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16296         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16297       else
16298         ld_shlibs_GCJ=no
16299       fi
16300       ;;
16301     esac
16302
16303     if test "$ld_shlibs_GCJ" = no; then
16304       runpath_var=
16305       hardcode_libdir_flag_spec_GCJ=
16306       export_dynamic_flag_spec_GCJ=
16307       whole_archive_flag_spec_GCJ=
16308     fi
16309   else
16310     # PORTME fill in a description of your system's linker (not GNU ld)
16311     case $host_os in
16312     aix3*)
16313       allow_undefined_flag_GCJ=unsupported
16314       always_export_symbols_GCJ=yes
16315       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'
16316       # Note: this linker hardcodes the directories in LIBPATH if there
16317       # are no directories specified by -L.
16318       hardcode_minus_L_GCJ=yes
16319       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16320         # Neither direct hardcoding nor static linking is supported with a
16321         # broken collect2.
16322         hardcode_direct_GCJ=unsupported
16323       fi
16324       ;;
16325
16326     aix4* | aix5*)
16327       if test "$host_cpu" = ia64; then
16328         # On IA64, the linker does run time linking by default, so we don't
16329         # have to do anything special.
16330         aix_use_runtimelinking=no
16331         exp_sym_flag='-Bexport'
16332         no_entry_flag=""
16333       else
16334         # If we're using GNU nm, then we don't want the "-C" option.
16335         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16336         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16337           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'
16338         else
16339           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'
16340         fi
16341         aix_use_runtimelinking=no
16342
16343         # Test if we are trying to use run time linking or normal
16344         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16345         # need to do runtime linking.
16346         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16347           for ld_flag in $LDFLAGS; do
16348           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16349             aix_use_runtimelinking=yes
16350             break
16351           fi
16352           done
16353           ;;
16354         esac
16355
16356         exp_sym_flag='-bexport'
16357         no_entry_flag='-bnoentry'
16358       fi
16359
16360       # When large executables or shared objects are built, AIX ld can
16361       # have problems creating the table of contents.  If linking a library
16362       # or program results in "error TOC overflow" add -mminimal-toc to
16363       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16364       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16365
16366       archive_cmds_GCJ=''
16367       hardcode_direct_GCJ=yes
16368       hardcode_libdir_separator_GCJ=':'
16369       link_all_deplibs_GCJ=yes
16370
16371       if test "$GCC" = yes; then
16372         case $host_os in aix4.[012]|aix4.[012].*)
16373         # We only want to do this on AIX 4.2 and lower, the check
16374         # below for broken collect2 doesn't work under 4.3+
16375           collect2name=`${CC} -print-prog-name=collect2`
16376           if test -f "$collect2name" && \
16377            strings "$collect2name" | grep resolve_lib_name >/dev/null
16378           then
16379           # We have reworked collect2
16380           hardcode_direct_GCJ=yes
16381           else
16382           # We have old collect2
16383           hardcode_direct_GCJ=unsupported
16384           # It fails to find uninstalled libraries when the uninstalled
16385           # path is not listed in the libpath.  Setting hardcode_minus_L
16386           # to unsupported forces relinking
16387           hardcode_minus_L_GCJ=yes
16388           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16389           hardcode_libdir_separator_GCJ=
16390           fi
16391           ;;
16392         esac
16393         shared_flag='-shared'
16394         if test "$aix_use_runtimelinking" = yes; then
16395           shared_flag="$shared_flag "'${wl}-G'
16396         fi
16397       else
16398         # not using gcc
16399         if test "$host_cpu" = ia64; then
16400         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16401         # chokes on -Wl,-G. The following line is correct:
16402           shared_flag='-G'
16403         else
16404           if test "$aix_use_runtimelinking" = yes; then
16405             shared_flag='${wl}-G'
16406           else
16407             shared_flag='${wl}-bM:SRE'
16408           fi
16409         fi
16410       fi
16411
16412       # It seems that -bexpall does not export symbols beginning with
16413       # underscore (_), so it is better to generate a list of symbols to export.
16414       always_export_symbols_GCJ=yes
16415       if test "$aix_use_runtimelinking" = yes; then
16416         # Warning - without using the other runtime loading flags (-brtl),
16417         # -berok will link without error, but may produce a broken library.
16418         allow_undefined_flag_GCJ='-berok'
16419        # Determine the default libpath from the value encoded in an empty executable.
16420        cat >conftest.$ac_ext <<_ACEOF
16421 /* confdefs.h.  */
16422 _ACEOF
16423 cat confdefs.h >>conftest.$ac_ext
16424 cat >>conftest.$ac_ext <<_ACEOF
16425 /* end confdefs.h.  */
16426
16427 int
16428 main ()
16429 {
16430
16431   ;
16432   return 0;
16433 }
16434 _ACEOF
16435 rm -f conftest.$ac_objext conftest$ac_exeext
16436 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16437   (eval $ac_link) 2>conftest.er1
16438   ac_status=$?
16439   grep -v '^ *+' conftest.er1 >conftest.err
16440   rm -f conftest.er1
16441   cat conftest.err >&5
16442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16443   (exit $ac_status); } &&
16444          { ac_try='test -z "$ac_c_werror_flag"
16445                          || test ! -s conftest.err'
16446   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16447   (eval $ac_try) 2>&5
16448   ac_status=$?
16449   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16450   (exit $ac_status); }; } &&
16451          { ac_try='test -s conftest$ac_exeext'
16452   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16453   (eval $ac_try) 2>&5
16454   ac_status=$?
16455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16456   (exit $ac_status); }; }; then
16457
16458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16459 }'`
16460 # Check for a 64-bit object if we didn't find anything.
16461 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; }
16462 }'`; fi
16463 else
16464   echo "$as_me: failed program was:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16466
16467 fi
16468 rm -f conftest.err conftest.$ac_objext \
16469       conftest$ac_exeext conftest.$ac_ext
16470 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16471
16472        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16473         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16474        else
16475         if test "$host_cpu" = ia64; then
16476           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16477           allow_undefined_flag_GCJ="-z nodefs"
16478           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
16479         else
16480          # Determine the default libpath from the value encoded in an empty executable.
16481          cat >conftest.$ac_ext <<_ACEOF
16482 /* confdefs.h.  */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h.  */
16487
16488 int
16489 main ()
16490 {
16491
16492   ;
16493   return 0;
16494 }
16495 _ACEOF
16496 rm -f conftest.$ac_objext conftest$ac_exeext
16497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16498   (eval $ac_link) 2>conftest.er1
16499   ac_status=$?
16500   grep -v '^ *+' conftest.er1 >conftest.err
16501   rm -f conftest.er1
16502   cat conftest.err >&5
16503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16504   (exit $ac_status); } &&
16505          { ac_try='test -z "$ac_c_werror_flag"
16506                          || test ! -s conftest.err'
16507   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16508   (eval $ac_try) 2>&5
16509   ac_status=$?
16510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511   (exit $ac_status); }; } &&
16512          { ac_try='test -s conftest$ac_exeext'
16513   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16514   (eval $ac_try) 2>&5
16515   ac_status=$?
16516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517   (exit $ac_status); }; }; then
16518
16519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16520 }'`
16521 # Check for a 64-bit object if we didn't find anything.
16522 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; }
16523 }'`; fi
16524 else
16525   echo "$as_me: failed program was:" >&5
16526 sed 's/^/| /' conftest.$ac_ext >&5
16527
16528 fi
16529 rm -f conftest.err conftest.$ac_objext \
16530       conftest$ac_exeext conftest.$ac_ext
16531 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16532
16533          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16534           # Warning - without using the other run time loading flags,
16535           # -berok will link without error, but may produce a broken library.
16536           no_undefined_flag_GCJ=' ${wl}-bernotok'
16537           allow_undefined_flag_GCJ=' ${wl}-berok'
16538           # Exported symbols can be pulled into shared objects from archives
16539           whole_archive_flag_spec_GCJ='$convenience'
16540           archive_cmds_need_lc_GCJ=yes
16541           # This is similar to how AIX traditionally builds its shared libraries.
16542           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
16543         fi
16544       fi
16545       ;;
16546
16547     amigaos*)
16548       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)'
16549       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16550       hardcode_minus_L_GCJ=yes
16551       # see comment about different semantics on the GNU ld section
16552       ld_shlibs_GCJ=no
16553       ;;
16554
16555     bsdi[45]*)
16556       export_dynamic_flag_spec_GCJ=-rdynamic
16557       ;;
16558
16559     cygwin* | mingw* | pw32*)
16560       # When not using gcc, we currently assume that we are using
16561       # Microsoft Visual C++.
16562       # hardcode_libdir_flag_spec is actually meaningless, as there is
16563       # no search path for DLLs.
16564       hardcode_libdir_flag_spec_GCJ=' '
16565       allow_undefined_flag_GCJ=unsupported
16566       # Tell ltmain to make .lib files, not .a files.
16567       libext=lib
16568       # Tell ltmain to make .dll files, not .so files.
16569       shrext_cmds=".dll"
16570       # FIXME: Setting linknames here is a bad hack.
16571       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16572       # The linker will automatically build a .lib file if we build a DLL.
16573       old_archive_From_new_cmds_GCJ='true'
16574       # FIXME: Should let the user specify the lib program.
16575       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16576       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16577       enable_shared_with_static_runtimes_GCJ=yes
16578       ;;
16579
16580     darwin* | rhapsody*)
16581       case $host_os in
16582         rhapsody* | darwin1.[012])
16583          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16584          ;;
16585        *) # Darwin 1.3 on
16586          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16587            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16588          else
16589            case ${MACOSX_DEPLOYMENT_TARGET} in
16590              10.[012])
16591                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16592                ;;
16593              10.*)
16594                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16595                ;;
16596            esac
16597          fi
16598          ;;
16599       esac
16600       archive_cmds_need_lc_GCJ=no
16601       hardcode_direct_GCJ=no
16602       hardcode_automatic_GCJ=yes
16603       hardcode_shlibpath_var_GCJ=unsupported
16604       whole_archive_flag_spec_GCJ=''
16605       link_all_deplibs_GCJ=yes
16606     if test "$GCC" = yes ; then
16607         output_verbose_link_cmd='echo'
16608         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16609       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16610       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16611       archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16612       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}'
16613     else
16614       case $cc_basename in
16615         xlc*)
16616          output_verbose_link_cmd='echo'
16617          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16618          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16619           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16620          archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16621           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}'
16622           ;;
16623        *)
16624          ld_shlibs_GCJ=no
16625           ;;
16626       esac
16627     fi
16628       ;;
16629
16630     dgux*)
16631       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16632       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16633       hardcode_shlibpath_var_GCJ=no
16634       ;;
16635
16636     freebsd1*)
16637       ld_shlibs_GCJ=no
16638       ;;
16639
16640     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16641     # support.  Future versions do this automatically, but an explicit c++rt0.o
16642     # does not break anything, and helps significantly (at the cost of a little
16643     # extra space).
16644     freebsd2.2*)
16645       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16646       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16647       hardcode_direct_GCJ=yes
16648       hardcode_shlibpath_var_GCJ=no
16649       ;;
16650
16651     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16652     freebsd2*)
16653       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16654       hardcode_direct_GCJ=yes
16655       hardcode_minus_L_GCJ=yes
16656       hardcode_shlibpath_var_GCJ=no
16657       ;;
16658
16659     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16660     freebsd* | kfreebsd*-gnu | dragonfly*)
16661       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16662       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16663       hardcode_direct_GCJ=yes
16664       hardcode_shlibpath_var_GCJ=no
16665       ;;
16666
16667     hpux9*)
16668       if test "$GCC" = yes; then
16669         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'
16670       else
16671         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'
16672       fi
16673       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16674       hardcode_libdir_separator_GCJ=:
16675       hardcode_direct_GCJ=yes
16676
16677       # hardcode_minus_L: Not really in the search PATH,
16678       # but as the default location of the library.
16679       hardcode_minus_L_GCJ=yes
16680       export_dynamic_flag_spec_GCJ='${wl}-E'
16681       ;;
16682
16683     hpux10*)
16684       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16685         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16686       else
16687         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16688       fi
16689       if test "$with_gnu_ld" = no; then
16690         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16691         hardcode_libdir_separator_GCJ=:
16692
16693         hardcode_direct_GCJ=yes
16694         export_dynamic_flag_spec_GCJ='${wl}-E'
16695
16696         # hardcode_minus_L: Not really in the search PATH,
16697         # but as the default location of the library.
16698         hardcode_minus_L_GCJ=yes
16699       fi
16700       ;;
16701
16702     hpux11*)
16703       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16704         case $host_cpu in
16705         hppa*64*)
16706           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16707           ;;
16708         ia64*)
16709           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16710           ;;
16711         *)
16712           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16713           ;;
16714         esac
16715       else
16716         case $host_cpu in
16717         hppa*64*)
16718           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16719           ;;
16720         ia64*)
16721           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16722           ;;
16723         *)
16724           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16725           ;;
16726         esac
16727       fi
16728       if test "$with_gnu_ld" = no; then
16729         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16730         hardcode_libdir_separator_GCJ=:
16731
16732         case $host_cpu in
16733         hppa*64*|ia64*)
16734           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16735           hardcode_direct_GCJ=no
16736           hardcode_shlibpath_var_GCJ=no
16737           ;;
16738         *)
16739           hardcode_direct_GCJ=yes
16740           export_dynamic_flag_spec_GCJ='${wl}-E'
16741
16742           # hardcode_minus_L: Not really in the search PATH,
16743           # but as the default location of the library.
16744           hardcode_minus_L_GCJ=yes
16745           ;;
16746         esac
16747       fi
16748       ;;
16749
16750     irix5* | irix6* | nonstopux*)
16751       if test "$GCC" = yes; then
16752         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'
16753       else
16754         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'
16755         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16756       fi
16757       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16758       hardcode_libdir_separator_GCJ=:
16759       link_all_deplibs_GCJ=yes
16760       ;;
16761
16762     netbsd*)
16763       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16764         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16765       else
16766         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16767       fi
16768       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16769       hardcode_direct_GCJ=yes
16770       hardcode_shlibpath_var_GCJ=no
16771       ;;
16772
16773     newsos6)
16774       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16775       hardcode_direct_GCJ=yes
16776       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16777       hardcode_libdir_separator_GCJ=:
16778       hardcode_shlibpath_var_GCJ=no
16779       ;;
16780
16781     openbsd*)
16782       hardcode_direct_GCJ=yes
16783       hardcode_shlibpath_var_GCJ=no
16784       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16785         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16786         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16787         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16788         export_dynamic_flag_spec_GCJ='${wl}-E'
16789       else
16790        case $host_os in
16791          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16792            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16793            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16794            ;;
16795          *)
16796            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16797            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16798            ;;
16799        esac
16800       fi
16801       ;;
16802
16803     os2*)
16804       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16805       hardcode_minus_L_GCJ=yes
16806       allow_undefined_flag_GCJ=unsupported
16807       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'
16808       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16809       ;;
16810
16811     osf3*)
16812       if test "$GCC" = yes; then
16813         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16814         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'
16815       else
16816         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16817         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'
16818       fi
16819       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16820       hardcode_libdir_separator_GCJ=:
16821       ;;
16822
16823     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16824       if test "$GCC" = yes; then
16825         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16826         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'
16827         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16828       else
16829         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16830         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'
16831         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~
16832         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16833
16834         # Both c and cxx compiler support -rpath directly
16835         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16836       fi
16837       hardcode_libdir_separator_GCJ=:
16838       ;;
16839
16840     solaris*)
16841       no_undefined_flag_GCJ=' -z text'
16842       if test "$GCC" = yes; then
16843         wlarc='${wl}'
16844         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16845         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16846           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16847       else
16848         wlarc=''
16849         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16851         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16852       fi
16853       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16854       hardcode_shlibpath_var_GCJ=no
16855       case $host_os in
16856       solaris2.[0-5] | solaris2.[0-5].*) ;;
16857       *)
16858         # The compiler driver will combine linker options so we
16859         # cannot just pass the convience library names through
16860         # without $wl, iff we do not link with $LD.
16861         # Luckily, gcc supports the same syntax we need for Sun Studio.
16862         # Supported since Solaris 2.6 (maybe 2.5.1?)
16863         case $wlarc in
16864         '')
16865           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16866         *)
16867           whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16868         esac ;;
16869       esac
16870       link_all_deplibs_GCJ=yes
16871       ;;
16872
16873     sunos4*)
16874       if test "x$host_vendor" = xsequent; then
16875         # Use $CC to link under sequent, because it throws in some extra .o
16876         # files that make .init and .fini sections work.
16877         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16878       else
16879         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16880       fi
16881       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16882       hardcode_direct_GCJ=yes
16883       hardcode_minus_L_GCJ=yes
16884       hardcode_shlibpath_var_GCJ=no
16885       ;;
16886
16887     sysv4)
16888       case $host_vendor in
16889         sni)
16890           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16891           hardcode_direct_GCJ=yes # is this really true???
16892         ;;
16893         siemens)
16894           ## LD is ld it makes a PLAMLIB
16895           ## CC just makes a GrossModule.
16896           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16897           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16898           hardcode_direct_GCJ=no
16899         ;;
16900         motorola)
16901           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16902           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16903         ;;
16904       esac
16905       runpath_var='LD_RUN_PATH'
16906       hardcode_shlibpath_var_GCJ=no
16907       ;;
16908
16909     sysv4.3*)
16910       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16911       hardcode_shlibpath_var_GCJ=no
16912       export_dynamic_flag_spec_GCJ='-Bexport'
16913       ;;
16914
16915     sysv4*MP*)
16916       if test -d /usr/nec; then
16917         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918         hardcode_shlibpath_var_GCJ=no
16919         runpath_var=LD_RUN_PATH
16920         hardcode_runpath_var=yes
16921         ld_shlibs_GCJ=yes
16922       fi
16923       ;;
16924
16925     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16926       no_undefined_flag_GCJ='${wl}-z,text'
16927       archive_cmds_need_lc_GCJ=no
16928       hardcode_shlibpath_var_GCJ=no
16929       runpath_var='LD_RUN_PATH'
16930
16931       if test "$GCC" = yes; then
16932         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16933         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16934       else
16935         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16936         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16937       fi
16938       ;;
16939
16940     sysv5* | sco3.2v5* | sco5v6*)
16941       # Note: We can NOT use -z defs as we might desire, because we do not
16942       # link with -lc, and that would cause any symbols used from libc to
16943       # always be unresolved, which means just about no library would
16944       # ever link correctly.  If we're not using GNU ld we use -z text
16945       # though, which does catch some bad symbols but isn't as heavy-handed
16946       # as -z defs.
16947       no_undefined_flag_GCJ='${wl}-z,text'
16948       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16949       archive_cmds_need_lc_GCJ=no
16950       hardcode_shlibpath_var_GCJ=no
16951       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16952       hardcode_libdir_separator_GCJ=':'
16953       link_all_deplibs_GCJ=yes
16954       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16955       runpath_var='LD_RUN_PATH'
16956
16957       if test "$GCC" = yes; then
16958         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16959         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16960       else
16961         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16962         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16963       fi
16964       ;;
16965
16966     uts4*)
16967       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16968       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16969       hardcode_shlibpath_var_GCJ=no
16970       ;;
16971
16972     *)
16973       ld_shlibs_GCJ=no
16974       ;;
16975     esac
16976   fi
16977
16978 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16979 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16980 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16981
16982 #
16983 # Do we need to explicitly link libc?
16984 #
16985 case "x$archive_cmds_need_lc_GCJ" in
16986 x|xyes)
16987   # Assume -lc should be added
16988   archive_cmds_need_lc_GCJ=yes
16989
16990   if test "$enable_shared" = yes && test "$GCC" = yes; then
16991     case $archive_cmds_GCJ in
16992     *'~'*)
16993       # FIXME: we may have to deal with multi-command sequences.
16994       ;;
16995     '$CC '*)
16996       # Test whether the compiler implicitly links with -lc since on some
16997       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16998       # to ld, don't add -lc before -lgcc.
16999       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17000 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17001       $rm conftest*
17002       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17003
17004       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17005   (eval $ac_compile) 2>&5
17006   ac_status=$?
17007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008   (exit $ac_status); } 2>conftest.err; then
17009         soname=conftest
17010         lib=conftest
17011         libobjs=conftest.$ac_objext
17012         deplibs=
17013         wl=$lt_prog_compiler_wl_GCJ
17014         pic_flag=$lt_prog_compiler_pic_GCJ
17015         compiler_flags=-v
17016         linker_flags=-v
17017         verstring=
17018         output_objdir=.
17019         libname=conftest
17020         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17021         allow_undefined_flag_GCJ=
17022         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17023   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17024   ac_status=$?
17025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17026   (exit $ac_status); }
17027         then
17028           archive_cmds_need_lc_GCJ=no
17029         else
17030           archive_cmds_need_lc_GCJ=yes
17031         fi
17032         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17033       else
17034         cat conftest.err 1>&5
17035       fi
17036       $rm conftest*
17037       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17038 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17039       ;;
17040     esac
17041   fi
17042   ;;
17043 esac
17044
17045 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17046 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17047 library_names_spec=
17048 libname_spec='lib$name'
17049 soname_spec=
17050 shrext_cmds=".so"
17051 postinstall_cmds=
17052 postuninstall_cmds=
17053 finish_cmds=
17054 finish_eval=
17055 shlibpath_var=
17056 shlibpath_overrides_runpath=unknown
17057 version_type=none
17058 dynamic_linker="$host_os ld.so"
17059 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17060 if test "$GCC" = yes; then
17061   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17062   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17063     # if the path contains ";" then we assume it to be the separator
17064     # otherwise default to the standard path separator (i.e. ":") - it is
17065     # assumed that no part of a normal pathname contains ";" but that should
17066     # okay in the real world where ";" in dirpaths is itself problematic.
17067     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17068   else
17069     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17070   fi
17071 else
17072   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17073 fi
17074 need_lib_prefix=unknown
17075 hardcode_into_libs=no
17076
17077 # when you set need_version to no, make sure it does not cause -set_version
17078 # flags to be left without arguments
17079 need_version=unknown
17080
17081 case $host_os in
17082 aix3*)
17083   version_type=linux
17084   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17085   shlibpath_var=LIBPATH
17086
17087   # AIX 3 has no versioning support, so we append a major version to the name.
17088   soname_spec='${libname}${release}${shared_ext}$major'
17089   ;;
17090
17091 aix4* | aix5*)
17092   version_type=linux
17093   need_lib_prefix=no
17094   need_version=no
17095   hardcode_into_libs=yes
17096   if test "$host_cpu" = ia64; then
17097     # AIX 5 supports IA64
17098     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17099     shlibpath_var=LD_LIBRARY_PATH
17100   else
17101     # With GCC up to 2.95.x, collect2 would create an import file
17102     # for dependence libraries.  The import file would start with
17103     # the line `#! .'.  This would cause the generated library to
17104     # depend on `.', always an invalid library.  This was fixed in
17105     # development snapshots of GCC prior to 3.0.
17106     case $host_os in
17107       aix4 | aix4.[01] | aix4.[01].*)
17108       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17109            echo ' yes '
17110            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17111         :
17112       else
17113         can_build_shared=no
17114       fi
17115       ;;
17116     esac
17117     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17118     # soname into executable. Probably we can add versioning support to
17119     # collect2, so additional links can be useful in future.
17120     if test "$aix_use_runtimelinking" = yes; then
17121       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17122       # instead of lib<name>.a to let people know that these are not
17123       # typical AIX shared libraries.
17124       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17125     else
17126       # We preserve .a as extension for shared libraries through AIX4.2
17127       # and later when we are not doing run time linking.
17128       library_names_spec='${libname}${release}.a $libname.a'
17129       soname_spec='${libname}${release}${shared_ext}$major'
17130     fi
17131     shlibpath_var=LIBPATH
17132   fi
17133   ;;
17134
17135 amigaos*)
17136   library_names_spec='$libname.ixlibrary $libname.a'
17137   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17138   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'
17139   ;;
17140
17141 beos*)
17142   library_names_spec='${libname}${shared_ext}'
17143   dynamic_linker="$host_os ld.so"
17144   shlibpath_var=LIBRARY_PATH
17145   ;;
17146
17147 bsdi[45]*)
17148   version_type=linux
17149   need_version=no
17150   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17151   soname_spec='${libname}${release}${shared_ext}$major'
17152   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17153   shlibpath_var=LD_LIBRARY_PATH
17154   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17155   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17156   # the default ld.so.conf also contains /usr/contrib/lib and
17157   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17158   # libtool to hard-code these into programs
17159   ;;
17160
17161 cygwin* | mingw* | pw32*)
17162   version_type=windows
17163   shrext_cmds=".dll"
17164   need_version=no
17165   need_lib_prefix=no
17166
17167   case $GCC,$host_os in
17168   yes,cygwin* | yes,mingw* | yes,pw32*)
17169     library_names_spec='$libname.dll.a'
17170     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17171     postinstall_cmds='base_file=`basename \${file}`~
17172       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17173       dldir=$destdir/`dirname \$dlpath`~
17174       test -d \$dldir || mkdir -p \$dldir~
17175       $install_prog $dir/$dlname \$dldir/$dlname~
17176       chmod a+x \$dldir/$dlname'
17177     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17178       dlpath=$dir/\$dldll~
17179        $rm \$dlpath'
17180     shlibpath_overrides_runpath=yes
17181
17182     case $host_os in
17183     cygwin*)
17184       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17185       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17186       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17187       ;;
17188     mingw*)
17189       # MinGW DLLs use traditional 'lib' prefix
17190       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17191       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17192       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17193         # It is most probably a Windows format PATH printed by
17194         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17195         # path with ; separators, and with drive letters. We can handle the
17196         # drive letters (cygwin fileutils understands them), so leave them,
17197         # especially as we might pass files found there to a mingw objdump,
17198         # which wouldn't understand a cygwinified path. Ahh.
17199         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17200       else
17201         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17202       fi
17203       ;;
17204     pw32*)
17205       # pw32 DLLs use 'pw' prefix rather than 'lib'
17206       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17207       ;;
17208     esac
17209     ;;
17210
17211   *)
17212     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17213     ;;
17214   esac
17215   dynamic_linker='Win32 ld.exe'
17216   # FIXME: first we should search . and the directory the executable is in
17217   shlibpath_var=PATH
17218   ;;
17219
17220 darwin* | rhapsody*)
17221   dynamic_linker="$host_os dyld"
17222   version_type=darwin
17223   need_lib_prefix=no
17224   need_version=no
17225   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17226   soname_spec='${libname}${release}${major}$shared_ext'
17227   shlibpath_overrides_runpath=yes
17228   shlibpath_var=DYLD_LIBRARY_PATH
17229   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17230   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17231   if test "$GCC" = yes; then
17232     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"`
17233   else
17234     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17235   fi
17236   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17237   ;;
17238
17239 dgux*)
17240   version_type=linux
17241   need_lib_prefix=no
17242   need_version=no
17243   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17244   soname_spec='${libname}${release}${shared_ext}$major'
17245   shlibpath_var=LD_LIBRARY_PATH
17246   ;;
17247
17248 freebsd1*)
17249   dynamic_linker=no
17250   ;;
17251
17252 kfreebsd*-gnu)
17253   version_type=linux
17254   need_lib_prefix=no
17255   need_version=no
17256   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17257   soname_spec='${libname}${release}${shared_ext}$major'
17258   shlibpath_var=LD_LIBRARY_PATH
17259   shlibpath_overrides_runpath=no
17260   hardcode_into_libs=yes
17261   dynamic_linker='GNU ld.so'
17262   ;;
17263
17264 freebsd* | dragonfly*)
17265   # DragonFly does not have aout.  When/if they implement a new
17266   # versioning mechanism, adjust this.
17267   if test -x /usr/bin/objformat; then
17268     objformat=`/usr/bin/objformat`
17269   else
17270     case $host_os in
17271     freebsd[123]*) objformat=aout ;;
17272     *) objformat=elf ;;
17273     esac
17274   fi
17275   version_type=freebsd-$objformat
17276   case $version_type in
17277     freebsd-elf*)
17278       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17279       need_version=no
17280       need_lib_prefix=no
17281       ;;
17282     freebsd-*)
17283       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17284       need_version=yes
17285       ;;
17286   esac
17287   shlibpath_var=LD_LIBRARY_PATH
17288   case $host_os in
17289   freebsd2*)
17290     shlibpath_overrides_runpath=yes
17291     ;;
17292   freebsd3.[01]* | freebsdelf3.[01]*)
17293     shlibpath_overrides_runpath=yes
17294     hardcode_into_libs=yes
17295     ;;
17296   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17297   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17298     shlibpath_overrides_runpath=no
17299     hardcode_into_libs=yes
17300     ;;
17301   freebsd*) # from 4.6 on
17302     shlibpath_overrides_runpath=yes
17303     hardcode_into_libs=yes
17304     ;;
17305   esac
17306   ;;
17307
17308 gnu*)
17309   version_type=linux
17310   need_lib_prefix=no
17311   need_version=no
17312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17313   soname_spec='${libname}${release}${shared_ext}$major'
17314   shlibpath_var=LD_LIBRARY_PATH
17315   hardcode_into_libs=yes
17316   ;;
17317
17318 hpux9* | hpux10* | hpux11*)
17319   # Give a soname corresponding to the major version so that dld.sl refuses to
17320   # link against other versions.
17321   version_type=sunos
17322   need_lib_prefix=no
17323   need_version=no
17324   case $host_cpu in
17325   ia64*)
17326     shrext_cmds='.so'
17327     hardcode_into_libs=yes
17328     dynamic_linker="$host_os dld.so"
17329     shlibpath_var=LD_LIBRARY_PATH
17330     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17331     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17332     soname_spec='${libname}${release}${shared_ext}$major'
17333     if test "X$HPUX_IA64_MODE" = X32; then
17334       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17335     else
17336       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17337     fi
17338     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17339     ;;
17340    hppa*64*)
17341      shrext_cmds='.sl'
17342      hardcode_into_libs=yes
17343      dynamic_linker="$host_os dld.sl"
17344      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17345      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17346      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17347      soname_spec='${libname}${release}${shared_ext}$major'
17348      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17349      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17350      ;;
17351    *)
17352     shrext_cmds='.sl'
17353     dynamic_linker="$host_os dld.sl"
17354     shlibpath_var=SHLIB_PATH
17355     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17356     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17357     soname_spec='${libname}${release}${shared_ext}$major'
17358     ;;
17359   esac
17360   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17361   postinstall_cmds='chmod 555 $lib'
17362   ;;
17363
17364 interix3*)
17365   version_type=linux
17366   need_lib_prefix=no
17367   need_version=no
17368   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17369   soname_spec='${libname}${release}${shared_ext}$major'
17370   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17371   shlibpath_var=LD_LIBRARY_PATH
17372   shlibpath_overrides_runpath=no
17373   hardcode_into_libs=yes
17374   ;;
17375
17376 irix5* | irix6* | nonstopux*)
17377   case $host_os in
17378     nonstopux*) version_type=nonstopux ;;
17379     *)
17380         if test "$lt_cv_prog_gnu_ld" = yes; then
17381                 version_type=linux
17382         else
17383                 version_type=irix
17384         fi ;;
17385   esac
17386   need_lib_prefix=no
17387   need_version=no
17388   soname_spec='${libname}${release}${shared_ext}$major'
17389   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17390   case $host_os in
17391   irix5* | nonstopux*)
17392     libsuff= shlibsuff=
17393     ;;
17394   *)
17395     case $LD in # libtool.m4 will add one of these switches to LD
17396     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17397       libsuff= shlibsuff= libmagic=32-bit;;
17398     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17399       libsuff=32 shlibsuff=N32 libmagic=N32;;
17400     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17401       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17402     *) libsuff= shlibsuff= libmagic=never-match;;
17403     esac
17404     ;;
17405   esac
17406   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17407   shlibpath_overrides_runpath=no
17408   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17409   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17410   hardcode_into_libs=yes
17411   ;;
17412
17413 # No shared lib support for Linux oldld, aout, or coff.
17414 linux*oldld* | linux*aout* | linux*coff*)
17415   dynamic_linker=no
17416   ;;
17417
17418 # This must be Linux ELF.
17419 linux*)
17420   version_type=linux
17421   need_lib_prefix=no
17422   need_version=no
17423   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17424   soname_spec='${libname}${release}${shared_ext}$major'
17425   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17426   shlibpath_var=LD_LIBRARY_PATH
17427   shlibpath_overrides_runpath=no
17428   # This implies no fast_install, which is unacceptable.
17429   # Some rework will be needed to allow for fast_install
17430   # before this can be enabled.
17431   hardcode_into_libs=yes
17432
17433   # find out which ABI we are using
17434   libsuff=
17435   case "$host_cpu" in
17436   x86_64*|s390x*|powerpc64*)
17437     echo '#line 17437 "configure"' > conftest.$ac_ext
17438     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17439   (eval $ac_compile) 2>&5
17440   ac_status=$?
17441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442   (exit $ac_status); }; then
17443       case `/usr/bin/file conftest.$ac_objext` in
17444       *64-bit*)
17445         libsuff=64
17446         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17447         ;;
17448       esac
17449     fi
17450     rm -rf conftest*
17451     ;;
17452   esac
17453
17454   # Append ld.so.conf contents to the search path
17455   if test -f /etc/ld.so.conf; then
17456     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17457     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17458   fi
17459
17460   # We used to test for /lib/ld.so.1 and disable shared libraries on
17461   # powerpc, because MkLinux only supported shared libraries with the
17462   # GNU dynamic linker.  Since this was broken with cross compilers,
17463   # most powerpc-linux boxes support dynamic linking these days and
17464   # people can always --disable-shared, the test was removed, and we
17465   # assume the GNU/Linux dynamic linker is in use.
17466   dynamic_linker='GNU/Linux ld.so'
17467   ;;
17468
17469 knetbsd*-gnu)
17470   version_type=linux
17471   need_lib_prefix=no
17472   need_version=no
17473   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17474   soname_spec='${libname}${release}${shared_ext}$major'
17475   shlibpath_var=LD_LIBRARY_PATH
17476   shlibpath_overrides_runpath=no
17477   hardcode_into_libs=yes
17478   dynamic_linker='GNU ld.so'
17479   ;;
17480
17481 netbsd*)
17482   version_type=sunos
17483   need_lib_prefix=no
17484   need_version=no
17485   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17486     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17487     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17488     dynamic_linker='NetBSD (a.out) ld.so'
17489   else
17490     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17491     soname_spec='${libname}${release}${shared_ext}$major'
17492     dynamic_linker='NetBSD ld.elf_so'
17493   fi
17494   shlibpath_var=LD_LIBRARY_PATH
17495   shlibpath_overrides_runpath=yes
17496   hardcode_into_libs=yes
17497   ;;
17498
17499 newsos6)
17500   version_type=linux
17501   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502   shlibpath_var=LD_LIBRARY_PATH
17503   shlibpath_overrides_runpath=yes
17504   ;;
17505
17506 nto-qnx*)
17507   version_type=linux
17508   need_lib_prefix=no
17509   need_version=no
17510   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17511   soname_spec='${libname}${release}${shared_ext}$major'
17512   shlibpath_var=LD_LIBRARY_PATH
17513   shlibpath_overrides_runpath=yes
17514   ;;
17515
17516 openbsd*)
17517   version_type=sunos
17518   sys_lib_dlsearch_path_spec="/usr/lib"
17519   need_lib_prefix=no
17520   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17521   case $host_os in
17522     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17523     *)                         need_version=no  ;;
17524   esac
17525   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17526   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17527   shlibpath_var=LD_LIBRARY_PATH
17528   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17529     case $host_os in
17530       openbsd2.[89] | openbsd2.[89].*)
17531         shlibpath_overrides_runpath=no
17532         ;;
17533       *)
17534         shlibpath_overrides_runpath=yes
17535         ;;
17536       esac
17537   else
17538     shlibpath_overrides_runpath=yes
17539   fi
17540   ;;
17541
17542 os2*)
17543   libname_spec='$name'
17544   shrext_cmds=".dll"
17545   need_lib_prefix=no
17546   library_names_spec='$libname${shared_ext} $libname.a'
17547   dynamic_linker='OS/2 ld.exe'
17548   shlibpath_var=LIBPATH
17549   ;;
17550
17551 osf3* | osf4* | osf5*)
17552   version_type=osf
17553   need_lib_prefix=no
17554   need_version=no
17555   soname_spec='${libname}${release}${shared_ext}$major'
17556   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17557   shlibpath_var=LD_LIBRARY_PATH
17558   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17559   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17560   ;;
17561
17562 solaris*)
17563   version_type=linux
17564   need_lib_prefix=no
17565   need_version=no
17566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567   soname_spec='${libname}${release}${shared_ext}$major'
17568   shlibpath_var=LD_LIBRARY_PATH
17569   shlibpath_overrides_runpath=yes
17570   hardcode_into_libs=yes
17571   # ldd complains unless libraries are executable
17572   postinstall_cmds='chmod +x $lib'
17573   ;;
17574
17575 sunos4*)
17576   version_type=sunos
17577   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17578   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17579   shlibpath_var=LD_LIBRARY_PATH
17580   shlibpath_overrides_runpath=yes
17581   if test "$with_gnu_ld" = yes; then
17582     need_lib_prefix=no
17583   fi
17584   need_version=yes
17585   ;;
17586
17587 sysv4 | sysv4.3*)
17588   version_type=linux
17589   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590   soname_spec='${libname}${release}${shared_ext}$major'
17591   shlibpath_var=LD_LIBRARY_PATH
17592   case $host_vendor in
17593     sni)
17594       shlibpath_overrides_runpath=no
17595       need_lib_prefix=no
17596       export_dynamic_flag_spec='${wl}-Blargedynsym'
17597       runpath_var=LD_RUN_PATH
17598       ;;
17599     siemens)
17600       need_lib_prefix=no
17601       ;;
17602     motorola)
17603       need_lib_prefix=no
17604       need_version=no
17605       shlibpath_overrides_runpath=no
17606       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17607       ;;
17608   esac
17609   ;;
17610
17611 sysv4*MP*)
17612   if test -d /usr/nec ;then
17613     version_type=linux
17614     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17615     soname_spec='$libname${shared_ext}.$major'
17616     shlibpath_var=LD_LIBRARY_PATH
17617   fi
17618   ;;
17619
17620 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17621   version_type=freebsd-elf
17622   need_lib_prefix=no
17623   need_version=no
17624   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17625   soname_spec='${libname}${release}${shared_ext}$major'
17626   shlibpath_var=LD_LIBRARY_PATH
17627   hardcode_into_libs=yes
17628   if test "$with_gnu_ld" = yes; then
17629     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17630     shlibpath_overrides_runpath=no
17631   else
17632     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17633     shlibpath_overrides_runpath=yes
17634     case $host_os in
17635       sco3.2v5*)
17636         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17637         ;;
17638     esac
17639   fi
17640   sys_lib_dlsearch_path_spec='/usr/lib'
17641   ;;
17642
17643 uts4*)
17644   version_type=linux
17645   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17646   soname_spec='${libname}${release}${shared_ext}$major'
17647   shlibpath_var=LD_LIBRARY_PATH
17648   ;;
17649
17650 *)
17651   dynamic_linker=no
17652   ;;
17653 esac
17654 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17655 echo "${ECHO_T}$dynamic_linker" >&6
17656 test "$dynamic_linker" = no && can_build_shared=no
17657
17658 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17659 if test "$GCC" = yes; then
17660   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17661 fi
17662
17663 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17664 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17665 hardcode_action_GCJ=
17666 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17667    test -n "$runpath_var_GCJ" || \
17668    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17669
17670   # We can hardcode non-existant directories.
17671   if test "$hardcode_direct_GCJ" != no &&
17672      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17673      # have to relink, otherwise we might link with an installed library
17674      # when we should be linking with a yet-to-be-installed one
17675      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17676      test "$hardcode_minus_L_GCJ" != no; then
17677     # Linking always hardcodes the temporary library directory.
17678     hardcode_action_GCJ=relink
17679   else
17680     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17681     hardcode_action_GCJ=immediate
17682   fi
17683 else
17684   # We cannot hardcode anything, or else we can only hardcode existing
17685   # directories.
17686   hardcode_action_GCJ=unsupported
17687 fi
17688 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17689 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17690
17691 if test "$hardcode_action_GCJ" = relink; then
17692   # Fast installation is not supported
17693   enable_fast_install=no
17694 elif test "$shlibpath_overrides_runpath" = yes ||
17695      test "$enable_shared" = no; then
17696   # Fast installation is not necessary
17697   enable_fast_install=needless
17698 fi
17699
17700
17701 # The else clause should only fire when bootstrapping the
17702 # libtool distribution, otherwise you forgot to ship ltmain.sh
17703 # with your package, and you will get complaints that there are
17704 # no rules to generate ltmain.sh.
17705 if test -f "$ltmain"; then
17706   # See if we are running on zsh, and set the options which allow our commands through
17707   # without removal of \ escapes.
17708   if test -n "${ZSH_VERSION+set}" ; then
17709     setopt NO_GLOB_SUBST
17710   fi
17711   # Now quote all the things that may contain metacharacters while being
17712   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17713   # variables and quote the copies for generation of the libtool script.
17714   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17715     SED SHELL STRIP \
17716     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17717     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17718     deplibs_check_method reload_flag reload_cmds need_locks \
17719     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17720     lt_cv_sys_global_symbol_to_c_name_address \
17721     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17722     old_postinstall_cmds old_postuninstall_cmds \
17723     compiler_GCJ \
17724     CC_GCJ \
17725     LD_GCJ \
17726     lt_prog_compiler_wl_GCJ \
17727     lt_prog_compiler_pic_GCJ \
17728     lt_prog_compiler_static_GCJ \
17729     lt_prog_compiler_no_builtin_flag_GCJ \
17730     export_dynamic_flag_spec_GCJ \
17731     thread_safe_flag_spec_GCJ \
17732     whole_archive_flag_spec_GCJ \
17733     enable_shared_with_static_runtimes_GCJ \
17734     old_archive_cmds_GCJ \
17735     old_archive_from_new_cmds_GCJ \
17736     predep_objects_GCJ \
17737     postdep_objects_GCJ \
17738     predeps_GCJ \
17739     postdeps_GCJ \
17740     compiler_lib_search_path_GCJ \
17741     archive_cmds_GCJ \
17742     archive_expsym_cmds_GCJ \
17743     postinstall_cmds_GCJ \
17744     postuninstall_cmds_GCJ \
17745     old_archive_from_expsyms_cmds_GCJ \
17746     allow_undefined_flag_GCJ \
17747     no_undefined_flag_GCJ \
17748     export_symbols_cmds_GCJ \
17749     hardcode_libdir_flag_spec_GCJ \
17750     hardcode_libdir_flag_spec_ld_GCJ \
17751     hardcode_libdir_separator_GCJ \
17752     hardcode_automatic_GCJ \
17753     module_cmds_GCJ \
17754     module_expsym_cmds_GCJ \
17755     lt_cv_prog_compiler_c_o_GCJ \
17756     exclude_expsyms_GCJ \
17757     include_expsyms_GCJ; do
17758
17759     case $var in
17760     old_archive_cmds_GCJ | \
17761     old_archive_from_new_cmds_GCJ | \
17762     archive_cmds_GCJ | \
17763     archive_expsym_cmds_GCJ | \
17764     module_cmds_GCJ | \
17765     module_expsym_cmds_GCJ | \
17766     old_archive_from_expsyms_cmds_GCJ | \
17767     export_symbols_cmds_GCJ | \
17768     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17769     postinstall_cmds | postuninstall_cmds | \
17770     old_postinstall_cmds | old_postuninstall_cmds | \
17771     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17772       # Double-quote double-evaled strings.
17773       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17774       ;;
17775     *)
17776       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17777       ;;
17778     esac
17779   done
17780
17781   case $lt_echo in
17782   *'\$0 --fallback-echo"')
17783     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17784     ;;
17785   esac
17786
17787 cfgfile="$ofile"
17788
17789   cat <<__EOF__ >> "$cfgfile"
17790 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17791
17792 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17793
17794 # Shell to use when invoking shell scripts.
17795 SHELL=$lt_SHELL
17796
17797 # Whether or not to build shared libraries.
17798 build_libtool_libs=$enable_shared
17799
17800 # Whether or not to build static libraries.
17801 build_old_libs=$enable_static
17802
17803 # Whether or not to add -lc for building shared libraries.
17804 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17805
17806 # Whether or not to disallow shared libs when runtime libs are static
17807 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17808
17809 # Whether or not to optimize for fast installation.
17810 fast_install=$enable_fast_install
17811
17812 # The host system.
17813 host_alias=$host_alias
17814 host=$host
17815 host_os=$host_os
17816
17817 # The build system.
17818 build_alias=$build_alias
17819 build=$build
17820 build_os=$build_os
17821
17822 # An echo program that does not interpret backslashes.
17823 echo=$lt_echo
17824
17825 # The archiver.
17826 AR=$lt_AR
17827 AR_FLAGS=$lt_AR_FLAGS
17828
17829 # A C compiler.
17830 LTCC=$lt_LTCC
17831
17832 # LTCC compiler flags.
17833 LTCFLAGS=$lt_LTCFLAGS
17834
17835 # A language-specific compiler.
17836 CC=$lt_compiler_GCJ
17837
17838 # Is the compiler the GNU C compiler?
17839 with_gcc=$GCC_GCJ
17840
17841 # An ERE matcher.
17842 EGREP=$lt_EGREP
17843
17844 # The linker used to build libraries.
17845 LD=$lt_LD_GCJ
17846
17847 # Whether we need hard or soft links.
17848 LN_S=$lt_LN_S
17849
17850 # A BSD-compatible nm program.
17851 NM=$lt_NM
17852
17853 # A symbol stripping program
17854 STRIP=$lt_STRIP
17855
17856 # Used to examine libraries when file_magic_cmd begins "file"
17857 MAGIC_CMD=$MAGIC_CMD
17858
17859 # Used on cygwin: DLL creation program.
17860 DLLTOOL="$DLLTOOL"
17861
17862 # Used on cygwin: object dumper.
17863 OBJDUMP="$OBJDUMP"
17864
17865 # Used on cygwin: assembler.
17866 AS="$AS"
17867
17868 # The name of the directory that contains temporary libtool files.
17869 objdir=$objdir
17870
17871 # How to create reloadable object files.
17872 reload_flag=$lt_reload_flag
17873 reload_cmds=$lt_reload_cmds
17874
17875 # How to pass a linker flag through the compiler.
17876 wl=$lt_lt_prog_compiler_wl_GCJ
17877
17878 # Object file suffix (normally "o").
17879 objext="$ac_objext"
17880
17881 # Old archive suffix (normally "a").
17882 libext="$libext"
17883
17884 # Shared library suffix (normally ".so").
17885 shrext_cmds='$shrext_cmds'
17886
17887 # Executable file suffix (normally "").
17888 exeext="$exeext"
17889
17890 # Additional compiler flags for building library objects.
17891 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17892 pic_mode=$pic_mode
17893
17894 # What is the maximum length of a command?
17895 max_cmd_len=$lt_cv_sys_max_cmd_len
17896
17897 # Does compiler simultaneously support -c and -o options?
17898 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17899
17900 # Must we lock files when doing compilation?
17901 need_locks=$lt_need_locks
17902
17903 # Do we need the lib prefix for modules?
17904 need_lib_prefix=$need_lib_prefix
17905
17906 # Do we need a version for libraries?
17907 need_version=$need_version
17908
17909 # Whether dlopen is supported.
17910 dlopen_support=$enable_dlopen
17911
17912 # Whether dlopen of programs is supported.
17913 dlopen_self=$enable_dlopen_self
17914
17915 # Whether dlopen of statically linked programs is supported.
17916 dlopen_self_static=$enable_dlopen_self_static
17917
17918 # Compiler flag to prevent dynamic linking.
17919 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17920
17921 # Compiler flag to turn off builtin functions.
17922 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17923
17924 # Compiler flag to allow reflexive dlopens.
17925 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17926
17927 # Compiler flag to generate shared objects directly from archives.
17928 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17929
17930 # Compiler flag to generate thread-safe objects.
17931 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17932
17933 # Library versioning type.
17934 version_type=$version_type
17935
17936 # Format of library name prefix.
17937 libname_spec=$lt_libname_spec
17938
17939 # List of archive names.  First name is the real one, the rest are links.
17940 # The last name is the one that the linker finds with -lNAME.
17941 library_names_spec=$lt_library_names_spec
17942
17943 # The coded name of the library, if different from the real name.
17944 soname_spec=$lt_soname_spec
17945
17946 # Commands used to build and install an old-style archive.
17947 RANLIB=$lt_RANLIB
17948 old_archive_cmds=$lt_old_archive_cmds_GCJ
17949 old_postinstall_cmds=$lt_old_postinstall_cmds
17950 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17951
17952 # Create an old-style archive from a shared archive.
17953 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17954
17955 # Create a temporary old-style archive to link instead of a shared archive.
17956 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17957
17958 # Commands used to build and install a shared archive.
17959 archive_cmds=$lt_archive_cmds_GCJ
17960 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17961 postinstall_cmds=$lt_postinstall_cmds
17962 postuninstall_cmds=$lt_postuninstall_cmds
17963
17964 # Commands used to build a loadable module (assumed same as above if empty)
17965 module_cmds=$lt_module_cmds_GCJ
17966 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17967
17968 # Commands to strip libraries.
17969 old_striplib=$lt_old_striplib
17970 striplib=$lt_striplib
17971
17972 # Dependencies to place before the objects being linked to create a
17973 # shared library.
17974 predep_objects=$lt_predep_objects_GCJ
17975
17976 # Dependencies to place after the objects being linked to create a
17977 # shared library.
17978 postdep_objects=$lt_postdep_objects_GCJ
17979
17980 # Dependencies to place before the objects being linked to create a
17981 # shared library.
17982 predeps=$lt_predeps_GCJ
17983
17984 # Dependencies to place after the objects being linked to create a
17985 # shared library.
17986 postdeps=$lt_postdeps_GCJ
17987
17988 # The library search path used internally by the compiler when linking
17989 # a shared library.
17990 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17991
17992 # Method to check whether dependent libraries are shared objects.
17993 deplibs_check_method=$lt_deplibs_check_method
17994
17995 # Command to use when deplibs_check_method == file_magic.
17996 file_magic_cmd=$lt_file_magic_cmd
17997
17998 # Flag that allows shared libraries with undefined symbols to be built.
17999 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18000
18001 # Flag that forces no undefined symbols.
18002 no_undefined_flag=$lt_no_undefined_flag_GCJ
18003
18004 # Commands used to finish a libtool library installation in a directory.
18005 finish_cmds=$lt_finish_cmds
18006
18007 # Same as above, but a single script fragment to be evaled but not shown.
18008 finish_eval=$lt_finish_eval
18009
18010 # Take the output of nm and produce a listing of raw symbols and C names.
18011 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18012
18013 # Transform the output of nm in a proper C declaration
18014 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18015
18016 # Transform the output of nm in a C name address pair
18017 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18018
18019 # This is the shared library runtime path variable.
18020 runpath_var=$runpath_var
18021
18022 # This is the shared library path variable.
18023 shlibpath_var=$shlibpath_var
18024
18025 # Is shlibpath searched before the hard-coded library search path?
18026 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18027
18028 # How to hardcode a shared library path into an executable.
18029 hardcode_action=$hardcode_action_GCJ
18030
18031 # Whether we should hardcode library paths into libraries.
18032 hardcode_into_libs=$hardcode_into_libs
18033
18034 # Flag to hardcode \$libdir into a binary during linking.
18035 # This must work even if \$libdir does not exist.
18036 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18037
18038 # If ld is used when linking, flag to hardcode \$libdir into
18039 # a binary during linking. This must work even if \$libdir does
18040 # not exist.
18041 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18042
18043 # Whether we need a single -rpath flag with a separated argument.
18044 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18045
18046 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18047 # resulting binary.
18048 hardcode_direct=$hardcode_direct_GCJ
18049
18050 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18051 # resulting binary.
18052 hardcode_minus_L=$hardcode_minus_L_GCJ
18053
18054 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18055 # the resulting binary.
18056 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18057
18058 # Set to yes if building a shared library automatically hardcodes DIR into the library
18059 # and all subsequent libraries and executables linked against it.
18060 hardcode_automatic=$hardcode_automatic_GCJ
18061
18062 # Variables whose values should be saved in libtool wrapper scripts and
18063 # restored at relink time.
18064 variables_saved_for_relink="$variables_saved_for_relink"
18065
18066 # Whether libtool must link a program against all its dependency libraries.
18067 link_all_deplibs=$link_all_deplibs_GCJ
18068
18069 # Compile-time system search path for libraries
18070 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18071
18072 # Run-time system search path for libraries
18073 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18074
18075 # Fix the shell variable \$srcfile for the compiler.
18076 fix_srcfile_path="$fix_srcfile_path_GCJ"
18077
18078 # Set to yes if exported symbols are required.
18079 always_export_symbols=$always_export_symbols_GCJ
18080
18081 # The commands to list exported symbols.
18082 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18083
18084 # The commands to extract the exported symbol list from a shared archive.
18085 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18086
18087 # Symbols that should not be listed in the preloaded symbols.
18088 exclude_expsyms=$lt_exclude_expsyms_GCJ
18089
18090 # Symbols that must always be exported.
18091 include_expsyms=$lt_include_expsyms_GCJ
18092
18093 # ### END LIBTOOL TAG CONFIG: $tagname
18094
18095 __EOF__
18096
18097
18098 else
18099   # If there is no Makefile yet, we rely on a make rule to execute
18100   # `config.status --recheck' to rerun these tests and create the
18101   # libtool script then.
18102   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18103   if test -f "$ltmain_in"; then
18104     test -f Makefile && make "$ltmain"
18105   fi
18106 fi
18107
18108
18109 ac_ext=c
18110 ac_cpp='$CPP $CPPFLAGS'
18111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18114
18115 CC="$lt_save_CC"
18116
18117         else
18118           tagname=""
18119         fi
18120         ;;
18121
18122       RC)
18123
18124
18125
18126 # Source file extension for RC test sources.
18127 ac_ext=rc
18128
18129 # Object file extension for compiled RC test sources.
18130 objext=o
18131 objext_RC=$objext
18132
18133 # Code to be used in simple compile tests
18134 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18135
18136 # Code to be used in simple link tests
18137 lt_simple_link_test_code="$lt_simple_compile_test_code"
18138
18139 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18140
18141 # If no C compiler was specified, use CC.
18142 LTCC=${LTCC-"$CC"}
18143
18144 # If no C compiler flags were specified, use CFLAGS.
18145 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18146
18147 # Allow CC to be a program name with arguments.
18148 compiler=$CC
18149
18150
18151 # save warnings/boilerplate of simple test code
18152 ac_outfile=conftest.$ac_objext
18153 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18154 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18155 _lt_compiler_boilerplate=`cat conftest.err`
18156 $rm conftest*
18157
18158 ac_outfile=conftest.$ac_objext
18159 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18160 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18161 _lt_linker_boilerplate=`cat conftest.err`
18162 $rm conftest*
18163
18164
18165 # Allow CC to be a program name with arguments.
18166 lt_save_CC="$CC"
18167 CC=${RC-"windres"}
18168 compiler=$CC
18169 compiler_RC=$CC
18170 for cc_temp in $compiler""; do
18171   case $cc_temp in
18172     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18173     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18174     \-*) ;;
18175     *) break;;
18176   esac
18177 done
18178 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18179
18180 lt_cv_prog_compiler_c_o_RC=yes
18181
18182 # The else clause should only fire when bootstrapping the
18183 # libtool distribution, otherwise you forgot to ship ltmain.sh
18184 # with your package, and you will get complaints that there are
18185 # no rules to generate ltmain.sh.
18186 if test -f "$ltmain"; then
18187   # See if we are running on zsh, and set the options which allow our commands through
18188   # without removal of \ escapes.
18189   if test -n "${ZSH_VERSION+set}" ; then
18190     setopt NO_GLOB_SUBST
18191   fi
18192   # Now quote all the things that may contain metacharacters while being
18193   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18194   # variables and quote the copies for generation of the libtool script.
18195   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18196     SED SHELL STRIP \
18197     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18198     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18199     deplibs_check_method reload_flag reload_cmds need_locks \
18200     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18201     lt_cv_sys_global_symbol_to_c_name_address \
18202     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18203     old_postinstall_cmds old_postuninstall_cmds \
18204     compiler_RC \
18205     CC_RC \
18206     LD_RC \
18207     lt_prog_compiler_wl_RC \
18208     lt_prog_compiler_pic_RC \
18209     lt_prog_compiler_static_RC \
18210     lt_prog_compiler_no_builtin_flag_RC \
18211     export_dynamic_flag_spec_RC \
18212     thread_safe_flag_spec_RC \
18213     whole_archive_flag_spec_RC \
18214     enable_shared_with_static_runtimes_RC \
18215     old_archive_cmds_RC \
18216     old_archive_from_new_cmds_RC \
18217     predep_objects_RC \
18218     postdep_objects_RC \
18219     predeps_RC \
18220     postdeps_RC \
18221     compiler_lib_search_path_RC \
18222     archive_cmds_RC \
18223     archive_expsym_cmds_RC \
18224     postinstall_cmds_RC \
18225     postuninstall_cmds_RC \
18226     old_archive_from_expsyms_cmds_RC \
18227     allow_undefined_flag_RC \
18228     no_undefined_flag_RC \
18229     export_symbols_cmds_RC \
18230     hardcode_libdir_flag_spec_RC \
18231     hardcode_libdir_flag_spec_ld_RC \
18232     hardcode_libdir_separator_RC \
18233     hardcode_automatic_RC \
18234     module_cmds_RC \
18235     module_expsym_cmds_RC \
18236     lt_cv_prog_compiler_c_o_RC \
18237     exclude_expsyms_RC \
18238     include_expsyms_RC; do
18239
18240     case $var in
18241     old_archive_cmds_RC | \
18242     old_archive_from_new_cmds_RC | \
18243     archive_cmds_RC | \
18244     archive_expsym_cmds_RC | \
18245     module_cmds_RC | \
18246     module_expsym_cmds_RC | \
18247     old_archive_from_expsyms_cmds_RC | \
18248     export_symbols_cmds_RC | \
18249     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18250     postinstall_cmds | postuninstall_cmds | \
18251     old_postinstall_cmds | old_postuninstall_cmds | \
18252     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18253       # Double-quote double-evaled strings.
18254       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18255       ;;
18256     *)
18257       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18258       ;;
18259     esac
18260   done
18261
18262   case $lt_echo in
18263   *'\$0 --fallback-echo"')
18264     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18265     ;;
18266   esac
18267
18268 cfgfile="$ofile"
18269
18270   cat <<__EOF__ >> "$cfgfile"
18271 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18272
18273 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18274
18275 # Shell to use when invoking shell scripts.
18276 SHELL=$lt_SHELL
18277
18278 # Whether or not to build shared libraries.
18279 build_libtool_libs=$enable_shared
18280
18281 # Whether or not to build static libraries.
18282 build_old_libs=$enable_static
18283
18284 # Whether or not to add -lc for building shared libraries.
18285 build_libtool_need_lc=$archive_cmds_need_lc_RC
18286
18287 # Whether or not to disallow shared libs when runtime libs are static
18288 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18289
18290 # Whether or not to optimize for fast installation.
18291 fast_install=$enable_fast_install
18292
18293 # The host system.
18294 host_alias=$host_alias
18295 host=$host
18296 host_os=$host_os
18297
18298 # The build system.
18299 build_alias=$build_alias
18300 build=$build
18301 build_os=$build_os
18302
18303 # An echo program that does not interpret backslashes.
18304 echo=$lt_echo
18305
18306 # The archiver.
18307 AR=$lt_AR
18308 AR_FLAGS=$lt_AR_FLAGS
18309
18310 # A C compiler.
18311 LTCC=$lt_LTCC
18312
18313 # LTCC compiler flags.
18314 LTCFLAGS=$lt_LTCFLAGS
18315
18316 # A language-specific compiler.
18317 CC=$lt_compiler_RC
18318
18319 # Is the compiler the GNU C compiler?
18320 with_gcc=$GCC_RC
18321
18322 # An ERE matcher.
18323 EGREP=$lt_EGREP
18324
18325 # The linker used to build libraries.
18326 LD=$lt_LD_RC
18327
18328 # Whether we need hard or soft links.
18329 LN_S=$lt_LN_S
18330
18331 # A BSD-compatible nm program.
18332 NM=$lt_NM
18333
18334 # A symbol stripping program
18335 STRIP=$lt_STRIP
18336
18337 # Used to examine libraries when file_magic_cmd begins "file"
18338 MAGIC_CMD=$MAGIC_CMD
18339
18340 # Used on cygwin: DLL creation program.
18341 DLLTOOL="$DLLTOOL"
18342
18343 # Used on cygwin: object dumper.
18344 OBJDUMP="$OBJDUMP"
18345
18346 # Used on cygwin: assembler.
18347 AS="$AS"
18348
18349 # The name of the directory that contains temporary libtool files.
18350 objdir=$objdir
18351
18352 # How to create reloadable object files.
18353 reload_flag=$lt_reload_flag
18354 reload_cmds=$lt_reload_cmds
18355
18356 # How to pass a linker flag through the compiler.
18357 wl=$lt_lt_prog_compiler_wl_RC
18358
18359 # Object file suffix (normally "o").
18360 objext="$ac_objext"
18361
18362 # Old archive suffix (normally "a").
18363 libext="$libext"
18364
18365 # Shared library suffix (normally ".so").
18366 shrext_cmds='$shrext_cmds'
18367
18368 # Executable file suffix (normally "").
18369 exeext="$exeext"
18370
18371 # Additional compiler flags for building library objects.
18372 pic_flag=$lt_lt_prog_compiler_pic_RC
18373 pic_mode=$pic_mode
18374
18375 # What is the maximum length of a command?
18376 max_cmd_len=$lt_cv_sys_max_cmd_len
18377
18378 # Does compiler simultaneously support -c and -o options?
18379 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18380
18381 # Must we lock files when doing compilation?
18382 need_locks=$lt_need_locks
18383
18384 # Do we need the lib prefix for modules?
18385 need_lib_prefix=$need_lib_prefix
18386
18387 # Do we need a version for libraries?
18388 need_version=$need_version
18389
18390 # Whether dlopen is supported.
18391 dlopen_support=$enable_dlopen
18392
18393 # Whether dlopen of programs is supported.
18394 dlopen_self=$enable_dlopen_self
18395
18396 # Whether dlopen of statically linked programs is supported.
18397 dlopen_self_static=$enable_dlopen_self_static
18398
18399 # Compiler flag to prevent dynamic linking.
18400 link_static_flag=$lt_lt_prog_compiler_static_RC
18401
18402 # Compiler flag to turn off builtin functions.
18403 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18404
18405 # Compiler flag to allow reflexive dlopens.
18406 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18407
18408 # Compiler flag to generate shared objects directly from archives.
18409 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18410
18411 # Compiler flag to generate thread-safe objects.
18412 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18413
18414 # Library versioning type.
18415 version_type=$version_type
18416
18417 # Format of library name prefix.
18418 libname_spec=$lt_libname_spec
18419
18420 # List of archive names.  First name is the real one, the rest are links.
18421 # The last name is the one that the linker finds with -lNAME.
18422 library_names_spec=$lt_library_names_spec
18423
18424 # The coded name of the library, if different from the real name.
18425 soname_spec=$lt_soname_spec
18426
18427 # Commands used to build and install an old-style archive.
18428 RANLIB=$lt_RANLIB
18429 old_archive_cmds=$lt_old_archive_cmds_RC
18430 old_postinstall_cmds=$lt_old_postinstall_cmds
18431 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18432
18433 # Create an old-style archive from a shared archive.
18434 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18435
18436 # Create a temporary old-style archive to link instead of a shared archive.
18437 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18438
18439 # Commands used to build and install a shared archive.
18440 archive_cmds=$lt_archive_cmds_RC
18441 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18442 postinstall_cmds=$lt_postinstall_cmds
18443 postuninstall_cmds=$lt_postuninstall_cmds
18444
18445 # Commands used to build a loadable module (assumed same as above if empty)
18446 module_cmds=$lt_module_cmds_RC
18447 module_expsym_cmds=$lt_module_expsym_cmds_RC
18448
18449 # Commands to strip libraries.
18450 old_striplib=$lt_old_striplib
18451 striplib=$lt_striplib
18452
18453 # Dependencies to place before the objects being linked to create a
18454 # shared library.
18455 predep_objects=$lt_predep_objects_RC
18456
18457 # Dependencies to place after the objects being linked to create a
18458 # shared library.
18459 postdep_objects=$lt_postdep_objects_RC
18460
18461 # Dependencies to place before the objects being linked to create a
18462 # shared library.
18463 predeps=$lt_predeps_RC
18464
18465 # Dependencies to place after the objects being linked to create a
18466 # shared library.
18467 postdeps=$lt_postdeps_RC
18468
18469 # The library search path used internally by the compiler when linking
18470 # a shared library.
18471 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18472
18473 # Method to check whether dependent libraries are shared objects.
18474 deplibs_check_method=$lt_deplibs_check_method
18475
18476 # Command to use when deplibs_check_method == file_magic.
18477 file_magic_cmd=$lt_file_magic_cmd
18478
18479 # Flag that allows shared libraries with undefined symbols to be built.
18480 allow_undefined_flag=$lt_allow_undefined_flag_RC
18481
18482 # Flag that forces no undefined symbols.
18483 no_undefined_flag=$lt_no_undefined_flag_RC
18484
18485 # Commands used to finish a libtool library installation in a directory.
18486 finish_cmds=$lt_finish_cmds
18487
18488 # Same as above, but a single script fragment to be evaled but not shown.
18489 finish_eval=$lt_finish_eval
18490
18491 # Take the output of nm and produce a listing of raw symbols and C names.
18492 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18493
18494 # Transform the output of nm in a proper C declaration
18495 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18496
18497 # Transform the output of nm in a C name address pair
18498 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18499
18500 # This is the shared library runtime path variable.
18501 runpath_var=$runpath_var
18502
18503 # This is the shared library path variable.
18504 shlibpath_var=$shlibpath_var
18505
18506 # Is shlibpath searched before the hard-coded library search path?
18507 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18508
18509 # How to hardcode a shared library path into an executable.
18510 hardcode_action=$hardcode_action_RC
18511
18512 # Whether we should hardcode library paths into libraries.
18513 hardcode_into_libs=$hardcode_into_libs
18514
18515 # Flag to hardcode \$libdir into a binary during linking.
18516 # This must work even if \$libdir does not exist.
18517 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18518
18519 # If ld is used when linking, flag to hardcode \$libdir into
18520 # a binary during linking. This must work even if \$libdir does
18521 # not exist.
18522 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18523
18524 # Whether we need a single -rpath flag with a separated argument.
18525 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18526
18527 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18528 # resulting binary.
18529 hardcode_direct=$hardcode_direct_RC
18530
18531 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18532 # resulting binary.
18533 hardcode_minus_L=$hardcode_minus_L_RC
18534
18535 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18536 # the resulting binary.
18537 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18538
18539 # Set to yes if building a shared library automatically hardcodes DIR into the library
18540 # and all subsequent libraries and executables linked against it.
18541 hardcode_automatic=$hardcode_automatic_RC
18542
18543 # Variables whose values should be saved in libtool wrapper scripts and
18544 # restored at relink time.
18545 variables_saved_for_relink="$variables_saved_for_relink"
18546
18547 # Whether libtool must link a program against all its dependency libraries.
18548 link_all_deplibs=$link_all_deplibs_RC
18549
18550 # Compile-time system search path for libraries
18551 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18552
18553 # Run-time system search path for libraries
18554 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18555
18556 # Fix the shell variable \$srcfile for the compiler.
18557 fix_srcfile_path="$fix_srcfile_path_RC"
18558
18559 # Set to yes if exported symbols are required.
18560 always_export_symbols=$always_export_symbols_RC
18561
18562 # The commands to list exported symbols.
18563 export_symbols_cmds=$lt_export_symbols_cmds_RC
18564
18565 # The commands to extract the exported symbol list from a shared archive.
18566 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18567
18568 # Symbols that should not be listed in the preloaded symbols.
18569 exclude_expsyms=$lt_exclude_expsyms_RC
18570
18571 # Symbols that must always be exported.
18572 include_expsyms=$lt_include_expsyms_RC
18573
18574 # ### END LIBTOOL TAG CONFIG: $tagname
18575
18576 __EOF__
18577
18578
18579 else
18580   # If there is no Makefile yet, we rely on a make rule to execute
18581   # `config.status --recheck' to rerun these tests and create the
18582   # libtool script then.
18583   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18584   if test -f "$ltmain_in"; then
18585     test -f Makefile && make "$ltmain"
18586   fi
18587 fi
18588
18589
18590 ac_ext=c
18591 ac_cpp='$CPP $CPPFLAGS'
18592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18595
18596 CC="$lt_save_CC"
18597
18598         ;;
18599
18600       *)
18601         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18602 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18603    { (exit 1); exit 1; }; }
18604         ;;
18605       esac
18606
18607       # Append the new tag name to the list of available tags.
18608       if test -n "$tagname" ; then
18609       available_tags="$available_tags $tagname"
18610     fi
18611     fi
18612   done
18613   IFS="$lt_save_ifs"
18614
18615   # Now substitute the updated list of available tags.
18616   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18617     mv "${ofile}T" "$ofile"
18618     chmod +x "$ofile"
18619   else
18620     rm -f "${ofile}T"
18621     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18622 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18623    { (exit 1); exit 1; }; }
18624   fi
18625 fi
18626
18627
18628
18629 # This can be used to rebuild libtool when needed
18630 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18631
18632 # Always use our own libtool.
18633 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18634
18635 # Prevent multiple expansion
18636
18637
18638
18639
18640
18641
18642
18643
18644
18645
18646
18647
18648
18649
18650
18651
18652
18653
18654
18655
18656
18657 cat >>confdefs.h <<\_ACEOF
18658 #define _GNU_SOURCE 1
18659 _ACEOF
18660
18661
18662
18663
18664 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
18665         if test -n "$ac_tool_prefix"; then
18666   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
18667 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
18668 echo "$as_me:$LINENO: checking for $ac_word" >&5
18669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18671   echo $ECHO_N "(cached) $ECHO_C" >&6
18672 else
18673   case $PKG_CONFIG in
18674   [\\/]* | ?:[\\/]*)
18675   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18676   ;;
18677   *)
18678   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18679 for as_dir in $PATH
18680 do
18681   IFS=$as_save_IFS
18682   test -z "$as_dir" && as_dir=.
18683   for ac_exec_ext in '' $ac_executable_extensions; do
18684   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18685     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18686     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18687     break 2
18688   fi
18689 done
18690 done
18691
18692   ;;
18693 esac
18694 fi
18695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18696
18697 if test -n "$PKG_CONFIG"; then
18698   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18699 echo "${ECHO_T}$PKG_CONFIG" >&6
18700 else
18701   echo "$as_me:$LINENO: result: no" >&5
18702 echo "${ECHO_T}no" >&6
18703 fi
18704
18705 fi
18706 if test -z "$ac_cv_path_PKG_CONFIG"; then
18707   ac_pt_PKG_CONFIG=$PKG_CONFIG
18708   # Extract the first word of "pkg-config", so it can be a program name with args.
18709 set dummy pkg-config; ac_word=$2
18710 echo "$as_me:$LINENO: checking for $ac_word" >&5
18711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18712 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
18713   echo $ECHO_N "(cached) $ECHO_C" >&6
18714 else
18715   case $ac_pt_PKG_CONFIG in
18716   [\\/]* | ?:[\\/]*)
18717   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
18718   ;;
18719   *)
18720   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18721 for as_dir in $PATH
18722 do
18723   IFS=$as_save_IFS
18724   test -z "$as_dir" && as_dir=.
18725   for ac_exec_ext in '' $ac_executable_extensions; do
18726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18727     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18729     break 2
18730   fi
18731 done
18732 done
18733
18734   ;;
18735 esac
18736 fi
18737 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
18738
18739 if test -n "$ac_pt_PKG_CONFIG"; then
18740   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
18741 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
18742 else
18743   echo "$as_me:$LINENO: result: no" >&5
18744 echo "${ECHO_T}no" >&6
18745 fi
18746
18747   PKG_CONFIG=$ac_pt_PKG_CONFIG
18748 else
18749   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
18750 fi
18751
18752 fi
18753 if test -n "$PKG_CONFIG"; then
18754         _pkg_min_version=0.9.0
18755         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
18756 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
18757         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
18758                 echo "$as_me:$LINENO: result: yes" >&5
18759 echo "${ECHO_T}yes" >&6
18760         else
18761                 echo "$as_me:$LINENO: result: no" >&5
18762 echo "${ECHO_T}no" >&6
18763                 PKG_CONFIG=""
18764         fi
18765
18766 fi
18767
18768 pkg_failed=no
18769 echo "$as_me:$LINENO: checking for DEPS" >&5
18770 echo $ECHO_N "checking for DEPS... $ECHO_C" >&6
18771
18772 if test -n "$PKG_CONFIG"; then
18773     if test -n "$DEPS_CFLAGS"; then
18774         pkg_cv_DEPS_CFLAGS="$DEPS_CFLAGS"
18775     else
18776         if test -n "$PKG_CONFIG" && \
18777     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
18778   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
18779   ac_status=$?
18780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18781   (exit $ac_status); }; then
18782   pkg_cv_DEPS_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
18783 else
18784   pkg_failed=yes
18785 fi
18786     fi
18787 else
18788         pkg_failed=untried
18789 fi
18790 if test -n "$PKG_CONFIG"; then
18791     if test -n "$DEPS_LIBS"; then
18792         pkg_cv_DEPS_LIBS="$DEPS_LIBS"
18793     else
18794         if test -n "$PKG_CONFIG" && \
18795     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
18796   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
18797   ac_status=$?
18798   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799   (exit $ac_status); }; then
18800   pkg_cv_DEPS_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
18801 else
18802   pkg_failed=yes
18803 fi
18804     fi
18805 else
18806         pkg_failed=untried
18807 fi
18808
18809
18810
18811 if test $pkg_failed = yes; then
18812
18813 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
18814         _pkg_short_errors_supported=yes
18815 else
18816         _pkg_short_errors_supported=no
18817 fi
18818         if test $_pkg_short_errors_supported = yes; then
18819                 DEPS_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
18820         else
18821                 DEPS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
18822         fi
18823         # Put the nasty error message in config.log where it belongs
18824         echo "$DEPS_PKG_ERRORS" >&5
18825
18826         { { echo "$as_me:$LINENO: error: Package requirements (sqlite3) were not met:
18827
18828 $DEPS_PKG_ERRORS
18829
18830 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18831 installed software in a non-standard prefix.
18832
18833 Alternatively, you may set the environment variables DEPS_CFLAGS
18834 and DEPS_LIBS to avoid the need to call pkg-config.
18835 See the pkg-config man page for more details.
18836 " >&5
18837 echo "$as_me: error: Package requirements (sqlite3) were not met:
18838
18839 $DEPS_PKG_ERRORS
18840
18841 Consider adjusting the PKG_CONFIG_PATH environment variable if you
18842 installed software in a non-standard prefix.
18843
18844 Alternatively, you may set the environment variables DEPS_CFLAGS
18845 and DEPS_LIBS to avoid the need to call pkg-config.
18846 See the pkg-config man page for more details.
18847 " >&2;}
18848    { (exit 1); exit 1; }; }
18849 elif test $pkg_failed = untried; then
18850         { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old.  Make sure it
18851 is in your PATH or set the PKG_CONFIG environment variable to the full
18852 path to pkg-config.
18853
18854 Alternatively, you may set the environment variables DEPS_CFLAGS
18855 and DEPS_LIBS to avoid the need to call pkg-config.
18856 See the pkg-config man page for more details.
18857
18858 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18859 See \`config.log' for more details." >&5
18860 echo "$as_me: error: The pkg-config script could not be found or is too old.  Make sure it
18861 is in your PATH or set the PKG_CONFIG environment variable to the full
18862 path to pkg-config.
18863
18864 Alternatively, you may set the environment variables DEPS_CFLAGS
18865 and DEPS_LIBS to avoid the need to call pkg-config.
18866 See the pkg-config man page for more details.
18867
18868 To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>.
18869 See \`config.log' for more details." >&2;}
18870    { (exit 1); exit 1; }; }
18871 else
18872         DEPS_CFLAGS=$pkg_cv_DEPS_CFLAGS
18873         DEPS_LIBS=$pkg_cv_DEPS_LIBS
18874         echo "$as_me:$LINENO: result: yes" >&5
18875 echo "${ECHO_T}yes" >&6
18876         :
18877 fi
18878
18879
18880
18881 # Check whether --enable-largefile or --disable-largefile was given.
18882 if test "${enable_largefile+set}" = set; then
18883   enableval="$enable_largefile"
18884
18885 fi;
18886 if test "$enable_largefile" != no; then
18887
18888   echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
18889 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
18890 if test "${ac_cv_sys_largefile_CC+set}" = set; then
18891   echo $ECHO_N "(cached) $ECHO_C" >&6
18892 else
18893   ac_cv_sys_largefile_CC=no
18894      if test "$GCC" != yes; then
18895        ac_save_CC=$CC
18896        while :; do
18897          # IRIX 6.2 and later do not support large files by default,
18898          # so use the C compiler's -n32 option if that helps.
18899          cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h.  */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h.  */
18905 #include <sys/types.h>
18906  /* Check that off_t can represent 2**63 - 1 correctly.
18907     We can't simply define LARGE_OFF_T to be 9223372036854775807,
18908     since some C++ compilers masquerading as C compilers
18909     incorrectly reject 9223372036854775807.  */
18910 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
18911   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
18912                        && LARGE_OFF_T % 2147483647 == 1)
18913                       ? 1 : -1];
18914 int
18915 main ()
18916 {
18917
18918   ;
18919   return 0;
18920 }
18921 _ACEOF
18922          rm -f conftest.$ac_objext
18923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18924   (eval $ac_compile) 2>conftest.er1
18925   ac_status=$?
18926   grep -v '^ *+' conftest.er1 >conftest.err
18927   rm -f conftest.er1
18928   cat conftest.err >&5
18929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930   (exit $ac_status); } &&
18931          { ac_try='test -z "$ac_c_werror_flag"
18932                          || test ! -s conftest.err'
18933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18934   (eval $ac_try) 2>&5
18935   ac_status=$?
18936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937   (exit $ac_status); }; } &&
18938          { ac_try='test -s conftest.$ac_objext'
18939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18940   (eval $ac_try) 2>&5
18941   ac_status=$?
18942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18943   (exit $ac_status); }; }; then
18944   break
18945 else
18946   echo "$as_me: failed program was:" >&5
18947 sed 's/^/| /' conftest.$ac_ext >&5
18948
18949 fi
18950 rm -f conftest.err conftest.$ac_objext
18951          CC="$CC -n32"
18952          rm -f conftest.$ac_objext
18953 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18954   (eval $ac_compile) 2>conftest.er1
18955   ac_status=$?
18956   grep -v '^ *+' conftest.er1 >conftest.err
18957   rm -f conftest.er1
18958   cat conftest.err >&5
18959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18960   (exit $ac_status); } &&
18961          { ac_try='test -z "$ac_c_werror_flag"
18962                          || test ! -s conftest.err'
18963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18964   (eval $ac_try) 2>&5
18965   ac_status=$?
18966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18967   (exit $ac_status); }; } &&
18968          { ac_try='test -s conftest.$ac_objext'
18969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18970   (eval $ac_try) 2>&5
18971   ac_status=$?
18972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18973   (exit $ac_status); }; }; then
18974   ac_cv_sys_largefile_CC=' -n32'; break
18975 else
18976   echo "$as_me: failed program was:" >&5
18977 sed 's/^/| /' conftest.$ac_ext >&5
18978
18979 fi
18980 rm -f conftest.err conftest.$ac_objext
18981          break
18982        done
18983        CC=$ac_save_CC
18984        rm -f conftest.$ac_ext
18985     fi
18986 fi
18987 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
18988 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
18989   if test "$ac_cv_sys_largefile_CC" != no; then
18990     CC=$CC$ac_cv_sys_largefile_CC
18991   fi
18992
18993   echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
18994 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
18995 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
18996   echo $ECHO_N "(cached) $ECHO_C" >&6
18997 else
18998   while :; do
18999   ac_cv_sys_file_offset_bits=no
19000   cat >conftest.$ac_ext <<_ACEOF
19001 /* confdefs.h.  */
19002 _ACEOF
19003 cat confdefs.h >>conftest.$ac_ext
19004 cat >>conftest.$ac_ext <<_ACEOF
19005 /* end confdefs.h.  */
19006 #include <sys/types.h>
19007  /* Check that off_t can represent 2**63 - 1 correctly.
19008     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19009     since some C++ compilers masquerading as C compilers
19010     incorrectly reject 9223372036854775807.  */
19011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19012   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19013                        && LARGE_OFF_T % 2147483647 == 1)
19014                       ? 1 : -1];
19015 int
19016 main ()
19017 {
19018
19019   ;
19020   return 0;
19021 }
19022 _ACEOF
19023 rm -f conftest.$ac_objext
19024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19025   (eval $ac_compile) 2>conftest.er1
19026   ac_status=$?
19027   grep -v '^ *+' conftest.er1 >conftest.err
19028   rm -f conftest.er1
19029   cat conftest.err >&5
19030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19031   (exit $ac_status); } &&
19032          { ac_try='test -z "$ac_c_werror_flag"
19033                          || test ! -s conftest.err'
19034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19035   (eval $ac_try) 2>&5
19036   ac_status=$?
19037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19038   (exit $ac_status); }; } &&
19039          { ac_try='test -s conftest.$ac_objext'
19040   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19041   (eval $ac_try) 2>&5
19042   ac_status=$?
19043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19044   (exit $ac_status); }; }; then
19045   break
19046 else
19047   echo "$as_me: failed program was:" >&5
19048 sed 's/^/| /' conftest.$ac_ext >&5
19049
19050 fi
19051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19052   cat >conftest.$ac_ext <<_ACEOF
19053 /* confdefs.h.  */
19054 _ACEOF
19055 cat confdefs.h >>conftest.$ac_ext
19056 cat >>conftest.$ac_ext <<_ACEOF
19057 /* end confdefs.h.  */
19058 #define _FILE_OFFSET_BITS 64
19059 #include <sys/types.h>
19060  /* Check that off_t can represent 2**63 - 1 correctly.
19061     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19062     since some C++ compilers masquerading as C compilers
19063     incorrectly reject 9223372036854775807.  */
19064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19065   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19066                        && LARGE_OFF_T % 2147483647 == 1)
19067                       ? 1 : -1];
19068 int
19069 main ()
19070 {
19071
19072   ;
19073   return 0;
19074 }
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19078   (eval $ac_compile) 2>conftest.er1
19079   ac_status=$?
19080   grep -v '^ *+' conftest.er1 >conftest.err
19081   rm -f conftest.er1
19082   cat conftest.err >&5
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); } &&
19085          { ac_try='test -z "$ac_c_werror_flag"
19086                          || test ! -s conftest.err'
19087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19088   (eval $ac_try) 2>&5
19089   ac_status=$?
19090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091   (exit $ac_status); }; } &&
19092          { ac_try='test -s conftest.$ac_objext'
19093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19094   (eval $ac_try) 2>&5
19095   ac_status=$?
19096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097   (exit $ac_status); }; }; then
19098   ac_cv_sys_file_offset_bits=64; break
19099 else
19100   echo "$as_me: failed program was:" >&5
19101 sed 's/^/| /' conftest.$ac_ext >&5
19102
19103 fi
19104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19105   break
19106 done
19107 fi
19108 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
19109 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
19110 if test "$ac_cv_sys_file_offset_bits" != no; then
19111
19112 cat >>confdefs.h <<_ACEOF
19113 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
19114 _ACEOF
19115
19116 fi
19117 rm -f conftest*
19118   echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
19119 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
19120 if test "${ac_cv_sys_large_files+set}" = set; then
19121   echo $ECHO_N "(cached) $ECHO_C" >&6
19122 else
19123   while :; do
19124   ac_cv_sys_large_files=no
19125   cat >conftest.$ac_ext <<_ACEOF
19126 /* confdefs.h.  */
19127 _ACEOF
19128 cat confdefs.h >>conftest.$ac_ext
19129 cat >>conftest.$ac_ext <<_ACEOF
19130 /* end confdefs.h.  */
19131 #include <sys/types.h>
19132  /* Check that off_t can represent 2**63 - 1 correctly.
19133     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19134     since some C++ compilers masquerading as C compilers
19135     incorrectly reject 9223372036854775807.  */
19136 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19137   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19138                        && LARGE_OFF_T % 2147483647 == 1)
19139                       ? 1 : -1];
19140 int
19141 main ()
19142 {
19143
19144   ;
19145   return 0;
19146 }
19147 _ACEOF
19148 rm -f conftest.$ac_objext
19149 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19150   (eval $ac_compile) 2>conftest.er1
19151   ac_status=$?
19152   grep -v '^ *+' conftest.er1 >conftest.err
19153   rm -f conftest.er1
19154   cat conftest.err >&5
19155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19156   (exit $ac_status); } &&
19157          { ac_try='test -z "$ac_c_werror_flag"
19158                          || test ! -s conftest.err'
19159   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19160   (eval $ac_try) 2>&5
19161   ac_status=$?
19162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163   (exit $ac_status); }; } &&
19164          { ac_try='test -s conftest.$ac_objext'
19165   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19166   (eval $ac_try) 2>&5
19167   ac_status=$?
19168   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169   (exit $ac_status); }; }; then
19170   break
19171 else
19172   echo "$as_me: failed program was:" >&5
19173 sed 's/^/| /' conftest.$ac_ext >&5
19174
19175 fi
19176 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19177   cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h.  */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h.  */
19183 #define _LARGE_FILES 1
19184 #include <sys/types.h>
19185  /* Check that off_t can represent 2**63 - 1 correctly.
19186     We can't simply define LARGE_OFF_T to be 9223372036854775807,
19187     since some C++ compilers masquerading as C compilers
19188     incorrectly reject 9223372036854775807.  */
19189 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
19190   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
19191                        && LARGE_OFF_T % 2147483647 == 1)
19192                       ? 1 : -1];
19193 int
19194 main ()
19195 {
19196
19197   ;
19198   return 0;
19199 }
19200 _ACEOF
19201 rm -f conftest.$ac_objext
19202 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19203   (eval $ac_compile) 2>conftest.er1
19204   ac_status=$?
19205   grep -v '^ *+' conftest.er1 >conftest.err
19206   rm -f conftest.er1
19207   cat conftest.err >&5
19208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209   (exit $ac_status); } &&
19210          { ac_try='test -z "$ac_c_werror_flag"
19211                          || test ! -s conftest.err'
19212   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19213   (eval $ac_try) 2>&5
19214   ac_status=$?
19215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216   (exit $ac_status); }; } &&
19217          { ac_try='test -s conftest.$ac_objext'
19218   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19219   (eval $ac_try) 2>&5
19220   ac_status=$?
19221   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19222   (exit $ac_status); }; }; then
19223   ac_cv_sys_large_files=1; break
19224 else
19225   echo "$as_me: failed program was:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19227
19228 fi
19229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19230   break
19231 done
19232 fi
19233 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
19234 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
19235 if test "$ac_cv_sys_large_files" != no; then
19236
19237 cat >>confdefs.h <<_ACEOF
19238 #define _LARGE_FILES $ac_cv_sys_large_files
19239 _ACEOF
19240
19241 fi
19242 rm -f conftest*
19243 fi
19244
19245
19246                               ac_config_files="$ac_config_files Makefile tests/Makefile libsqlfs.pc"
19247
19248
19249 cat >confcache <<\_ACEOF
19250 # This file is a shell script that caches the results of configure
19251 # tests run on this system so they can be shared between configure
19252 # scripts and configure runs, see configure's option --config-cache.
19253 # It is not useful on other systems.  If it contains results you don't
19254 # want to keep, you may remove or edit it.
19255 #
19256 # config.status only pays attention to the cache file if you give it
19257 # the --recheck option to rerun configure.
19258 #
19259 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19260 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19261 # following values.
19262
19263 _ACEOF
19264
19265 # The following way of writing the cache mishandles newlines in values,
19266 # but we know of no workaround that is simple, portable, and efficient.
19267 # So, don't put newlines in cache variables' values.
19268 # Ultrix sh set writes to stderr and can't be redirected directly,
19269 # and sets the high bit in the cache file unless we assign to the vars.
19270 {
19271   (set) 2>&1 |
19272     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19273     *ac_space=\ *)
19274       # `set' does not quote correctly, so add quotes (double-quote
19275       # substitution turns \\\\ into \\, and sed turns \\ into \).
19276       sed -n \
19277         "s/'/'\\\\''/g;
19278           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19279       ;;
19280     *)
19281       # `set' quotes correctly as required by POSIX, so do not add quotes.
19282       sed -n \
19283         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19284       ;;
19285     esac;
19286 } |
19287   sed '
19288      t clear
19289      : clear
19290      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19291      t end
19292      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19293      : end' >>confcache
19294 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19295   if test -w $cache_file; then
19296     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19297     cat confcache >$cache_file
19298   else
19299     echo "not updating unwritable cache $cache_file"
19300   fi
19301 fi
19302 rm -f confcache
19303
19304 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19305 # Let make expand exec_prefix.
19306 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19307
19308 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19309 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19310 # trailing colons and then remove the whole line if VPATH becomes empty
19311 # (actually we leave an empty line to preserve line numbers).
19312 if test "x$srcdir" = x.; then
19313   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19314 s/:*\$(srcdir):*/:/;
19315 s/:*\${srcdir}:*/:/;
19316 s/:*@srcdir@:*/:/;
19317 s/^\([^=]*=[     ]*\):*/\1/;
19318 s/:*$//;
19319 s/^[^=]*=[       ]*$//;
19320 }'
19321 fi
19322
19323 # Transform confdefs.h into DEFS.
19324 # Protect against shell expansion while executing Makefile rules.
19325 # Protect against Makefile macro expansion.
19326 #
19327 # If the first sed substitution is executed (which looks for macros that
19328 # take arguments), then we branch to the quote section.  Otherwise,
19329 # look for a macro that doesn't take arguments.
19330 cat >confdef2opt.sed <<\_ACEOF
19331 t clear
19332 : clear
19333 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
19334 t quote
19335 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
19336 t quote
19337 d
19338 : quote
19339 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
19340 s,\[,\\&,g
19341 s,\],\\&,g
19342 s,\$,$$,g
19343 p
19344 _ACEOF
19345 # We use echo to avoid assuming a particular line-breaking character.
19346 # The extra dot is to prevent the shell from consuming trailing
19347 # line-breaks from the sub-command output.  A line-break within
19348 # single-quotes doesn't work because, if this script is created in a
19349 # platform that uses two characters for line-breaks (e.g., DOS), tr
19350 # would break.
19351 ac_LF_and_DOT=`echo; echo .`
19352 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
19353 rm -f confdef2opt.sed
19354
19355
19356 ac_libobjs=
19357 ac_ltlibobjs=
19358 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19359   # 1. Remove the extension, and $U if already installed.
19360   ac_i=`echo "$ac_i" |
19361          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19362   # 2. Add them.
19363   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19364   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19365 done
19366 LIBOBJS=$ac_libobjs
19367
19368 LTLIBOBJS=$ac_ltlibobjs
19369
19370
19371 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19372   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19373 Usually this means the macro was only invoked conditionally." >&5
19374 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19375 Usually this means the macro was only invoked conditionally." >&2;}
19376    { (exit 1); exit 1; }; }
19377 fi
19378 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19379   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19380 Usually this means the macro was only invoked conditionally." >&5
19381 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19382 Usually this means the macro was only invoked conditionally." >&2;}
19383    { (exit 1); exit 1; }; }
19384 fi
19385 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19386   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19387 Usually this means the macro was only invoked conditionally." >&5
19388 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19389 Usually this means the macro was only invoked conditionally." >&2;}
19390    { (exit 1); exit 1; }; }
19391 fi
19392
19393 : ${CONFIG_STATUS=./config.status}
19394 ac_clean_files_save=$ac_clean_files
19395 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19396 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19397 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19398 cat >$CONFIG_STATUS <<_ACEOF
19399 #! $SHELL
19400 # Generated by $as_me.
19401 # Run this file to recreate the current configuration.
19402 # Compiler output produced by configure, useful for debugging
19403 # configure, is in config.log if it exists.
19404
19405 debug=false
19406 ac_cs_recheck=false
19407 ac_cs_silent=false
19408 SHELL=\${CONFIG_SHELL-$SHELL}
19409 _ACEOF
19410
19411 cat >>$CONFIG_STATUS <<\_ACEOF
19412 ## --------------------- ##
19413 ## M4sh Initialization.  ##
19414 ## --------------------- ##
19415
19416 # Be Bourne compatible
19417 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19418   emulate sh
19419   NULLCMD=:
19420   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19421   # is contrary to our usage.  Disable this feature.
19422   alias -g '${1+"$@"}'='"$@"'
19423 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19424   set -o posix
19425 fi
19426 DUALCASE=1; export DUALCASE # for MKS sh
19427
19428 # Support unset when possible.
19429 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19430   as_unset=unset
19431 else
19432   as_unset=false
19433 fi
19434
19435
19436 # Work around bugs in pre-3.0 UWIN ksh.
19437 $as_unset ENV MAIL MAILPATH
19438 PS1='$ '
19439 PS2='> '
19440 PS4='+ '
19441
19442 # NLS nuisances.
19443 for as_var in \
19444   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19445   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19446   LC_TELEPHONE LC_TIME
19447 do
19448   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19449     eval $as_var=C; export $as_var
19450   else
19451     $as_unset $as_var
19452   fi
19453 done
19454
19455 # Required to use basename.
19456 if expr a : '\(a\)' >/dev/null 2>&1; then
19457   as_expr=expr
19458 else
19459   as_expr=false
19460 fi
19461
19462 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19463   as_basename=basename
19464 else
19465   as_basename=false
19466 fi
19467
19468
19469 # Name of the executable.
19470 as_me=`$as_basename "$0" ||
19471 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19472          X"$0" : 'X\(//\)$' \| \
19473          X"$0" : 'X\(/\)$' \| \
19474          .     : '\(.\)' 2>/dev/null ||
19475 echo X/"$0" |
19476     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19477           /^X\/\(\/\/\)$/{ s//\1/; q; }
19478           /^X\/\(\/\).*/{ s//\1/; q; }
19479           s/.*/./; q'`
19480
19481
19482 # PATH needs CR, and LINENO needs CR and PATH.
19483 # Avoid depending upon Character Ranges.
19484 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19485 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19486 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19487 as_cr_digits='0123456789'
19488 as_cr_alnum=$as_cr_Letters$as_cr_digits
19489
19490 # The user is always right.
19491 if test "${PATH_SEPARATOR+set}" != set; then
19492   echo "#! /bin/sh" >conf$$.sh
19493   echo  "exit 0"   >>conf$$.sh
19494   chmod +x conf$$.sh
19495   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19496     PATH_SEPARATOR=';'
19497   else
19498     PATH_SEPARATOR=:
19499   fi
19500   rm -f conf$$.sh
19501 fi
19502
19503
19504   as_lineno_1=$LINENO
19505   as_lineno_2=$LINENO
19506   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19507   test "x$as_lineno_1" != "x$as_lineno_2" &&
19508   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19509   # Find who we are.  Look in the path if we contain no path at all
19510   # relative or not.
19511   case $0 in
19512     *[\\/]* ) as_myself=$0 ;;
19513     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19514 for as_dir in $PATH
19515 do
19516   IFS=$as_save_IFS
19517   test -z "$as_dir" && as_dir=.
19518   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19519 done
19520
19521        ;;
19522   esac
19523   # We did not find ourselves, most probably we were run as `sh COMMAND'
19524   # in which case we are not to be found in the path.
19525   if test "x$as_myself" = x; then
19526     as_myself=$0
19527   fi
19528   if test ! -f "$as_myself"; then
19529     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19530 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19531    { (exit 1); exit 1; }; }
19532   fi
19533   case $CONFIG_SHELL in
19534   '')
19535     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19536 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19537 do
19538   IFS=$as_save_IFS
19539   test -z "$as_dir" && as_dir=.
19540   for as_base in sh bash ksh sh5; do
19541          case $as_dir in
19542          /*)
19543            if ("$as_dir/$as_base" -c '
19544   as_lineno_1=$LINENO
19545   as_lineno_2=$LINENO
19546   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19547   test "x$as_lineno_1" != "x$as_lineno_2" &&
19548   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19549              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19550              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19551              CONFIG_SHELL=$as_dir/$as_base
19552              export CONFIG_SHELL
19553              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19554            fi;;
19555          esac
19556        done
19557 done
19558 ;;
19559   esac
19560
19561   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19562   # uniformly replaced by the line number.  The first 'sed' inserts a
19563   # line-number line before each line; the second 'sed' does the real
19564   # work.  The second script uses 'N' to pair each line-number line
19565   # with the numbered line, and appends trailing '-' during
19566   # substitution so that $LINENO is not a special case at line end.
19567   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19568   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19569   sed '=' <$as_myself |
19570     sed '
19571       N
19572       s,$,-,
19573       : loop
19574       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19575       t loop
19576       s,-$,,
19577       s,^['$as_cr_digits']*\n,,
19578     ' >$as_me.lineno &&
19579   chmod +x $as_me.lineno ||
19580     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19581 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19582    { (exit 1); exit 1; }; }
19583
19584   # Don't try to exec as it changes $[0], causing all sort of problems
19585   # (the dirname of $[0] is not the place where we might find the
19586   # original and so on.  Autoconf is especially sensible to this).
19587   . ./$as_me.lineno
19588   # Exit status is that of the last command.
19589   exit
19590 }
19591
19592
19593 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19594   *c*,-n*) ECHO_N= ECHO_C='
19595 ' ECHO_T='      ' ;;
19596   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19597   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19598 esac
19599
19600 if expr a : '\(a\)' >/dev/null 2>&1; then
19601   as_expr=expr
19602 else
19603   as_expr=false
19604 fi
19605
19606 rm -f conf$$ conf$$.exe conf$$.file
19607 echo >conf$$.file
19608 if ln -s conf$$.file conf$$ 2>/dev/null; then
19609   # We could just check for DJGPP; but this test a) works b) is more generic
19610   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19611   if test -f conf$$.exe; then
19612     # Don't use ln at all; we don't have any links
19613     as_ln_s='cp -p'
19614   else
19615     as_ln_s='ln -s'
19616   fi
19617 elif ln conf$$.file conf$$ 2>/dev/null; then
19618   as_ln_s=ln
19619 else
19620   as_ln_s='cp -p'
19621 fi
19622 rm -f conf$$ conf$$.exe conf$$.file
19623
19624 if mkdir -p . 2>/dev/null; then
19625   as_mkdir_p=:
19626 else
19627   test -d ./-p && rmdir ./-p
19628   as_mkdir_p=false
19629 fi
19630
19631 as_executable_p="test -f"
19632
19633 # Sed expression to map a string onto a valid CPP name.
19634 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19635
19636 # Sed expression to map a string onto a valid variable name.
19637 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19638
19639
19640 # IFS
19641 # We need space, tab and new line, in precisely that order.
19642 as_nl='
19643 '
19644 IFS="   $as_nl"
19645
19646 # CDPATH.
19647 $as_unset CDPATH
19648
19649 exec 6>&1
19650
19651 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19652 # report actual input values of CONFIG_FILES etc. instead of their
19653 # values after options handling.  Logging --version etc. is OK.
19654 exec 5>>config.log
19655 {
19656   echo
19657   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19658 ## Running $as_me. ##
19659 _ASBOX
19660 } >&5
19661 cat >&5 <<_CSEOF
19662
19663 This file was extended by $as_me, which was
19664 generated by GNU Autoconf 2.59.  Invocation command line was
19665
19666   CONFIG_FILES    = $CONFIG_FILES
19667   CONFIG_HEADERS  = $CONFIG_HEADERS
19668   CONFIG_LINKS    = $CONFIG_LINKS
19669   CONFIG_COMMANDS = $CONFIG_COMMANDS
19670   $ $0 $@
19671
19672 _CSEOF
19673 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19674 echo >&5
19675 _ACEOF
19676
19677 # Files that config.status was made for.
19678 if test -n "$ac_config_files"; then
19679   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19680 fi
19681
19682 if test -n "$ac_config_headers"; then
19683   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19684 fi
19685
19686 if test -n "$ac_config_links"; then
19687   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19688 fi
19689
19690 if test -n "$ac_config_commands"; then
19691   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19692 fi
19693
19694 cat >>$CONFIG_STATUS <<\_ACEOF
19695
19696 ac_cs_usage="\
19697 \`$as_me' instantiates files from templates according to the
19698 current configuration.
19699
19700 Usage: $0 [OPTIONS] [FILE]...
19701
19702   -h, --help       print this help, then exit
19703   -V, --version    print version number, then exit
19704   -q, --quiet      do not print progress messages
19705   -d, --debug      don't remove temporary files
19706       --recheck    update $as_me by reconfiguring in the same conditions
19707   --file=FILE[:TEMPLATE]
19708                    instantiate the configuration file FILE
19709
19710 Configuration files:
19711 $config_files
19712
19713 Configuration commands:
19714 $config_commands
19715
19716 Report bugs to <bug-autoconf@gnu.org>."
19717 _ACEOF
19718
19719 cat >>$CONFIG_STATUS <<_ACEOF
19720 ac_cs_version="\\
19721 config.status
19722 configured by $0, generated by GNU Autoconf 2.59,
19723   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19724
19725 Copyright (C) 2003 Free Software Foundation, Inc.
19726 This config.status script is free software; the Free Software Foundation
19727 gives unlimited permission to copy, distribute and modify it."
19728 srcdir=$srcdir
19729 INSTALL="$INSTALL"
19730 _ACEOF
19731
19732 cat >>$CONFIG_STATUS <<\_ACEOF
19733 # If no file are specified by the user, then we need to provide default
19734 # value.  By we need to know if files were specified by the user.
19735 ac_need_defaults=:
19736 while test $# != 0
19737 do
19738   case $1 in
19739   --*=*)
19740     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19741     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19742     ac_shift=:
19743     ;;
19744   -*)
19745     ac_option=$1
19746     ac_optarg=$2
19747     ac_shift=shift
19748     ;;
19749   *) # This is not an option, so the user has probably given explicit
19750      # arguments.
19751      ac_option=$1
19752      ac_need_defaults=false;;
19753   esac
19754
19755   case $ac_option in
19756   # Handling of the options.
19757 _ACEOF
19758 cat >>$CONFIG_STATUS <<\_ACEOF
19759   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19760     ac_cs_recheck=: ;;
19761   --version | --vers* | -V )
19762     echo "$ac_cs_version"; exit 0 ;;
19763   --he | --h)
19764     # Conflict between --help and --header
19765     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19766 Try \`$0 --help' for more information." >&5
19767 echo "$as_me: error: ambiguous option: $1
19768 Try \`$0 --help' for more information." >&2;}
19769    { (exit 1); exit 1; }; };;
19770   --help | --hel | -h )
19771     echo "$ac_cs_usage"; exit 0 ;;
19772   --debug | --d* | -d )
19773     debug=: ;;
19774   --file | --fil | --fi | --f )
19775     $ac_shift
19776     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19777     ac_need_defaults=false;;
19778   --header | --heade | --head | --hea )
19779     $ac_shift
19780     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19781     ac_need_defaults=false;;
19782   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19783   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19784     ac_cs_silent=: ;;
19785
19786   # This is an error.
19787   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19788 Try \`$0 --help' for more information." >&5
19789 echo "$as_me: error: unrecognized option: $1
19790 Try \`$0 --help' for more information." >&2;}
19791    { (exit 1); exit 1; }; } ;;
19792
19793   *) ac_config_targets="$ac_config_targets $1" ;;
19794
19795   esac
19796   shift
19797 done
19798
19799 ac_configure_extra_args=
19800
19801 if $ac_cs_silent; then
19802   exec 6>/dev/null
19803   ac_configure_extra_args="$ac_configure_extra_args --silent"
19804 fi
19805
19806 _ACEOF
19807 cat >>$CONFIG_STATUS <<_ACEOF
19808 if \$ac_cs_recheck; then
19809   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19810   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19811 fi
19812
19813 _ACEOF
19814
19815 cat >>$CONFIG_STATUS <<_ACEOF
19816 #
19817 # INIT-COMMANDS section.
19818 #
19819
19820 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19821
19822 _ACEOF
19823
19824
19825
19826 cat >>$CONFIG_STATUS <<\_ACEOF
19827 for ac_config_target in $ac_config_targets
19828 do
19829   case "$ac_config_target" in
19830   # Handling of arguments.
19831   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19832   "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
19833   "libsqlfs.pc" ) CONFIG_FILES="$CONFIG_FILES libsqlfs.pc" ;;
19834   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19835   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19836 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19837    { (exit 1); exit 1; }; };;
19838   esac
19839 done
19840
19841 # If the user did not use the arguments to specify the items to instantiate,
19842 # then the envvar interface is used.  Set only those that are not.
19843 # We use the long form for the default assignment because of an extremely
19844 # bizarre bug on SunOS 4.1.3.
19845 if $ac_need_defaults; then
19846   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19847   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19848 fi
19849
19850 # Have a temporary directory for convenience.  Make it in the build tree
19851 # simply because there is no reason to put it here, and in addition,
19852 # creating and moving files from /tmp can sometimes cause problems.
19853 # Create a temporary directory, and hook for its removal unless debugging.
19854 $debug ||
19855 {
19856   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19857   trap '{ (exit 1); exit 1; }' 1 2 13 15
19858 }
19859
19860 # Create a (secure) tmp directory for tmp files.
19861
19862 {
19863   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19864   test -n "$tmp" && test -d "$tmp"
19865 }  ||
19866 {
19867   tmp=./confstat$$-$RANDOM
19868   (umask 077 && mkdir $tmp)
19869 } ||
19870 {
19871    echo "$me: cannot create a temporary directory in ." >&2
19872    { (exit 1); exit 1; }
19873 }
19874
19875 _ACEOF
19876
19877 cat >>$CONFIG_STATUS <<_ACEOF
19878
19879 #
19880 # CONFIG_FILES section.
19881 #
19882
19883 # No need to generate the scripts if there are no CONFIG_FILES.
19884 # This happens for instance when ./config.status config.h
19885 if test -n "\$CONFIG_FILES"; then
19886   # Protect against being on the right side of a sed subst in config.status.
19887   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19888    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19889 s,@SHELL@,$SHELL,;t t
19890 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19891 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19892 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19893 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19894 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19895 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19896 s,@exec_prefix@,$exec_prefix,;t t
19897 s,@prefix@,$prefix,;t t
19898 s,@program_transform_name@,$program_transform_name,;t t
19899 s,@bindir@,$bindir,;t t
19900 s,@sbindir@,$sbindir,;t t
19901 s,@libexecdir@,$libexecdir,;t t
19902 s,@datadir@,$datadir,;t t
19903 s,@sysconfdir@,$sysconfdir,;t t
19904 s,@sharedstatedir@,$sharedstatedir,;t t
19905 s,@localstatedir@,$localstatedir,;t t
19906 s,@libdir@,$libdir,;t t
19907 s,@includedir@,$includedir,;t t
19908 s,@oldincludedir@,$oldincludedir,;t t
19909 s,@infodir@,$infodir,;t t
19910 s,@mandir@,$mandir,;t t
19911 s,@build_alias@,$build_alias,;t t
19912 s,@host_alias@,$host_alias,;t t
19913 s,@target_alias@,$target_alias,;t t
19914 s,@DEFS@,$DEFS,;t t
19915 s,@ECHO_C@,$ECHO_C,;t t
19916 s,@ECHO_N@,$ECHO_N,;t t
19917 s,@ECHO_T@,$ECHO_T,;t t
19918 s,@LIBS@,$LIBS,;t t
19919 s,@build@,$build,;t t
19920 s,@build_cpu@,$build_cpu,;t t
19921 s,@build_vendor@,$build_vendor,;t t
19922 s,@build_os@,$build_os,;t t
19923 s,@host@,$host,;t t
19924 s,@host_cpu@,$host_cpu,;t t
19925 s,@host_vendor@,$host_vendor,;t t
19926 s,@host_os@,$host_os,;t t
19927 s,@target@,$target,;t t
19928 s,@target_cpu@,$target_cpu,;t t
19929 s,@target_vendor@,$target_vendor,;t t
19930 s,@target_os@,$target_os,;t t
19931 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19932 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19933 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19934 s,@CYGPATH_W@,$CYGPATH_W,;t t
19935 s,@PACKAGE@,$PACKAGE,;t t
19936 s,@VERSION@,$VERSION,;t t
19937 s,@ACLOCAL@,$ACLOCAL,;t t
19938 s,@AUTOCONF@,$AUTOCONF,;t t
19939 s,@AUTOMAKE@,$AUTOMAKE,;t t
19940 s,@AUTOHEADER@,$AUTOHEADER,;t t
19941 s,@MAKEINFO@,$MAKEINFO,;t t
19942 s,@install_sh@,$install_sh,;t t
19943 s,@STRIP@,$STRIP,;t t
19944 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19945 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19946 s,@mkdir_p@,$mkdir_p,;t t
19947 s,@AWK@,$AWK,;t t
19948 s,@SET_MAKE@,$SET_MAKE,;t t
19949 s,@am__leading_dot@,$am__leading_dot,;t t
19950 s,@AMTAR@,$AMTAR,;t t
19951 s,@am__tar@,$am__tar,;t t
19952 s,@am__untar@,$am__untar,;t t
19953 s,@CC@,$CC,;t t
19954 s,@CFLAGS@,$CFLAGS,;t t
19955 s,@LDFLAGS@,$LDFLAGS,;t t
19956 s,@CPPFLAGS@,$CPPFLAGS,;t t
19957 s,@ac_ct_CC@,$ac_ct_CC,;t t
19958 s,@EXEEXT@,$EXEEXT,;t t
19959 s,@OBJEXT@,$OBJEXT,;t t
19960 s,@DEPDIR@,$DEPDIR,;t t
19961 s,@am__include@,$am__include,;t t
19962 s,@am__quote@,$am__quote,;t t
19963 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19964 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19965 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19966 s,@CCDEPMODE@,$CCDEPMODE,;t t
19967 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19968 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19969 s,@EGREP@,$EGREP,;t t
19970 s,@LN_S@,$LN_S,;t t
19971 s,@ECHO@,$ECHO,;t t
19972 s,@AR@,$AR,;t t
19973 s,@ac_ct_AR@,$ac_ct_AR,;t t
19974 s,@RANLIB@,$RANLIB,;t t
19975 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19976 s,@CPP@,$CPP,;t t
19977 s,@CXX@,$CXX,;t t
19978 s,@CXXFLAGS@,$CXXFLAGS,;t t
19979 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19980 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19981 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19982 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19983 s,@CXXCPP@,$CXXCPP,;t t
19984 s,@F77@,$F77,;t t
19985 s,@FFLAGS@,$FFLAGS,;t t
19986 s,@ac_ct_F77@,$ac_ct_F77,;t t
19987 s,@LIBTOOL@,$LIBTOOL,;t t
19988 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
19989 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
19990 s,@DEPS_CFLAGS@,$DEPS_CFLAGS,;t t
19991 s,@DEPS_LIBS@,$DEPS_LIBS,;t t
19992 s,@LIBOBJS@,$LIBOBJS,;t t
19993 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19994 CEOF
19995
19996 _ACEOF
19997
19998   cat >>$CONFIG_STATUS <<\_ACEOF
19999   # Split the substitutions into bite-sized pieces for seds with
20000   # small command number limits, like on Digital OSF/1 and HP-UX.
20001   ac_max_sed_lines=48
20002   ac_sed_frag=1 # Number of current file.
20003   ac_beg=1 # First line for current file.
20004   ac_end=$ac_max_sed_lines # Line after last line for current file.
20005   ac_more_lines=:
20006   ac_sed_cmds=
20007   while $ac_more_lines; do
20008     if test $ac_beg -gt 1; then
20009       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20010     else
20011       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20012     fi
20013     if test ! -s $tmp/subs.frag; then
20014       ac_more_lines=false
20015     else
20016       # The purpose of the label and of the branching condition is to
20017       # speed up the sed processing (if there are no `@' at all, there
20018       # is no need to browse any of the substitutions).
20019       # These are the two extra sed commands mentioned above.
20020       (echo ':t
20021   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20022       if test -z "$ac_sed_cmds"; then
20023         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20024       else
20025         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20026       fi
20027       ac_sed_frag=`expr $ac_sed_frag + 1`
20028       ac_beg=$ac_end
20029       ac_end=`expr $ac_end + $ac_max_sed_lines`
20030     fi
20031   done
20032   if test -z "$ac_sed_cmds"; then
20033     ac_sed_cmds=cat
20034   fi
20035 fi # test -n "$CONFIG_FILES"
20036
20037 _ACEOF
20038 cat >>$CONFIG_STATUS <<\_ACEOF
20039 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20040   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20041   case $ac_file in
20042   - | *:- | *:-:* ) # input from stdin
20043         cat >$tmp/stdin
20044         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20045         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20046   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20047         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20048   * )   ac_file_in=$ac_file.in ;;
20049   esac
20050
20051   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20052   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20053 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20054          X"$ac_file" : 'X\(//\)[^/]' \| \
20055          X"$ac_file" : 'X\(//\)$' \| \
20056          X"$ac_file" : 'X\(/\)' \| \
20057          .     : '\(.\)' 2>/dev/null ||
20058 echo X"$ac_file" |
20059     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20060           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20061           /^X\(\/\/\)$/{ s//\1/; q; }
20062           /^X\(\/\).*/{ s//\1/; q; }
20063           s/.*/./; q'`
20064   { if $as_mkdir_p; then
20065     mkdir -p "$ac_dir"
20066   else
20067     as_dir="$ac_dir"
20068     as_dirs=
20069     while test ! -d "$as_dir"; do
20070       as_dirs="$as_dir $as_dirs"
20071       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20073          X"$as_dir" : 'X\(//\)[^/]' \| \
20074          X"$as_dir" : 'X\(//\)$' \| \
20075          X"$as_dir" : 'X\(/\)' \| \
20076          .     : '\(.\)' 2>/dev/null ||
20077 echo X"$as_dir" |
20078     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20079           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20080           /^X\(\/\/\)$/{ s//\1/; q; }
20081           /^X\(\/\).*/{ s//\1/; q; }
20082           s/.*/./; q'`
20083     done
20084     test ! -n "$as_dirs" || mkdir $as_dirs
20085   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20086 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20087    { (exit 1); exit 1; }; }; }
20088
20089   ac_builddir=.
20090
20091 if test "$ac_dir" != .; then
20092   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20093   # A "../" for each directory in $ac_dir_suffix.
20094   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20095 else
20096   ac_dir_suffix= ac_top_builddir=
20097 fi
20098
20099 case $srcdir in
20100   .)  # No --srcdir option.  We are building in place.
20101     ac_srcdir=.
20102     if test -z "$ac_top_builddir"; then
20103        ac_top_srcdir=.
20104     else
20105        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20106     fi ;;
20107   [\\/]* | ?:[\\/]* )  # Absolute path.
20108     ac_srcdir=$srcdir$ac_dir_suffix;
20109     ac_top_srcdir=$srcdir ;;
20110   *) # Relative path.
20111     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20112     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20113 esac
20114
20115 # Do not use `cd foo && pwd` to compute absolute paths, because
20116 # the directories may not exist.
20117 case `pwd` in
20118 .) ac_abs_builddir="$ac_dir";;
20119 *)
20120   case "$ac_dir" in
20121   .) ac_abs_builddir=`pwd`;;
20122   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20123   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20124   esac;;
20125 esac
20126 case $ac_abs_builddir in
20127 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20128 *)
20129   case ${ac_top_builddir}. in
20130   .) ac_abs_top_builddir=$ac_abs_builddir;;
20131   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20132   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20133   esac;;
20134 esac
20135 case $ac_abs_builddir in
20136 .) ac_abs_srcdir=$ac_srcdir;;
20137 *)
20138   case $ac_srcdir in
20139   .) ac_abs_srcdir=$ac_abs_builddir;;
20140   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20141   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20142   esac;;
20143 esac
20144 case $ac_abs_builddir in
20145 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20146 *)
20147   case $ac_top_srcdir in
20148   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20149   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20150   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20151   esac;;
20152 esac
20153
20154
20155   case $INSTALL in
20156   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20157   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20158   esac
20159
20160   if test x"$ac_file" != x-; then
20161     { echo "$as_me:$LINENO: creating $ac_file" >&5
20162 echo "$as_me: creating $ac_file" >&6;}
20163     rm -f "$ac_file"
20164   fi
20165   # Let's still pretend it is `configure' which instantiates (i.e., don't
20166   # use $as_me), people would be surprised to read:
20167   #    /* config.h.  Generated by config.status.  */
20168   if test x"$ac_file" = x-; then
20169     configure_input=
20170   else
20171     configure_input="$ac_file.  "
20172   fi
20173   configure_input=$configure_input"Generated from `echo $ac_file_in |
20174                                      sed 's,.*/,,'` by configure."
20175
20176   # First look for the input files in the build tree, otherwise in the
20177   # src tree.
20178   ac_file_inputs=`IFS=:
20179     for f in $ac_file_in; do
20180       case $f in
20181       -) echo $tmp/stdin ;;
20182       [\\/$]*)
20183          # Absolute (can't be DOS-style, as IFS=:)
20184          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20185 echo "$as_me: error: cannot find input file: $f" >&2;}
20186    { (exit 1); exit 1; }; }
20187          echo "$f";;
20188       *) # Relative
20189          if test -f "$f"; then
20190            # Build tree
20191            echo "$f"
20192          elif test -f "$srcdir/$f"; then
20193            # Source tree
20194            echo "$srcdir/$f"
20195          else
20196            # /dev/null tree
20197            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20198 echo "$as_me: error: cannot find input file: $f" >&2;}
20199    { (exit 1); exit 1; }; }
20200          fi;;
20201       esac
20202     done` || { (exit 1); exit 1; }
20203 _ACEOF
20204 cat >>$CONFIG_STATUS <<_ACEOF
20205   sed "$ac_vpsub
20206 $extrasub
20207 _ACEOF
20208 cat >>$CONFIG_STATUS <<\_ACEOF
20209 :t
20210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20211 s,@configure_input@,$configure_input,;t t
20212 s,@srcdir@,$ac_srcdir,;t t
20213 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20214 s,@top_srcdir@,$ac_top_srcdir,;t t
20215 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20216 s,@builddir@,$ac_builddir,;t t
20217 s,@abs_builddir@,$ac_abs_builddir,;t t
20218 s,@top_builddir@,$ac_top_builddir,;t t
20219 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20220 s,@INSTALL@,$ac_INSTALL,;t t
20221 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20222   rm -f $tmp/stdin
20223   if test x"$ac_file" != x-; then
20224     mv $tmp/out $ac_file
20225   else
20226     cat $tmp/out
20227     rm -f $tmp/out
20228   fi
20229
20230 done
20231 _ACEOF
20232 cat >>$CONFIG_STATUS <<\_ACEOF
20233
20234 #
20235 # CONFIG_COMMANDS section.
20236 #
20237 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20238   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20239   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20240   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20241 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20242          X"$ac_dest" : 'X\(//\)[^/]' \| \
20243          X"$ac_dest" : 'X\(//\)$' \| \
20244          X"$ac_dest" : 'X\(/\)' \| \
20245          .     : '\(.\)' 2>/dev/null ||
20246 echo X"$ac_dest" |
20247     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20248           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20249           /^X\(\/\/\)$/{ s//\1/; q; }
20250           /^X\(\/\).*/{ s//\1/; q; }
20251           s/.*/./; q'`
20252   { if $as_mkdir_p; then
20253     mkdir -p "$ac_dir"
20254   else
20255     as_dir="$ac_dir"
20256     as_dirs=
20257     while test ! -d "$as_dir"; do
20258       as_dirs="$as_dir $as_dirs"
20259       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20260 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20261          X"$as_dir" : 'X\(//\)[^/]' \| \
20262          X"$as_dir" : 'X\(//\)$' \| \
20263          X"$as_dir" : 'X\(/\)' \| \
20264          .     : '\(.\)' 2>/dev/null ||
20265 echo X"$as_dir" |
20266     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20267           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20268           /^X\(\/\/\)$/{ s//\1/; q; }
20269           /^X\(\/\).*/{ s//\1/; q; }
20270           s/.*/./; q'`
20271     done
20272     test ! -n "$as_dirs" || mkdir $as_dirs
20273   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20274 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20275    { (exit 1); exit 1; }; }; }
20276
20277   ac_builddir=.
20278
20279 if test "$ac_dir" != .; then
20280   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20281   # A "../" for each directory in $ac_dir_suffix.
20282   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20283 else
20284   ac_dir_suffix= ac_top_builddir=
20285 fi
20286
20287 case $srcdir in
20288   .)  # No --srcdir option.  We are building in place.
20289     ac_srcdir=.
20290     if test -z "$ac_top_builddir"; then
20291        ac_top_srcdir=.
20292     else
20293        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20294     fi ;;
20295   [\\/]* | ?:[\\/]* )  # Absolute path.
20296     ac_srcdir=$srcdir$ac_dir_suffix;
20297     ac_top_srcdir=$srcdir ;;
20298   *) # Relative path.
20299     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20300     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20301 esac
20302
20303 # Do not use `cd foo && pwd` to compute absolute paths, because
20304 # the directories may not exist.
20305 case `pwd` in
20306 .) ac_abs_builddir="$ac_dir";;
20307 *)
20308   case "$ac_dir" in
20309   .) ac_abs_builddir=`pwd`;;
20310   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20311   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20312   esac;;
20313 esac
20314 case $ac_abs_builddir in
20315 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20316 *)
20317   case ${ac_top_builddir}. in
20318   .) ac_abs_top_builddir=$ac_abs_builddir;;
20319   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20320   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20321   esac;;
20322 esac
20323 case $ac_abs_builddir in
20324 .) ac_abs_srcdir=$ac_srcdir;;
20325 *)
20326   case $ac_srcdir in
20327   .) ac_abs_srcdir=$ac_abs_builddir;;
20328   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20329   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20330   esac;;
20331 esac
20332 case $ac_abs_builddir in
20333 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20334 *)
20335   case $ac_top_srcdir in
20336   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20337   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20338   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20339   esac;;
20340 esac
20341
20342
20343   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20344 echo "$as_me: executing $ac_dest commands" >&6;}
20345   case $ac_dest in
20346     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20347   # Strip MF so we end up with the name of the file.
20348   mf=`echo "$mf" | sed -e 's/:.*$//'`
20349   # Check whether this is an Automake generated Makefile or not.
20350   # We used to match only the files named `Makefile.in', but
20351   # some people rename them; so instead we look at the file content.
20352   # Grep'ing the first line is not enough: some people post-process
20353   # each Makefile.in and add a new line on top of each file to say so.
20354   # So let's grep whole file.
20355   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20356     dirpart=`(dirname "$mf") 2>/dev/null ||
20357 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20358          X"$mf" : 'X\(//\)[^/]' \| \
20359          X"$mf" : 'X\(//\)$' \| \
20360          X"$mf" : 'X\(/\)' \| \
20361          .     : '\(.\)' 2>/dev/null ||
20362 echo X"$mf" |
20363     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20364           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20365           /^X\(\/\/\)$/{ s//\1/; q; }
20366           /^X\(\/\).*/{ s//\1/; q; }
20367           s/.*/./; q'`
20368   else
20369     continue
20370   fi
20371   # Extract the definition of DEPDIR, am__include, and am__quote
20372   # from the Makefile without running `make'.
20373   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20374   test -z "$DEPDIR" && continue
20375   am__include=`sed -n 's/^am__include = //p' < "$mf"`
20376   test -z "am__include" && continue
20377   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20378   # When using ansi2knr, U may be empty or an underscore; expand it
20379   U=`sed -n 's/^U = //p' < "$mf"`
20380   # Find all dependency output files, they are included files with
20381   # $(DEPDIR) in their names.  We invoke sed twice because it is the
20382   # simplest approach to changing $(DEPDIR) to its actual value in the
20383   # expansion.
20384   for file in `sed -n "
20385     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20386        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20387     # Make sure the directory exists.
20388     test -f "$dirpart/$file" && continue
20389     fdir=`(dirname "$file") 2>/dev/null ||
20390 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20391          X"$file" : 'X\(//\)[^/]' \| \
20392          X"$file" : 'X\(//\)$' \| \
20393          X"$file" : 'X\(/\)' \| \
20394          .     : '\(.\)' 2>/dev/null ||
20395 echo X"$file" |
20396     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20397           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20398           /^X\(\/\/\)$/{ s//\1/; q; }
20399           /^X\(\/\).*/{ s//\1/; q; }
20400           s/.*/./; q'`
20401     { if $as_mkdir_p; then
20402     mkdir -p $dirpart/$fdir
20403   else
20404     as_dir=$dirpart/$fdir
20405     as_dirs=
20406     while test ! -d "$as_dir"; do
20407       as_dirs="$as_dir $as_dirs"
20408       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20410          X"$as_dir" : 'X\(//\)[^/]' \| \
20411          X"$as_dir" : 'X\(//\)$' \| \
20412          X"$as_dir" : 'X\(/\)' \| \
20413          .     : '\(.\)' 2>/dev/null ||
20414 echo X"$as_dir" |
20415     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20416           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20417           /^X\(\/\/\)$/{ s//\1/; q; }
20418           /^X\(\/\).*/{ s//\1/; q; }
20419           s/.*/./; q'`
20420     done
20421     test ! -n "$as_dirs" || mkdir $as_dirs
20422   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20423 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20424    { (exit 1); exit 1; }; }; }
20425
20426     # echo "creating $dirpart/$file"
20427     echo '# dummy' > "$dirpart/$file"
20428   done
20429 done
20430  ;;
20431   esac
20432 done
20433 _ACEOF
20434
20435 cat >>$CONFIG_STATUS <<\_ACEOF
20436
20437 { (exit 0); exit 0; }
20438 _ACEOF
20439 chmod +x $CONFIG_STATUS
20440 ac_clean_files=$ac_clean_files_save
20441
20442
20443 # configure is writing to config.log, and then calls config.status.
20444 # config.status does its own redirection, appending to config.log.
20445 # Unfortunately, on DOS this fails, as config.log is still kept open
20446 # by configure, so config.status won't be able to write to it; its
20447 # output is simply discarded.  So we exec the FD to /dev/null,
20448 # effectively closing config.log, so it can be properly (re)opened and
20449 # appended to by config.status.  When coming back to configure, we
20450 # need to make the FD available again.
20451 if test "$no_create" != yes; then
20452   ac_cs_success=:
20453   ac_config_status_args=
20454   test "$silent" = yes &&
20455     ac_config_status_args="$ac_config_status_args --quiet"
20456   exec 5>/dev/null
20457   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20458   exec 5>>config.log
20459   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20460   # would make configure fail if this is the last instruction.
20461   $ac_cs_success || { (exit 1); exit 1; }
20462 fi
20463
20464
20465
20466
20467
20468