118b0f39fe73aedf0e574a776b25a2ba2875a92e
[platform/upstream/syncevolution.git] / src / client-api / build / autotools / 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="../../src/c++/common/base/base64.cpp"
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 CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL CURL_LDFLAGS CURL_CFLAGS CPPUNIT_CXXFLAGS CPPUNIT_LDFLAGS CPPUNIT_TESTS 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_CXX_set=${CXX+set}
908 ac_env_CXX_value=$CXX
909 ac_cv_env_CXX_set=${CXX+set}
910 ac_cv_env_CXX_value=$CXX
911 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
912 ac_env_CXXFLAGS_value=$CXXFLAGS
913 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
914 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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_CC_set=${CC+set}
924 ac_env_CC_value=$CC
925 ac_cv_env_CC_set=${CC+set}
926 ac_cv_env_CC_value=$CC
927 ac_env_CFLAGS_set=${CFLAGS+set}
928 ac_env_CFLAGS_value=$CFLAGS
929 ac_cv_env_CFLAGS_set=${CFLAGS+set}
930 ac_cv_env_CFLAGS_value=$CFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
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
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952   # Omit some internal or obsolete options to make the list less imposing.
953   # This message is too long to be a string in the A/UX 3.1 sh.
954   cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE.  See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965   -h, --help              display this help and exit
966       --help=short        display options specific to this package
967       --help=recursive    display the short help of all the included packages
968   -V, --version           display version information and exit
969   -q, --quiet, --silent   do not print \`checking...' messages
970       --cache-file=FILE   cache test results in FILE [disabled]
971   -C, --config-cache      alias for \`--cache-file=config.cache'
972   -n, --no-create         do not create output files
973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977   cat <<_ACEOF
978 Installation directories:
979   --prefix=PREFIX         install architecture-independent files in PREFIX
980                           [$ac_default_prefix]
981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
982                           [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992   --bindir=DIR           user executables [EPREFIX/bin]
993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
994   --libexecdir=DIR       program executables [EPREFIX/libexec]
995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
999   --libdir=DIR           object code libraries [EPREFIX/lib]
1000   --includedir=DIR       C header files [PREFIX/include]
1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1002   --infodir=DIR          info documentation [PREFIX/info]
1003   --mandir=DIR           man documentation [PREFIX/man]
1004 _ACEOF
1005
1006   cat <<\_ACEOF
1007
1008 Program names:
1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1012
1013 System types:
1014   --build=BUILD     configure for building on BUILD [guessed]
1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1016   --target=TARGET   configure for building compilers for TARGET [HOST]
1017 _ACEOF
1018 fi
1019
1020 if test -n "$ac_init_help"; then
1021
1022   cat <<\_ACEOF
1023
1024 Optional Features:
1025   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1026   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1027   --disable-dependency-tracking  speeds up one-time build
1028   --enable-dependency-tracking   do not reject slow dependency extractors
1029   --enable-shared[=PKGS]
1030                           build shared libraries [default=yes]
1031   --enable-static[=PKGS]
1032                           build static libraries [default=yes]
1033   --enable-fast-install[=PKGS]
1034                           optimize for fast installation [default=yes]
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1036   --enable-unit-tests     enables tests embedded in the source code of the
1037                           library (changes content of the library)
1038   --enable-integration-tests
1039                           enables tests outside of the library (can be used
1040                           together with normal builds of the library)
1041   --enable-assert         turn on assertions
1042   --enable-wchar          enable Unicode wchar usage
1043
1044 Optional Packages:
1045   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1046   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1047   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1048   --with-pic              try to use only PIC/non-PIC objects [default=use
1049                           both]
1050   --with-tags[=TAGS]
1051                           include additional configurations [automatic]
1052
1053 Some influential environment variables:
1054   CXX         C++ compiler command
1055   CXXFLAGS    C++ compiler flags
1056   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1057               nonstandard directory <lib dir>
1058   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1059               headers in a nonstandard directory <include dir>
1060   CC          C compiler command
1061   CFLAGS      C compiler flags
1062   CPP         C preprocessor
1063   CXXCPP      C++ preprocessor
1064   F77         Fortran 77 compiler command
1065   FFLAGS      Fortran 77 compiler flags
1066
1067 Use these variables to override the choices made by `configure' or to help
1068 it to find libraries and programs with nonstandard names/locations.
1069
1070 _ACEOF
1071 fi
1072
1073 if test "$ac_init_help" = "recursive"; then
1074   # If there are subdirs, report their specific --help.
1075   ac_popdir=`pwd`
1076   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1077     test -d $ac_dir || continue
1078     ac_builddir=.
1079
1080 if test "$ac_dir" != .; then
1081   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1082   # A "../" for each directory in $ac_dir_suffix.
1083   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1084 else
1085   ac_dir_suffix= ac_top_builddir=
1086 fi
1087
1088 case $srcdir in
1089   .)  # No --srcdir option.  We are building in place.
1090     ac_srcdir=.
1091     if test -z "$ac_top_builddir"; then
1092        ac_top_srcdir=.
1093     else
1094        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1095     fi ;;
1096   [\\/]* | ?:[\\/]* )  # Absolute path.
1097     ac_srcdir=$srcdir$ac_dir_suffix;
1098     ac_top_srcdir=$srcdir ;;
1099   *) # Relative path.
1100     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1101     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1102 esac
1103
1104 # Do not use `cd foo && pwd` to compute absolute paths, because
1105 # the directories may not exist.
1106 case `pwd` in
1107 .) ac_abs_builddir="$ac_dir";;
1108 *)
1109   case "$ac_dir" in
1110   .) ac_abs_builddir=`pwd`;;
1111   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1112   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1113   esac;;
1114 esac
1115 case $ac_abs_builddir in
1116 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1117 *)
1118   case ${ac_top_builddir}. in
1119   .) ac_abs_top_builddir=$ac_abs_builddir;;
1120   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1121   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1122   esac;;
1123 esac
1124 case $ac_abs_builddir in
1125 .) ac_abs_srcdir=$ac_srcdir;;
1126 *)
1127   case $ac_srcdir in
1128   .) ac_abs_srcdir=$ac_abs_builddir;;
1129   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1130   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1131   esac;;
1132 esac
1133 case $ac_abs_builddir in
1134 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1135 *)
1136   case $ac_top_srcdir in
1137   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1138   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1139   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1140   esac;;
1141 esac
1142
1143     cd $ac_dir
1144     # Check for guested configure; otherwise get Cygnus style configure.
1145     if test -f $ac_srcdir/configure.gnu; then
1146       echo
1147       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1148     elif test -f $ac_srcdir/configure; then
1149       echo
1150       $SHELL $ac_srcdir/configure  --help=recursive
1151     elif test -f $ac_srcdir/configure.ac ||
1152            test -f $ac_srcdir/configure.in; then
1153       echo
1154       $ac_configure --help
1155     else
1156       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1157     fi
1158     cd $ac_popdir
1159   done
1160 fi
1161
1162 test -n "$ac_init_help" && exit 0
1163 if $ac_init_version; then
1164   cat <<\_ACEOF
1165
1166 Copyright (C) 2003 Free Software Foundation, Inc.
1167 This configure script is free software; the Free Software Foundation
1168 gives unlimited permission to copy, distribute and modify it.
1169 _ACEOF
1170   exit 0
1171 fi
1172 exec 5>config.log
1173 cat >&5 <<_ACEOF
1174 This file contains any messages produced by compilers while
1175 running configure, to aid debugging if configure makes a mistake.
1176
1177 It was created by $as_me, which was
1178 generated by GNU Autoconf 2.59.  Invocation command line was
1179
1180   $ $0 $@
1181
1182 _ACEOF
1183 {
1184 cat <<_ASUNAME
1185 ## --------- ##
1186 ## Platform. ##
1187 ## --------- ##
1188
1189 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1190 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1191 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1192 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1193 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1194
1195 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1196 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1197
1198 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1199 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1200 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1201 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1202 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1203 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1204 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1205
1206 _ASUNAME
1207
1208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1209 for as_dir in $PATH
1210 do
1211   IFS=$as_save_IFS
1212   test -z "$as_dir" && as_dir=.
1213   echo "PATH: $as_dir"
1214 done
1215
1216 } >&5
1217
1218 cat >&5 <<_ACEOF
1219
1220
1221 ## ----------- ##
1222 ## Core tests. ##
1223 ## ----------- ##
1224
1225 _ACEOF
1226
1227
1228 # Keep a trace of the command line.
1229 # Strip out --no-create and --no-recursion so they do not pile up.
1230 # Strip out --silent because we don't want to record it for future runs.
1231 # Also quote any args containing shell meta-characters.
1232 # Make two passes to allow for proper duplicate-argument suppression.
1233 ac_configure_args=
1234 ac_configure_args0=
1235 ac_configure_args1=
1236 ac_sep=
1237 ac_must_keep_next=false
1238 for ac_pass in 1 2
1239 do
1240   for ac_arg
1241   do
1242     case $ac_arg in
1243     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1244     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1245     | -silent | --silent | --silen | --sile | --sil)
1246       continue ;;
1247     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1248       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1249     esac
1250     case $ac_pass in
1251     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1252     2)
1253       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1254       if test $ac_must_keep_next = true; then
1255         ac_must_keep_next=false # Got value, back to normal.
1256       else
1257         case $ac_arg in
1258           *=* | --config-cache | -C | -disable-* | --disable-* \
1259           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1260           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1261           | -with-* | --with-* | -without-* | --without-* | --x)
1262             case "$ac_configure_args0 " in
1263               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1264             esac
1265             ;;
1266           -* ) ac_must_keep_next=true ;;
1267         esac
1268       fi
1269       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1270       # Get rid of the leading space.
1271       ac_sep=" "
1272       ;;
1273     esac
1274   done
1275 done
1276 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1277 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1278
1279 # When interrupted or exit'd, cleanup temporary files, and complete
1280 # config.log.  We remove comments because anyway the quotes in there
1281 # would cause problems or look ugly.
1282 # WARNING: Be sure not to use single quotes in there, as some shells,
1283 # such as our DU 5.0 friend, will then `close' the trap.
1284 trap 'exit_status=$?
1285   # Save into config.log some information that might help in debugging.
1286   {
1287     echo
1288
1289     cat <<\_ASBOX
1290 ## ---------------- ##
1291 ## Cache variables. ##
1292 ## ---------------- ##
1293 _ASBOX
1294     echo
1295     # The following way of writing the cache mishandles newlines in values,
1296 {
1297   (set) 2>&1 |
1298     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1299     *ac_space=\ *)
1300       sed -n \
1301         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1302           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1303       ;;
1304     *)
1305       sed -n \
1306         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1307       ;;
1308     esac;
1309 }
1310     echo
1311
1312     cat <<\_ASBOX
1313 ## ----------------- ##
1314 ## Output variables. ##
1315 ## ----------------- ##
1316 _ASBOX
1317     echo
1318     for ac_var in $ac_subst_vars
1319     do
1320       eval ac_val=$`echo $ac_var`
1321       echo "$ac_var='"'"'$ac_val'"'"'"
1322     done | sort
1323     echo
1324
1325     if test -n "$ac_subst_files"; then
1326       cat <<\_ASBOX
1327 ## ------------- ##
1328 ## Output files. ##
1329 ## ------------- ##
1330 _ASBOX
1331       echo
1332       for ac_var in $ac_subst_files
1333       do
1334         eval ac_val=$`echo $ac_var`
1335         echo "$ac_var='"'"'$ac_val'"'"'"
1336       done | sort
1337       echo
1338     fi
1339
1340     if test -s confdefs.h; then
1341       cat <<\_ASBOX
1342 ## ----------- ##
1343 ## confdefs.h. ##
1344 ## ----------- ##
1345 _ASBOX
1346       echo
1347       sed "/^$/d" confdefs.h | sort
1348       echo
1349     fi
1350     test "$ac_signal" != 0 &&
1351       echo "$as_me: caught signal $ac_signal"
1352     echo "$as_me: exit $exit_status"
1353   } >&5
1354   rm -f core *.core &&
1355   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1356     exit $exit_status
1357      ' 0
1358 for ac_signal in 1 2 13 15; do
1359   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1360 done
1361 ac_signal=0
1362
1363 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1364 rm -rf conftest* confdefs.h
1365 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1366 echo >confdefs.h
1367
1368 # Predefined preprocessor variables.
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_NAME "$PACKAGE_NAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_STRING "$PACKAGE_STRING"
1387 _ACEOF
1388
1389
1390 cat >>confdefs.h <<_ACEOF
1391 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1392 _ACEOF
1393
1394
1395 # Let the site file select an alternate cache file if it wants to.
1396 # Prefer explicitly selected file to automatically selected ones.
1397 if test -z "$CONFIG_SITE"; then
1398   if test "x$prefix" != xNONE; then
1399     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1400   else
1401     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1402   fi
1403 fi
1404 for ac_site_file in $CONFIG_SITE; do
1405   if test -r "$ac_site_file"; then
1406     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1407 echo "$as_me: loading site script $ac_site_file" >&6;}
1408     sed 's/^/| /' "$ac_site_file" >&5
1409     . "$ac_site_file"
1410   fi
1411 done
1412
1413 if test -r "$cache_file"; then
1414   # Some versions of bash will fail to source /dev/null (special
1415   # files actually), so we avoid doing that.
1416   if test -f "$cache_file"; then
1417     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1418 echo "$as_me: loading cache $cache_file" >&6;}
1419     case $cache_file in
1420       [\\/]* | ?:[\\/]* ) . $cache_file;;
1421       *)                      . ./$cache_file;;
1422     esac
1423   fi
1424 else
1425   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1426 echo "$as_me: creating cache $cache_file" >&6;}
1427   >$cache_file
1428 fi
1429
1430 # Check that the precious variables saved in the cache have kept the same
1431 # value.
1432 ac_cache_corrupted=false
1433 for ac_var in `(set) 2>&1 |
1434                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1435   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1436   eval ac_new_set=\$ac_env_${ac_var}_set
1437   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1438   eval ac_new_val="\$ac_env_${ac_var}_value"
1439   case $ac_old_set,$ac_new_set in
1440     set,)
1441       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1442 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1443       ac_cache_corrupted=: ;;
1444     ,set)
1445       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1446 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1447       ac_cache_corrupted=: ;;
1448     ,);;
1449     *)
1450       if test "x$ac_old_val" != "x$ac_new_val"; then
1451         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1452 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1453         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1454 echo "$as_me:   former value:  $ac_old_val" >&2;}
1455         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1456 echo "$as_me:   current value: $ac_new_val" >&2;}
1457         ac_cache_corrupted=:
1458       fi;;
1459   esac
1460   # Pass precious variables to config.status.
1461   if test "$ac_new_set" = set; then
1462     case $ac_new_val in
1463     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1464       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1465     *) ac_arg=$ac_var=$ac_new_val ;;
1466     esac
1467     case " $ac_configure_args " in
1468       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1469       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1470     esac
1471   fi
1472 done
1473 if $ac_cache_corrupted; then
1474   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1475 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1476   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1477 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1478    { (exit 1); exit 1; }; }
1479 fi
1480
1481 ac_ext=c
1482 ac_cpp='$CPP $CPPFLAGS'
1483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505 ac_aux_dir=
1506 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1507   if test -f $ac_dir/install-sh; then
1508     ac_aux_dir=$ac_dir
1509     ac_install_sh="$ac_aux_dir/install-sh -c"
1510     break
1511   elif test -f $ac_dir/install.sh; then
1512     ac_aux_dir=$ac_dir
1513     ac_install_sh="$ac_aux_dir/install.sh -c"
1514     break
1515   elif test -f $ac_dir/shtool; then
1516     ac_aux_dir=$ac_dir
1517     ac_install_sh="$ac_aux_dir/shtool install -c"
1518     break
1519   fi
1520 done
1521 if test -z "$ac_aux_dir"; then
1522   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1523 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1524    { (exit 1); exit 1; }; }
1525 fi
1526 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1527 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1528 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1529
1530 # Make sure we can run config.sub.
1531 $ac_config_sub sun4 >/dev/null 2>&1 ||
1532   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1533 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1534    { (exit 1); exit 1; }; }
1535
1536 echo "$as_me:$LINENO: checking build system type" >&5
1537 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1538 if test "${ac_cv_build+set}" = set; then
1539   echo $ECHO_N "(cached) $ECHO_C" >&6
1540 else
1541   ac_cv_build_alias=$build_alias
1542 test -z "$ac_cv_build_alias" &&
1543   ac_cv_build_alias=`$ac_config_guess`
1544 test -z "$ac_cv_build_alias" &&
1545   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1546 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1547    { (exit 1); exit 1; }; }
1548 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1549   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1550 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1551    { (exit 1); exit 1; }; }
1552
1553 fi
1554 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1555 echo "${ECHO_T}$ac_cv_build" >&6
1556 build=$ac_cv_build
1557 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1558 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1559 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1560
1561
1562 echo "$as_me:$LINENO: checking host system type" >&5
1563 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1564 if test "${ac_cv_host+set}" = set; then
1565   echo $ECHO_N "(cached) $ECHO_C" >&6
1566 else
1567   ac_cv_host_alias=$host_alias
1568 test -z "$ac_cv_host_alias" &&
1569   ac_cv_host_alias=$ac_cv_build_alias
1570 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1571   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1572 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1573    { (exit 1); exit 1; }; }
1574
1575 fi
1576 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1577 echo "${ECHO_T}$ac_cv_host" >&6
1578 host=$ac_cv_host
1579 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1580 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1581 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1582
1583
1584 echo "$as_me:$LINENO: checking target system type" >&5
1585 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1586 if test "${ac_cv_target+set}" = set; then
1587   echo $ECHO_N "(cached) $ECHO_C" >&6
1588 else
1589   ac_cv_target_alias=$target_alias
1590 test "x$ac_cv_target_alias" = "x" &&
1591   ac_cv_target_alias=$ac_cv_host_alias
1592 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1593   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1594 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1595    { (exit 1); exit 1; }; }
1596
1597 fi
1598 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1599 echo "${ECHO_T}$ac_cv_target" >&6
1600 target=$ac_cv_target
1601 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1602 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1603 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1604
1605
1606 # The aliases save the names the user supplied, while $host etc.
1607 # will get canonicalized.
1608 test -n "$target_alias" &&
1609   test "$program_prefix$program_suffix$program_transform_name" = \
1610     NONENONEs,x,x, &&
1611   program_prefix=${target_alias}-
1612 am__api_version="1.9"
1613 # Find a good install program.  We prefer a C program (faster),
1614 # so one script is as good as another.  But avoid the broken or
1615 # incompatible versions:
1616 # SysV /etc/install, /usr/sbin/install
1617 # SunOS /usr/etc/install
1618 # IRIX /sbin/install
1619 # AIX /bin/install
1620 # AmigaOS /C/install, which installs bootblocks on floppy discs
1621 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1622 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1623 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1624 # OS/2's system install, which has a completely different semantic
1625 # ./install, which can be erroneously created by make from ./install.sh.
1626 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1627 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1628 if test -z "$INSTALL"; then
1629 if test "${ac_cv_path_install+set}" = set; then
1630   echo $ECHO_N "(cached) $ECHO_C" >&6
1631 else
1632   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1633 for as_dir in $PATH
1634 do
1635   IFS=$as_save_IFS
1636   test -z "$as_dir" && as_dir=.
1637   # Account for people who put trailing slashes in PATH elements.
1638 case $as_dir/ in
1639   ./ | .// | /cC/* | \
1640   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1641   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1642   /usr/ucb/* ) ;;
1643   *)
1644     # OSF1 and SCO ODT 3.0 have their own names for install.
1645     # Don't use installbsd from OSF since it installs stuff as root
1646     # by default.
1647     for ac_prog in ginstall scoinst install; do
1648       for ac_exec_ext in '' $ac_executable_extensions; do
1649         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1650           if test $ac_prog = install &&
1651             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1652             # AIX install.  It has an incompatible calling convention.
1653             :
1654           elif test $ac_prog = install &&
1655             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1656             # program-specific install script used by HP pwplus--don't use.
1657             :
1658           else
1659             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1660             break 3
1661           fi
1662         fi
1663       done
1664     done
1665     ;;
1666 esac
1667 done
1668
1669
1670 fi
1671   if test "${ac_cv_path_install+set}" = set; then
1672     INSTALL=$ac_cv_path_install
1673   else
1674     # As a last resort, use the slow shell script.  We don't cache a
1675     # path for INSTALL within a source directory, because that will
1676     # break other packages using the cache if that directory is
1677     # removed, or if the path is relative.
1678     INSTALL=$ac_install_sh
1679   fi
1680 fi
1681 echo "$as_me:$LINENO: result: $INSTALL" >&5
1682 echo "${ECHO_T}$INSTALL" >&6
1683
1684 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1685 # It thinks the first close brace ends the variable substitution.
1686 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1687
1688 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1689
1690 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1691
1692 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1693 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1694 # Just in case
1695 sleep 1
1696 echo timestamp > conftest.file
1697 # Do `set' in a subshell so we don't clobber the current shell's
1698 # arguments.  Must try -L first in case configure is actually a
1699 # symlink; some systems play weird games with the mod time of symlinks
1700 # (eg FreeBSD returns the mod time of the symlink's containing
1701 # directory).
1702 if (
1703    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1704    if test "$*" = "X"; then
1705       # -L didn't work.
1706       set X `ls -t $srcdir/configure conftest.file`
1707    fi
1708    rm -f conftest.file
1709    if test "$*" != "X $srcdir/configure conftest.file" \
1710       && test "$*" != "X conftest.file $srcdir/configure"; then
1711
1712       # If neither matched, then we have a broken ls.  This can happen
1713       # if, for instance, CONFIG_SHELL is bash and it inherits a
1714       # broken ls alias from the environment.  This has actually
1715       # happened.  Such a system could not be considered "sane".
1716       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1717 alias in your environment" >&5
1718 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1719 alias in your environment" >&2;}
1720    { (exit 1); exit 1; }; }
1721    fi
1722
1723    test "$2" = conftest.file
1724    )
1725 then
1726    # Ok.
1727    :
1728 else
1729    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1730 Check your system clock" >&5
1731 echo "$as_me: error: newly created file is older than distributed files!
1732 Check your system clock" >&2;}
1733    { (exit 1); exit 1; }; }
1734 fi
1735 echo "$as_me:$LINENO: result: yes" >&5
1736 echo "${ECHO_T}yes" >&6
1737 test "$program_prefix" != NONE &&
1738   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1739 # Use a double $ so make ignores it.
1740 test "$program_suffix" != NONE &&
1741   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1742 # Double any \ or $.  echo might interpret backslashes.
1743 # By default was `s,x,x', remove it if useless.
1744 cat <<\_ACEOF >conftest.sed
1745 s/[\\$]/&&/g;s/;s,x,x,$//
1746 _ACEOF
1747 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1748 rm conftest.sed
1749
1750 # expand $ac_aux_dir to an absolute path
1751 am_aux_dir=`cd $ac_aux_dir && pwd`
1752
1753 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1754 # Use eval to expand $SHELL
1755 if eval "$MISSING --run true"; then
1756   am_missing_run="$MISSING --run "
1757 else
1758   am_missing_run=
1759   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1760 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1761 fi
1762
1763 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1764   # We used to keeping the `.' as first argument, in order to
1765   # allow $(mkdir_p) to be used without argument.  As in
1766   #   $(mkdir_p) $(somedir)
1767   # where $(somedir) is conditionally defined.  However this is wrong
1768   # for two reasons:
1769   #  1. if the package is installed by a user who cannot write `.'
1770   #     make install will fail,
1771   #  2. the above comment should most certainly read
1772   #     $(mkdir_p) $(DESTDIR)$(somedir)
1773   #     so it does not work when $(somedir) is undefined and
1774   #     $(DESTDIR) is not.
1775   #  To support the latter case, we have to write
1776   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1777   #  so the `.' trick is pointless.
1778   mkdir_p='mkdir -p --'
1779 else
1780   # On NextStep and OpenStep, the `mkdir' command does not
1781   # recognize any option.  It will interpret all options as
1782   # directories to create, and then abort because `.' already
1783   # exists.
1784   for d in ./-p ./--version;
1785   do
1786     test -d $d && rmdir $d
1787   done
1788   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1789   if test -f "$ac_aux_dir/mkinstalldirs"; then
1790     mkdir_p='$(mkinstalldirs)'
1791   else
1792     mkdir_p='$(install_sh) -d'
1793   fi
1794 fi
1795
1796 for ac_prog in gawk mawk nawk awk
1797 do
1798   # Extract the first word of "$ac_prog", so it can be a program name with args.
1799 set dummy $ac_prog; ac_word=$2
1800 echo "$as_me:$LINENO: checking for $ac_word" >&5
1801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1802 if test "${ac_cv_prog_AWK+set}" = set; then
1803   echo $ECHO_N "(cached) $ECHO_C" >&6
1804 else
1805   if test -n "$AWK"; then
1806   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1807 else
1808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1809 for as_dir in $PATH
1810 do
1811   IFS=$as_save_IFS
1812   test -z "$as_dir" && as_dir=.
1813   for ac_exec_ext in '' $ac_executable_extensions; do
1814   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1815     ac_cv_prog_AWK="$ac_prog"
1816     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1817     break 2
1818   fi
1819 done
1820 done
1821
1822 fi
1823 fi
1824 AWK=$ac_cv_prog_AWK
1825 if test -n "$AWK"; then
1826   echo "$as_me:$LINENO: result: $AWK" >&5
1827 echo "${ECHO_T}$AWK" >&6
1828 else
1829   echo "$as_me:$LINENO: result: no" >&5
1830 echo "${ECHO_T}no" >&6
1831 fi
1832
1833   test -n "$AWK" && break
1834 done
1835
1836 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1837 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1838 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1839 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1840   echo $ECHO_N "(cached) $ECHO_C" >&6
1841 else
1842   cat >conftest.make <<\_ACEOF
1843 all:
1844         @echo 'ac_maketemp="$(MAKE)"'
1845 _ACEOF
1846 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1847 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1848 if test -n "$ac_maketemp"; then
1849   eval ac_cv_prog_make_${ac_make}_set=yes
1850 else
1851   eval ac_cv_prog_make_${ac_make}_set=no
1852 fi
1853 rm -f conftest.make
1854 fi
1855 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1856   echo "$as_me:$LINENO: result: yes" >&5
1857 echo "${ECHO_T}yes" >&6
1858   SET_MAKE=
1859 else
1860   echo "$as_me:$LINENO: result: no" >&5
1861 echo "${ECHO_T}no" >&6
1862   SET_MAKE="MAKE=${MAKE-make}"
1863 fi
1864
1865 rm -rf .tst 2>/dev/null
1866 mkdir .tst 2>/dev/null
1867 if test -d .tst; then
1868   am__leading_dot=.
1869 else
1870   am__leading_dot=_
1871 fi
1872 rmdir .tst 2>/dev/null
1873
1874 # test to see if srcdir already configured
1875 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1876    test -f $srcdir/config.status; then
1877   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1878 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1879    { (exit 1); exit 1; }; }
1880 fi
1881
1882 # test whether we have cygpath
1883 if test -z "$CYGPATH_W"; then
1884   if (cygpath --version) >/dev/null 2>/dev/null; then
1885     CYGPATH_W='cygpath -w'
1886   else
1887     CYGPATH_W=echo
1888   fi
1889 fi
1890
1891
1892 # Define the identity of the package.
1893  PACKAGE=funambol
1894  VERSION=2.0
1895
1896
1897 cat >>confdefs.h <<_ACEOF
1898 #define PACKAGE "$PACKAGE"
1899 _ACEOF
1900
1901
1902 cat >>confdefs.h <<_ACEOF
1903 #define VERSION "$VERSION"
1904 _ACEOF
1905
1906 # Some tools Automake needs.
1907
1908 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1909
1910
1911 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1912
1913
1914 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1915
1916
1917 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1918
1919
1920 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1921
1922 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1923
1924 # Installed binaries are usually stripped using `strip' when the user
1925 # run `make install-strip'.  However `strip' might not be the right
1926 # tool to use in cross-compilation environments, therefore Automake
1927 # will honor the `STRIP' environment variable to overrule this program.
1928 if test "$cross_compiling" != no; then
1929   if test -n "$ac_tool_prefix"; then
1930   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1931 set dummy ${ac_tool_prefix}strip; ac_word=$2
1932 echo "$as_me:$LINENO: checking for $ac_word" >&5
1933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1934 if test "${ac_cv_prog_STRIP+set}" = set; then
1935   echo $ECHO_N "(cached) $ECHO_C" >&6
1936 else
1937   if test -n "$STRIP"; then
1938   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1939 else
1940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1941 for as_dir in $PATH
1942 do
1943   IFS=$as_save_IFS
1944   test -z "$as_dir" && as_dir=.
1945   for ac_exec_ext in '' $ac_executable_extensions; do
1946   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1947     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1948     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1949     break 2
1950   fi
1951 done
1952 done
1953
1954 fi
1955 fi
1956 STRIP=$ac_cv_prog_STRIP
1957 if test -n "$STRIP"; then
1958   echo "$as_me:$LINENO: result: $STRIP" >&5
1959 echo "${ECHO_T}$STRIP" >&6
1960 else
1961   echo "$as_me:$LINENO: result: no" >&5
1962 echo "${ECHO_T}no" >&6
1963 fi
1964
1965 fi
1966 if test -z "$ac_cv_prog_STRIP"; then
1967   ac_ct_STRIP=$STRIP
1968   # Extract the first word of "strip", so it can be a program name with args.
1969 set dummy strip; ac_word=$2
1970 echo "$as_me:$LINENO: checking for $ac_word" >&5
1971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1972 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1973   echo $ECHO_N "(cached) $ECHO_C" >&6
1974 else
1975   if test -n "$ac_ct_STRIP"; then
1976   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1977 else
1978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1979 for as_dir in $PATH
1980 do
1981   IFS=$as_save_IFS
1982   test -z "$as_dir" && as_dir=.
1983   for ac_exec_ext in '' $ac_executable_extensions; do
1984   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1985     ac_cv_prog_ac_ct_STRIP="strip"
1986     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1987     break 2
1988   fi
1989 done
1990 done
1991
1992   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1993 fi
1994 fi
1995 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1996 if test -n "$ac_ct_STRIP"; then
1997   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1998 echo "${ECHO_T}$ac_ct_STRIP" >&6
1999 else
2000   echo "$as_me:$LINENO: result: no" >&5
2001 echo "${ECHO_T}no" >&6
2002 fi
2003
2004   STRIP=$ac_ct_STRIP
2005 else
2006   STRIP="$ac_cv_prog_STRIP"
2007 fi
2008
2009 fi
2010 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2011
2012 # We need awk for the "check" target.  The system "awk" is bad on
2013 # some platforms.
2014 # Always define AMTAR for backward compatibility.
2015
2016 AMTAR=${AMTAR-"${am_missing_run}tar"}
2017
2018 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2019
2020
2021
2022
2023
2024           ac_config_headers="$ac_config_headers config.h"
2025
2026
2027 ac_ext=cc
2028 ac_cpp='$CXXCPP $CPPFLAGS'
2029 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2030 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2031 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2032 if test -n "$ac_tool_prefix"; then
2033   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2034   do
2035     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2036 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2037 echo "$as_me:$LINENO: checking for $ac_word" >&5
2038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2039 if test "${ac_cv_prog_CXX+set}" = set; then
2040   echo $ECHO_N "(cached) $ECHO_C" >&6
2041 else
2042   if test -n "$CXX"; then
2043   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2044 else
2045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2046 for as_dir in $PATH
2047 do
2048   IFS=$as_save_IFS
2049   test -z "$as_dir" && as_dir=.
2050   for ac_exec_ext in '' $ac_executable_extensions; do
2051   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2052     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2053     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2054     break 2
2055   fi
2056 done
2057 done
2058
2059 fi
2060 fi
2061 CXX=$ac_cv_prog_CXX
2062 if test -n "$CXX"; then
2063   echo "$as_me:$LINENO: result: $CXX" >&5
2064 echo "${ECHO_T}$CXX" >&6
2065 else
2066   echo "$as_me:$LINENO: result: no" >&5
2067 echo "${ECHO_T}no" >&6
2068 fi
2069
2070     test -n "$CXX" && break
2071   done
2072 fi
2073 if test -z "$CXX"; then
2074   ac_ct_CXX=$CXX
2075   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2076 do
2077   # Extract the first word of "$ac_prog", so it can be a program name with args.
2078 set dummy $ac_prog; ac_word=$2
2079 echo "$as_me:$LINENO: checking for $ac_word" >&5
2080 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2081 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2082   echo $ECHO_N "(cached) $ECHO_C" >&6
2083 else
2084   if test -n "$ac_ct_CXX"; then
2085   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2086 else
2087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2088 for as_dir in $PATH
2089 do
2090   IFS=$as_save_IFS
2091   test -z "$as_dir" && as_dir=.
2092   for ac_exec_ext in '' $ac_executable_extensions; do
2093   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2094     ac_cv_prog_ac_ct_CXX="$ac_prog"
2095     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2096     break 2
2097   fi
2098 done
2099 done
2100
2101 fi
2102 fi
2103 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2104 if test -n "$ac_ct_CXX"; then
2105   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2106 echo "${ECHO_T}$ac_ct_CXX" >&6
2107 else
2108   echo "$as_me:$LINENO: result: no" >&5
2109 echo "${ECHO_T}no" >&6
2110 fi
2111
2112   test -n "$ac_ct_CXX" && break
2113 done
2114 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2115
2116   CXX=$ac_ct_CXX
2117 fi
2118
2119
2120 # Provide some information about the compiler.
2121 echo "$as_me:$LINENO:" \
2122      "checking for C++ compiler version" >&5
2123 ac_compiler=`set X $ac_compile; echo $2`
2124 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2125   (eval $ac_compiler --version </dev/null >&5) 2>&5
2126   ac_status=$?
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); }
2129 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2130   (eval $ac_compiler -v </dev/null >&5) 2>&5
2131   ac_status=$?
2132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2133   (exit $ac_status); }
2134 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2135   (eval $ac_compiler -V </dev/null >&5) 2>&5
2136   ac_status=$?
2137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138   (exit $ac_status); }
2139
2140 cat >conftest.$ac_ext <<_ACEOF
2141 /* confdefs.h.  */
2142 _ACEOF
2143 cat confdefs.h >>conftest.$ac_ext
2144 cat >>conftest.$ac_ext <<_ACEOF
2145 /* end confdefs.h.  */
2146
2147 int
2148 main ()
2149 {
2150
2151   ;
2152   return 0;
2153 }
2154 _ACEOF
2155 ac_clean_files_save=$ac_clean_files
2156 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2157 # Try to create an executable without -o first, disregard a.out.
2158 # It will help us diagnose broken compilers, and finding out an intuition
2159 # of exeext.
2160 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2161 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2162 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2163 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2164   (eval $ac_link_default) 2>&5
2165   ac_status=$?
2166   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167   (exit $ac_status); }; then
2168   # Find the output, starting from the most likely.  This scheme is
2169 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2170 # resort.
2171
2172 # Be careful to initialize this variable, since it used to be cached.
2173 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2174 ac_cv_exeext=
2175 # b.out is created by i960 compilers.
2176 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2177 do
2178   test -f "$ac_file" || continue
2179   case $ac_file in
2180     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2181         ;;
2182     conftest.$ac_ext )
2183         # This is the source file.
2184         ;;
2185     [ab].out )
2186         # We found the default executable, but exeext='' is most
2187         # certainly right.
2188         break;;
2189     *.* )
2190         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2191         # FIXME: I believe we export ac_cv_exeext for Libtool,
2192         # but it would be cool to find out if it's true.  Does anybody
2193         # maintain Libtool? --akim.
2194         export ac_cv_exeext
2195         break;;
2196     * )
2197         break;;
2198   esac
2199 done
2200 else
2201   echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2203
2204 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: C++ compiler cannot create executables
2207 See \`config.log' for more details." >&2;}
2208    { (exit 77); exit 77; }; }
2209 fi
2210
2211 ac_exeext=$ac_cv_exeext
2212 echo "$as_me:$LINENO: result: $ac_file" >&5
2213 echo "${ECHO_T}$ac_file" >&6
2214
2215 # Check the compiler produces executables we can run.  If not, either
2216 # the compiler is broken, or we cross compile.
2217 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2218 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2219 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220 # If not cross compiling, check that we can run a simple program.
2221 if test "$cross_compiling" != yes; then
2222   if { ac_try='./$ac_file'
2223   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224   (eval $ac_try) 2>&5
2225   ac_status=$?
2226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227   (exit $ac_status); }; }; then
2228     cross_compiling=no
2229   else
2230     if test "$cross_compiling" = maybe; then
2231         cross_compiling=yes
2232     else
2233         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2234 If you meant to cross compile, use \`--host'.
2235 See \`config.log' for more details." >&5
2236 echo "$as_me: error: cannot run C++ compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&2;}
2239    { (exit 1); exit 1; }; }
2240     fi
2241   fi
2242 fi
2243 echo "$as_me:$LINENO: result: yes" >&5
2244 echo "${ECHO_T}yes" >&6
2245
2246 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2247 ac_clean_files=$ac_clean_files_save
2248 # Check the compiler produces executables we can run.  If not, either
2249 # the compiler is broken, or we cross compile.
2250 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2251 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2252 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2253 echo "${ECHO_T}$cross_compiling" >&6
2254
2255 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2256 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2257 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2258   (eval $ac_link) 2>&5
2259   ac_status=$?
2260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2261   (exit $ac_status); }; then
2262   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2263 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2264 # work properly (i.e., refer to `conftest.exe'), while it won't with
2265 # `rm'.
2266 for ac_file in conftest.exe conftest conftest.*; do
2267   test -f "$ac_file" || continue
2268   case $ac_file in
2269     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2270     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2271           export ac_cv_exeext
2272           break;;
2273     * ) break;;
2274   esac
2275 done
2276 else
2277   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2278 See \`config.log' for more details." >&5
2279 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2280 See \`config.log' for more details." >&2;}
2281    { (exit 1); exit 1; }; }
2282 fi
2283
2284 rm -f conftest$ac_cv_exeext
2285 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2286 echo "${ECHO_T}$ac_cv_exeext" >&6
2287
2288 rm -f conftest.$ac_ext
2289 EXEEXT=$ac_cv_exeext
2290 ac_exeext=$EXEEXT
2291 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2292 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2293 if test "${ac_cv_objext+set}" = set; then
2294   echo $ECHO_N "(cached) $ECHO_C" >&6
2295 else
2296   cat >conftest.$ac_ext <<_ACEOF
2297 /* confdefs.h.  */
2298 _ACEOF
2299 cat confdefs.h >>conftest.$ac_ext
2300 cat >>conftest.$ac_ext <<_ACEOF
2301 /* end confdefs.h.  */
2302
2303 int
2304 main ()
2305 {
2306
2307   ;
2308   return 0;
2309 }
2310 _ACEOF
2311 rm -f conftest.o conftest.obj
2312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2313   (eval $ac_compile) 2>&5
2314   ac_status=$?
2315   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2316   (exit $ac_status); }; then
2317   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2318   case $ac_file in
2319     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2320     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2321        break;;
2322   esac
2323 done
2324 else
2325   echo "$as_me: failed program was:" >&5
2326 sed 's/^/| /' conftest.$ac_ext >&5
2327
2328 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2329 See \`config.log' for more details." >&5
2330 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2331 See \`config.log' for more details." >&2;}
2332    { (exit 1); exit 1; }; }
2333 fi
2334
2335 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2336 fi
2337 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2338 echo "${ECHO_T}$ac_cv_objext" >&6
2339 OBJEXT=$ac_cv_objext
2340 ac_objext=$OBJEXT
2341 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2342 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2343 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2344   echo $ECHO_N "(cached) $ECHO_C" >&6
2345 else
2346   cat >conftest.$ac_ext <<_ACEOF
2347 /* confdefs.h.  */
2348 _ACEOF
2349 cat confdefs.h >>conftest.$ac_ext
2350 cat >>conftest.$ac_ext <<_ACEOF
2351 /* end confdefs.h.  */
2352
2353 int
2354 main ()
2355 {
2356 #ifndef __GNUC__
2357        choke me
2358 #endif
2359
2360   ;
2361   return 0;
2362 }
2363 _ACEOF
2364 rm -f conftest.$ac_objext
2365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2366   (eval $ac_compile) 2>conftest.er1
2367   ac_status=$?
2368   grep -v '^ *+' conftest.er1 >conftest.err
2369   rm -f conftest.er1
2370   cat conftest.err >&5
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); } &&
2373          { ac_try='test -z "$ac_cxx_werror_flag"
2374                          || test ! -s conftest.err'
2375   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2376   (eval $ac_try) 2>&5
2377   ac_status=$?
2378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2379   (exit $ac_status); }; } &&
2380          { ac_try='test -s conftest.$ac_objext'
2381   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2382   (eval $ac_try) 2>&5
2383   ac_status=$?
2384   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385   (exit $ac_status); }; }; then
2386   ac_compiler_gnu=yes
2387 else
2388   echo "$as_me: failed program was:" >&5
2389 sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 ac_compiler_gnu=no
2392 fi
2393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2394 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2395
2396 fi
2397 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2398 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2399 GXX=`test $ac_compiler_gnu = yes && echo yes`
2400 ac_test_CXXFLAGS=${CXXFLAGS+set}
2401 ac_save_CXXFLAGS=$CXXFLAGS
2402 CXXFLAGS="-g"
2403 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2404 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2405 if test "${ac_cv_prog_cxx_g+set}" = set; then
2406   echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408   cat >conftest.$ac_ext <<_ACEOF
2409 /* confdefs.h.  */
2410 _ACEOF
2411 cat confdefs.h >>conftest.$ac_ext
2412 cat >>conftest.$ac_ext <<_ACEOF
2413 /* end confdefs.h.  */
2414
2415 int
2416 main ()
2417 {
2418
2419   ;
2420   return 0;
2421 }
2422 _ACEOF
2423 rm -f conftest.$ac_objext
2424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2425   (eval $ac_compile) 2>conftest.er1
2426   ac_status=$?
2427   grep -v '^ *+' conftest.er1 >conftest.err
2428   rm -f conftest.er1
2429   cat conftest.err >&5
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); } &&
2432          { ac_try='test -z "$ac_cxx_werror_flag"
2433                          || test ! -s conftest.err'
2434   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2435   (eval $ac_try) 2>&5
2436   ac_status=$?
2437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2438   (exit $ac_status); }; } &&
2439          { ac_try='test -s conftest.$ac_objext'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; }; then
2445   ac_cv_prog_cxx_g=yes
2446 else
2447   echo "$as_me: failed program was:" >&5
2448 sed 's/^/| /' conftest.$ac_ext >&5
2449
2450 ac_cv_prog_cxx_g=no
2451 fi
2452 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2453 fi
2454 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2455 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2456 if test "$ac_test_CXXFLAGS" = set; then
2457   CXXFLAGS=$ac_save_CXXFLAGS
2458 elif test $ac_cv_prog_cxx_g = yes; then
2459   if test "$GXX" = yes; then
2460     CXXFLAGS="-g -O2"
2461   else
2462     CXXFLAGS="-g"
2463   fi
2464 else
2465   if test "$GXX" = yes; then
2466     CXXFLAGS="-O2"
2467   else
2468     CXXFLAGS=
2469   fi
2470 fi
2471 for ac_declaration in \
2472    '' \
2473    'extern "C" void std::exit (int) throw (); using std::exit;' \
2474    'extern "C" void std::exit (int); using std::exit;' \
2475    'extern "C" void exit (int) throw ();' \
2476    'extern "C" void exit (int);' \
2477    'void exit (int);'
2478 do
2479   cat >conftest.$ac_ext <<_ACEOF
2480 /* confdefs.h.  */
2481 _ACEOF
2482 cat confdefs.h >>conftest.$ac_ext
2483 cat >>conftest.$ac_ext <<_ACEOF
2484 /* end confdefs.h.  */
2485 $ac_declaration
2486 #include <stdlib.h>
2487 int
2488 main ()
2489 {
2490 exit (42);
2491   ;
2492   return 0;
2493 }
2494 _ACEOF
2495 rm -f conftest.$ac_objext
2496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2497   (eval $ac_compile) 2>conftest.er1
2498   ac_status=$?
2499   grep -v '^ *+' conftest.er1 >conftest.err
2500   rm -f conftest.er1
2501   cat conftest.err >&5
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); } &&
2504          { ac_try='test -z "$ac_cxx_werror_flag"
2505                          || test ! -s conftest.err'
2506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2507   (eval $ac_try) 2>&5
2508   ac_status=$?
2509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2510   (exit $ac_status); }; } &&
2511          { ac_try='test -s conftest.$ac_objext'
2512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2513   (eval $ac_try) 2>&5
2514   ac_status=$?
2515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516   (exit $ac_status); }; }; then
2517   :
2518 else
2519   echo "$as_me: failed program was:" >&5
2520 sed 's/^/| /' conftest.$ac_ext >&5
2521
2522 continue
2523 fi
2524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2525   cat >conftest.$ac_ext <<_ACEOF
2526 /* confdefs.h.  */
2527 _ACEOF
2528 cat confdefs.h >>conftest.$ac_ext
2529 cat >>conftest.$ac_ext <<_ACEOF
2530 /* end confdefs.h.  */
2531 $ac_declaration
2532 int
2533 main ()
2534 {
2535 exit (42);
2536   ;
2537   return 0;
2538 }
2539 _ACEOF
2540 rm -f conftest.$ac_objext
2541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2542   (eval $ac_compile) 2>conftest.er1
2543   ac_status=$?
2544   grep -v '^ *+' conftest.er1 >conftest.err
2545   rm -f conftest.er1
2546   cat conftest.err >&5
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); } &&
2549          { ac_try='test -z "$ac_cxx_werror_flag"
2550                          || test ! -s conftest.err'
2551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552   (eval $ac_try) 2>&5
2553   ac_status=$?
2554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555   (exit $ac_status); }; } &&
2556          { ac_try='test -s conftest.$ac_objext'
2557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558   (eval $ac_try) 2>&5
2559   ac_status=$?
2560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561   (exit $ac_status); }; }; then
2562   break
2563 else
2564   echo "$as_me: failed program was:" >&5
2565 sed 's/^/| /' conftest.$ac_ext >&5
2566
2567 fi
2568 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2569 done
2570 rm -f conftest*
2571 if test -n "$ac_declaration"; then
2572   echo '#ifdef __cplusplus' >>confdefs.h
2573   echo $ac_declaration      >>confdefs.h
2574   echo '#endif'             >>confdefs.h
2575 fi
2576
2577 ac_ext=c
2578 ac_cpp='$CPP $CPPFLAGS'
2579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2582 DEPDIR="${am__leading_dot}deps"
2583
2584           ac_config_commands="$ac_config_commands depfiles"
2585
2586
2587 am_make=${MAKE-make}
2588 cat > confinc << 'END'
2589 am__doit:
2590         @echo done
2591 .PHONY: am__doit
2592 END
2593 # If we don't find an include directive, just comment out the code.
2594 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2595 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2596 am__include="#"
2597 am__quote=
2598 _am_result=none
2599 # First try GNU make style include.
2600 echo "include confinc" > confmf
2601 # We grep out `Entering directory' and `Leaving directory'
2602 # messages which can occur if `w' ends up in MAKEFLAGS.
2603 # In particular we don't look at `^make:' because GNU make might
2604 # be invoked under some other name (usually "gmake"), in which
2605 # case it prints its new name instead of `make'.
2606 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2607    am__include=include
2608    am__quote=
2609    _am_result=GNU
2610 fi
2611 # Now try BSD make style include.
2612 if test "$am__include" = "#"; then
2613    echo '.include "confinc"' > confmf
2614    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2615       am__include=.include
2616       am__quote="\""
2617       _am_result=BSD
2618    fi
2619 fi
2620
2621
2622 echo "$as_me:$LINENO: result: $_am_result" >&5
2623 echo "${ECHO_T}$_am_result" >&6
2624 rm -f confinc confmf
2625
2626 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2627 if test "${enable_dependency_tracking+set}" = set; then
2628   enableval="$enable_dependency_tracking"
2629
2630 fi;
2631 if test "x$enable_dependency_tracking" != xno; then
2632   am_depcomp="$ac_aux_dir/depcomp"
2633   AMDEPBACKSLASH='\'
2634 fi
2635
2636
2637 if test "x$enable_dependency_tracking" != xno; then
2638   AMDEP_TRUE=
2639   AMDEP_FALSE='#'
2640 else
2641   AMDEP_TRUE='#'
2642   AMDEP_FALSE=
2643 fi
2644
2645
2646
2647
2648 depcc="$CXX"  am_compiler_list=
2649
2650 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2651 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2652 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2653   echo $ECHO_N "(cached) $ECHO_C" >&6
2654 else
2655   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2656   # We make a subdir and do the tests there.  Otherwise we can end up
2657   # making bogus files that we don't know about and never remove.  For
2658   # instance it was reported that on HP-UX the gcc test will end up
2659   # making a dummy file named `D' -- because `-MD' means `put the output
2660   # in D'.
2661   mkdir conftest.dir
2662   # Copy depcomp to subdir because otherwise we won't find it if we're
2663   # using a relative directory.
2664   cp "$am_depcomp" conftest.dir
2665   cd conftest.dir
2666   # We will build objects and dependencies in a subdirectory because
2667   # it helps to detect inapplicable dependency modes.  For instance
2668   # both Tru64's cc and ICC support -MD to output dependencies as a
2669   # side effect of compilation, but ICC will put the dependencies in
2670   # the current directory while Tru64 will put them in the object
2671   # directory.
2672   mkdir sub
2673
2674   am_cv_CXX_dependencies_compiler_type=none
2675   if test "$am_compiler_list" = ""; then
2676      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2677   fi
2678   for depmode in $am_compiler_list; do
2679     # Setup a source with many dependencies, because some compilers
2680     # like to wrap large dependency lists on column 80 (with \), and
2681     # we should not choose a depcomp mode which is confused by this.
2682     #
2683     # We need to recreate these files for each test, as the compiler may
2684     # overwrite some of them when testing with obscure command lines.
2685     # This happens at least with the AIX C compiler.
2686     : > sub/conftest.c
2687     for i in 1 2 3 4 5 6; do
2688       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2689       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2690       # Solaris 8's {/usr,}/bin/sh.
2691       touch sub/conftst$i.h
2692     done
2693     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2694
2695     case $depmode in
2696     nosideeffect)
2697       # after this tag, mechanisms are not by side-effect, so they'll
2698       # only be used when explicitly requested
2699       if test "x$enable_dependency_tracking" = xyes; then
2700         continue
2701       else
2702         break
2703       fi
2704       ;;
2705     none) break ;;
2706     esac
2707     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2708     # mode.  It turns out that the SunPro C++ compiler does not properly
2709     # handle `-M -o', and we need to detect this.
2710     if depmode=$depmode \
2711        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2712        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2713        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2714          >/dev/null 2>conftest.err &&
2715        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2716        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2717        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2718       # icc doesn't choke on unknown options, it will just issue warnings
2719       # or remarks (even with -Werror).  So we grep stderr for any message
2720       # that says an option was ignored or not supported.
2721       # When given -MP, icc 7.0 and 7.1 complain thusly:
2722       #   icc: Command line warning: ignoring option '-M'; no argument required
2723       # The diagnosis changed in icc 8.0:
2724       #   icc: Command line remark: option '-MP' not supported
2725       if (grep 'ignoring option' conftest.err ||
2726           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2727         am_cv_CXX_dependencies_compiler_type=$depmode
2728         break
2729       fi
2730     fi
2731   done
2732
2733   cd ..
2734   rm -rf conftest.dir
2735 else
2736   am_cv_CXX_dependencies_compiler_type=none
2737 fi
2738
2739 fi
2740 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2741 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2742 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2743
2744
2745
2746 if
2747   test "x$enable_dependency_tracking" != xno \
2748   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2749   am__fastdepCXX_TRUE=
2750   am__fastdepCXX_FALSE='#'
2751 else
2752   am__fastdepCXX_TRUE='#'
2753   am__fastdepCXX_FALSE=
2754 fi
2755
2756
2757 # Check whether --enable-shared or --disable-shared was given.
2758 if test "${enable_shared+set}" = set; then
2759   enableval="$enable_shared"
2760   p=${PACKAGE-default}
2761     case $enableval in
2762     yes) enable_shared=yes ;;
2763     no) enable_shared=no ;;
2764     *)
2765       enable_shared=no
2766       # Look at the argument we got.  We use all the common list separators.
2767       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2768       for pkg in $enableval; do
2769         IFS="$lt_save_ifs"
2770         if test "X$pkg" = "X$p"; then
2771           enable_shared=yes
2772         fi
2773       done
2774       IFS="$lt_save_ifs"
2775       ;;
2776     esac
2777 else
2778   enable_shared=yes
2779 fi;
2780
2781 # Check whether --enable-static or --disable-static was given.
2782 if test "${enable_static+set}" = set; then
2783   enableval="$enable_static"
2784   p=${PACKAGE-default}
2785     case $enableval in
2786     yes) enable_static=yes ;;
2787     no) enable_static=no ;;
2788     *)
2789      enable_static=no
2790       # Look at the argument we got.  We use all the common list separators.
2791       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2792       for pkg in $enableval; do
2793         IFS="$lt_save_ifs"
2794         if test "X$pkg" = "X$p"; then
2795           enable_static=yes
2796         fi
2797       done
2798       IFS="$lt_save_ifs"
2799       ;;
2800     esac
2801 else
2802   enable_static=yes
2803 fi;
2804
2805 # Check whether --enable-fast-install or --disable-fast-install was given.
2806 if test "${enable_fast_install+set}" = set; then
2807   enableval="$enable_fast_install"
2808   p=${PACKAGE-default}
2809     case $enableval in
2810     yes) enable_fast_install=yes ;;
2811     no) enable_fast_install=no ;;
2812     *)
2813       enable_fast_install=no
2814       # Look at the argument we got.  We use all the common list separators.
2815       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2816       for pkg in $enableval; do
2817         IFS="$lt_save_ifs"
2818         if test "X$pkg" = "X$p"; then
2819           enable_fast_install=yes
2820         fi
2821       done
2822       IFS="$lt_save_ifs"
2823       ;;
2824     esac
2825 else
2826   enable_fast_install=yes
2827 fi;
2828
2829 ac_ext=c
2830 ac_cpp='$CPP $CPPFLAGS'
2831 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2834 if test -n "$ac_tool_prefix"; then
2835   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2836 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2837 echo "$as_me:$LINENO: checking for $ac_word" >&5
2838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2839 if test "${ac_cv_prog_CC+set}" = set; then
2840   echo $ECHO_N "(cached) $ECHO_C" >&6
2841 else
2842   if test -n "$CC"; then
2843   ac_cv_prog_CC="$CC" # Let the user override the test.
2844 else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846 for as_dir in $PATH
2847 do
2848   IFS=$as_save_IFS
2849   test -z "$as_dir" && as_dir=.
2850   for ac_exec_ext in '' $ac_executable_extensions; do
2851   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2852     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2853     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2854     break 2
2855   fi
2856 done
2857 done
2858
2859 fi
2860 fi
2861 CC=$ac_cv_prog_CC
2862 if test -n "$CC"; then
2863   echo "$as_me:$LINENO: result: $CC" >&5
2864 echo "${ECHO_T}$CC" >&6
2865 else
2866   echo "$as_me:$LINENO: result: no" >&5
2867 echo "${ECHO_T}no" >&6
2868 fi
2869
2870 fi
2871 if test -z "$ac_cv_prog_CC"; then
2872   ac_ct_CC=$CC
2873   # Extract the first word of "gcc", so it can be a program name with args.
2874 set dummy gcc; ac_word=$2
2875 echo "$as_me:$LINENO: checking for $ac_word" >&5
2876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2877 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2878   echo $ECHO_N "(cached) $ECHO_C" >&6
2879 else
2880   if test -n "$ac_ct_CC"; then
2881   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2882 else
2883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2884 for as_dir in $PATH
2885 do
2886   IFS=$as_save_IFS
2887   test -z "$as_dir" && as_dir=.
2888   for ac_exec_ext in '' $ac_executable_extensions; do
2889   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2890     ac_cv_prog_ac_ct_CC="gcc"
2891     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2892     break 2
2893   fi
2894 done
2895 done
2896
2897 fi
2898 fi
2899 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2900 if test -n "$ac_ct_CC"; then
2901   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2902 echo "${ECHO_T}$ac_ct_CC" >&6
2903 else
2904   echo "$as_me:$LINENO: result: no" >&5
2905 echo "${ECHO_T}no" >&6
2906 fi
2907
2908   CC=$ac_ct_CC
2909 else
2910   CC="$ac_cv_prog_CC"
2911 fi
2912
2913 if test -z "$CC"; then
2914   if test -n "$ac_tool_prefix"; then
2915   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2916 set dummy ${ac_tool_prefix}cc; ac_word=$2
2917 echo "$as_me:$LINENO: checking for $ac_word" >&5
2918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2919 if test "${ac_cv_prog_CC+set}" = set; then
2920   echo $ECHO_N "(cached) $ECHO_C" >&6
2921 else
2922   if test -n "$CC"; then
2923   ac_cv_prog_CC="$CC" # Let the user override the test.
2924 else
2925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2926 for as_dir in $PATH
2927 do
2928   IFS=$as_save_IFS
2929   test -z "$as_dir" && as_dir=.
2930   for ac_exec_ext in '' $ac_executable_extensions; do
2931   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2932     ac_cv_prog_CC="${ac_tool_prefix}cc"
2933     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2934     break 2
2935   fi
2936 done
2937 done
2938
2939 fi
2940 fi
2941 CC=$ac_cv_prog_CC
2942 if test -n "$CC"; then
2943   echo "$as_me:$LINENO: result: $CC" >&5
2944 echo "${ECHO_T}$CC" >&6
2945 else
2946   echo "$as_me:$LINENO: result: no" >&5
2947 echo "${ECHO_T}no" >&6
2948 fi
2949
2950 fi
2951 if test -z "$ac_cv_prog_CC"; then
2952   ac_ct_CC=$CC
2953   # Extract the first word of "cc", so it can be a program name with args.
2954 set dummy cc; ac_word=$2
2955 echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958   echo $ECHO_N "(cached) $ECHO_C" >&6
2959 else
2960   if test -n "$ac_ct_CC"; then
2961   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2962 else
2963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2964 for as_dir in $PATH
2965 do
2966   IFS=$as_save_IFS
2967   test -z "$as_dir" && as_dir=.
2968   for ac_exec_ext in '' $ac_executable_extensions; do
2969   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2970     ac_cv_prog_ac_ct_CC="cc"
2971     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2972     break 2
2973   fi
2974 done
2975 done
2976
2977 fi
2978 fi
2979 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2980 if test -n "$ac_ct_CC"; then
2981   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2982 echo "${ECHO_T}$ac_ct_CC" >&6
2983 else
2984   echo "$as_me:$LINENO: result: no" >&5
2985 echo "${ECHO_T}no" >&6
2986 fi
2987
2988   CC=$ac_ct_CC
2989 else
2990   CC="$ac_cv_prog_CC"
2991 fi
2992
2993 fi
2994 if test -z "$CC"; then
2995   # Extract the first word of "cc", so it can be a program name with args.
2996 set dummy cc; ac_word=$2
2997 echo "$as_me:$LINENO: checking for $ac_word" >&5
2998 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2999 if test "${ac_cv_prog_CC+set}" = set; then
3000   echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002   if test -n "$CC"; then
3003   ac_cv_prog_CC="$CC" # Let the user override the test.
3004 else
3005   ac_prog_rejected=no
3006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3007 for as_dir in $PATH
3008 do
3009   IFS=$as_save_IFS
3010   test -z "$as_dir" && as_dir=.
3011   for ac_exec_ext in '' $ac_executable_extensions; do
3012   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3013     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3014        ac_prog_rejected=yes
3015        continue
3016      fi
3017     ac_cv_prog_CC="cc"
3018     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3019     break 2
3020   fi
3021 done
3022 done
3023
3024 if test $ac_prog_rejected = yes; then
3025   # We found a bogon in the path, so make sure we never use it.
3026   set dummy $ac_cv_prog_CC
3027   shift
3028   if test $# != 0; then
3029     # We chose a different compiler from the bogus one.
3030     # However, it has the same basename, so the bogon will be chosen
3031     # first if we set CC to just the basename; use the full file name.
3032     shift
3033     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3034   fi
3035 fi
3036 fi
3037 fi
3038 CC=$ac_cv_prog_CC
3039 if test -n "$CC"; then
3040   echo "$as_me:$LINENO: result: $CC" >&5
3041 echo "${ECHO_T}$CC" >&6
3042 else
3043   echo "$as_me:$LINENO: result: no" >&5
3044 echo "${ECHO_T}no" >&6
3045 fi
3046
3047 fi
3048 if test -z "$CC"; then
3049   if test -n "$ac_tool_prefix"; then
3050   for ac_prog in cl
3051   do
3052     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3053 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3054 echo "$as_me:$LINENO: checking for $ac_word" >&5
3055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3056 if test "${ac_cv_prog_CC+set}" = set; then
3057   echo $ECHO_N "(cached) $ECHO_C" >&6
3058 else
3059   if test -n "$CC"; then
3060   ac_cv_prog_CC="$CC" # Let the user override the test.
3061 else
3062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3063 for as_dir in $PATH
3064 do
3065   IFS=$as_save_IFS
3066   test -z "$as_dir" && as_dir=.
3067   for ac_exec_ext in '' $ac_executable_extensions; do
3068   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3069     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3070     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3071     break 2
3072   fi
3073 done
3074 done
3075
3076 fi
3077 fi
3078 CC=$ac_cv_prog_CC
3079 if test -n "$CC"; then
3080   echo "$as_me:$LINENO: result: $CC" >&5
3081 echo "${ECHO_T}$CC" >&6
3082 else
3083   echo "$as_me:$LINENO: result: no" >&5
3084 echo "${ECHO_T}no" >&6
3085 fi
3086
3087     test -n "$CC" && break
3088   done
3089 fi
3090 if test -z "$CC"; then
3091   ac_ct_CC=$CC
3092   for ac_prog in cl
3093 do
3094   # Extract the first word of "$ac_prog", so it can be a program name with args.
3095 set dummy $ac_prog; ac_word=$2
3096 echo "$as_me:$LINENO: checking for $ac_word" >&5
3097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3098 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3099   echo $ECHO_N "(cached) $ECHO_C" >&6
3100 else
3101   if test -n "$ac_ct_CC"; then
3102   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3103 else
3104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3105 for as_dir in $PATH
3106 do
3107   IFS=$as_save_IFS
3108   test -z "$as_dir" && as_dir=.
3109   for ac_exec_ext in '' $ac_executable_extensions; do
3110   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3111     ac_cv_prog_ac_ct_CC="$ac_prog"
3112     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3113     break 2
3114   fi
3115 done
3116 done
3117
3118 fi
3119 fi
3120 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3121 if test -n "$ac_ct_CC"; then
3122   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3123 echo "${ECHO_T}$ac_ct_CC" >&6
3124 else
3125   echo "$as_me:$LINENO: result: no" >&5
3126 echo "${ECHO_T}no" >&6
3127 fi
3128
3129   test -n "$ac_ct_CC" && break
3130 done
3131
3132   CC=$ac_ct_CC
3133 fi
3134
3135 fi
3136
3137
3138 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3139 See \`config.log' for more details." >&5
3140 echo "$as_me: error: no acceptable C compiler found in \$PATH
3141 See \`config.log' for more details." >&2;}
3142    { (exit 1); exit 1; }; }
3143
3144 # Provide some information about the compiler.
3145 echo "$as_me:$LINENO:" \
3146      "checking for C compiler version" >&5
3147 ac_compiler=`set X $ac_compile; echo $2`
3148 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3149   (eval $ac_compiler --version </dev/null >&5) 2>&5
3150   ac_status=$?
3151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3152   (exit $ac_status); }
3153 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3154   (eval $ac_compiler -v </dev/null >&5) 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }
3158 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3159   (eval $ac_compiler -V </dev/null >&5) 2>&5
3160   ac_status=$?
3161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162   (exit $ac_status); }
3163
3164 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3165 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3166 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3167   echo $ECHO_N "(cached) $ECHO_C" >&6
3168 else
3169   cat >conftest.$ac_ext <<_ACEOF
3170 /* confdefs.h.  */
3171 _ACEOF
3172 cat confdefs.h >>conftest.$ac_ext
3173 cat >>conftest.$ac_ext <<_ACEOF
3174 /* end confdefs.h.  */
3175
3176 int
3177 main ()
3178 {
3179 #ifndef __GNUC__
3180        choke me
3181 #endif
3182
3183   ;
3184   return 0;
3185 }
3186 _ACEOF
3187 rm -f conftest.$ac_objext
3188 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3189   (eval $ac_compile) 2>conftest.er1
3190   ac_status=$?
3191   grep -v '^ *+' conftest.er1 >conftest.err
3192   rm -f conftest.er1
3193   cat conftest.err >&5
3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3195   (exit $ac_status); } &&
3196          { ac_try='test -z "$ac_c_werror_flag"
3197                          || test ! -s conftest.err'
3198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199   (eval $ac_try) 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; } &&
3203          { ac_try='test -s conftest.$ac_objext'
3204   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3205   (eval $ac_try) 2>&5
3206   ac_status=$?
3207   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3208   (exit $ac_status); }; }; then
3209   ac_compiler_gnu=yes
3210 else
3211   echo "$as_me: failed program was:" >&5
3212 sed 's/^/| /' conftest.$ac_ext >&5
3213
3214 ac_compiler_gnu=no
3215 fi
3216 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3218
3219 fi
3220 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3221 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3222 GCC=`test $ac_compiler_gnu = yes && echo yes`
3223 ac_test_CFLAGS=${CFLAGS+set}
3224 ac_save_CFLAGS=$CFLAGS
3225 CFLAGS="-g"
3226 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3227 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3228 if test "${ac_cv_prog_cc_g+set}" = set; then
3229   echo $ECHO_N "(cached) $ECHO_C" >&6
3230 else
3231   cat >conftest.$ac_ext <<_ACEOF
3232 /* confdefs.h.  */
3233 _ACEOF
3234 cat confdefs.h >>conftest.$ac_ext
3235 cat >>conftest.$ac_ext <<_ACEOF
3236 /* end confdefs.h.  */
3237
3238 int
3239 main ()
3240 {
3241
3242   ;
3243   return 0;
3244 }
3245 _ACEOF
3246 rm -f conftest.$ac_objext
3247 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3248   (eval $ac_compile) 2>conftest.er1
3249   ac_status=$?
3250   grep -v '^ *+' conftest.er1 >conftest.err
3251   rm -f conftest.er1
3252   cat conftest.err >&5
3253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254   (exit $ac_status); } &&
3255          { ac_try='test -z "$ac_c_werror_flag"
3256                          || test ! -s conftest.err'
3257   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3258   (eval $ac_try) 2>&5
3259   ac_status=$?
3260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261   (exit $ac_status); }; } &&
3262          { ac_try='test -s conftest.$ac_objext'
3263   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3264   (eval $ac_try) 2>&5
3265   ac_status=$?
3266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3267   (exit $ac_status); }; }; then
3268   ac_cv_prog_cc_g=yes
3269 else
3270   echo "$as_me: failed program was:" >&5
3271 sed 's/^/| /' conftest.$ac_ext >&5
3272
3273 ac_cv_prog_cc_g=no
3274 fi
3275 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3276 fi
3277 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3278 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3279 if test "$ac_test_CFLAGS" = set; then
3280   CFLAGS=$ac_save_CFLAGS
3281 elif test $ac_cv_prog_cc_g = yes; then
3282   if test "$GCC" = yes; then
3283     CFLAGS="-g -O2"
3284   else
3285     CFLAGS="-g"
3286   fi
3287 else
3288   if test "$GCC" = yes; then
3289     CFLAGS="-O2"
3290   else
3291     CFLAGS=
3292   fi
3293 fi
3294 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3295 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3296 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3297   echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299   ac_cv_prog_cc_stdc=no
3300 ac_save_CC=$CC
3301 cat >conftest.$ac_ext <<_ACEOF
3302 /* confdefs.h.  */
3303 _ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h.  */
3307 #include <stdarg.h>
3308 #include <stdio.h>
3309 #include <sys/types.h>
3310 #include <sys/stat.h>
3311 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3312 struct buf { int x; };
3313 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3314 static char *e (p, i)
3315      char **p;
3316      int i;
3317 {
3318   return p[i];
3319 }
3320 static char *f (char * (*g) (char **, int), char **p, ...)
3321 {
3322   char *s;
3323   va_list v;
3324   va_start (v,p);
3325   s = g (p, va_arg (v,int));
3326   va_end (v);
3327   return s;
3328 }
3329
3330 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3331    function prototypes and stuff, but not '\xHH' hex character constants.
3332    These don't provoke an error unfortunately, instead are silently treated
3333    as 'x'.  The following induces an error, until -std1 is added to get
3334    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3335    array size at least.  It's necessary to write '\x00'==0 to get something
3336    that's true only with -std1.  */
3337 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3338
3339 int test (int i, double x);
3340 struct s1 {int (*f) (int a);};
3341 struct s2 {int (*f) (double a);};
3342 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3343 int argc;
3344 char **argv;
3345 int
3346 main ()
3347 {
3348 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3349   ;
3350   return 0;
3351 }
3352 _ACEOF
3353 # Don't try gcc -ansi; that turns off useful extensions and
3354 # breaks some systems' header files.
3355 # AIX                   -qlanglvl=ansi
3356 # Ultrix and OSF/1      -std1
3357 # HP-UX 10.20 and later -Ae
3358 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3359 # SVR4                  -Xc -D__EXTENSIONS__
3360 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3361 do
3362   CC="$ac_save_CC $ac_arg"
3363   rm -f conftest.$ac_objext
3364 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3365   (eval $ac_compile) 2>conftest.er1
3366   ac_status=$?
3367   grep -v '^ *+' conftest.er1 >conftest.err
3368   rm -f conftest.er1
3369   cat conftest.err >&5
3370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371   (exit $ac_status); } &&
3372          { ac_try='test -z "$ac_c_werror_flag"
3373                          || test ! -s conftest.err'
3374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3375   (eval $ac_try) 2>&5
3376   ac_status=$?
3377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378   (exit $ac_status); }; } &&
3379          { ac_try='test -s conftest.$ac_objext'
3380   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3381   (eval $ac_try) 2>&5
3382   ac_status=$?
3383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384   (exit $ac_status); }; }; then
3385   ac_cv_prog_cc_stdc=$ac_arg
3386 break
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391 fi
3392 rm -f conftest.err conftest.$ac_objext
3393 done
3394 rm -f conftest.$ac_ext conftest.$ac_objext
3395 CC=$ac_save_CC
3396
3397 fi
3398
3399 case "x$ac_cv_prog_cc_stdc" in
3400   x|xno)
3401     echo "$as_me:$LINENO: result: none needed" >&5
3402 echo "${ECHO_T}none needed" >&6 ;;
3403   *)
3404     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3405 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3406     CC="$CC $ac_cv_prog_cc_stdc" ;;
3407 esac
3408
3409 # Some people use a C++ compiler to compile C.  Since we use `exit',
3410 # in C++ we need to declare it.  In case someone uses the same compiler
3411 # for both compiling C and C++ we need to have the C++ compiler decide
3412 # the declaration of exit, since it's the most demanding environment.
3413 cat >conftest.$ac_ext <<_ACEOF
3414 #ifndef __cplusplus
3415   choke me
3416 #endif
3417 _ACEOF
3418 rm -f conftest.$ac_objext
3419 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3420   (eval $ac_compile) 2>conftest.er1
3421   ac_status=$?
3422   grep -v '^ *+' conftest.er1 >conftest.err
3423   rm -f conftest.er1
3424   cat conftest.err >&5
3425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3426   (exit $ac_status); } &&
3427          { ac_try='test -z "$ac_c_werror_flag"
3428                          || test ! -s conftest.err'
3429   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3430   (eval $ac_try) 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }; } &&
3434          { ac_try='test -s conftest.$ac_objext'
3435   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3436   (eval $ac_try) 2>&5
3437   ac_status=$?
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); }; }; then
3440   for ac_declaration in \
3441    '' \
3442    'extern "C" void std::exit (int) throw (); using std::exit;' \
3443    'extern "C" void std::exit (int); using std::exit;' \
3444    'extern "C" void exit (int) throw ();' \
3445    'extern "C" void exit (int);' \
3446    'void exit (int);'
3447 do
3448   cat >conftest.$ac_ext <<_ACEOF
3449 /* confdefs.h.  */
3450 _ACEOF
3451 cat confdefs.h >>conftest.$ac_ext
3452 cat >>conftest.$ac_ext <<_ACEOF
3453 /* end confdefs.h.  */
3454 $ac_declaration
3455 #include <stdlib.h>
3456 int
3457 main ()
3458 {
3459 exit (42);
3460   ;
3461   return 0;
3462 }
3463 _ACEOF
3464 rm -f conftest.$ac_objext
3465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3466   (eval $ac_compile) 2>conftest.er1
3467   ac_status=$?
3468   grep -v '^ *+' conftest.er1 >conftest.err
3469   rm -f conftest.er1
3470   cat conftest.err >&5
3471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3472   (exit $ac_status); } &&
3473          { ac_try='test -z "$ac_c_werror_flag"
3474                          || test ! -s conftest.err'
3475   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3476   (eval $ac_try) 2>&5
3477   ac_status=$?
3478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3479   (exit $ac_status); }; } &&
3480          { ac_try='test -s conftest.$ac_objext'
3481   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3482   (eval $ac_try) 2>&5
3483   ac_status=$?
3484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485   (exit $ac_status); }; }; then
3486   :
3487 else
3488   echo "$as_me: failed program was:" >&5
3489 sed 's/^/| /' conftest.$ac_ext >&5
3490
3491 continue
3492 fi
3493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3494   cat >conftest.$ac_ext <<_ACEOF
3495 /* confdefs.h.  */
3496 _ACEOF
3497 cat confdefs.h >>conftest.$ac_ext
3498 cat >>conftest.$ac_ext <<_ACEOF
3499 /* end confdefs.h.  */
3500 $ac_declaration
3501 int
3502 main ()
3503 {
3504 exit (42);
3505   ;
3506   return 0;
3507 }
3508 _ACEOF
3509 rm -f conftest.$ac_objext
3510 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3511   (eval $ac_compile) 2>conftest.er1
3512   ac_status=$?
3513   grep -v '^ *+' conftest.er1 >conftest.err
3514   rm -f conftest.er1
3515   cat conftest.err >&5
3516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517   (exit $ac_status); } &&
3518          { ac_try='test -z "$ac_c_werror_flag"
3519                          || test ! -s conftest.err'
3520   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3521   (eval $ac_try) 2>&5
3522   ac_status=$?
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); }; } &&
3525          { ac_try='test -s conftest.$ac_objext'
3526   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3527   (eval $ac_try) 2>&5
3528   ac_status=$?
3529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530   (exit $ac_status); }; }; then
3531   break
3532 else
3533   echo "$as_me: failed program was:" >&5
3534 sed 's/^/| /' conftest.$ac_ext >&5
3535
3536 fi
3537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3538 done
3539 rm -f conftest*
3540 if test -n "$ac_declaration"; then
3541   echo '#ifdef __cplusplus' >>confdefs.h
3542   echo $ac_declaration      >>confdefs.h
3543   echo '#endif'             >>confdefs.h
3544 fi
3545
3546 else
3547   echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 fi
3551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3552 ac_ext=c
3553 ac_cpp='$CPP $CPPFLAGS'
3554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3557
3558 depcc="$CC"   am_compiler_list=
3559
3560 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3561 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3562 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3563   echo $ECHO_N "(cached) $ECHO_C" >&6
3564 else
3565   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3566   # We make a subdir and do the tests there.  Otherwise we can end up
3567   # making bogus files that we don't know about and never remove.  For
3568   # instance it was reported that on HP-UX the gcc test will end up
3569   # making a dummy file named `D' -- because `-MD' means `put the output
3570   # in D'.
3571   mkdir conftest.dir
3572   # Copy depcomp to subdir because otherwise we won't find it if we're
3573   # using a relative directory.
3574   cp "$am_depcomp" conftest.dir
3575   cd conftest.dir
3576   # We will build objects and dependencies in a subdirectory because
3577   # it helps to detect inapplicable dependency modes.  For instance
3578   # both Tru64's cc and ICC support -MD to output dependencies as a
3579   # side effect of compilation, but ICC will put the dependencies in
3580   # the current directory while Tru64 will put them in the object
3581   # directory.
3582   mkdir sub
3583
3584   am_cv_CC_dependencies_compiler_type=none
3585   if test "$am_compiler_list" = ""; then
3586      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3587   fi
3588   for depmode in $am_compiler_list; do
3589     # Setup a source with many dependencies, because some compilers
3590     # like to wrap large dependency lists on column 80 (with \), and
3591     # we should not choose a depcomp mode which is confused by this.
3592     #
3593     # We need to recreate these files for each test, as the compiler may
3594     # overwrite some of them when testing with obscure command lines.
3595     # This happens at least with the AIX C compiler.
3596     : > sub/conftest.c
3597     for i in 1 2 3 4 5 6; do
3598       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3599       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3600       # Solaris 8's {/usr,}/bin/sh.
3601       touch sub/conftst$i.h
3602     done
3603     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3604
3605     case $depmode in
3606     nosideeffect)
3607       # after this tag, mechanisms are not by side-effect, so they'll
3608       # only be used when explicitly requested
3609       if test "x$enable_dependency_tracking" = xyes; then
3610         continue
3611       else
3612         break
3613       fi
3614       ;;
3615     none) break ;;
3616     esac
3617     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3618     # mode.  It turns out that the SunPro C++ compiler does not properly
3619     # handle `-M -o', and we need to detect this.
3620     if depmode=$depmode \
3621        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3622        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3623        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3624          >/dev/null 2>conftest.err &&
3625        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3626        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3627        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3628       # icc doesn't choke on unknown options, it will just issue warnings
3629       # or remarks (even with -Werror).  So we grep stderr for any message
3630       # that says an option was ignored or not supported.
3631       # When given -MP, icc 7.0 and 7.1 complain thusly:
3632       #   icc: Command line warning: ignoring option '-M'; no argument required
3633       # The diagnosis changed in icc 8.0:
3634       #   icc: Command line remark: option '-MP' not supported
3635       if (grep 'ignoring option' conftest.err ||
3636           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3637         am_cv_CC_dependencies_compiler_type=$depmode
3638         break
3639       fi
3640     fi
3641   done
3642
3643   cd ..
3644   rm -rf conftest.dir
3645 else
3646   am_cv_CC_dependencies_compiler_type=none
3647 fi
3648
3649 fi
3650 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3651 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3652 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3653
3654
3655
3656 if
3657   test "x$enable_dependency_tracking" != xno \
3658   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3659   am__fastdepCC_TRUE=
3660   am__fastdepCC_FALSE='#'
3661 else
3662   am__fastdepCC_TRUE='#'
3663   am__fastdepCC_FALSE=
3664 fi
3665
3666
3667 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3668 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3669 if test "${lt_cv_path_SED+set}" = set; then
3670   echo $ECHO_N "(cached) $ECHO_C" >&6
3671 else
3672   # Loop through the user's path and test for sed and gsed.
3673 # Then use that list of sed's as ones to test for truncation.
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH
3676 do
3677   IFS=$as_save_IFS
3678   test -z "$as_dir" && as_dir=.
3679   for lt_ac_prog in sed gsed; do
3680     for ac_exec_ext in '' $ac_executable_extensions; do
3681       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3682         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3683       fi
3684     done
3685   done
3686 done
3687 lt_ac_max=0
3688 lt_ac_count=0
3689 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3690 # along with /bin/sed that truncates output.
3691 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3692   test ! -f $lt_ac_sed && continue
3693   cat /dev/null > conftest.in
3694   lt_ac_count=0
3695   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3696   # Check for GNU sed and select it if it is found.
3697   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3698     lt_cv_path_SED=$lt_ac_sed
3699     break
3700   fi
3701   while true; do
3702     cat conftest.in conftest.in >conftest.tmp
3703     mv conftest.tmp conftest.in
3704     cp conftest.in conftest.nl
3705     echo >>conftest.nl
3706     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3707     cmp -s conftest.out conftest.nl || break
3708     # 10000 chars as input seems more than enough
3709     test $lt_ac_count -gt 10 && break
3710     lt_ac_count=`expr $lt_ac_count + 1`
3711     if test $lt_ac_count -gt $lt_ac_max; then
3712       lt_ac_max=$lt_ac_count
3713       lt_cv_path_SED=$lt_ac_sed
3714     fi
3715   done
3716 done
3717
3718 fi
3719
3720 SED=$lt_cv_path_SED
3721 echo "$as_me:$LINENO: result: $SED" >&5
3722 echo "${ECHO_T}$SED" >&6
3723
3724 echo "$as_me:$LINENO: checking for egrep" >&5
3725 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3726 if test "${ac_cv_prog_egrep+set}" = set; then
3727   echo $ECHO_N "(cached) $ECHO_C" >&6
3728 else
3729   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3730     then ac_cv_prog_egrep='grep -E'
3731     else ac_cv_prog_egrep='egrep'
3732     fi
3733 fi
3734 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3735 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3736  EGREP=$ac_cv_prog_egrep
3737
3738
3739
3740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3741 if test "${with_gnu_ld+set}" = set; then
3742   withval="$with_gnu_ld"
3743   test "$withval" = no || with_gnu_ld=yes
3744 else
3745   with_gnu_ld=no
3746 fi;
3747 ac_prog=ld
3748 if test "$GCC" = yes; then
3749   # Check if gcc -print-prog-name=ld gives a path.
3750   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3751 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3752   case $host in
3753   *-*-mingw*)
3754     # gcc leaves a trailing carriage return which upsets mingw
3755     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3756   *)
3757     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3758   esac
3759   case $ac_prog in
3760     # Accept absolute paths.
3761     [\\/]* | ?:[\\/]*)
3762       re_direlt='/[^/][^/]*/\.\./'
3763       # Canonicalize the pathname of ld
3764       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3765       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3766         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3767       done
3768       test -z "$LD" && LD="$ac_prog"
3769       ;;
3770   "")
3771     # If it fails, then pretend we aren't using GCC.
3772     ac_prog=ld
3773     ;;
3774   *)
3775     # If it is relative, then search for the first ld in PATH.
3776     with_gnu_ld=unknown
3777     ;;
3778   esac
3779 elif test "$with_gnu_ld" = yes; then
3780   echo "$as_me:$LINENO: checking for GNU ld" >&5
3781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3782 else
3783   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3785 fi
3786 if test "${lt_cv_path_LD+set}" = set; then
3787   echo $ECHO_N "(cached) $ECHO_C" >&6
3788 else
3789   if test -z "$LD"; then
3790   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3791   for ac_dir in $PATH; do
3792     IFS="$lt_save_ifs"
3793     test -z "$ac_dir" && ac_dir=.
3794     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3795       lt_cv_path_LD="$ac_dir/$ac_prog"
3796       # Check to see if the program is GNU ld.  I'd rather use --version,
3797       # but apparently some variants of GNU ld only accept -v.
3798       # Break only if it was the GNU/non-GNU ld that we prefer.
3799       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3800       *GNU* | *'with BFD'*)
3801         test "$with_gnu_ld" != no && break
3802         ;;
3803       *)
3804         test "$with_gnu_ld" != yes && break
3805         ;;
3806       esac
3807     fi
3808   done
3809   IFS="$lt_save_ifs"
3810 else
3811   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3812 fi
3813 fi
3814
3815 LD="$lt_cv_path_LD"
3816 if test -n "$LD"; then
3817   echo "$as_me:$LINENO: result: $LD" >&5
3818 echo "${ECHO_T}$LD" >&6
3819 else
3820   echo "$as_me:$LINENO: result: no" >&5
3821 echo "${ECHO_T}no" >&6
3822 fi
3823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3825    { (exit 1); exit 1; }; }
3826 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3828 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3829   echo $ECHO_N "(cached) $ECHO_C" >&6
3830 else
3831   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3832 case `$LD -v 2>&1 </dev/null` in
3833 *GNU* | *'with BFD'*)
3834   lt_cv_prog_gnu_ld=yes
3835   ;;
3836 *)
3837   lt_cv_prog_gnu_ld=no
3838   ;;
3839 esac
3840 fi
3841 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3842 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3843 with_gnu_ld=$lt_cv_prog_gnu_ld
3844
3845
3846 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3847 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3848 if test "${lt_cv_ld_reload_flag+set}" = set; then
3849   echo $ECHO_N "(cached) $ECHO_C" >&6
3850 else
3851   lt_cv_ld_reload_flag='-r'
3852 fi
3853 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3854 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3855 reload_flag=$lt_cv_ld_reload_flag
3856 case $reload_flag in
3857 "" | " "*) ;;
3858 *) reload_flag=" $reload_flag" ;;
3859 esac
3860 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3861 case $host_os in
3862   darwin*)
3863     if test "$GCC" = yes; then
3864       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3865     else
3866       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3867     fi
3868     ;;
3869 esac
3870
3871 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3872 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3873 if test "${lt_cv_path_NM+set}" = set; then
3874   echo $ECHO_N "(cached) $ECHO_C" >&6
3875 else
3876   if test -n "$NM"; then
3877   # Let the user override the test.
3878   lt_cv_path_NM="$NM"
3879 else
3880   lt_nm_to_check="${ac_tool_prefix}nm"
3881   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3882     lt_nm_to_check="$lt_nm_to_check nm"
3883   fi
3884   for lt_tmp_nm in $lt_nm_to_check; do
3885     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3886     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3887       IFS="$lt_save_ifs"
3888       test -z "$ac_dir" && ac_dir=.
3889       tmp_nm="$ac_dir/$lt_tmp_nm"
3890       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3891         # Check to see if the nm accepts a BSD-compat flag.
3892         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3893         #   nm: unknown option "B" ignored
3894         # Tru64's nm complains that /dev/null is an invalid object file
3895         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3896         */dev/null* | *'Invalid file or object type'*)
3897           lt_cv_path_NM="$tmp_nm -B"
3898           break
3899           ;;
3900         *)
3901           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3902           */dev/null*)
3903             lt_cv_path_NM="$tmp_nm -p"
3904             break
3905             ;;
3906           *)
3907             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3908             continue # so that we can try to find one that supports BSD flags
3909             ;;
3910           esac
3911           ;;
3912         esac
3913       fi
3914     done
3915     IFS="$lt_save_ifs"
3916   done
3917   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3918 fi
3919 fi
3920 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3921 echo "${ECHO_T}$lt_cv_path_NM" >&6
3922 NM="$lt_cv_path_NM"
3923
3924 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3925 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3926 LN_S=$as_ln_s
3927 if test "$LN_S" = "ln -s"; then
3928   echo "$as_me:$LINENO: result: yes" >&5
3929 echo "${ECHO_T}yes" >&6
3930 else
3931   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3932 echo "${ECHO_T}no, using $LN_S" >&6
3933 fi
3934
3935 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3936 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3937 if test "${lt_cv_deplibs_check_method+set}" = set; then
3938   echo $ECHO_N "(cached) $ECHO_C" >&6
3939 else
3940   lt_cv_file_magic_cmd='$MAGIC_CMD'
3941 lt_cv_file_magic_test_file=
3942 lt_cv_deplibs_check_method='unknown'
3943 # Need to set the preceding variable on all platforms that support
3944 # interlibrary dependencies.
3945 # 'none' -- dependencies not supported.
3946 # `unknown' -- same as none, but documents that we really don't know.
3947 # 'pass_all' -- all dependencies passed with no checks.
3948 # 'test_compile' -- check by making test program.
3949 # 'file_magic [[regex]]' -- check by looking for files in library path
3950 # which responds to the $file_magic_cmd with a given extended regex.
3951 # If you have `file' or equivalent on your system and you're not sure
3952 # whether `pass_all' will *always* work, you probably want this one.
3953
3954 case $host_os in
3955 aix4* | aix5*)
3956   lt_cv_deplibs_check_method=pass_all
3957   ;;
3958
3959 beos*)
3960   lt_cv_deplibs_check_method=pass_all
3961   ;;
3962
3963 bsdi[45]*)
3964   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3965   lt_cv_file_magic_cmd='/usr/bin/file -L'
3966   lt_cv_file_magic_test_file=/shlib/libc.so
3967   ;;
3968
3969 cygwin*)
3970   # func_win32_libid is a shell function defined in ltmain.sh
3971   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3972   lt_cv_file_magic_cmd='func_win32_libid'
3973   ;;
3974
3975 mingw* | pw32*)
3976   # Base MSYS/MinGW do not provide the 'file' command needed by
3977   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3978   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3979   lt_cv_file_magic_cmd='$OBJDUMP -f'
3980   ;;
3981
3982 darwin* | rhapsody*)
3983   lt_cv_deplibs_check_method=pass_all
3984   ;;
3985
3986 freebsd* | kfreebsd*-gnu | dragonfly*)
3987   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3988     case $host_cpu in
3989     i*86 )
3990       # Not sure whether the presence of OpenBSD here was a mistake.
3991       # Let's accept both of them until this is cleared up.
3992       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
3993       lt_cv_file_magic_cmd=/usr/bin/file
3994       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3995       ;;
3996     esac
3997   else
3998     lt_cv_deplibs_check_method=pass_all
3999   fi
4000   ;;
4001
4002 gnu*)
4003   lt_cv_deplibs_check_method=pass_all
4004   ;;
4005
4006 hpux10.20* | hpux11*)
4007   lt_cv_file_magic_cmd=/usr/bin/file
4008   case $host_cpu in
4009   ia64*)
4010     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4011     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4012     ;;
4013   hppa*64*)
4014     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]'
4015     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4016     ;;
4017   *)
4018     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4019     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4020     ;;
4021   esac
4022   ;;
4023
4024 interix3*)
4025   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4026   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4027   ;;
4028
4029 irix5* | irix6* | nonstopux*)
4030   case $LD in
4031   *-32|*"-32 ") libmagic=32-bit;;
4032   *-n32|*"-n32 ") libmagic=N32;;
4033   *-64|*"-64 ") libmagic=64-bit;;
4034   *) libmagic=never-match;;
4035   esac
4036   lt_cv_deplibs_check_method=pass_all
4037   ;;
4038
4039 # This must be Linux ELF.
4040 linux*)
4041   lt_cv_deplibs_check_method=pass_all
4042   ;;
4043
4044 netbsd*)
4045   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4046     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4047   else
4048     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4049   fi
4050   ;;
4051
4052 newos6*)
4053   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4054   lt_cv_file_magic_cmd=/usr/bin/file
4055   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4056   ;;
4057
4058 nto-qnx*)
4059   lt_cv_deplibs_check_method=unknown
4060   ;;
4061
4062 openbsd*)
4063   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4064     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4065   else
4066     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4067   fi
4068   ;;
4069
4070 osf3* | osf4* | osf5*)
4071   lt_cv_deplibs_check_method=pass_all
4072   ;;
4073
4074 solaris*)
4075   lt_cv_deplibs_check_method=pass_all
4076   ;;
4077
4078 sysv4 | sysv4.3*)
4079   case $host_vendor in
4080   motorola)
4081     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]'
4082     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4083     ;;
4084   ncr)
4085     lt_cv_deplibs_check_method=pass_all
4086     ;;
4087   sequent)
4088     lt_cv_file_magic_cmd='/bin/file'
4089     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4090     ;;
4091   sni)
4092     lt_cv_file_magic_cmd='/bin/file'
4093     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4094     lt_cv_file_magic_test_file=/lib/libc.so
4095     ;;
4096   siemens)
4097     lt_cv_deplibs_check_method=pass_all
4098     ;;
4099   pc)
4100     lt_cv_deplibs_check_method=pass_all
4101     ;;
4102   esac
4103   ;;
4104
4105 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4106   lt_cv_deplibs_check_method=pass_all
4107   ;;
4108 esac
4109
4110 fi
4111 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4112 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4113 file_magic_cmd=$lt_cv_file_magic_cmd
4114 deplibs_check_method=$lt_cv_deplibs_check_method
4115 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4116
4117
4118
4119
4120 # If no C compiler was specified, use CC.
4121 LTCC=${LTCC-"$CC"}
4122
4123 # If no C compiler flags were specified, use CFLAGS.
4124 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4125
4126 # Allow CC to be a program name with arguments.
4127 compiler=$CC
4128
4129
4130 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4131 if test "${enable_libtool_lock+set}" = set; then
4132   enableval="$enable_libtool_lock"
4133
4134 fi;
4135 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4136
4137 # Some flags need to be propagated to the compiler or linker for good
4138 # libtool support.
4139 case $host in
4140 ia64-*-hpux*)
4141   # Find out which ABI we are using.
4142   echo 'int i;' > conftest.$ac_ext
4143   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4144   (eval $ac_compile) 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; then
4148     case `/usr/bin/file conftest.$ac_objext` in
4149     *ELF-32*)
4150       HPUX_IA64_MODE="32"
4151       ;;
4152     *ELF-64*)
4153       HPUX_IA64_MODE="64"
4154       ;;
4155     esac
4156   fi
4157   rm -rf conftest*
4158   ;;
4159 *-*-irix6*)
4160   # Find out which ABI we are using.
4161   echo '#line 4161 "configure"' > conftest.$ac_ext
4162   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4163   (eval $ac_compile) 2>&5
4164   ac_status=$?
4165   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4166   (exit $ac_status); }; then
4167    if test "$lt_cv_prog_gnu_ld" = yes; then
4168     case `/usr/bin/file conftest.$ac_objext` in
4169     *32-bit*)
4170       LD="${LD-ld} -melf32bsmip"
4171       ;;
4172     *N32*)
4173       LD="${LD-ld} -melf32bmipn32"
4174       ;;
4175     *64-bit*)
4176       LD="${LD-ld} -melf64bmip"
4177       ;;
4178     esac
4179    else
4180     case `/usr/bin/file conftest.$ac_objext` in
4181     *32-bit*)
4182       LD="${LD-ld} -32"
4183       ;;
4184     *N32*)
4185       LD="${LD-ld} -n32"
4186       ;;
4187     *64-bit*)
4188       LD="${LD-ld} -64"
4189       ;;
4190     esac
4191    fi
4192   fi
4193   rm -rf conftest*
4194   ;;
4195
4196 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4197   # Find out which ABI we are using.
4198   echo 'int i;' > conftest.$ac_ext
4199   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4200   (eval $ac_compile) 2>&5
4201   ac_status=$?
4202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4203   (exit $ac_status); }; then
4204     case `/usr/bin/file conftest.o` in
4205     *32-bit*)
4206       case $host in
4207         x86_64-*linux*)
4208           LD="${LD-ld} -m elf_i386"
4209           ;;
4210         ppc64-*linux*|powerpc64-*linux*)
4211           LD="${LD-ld} -m elf32ppclinux"
4212           ;;
4213         s390x-*linux*)
4214           LD="${LD-ld} -m elf_s390"
4215           ;;
4216         sparc64-*linux*)
4217           LD="${LD-ld} -m elf32_sparc"
4218           ;;
4219       esac
4220       ;;
4221     *64-bit*)
4222       case $host in
4223         x86_64-*linux*)
4224           LD="${LD-ld} -m elf_x86_64"
4225           ;;
4226         ppc*-*linux*|powerpc*-*linux*)
4227           LD="${LD-ld} -m elf64ppc"
4228           ;;
4229         s390*-*linux*)
4230           LD="${LD-ld} -m elf64_s390"
4231           ;;
4232         sparc*-*linux*)
4233           LD="${LD-ld} -m elf64_sparc"
4234           ;;
4235       esac
4236       ;;
4237     esac
4238   fi
4239   rm -rf conftest*
4240   ;;
4241
4242 *-*-sco3.2v5*)
4243   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4244   SAVE_CFLAGS="$CFLAGS"
4245   CFLAGS="$CFLAGS -belf"
4246   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4247 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4248 if test "${lt_cv_cc_needs_belf+set}" = set; then
4249   echo $ECHO_N "(cached) $ECHO_C" >&6
4250 else
4251   ac_ext=c
4252 ac_cpp='$CPP $CPPFLAGS'
4253 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4254 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4255 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4256
4257      cat >conftest.$ac_ext <<_ACEOF
4258 /* confdefs.h.  */
4259 _ACEOF
4260 cat confdefs.h >>conftest.$ac_ext
4261 cat >>conftest.$ac_ext <<_ACEOF
4262 /* end confdefs.h.  */
4263
4264 int
4265 main ()
4266 {
4267
4268   ;
4269   return 0;
4270 }
4271 _ACEOF
4272 rm -f conftest.$ac_objext conftest$ac_exeext
4273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4274   (eval $ac_link) 2>conftest.er1
4275   ac_status=$?
4276   grep -v '^ *+' conftest.er1 >conftest.err
4277   rm -f conftest.er1
4278   cat conftest.err >&5
4279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4280   (exit $ac_status); } &&
4281          { ac_try='test -z "$ac_c_werror_flag"
4282                          || test ! -s conftest.err'
4283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4284   (eval $ac_try) 2>&5
4285   ac_status=$?
4286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4287   (exit $ac_status); }; } &&
4288          { ac_try='test -s conftest$ac_exeext'
4289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4290   (eval $ac_try) 2>&5
4291   ac_status=$?
4292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4293   (exit $ac_status); }; }; then
4294   lt_cv_cc_needs_belf=yes
4295 else
4296   echo "$as_me: failed program was:" >&5
4297 sed 's/^/| /' conftest.$ac_ext >&5
4298
4299 lt_cv_cc_needs_belf=no
4300 fi
4301 rm -f conftest.err conftest.$ac_objext \
4302       conftest$ac_exeext conftest.$ac_ext
4303      ac_ext=c
4304 ac_cpp='$CPP $CPPFLAGS'
4305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4308
4309 fi
4310 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4311 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4312   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4313     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4314     CFLAGS="$SAVE_CFLAGS"
4315   fi
4316   ;;
4317 sparc*-*solaris*)
4318   # Find out which ABI we are using.
4319   echo 'int i;' > conftest.$ac_ext
4320   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4321   (eval $ac_compile) 2>&5
4322   ac_status=$?
4323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324   (exit $ac_status); }; then
4325     case `/usr/bin/file conftest.o` in
4326     *64-bit*)
4327       case $lt_cv_prog_gnu_ld in
4328       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4329       *)    LD="${LD-ld} -64" ;;
4330       esac
4331       ;;
4332     esac
4333   fi
4334   rm -rf conftest*
4335   ;;
4336
4337
4338 esac
4339
4340 need_locks="$enable_libtool_lock"
4341
4342
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4348 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4349 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4350 # On Suns, sometimes $CPP names a directory.
4351 if test -n "$CPP" && test -d "$CPP"; then
4352   CPP=
4353 fi
4354 if test -z "$CPP"; then
4355   if test "${ac_cv_prog_CPP+set}" = set; then
4356   echo $ECHO_N "(cached) $ECHO_C" >&6
4357 else
4358       # Double quotes because CPP needs to be expanded
4359     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4360     do
4361       ac_preproc_ok=false
4362 for ac_c_preproc_warn_flag in '' yes
4363 do
4364   # Use a header file that comes with gcc, so configuring glibc
4365   # with a fresh cross-compiler works.
4366   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4367   # <limits.h> exists even on freestanding compilers.
4368   # On the NeXT, cc -E runs the code through the compiler's parser,
4369   # not just through cpp. "Syntax error" is here to catch this case.
4370   cat >conftest.$ac_ext <<_ACEOF
4371 /* confdefs.h.  */
4372 _ACEOF
4373 cat confdefs.h >>conftest.$ac_ext
4374 cat >>conftest.$ac_ext <<_ACEOF
4375 /* end confdefs.h.  */
4376 #ifdef __STDC__
4377 # include <limits.h>
4378 #else
4379 # include <assert.h>
4380 #endif
4381                      Syntax error
4382 _ACEOF
4383 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4384   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4385   ac_status=$?
4386   grep -v '^ *+' conftest.er1 >conftest.err
4387   rm -f conftest.er1
4388   cat conftest.err >&5
4389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390   (exit $ac_status); } >/dev/null; then
4391   if test -s conftest.err; then
4392     ac_cpp_err=$ac_c_preproc_warn_flag
4393     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4394   else
4395     ac_cpp_err=
4396   fi
4397 else
4398   ac_cpp_err=yes
4399 fi
4400 if test -z "$ac_cpp_err"; then
4401   :
4402 else
4403   echo "$as_me: failed program was:" >&5
4404 sed 's/^/| /' conftest.$ac_ext >&5
4405
4406   # Broken: fails on valid input.
4407 continue
4408 fi
4409 rm -f conftest.err conftest.$ac_ext
4410
4411   # OK, works on sane cases.  Now check whether non-existent headers
4412   # can be detected and how.
4413   cat >conftest.$ac_ext <<_ACEOF
4414 /* confdefs.h.  */
4415 _ACEOF
4416 cat confdefs.h >>conftest.$ac_ext
4417 cat >>conftest.$ac_ext <<_ACEOF
4418 /* end confdefs.h.  */
4419 #include <ac_nonexistent.h>
4420 _ACEOF
4421 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4422   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4423   ac_status=$?
4424   grep -v '^ *+' conftest.er1 >conftest.err
4425   rm -f conftest.er1
4426   cat conftest.err >&5
4427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428   (exit $ac_status); } >/dev/null; then
4429   if test -s conftest.err; then
4430     ac_cpp_err=$ac_c_preproc_warn_flag
4431     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4432   else
4433     ac_cpp_err=
4434   fi
4435 else
4436   ac_cpp_err=yes
4437 fi
4438 if test -z "$ac_cpp_err"; then
4439   # Broken: success on invalid input.
4440 continue
4441 else
4442   echo "$as_me: failed program was:" >&5
4443 sed 's/^/| /' conftest.$ac_ext >&5
4444
4445   # Passes both tests.
4446 ac_preproc_ok=:
4447 break
4448 fi
4449 rm -f conftest.err conftest.$ac_ext
4450
4451 done
4452 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4453 rm -f conftest.err conftest.$ac_ext
4454 if $ac_preproc_ok; then
4455   break
4456 fi
4457
4458     done
4459     ac_cv_prog_CPP=$CPP
4460
4461 fi
4462   CPP=$ac_cv_prog_CPP
4463 else
4464   ac_cv_prog_CPP=$CPP
4465 fi
4466 echo "$as_me:$LINENO: result: $CPP" >&5
4467 echo "${ECHO_T}$CPP" >&6
4468 ac_preproc_ok=false
4469 for ac_c_preproc_warn_flag in '' yes
4470 do
4471   # Use a header file that comes with gcc, so configuring glibc
4472   # with a fresh cross-compiler works.
4473   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4474   # <limits.h> exists even on freestanding compilers.
4475   # On the NeXT, cc -E runs the code through the compiler's parser,
4476   # not just through cpp. "Syntax error" is here to catch this case.
4477   cat >conftest.$ac_ext <<_ACEOF
4478 /* confdefs.h.  */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h.  */
4483 #ifdef __STDC__
4484 # include <limits.h>
4485 #else
4486 # include <assert.h>
4487 #endif
4488                      Syntax error
4489 _ACEOF
4490 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4491   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4492   ac_status=$?
4493   grep -v '^ *+' conftest.er1 >conftest.err
4494   rm -f conftest.er1
4495   cat conftest.err >&5
4496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497   (exit $ac_status); } >/dev/null; then
4498   if test -s conftest.err; then
4499     ac_cpp_err=$ac_c_preproc_warn_flag
4500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4501   else
4502     ac_cpp_err=
4503   fi
4504 else
4505   ac_cpp_err=yes
4506 fi
4507 if test -z "$ac_cpp_err"; then
4508   :
4509 else
4510   echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4512
4513   # Broken: fails on valid input.
4514 continue
4515 fi
4516 rm -f conftest.err conftest.$ac_ext
4517
4518   # OK, works on sane cases.  Now check whether non-existent headers
4519   # can be detected and how.
4520   cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h.  */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h.  */
4526 #include <ac_nonexistent.h>
4527 _ACEOF
4528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4529   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4530   ac_status=$?
4531   grep -v '^ *+' conftest.er1 >conftest.err
4532   rm -f conftest.er1
4533   cat conftest.err >&5
4534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535   (exit $ac_status); } >/dev/null; then
4536   if test -s conftest.err; then
4537     ac_cpp_err=$ac_c_preproc_warn_flag
4538     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4539   else
4540     ac_cpp_err=
4541   fi
4542 else
4543   ac_cpp_err=yes
4544 fi
4545 if test -z "$ac_cpp_err"; then
4546   # Broken: success on invalid input.
4547 continue
4548 else
4549   echo "$as_me: failed program was:" >&5
4550 sed 's/^/| /' conftest.$ac_ext >&5
4551
4552   # Passes both tests.
4553 ac_preproc_ok=:
4554 break
4555 fi
4556 rm -f conftest.err conftest.$ac_ext
4557
4558 done
4559 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4560 rm -f conftest.err conftest.$ac_ext
4561 if $ac_preproc_ok; then
4562   :
4563 else
4564   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4565 See \`config.log' for more details." >&5
4566 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4567 See \`config.log' for more details." >&2;}
4568    { (exit 1); exit 1; }; }
4569 fi
4570
4571 ac_ext=c
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576
4577
4578 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4579 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4580 if test "${ac_cv_header_stdc+set}" = set; then
4581   echo $ECHO_N "(cached) $ECHO_C" >&6
4582 else
4583   cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h.  */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h.  */
4589 #include <stdlib.h>
4590 #include <stdarg.h>
4591 #include <string.h>
4592 #include <float.h>
4593
4594 int
4595 main ()
4596 {
4597
4598   ;
4599   return 0;
4600 }
4601 _ACEOF
4602 rm -f conftest.$ac_objext
4603 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4604   (eval $ac_compile) 2>conftest.er1
4605   ac_status=$?
4606   grep -v '^ *+' conftest.er1 >conftest.err
4607   rm -f conftest.er1
4608   cat conftest.err >&5
4609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4610   (exit $ac_status); } &&
4611          { ac_try='test -z "$ac_c_werror_flag"
4612                          || test ! -s conftest.err'
4613   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614   (eval $ac_try) 2>&5
4615   ac_status=$?
4616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617   (exit $ac_status); }; } &&
4618          { ac_try='test -s conftest.$ac_objext'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; }; then
4624   ac_cv_header_stdc=yes
4625 else
4626   echo "$as_me: failed program was:" >&5
4627 sed 's/^/| /' conftest.$ac_ext >&5
4628
4629 ac_cv_header_stdc=no
4630 fi
4631 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4632
4633 if test $ac_cv_header_stdc = yes; then
4634   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4635   cat >conftest.$ac_ext <<_ACEOF
4636 /* confdefs.h.  */
4637 _ACEOF
4638 cat confdefs.h >>conftest.$ac_ext
4639 cat >>conftest.$ac_ext <<_ACEOF
4640 /* end confdefs.h.  */
4641 #include <string.h>
4642
4643 _ACEOF
4644 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4645   $EGREP "memchr" >/dev/null 2>&1; then
4646   :
4647 else
4648   ac_cv_header_stdc=no
4649 fi
4650 rm -f conftest*
4651
4652 fi
4653
4654 if test $ac_cv_header_stdc = yes; then
4655   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
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 #include <stdlib.h>
4663
4664 _ACEOF
4665 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4666   $EGREP "free" >/dev/null 2>&1; then
4667   :
4668 else
4669   ac_cv_header_stdc=no
4670 fi
4671 rm -f conftest*
4672
4673 fi
4674
4675 if test $ac_cv_header_stdc = yes; then
4676   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4677   if test "$cross_compiling" = yes; then
4678   :
4679 else
4680   cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h.  */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h.  */
4686 #include <ctype.h>
4687 #if ((' ' & 0x0FF) == 0x020)
4688 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4689 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4690 #else
4691 # define ISLOWER(c) \
4692                    (('a' <= (c) && (c) <= 'i') \
4693                      || ('j' <= (c) && (c) <= 'r') \
4694                      || ('s' <= (c) && (c) <= 'z'))
4695 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4696 #endif
4697
4698 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4699 int
4700 main ()
4701 {
4702   int i;
4703   for (i = 0; i < 256; i++)
4704     if (XOR (islower (i), ISLOWER (i))
4705         || toupper (i) != TOUPPER (i))
4706       exit(2);
4707   exit (0);
4708 }
4709 _ACEOF
4710 rm -f conftest$ac_exeext
4711 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4712   (eval $ac_link) 2>&5
4713   ac_status=$?
4714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4717   (eval $ac_try) 2>&5
4718   ac_status=$?
4719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4720   (exit $ac_status); }; }; then
4721   :
4722 else
4723   echo "$as_me: program exited with status $ac_status" >&5
4724 echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 ( exit $ac_status )
4728 ac_cv_header_stdc=no
4729 fi
4730 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4731 fi
4732 fi
4733 fi
4734 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4735 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4736 if test $ac_cv_header_stdc = yes; then
4737
4738 cat >>confdefs.h <<\_ACEOF
4739 #define STDC_HEADERS 1
4740 _ACEOF
4741
4742 fi
4743
4744 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4745
4746
4747
4748
4749
4750
4751
4752
4753
4754 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4755                   inttypes.h stdint.h unistd.h
4756 do
4757 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4758 echo "$as_me:$LINENO: checking for $ac_header" >&5
4759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4760 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4761   echo $ECHO_N "(cached) $ECHO_C" >&6
4762 else
4763   cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h.  */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h.  */
4769 $ac_includes_default
4770
4771 #include <$ac_header>
4772 _ACEOF
4773 rm -f conftest.$ac_objext
4774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4775   (eval $ac_compile) 2>conftest.er1
4776   ac_status=$?
4777   grep -v '^ *+' conftest.er1 >conftest.err
4778   rm -f conftest.er1
4779   cat conftest.err >&5
4780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781   (exit $ac_status); } &&
4782          { ac_try='test -z "$ac_c_werror_flag"
4783                          || test ! -s conftest.err'
4784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4785   (eval $ac_try) 2>&5
4786   ac_status=$?
4787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4788   (exit $ac_status); }; } &&
4789          { ac_try='test -s conftest.$ac_objext'
4790   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4791   (eval $ac_try) 2>&5
4792   ac_status=$?
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); }; }; then
4795   eval "$as_ac_Header=yes"
4796 else
4797   echo "$as_me: failed program was:" >&5
4798 sed 's/^/| /' conftest.$ac_ext >&5
4799
4800 eval "$as_ac_Header=no"
4801 fi
4802 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4803 fi
4804 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4805 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4806 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4807   cat >>confdefs.h <<_ACEOF
4808 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4809 _ACEOF
4810
4811 fi
4812
4813 done
4814
4815
4816
4817 for ac_header in dlfcn.h
4818 do
4819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4821   echo "$as_me:$LINENO: checking for $ac_header" >&5
4822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4824   echo $ECHO_N "(cached) $ECHO_C" >&6
4825 fi
4826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4828 else
4829   # Is the header compilable?
4830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4832 cat >conftest.$ac_ext <<_ACEOF
4833 /* confdefs.h.  */
4834 _ACEOF
4835 cat confdefs.h >>conftest.$ac_ext
4836 cat >>conftest.$ac_ext <<_ACEOF
4837 /* end confdefs.h.  */
4838 $ac_includes_default
4839 #include <$ac_header>
4840 _ACEOF
4841 rm -f conftest.$ac_objext
4842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4843   (eval $ac_compile) 2>conftest.er1
4844   ac_status=$?
4845   grep -v '^ *+' conftest.er1 >conftest.err
4846   rm -f conftest.er1
4847   cat conftest.err >&5
4848   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4849   (exit $ac_status); } &&
4850          { ac_try='test -z "$ac_c_werror_flag"
4851                          || test ! -s conftest.err'
4852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4853   (eval $ac_try) 2>&5
4854   ac_status=$?
4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4856   (exit $ac_status); }; } &&
4857          { ac_try='test -s conftest.$ac_objext'
4858   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4859   (eval $ac_try) 2>&5
4860   ac_status=$?
4861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862   (exit $ac_status); }; }; then
4863   ac_header_compiler=yes
4864 else
4865   echo "$as_me: failed program was:" >&5
4866 sed 's/^/| /' conftest.$ac_ext >&5
4867
4868 ac_header_compiler=no
4869 fi
4870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4872 echo "${ECHO_T}$ac_header_compiler" >&6
4873
4874 # Is the header present?
4875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4877 cat >conftest.$ac_ext <<_ACEOF
4878 /* confdefs.h.  */
4879 _ACEOF
4880 cat confdefs.h >>conftest.$ac_ext
4881 cat >>conftest.$ac_ext <<_ACEOF
4882 /* end confdefs.h.  */
4883 #include <$ac_header>
4884 _ACEOF
4885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4886   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4887   ac_status=$?
4888   grep -v '^ *+' conftest.er1 >conftest.err
4889   rm -f conftest.er1
4890   cat conftest.err >&5
4891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4892   (exit $ac_status); } >/dev/null; then
4893   if test -s conftest.err; then
4894     ac_cpp_err=$ac_c_preproc_warn_flag
4895     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4896   else
4897     ac_cpp_err=
4898   fi
4899 else
4900   ac_cpp_err=yes
4901 fi
4902 if test -z "$ac_cpp_err"; then
4903   ac_header_preproc=yes
4904 else
4905   echo "$as_me: failed program was:" >&5
4906 sed 's/^/| /' conftest.$ac_ext >&5
4907
4908   ac_header_preproc=no
4909 fi
4910 rm -f conftest.err conftest.$ac_ext
4911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4912 echo "${ECHO_T}$ac_header_preproc" >&6
4913
4914 # So?  What about this header?
4915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4916   yes:no: )
4917     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4919     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4921     ac_header_preproc=yes
4922     ;;
4923   no:yes:* )
4924     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4926     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4927 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4928     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4930     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4931 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4932     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4934     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4936     (
4937       cat <<\_ASBOX
4938 ## ------------------------------------------ ##
4939 ## Report this to the AC_PACKAGE_NAME lists.  ##
4940 ## ------------------------------------------ ##
4941 _ASBOX
4942     ) |
4943       sed "s/^/$as_me: WARNING:     /" >&2
4944     ;;
4945 esac
4946 echo "$as_me:$LINENO: checking for $ac_header" >&5
4947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4949   echo $ECHO_N "(cached) $ECHO_C" >&6
4950 else
4951   eval "$as_ac_Header=\$ac_header_preproc"
4952 fi
4953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4955
4956 fi
4957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4958   cat >>confdefs.h <<_ACEOF
4959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4960 _ACEOF
4961
4962 fi
4963
4964 done
4965
4966
4967
4968 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
4969     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
4970     (test "X$CXX" != "Xg++"))) ; then
4971   ac_ext=cc
4972 ac_cpp='$CXXCPP $CPPFLAGS'
4973 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4974 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4975 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4976 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4977 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4978 if test -z "$CXXCPP"; then
4979   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4980   echo $ECHO_N "(cached) $ECHO_C" >&6
4981 else
4982       # Double quotes because CXXCPP needs to be expanded
4983     for CXXCPP in "$CXX -E" "/lib/cpp"
4984     do
4985       ac_preproc_ok=false
4986 for ac_cxx_preproc_warn_flag in '' yes
4987 do
4988   # Use a header file that comes with gcc, so configuring glibc
4989   # with a fresh cross-compiler works.
4990   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4991   # <limits.h> exists even on freestanding compilers.
4992   # On the NeXT, cc -E runs the code through the compiler's parser,
4993   # not just through cpp. "Syntax error" is here to catch this case.
4994   cat >conftest.$ac_ext <<_ACEOF
4995 /* confdefs.h.  */
4996 _ACEOF
4997 cat confdefs.h >>conftest.$ac_ext
4998 cat >>conftest.$ac_ext <<_ACEOF
4999 /* end confdefs.h.  */
5000 #ifdef __STDC__
5001 # include <limits.h>
5002 #else
5003 # include <assert.h>
5004 #endif
5005                      Syntax error
5006 _ACEOF
5007 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5008   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5009   ac_status=$?
5010   grep -v '^ *+' conftest.er1 >conftest.err
5011   rm -f conftest.er1
5012   cat conftest.err >&5
5013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5014   (exit $ac_status); } >/dev/null; then
5015   if test -s conftest.err; then
5016     ac_cpp_err=$ac_cxx_preproc_warn_flag
5017     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5018   else
5019     ac_cpp_err=
5020   fi
5021 else
5022   ac_cpp_err=yes
5023 fi
5024 if test -z "$ac_cpp_err"; then
5025   :
5026 else
5027   echo "$as_me: failed program was:" >&5
5028 sed 's/^/| /' conftest.$ac_ext >&5
5029
5030   # Broken: fails on valid input.
5031 continue
5032 fi
5033 rm -f conftest.err conftest.$ac_ext
5034
5035   # OK, works on sane cases.  Now check whether non-existent headers
5036   # can be detected and how.
5037   cat >conftest.$ac_ext <<_ACEOF
5038 /* confdefs.h.  */
5039 _ACEOF
5040 cat confdefs.h >>conftest.$ac_ext
5041 cat >>conftest.$ac_ext <<_ACEOF
5042 /* end confdefs.h.  */
5043 #include <ac_nonexistent.h>
5044 _ACEOF
5045 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5046   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5047   ac_status=$?
5048   grep -v '^ *+' conftest.er1 >conftest.err
5049   rm -f conftest.er1
5050   cat conftest.err >&5
5051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052   (exit $ac_status); } >/dev/null; then
5053   if test -s conftest.err; then
5054     ac_cpp_err=$ac_cxx_preproc_warn_flag
5055     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5056   else
5057     ac_cpp_err=
5058   fi
5059 else
5060   ac_cpp_err=yes
5061 fi
5062 if test -z "$ac_cpp_err"; then
5063   # Broken: success on invalid input.
5064 continue
5065 else
5066   echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069   # Passes both tests.
5070 ac_preproc_ok=:
5071 break
5072 fi
5073 rm -f conftest.err conftest.$ac_ext
5074
5075 done
5076 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5077 rm -f conftest.err conftest.$ac_ext
5078 if $ac_preproc_ok; then
5079   break
5080 fi
5081
5082     done
5083     ac_cv_prog_CXXCPP=$CXXCPP
5084
5085 fi
5086   CXXCPP=$ac_cv_prog_CXXCPP
5087 else
5088   ac_cv_prog_CXXCPP=$CXXCPP
5089 fi
5090 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5091 echo "${ECHO_T}$CXXCPP" >&6
5092 ac_preproc_ok=false
5093 for ac_cxx_preproc_warn_flag in '' yes
5094 do
5095   # Use a header file that comes with gcc, so configuring glibc
5096   # with a fresh cross-compiler works.
5097   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5098   # <limits.h> exists even on freestanding compilers.
5099   # On the NeXT, cc -E runs the code through the compiler's parser,
5100   # not just through cpp. "Syntax error" is here to catch this case.
5101   cat >conftest.$ac_ext <<_ACEOF
5102 /* confdefs.h.  */
5103 _ACEOF
5104 cat confdefs.h >>conftest.$ac_ext
5105 cat >>conftest.$ac_ext <<_ACEOF
5106 /* end confdefs.h.  */
5107 #ifdef __STDC__
5108 # include <limits.h>
5109 #else
5110 # include <assert.h>
5111 #endif
5112                      Syntax error
5113 _ACEOF
5114 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5115   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5116   ac_status=$?
5117   grep -v '^ *+' conftest.er1 >conftest.err
5118   rm -f conftest.er1
5119   cat conftest.err >&5
5120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5121   (exit $ac_status); } >/dev/null; then
5122   if test -s conftest.err; then
5123     ac_cpp_err=$ac_cxx_preproc_warn_flag
5124     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5125   else
5126     ac_cpp_err=
5127   fi
5128 else
5129   ac_cpp_err=yes
5130 fi
5131 if test -z "$ac_cpp_err"; then
5132   :
5133 else
5134   echo "$as_me: failed program was:" >&5
5135 sed 's/^/| /' conftest.$ac_ext >&5
5136
5137   # Broken: fails on valid input.
5138 continue
5139 fi
5140 rm -f conftest.err conftest.$ac_ext
5141
5142   # OK, works on sane cases.  Now check whether non-existent headers
5143   # can be detected and how.
5144   cat >conftest.$ac_ext <<_ACEOF
5145 /* confdefs.h.  */
5146 _ACEOF
5147 cat confdefs.h >>conftest.$ac_ext
5148 cat >>conftest.$ac_ext <<_ACEOF
5149 /* end confdefs.h.  */
5150 #include <ac_nonexistent.h>
5151 _ACEOF
5152 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5153   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5154   ac_status=$?
5155   grep -v '^ *+' conftest.er1 >conftest.err
5156   rm -f conftest.er1
5157   cat conftest.err >&5
5158   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5159   (exit $ac_status); } >/dev/null; then
5160   if test -s conftest.err; then
5161     ac_cpp_err=$ac_cxx_preproc_warn_flag
5162     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5163   else
5164     ac_cpp_err=
5165   fi
5166 else
5167   ac_cpp_err=yes
5168 fi
5169 if test -z "$ac_cpp_err"; then
5170   # Broken: success on invalid input.
5171 continue
5172 else
5173   echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176   # Passes both tests.
5177 ac_preproc_ok=:
5178 break
5179 fi
5180 rm -f conftest.err conftest.$ac_ext
5181
5182 done
5183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5184 rm -f conftest.err conftest.$ac_ext
5185 if $ac_preproc_ok; then
5186   :
5187 else
5188   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5189 See \`config.log' for more details." >&5
5190 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5191 See \`config.log' for more details." >&2;}
5192    { (exit 1); exit 1; }; }
5193 fi
5194
5195 ac_ext=cc
5196 ac_cpp='$CXXCPP $CPPFLAGS'
5197 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5198 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5199 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5200
5201 fi
5202
5203
5204 ac_ext=f
5205 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5206 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5207 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5208 if test -n "$ac_tool_prefix"; then
5209   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5210   do
5211     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5213 echo "$as_me:$LINENO: checking for $ac_word" >&5
5214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5215 if test "${ac_cv_prog_F77+set}" = set; then
5216   echo $ECHO_N "(cached) $ECHO_C" >&6
5217 else
5218   if test -n "$F77"; then
5219   ac_cv_prog_F77="$F77" # Let the user override the test.
5220 else
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224   IFS=$as_save_IFS
5225   test -z "$as_dir" && as_dir=.
5226   for ac_exec_ext in '' $ac_executable_extensions; do
5227   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5229     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230     break 2
5231   fi
5232 done
5233 done
5234
5235 fi
5236 fi
5237 F77=$ac_cv_prog_F77
5238 if test -n "$F77"; then
5239   echo "$as_me:$LINENO: result: $F77" >&5
5240 echo "${ECHO_T}$F77" >&6
5241 else
5242   echo "$as_me:$LINENO: result: no" >&5
5243 echo "${ECHO_T}no" >&6
5244 fi
5245
5246     test -n "$F77" && break
5247   done
5248 fi
5249 if test -z "$F77"; then
5250   ac_ct_F77=$F77
5251   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5252 do
5253   # Extract the first word of "$ac_prog", so it can be a program name with args.
5254 set dummy $ac_prog; ac_word=$2
5255 echo "$as_me:$LINENO: checking for $ac_word" >&5
5256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5257 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5258   echo $ECHO_N "(cached) $ECHO_C" >&6
5259 else
5260   if test -n "$ac_ct_F77"; then
5261   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5262 else
5263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5264 for as_dir in $PATH
5265 do
5266   IFS=$as_save_IFS
5267   test -z "$as_dir" && as_dir=.
5268   for ac_exec_ext in '' $ac_executable_extensions; do
5269   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5270     ac_cv_prog_ac_ct_F77="$ac_prog"
5271     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5272     break 2
5273   fi
5274 done
5275 done
5276
5277 fi
5278 fi
5279 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5280 if test -n "$ac_ct_F77"; then
5281   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5282 echo "${ECHO_T}$ac_ct_F77" >&6
5283 else
5284   echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6
5286 fi
5287
5288   test -n "$ac_ct_F77" && break
5289 done
5290
5291   F77=$ac_ct_F77
5292 fi
5293
5294
5295 # Provide some information about the compiler.
5296 echo "$as_me:5296:" \
5297      "checking for Fortran 77 compiler version" >&5
5298 ac_compiler=`set X $ac_compile; echo $2`
5299 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5300   (eval $ac_compiler --version </dev/null >&5) 2>&5
5301   ac_status=$?
5302   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5303   (exit $ac_status); }
5304 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5305   (eval $ac_compiler -v </dev/null >&5) 2>&5
5306   ac_status=$?
5307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5308   (exit $ac_status); }
5309 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5310   (eval $ac_compiler -V </dev/null >&5) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }
5314 rm -f a.out
5315
5316 # If we don't use `.F' as extension, the preprocessor is not run on the
5317 # input file.  (Note that this only needs to work for GNU compilers.)
5318 ac_save_ext=$ac_ext
5319 ac_ext=F
5320 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5321 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5322 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5323   echo $ECHO_N "(cached) $ECHO_C" >&6
5324 else
5325   cat >conftest.$ac_ext <<_ACEOF
5326       program main
5327 #ifndef __GNUC__
5328        choke me
5329 #endif
5330
5331       end
5332 _ACEOF
5333 rm -f conftest.$ac_objext
5334 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5335   (eval $ac_compile) 2>conftest.er1
5336   ac_status=$?
5337   grep -v '^ *+' conftest.er1 >conftest.err
5338   rm -f conftest.er1
5339   cat conftest.err >&5
5340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341   (exit $ac_status); } &&
5342          { ac_try='test -z "$ac_f77_werror_flag"
5343                          || test ! -s conftest.err'
5344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5345   (eval $ac_try) 2>&5
5346   ac_status=$?
5347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5348   (exit $ac_status); }; } &&
5349          { ac_try='test -s conftest.$ac_objext'
5350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5351   (eval $ac_try) 2>&5
5352   ac_status=$?
5353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5354   (exit $ac_status); }; }; then
5355   ac_compiler_gnu=yes
5356 else
5357   echo "$as_me: failed program was:" >&5
5358 sed 's/^/| /' conftest.$ac_ext >&5
5359
5360 ac_compiler_gnu=no
5361 fi
5362 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5363 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5364
5365 fi
5366 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5367 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5368 ac_ext=$ac_save_ext
5369 ac_test_FFLAGS=${FFLAGS+set}
5370 ac_save_FFLAGS=$FFLAGS
5371 FFLAGS=
5372 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5373 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5374 if test "${ac_cv_prog_f77_g+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   FFLAGS=-g
5378 cat >conftest.$ac_ext <<_ACEOF
5379       program main
5380
5381       end
5382 _ACEOF
5383 rm -f conftest.$ac_objext
5384 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5385   (eval $ac_compile) 2>conftest.er1
5386   ac_status=$?
5387   grep -v '^ *+' conftest.er1 >conftest.err
5388   rm -f conftest.er1
5389   cat conftest.err >&5
5390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5391   (exit $ac_status); } &&
5392          { ac_try='test -z "$ac_f77_werror_flag"
5393                          || test ! -s conftest.err'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; } &&
5399          { ac_try='test -s conftest.$ac_objext'
5400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5401   (eval $ac_try) 2>&5
5402   ac_status=$?
5403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5404   (exit $ac_status); }; }; then
5405   ac_cv_prog_f77_g=yes
5406 else
5407   echo "$as_me: failed program was:" >&5
5408 sed 's/^/| /' conftest.$ac_ext >&5
5409
5410 ac_cv_prog_f77_g=no
5411 fi
5412 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5413
5414 fi
5415 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5416 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5417 if test "$ac_test_FFLAGS" = set; then
5418   FFLAGS=$ac_save_FFLAGS
5419 elif test $ac_cv_prog_f77_g = yes; then
5420   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5421     FFLAGS="-g -O2"
5422   else
5423     FFLAGS="-g"
5424   fi
5425 else
5426   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5427     FFLAGS="-O2"
5428   else
5429     FFLAGS=
5430   fi
5431 fi
5432
5433 G77=`test $ac_compiler_gnu = yes && echo yes`
5434 ac_ext=c
5435 ac_cpp='$CPP $CPPFLAGS'
5436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5439
5440
5441
5442 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5443
5444 # find the maximum length of command line arguments
5445 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5446 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5447 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5448   echo $ECHO_N "(cached) $ECHO_C" >&6
5449 else
5450     i=0
5451   teststring="ABCD"
5452
5453   case $build_os in
5454   msdosdjgpp*)
5455     # On DJGPP, this test can blow up pretty badly due to problems in libc
5456     # (any single argument exceeding 2000 bytes causes a buffer overrun
5457     # during glob expansion).  Even if it were fixed, the result of this
5458     # check would be larger than it should be.
5459     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5460     ;;
5461
5462   gnu*)
5463     # Under GNU Hurd, this test is not required because there is
5464     # no limit to the length of command line arguments.
5465     # Libtool will interpret -1 as no limit whatsoever
5466     lt_cv_sys_max_cmd_len=-1;
5467     ;;
5468
5469   cygwin* | mingw*)
5470     # On Win9x/ME, this test blows up -- it succeeds, but takes
5471     # about 5 minutes as the teststring grows exponentially.
5472     # Worse, since 9x/ME are not pre-emptively multitasking,
5473     # you end up with a "frozen" computer, even though with patience
5474     # the test eventually succeeds (with a max line length of 256k).
5475     # Instead, let's just punt: use the minimum linelength reported by
5476     # all of the supported platforms: 8192 (on NT/2K/XP).
5477     lt_cv_sys_max_cmd_len=8192;
5478     ;;
5479
5480   amigaos*)
5481     # On AmigaOS with pdksh, this test takes hours, literally.
5482     # So we just punt and use a minimum line length of 8192.
5483     lt_cv_sys_max_cmd_len=8192;
5484     ;;
5485
5486   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5487     # This has been around since 386BSD, at least.  Likely further.
5488     if test -x /sbin/sysctl; then
5489       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5490     elif test -x /usr/sbin/sysctl; then
5491       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5492     else
5493       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5494     fi
5495     # And add a safety zone
5496     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5497     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5498     ;;
5499
5500   interix*)
5501     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5502     lt_cv_sys_max_cmd_len=196608
5503     ;;
5504
5505   osf*)
5506     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5507     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5508     # nice to cause kernel panics so lets avoid the loop below.
5509     # First set a reasonable default.
5510     lt_cv_sys_max_cmd_len=16384
5511     #
5512     if test -x /sbin/sysconfig; then
5513       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5514         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5515       esac
5516     fi
5517     ;;
5518   sco3.2v5*)
5519     lt_cv_sys_max_cmd_len=102400
5520     ;;
5521   sysv5* | sco5v6* | sysv4.2uw2*)
5522     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5523     if test -n "$kargmax"; then
5524       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5525     else
5526       lt_cv_sys_max_cmd_len=32768
5527     fi
5528     ;;
5529   *)
5530     # If test is not a shell built-in, we'll probably end up computing a
5531     # maximum length that is only half of the actual maximum length, but
5532     # we can't tell.
5533     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5534     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5535                = "XX$teststring") >/dev/null 2>&1 &&
5536             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5537             lt_cv_sys_max_cmd_len=$new_result &&
5538             test $i != 17 # 1/2 MB should be enough
5539     do
5540       i=`expr $i + 1`
5541       teststring=$teststring$teststring
5542     done
5543     teststring=
5544     # Add a significant safety factor because C++ compilers can tack on massive
5545     # amounts of additional arguments before passing them to the linker.
5546     # It appears as though 1/2 is a usable value.
5547     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5548     ;;
5549   esac
5550
5551 fi
5552
5553 if test -n $lt_cv_sys_max_cmd_len ; then
5554   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5555 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5556 else
5557   echo "$as_me:$LINENO: result: none" >&5
5558 echo "${ECHO_T}none" >&6
5559 fi
5560
5561
5562
5563
5564 # Check for command to grab the raw symbol name followed by C symbol from nm.
5565 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5566 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5567 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5568   echo $ECHO_N "(cached) $ECHO_C" >&6
5569 else
5570
5571 # These are sane defaults that work on at least a few old systems.
5572 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5573
5574 # Character class describing NM global symbol codes.
5575 symcode='[BCDEGRST]'
5576
5577 # Regexp to match symbols that can be accessed directly from C.
5578 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5579
5580 # Transform an extracted symbol line into a proper C declaration
5581 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5582
5583 # Transform an extracted symbol line into symbol name and symbol address
5584 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'"
5585
5586 # Define system-specific variables.
5587 case $host_os in
5588 aix*)
5589   symcode='[BCDT]'
5590   ;;
5591 cygwin* | mingw* | pw32*)
5592   symcode='[ABCDGISTW]'
5593   ;;
5594 hpux*) # Its linker distinguishes data from code symbols
5595   if test "$host_cpu" = ia64; then
5596     symcode='[ABCDEGRST]'
5597   fi
5598   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5599   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'"
5600   ;;
5601 linux*)
5602   if test "$host_cpu" = ia64; then
5603     symcode='[ABCDGIRSTW]'
5604     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5605     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'"
5606   fi
5607   ;;
5608 irix* | nonstopux*)
5609   symcode='[BCDEGRST]'
5610   ;;
5611 osf*)
5612   symcode='[BCDEGQRST]'
5613   ;;
5614 solaris*)
5615   symcode='[BDRT]'
5616   ;;
5617 sco3.2v5*)
5618   symcode='[DT]'
5619   ;;
5620 sysv4.2uw2*)
5621   symcode='[DT]'
5622   ;;
5623 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5624   symcode='[ABDT]'
5625   ;;
5626 sysv4)
5627   symcode='[DFNSTU]'
5628   ;;
5629 esac
5630
5631 # Handle CRLF in mingw tool chain
5632 opt_cr=
5633 case $build_os in
5634 mingw*)
5635   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5636   ;;
5637 esac
5638
5639 # If we're using GNU nm, then use its standard symbol codes.
5640 case `$NM -V 2>&1` in
5641 *GNU* | *'with BFD'*)
5642   symcode='[ABCDGIRSTW]' ;;
5643 esac
5644
5645 # Try without a prefix undercore, then with it.
5646 for ac_symprfx in "" "_"; do
5647
5648   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5649   symxfrm="\\1 $ac_symprfx\\2 \\2"
5650
5651   # Write the raw and C identifiers.
5652   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5653
5654   # Check to see that the pipe works correctly.
5655   pipe_works=no
5656
5657   rm -f conftest*
5658   cat > conftest.$ac_ext <<EOF
5659 #ifdef __cplusplus
5660 extern "C" {
5661 #endif
5662 char nm_test_var;
5663 void nm_test_func(){}
5664 #ifdef __cplusplus
5665 }
5666 #endif
5667 int main(){nm_test_var='a';nm_test_func();return(0);}
5668 EOF
5669
5670   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5671   (eval $ac_compile) 2>&5
5672   ac_status=$?
5673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674   (exit $ac_status); }; then
5675     # Now try to grab the symbols.
5676     nlist=conftest.nm
5677     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5678   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5679   ac_status=$?
5680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5681   (exit $ac_status); } && test -s "$nlist"; then
5682       # Try sorting and uniquifying the output.
5683       if sort "$nlist" | uniq > "$nlist"T; then
5684         mv -f "$nlist"T "$nlist"
5685       else
5686         rm -f "$nlist"T
5687       fi
5688
5689       # Make sure that we snagged all the symbols we need.
5690       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5691         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5692           cat <<EOF > conftest.$ac_ext
5693 #ifdef __cplusplus
5694 extern "C" {
5695 #endif
5696
5697 EOF
5698           # Now generate the symbol file.
5699           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5700
5701           cat <<EOF >> conftest.$ac_ext
5702 #if defined (__STDC__) && __STDC__
5703 # define lt_ptr_t void *
5704 #else
5705 # define lt_ptr_t char *
5706 # define const
5707 #endif
5708
5709 /* The mapping between symbol names and symbols. */
5710 const struct {
5711   const char *name;
5712   lt_ptr_t address;
5713 }
5714 lt_preloaded_symbols[] =
5715 {
5716 EOF
5717           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5718           cat <<\EOF >> conftest.$ac_ext
5719   {0, (lt_ptr_t) 0}
5720 };
5721
5722 #ifdef __cplusplus
5723 }
5724 #endif
5725 EOF
5726           # Now try linking the two files.
5727           mv conftest.$ac_objext conftstm.$ac_objext
5728           lt_save_LIBS="$LIBS"
5729           lt_save_CFLAGS="$CFLAGS"
5730           LIBS="conftstm.$ac_objext"
5731           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5732           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733   (eval $ac_link) 2>&5
5734   ac_status=$?
5735   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5736   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5737             pipe_works=yes
5738           fi
5739           LIBS="$lt_save_LIBS"
5740           CFLAGS="$lt_save_CFLAGS"
5741         else
5742           echo "cannot find nm_test_func in $nlist" >&5
5743         fi
5744       else
5745         echo "cannot find nm_test_var in $nlist" >&5
5746       fi
5747     else
5748       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5749     fi
5750   else
5751     echo "$progname: failed program was:" >&5
5752     cat conftest.$ac_ext >&5
5753   fi
5754   rm -f conftest* conftst*
5755
5756   # Do not use the global_symbol_pipe unless it works.
5757   if test "$pipe_works" = yes; then
5758     break
5759   else
5760     lt_cv_sys_global_symbol_pipe=
5761   fi
5762 done
5763
5764 fi
5765
5766 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5767   lt_cv_sys_global_symbol_to_cdecl=
5768 fi
5769 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5770   echo "$as_me:$LINENO: result: failed" >&5
5771 echo "${ECHO_T}failed" >&6
5772 else
5773   echo "$as_me:$LINENO: result: ok" >&5
5774 echo "${ECHO_T}ok" >&6
5775 fi
5776
5777 echo "$as_me:$LINENO: checking for objdir" >&5
5778 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5779 if test "${lt_cv_objdir+set}" = set; then
5780   echo $ECHO_N "(cached) $ECHO_C" >&6
5781 else
5782   rm -f .libs 2>/dev/null
5783 mkdir .libs 2>/dev/null
5784 if test -d .libs; then
5785   lt_cv_objdir=.libs
5786 else
5787   # MS-DOS does not allow filenames that begin with a dot.
5788   lt_cv_objdir=_libs
5789 fi
5790 rmdir .libs 2>/dev/null
5791 fi
5792 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5793 echo "${ECHO_T}$lt_cv_objdir" >&6
5794 objdir=$lt_cv_objdir
5795
5796
5797
5798
5799
5800 case $host_os in
5801 aix3*)
5802   # AIX sometimes has problems with the GCC collect2 program.  For some
5803   # reason, if we set the COLLECT_NAMES environment variable, the problems
5804   # vanish in a puff of smoke.
5805   if test "X${COLLECT_NAMES+set}" != Xset; then
5806     COLLECT_NAMES=
5807     export COLLECT_NAMES
5808   fi
5809   ;;
5810 esac
5811
5812 # Sed substitution that helps us do robust quoting.  It backslashifies
5813 # metacharacters that are still active within double-quoted strings.
5814 Xsed='sed -e 1s/^X//'
5815 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5816
5817 # Same as above, but do not quote variable references.
5818 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5819
5820 # Sed substitution to delay expansion of an escaped shell variable in a
5821 # double_quote_subst'ed string.
5822 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5823
5824 # Sed substitution to avoid accidental globbing in evaled expressions
5825 no_glob_subst='s/\*/\\\*/g'
5826
5827 # Constants:
5828 rm="rm -f"
5829
5830 # Global variables:
5831 default_ofile=libtool
5832 can_build_shared=yes
5833
5834 # All known linkers require a `.a' archive for static linking (except MSVC,
5835 # which needs '.lib').
5836 libext=a
5837 ltmain="$ac_aux_dir/ltmain.sh"
5838 ofile="$default_ofile"
5839 with_gnu_ld="$lt_cv_prog_gnu_ld"
5840
5841 if test -n "$ac_tool_prefix"; then
5842   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5843 set dummy ${ac_tool_prefix}ar; ac_word=$2
5844 echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5846 if test "${ac_cv_prog_AR+set}" = set; then
5847   echo $ECHO_N "(cached) $ECHO_C" >&6
5848 else
5849   if test -n "$AR"; then
5850   ac_cv_prog_AR="$AR" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5854 do
5855   IFS=$as_save_IFS
5856   test -z "$as_dir" && as_dir=.
5857   for ac_exec_ext in '' $ac_executable_extensions; do
5858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5859     ac_cv_prog_AR="${ac_tool_prefix}ar"
5860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5861     break 2
5862   fi
5863 done
5864 done
5865
5866 fi
5867 fi
5868 AR=$ac_cv_prog_AR
5869 if test -n "$AR"; then
5870   echo "$as_me:$LINENO: result: $AR" >&5
5871 echo "${ECHO_T}$AR" >&6
5872 else
5873   echo "$as_me:$LINENO: result: no" >&5
5874 echo "${ECHO_T}no" >&6
5875 fi
5876
5877 fi
5878 if test -z "$ac_cv_prog_AR"; then
5879   ac_ct_AR=$AR
5880   # Extract the first word of "ar", so it can be a program name with args.
5881 set dummy ar; ac_word=$2
5882 echo "$as_me:$LINENO: checking for $ac_word" >&5
5883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5884 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5885   echo $ECHO_N "(cached) $ECHO_C" >&6
5886 else
5887   if test -n "$ac_ct_AR"; then
5888   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5889 else
5890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5891 for as_dir in $PATH
5892 do
5893   IFS=$as_save_IFS
5894   test -z "$as_dir" && as_dir=.
5895   for ac_exec_ext in '' $ac_executable_extensions; do
5896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5897     ac_cv_prog_ac_ct_AR="ar"
5898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5899     break 2
5900   fi
5901 done
5902 done
5903
5904   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5905 fi
5906 fi
5907 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5908 if test -n "$ac_ct_AR"; then
5909   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5910 echo "${ECHO_T}$ac_ct_AR" >&6
5911 else
5912   echo "$as_me:$LINENO: result: no" >&5
5913 echo "${ECHO_T}no" >&6
5914 fi
5915
5916   AR=$ac_ct_AR
5917 else
5918   AR="$ac_cv_prog_AR"
5919 fi
5920
5921 if test -n "$ac_tool_prefix"; then
5922   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5923 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5924 echo "$as_me:$LINENO: checking for $ac_word" >&5
5925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5926 if test "${ac_cv_prog_RANLIB+set}" = set; then
5927   echo $ECHO_N "(cached) $ECHO_C" >&6
5928 else
5929   if test -n "$RANLIB"; then
5930   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5931 else
5932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5933 for as_dir in $PATH
5934 do
5935   IFS=$as_save_IFS
5936   test -z "$as_dir" && as_dir=.
5937   for ac_exec_ext in '' $ac_executable_extensions; do
5938   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5939     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5940     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5941     break 2
5942   fi
5943 done
5944 done
5945
5946 fi
5947 fi
5948 RANLIB=$ac_cv_prog_RANLIB
5949 if test -n "$RANLIB"; then
5950   echo "$as_me:$LINENO: result: $RANLIB" >&5
5951 echo "${ECHO_T}$RANLIB" >&6
5952 else
5953   echo "$as_me:$LINENO: result: no" >&5
5954 echo "${ECHO_T}no" >&6
5955 fi
5956
5957 fi
5958 if test -z "$ac_cv_prog_RANLIB"; then
5959   ac_ct_RANLIB=$RANLIB
5960   # Extract the first word of "ranlib", so it can be a program name with args.
5961 set dummy ranlib; ac_word=$2
5962 echo "$as_me:$LINENO: checking for $ac_word" >&5
5963 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5964 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5965   echo $ECHO_N "(cached) $ECHO_C" >&6
5966 else
5967   if test -n "$ac_ct_RANLIB"; then
5968   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973   IFS=$as_save_IFS
5974   test -z "$as_dir" && as_dir=.
5975   for ac_exec_ext in '' $ac_executable_extensions; do
5976   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977     ac_cv_prog_ac_ct_RANLIB="ranlib"
5978     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5979     break 2
5980   fi
5981 done
5982 done
5983
5984   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5985 fi
5986 fi
5987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5988 if test -n "$ac_ct_RANLIB"; then
5989   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5990 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5991 else
5992   echo "$as_me:$LINENO: result: no" >&5
5993 echo "${ECHO_T}no" >&6
5994 fi
5995
5996   RANLIB=$ac_ct_RANLIB
5997 else
5998   RANLIB="$ac_cv_prog_RANLIB"
5999 fi
6000
6001 if test -n "$ac_tool_prefix"; then
6002   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6003 set dummy ${ac_tool_prefix}strip; ac_word=$2
6004 echo "$as_me:$LINENO: checking for $ac_word" >&5
6005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6006 if test "${ac_cv_prog_STRIP+set}" = set; then
6007   echo $ECHO_N "(cached) $ECHO_C" >&6
6008 else
6009   if test -n "$STRIP"; then
6010   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6011 else
6012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6013 for as_dir in $PATH
6014 do
6015   IFS=$as_save_IFS
6016   test -z "$as_dir" && as_dir=.
6017   for ac_exec_ext in '' $ac_executable_extensions; do
6018   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6019     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6020     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6021     break 2
6022   fi
6023 done
6024 done
6025
6026 fi
6027 fi
6028 STRIP=$ac_cv_prog_STRIP
6029 if test -n "$STRIP"; then
6030   echo "$as_me:$LINENO: result: $STRIP" >&5
6031 echo "${ECHO_T}$STRIP" >&6
6032 else
6033   echo "$as_me:$LINENO: result: no" >&5
6034 echo "${ECHO_T}no" >&6
6035 fi
6036
6037 fi
6038 if test -z "$ac_cv_prog_STRIP"; then
6039   ac_ct_STRIP=$STRIP
6040   # Extract the first word of "strip", so it can be a program name with args.
6041 set dummy strip; ac_word=$2
6042 echo "$as_me:$LINENO: checking for $ac_word" >&5
6043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6044 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6045   echo $ECHO_N "(cached) $ECHO_C" >&6
6046 else
6047   if test -n "$ac_ct_STRIP"; then
6048   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6049 else
6050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6051 for as_dir in $PATH
6052 do
6053   IFS=$as_save_IFS
6054   test -z "$as_dir" && as_dir=.
6055   for ac_exec_ext in '' $ac_executable_extensions; do
6056   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6057     ac_cv_prog_ac_ct_STRIP="strip"
6058     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6059     break 2
6060   fi
6061 done
6062 done
6063
6064   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6065 fi
6066 fi
6067 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6068 if test -n "$ac_ct_STRIP"; then
6069   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6070 echo "${ECHO_T}$ac_ct_STRIP" >&6
6071 else
6072   echo "$as_me:$LINENO: result: no" >&5
6073 echo "${ECHO_T}no" >&6
6074 fi
6075
6076   STRIP=$ac_ct_STRIP
6077 else
6078   STRIP="$ac_cv_prog_STRIP"
6079 fi
6080
6081
6082 old_CC="$CC"
6083 old_CFLAGS="$CFLAGS"
6084
6085 # Set sane defaults for various variables
6086 test -z "$AR" && AR=ar
6087 test -z "$AR_FLAGS" && AR_FLAGS=cru
6088 test -z "$AS" && AS=as
6089 test -z "$CC" && CC=cc
6090 test -z "$LTCC" && LTCC=$CC
6091 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6092 test -z "$DLLTOOL" && DLLTOOL=dlltool
6093 test -z "$LD" && LD=ld
6094 test -z "$LN_S" && LN_S="ln -s"
6095 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6096 test -z "$NM" && NM=nm
6097 test -z "$SED" && SED=sed
6098 test -z "$OBJDUMP" && OBJDUMP=objdump
6099 test -z "$RANLIB" && RANLIB=:
6100 test -z "$STRIP" && STRIP=:
6101 test -z "$ac_objext" && ac_objext=o
6102
6103 # Determine commands to create old-style static archives.
6104 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6105 old_postinstall_cmds='chmod 644 $oldlib'
6106 old_postuninstall_cmds=
6107
6108 if test -n "$RANLIB"; then
6109   case $host_os in
6110   openbsd*)
6111     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6112     ;;
6113   *)
6114     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6115     ;;
6116   esac
6117   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6118 fi
6119
6120 for cc_temp in $compiler""; do
6121   case $cc_temp in
6122     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6123     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6124     \-*) ;;
6125     *) break;;
6126   esac
6127 done
6128 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6129
6130
6131 # Only perform the check for file, if the check method requires it
6132 case $deplibs_check_method in
6133 file_magic*)
6134   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6135     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6136 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6137 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   case $MAGIC_CMD in
6141 [\\/*] |  ?:[\\/]*)
6142   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6143   ;;
6144 *)
6145   lt_save_MAGIC_CMD="$MAGIC_CMD"
6146   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6147   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6148   for ac_dir in $ac_dummy; do
6149     IFS="$lt_save_ifs"
6150     test -z "$ac_dir" && ac_dir=.
6151     if test -f $ac_dir/${ac_tool_prefix}file; then
6152       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6153       if test -n "$file_magic_test_file"; then
6154         case $deplibs_check_method in
6155         "file_magic "*)
6156           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6157           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6159             $EGREP "$file_magic_regex" > /dev/null; then
6160             :
6161           else
6162             cat <<EOF 1>&2
6163
6164 *** Warning: the command libtool uses to detect shared libraries,
6165 *** $file_magic_cmd, produces output that libtool cannot recognize.
6166 *** The result is that libtool may fail to recognize shared libraries
6167 *** as such.  This will affect the creation of libtool libraries that
6168 *** depend on shared libraries, but programs linked with such libtool
6169 *** libraries will work regardless of this problem.  Nevertheless, you
6170 *** may want to report the problem to your system manager and/or to
6171 *** bug-libtool@gnu.org
6172
6173 EOF
6174           fi ;;
6175         esac
6176       fi
6177       break
6178     fi
6179   done
6180   IFS="$lt_save_ifs"
6181   MAGIC_CMD="$lt_save_MAGIC_CMD"
6182   ;;
6183 esac
6184 fi
6185
6186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187 if test -n "$MAGIC_CMD"; then
6188   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6189 echo "${ECHO_T}$MAGIC_CMD" >&6
6190 else
6191   echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6
6193 fi
6194
6195 if test -z "$lt_cv_path_MAGIC_CMD"; then
6196   if test -n "$ac_tool_prefix"; then
6197     echo "$as_me:$LINENO: checking for file" >&5
6198 echo $ECHO_N "checking for file... $ECHO_C" >&6
6199 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6200   echo $ECHO_N "(cached) $ECHO_C" >&6
6201 else
6202   case $MAGIC_CMD in
6203 [\\/*] |  ?:[\\/]*)
6204   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6205   ;;
6206 *)
6207   lt_save_MAGIC_CMD="$MAGIC_CMD"
6208   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6209   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6210   for ac_dir in $ac_dummy; do
6211     IFS="$lt_save_ifs"
6212     test -z "$ac_dir" && ac_dir=.
6213     if test -f $ac_dir/file; then
6214       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6215       if test -n "$file_magic_test_file"; then
6216         case $deplibs_check_method in
6217         "file_magic "*)
6218           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6219           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6220           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6221             $EGREP "$file_magic_regex" > /dev/null; then
6222             :
6223           else
6224             cat <<EOF 1>&2
6225
6226 *** Warning: the command libtool uses to detect shared libraries,
6227 *** $file_magic_cmd, produces output that libtool cannot recognize.
6228 *** The result is that libtool may fail to recognize shared libraries
6229 *** as such.  This will affect the creation of libtool libraries that
6230 *** depend on shared libraries, but programs linked with such libtool
6231 *** libraries will work regardless of this problem.  Nevertheless, you
6232 *** may want to report the problem to your system manager and/or to
6233 *** bug-libtool@gnu.org
6234
6235 EOF
6236           fi ;;
6237         esac
6238       fi
6239       break
6240     fi
6241   done
6242   IFS="$lt_save_ifs"
6243   MAGIC_CMD="$lt_save_MAGIC_CMD"
6244   ;;
6245 esac
6246 fi
6247
6248 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6249 if test -n "$MAGIC_CMD"; then
6250   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6251 echo "${ECHO_T}$MAGIC_CMD" >&6
6252 else
6253   echo "$as_me:$LINENO: result: no" >&5
6254 echo "${ECHO_T}no" >&6
6255 fi
6256
6257   else
6258     MAGIC_CMD=:
6259   fi
6260 fi
6261
6262   fi
6263   ;;
6264 esac
6265
6266 enable_dlopen=no
6267 enable_win32_dll=no
6268
6269 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6270 if test "${enable_libtool_lock+set}" = set; then
6271   enableval="$enable_libtool_lock"
6272
6273 fi;
6274 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6275
6276
6277 # Check whether --with-pic or --without-pic was given.
6278 if test "${with_pic+set}" = set; then
6279   withval="$with_pic"
6280   pic_mode="$withval"
6281 else
6282   pic_mode=default
6283 fi;
6284 test -z "$pic_mode" && pic_mode=default
6285
6286 # Use C for the default configuration in the libtool script
6287 tagname=
6288 lt_save_CC="$CC"
6289 ac_ext=c
6290 ac_cpp='$CPP $CPPFLAGS'
6291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6294
6295
6296 # Source file extension for C test sources.
6297 ac_ext=c
6298
6299 # Object file extension for compiled C test sources.
6300 objext=o
6301 objext=$objext
6302
6303 # Code to be used in simple compile tests
6304 lt_simple_compile_test_code="int some_variable = 0;\n"
6305
6306 # Code to be used in simple link tests
6307 lt_simple_link_test_code='int main(){return(0);}\n'
6308
6309
6310 # If no C compiler was specified, use CC.
6311 LTCC=${LTCC-"$CC"}
6312
6313 # If no C compiler flags were specified, use CFLAGS.
6314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6315
6316 # Allow CC to be a program name with arguments.
6317 compiler=$CC
6318
6319
6320 # save warnings/boilerplate of simple test code
6321 ac_outfile=conftest.$ac_objext
6322 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6324 _lt_compiler_boilerplate=`cat conftest.err`
6325 $rm conftest*
6326
6327 ac_outfile=conftest.$ac_objext
6328 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6330 _lt_linker_boilerplate=`cat conftest.err`
6331 $rm conftest*
6332
6333
6334
6335 lt_prog_compiler_no_builtin_flag=
6336
6337 if test "$GCC" = yes; then
6338   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6339
6340
6341 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6342 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6343 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6344   echo $ECHO_N "(cached) $ECHO_C" >&6
6345 else
6346   lt_cv_prog_compiler_rtti_exceptions=no
6347   ac_outfile=conftest.$ac_objext
6348    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6349    lt_compiler_flag="-fno-rtti -fno-exceptions"
6350    # Insert the option either (1) after the last *FLAGS variable, or
6351    # (2) before a word containing "conftest.", or (3) at the end.
6352    # Note that $ac_compile itself does not contain backslashes and begins
6353    # with a dollar sign (not a hyphen), so the echo should work correctly.
6354    # The option is referenced via a variable to avoid confusing sed.
6355    lt_compile=`echo "$ac_compile" | $SED \
6356    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6357    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6358    -e 's:$: $lt_compiler_flag:'`
6359    (eval echo "\"\$as_me:6359: $lt_compile\"" >&5)
6360    (eval "$lt_compile" 2>conftest.err)
6361    ac_status=$?
6362    cat conftest.err >&5
6363    echo "$as_me:6363: \$? = $ac_status" >&5
6364    if (exit $ac_status) && test -s "$ac_outfile"; then
6365      # The compiler can only warn and ignore the option if not recognized
6366      # So say no if there are warnings other than the usual output.
6367      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6368      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6369      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6370        lt_cv_prog_compiler_rtti_exceptions=yes
6371      fi
6372    fi
6373    $rm conftest*
6374
6375 fi
6376 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6377 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6378
6379 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6380     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6381 else
6382     :
6383 fi
6384
6385 fi
6386
6387 lt_prog_compiler_wl=
6388 lt_prog_compiler_pic=
6389 lt_prog_compiler_static=
6390
6391 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6392 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6393
6394   if test "$GCC" = yes; then
6395     lt_prog_compiler_wl='-Wl,'
6396     lt_prog_compiler_static='-static'
6397
6398     case $host_os in
6399       aix*)
6400       # All AIX code is PIC.
6401       if test "$host_cpu" = ia64; then
6402         # AIX 5 now supports IA64 processor
6403         lt_prog_compiler_static='-Bstatic'
6404       fi
6405       ;;
6406
6407     amigaos*)
6408       # FIXME: we need at least 68020 code to build shared libraries, but
6409       # adding the `-m68020' flag to GCC prevents building anything better,
6410       # like `-m68040'.
6411       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6412       ;;
6413
6414     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6415       # PIC is the default for these OSes.
6416       ;;
6417
6418     mingw* | pw32* | os2*)
6419       # This hack is so that the source file can tell whether it is being
6420       # built for inclusion in a dll (and should export symbols for example).
6421       lt_prog_compiler_pic='-DDLL_EXPORT'
6422       ;;
6423
6424     darwin* | rhapsody*)
6425       # PIC is the default on this platform
6426       # Common symbols not allowed in MH_DYLIB files
6427       lt_prog_compiler_pic='-fno-common'
6428       ;;
6429
6430     interix3*)
6431       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6432       # Instead, we relocate shared libraries at runtime.
6433       ;;
6434
6435     msdosdjgpp*)
6436       # Just because we use GCC doesn't mean we suddenly get shared libraries
6437       # on systems that don't support them.
6438       lt_prog_compiler_can_build_shared=no
6439       enable_shared=no
6440       ;;
6441
6442     sysv4*MP*)
6443       if test -d /usr/nec; then
6444         lt_prog_compiler_pic=-Kconform_pic
6445       fi
6446       ;;
6447
6448     hpux*)
6449       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6450       # not for PA HP-UX.
6451       case $host_cpu in
6452       hppa*64*|ia64*)
6453         # +Z the default
6454         ;;
6455       *)
6456         lt_prog_compiler_pic='-fPIC'
6457         ;;
6458       esac
6459       ;;
6460
6461     *)
6462       lt_prog_compiler_pic='-fPIC'
6463       ;;
6464     esac
6465   else
6466     # PORTME Check for flag to pass linker flags through the system compiler.
6467     case $host_os in
6468     aix*)
6469       lt_prog_compiler_wl='-Wl,'
6470       if test "$host_cpu" = ia64; then
6471         # AIX 5 now supports IA64 processor
6472         lt_prog_compiler_static='-Bstatic'
6473       else
6474         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6475       fi
6476       ;;
6477       darwin*)
6478         # PIC is the default on this platform
6479         # Common symbols not allowed in MH_DYLIB files
6480        case $cc_basename in
6481          xlc*)
6482          lt_prog_compiler_pic='-qnocommon'
6483          lt_prog_compiler_wl='-Wl,'
6484          ;;
6485        esac
6486        ;;
6487
6488     mingw* | pw32* | os2*)
6489       # This hack is so that the source file can tell whether it is being
6490       # built for inclusion in a dll (and should export symbols for example).
6491       lt_prog_compiler_pic='-DDLL_EXPORT'
6492       ;;
6493
6494     hpux9* | hpux10* | hpux11*)
6495       lt_prog_compiler_wl='-Wl,'
6496       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6497       # not for PA HP-UX.
6498       case $host_cpu in
6499       hppa*64*|ia64*)
6500         # +Z the default
6501         ;;
6502       *)
6503         lt_prog_compiler_pic='+Z'
6504         ;;
6505       esac
6506       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6507       lt_prog_compiler_static='${wl}-a ${wl}archive'
6508       ;;
6509
6510     irix5* | irix6* | nonstopux*)
6511       lt_prog_compiler_wl='-Wl,'
6512       # PIC (with -KPIC) is the default.
6513       lt_prog_compiler_static='-non_shared'
6514       ;;
6515
6516     newsos6)
6517       lt_prog_compiler_pic='-KPIC'
6518       lt_prog_compiler_static='-Bstatic'
6519       ;;
6520
6521     linux*)
6522       case $cc_basename in
6523       icc* | ecc*)
6524         lt_prog_compiler_wl='-Wl,'
6525         lt_prog_compiler_pic='-KPIC'
6526         lt_prog_compiler_static='-static'
6527         ;;
6528       pgcc* | pgf77* | pgf90* | pgf95*)
6529         # Portland Group compilers (*not* the Pentium gcc compiler,
6530         # which looks to be a dead project)
6531         lt_prog_compiler_wl='-Wl,'
6532         lt_prog_compiler_pic='-fpic'
6533         lt_prog_compiler_static='-Bstatic'
6534         ;;
6535       ccc*)
6536         lt_prog_compiler_wl='-Wl,'
6537         # All Alpha code is PIC.
6538         lt_prog_compiler_static='-non_shared'
6539         ;;
6540       esac
6541       ;;
6542
6543     osf3* | osf4* | osf5*)
6544       lt_prog_compiler_wl='-Wl,'
6545       # All OSF/1 code is PIC.
6546       lt_prog_compiler_static='-non_shared'
6547       ;;
6548
6549     solaris*)
6550       lt_prog_compiler_pic='-KPIC'
6551       lt_prog_compiler_static='-Bstatic'
6552       case $cc_basename in
6553       f77* | f90* | f95*)
6554         lt_prog_compiler_wl='-Qoption ld ';;
6555       *)
6556         lt_prog_compiler_wl='-Wl,';;
6557       esac
6558       ;;
6559
6560     sunos4*)
6561       lt_prog_compiler_wl='-Qoption ld '
6562       lt_prog_compiler_pic='-PIC'
6563       lt_prog_compiler_static='-Bstatic'
6564       ;;
6565
6566     sysv4 | sysv4.2uw2* | sysv4.3*)
6567       lt_prog_compiler_wl='-Wl,'
6568       lt_prog_compiler_pic='-KPIC'
6569       lt_prog_compiler_static='-Bstatic'
6570       ;;
6571
6572     sysv4*MP*)
6573       if test -d /usr/nec ;then
6574         lt_prog_compiler_pic='-Kconform_pic'
6575         lt_prog_compiler_static='-Bstatic'
6576       fi
6577       ;;
6578
6579     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6580       lt_prog_compiler_wl='-Wl,'
6581       lt_prog_compiler_pic='-KPIC'
6582       lt_prog_compiler_static='-Bstatic'
6583       ;;
6584
6585     unicos*)
6586       lt_prog_compiler_wl='-Wl,'
6587       lt_prog_compiler_can_build_shared=no
6588       ;;
6589
6590     uts4*)
6591       lt_prog_compiler_pic='-pic'
6592       lt_prog_compiler_static='-Bstatic'
6593       ;;
6594
6595     *)
6596       lt_prog_compiler_can_build_shared=no
6597       ;;
6598     esac
6599   fi
6600
6601 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6602 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6603
6604 #
6605 # Check to make sure the PIC flag actually works.
6606 #
6607 if test -n "$lt_prog_compiler_pic"; then
6608
6609 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6610 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6611 if test "${lt_prog_compiler_pic_works+set}" = set; then
6612   echo $ECHO_N "(cached) $ECHO_C" >&6
6613 else
6614   lt_prog_compiler_pic_works=no
6615   ac_outfile=conftest.$ac_objext
6616    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6617    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6618    # Insert the option either (1) after the last *FLAGS variable, or
6619    # (2) before a word containing "conftest.", or (3) at the end.
6620    # Note that $ac_compile itself does not contain backslashes and begins
6621    # with a dollar sign (not a hyphen), so the echo should work correctly.
6622    # The option is referenced via a variable to avoid confusing sed.
6623    lt_compile=`echo "$ac_compile" | $SED \
6624    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6625    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6626    -e 's:$: $lt_compiler_flag:'`
6627    (eval echo "\"\$as_me:6627: $lt_compile\"" >&5)
6628    (eval "$lt_compile" 2>conftest.err)
6629    ac_status=$?
6630    cat conftest.err >&5
6631    echo "$as_me:6631: \$? = $ac_status" >&5
6632    if (exit $ac_status) && test -s "$ac_outfile"; then
6633      # The compiler can only warn and ignore the option if not recognized
6634      # So say no if there are warnings other than the usual output.
6635      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6636      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6637      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6638        lt_prog_compiler_pic_works=yes
6639      fi
6640    fi
6641    $rm conftest*
6642
6643 fi
6644 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6645 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6646
6647 if test x"$lt_prog_compiler_pic_works" = xyes; then
6648     case $lt_prog_compiler_pic in
6649      "" | " "*) ;;
6650      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6651      esac
6652 else
6653     lt_prog_compiler_pic=
6654      lt_prog_compiler_can_build_shared=no
6655 fi
6656
6657 fi
6658 case $host_os in
6659   # For platforms which do not support PIC, -DPIC is meaningless:
6660   *djgpp*)
6661     lt_prog_compiler_pic=
6662     ;;
6663   *)
6664     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6665     ;;
6666 esac
6667
6668 #
6669 # Check to make sure the static flag actually works.
6670 #
6671 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6672 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6673 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6674 if test "${lt_prog_compiler_static_works+set}" = set; then
6675   echo $ECHO_N "(cached) $ECHO_C" >&6
6676 else
6677   lt_prog_compiler_static_works=no
6678    save_LDFLAGS="$LDFLAGS"
6679    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6680    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6681    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6682      # The linker can only warn and ignore the option if not recognized
6683      # So say no if there are warnings
6684      if test -s conftest.err; then
6685        # Append any errors to the config.log.
6686        cat conftest.err 1>&5
6687        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6688        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6689        if diff conftest.exp conftest.er2 >/dev/null; then
6690          lt_prog_compiler_static_works=yes
6691        fi
6692      else
6693        lt_prog_compiler_static_works=yes
6694      fi
6695    fi
6696    $rm conftest*
6697    LDFLAGS="$save_LDFLAGS"
6698
6699 fi
6700 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6701 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6702
6703 if test x"$lt_prog_compiler_static_works" = xyes; then
6704     :
6705 else
6706     lt_prog_compiler_static=
6707 fi
6708
6709
6710 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6711 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6712 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6713   echo $ECHO_N "(cached) $ECHO_C" >&6
6714 else
6715   lt_cv_prog_compiler_c_o=no
6716    $rm -r conftest 2>/dev/null
6717    mkdir conftest
6718    cd conftest
6719    mkdir out
6720    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6721
6722    lt_compiler_flag="-o out/conftest2.$ac_objext"
6723    # Insert the option either (1) after the last *FLAGS variable, or
6724    # (2) before a word containing "conftest.", or (3) at the end.
6725    # Note that $ac_compile itself does not contain backslashes and begins
6726    # with a dollar sign (not a hyphen), so the echo should work correctly.
6727    lt_compile=`echo "$ac_compile" | $SED \
6728    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6729    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6730    -e 's:$: $lt_compiler_flag:'`
6731    (eval echo "\"\$as_me:6731: $lt_compile\"" >&5)
6732    (eval "$lt_compile" 2>out/conftest.err)
6733    ac_status=$?
6734    cat out/conftest.err >&5
6735    echo "$as_me:6735: \$? = $ac_status" >&5
6736    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6737    then
6738      # The compiler can only warn and ignore the option if not recognized
6739      # So say no if there are warnings
6740      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6741      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6742      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6743        lt_cv_prog_compiler_c_o=yes
6744      fi
6745    fi
6746    chmod u+w . 2>&5
6747    $rm conftest*
6748    # SGI C++ compiler will create directory out/ii_files/ for
6749    # template instantiation
6750    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6751    $rm out/* && rmdir out
6752    cd ..
6753    rmdir conftest
6754    $rm conftest*
6755
6756 fi
6757 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6758 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6759
6760
6761 hard_links="nottested"
6762 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6763   # do not overwrite the value of need_locks provided by the user
6764   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6765 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6766   hard_links=yes
6767   $rm conftest*
6768   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6769   touch conftest.a
6770   ln conftest.a conftest.b 2>&5 || hard_links=no
6771   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6772   echo "$as_me:$LINENO: result: $hard_links" >&5
6773 echo "${ECHO_T}$hard_links" >&6
6774   if test "$hard_links" = no; then
6775     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6776 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6777     need_locks=warn
6778   fi
6779 else
6780   need_locks=no
6781 fi
6782
6783 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6784 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6785
6786   runpath_var=
6787   allow_undefined_flag=
6788   enable_shared_with_static_runtimes=no
6789   archive_cmds=
6790   archive_expsym_cmds=
6791   old_archive_From_new_cmds=
6792   old_archive_from_expsyms_cmds=
6793   export_dynamic_flag_spec=
6794   whole_archive_flag_spec=
6795   thread_safe_flag_spec=
6796   hardcode_libdir_flag_spec=
6797   hardcode_libdir_flag_spec_ld=
6798   hardcode_libdir_separator=
6799   hardcode_direct=no
6800   hardcode_minus_L=no
6801   hardcode_shlibpath_var=unsupported
6802   link_all_deplibs=unknown
6803   hardcode_automatic=no
6804   module_cmds=
6805   module_expsym_cmds=
6806   always_export_symbols=no
6807   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6808   # include_expsyms should be a list of space-separated symbols to be *always*
6809   # included in the symbol list
6810   include_expsyms=
6811   # exclude_expsyms can be an extended regexp of symbols to exclude
6812   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6813   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6814   # as well as any symbol that contains `d'.
6815   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6816   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6817   # platforms (ab)use it in PIC code, but their linkers get confused if
6818   # the symbol is explicitly referenced.  Since portable code cannot
6819   # rely on this symbol name, it's probably fine to never include it in
6820   # preloaded symbol tables.
6821   extract_expsyms_cmds=
6822   # Just being paranoid about ensuring that cc_basename is set.
6823   for cc_temp in $compiler""; do
6824   case $cc_temp in
6825     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6826     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6827     \-*) ;;
6828     *) break;;
6829   esac
6830 done
6831 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6832
6833   case $host_os in
6834   cygwin* | mingw* | pw32*)
6835     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6836     # When not using gcc, we currently assume that we are using
6837     # Microsoft Visual C++.
6838     if test "$GCC" != yes; then
6839       with_gnu_ld=no
6840     fi
6841     ;;
6842   interix*)
6843     # we just hope/assume this is gcc and not c89 (= MSVC++)
6844     with_gnu_ld=yes
6845     ;;
6846   openbsd*)
6847     with_gnu_ld=no
6848     ;;
6849   esac
6850
6851   ld_shlibs=yes
6852   if test "$with_gnu_ld" = yes; then
6853     # If archive_cmds runs LD, not CC, wlarc should be empty
6854     wlarc='${wl}'
6855
6856     # Set some defaults for GNU ld with shared library support. These
6857     # are reset later if shared libraries are not supported. Putting them
6858     # here allows them to be overridden if necessary.
6859     runpath_var=LD_RUN_PATH
6860     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6861     export_dynamic_flag_spec='${wl}--export-dynamic'
6862     # ancient GNU ld didn't support --whole-archive et. al.
6863     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6864         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6865       else
6866         whole_archive_flag_spec=
6867     fi
6868     supports_anon_versioning=no
6869     case `$LD -v 2>/dev/null` in
6870       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6871       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6872       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6873       *\ 2.11.*) ;; # other 2.11 versions
6874       *) supports_anon_versioning=yes ;;
6875     esac
6876
6877     # See if GNU ld supports shared libraries.
6878     case $host_os in
6879     aix3* | aix4* | aix5*)
6880       # On AIX/PPC, the GNU linker is very broken
6881       if test "$host_cpu" != ia64; then
6882         ld_shlibs=no
6883         cat <<EOF 1>&2
6884
6885 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6886 *** to be unable to reliably create shared libraries on AIX.
6887 *** Therefore, libtool is disabling shared libraries support.  If you
6888 *** really care for shared libraries, you may want to modify your PATH
6889 *** so that a non-GNU linker is found, and then restart.
6890
6891 EOF
6892       fi
6893       ;;
6894
6895     amigaos*)
6896       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)'
6897       hardcode_libdir_flag_spec='-L$libdir'
6898       hardcode_minus_L=yes
6899
6900       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6901       # that the semantics of dynamic libraries on AmigaOS, at least up
6902       # to version 4, is to share data among multiple programs linked
6903       # with the same dynamic library.  Since this doesn't match the
6904       # behavior of shared libraries on other platforms, we can't use
6905       # them.
6906       ld_shlibs=no
6907       ;;
6908
6909     beos*)
6910       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6911         allow_undefined_flag=unsupported
6912         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6913         # support --undefined.  This deserves some investigation.  FIXME
6914         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6915       else
6916         ld_shlibs=no
6917       fi
6918       ;;
6919
6920     cygwin* | mingw* | pw32*)
6921       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6922       # as there is no search path for DLLs.
6923       hardcode_libdir_flag_spec='-L$libdir'
6924       allow_undefined_flag=unsupported
6925       always_export_symbols=no
6926       enable_shared_with_static_runtimes=yes
6927       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6928
6929       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6930         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6931         # If the export-symbols file already is a .def file (1st line
6932         # is EXPORTS), use it as is; otherwise, prepend...
6933         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6934           cp $export_symbols $output_objdir/$soname.def;
6935         else
6936           echo EXPORTS > $output_objdir/$soname.def;
6937           cat $export_symbols >> $output_objdir/$soname.def;
6938         fi~
6939         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6940       else
6941         ld_shlibs=no
6942       fi
6943       ;;
6944
6945     interix3*)
6946       hardcode_direct=no
6947       hardcode_shlibpath_var=no
6948       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6949       export_dynamic_flag_spec='${wl}-E'
6950       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6951       # Instead, shared libraries are loaded at an image base (0x10000000 by
6952       # default) and relocated if they conflict, which is a slow very memory
6953       # consuming and fragmenting process.  To avoid this, we pick a random,
6954       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
6955       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
6956       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
6957       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'
6958       ;;
6959
6960     linux*)
6961       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6962         tmp_addflag=
6963         case $cc_basename,$host_cpu in
6964         pgcc*)                          # Portland Group C compiler
6965           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'
6966           tmp_addflag=' $pic_flag'
6967           ;;
6968         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
6969           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'
6970           tmp_addflag=' $pic_flag -Mnomain' ;;
6971         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
6972           tmp_addflag=' -i_dynamic' ;;
6973         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
6974           tmp_addflag=' -i_dynamic -nofor_main' ;;
6975         ifc* | ifort*)                  # Intel Fortran compiler
6976           tmp_addflag=' -nofor_main' ;;
6977         esac
6978         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6979
6980         if test $supports_anon_versioning = yes; then
6981           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6982   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6983   $echo "local: *; };" >> $output_objdir/$libname.ver~
6984           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6985         fi
6986       else
6987         ld_shlibs=no
6988       fi
6989       ;;
6990
6991     netbsd*)
6992       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6993         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6994         wlarc=
6995       else
6996         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6997         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6998       fi
6999       ;;
7000
7001     solaris*)
7002       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7003         ld_shlibs=no
7004         cat <<EOF 1>&2
7005
7006 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7007 *** create shared libraries on Solaris systems.  Therefore, libtool
7008 *** is disabling shared libraries support.  We urge you to upgrade GNU
7009 *** binutils to release 2.9.1 or newer.  Another option is to modify
7010 *** your PATH or compiler configuration so that the native linker is
7011 *** used, and then restart.
7012
7013 EOF
7014       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7015         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7016         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7017       else
7018         ld_shlibs=no
7019       fi
7020       ;;
7021
7022     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7023       case `$LD -v 2>&1` in
7024         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7025         ld_shlibs=no
7026         cat <<_LT_EOF 1>&2
7027
7028 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7029 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7030 *** is disabling shared libraries support.  We urge you to upgrade GNU
7031 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7032 *** your PATH or compiler configuration so that the native linker is
7033 *** used, and then restart.
7034
7035 _LT_EOF
7036         ;;
7037         *)
7038           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7039             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7040             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7041             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7042           else
7043             ld_shlibs=no
7044           fi
7045         ;;
7046       esac
7047       ;;
7048
7049     sunos4*)
7050       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7051       wlarc=
7052       hardcode_direct=yes
7053       hardcode_shlibpath_var=no
7054       ;;
7055
7056     *)
7057       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7058         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7059         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7060       else
7061         ld_shlibs=no
7062       fi
7063       ;;
7064     esac
7065
7066     if test "$ld_shlibs" = no; then
7067       runpath_var=
7068       hardcode_libdir_flag_spec=
7069       export_dynamic_flag_spec=
7070       whole_archive_flag_spec=
7071     fi
7072   else
7073     # PORTME fill in a description of your system's linker (not GNU ld)
7074     case $host_os in
7075     aix3*)
7076       allow_undefined_flag=unsupported
7077       always_export_symbols=yes
7078       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'
7079       # Note: this linker hardcodes the directories in LIBPATH if there
7080       # are no directories specified by -L.
7081       hardcode_minus_L=yes
7082       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7083         # Neither direct hardcoding nor static linking is supported with a
7084         # broken collect2.
7085         hardcode_direct=unsupported
7086       fi
7087       ;;
7088
7089     aix4* | aix5*)
7090       if test "$host_cpu" = ia64; then
7091         # On IA64, the linker does run time linking by default, so we don't
7092         # have to do anything special.
7093         aix_use_runtimelinking=no
7094         exp_sym_flag='-Bexport'
7095         no_entry_flag=""
7096       else
7097         # If we're using GNU nm, then we don't want the "-C" option.
7098         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7099         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7100           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'
7101         else
7102           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'
7103         fi
7104         aix_use_runtimelinking=no
7105
7106         # Test if we are trying to use run time linking or normal
7107         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7108         # need to do runtime linking.
7109         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7110           for ld_flag in $LDFLAGS; do
7111           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7112             aix_use_runtimelinking=yes
7113             break
7114           fi
7115           done
7116           ;;
7117         esac
7118
7119         exp_sym_flag='-bexport'
7120         no_entry_flag='-bnoentry'
7121       fi
7122
7123       # When large executables or shared objects are built, AIX ld can
7124       # have problems creating the table of contents.  If linking a library
7125       # or program results in "error TOC overflow" add -mminimal-toc to
7126       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7127       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7128
7129       archive_cmds=''
7130       hardcode_direct=yes
7131       hardcode_libdir_separator=':'
7132       link_all_deplibs=yes
7133
7134       if test "$GCC" = yes; then
7135         case $host_os in aix4.[012]|aix4.[012].*)
7136         # We only want to do this on AIX 4.2 and lower, the check
7137         # below for broken collect2 doesn't work under 4.3+
7138           collect2name=`${CC} -print-prog-name=collect2`
7139           if test -f "$collect2name" && \
7140            strings "$collect2name" | grep resolve_lib_name >/dev/null
7141           then
7142           # We have reworked collect2
7143           hardcode_direct=yes
7144           else
7145           # We have old collect2
7146           hardcode_direct=unsupported
7147           # It fails to find uninstalled libraries when the uninstalled
7148           # path is not listed in the libpath.  Setting hardcode_minus_L
7149           # to unsupported forces relinking
7150           hardcode_minus_L=yes
7151           hardcode_libdir_flag_spec='-L$libdir'
7152           hardcode_libdir_separator=
7153           fi
7154           ;;
7155         esac
7156         shared_flag='-shared'
7157         if test "$aix_use_runtimelinking" = yes; then
7158           shared_flag="$shared_flag "'${wl}-G'
7159         fi
7160       else
7161         # not using gcc
7162         if test "$host_cpu" = ia64; then
7163         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7164         # chokes on -Wl,-G. The following line is correct:
7165           shared_flag='-G'
7166         else
7167           if test "$aix_use_runtimelinking" = yes; then
7168             shared_flag='${wl}-G'
7169           else
7170             shared_flag='${wl}-bM:SRE'
7171           fi
7172         fi
7173       fi
7174
7175       # It seems that -bexpall does not export symbols beginning with
7176       # underscore (_), so it is better to generate a list of symbols to export.
7177       always_export_symbols=yes
7178       if test "$aix_use_runtimelinking" = yes; then
7179         # Warning - without using the other runtime loading flags (-brtl),
7180         # -berok will link without error, but may produce a broken library.
7181         allow_undefined_flag='-berok'
7182        # Determine the default libpath from the value encoded in an empty executable.
7183        cat >conftest.$ac_ext <<_ACEOF
7184 /* confdefs.h.  */
7185 _ACEOF
7186 cat confdefs.h >>conftest.$ac_ext
7187 cat >>conftest.$ac_ext <<_ACEOF
7188 /* end confdefs.h.  */
7189
7190 int
7191 main ()
7192 {
7193
7194   ;
7195   return 0;
7196 }
7197 _ACEOF
7198 rm -f conftest.$ac_objext conftest$ac_exeext
7199 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7200   (eval $ac_link) 2>conftest.er1
7201   ac_status=$?
7202   grep -v '^ *+' conftest.er1 >conftest.err
7203   rm -f conftest.er1
7204   cat conftest.err >&5
7205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206   (exit $ac_status); } &&
7207          { ac_try='test -z "$ac_c_werror_flag"
7208                          || test ! -s conftest.err'
7209   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7210   (eval $ac_try) 2>&5
7211   ac_status=$?
7212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7213   (exit $ac_status); }; } &&
7214          { ac_try='test -s conftest$ac_exeext'
7215   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7216   (eval $ac_try) 2>&5
7217   ac_status=$?
7218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7219   (exit $ac_status); }; }; then
7220
7221 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7222 }'`
7223 # Check for a 64-bit object if we didn't find anything.
7224 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; }
7225 }'`; fi
7226 else
7227   echo "$as_me: failed program was:" >&5
7228 sed 's/^/| /' conftest.$ac_ext >&5
7229
7230 fi
7231 rm -f conftest.err conftest.$ac_objext \
7232       conftest$ac_exeext conftest.$ac_ext
7233 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7234
7235        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7236         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"
7237        else
7238         if test "$host_cpu" = ia64; then
7239           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7240           allow_undefined_flag="-z nodefs"
7241           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"
7242         else
7243          # Determine the default libpath from the value encoded in an empty executable.
7244          cat >conftest.$ac_ext <<_ACEOF
7245 /* confdefs.h.  */
7246 _ACEOF
7247 cat confdefs.h >>conftest.$ac_ext
7248 cat >>conftest.$ac_ext <<_ACEOF
7249 /* end confdefs.h.  */
7250
7251 int
7252 main ()
7253 {
7254
7255   ;
7256   return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext conftest$ac_exeext
7260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7261   (eval $ac_link) 2>conftest.er1
7262   ac_status=$?
7263   grep -v '^ *+' conftest.er1 >conftest.err
7264   rm -f conftest.er1
7265   cat conftest.err >&5
7266   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7267   (exit $ac_status); } &&
7268          { ac_try='test -z "$ac_c_werror_flag"
7269                          || test ! -s conftest.err'
7270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7271   (eval $ac_try) 2>&5
7272   ac_status=$?
7273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274   (exit $ac_status); }; } &&
7275          { ac_try='test -s conftest$ac_exeext'
7276   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7277   (eval $ac_try) 2>&5
7278   ac_status=$?
7279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7280   (exit $ac_status); }; }; then
7281
7282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7283 }'`
7284 # Check for a 64-bit object if we didn't find anything.
7285 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; }
7286 }'`; fi
7287 else
7288   echo "$as_me: failed program was:" >&5
7289 sed 's/^/| /' conftest.$ac_ext >&5
7290
7291 fi
7292 rm -f conftest.err conftest.$ac_objext \
7293       conftest$ac_exeext conftest.$ac_ext
7294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7295
7296          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7297           # Warning - without using the other run time loading flags,
7298           # -berok will link without error, but may produce a broken library.
7299           no_undefined_flag=' ${wl}-bernotok'
7300           allow_undefined_flag=' ${wl}-berok'
7301           # Exported symbols can be pulled into shared objects from archives
7302           whole_archive_flag_spec='$convenience'
7303           archive_cmds_need_lc=yes
7304           # This is similar to how AIX traditionally builds its shared libraries.
7305           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'
7306         fi
7307       fi
7308       ;;
7309
7310     amigaos*)
7311       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)'
7312       hardcode_libdir_flag_spec='-L$libdir'
7313       hardcode_minus_L=yes
7314       # see comment about different semantics on the GNU ld section
7315       ld_shlibs=no
7316       ;;
7317
7318     bsdi[45]*)
7319       export_dynamic_flag_spec=-rdynamic
7320       ;;
7321
7322     cygwin* | mingw* | pw32*)
7323       # When not using gcc, we currently assume that we are using
7324       # Microsoft Visual C++.
7325       # hardcode_libdir_flag_spec is actually meaningless, as there is
7326       # no search path for DLLs.
7327       hardcode_libdir_flag_spec=' '
7328       allow_undefined_flag=unsupported
7329       # Tell ltmain to make .lib files, not .a files.
7330       libext=lib
7331       # Tell ltmain to make .dll files, not .so files.
7332       shrext_cmds=".dll"
7333       # FIXME: Setting linknames here is a bad hack.
7334       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7335       # The linker will automatically build a .lib file if we build a DLL.
7336       old_archive_From_new_cmds='true'
7337       # FIXME: Should let the user specify the lib program.
7338       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7339       fix_srcfile_path='`cygpath -w "$srcfile"`'
7340       enable_shared_with_static_runtimes=yes
7341       ;;
7342
7343     darwin* | rhapsody*)
7344       case $host_os in
7345         rhapsody* | darwin1.[012])
7346          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7347          ;;
7348        *) # Darwin 1.3 on
7349          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7350            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7351          else
7352            case ${MACOSX_DEPLOYMENT_TARGET} in
7353              10.[012])
7354                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7355                ;;
7356              10.*)
7357                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7358                ;;
7359            esac
7360          fi
7361          ;;
7362       esac
7363       archive_cmds_need_lc=no
7364       hardcode_direct=no
7365       hardcode_automatic=yes
7366       hardcode_shlibpath_var=unsupported
7367       whole_archive_flag_spec=''
7368       link_all_deplibs=yes
7369     if test "$GCC" = yes ; then
7370         output_verbose_link_cmd='echo'
7371         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7372       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7373       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7374       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}'
7375       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}'
7376     else
7377       case $cc_basename in
7378         xlc*)
7379          output_verbose_link_cmd='echo'
7380          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7381          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7382           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7383          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}'
7384           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}'
7385           ;;
7386        *)
7387          ld_shlibs=no
7388           ;;
7389       esac
7390     fi
7391       ;;
7392
7393     dgux*)
7394       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7395       hardcode_libdir_flag_spec='-L$libdir'
7396       hardcode_shlibpath_var=no
7397       ;;
7398
7399     freebsd1*)
7400       ld_shlibs=no
7401       ;;
7402
7403     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7404     # support.  Future versions do this automatically, but an explicit c++rt0.o
7405     # does not break anything, and helps significantly (at the cost of a little
7406     # extra space).
7407     freebsd2.2*)
7408       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7409       hardcode_libdir_flag_spec='-R$libdir'
7410       hardcode_direct=yes
7411       hardcode_shlibpath_var=no
7412       ;;
7413
7414     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7415     freebsd2*)
7416       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7417       hardcode_direct=yes
7418       hardcode_minus_L=yes
7419       hardcode_shlibpath_var=no
7420       ;;
7421
7422     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7423     freebsd* | kfreebsd*-gnu | dragonfly*)
7424       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7425       hardcode_libdir_flag_spec='-R$libdir'
7426       hardcode_direct=yes
7427       hardcode_shlibpath_var=no
7428       ;;
7429
7430     hpux9*)
7431       if test "$GCC" = yes; then
7432         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'
7433       else
7434         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'
7435       fi
7436       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7437       hardcode_libdir_separator=:
7438       hardcode_direct=yes
7439
7440       # hardcode_minus_L: Not really in the search PATH,
7441       # but as the default location of the library.
7442       hardcode_minus_L=yes
7443       export_dynamic_flag_spec='${wl}-E'
7444       ;;
7445
7446     hpux10*)
7447       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7448         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7449       else
7450         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7451       fi
7452       if test "$with_gnu_ld" = no; then
7453         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7454         hardcode_libdir_separator=:
7455
7456         hardcode_direct=yes
7457         export_dynamic_flag_spec='${wl}-E'
7458
7459         # hardcode_minus_L: Not really in the search PATH,
7460         # but as the default location of the library.
7461         hardcode_minus_L=yes
7462       fi
7463       ;;
7464
7465     hpux11*)
7466       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7467         case $host_cpu in
7468         hppa*64*)
7469           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7470           ;;
7471         ia64*)
7472           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7473           ;;
7474         *)
7475           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7476           ;;
7477         esac
7478       else
7479         case $host_cpu in
7480         hppa*64*)
7481           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7482           ;;
7483         ia64*)
7484           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7485           ;;
7486         *)
7487           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7488           ;;
7489         esac
7490       fi
7491       if test "$with_gnu_ld" = no; then
7492         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7493         hardcode_libdir_separator=:
7494
7495         case $host_cpu in
7496         hppa*64*|ia64*)
7497           hardcode_libdir_flag_spec_ld='+b $libdir'
7498           hardcode_direct=no
7499           hardcode_shlibpath_var=no
7500           ;;
7501         *)
7502           hardcode_direct=yes
7503           export_dynamic_flag_spec='${wl}-E'
7504
7505           # hardcode_minus_L: Not really in the search PATH,
7506           # but as the default location of the library.
7507           hardcode_minus_L=yes
7508           ;;
7509         esac
7510       fi
7511       ;;
7512
7513     irix5* | irix6* | nonstopux*)
7514       if test "$GCC" = yes; then
7515         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'
7516       else
7517         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'
7518         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7519       fi
7520       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7521       hardcode_libdir_separator=:
7522       link_all_deplibs=yes
7523       ;;
7524
7525     netbsd*)
7526       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7527         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7528       else
7529         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7530       fi
7531       hardcode_libdir_flag_spec='-R$libdir'
7532       hardcode_direct=yes
7533       hardcode_shlibpath_var=no
7534       ;;
7535
7536     newsos6)
7537       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7538       hardcode_direct=yes
7539       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7540       hardcode_libdir_separator=:
7541       hardcode_shlibpath_var=no
7542       ;;
7543
7544     openbsd*)
7545       hardcode_direct=yes
7546       hardcode_shlibpath_var=no
7547       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7548         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7549         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7550         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7551         export_dynamic_flag_spec='${wl}-E'
7552       else
7553        case $host_os in
7554          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7555            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7556            hardcode_libdir_flag_spec='-R$libdir'
7557            ;;
7558          *)
7559            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7560            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7561            ;;
7562        esac
7563       fi
7564       ;;
7565
7566     os2*)
7567       hardcode_libdir_flag_spec='-L$libdir'
7568       hardcode_minus_L=yes
7569       allow_undefined_flag=unsupported
7570       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'
7571       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7572       ;;
7573
7574     osf3*)
7575       if test "$GCC" = yes; then
7576         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7577         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'
7578       else
7579         allow_undefined_flag=' -expect_unresolved \*'
7580         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'
7581       fi
7582       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7583       hardcode_libdir_separator=:
7584       ;;
7585
7586     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7587       if test "$GCC" = yes; then
7588         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7589         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'
7590         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7591       else
7592         allow_undefined_flag=' -expect_unresolved \*'
7593         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'
7594         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7595         $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'
7596
7597         # Both c and cxx compiler support -rpath directly
7598         hardcode_libdir_flag_spec='-rpath $libdir'
7599       fi
7600       hardcode_libdir_separator=:
7601       ;;
7602
7603     solaris*)
7604       no_undefined_flag=' -z text'
7605       if test "$GCC" = yes; then
7606         wlarc='${wl}'
7607         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7608         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7609           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7610       else
7611         wlarc=''
7612         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7613         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7614         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7615       fi
7616       hardcode_libdir_flag_spec='-R$libdir'
7617       hardcode_shlibpath_var=no
7618       case $host_os in
7619       solaris2.[0-5] | solaris2.[0-5].*) ;;
7620       *)
7621         # The compiler driver will combine linker options so we
7622         # cannot just pass the convience library names through
7623         # without $wl, iff we do not link with $LD.
7624         # Luckily, gcc supports the same syntax we need for Sun Studio.
7625         # Supported since Solaris 2.6 (maybe 2.5.1?)
7626         case $wlarc in
7627         '')
7628           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7629         *)
7630           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' ;;
7631         esac ;;
7632       esac
7633       link_all_deplibs=yes
7634       ;;
7635
7636     sunos4*)
7637       if test "x$host_vendor" = xsequent; then
7638         # Use $CC to link under sequent, because it throws in some extra .o
7639         # files that make .init and .fini sections work.
7640         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7641       else
7642         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7643       fi
7644       hardcode_libdir_flag_spec='-L$libdir'
7645       hardcode_direct=yes
7646       hardcode_minus_L=yes
7647       hardcode_shlibpath_var=no
7648       ;;
7649
7650     sysv4)
7651       case $host_vendor in
7652         sni)
7653           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7654           hardcode_direct=yes # is this really true???
7655         ;;
7656         siemens)
7657           ## LD is ld it makes a PLAMLIB
7658           ## CC just makes a GrossModule.
7659           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7660           reload_cmds='$CC -r -o $output$reload_objs'
7661           hardcode_direct=no
7662         ;;
7663         motorola)
7664           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7665           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7666         ;;
7667       esac
7668       runpath_var='LD_RUN_PATH'
7669       hardcode_shlibpath_var=no
7670       ;;
7671
7672     sysv4.3*)
7673       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7674       hardcode_shlibpath_var=no
7675       export_dynamic_flag_spec='-Bexport'
7676       ;;
7677
7678     sysv4*MP*)
7679       if test -d /usr/nec; then
7680         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7681         hardcode_shlibpath_var=no
7682         runpath_var=LD_RUN_PATH
7683         hardcode_runpath_var=yes
7684         ld_shlibs=yes
7685       fi
7686       ;;
7687
7688     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7689       no_undefined_flag='${wl}-z,text'
7690       archive_cmds_need_lc=no
7691       hardcode_shlibpath_var=no
7692       runpath_var='LD_RUN_PATH'
7693
7694       if test "$GCC" = yes; then
7695         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7696         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7697       else
7698         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7699         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7700       fi
7701       ;;
7702
7703     sysv5* | sco3.2v5* | sco5v6*)
7704       # Note: We can NOT use -z defs as we might desire, because we do not
7705       # link with -lc, and that would cause any symbols used from libc to
7706       # always be unresolved, which means just about no library would
7707       # ever link correctly.  If we're not using GNU ld we use -z text
7708       # though, which does catch some bad symbols but isn't as heavy-handed
7709       # as -z defs.
7710       no_undefined_flag='${wl}-z,text'
7711       allow_undefined_flag='${wl}-z,nodefs'
7712       archive_cmds_need_lc=no
7713       hardcode_shlibpath_var=no
7714       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7715       hardcode_libdir_separator=':'
7716       link_all_deplibs=yes
7717       export_dynamic_flag_spec='${wl}-Bexport'
7718       runpath_var='LD_RUN_PATH'
7719
7720       if test "$GCC" = yes; then
7721         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7722         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7723       else
7724         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7725         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7726       fi
7727       ;;
7728
7729     uts4*)
7730       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7731       hardcode_libdir_flag_spec='-L$libdir'
7732       hardcode_shlibpath_var=no
7733       ;;
7734
7735     *)
7736       ld_shlibs=no
7737       ;;
7738     esac
7739   fi
7740
7741 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7742 echo "${ECHO_T}$ld_shlibs" >&6
7743 test "$ld_shlibs" = no && can_build_shared=no
7744
7745 #
7746 # Do we need to explicitly link libc?
7747 #
7748 case "x$archive_cmds_need_lc" in
7749 x|xyes)
7750   # Assume -lc should be added
7751   archive_cmds_need_lc=yes
7752
7753   if test "$enable_shared" = yes && test "$GCC" = yes; then
7754     case $archive_cmds in
7755     *'~'*)
7756       # FIXME: we may have to deal with multi-command sequences.
7757       ;;
7758     '$CC '*)
7759       # Test whether the compiler implicitly links with -lc since on some
7760       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7761       # to ld, don't add -lc before -lgcc.
7762       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7763 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7764       $rm conftest*
7765       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7766
7767       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7768   (eval $ac_compile) 2>&5
7769   ac_status=$?
7770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771   (exit $ac_status); } 2>conftest.err; then
7772         soname=conftest
7773         lib=conftest
7774         libobjs=conftest.$ac_objext
7775         deplibs=
7776         wl=$lt_prog_compiler_wl
7777         pic_flag=$lt_prog_compiler_pic
7778         compiler_flags=-v
7779         linker_flags=-v
7780         verstring=
7781         output_objdir=.
7782         libname=conftest
7783         lt_save_allow_undefined_flag=$allow_undefined_flag
7784         allow_undefined_flag=
7785         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7786   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7787   ac_status=$?
7788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7789   (exit $ac_status); }
7790         then
7791           archive_cmds_need_lc=no
7792         else
7793           archive_cmds_need_lc=yes
7794         fi
7795         allow_undefined_flag=$lt_save_allow_undefined_flag
7796       else
7797         cat conftest.err 1>&5
7798       fi
7799       $rm conftest*
7800       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7801 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7802       ;;
7803     esac
7804   fi
7805   ;;
7806 esac
7807
7808 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7809 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7810 library_names_spec=
7811 libname_spec='lib$name'
7812 soname_spec=
7813 shrext_cmds=".so"
7814 postinstall_cmds=
7815 postuninstall_cmds=
7816 finish_cmds=
7817 finish_eval=
7818 shlibpath_var=
7819 shlibpath_overrides_runpath=unknown
7820 version_type=none
7821 dynamic_linker="$host_os ld.so"
7822 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7823 if test "$GCC" = yes; then
7824   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7825   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7826     # if the path contains ";" then we assume it to be the separator
7827     # otherwise default to the standard path separator (i.e. ":") - it is
7828     # assumed that no part of a normal pathname contains ";" but that should
7829     # okay in the real world where ";" in dirpaths is itself problematic.
7830     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7831   else
7832     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7833   fi
7834 else
7835   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7836 fi
7837 need_lib_prefix=unknown
7838 hardcode_into_libs=no
7839
7840 # when you set need_version to no, make sure it does not cause -set_version
7841 # flags to be left without arguments
7842 need_version=unknown
7843
7844 case $host_os in
7845 aix3*)
7846   version_type=linux
7847   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7848   shlibpath_var=LIBPATH
7849
7850   # AIX 3 has no versioning support, so we append a major version to the name.
7851   soname_spec='${libname}${release}${shared_ext}$major'
7852   ;;
7853
7854 aix4* | aix5*)
7855   version_type=linux
7856   need_lib_prefix=no
7857   need_version=no
7858   hardcode_into_libs=yes
7859   if test "$host_cpu" = ia64; then
7860     # AIX 5 supports IA64
7861     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7862     shlibpath_var=LD_LIBRARY_PATH
7863   else
7864     # With GCC up to 2.95.x, collect2 would create an import file
7865     # for dependence libraries.  The import file would start with
7866     # the line `#! .'.  This would cause the generated library to
7867     # depend on `.', always an invalid library.  This was fixed in
7868     # development snapshots of GCC prior to 3.0.
7869     case $host_os in
7870       aix4 | aix4.[01] | aix4.[01].*)
7871       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7872            echo ' yes '
7873            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7874         :
7875       else
7876         can_build_shared=no
7877       fi
7878       ;;
7879     esac
7880     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7881     # soname into executable. Probably we can add versioning support to
7882     # collect2, so additional links can be useful in future.
7883     if test "$aix_use_runtimelinking" = yes; then
7884       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7885       # instead of lib<name>.a to let people know that these are not
7886       # typical AIX shared libraries.
7887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7888     else
7889       # We preserve .a as extension for shared libraries through AIX4.2
7890       # and later when we are not doing run time linking.
7891       library_names_spec='${libname}${release}.a $libname.a'
7892       soname_spec='${libname}${release}${shared_ext}$major'
7893     fi
7894     shlibpath_var=LIBPATH
7895   fi
7896   ;;
7897
7898 amigaos*)
7899   library_names_spec='$libname.ixlibrary $libname.a'
7900   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7901   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'
7902   ;;
7903
7904 beos*)
7905   library_names_spec='${libname}${shared_ext}'
7906   dynamic_linker="$host_os ld.so"
7907   shlibpath_var=LIBRARY_PATH
7908   ;;
7909
7910 bsdi[45]*)
7911   version_type=linux
7912   need_version=no
7913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7914   soname_spec='${libname}${release}${shared_ext}$major'
7915   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7916   shlibpath_var=LD_LIBRARY_PATH
7917   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7918   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7919   # the default ld.so.conf also contains /usr/contrib/lib and
7920   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7921   # libtool to hard-code these into programs
7922   ;;
7923
7924 cygwin* | mingw* | pw32*)
7925   version_type=windows
7926   shrext_cmds=".dll"
7927   need_version=no
7928   need_lib_prefix=no
7929
7930   case $GCC,$host_os in
7931   yes,cygwin* | yes,mingw* | yes,pw32*)
7932     library_names_spec='$libname.dll.a'
7933     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7934     postinstall_cmds='base_file=`basename \${file}`~
7935       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7936       dldir=$destdir/`dirname \$dlpath`~
7937       test -d \$dldir || mkdir -p \$dldir~
7938       $install_prog $dir/$dlname \$dldir/$dlname~
7939       chmod a+x \$dldir/$dlname'
7940     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7941       dlpath=$dir/\$dldll~
7942        $rm \$dlpath'
7943     shlibpath_overrides_runpath=yes
7944
7945     case $host_os in
7946     cygwin*)
7947       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7948       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7949       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7950       ;;
7951     mingw*)
7952       # MinGW DLLs use traditional 'lib' prefix
7953       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7954       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7955       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7956         # It is most probably a Windows format PATH printed by
7957         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7958         # path with ; separators, and with drive letters. We can handle the
7959         # drive letters (cygwin fileutils understands them), so leave them,
7960         # especially as we might pass files found there to a mingw objdump,
7961         # which wouldn't understand a cygwinified path. Ahh.
7962         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7963       else
7964         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7965       fi
7966       ;;
7967     pw32*)
7968       # pw32 DLLs use 'pw' prefix rather than 'lib'
7969       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7970       ;;
7971     esac
7972     ;;
7973
7974   *)
7975     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7976     ;;
7977   esac
7978   dynamic_linker='Win32 ld.exe'
7979   # FIXME: first we should search . and the directory the executable is in
7980   shlibpath_var=PATH
7981   ;;
7982
7983 darwin* | rhapsody*)
7984   dynamic_linker="$host_os dyld"
7985   version_type=darwin
7986   need_lib_prefix=no
7987   need_version=no
7988   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7989   soname_spec='${libname}${release}${major}$shared_ext'
7990   shlibpath_overrides_runpath=yes
7991   shlibpath_var=DYLD_LIBRARY_PATH
7992   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
7993   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7994   if test "$GCC" = yes; then
7995     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"`
7996   else
7997     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7998   fi
7999   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8000   ;;
8001
8002 dgux*)
8003   version_type=linux
8004   need_lib_prefix=no
8005   need_version=no
8006   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8007   soname_spec='${libname}${release}${shared_ext}$major'
8008   shlibpath_var=LD_LIBRARY_PATH
8009   ;;
8010
8011 freebsd1*)
8012   dynamic_linker=no
8013   ;;
8014
8015 kfreebsd*-gnu)
8016   version_type=linux
8017   need_lib_prefix=no
8018   need_version=no
8019   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8020   soname_spec='${libname}${release}${shared_ext}$major'
8021   shlibpath_var=LD_LIBRARY_PATH
8022   shlibpath_overrides_runpath=no
8023   hardcode_into_libs=yes
8024   dynamic_linker='GNU ld.so'
8025   ;;
8026
8027 freebsd* | dragonfly*)
8028   # DragonFly does not have aout.  When/if they implement a new
8029   # versioning mechanism, adjust this.
8030   if test -x /usr/bin/objformat; then
8031     objformat=`/usr/bin/objformat`
8032   else
8033     case $host_os in
8034     freebsd[123]*) objformat=aout ;;
8035     *) objformat=elf ;;
8036     esac
8037   fi
8038   version_type=freebsd-$objformat
8039   case $version_type in
8040     freebsd-elf*)
8041       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8042       need_version=no
8043       need_lib_prefix=no
8044       ;;
8045     freebsd-*)
8046       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8047       need_version=yes
8048       ;;
8049   esac
8050   shlibpath_var=LD_LIBRARY_PATH
8051   case $host_os in
8052   freebsd2*)
8053     shlibpath_overrides_runpath=yes
8054     ;;
8055   freebsd3.[01]* | freebsdelf3.[01]*)
8056     shlibpath_overrides_runpath=yes
8057     hardcode_into_libs=yes
8058     ;;
8059   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8060   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8061     shlibpath_overrides_runpath=no
8062     hardcode_into_libs=yes
8063     ;;
8064   freebsd*) # from 4.6 on
8065     shlibpath_overrides_runpath=yes
8066     hardcode_into_libs=yes
8067     ;;
8068   esac
8069   ;;
8070
8071 gnu*)
8072   version_type=linux
8073   need_lib_prefix=no
8074   need_version=no
8075   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8076   soname_spec='${libname}${release}${shared_ext}$major'
8077   shlibpath_var=LD_LIBRARY_PATH
8078   hardcode_into_libs=yes
8079   ;;
8080
8081 hpux9* | hpux10* | hpux11*)
8082   # Give a soname corresponding to the major version so that dld.sl refuses to
8083   # link against other versions.
8084   version_type=sunos
8085   need_lib_prefix=no
8086   need_version=no
8087   case $host_cpu in
8088   ia64*)
8089     shrext_cmds='.so'
8090     hardcode_into_libs=yes
8091     dynamic_linker="$host_os dld.so"
8092     shlibpath_var=LD_LIBRARY_PATH
8093     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8094     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8095     soname_spec='${libname}${release}${shared_ext}$major'
8096     if test "X$HPUX_IA64_MODE" = X32; then
8097       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8098     else
8099       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8100     fi
8101     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8102     ;;
8103    hppa*64*)
8104      shrext_cmds='.sl'
8105      hardcode_into_libs=yes
8106      dynamic_linker="$host_os dld.sl"
8107      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8108      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8109      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8110      soname_spec='${libname}${release}${shared_ext}$major'
8111      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8112      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8113      ;;
8114    *)
8115     shrext_cmds='.sl'
8116     dynamic_linker="$host_os dld.sl"
8117     shlibpath_var=SHLIB_PATH
8118     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8120     soname_spec='${libname}${release}${shared_ext}$major'
8121     ;;
8122   esac
8123   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8124   postinstall_cmds='chmod 555 $lib'
8125   ;;
8126
8127 interix3*)
8128   version_type=linux
8129   need_lib_prefix=no
8130   need_version=no
8131   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8132   soname_spec='${libname}${release}${shared_ext}$major'
8133   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8134   shlibpath_var=LD_LIBRARY_PATH
8135   shlibpath_overrides_runpath=no
8136   hardcode_into_libs=yes
8137   ;;
8138
8139 irix5* | irix6* | nonstopux*)
8140   case $host_os in
8141     nonstopux*) version_type=nonstopux ;;
8142     *)
8143         if test "$lt_cv_prog_gnu_ld" = yes; then
8144                 version_type=linux
8145         else
8146                 version_type=irix
8147         fi ;;
8148   esac
8149   need_lib_prefix=no
8150   need_version=no
8151   soname_spec='${libname}${release}${shared_ext}$major'
8152   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8153   case $host_os in
8154   irix5* | nonstopux*)
8155     libsuff= shlibsuff=
8156     ;;
8157   *)
8158     case $LD in # libtool.m4 will add one of these switches to LD
8159     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8160       libsuff= shlibsuff= libmagic=32-bit;;
8161     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8162       libsuff=32 shlibsuff=N32 libmagic=N32;;
8163     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8164       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8165     *) libsuff= shlibsuff= libmagic=never-match;;
8166     esac
8167     ;;
8168   esac
8169   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8170   shlibpath_overrides_runpath=no
8171   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8172   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8173   hardcode_into_libs=yes
8174   ;;
8175
8176 # No shared lib support for Linux oldld, aout, or coff.
8177 linux*oldld* | linux*aout* | linux*coff*)
8178   dynamic_linker=no
8179   ;;
8180
8181 # This must be Linux ELF.
8182 linux*)
8183   version_type=linux
8184   need_lib_prefix=no
8185   need_version=no
8186   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8187   soname_spec='${libname}${release}${shared_ext}$major'
8188   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8189   shlibpath_var=LD_LIBRARY_PATH
8190   shlibpath_overrides_runpath=no
8191   # This implies no fast_install, which is unacceptable.
8192   # Some rework will be needed to allow for fast_install
8193   # before this can be enabled.
8194   hardcode_into_libs=yes
8195
8196   # find out which ABI we are using
8197   libsuff=
8198   case "$host_cpu" in
8199   x86_64*|s390x*|powerpc64*)
8200     echo '#line 8200 "configure"' > conftest.$ac_ext
8201     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8202   (eval $ac_compile) 2>&5
8203   ac_status=$?
8204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205   (exit $ac_status); }; then
8206       case `/usr/bin/file conftest.$ac_objext` in
8207       *64-bit*)
8208         libsuff=64
8209         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8210         ;;
8211       esac
8212     fi
8213     rm -rf conftest*
8214     ;;
8215   esac
8216
8217   # Append ld.so.conf contents to the search path
8218   if test -f /etc/ld.so.conf; then
8219     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' ' '`
8220     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8221   fi
8222
8223   # We used to test for /lib/ld.so.1 and disable shared libraries on
8224   # powerpc, because MkLinux only supported shared libraries with the
8225   # GNU dynamic linker.  Since this was broken with cross compilers,
8226   # most powerpc-linux boxes support dynamic linking these days and
8227   # people can always --disable-shared, the test was removed, and we
8228   # assume the GNU/Linux dynamic linker is in use.
8229   dynamic_linker='GNU/Linux ld.so'
8230   ;;
8231
8232 knetbsd*-gnu)
8233   version_type=linux
8234   need_lib_prefix=no
8235   need_version=no
8236   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8237   soname_spec='${libname}${release}${shared_ext}$major'
8238   shlibpath_var=LD_LIBRARY_PATH
8239   shlibpath_overrides_runpath=no
8240   hardcode_into_libs=yes
8241   dynamic_linker='GNU ld.so'
8242   ;;
8243
8244 netbsd*)
8245   version_type=sunos
8246   need_lib_prefix=no
8247   need_version=no
8248   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8249     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8250     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8251     dynamic_linker='NetBSD (a.out) ld.so'
8252   else
8253     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8254     soname_spec='${libname}${release}${shared_ext}$major'
8255     dynamic_linker='NetBSD ld.elf_so'
8256   fi
8257   shlibpath_var=LD_LIBRARY_PATH
8258   shlibpath_overrides_runpath=yes
8259   hardcode_into_libs=yes
8260   ;;
8261
8262 newsos6)
8263   version_type=linux
8264   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8265   shlibpath_var=LD_LIBRARY_PATH
8266   shlibpath_overrides_runpath=yes
8267   ;;
8268
8269 nto-qnx*)
8270   version_type=linux
8271   need_lib_prefix=no
8272   need_version=no
8273   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8274   soname_spec='${libname}${release}${shared_ext}$major'
8275   shlibpath_var=LD_LIBRARY_PATH
8276   shlibpath_overrides_runpath=yes
8277   ;;
8278
8279 openbsd*)
8280   version_type=sunos
8281   sys_lib_dlsearch_path_spec="/usr/lib"
8282   need_lib_prefix=no
8283   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8284   case $host_os in
8285     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8286     *)                         need_version=no  ;;
8287   esac
8288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8289   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8290   shlibpath_var=LD_LIBRARY_PATH
8291   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8292     case $host_os in
8293       openbsd2.[89] | openbsd2.[89].*)
8294         shlibpath_overrides_runpath=no
8295         ;;
8296       *)
8297         shlibpath_overrides_runpath=yes
8298         ;;
8299       esac
8300   else
8301     shlibpath_overrides_runpath=yes
8302   fi
8303   ;;
8304
8305 os2*)
8306   libname_spec='$name'
8307   shrext_cmds=".dll"
8308   need_lib_prefix=no
8309   library_names_spec='$libname${shared_ext} $libname.a'
8310   dynamic_linker='OS/2 ld.exe'
8311   shlibpath_var=LIBPATH
8312   ;;
8313
8314 osf3* | osf4* | osf5*)
8315   version_type=osf
8316   need_lib_prefix=no
8317   need_version=no
8318   soname_spec='${libname}${release}${shared_ext}$major'
8319   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8320   shlibpath_var=LD_LIBRARY_PATH
8321   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8322   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8323   ;;
8324
8325 solaris*)
8326   version_type=linux
8327   need_lib_prefix=no
8328   need_version=no
8329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8330   soname_spec='${libname}${release}${shared_ext}$major'
8331   shlibpath_var=LD_LIBRARY_PATH
8332   shlibpath_overrides_runpath=yes
8333   hardcode_into_libs=yes
8334   # ldd complains unless libraries are executable
8335   postinstall_cmds='chmod +x $lib'
8336   ;;
8337
8338 sunos4*)
8339   version_type=sunos
8340   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8341   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8342   shlibpath_var=LD_LIBRARY_PATH
8343   shlibpath_overrides_runpath=yes
8344   if test "$with_gnu_ld" = yes; then
8345     need_lib_prefix=no
8346   fi
8347   need_version=yes
8348   ;;
8349
8350 sysv4 | sysv4.3*)
8351   version_type=linux
8352   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8353   soname_spec='${libname}${release}${shared_ext}$major'
8354   shlibpath_var=LD_LIBRARY_PATH
8355   case $host_vendor in
8356     sni)
8357       shlibpath_overrides_runpath=no
8358       need_lib_prefix=no
8359       export_dynamic_flag_spec='${wl}-Blargedynsym'
8360       runpath_var=LD_RUN_PATH
8361       ;;
8362     siemens)
8363       need_lib_prefix=no
8364       ;;
8365     motorola)
8366       need_lib_prefix=no
8367       need_version=no
8368       shlibpath_overrides_runpath=no
8369       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8370       ;;
8371   esac
8372   ;;
8373
8374 sysv4*MP*)
8375   if test -d /usr/nec ;then
8376     version_type=linux
8377     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8378     soname_spec='$libname${shared_ext}.$major'
8379     shlibpath_var=LD_LIBRARY_PATH
8380   fi
8381   ;;
8382
8383 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8384   version_type=freebsd-elf
8385   need_lib_prefix=no
8386   need_version=no
8387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8388   soname_spec='${libname}${release}${shared_ext}$major'
8389   shlibpath_var=LD_LIBRARY_PATH
8390   hardcode_into_libs=yes
8391   if test "$with_gnu_ld" = yes; then
8392     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8393     shlibpath_overrides_runpath=no
8394   else
8395     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8396     shlibpath_overrides_runpath=yes
8397     case $host_os in
8398       sco3.2v5*)
8399         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8400         ;;
8401     esac
8402   fi
8403   sys_lib_dlsearch_path_spec='/usr/lib'
8404   ;;
8405
8406 uts4*)
8407   version_type=linux
8408   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8409   soname_spec='${libname}${release}${shared_ext}$major'
8410   shlibpath_var=LD_LIBRARY_PATH
8411   ;;
8412
8413 *)
8414   dynamic_linker=no
8415   ;;
8416 esac
8417 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8418 echo "${ECHO_T}$dynamic_linker" >&6
8419 test "$dynamic_linker" = no && can_build_shared=no
8420
8421 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8422 if test "$GCC" = yes; then
8423   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8424 fi
8425
8426 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8427 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8428 hardcode_action=
8429 if test -n "$hardcode_libdir_flag_spec" || \
8430    test -n "$runpath_var" || \
8431    test "X$hardcode_automatic" = "Xyes" ; then
8432
8433   # We can hardcode non-existant directories.
8434   if test "$hardcode_direct" != no &&
8435      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8436      # have to relink, otherwise we might link with an installed library
8437      # when we should be linking with a yet-to-be-installed one
8438      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8439      test "$hardcode_minus_L" != no; then
8440     # Linking always hardcodes the temporary library directory.
8441     hardcode_action=relink
8442   else
8443     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8444     hardcode_action=immediate
8445   fi
8446 else
8447   # We cannot hardcode anything, or else we can only hardcode existing
8448   # directories.
8449   hardcode_action=unsupported
8450 fi
8451 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8452 echo "${ECHO_T}$hardcode_action" >&6
8453
8454 if test "$hardcode_action" = relink; then
8455   # Fast installation is not supported
8456   enable_fast_install=no
8457 elif test "$shlibpath_overrides_runpath" = yes ||
8458      test "$enable_shared" = no; then
8459   # Fast installation is not necessary
8460   enable_fast_install=needless
8461 fi
8462
8463 striplib=
8464 old_striplib=
8465 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8466 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8467 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8468   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8469   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8470   echo "$as_me:$LINENO: result: yes" >&5
8471 echo "${ECHO_T}yes" >&6
8472 else
8473 # FIXME - insert some real tests, host_os isn't really good enough
8474   case $host_os in
8475    darwin*)
8476        if test -n "$STRIP" ; then
8477          striplib="$STRIP -x"
8478          echo "$as_me:$LINENO: result: yes" >&5
8479 echo "${ECHO_T}yes" >&6
8480        else
8481   echo "$as_me:$LINENO: result: no" >&5
8482 echo "${ECHO_T}no" >&6
8483 fi
8484        ;;
8485    *)
8486   echo "$as_me:$LINENO: result: no" >&5
8487 echo "${ECHO_T}no" >&6
8488     ;;
8489   esac
8490 fi
8491
8492 if test "x$enable_dlopen" != xyes; then
8493   enable_dlopen=unknown
8494   enable_dlopen_self=unknown
8495   enable_dlopen_self_static=unknown
8496 else
8497   lt_cv_dlopen=no
8498   lt_cv_dlopen_libs=
8499
8500   case $host_os in
8501   beos*)
8502     lt_cv_dlopen="load_add_on"
8503     lt_cv_dlopen_libs=
8504     lt_cv_dlopen_self=yes
8505     ;;
8506
8507   mingw* | pw32*)
8508     lt_cv_dlopen="LoadLibrary"
8509     lt_cv_dlopen_libs=
8510    ;;
8511
8512   cygwin*)
8513     lt_cv_dlopen="dlopen"
8514     lt_cv_dlopen_libs=
8515    ;;
8516
8517   darwin*)
8518   # if libdl is installed we need to link against it
8519     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8520 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8521 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8522   echo $ECHO_N "(cached) $ECHO_C" >&6
8523 else
8524   ac_check_lib_save_LIBS=$LIBS
8525 LIBS="-ldl  $LIBS"
8526 cat >conftest.$ac_ext <<_ACEOF
8527 /* confdefs.h.  */
8528 _ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h.  */
8532
8533 /* Override any gcc2 internal prototype to avoid an error.  */
8534 #ifdef __cplusplus
8535 extern "C"
8536 #endif
8537 /* We use char because int might match the return type of a gcc2
8538    builtin and then its argument prototype would still apply.  */
8539 char dlopen ();
8540 int
8541 main ()
8542 {
8543 dlopen ();
8544   ;
8545   return 0;
8546 }
8547 _ACEOF
8548 rm -f conftest.$ac_objext conftest$ac_exeext
8549 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8550   (eval $ac_link) 2>conftest.er1
8551   ac_status=$?
8552   grep -v '^ *+' conftest.er1 >conftest.err
8553   rm -f conftest.er1
8554   cat conftest.err >&5
8555   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8556   (exit $ac_status); } &&
8557          { ac_try='test -z "$ac_c_werror_flag"
8558                          || test ! -s conftest.err'
8559   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8560   (eval $ac_try) 2>&5
8561   ac_status=$?
8562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8563   (exit $ac_status); }; } &&
8564          { ac_try='test -s conftest$ac_exeext'
8565   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8566   (eval $ac_try) 2>&5
8567   ac_status=$?
8568   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8569   (exit $ac_status); }; }; then
8570   ac_cv_lib_dl_dlopen=yes
8571 else
8572   echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 ac_cv_lib_dl_dlopen=no
8576 fi
8577 rm -f conftest.err conftest.$ac_objext \
8578       conftest$ac_exeext conftest.$ac_ext
8579 LIBS=$ac_check_lib_save_LIBS
8580 fi
8581 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8582 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8583 if test $ac_cv_lib_dl_dlopen = yes; then
8584   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8585 else
8586
8587     lt_cv_dlopen="dyld"
8588     lt_cv_dlopen_libs=
8589     lt_cv_dlopen_self=yes
8590
8591 fi
8592
8593    ;;
8594
8595   *)
8596     echo "$as_me:$LINENO: checking for shl_load" >&5
8597 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8598 if test "${ac_cv_func_shl_load+set}" = set; then
8599   echo $ECHO_N "(cached) $ECHO_C" >&6
8600 else
8601   cat >conftest.$ac_ext <<_ACEOF
8602 /* confdefs.h.  */
8603 _ACEOF
8604 cat confdefs.h >>conftest.$ac_ext
8605 cat >>conftest.$ac_ext <<_ACEOF
8606 /* end confdefs.h.  */
8607 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8608    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8609 #define shl_load innocuous_shl_load
8610
8611 /* System header to define __stub macros and hopefully few prototypes,
8612     which can conflict with char shl_load (); below.
8613     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8614     <limits.h> exists even on freestanding compilers.  */
8615
8616 #ifdef __STDC__
8617 # include <limits.h>
8618 #else
8619 # include <assert.h>
8620 #endif
8621
8622 #undef shl_load
8623
8624 /* Override any gcc2 internal prototype to avoid an error.  */
8625 #ifdef __cplusplus
8626 extern "C"
8627 {
8628 #endif
8629 /* We use char because int might match the return type of a gcc2
8630    builtin and then its argument prototype would still apply.  */
8631 char shl_load ();
8632 /* The GNU C library defines this for functions which it implements
8633     to always fail with ENOSYS.  Some functions are actually named
8634     something starting with __ and the normal name is an alias.  */
8635 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8636 choke me
8637 #else
8638 char (*f) () = shl_load;
8639 #endif
8640 #ifdef __cplusplus
8641 }
8642 #endif
8643
8644 int
8645 main ()
8646 {
8647 return f != shl_load;
8648   ;
8649   return 0;
8650 }
8651 _ACEOF
8652 rm -f conftest.$ac_objext conftest$ac_exeext
8653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8654   (eval $ac_link) 2>conftest.er1
8655   ac_status=$?
8656   grep -v '^ *+' conftest.er1 >conftest.err
8657   rm -f conftest.er1
8658   cat conftest.err >&5
8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8660   (exit $ac_status); } &&
8661          { ac_try='test -z "$ac_c_werror_flag"
8662                          || test ! -s conftest.err'
8663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8664   (eval $ac_try) 2>&5
8665   ac_status=$?
8666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8667   (exit $ac_status); }; } &&
8668          { ac_try='test -s conftest$ac_exeext'
8669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8670   (eval $ac_try) 2>&5
8671   ac_status=$?
8672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673   (exit $ac_status); }; }; then
8674   ac_cv_func_shl_load=yes
8675 else
8676   echo "$as_me: failed program was:" >&5
8677 sed 's/^/| /' conftest.$ac_ext >&5
8678
8679 ac_cv_func_shl_load=no
8680 fi
8681 rm -f conftest.err conftest.$ac_objext \
8682       conftest$ac_exeext conftest.$ac_ext
8683 fi
8684 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8685 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8686 if test $ac_cv_func_shl_load = yes; then
8687   lt_cv_dlopen="shl_load"
8688 else
8689   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8690 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8691 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8692   echo $ECHO_N "(cached) $ECHO_C" >&6
8693 else
8694   ac_check_lib_save_LIBS=$LIBS
8695 LIBS="-ldld  $LIBS"
8696 cat >conftest.$ac_ext <<_ACEOF
8697 /* confdefs.h.  */
8698 _ACEOF
8699 cat confdefs.h >>conftest.$ac_ext
8700 cat >>conftest.$ac_ext <<_ACEOF
8701 /* end confdefs.h.  */
8702
8703 /* Override any gcc2 internal prototype to avoid an error.  */
8704 #ifdef __cplusplus
8705 extern "C"
8706 #endif
8707 /* We use char because int might match the return type of a gcc2
8708    builtin and then its argument prototype would still apply.  */
8709 char shl_load ();
8710 int
8711 main ()
8712 {
8713 shl_load ();
8714   ;
8715   return 0;
8716 }
8717 _ACEOF
8718 rm -f conftest.$ac_objext conftest$ac_exeext
8719 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8720   (eval $ac_link) 2>conftest.er1
8721   ac_status=$?
8722   grep -v '^ *+' conftest.er1 >conftest.err
8723   rm -f conftest.er1
8724   cat conftest.err >&5
8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726   (exit $ac_status); } &&
8727          { ac_try='test -z "$ac_c_werror_flag"
8728                          || test ! -s conftest.err'
8729   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730   (eval $ac_try) 2>&5
8731   ac_status=$?
8732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733   (exit $ac_status); }; } &&
8734          { ac_try='test -s conftest$ac_exeext'
8735   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736   (eval $ac_try) 2>&5
8737   ac_status=$?
8738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739   (exit $ac_status); }; }; then
8740   ac_cv_lib_dld_shl_load=yes
8741 else
8742   echo "$as_me: failed program was:" >&5
8743 sed 's/^/| /' conftest.$ac_ext >&5
8744
8745 ac_cv_lib_dld_shl_load=no
8746 fi
8747 rm -f conftest.err conftest.$ac_objext \
8748       conftest$ac_exeext conftest.$ac_ext
8749 LIBS=$ac_check_lib_save_LIBS
8750 fi
8751 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8752 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8753 if test $ac_cv_lib_dld_shl_load = yes; then
8754   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8755 else
8756   echo "$as_me:$LINENO: checking for dlopen" >&5
8757 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8758 if test "${ac_cv_func_dlopen+set}" = set; then
8759   echo $ECHO_N "(cached) $ECHO_C" >&6
8760 else
8761   cat >conftest.$ac_ext <<_ACEOF
8762 /* confdefs.h.  */
8763 _ACEOF
8764 cat confdefs.h >>conftest.$ac_ext
8765 cat >>conftest.$ac_ext <<_ACEOF
8766 /* end confdefs.h.  */
8767 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8768    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8769 #define dlopen innocuous_dlopen
8770
8771 /* System header to define __stub macros and hopefully few prototypes,
8772     which can conflict with char dlopen (); below.
8773     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8774     <limits.h> exists even on freestanding compilers.  */
8775
8776 #ifdef __STDC__
8777 # include <limits.h>
8778 #else
8779 # include <assert.h>
8780 #endif
8781
8782 #undef dlopen
8783
8784 /* Override any gcc2 internal prototype to avoid an error.  */
8785 #ifdef __cplusplus
8786 extern "C"
8787 {
8788 #endif
8789 /* We use char because int might match the return type of a gcc2
8790    builtin and then its argument prototype would still apply.  */
8791 char dlopen ();
8792 /* The GNU C library defines this for functions which it implements
8793     to always fail with ENOSYS.  Some functions are actually named
8794     something starting with __ and the normal name is an alias.  */
8795 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8796 choke me
8797 #else
8798 char (*f) () = dlopen;
8799 #endif
8800 #ifdef __cplusplus
8801 }
8802 #endif
8803
8804 int
8805 main ()
8806 {
8807 return f != dlopen;
8808   ;
8809   return 0;
8810 }
8811 _ACEOF
8812 rm -f conftest.$ac_objext conftest$ac_exeext
8813 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8814   (eval $ac_link) 2>conftest.er1
8815   ac_status=$?
8816   grep -v '^ *+' conftest.er1 >conftest.err
8817   rm -f conftest.er1
8818   cat conftest.err >&5
8819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820   (exit $ac_status); } &&
8821          { ac_try='test -z "$ac_c_werror_flag"
8822                          || test ! -s conftest.err'
8823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8824   (eval $ac_try) 2>&5
8825   ac_status=$?
8826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8827   (exit $ac_status); }; } &&
8828          { ac_try='test -s conftest$ac_exeext'
8829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8830   (eval $ac_try) 2>&5
8831   ac_status=$?
8832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833   (exit $ac_status); }; }; then
8834   ac_cv_func_dlopen=yes
8835 else
8836   echo "$as_me: failed program was:" >&5
8837 sed 's/^/| /' conftest.$ac_ext >&5
8838
8839 ac_cv_func_dlopen=no
8840 fi
8841 rm -f conftest.err conftest.$ac_objext \
8842       conftest$ac_exeext conftest.$ac_ext
8843 fi
8844 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8845 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8846 if test $ac_cv_func_dlopen = yes; then
8847   lt_cv_dlopen="dlopen"
8848 else
8849   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8850 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8851 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8852   echo $ECHO_N "(cached) $ECHO_C" >&6
8853 else
8854   ac_check_lib_save_LIBS=$LIBS
8855 LIBS="-ldl  $LIBS"
8856 cat >conftest.$ac_ext <<_ACEOF
8857 /* confdefs.h.  */
8858 _ACEOF
8859 cat confdefs.h >>conftest.$ac_ext
8860 cat >>conftest.$ac_ext <<_ACEOF
8861 /* end confdefs.h.  */
8862
8863 /* Override any gcc2 internal prototype to avoid an error.  */
8864 #ifdef __cplusplus
8865 extern "C"
8866 #endif
8867 /* We use char because int might match the return type of a gcc2
8868    builtin and then its argument prototype would still apply.  */
8869 char dlopen ();
8870 int
8871 main ()
8872 {
8873 dlopen ();
8874   ;
8875   return 0;
8876 }
8877 _ACEOF
8878 rm -f conftest.$ac_objext conftest$ac_exeext
8879 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8880   (eval $ac_link) 2>conftest.er1
8881   ac_status=$?
8882   grep -v '^ *+' conftest.er1 >conftest.err
8883   rm -f conftest.er1
8884   cat conftest.err >&5
8885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886   (exit $ac_status); } &&
8887          { ac_try='test -z "$ac_c_werror_flag"
8888                          || test ! -s conftest.err'
8889   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890   (eval $ac_try) 2>&5
8891   ac_status=$?
8892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893   (exit $ac_status); }; } &&
8894          { ac_try='test -s conftest$ac_exeext'
8895   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8896   (eval $ac_try) 2>&5
8897   ac_status=$?
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); }; }; then
8900   ac_cv_lib_dl_dlopen=yes
8901 else
8902   echo "$as_me: failed program was:" >&5
8903 sed 's/^/| /' conftest.$ac_ext >&5
8904
8905 ac_cv_lib_dl_dlopen=no
8906 fi
8907 rm -f conftest.err conftest.$ac_objext \
8908       conftest$ac_exeext conftest.$ac_ext
8909 LIBS=$ac_check_lib_save_LIBS
8910 fi
8911 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8912 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8913 if test $ac_cv_lib_dl_dlopen = yes; then
8914   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8915 else
8916   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8917 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8918 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8919   echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921   ac_check_lib_save_LIBS=$LIBS
8922 LIBS="-lsvld  $LIBS"
8923 cat >conftest.$ac_ext <<_ACEOF
8924 /* confdefs.h.  */
8925 _ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h.  */
8929
8930 /* Override any gcc2 internal prototype to avoid an error.  */
8931 #ifdef __cplusplus
8932 extern "C"
8933 #endif
8934 /* We use char because int might match the return type of a gcc2
8935    builtin and then its argument prototype would still apply.  */
8936 char dlopen ();
8937 int
8938 main ()
8939 {
8940 dlopen ();
8941   ;
8942   return 0;
8943 }
8944 _ACEOF
8945 rm -f conftest.$ac_objext conftest$ac_exeext
8946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8947   (eval $ac_link) 2>conftest.er1
8948   ac_status=$?
8949   grep -v '^ *+' conftest.er1 >conftest.err
8950   rm -f conftest.er1
8951   cat conftest.err >&5
8952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8953   (exit $ac_status); } &&
8954          { ac_try='test -z "$ac_c_werror_flag"
8955                          || test ! -s conftest.err'
8956   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8957   (eval $ac_try) 2>&5
8958   ac_status=$?
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); }; } &&
8961          { ac_try='test -s conftest$ac_exeext'
8962   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8963   (eval $ac_try) 2>&5
8964   ac_status=$?
8965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966   (exit $ac_status); }; }; then
8967   ac_cv_lib_svld_dlopen=yes
8968 else
8969   echo "$as_me: failed program was:" >&5
8970 sed 's/^/| /' conftest.$ac_ext >&5
8971
8972 ac_cv_lib_svld_dlopen=no
8973 fi
8974 rm -f conftest.err conftest.$ac_objext \
8975       conftest$ac_exeext conftest.$ac_ext
8976 LIBS=$ac_check_lib_save_LIBS
8977 fi
8978 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8979 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8980 if test $ac_cv_lib_svld_dlopen = yes; then
8981   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8982 else
8983   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8984 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8985 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8986   echo $ECHO_N "(cached) $ECHO_C" >&6
8987 else
8988   ac_check_lib_save_LIBS=$LIBS
8989 LIBS="-ldld  $LIBS"
8990 cat >conftest.$ac_ext <<_ACEOF
8991 /* confdefs.h.  */
8992 _ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h.  */
8996
8997 /* Override any gcc2 internal prototype to avoid an error.  */
8998 #ifdef __cplusplus
8999 extern "C"
9000 #endif
9001 /* We use char because int might match the return type of a gcc2
9002    builtin and then its argument prototype would still apply.  */
9003 char dld_link ();
9004 int
9005 main ()
9006 {
9007 dld_link ();
9008   ;
9009   return 0;
9010 }
9011 _ACEOF
9012 rm -f conftest.$ac_objext conftest$ac_exeext
9013 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9014   (eval $ac_link) 2>conftest.er1
9015   ac_status=$?
9016   grep -v '^ *+' conftest.er1 >conftest.err
9017   rm -f conftest.er1
9018   cat conftest.err >&5
9019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9020   (exit $ac_status); } &&
9021          { ac_try='test -z "$ac_c_werror_flag"
9022                          || test ! -s conftest.err'
9023   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9024   (eval $ac_try) 2>&5
9025   ac_status=$?
9026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027   (exit $ac_status); }; } &&
9028          { ac_try='test -s conftest$ac_exeext'
9029   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9030   (eval $ac_try) 2>&5
9031   ac_status=$?
9032   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9033   (exit $ac_status); }; }; then
9034   ac_cv_lib_dld_dld_link=yes
9035 else
9036   echo "$as_me: failed program was:" >&5
9037 sed 's/^/| /' conftest.$ac_ext >&5
9038
9039 ac_cv_lib_dld_dld_link=no
9040 fi
9041 rm -f conftest.err conftest.$ac_objext \
9042       conftest$ac_exeext conftest.$ac_ext
9043 LIBS=$ac_check_lib_save_LIBS
9044 fi
9045 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9046 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9047 if test $ac_cv_lib_dld_dld_link = yes; then
9048   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9049 fi
9050
9051
9052 fi
9053
9054
9055 fi
9056
9057
9058 fi
9059
9060
9061 fi
9062
9063
9064 fi
9065
9066     ;;
9067   esac
9068
9069   if test "x$lt_cv_dlopen" != xno; then
9070     enable_dlopen=yes
9071   else
9072     enable_dlopen=no
9073   fi
9074
9075   case $lt_cv_dlopen in
9076   dlopen)
9077     save_CPPFLAGS="$CPPFLAGS"
9078     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9079
9080     save_LDFLAGS="$LDFLAGS"
9081     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9082
9083     save_LIBS="$LIBS"
9084     LIBS="$lt_cv_dlopen_libs $LIBS"
9085
9086     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9087 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9088 if test "${lt_cv_dlopen_self+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091           if test "$cross_compiling" = yes; then :
9092   lt_cv_dlopen_self=cross
9093 else
9094   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9095   lt_status=$lt_dlunknown
9096   cat > conftest.$ac_ext <<EOF
9097 #line 9097 "configure"
9098 #include "confdefs.h"
9099
9100 #if HAVE_DLFCN_H
9101 #include <dlfcn.h>
9102 #endif
9103
9104 #include <stdio.h>
9105
9106 #ifdef RTLD_GLOBAL
9107 #  define LT_DLGLOBAL           RTLD_GLOBAL
9108 #else
9109 #  ifdef DL_GLOBAL
9110 #    define LT_DLGLOBAL         DL_GLOBAL
9111 #  else
9112 #    define LT_DLGLOBAL         0
9113 #  endif
9114 #endif
9115
9116 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9117    find out it does not work in some platform. */
9118 #ifndef LT_DLLAZY_OR_NOW
9119 #  ifdef RTLD_LAZY
9120 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9121 #  else
9122 #    ifdef DL_LAZY
9123 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9124 #    else
9125 #      ifdef RTLD_NOW
9126 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9127 #      else
9128 #        ifdef DL_NOW
9129 #          define LT_DLLAZY_OR_NOW      DL_NOW
9130 #        else
9131 #          define LT_DLLAZY_OR_NOW      0
9132 #        endif
9133 #      endif
9134 #    endif
9135 #  endif
9136 #endif
9137
9138 #ifdef __cplusplus
9139 extern "C" void exit (int);
9140 #endif
9141
9142 void fnord() { int i=42;}
9143 int main ()
9144 {
9145   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9146   int status = $lt_dlunknown;
9147
9148   if (self)
9149     {
9150       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9151       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9152       /* dlclose (self); */
9153     }
9154   else
9155     puts (dlerror ());
9156
9157     exit (status);
9158 }
9159 EOF
9160   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9161   (eval $ac_link) 2>&5
9162   ac_status=$?
9163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9165     (./conftest; exit; ) >&5 2>/dev/null
9166     lt_status=$?
9167     case x$lt_status in
9168       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9169       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9170       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9171     esac
9172   else :
9173     # compilation failed
9174     lt_cv_dlopen_self=no
9175   fi
9176 fi
9177 rm -fr conftest*
9178
9179
9180 fi
9181 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9182 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9183
9184     if test "x$lt_cv_dlopen_self" = xyes; then
9185       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9186       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9187 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9188 if test "${lt_cv_dlopen_self_static+set}" = set; then
9189   echo $ECHO_N "(cached) $ECHO_C" >&6
9190 else
9191           if test "$cross_compiling" = yes; then :
9192   lt_cv_dlopen_self_static=cross
9193 else
9194   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9195   lt_status=$lt_dlunknown
9196   cat > conftest.$ac_ext <<EOF
9197 #line 9197 "configure"
9198 #include "confdefs.h"
9199
9200 #if HAVE_DLFCN_H
9201 #include <dlfcn.h>
9202 #endif
9203
9204 #include <stdio.h>
9205
9206 #ifdef RTLD_GLOBAL
9207 #  define LT_DLGLOBAL           RTLD_GLOBAL
9208 #else
9209 #  ifdef DL_GLOBAL
9210 #    define LT_DLGLOBAL         DL_GLOBAL
9211 #  else
9212 #    define LT_DLGLOBAL         0
9213 #  endif
9214 #endif
9215
9216 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9217    find out it does not work in some platform. */
9218 #ifndef LT_DLLAZY_OR_NOW
9219 #  ifdef RTLD_LAZY
9220 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9221 #  else
9222 #    ifdef DL_LAZY
9223 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9224 #    else
9225 #      ifdef RTLD_NOW
9226 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9227 #      else
9228 #        ifdef DL_NOW
9229 #          define LT_DLLAZY_OR_NOW      DL_NOW
9230 #        else
9231 #          define LT_DLLAZY_OR_NOW      0
9232 #        endif
9233 #      endif
9234 #    endif
9235 #  endif
9236 #endif
9237
9238 #ifdef __cplusplus
9239 extern "C" void exit (int);
9240 #endif
9241
9242 void fnord() { int i=42;}
9243 int main ()
9244 {
9245   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9246   int status = $lt_dlunknown;
9247
9248   if (self)
9249     {
9250       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9251       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9252       /* dlclose (self); */
9253     }
9254   else
9255     puts (dlerror ());
9256
9257     exit (status);
9258 }
9259 EOF
9260   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261   (eval $ac_link) 2>&5
9262   ac_status=$?
9263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9264   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9265     (./conftest; exit; ) >&5 2>/dev/null
9266     lt_status=$?
9267     case x$lt_status in
9268       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9269       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9270       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9271     esac
9272   else :
9273     # compilation failed
9274     lt_cv_dlopen_self_static=no
9275   fi
9276 fi
9277 rm -fr conftest*
9278
9279
9280 fi
9281 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9282 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9283     fi
9284
9285     CPPFLAGS="$save_CPPFLAGS"
9286     LDFLAGS="$save_LDFLAGS"
9287     LIBS="$save_LIBS"
9288     ;;
9289   esac
9290
9291   case $lt_cv_dlopen_self in
9292   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9293   *) enable_dlopen_self=unknown ;;
9294   esac
9295
9296   case $lt_cv_dlopen_self_static in
9297   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9298   *) enable_dlopen_self_static=unknown ;;
9299   esac
9300 fi
9301
9302
9303 # Report which library types will actually be built
9304 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9305 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9306 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9307 echo "${ECHO_T}$can_build_shared" >&6
9308
9309 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9310 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9311 test "$can_build_shared" = "no" && enable_shared=no
9312
9313 # On AIX, shared libraries and static libraries use the same namespace, and
9314 # are all built from PIC.
9315 case $host_os in
9316 aix3*)
9317   test "$enable_shared" = yes && enable_static=no
9318   if test -n "$RANLIB"; then
9319     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9320     postinstall_cmds='$RANLIB $lib'
9321   fi
9322   ;;
9323
9324 aix4* | aix5*)
9325   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9326     test "$enable_shared" = yes && enable_static=no
9327   fi
9328     ;;
9329 esac
9330 echo "$as_me:$LINENO: result: $enable_shared" >&5
9331 echo "${ECHO_T}$enable_shared" >&6
9332
9333 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9334 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9335 # Make sure either enable_shared or enable_static is yes.
9336 test "$enable_shared" = yes || enable_static=yes
9337 echo "$as_me:$LINENO: result: $enable_static" >&5
9338 echo "${ECHO_T}$enable_static" >&6
9339
9340 # The else clause should only fire when bootstrapping the
9341 # libtool distribution, otherwise you forgot to ship ltmain.sh
9342 # with your package, and you will get complaints that there are
9343 # no rules to generate ltmain.sh.
9344 if test -f "$ltmain"; then
9345   # See if we are running on zsh, and set the options which allow our commands through
9346   # without removal of \ escapes.
9347   if test -n "${ZSH_VERSION+set}" ; then
9348     setopt NO_GLOB_SUBST
9349   fi
9350   # Now quote all the things that may contain metacharacters while being
9351   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9352   # variables and quote the copies for generation of the libtool script.
9353   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9354     SED SHELL STRIP \
9355     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9356     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9357     deplibs_check_method reload_flag reload_cmds need_locks \
9358     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9359     lt_cv_sys_global_symbol_to_c_name_address \
9360     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9361     old_postinstall_cmds old_postuninstall_cmds \
9362     compiler \
9363     CC \
9364     LD \
9365     lt_prog_compiler_wl \
9366     lt_prog_compiler_pic \
9367     lt_prog_compiler_static \
9368     lt_prog_compiler_no_builtin_flag \
9369     export_dynamic_flag_spec \
9370     thread_safe_flag_spec \
9371     whole_archive_flag_spec \
9372     enable_shared_with_static_runtimes \
9373     old_archive_cmds \
9374     old_archive_from_new_cmds \
9375     predep_objects \
9376     postdep_objects \
9377     predeps \
9378     postdeps \
9379     compiler_lib_search_path \
9380     archive_cmds \
9381     archive_expsym_cmds \
9382     postinstall_cmds \
9383     postuninstall_cmds \
9384     old_archive_from_expsyms_cmds \
9385     allow_undefined_flag \
9386     no_undefined_flag \
9387     export_symbols_cmds \
9388     hardcode_libdir_flag_spec \
9389     hardcode_libdir_flag_spec_ld \
9390     hardcode_libdir_separator \
9391     hardcode_automatic \
9392     module_cmds \
9393     module_expsym_cmds \
9394     lt_cv_prog_compiler_c_o \
9395     exclude_expsyms \
9396     include_expsyms; do
9397
9398     case $var in
9399     old_archive_cmds | \
9400     old_archive_from_new_cmds | \
9401     archive_cmds | \
9402     archive_expsym_cmds | \
9403     module_cmds | \
9404     module_expsym_cmds | \
9405     old_archive_from_expsyms_cmds | \
9406     export_symbols_cmds | \
9407     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9408     postinstall_cmds | postuninstall_cmds | \
9409     old_postinstall_cmds | old_postuninstall_cmds | \
9410     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9411       # Double-quote double-evaled strings.
9412       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9413       ;;
9414     *)
9415       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9416       ;;
9417     esac
9418   done
9419
9420   case $lt_echo in
9421   *'\$0 --fallback-echo"')
9422     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9423     ;;
9424   esac
9425
9426 cfgfile="${ofile}T"
9427   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9428   $rm -f "$cfgfile"
9429   { echo "$as_me:$LINENO: creating $ofile" >&5
9430 echo "$as_me: creating $ofile" >&6;}
9431
9432   cat <<__EOF__ >> "$cfgfile"
9433 #! $SHELL
9434
9435 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9436 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9437 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9438 #
9439 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9440 # Free Software Foundation, Inc.
9441 #
9442 # This file is part of GNU Libtool:
9443 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9444 #
9445 # This program is free software; you can redistribute it and/or modify
9446 # it under the terms of the GNU General Public License as published by
9447 # the Free Software Foundation; either version 2 of the License, or
9448 # (at your option) any later version.
9449 #
9450 # This program is distributed in the hope that it will be useful, but
9451 # WITHOUT ANY WARRANTY; without even the implied warranty of
9452 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9453 # General Public License for more details.
9454 #
9455 # You should have received a copy of the GNU General Public License
9456 # along with this program; if not, write to the Free Software
9457 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9458 #
9459 # As a special exception to the GNU General Public License, if you
9460 # distribute this file as part of a program that contains a
9461 # configuration script generated by Autoconf, you may include it under
9462 # the same distribution terms that you use for the rest of that program.
9463
9464 # A sed program that does not truncate output.
9465 SED=$lt_SED
9466
9467 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9468 Xsed="$SED -e 1s/^X//"
9469
9470 # The HP-UX ksh and POSIX shell print the target directory to stdout
9471 # if CDPATH is set.
9472 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9473
9474 # The names of the tagged configurations supported by this script.
9475 available_tags=
9476
9477 # ### BEGIN LIBTOOL CONFIG
9478
9479 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9480
9481 # Shell to use when invoking shell scripts.
9482 SHELL=$lt_SHELL
9483
9484 # Whether or not to build shared libraries.
9485 build_libtool_libs=$enable_shared
9486
9487 # Whether or not to build static libraries.
9488 build_old_libs=$enable_static
9489
9490 # Whether or not to add -lc for building shared libraries.
9491 build_libtool_need_lc=$archive_cmds_need_lc
9492
9493 # Whether or not to disallow shared libs when runtime libs are static
9494 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9495
9496 # Whether or not to optimize for fast installation.
9497 fast_install=$enable_fast_install
9498
9499 # The host system.
9500 host_alias=$host_alias
9501 host=$host
9502 host_os=$host_os
9503
9504 # The build system.
9505 build_alias=$build_alias
9506 build=$build
9507 build_os=$build_os
9508
9509 # An echo program that does not interpret backslashes.
9510 echo=$lt_echo
9511
9512 # The archiver.
9513 AR=$lt_AR
9514 AR_FLAGS=$lt_AR_FLAGS
9515
9516 # A C compiler.
9517 LTCC=$lt_LTCC
9518
9519 # LTCC compiler flags.
9520 LTCFLAGS=$lt_LTCFLAGS
9521
9522 # A language-specific compiler.
9523 CC=$lt_compiler
9524
9525 # Is the compiler the GNU C compiler?
9526 with_gcc=$GCC
9527
9528 # An ERE matcher.
9529 EGREP=$lt_EGREP
9530
9531 # The linker used to build libraries.
9532 LD=$lt_LD
9533
9534 # Whether we need hard or soft links.
9535 LN_S=$lt_LN_S
9536
9537 # A BSD-compatible nm program.
9538 NM=$lt_NM
9539
9540 # A symbol stripping program
9541 STRIP=$lt_STRIP
9542
9543 # Used to examine libraries when file_magic_cmd begins "file"
9544 MAGIC_CMD=$MAGIC_CMD
9545
9546 # Used on cygwin: DLL creation program.
9547 DLLTOOL="$DLLTOOL"
9548
9549 # Used on cygwin: object dumper.
9550 OBJDUMP="$OBJDUMP"
9551
9552 # Used on cygwin: assembler.
9553 AS="$AS"
9554
9555 # The name of the directory that contains temporary libtool files.
9556 objdir=$objdir
9557
9558 # How to create reloadable object files.
9559 reload_flag=$lt_reload_flag
9560 reload_cmds=$lt_reload_cmds
9561
9562 # How to pass a linker flag through the compiler.
9563 wl=$lt_lt_prog_compiler_wl
9564
9565 # Object file suffix (normally "o").
9566 objext="$ac_objext"
9567
9568 # Old archive suffix (normally "a").
9569 libext="$libext"
9570
9571 # Shared library suffix (normally ".so").
9572 shrext_cmds='$shrext_cmds'
9573
9574 # Executable file suffix (normally "").
9575 exeext="$exeext"
9576
9577 # Additional compiler flags for building library objects.
9578 pic_flag=$lt_lt_prog_compiler_pic
9579 pic_mode=$pic_mode
9580
9581 # What is the maximum length of a command?
9582 max_cmd_len=$lt_cv_sys_max_cmd_len
9583
9584 # Does compiler simultaneously support -c and -o options?
9585 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9586
9587 # Must we lock files when doing compilation?
9588 need_locks=$lt_need_locks
9589
9590 # Do we need the lib prefix for modules?
9591 need_lib_prefix=$need_lib_prefix
9592
9593 # Do we need a version for libraries?
9594 need_version=$need_version
9595
9596 # Whether dlopen is supported.
9597 dlopen_support=$enable_dlopen
9598
9599 # Whether dlopen of programs is supported.
9600 dlopen_self=$enable_dlopen_self
9601
9602 # Whether dlopen of statically linked programs is supported.
9603 dlopen_self_static=$enable_dlopen_self_static
9604
9605 # Compiler flag to prevent dynamic linking.
9606 link_static_flag=$lt_lt_prog_compiler_static
9607
9608 # Compiler flag to turn off builtin functions.
9609 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9610
9611 # Compiler flag to allow reflexive dlopens.
9612 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9613
9614 # Compiler flag to generate shared objects directly from archives.
9615 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9616
9617 # Compiler flag to generate thread-safe objects.
9618 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9619
9620 # Library versioning type.
9621 version_type=$version_type
9622
9623 # Format of library name prefix.
9624 libname_spec=$lt_libname_spec
9625
9626 # List of archive names.  First name is the real one, the rest are links.
9627 # The last name is the one that the linker finds with -lNAME.
9628 library_names_spec=$lt_library_names_spec
9629
9630 # The coded name of the library, if different from the real name.
9631 soname_spec=$lt_soname_spec
9632
9633 # Commands used to build and install an old-style archive.
9634 RANLIB=$lt_RANLIB
9635 old_archive_cmds=$lt_old_archive_cmds
9636 old_postinstall_cmds=$lt_old_postinstall_cmds
9637 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9638
9639 # Create an old-style archive from a shared archive.
9640 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9641
9642 # Create a temporary old-style archive to link instead of a shared archive.
9643 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9644
9645 # Commands used to build and install a shared archive.
9646 archive_cmds=$lt_archive_cmds
9647 archive_expsym_cmds=$lt_archive_expsym_cmds
9648 postinstall_cmds=$lt_postinstall_cmds
9649 postuninstall_cmds=$lt_postuninstall_cmds
9650
9651 # Commands used to build a loadable module (assumed same as above if empty)
9652 module_cmds=$lt_module_cmds
9653 module_expsym_cmds=$lt_module_expsym_cmds
9654
9655 # Commands to strip libraries.
9656 old_striplib=$lt_old_striplib
9657 striplib=$lt_striplib
9658
9659 # Dependencies to place before the objects being linked to create a
9660 # shared library.
9661 predep_objects=$lt_predep_objects
9662
9663 # Dependencies to place after the objects being linked to create a
9664 # shared library.
9665 postdep_objects=$lt_postdep_objects
9666
9667 # Dependencies to place before the objects being linked to create a
9668 # shared library.
9669 predeps=$lt_predeps
9670
9671 # Dependencies to place after the objects being linked to create a
9672 # shared library.
9673 postdeps=$lt_postdeps
9674
9675 # The library search path used internally by the compiler when linking
9676 # a shared library.
9677 compiler_lib_search_path=$lt_compiler_lib_search_path
9678
9679 # Method to check whether dependent libraries are shared objects.
9680 deplibs_check_method=$lt_deplibs_check_method
9681
9682 # Command to use when deplibs_check_method == file_magic.
9683 file_magic_cmd=$lt_file_magic_cmd
9684
9685 # Flag that allows shared libraries with undefined symbols to be built.
9686 allow_undefined_flag=$lt_allow_undefined_flag
9687
9688 # Flag that forces no undefined symbols.
9689 no_undefined_flag=$lt_no_undefined_flag
9690
9691 # Commands used to finish a libtool library installation in a directory.
9692 finish_cmds=$lt_finish_cmds
9693
9694 # Same as above, but a single script fragment to be evaled but not shown.
9695 finish_eval=$lt_finish_eval
9696
9697 # Take the output of nm and produce a listing of raw symbols and C names.
9698 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9699
9700 # Transform the output of nm in a proper C declaration
9701 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9702
9703 # Transform the output of nm in a C name address pair
9704 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9705
9706 # This is the shared library runtime path variable.
9707 runpath_var=$runpath_var
9708
9709 # This is the shared library path variable.
9710 shlibpath_var=$shlibpath_var
9711
9712 # Is shlibpath searched before the hard-coded library search path?
9713 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9714
9715 # How to hardcode a shared library path into an executable.
9716 hardcode_action=$hardcode_action
9717
9718 # Whether we should hardcode library paths into libraries.
9719 hardcode_into_libs=$hardcode_into_libs
9720
9721 # Flag to hardcode \$libdir into a binary during linking.
9722 # This must work even if \$libdir does not exist.
9723 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9724
9725 # If ld is used when linking, flag to hardcode \$libdir into
9726 # a binary during linking. This must work even if \$libdir does
9727 # not exist.
9728 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9729
9730 # Whether we need a single -rpath flag with a separated argument.
9731 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9732
9733 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9734 # resulting binary.
9735 hardcode_direct=$hardcode_direct
9736
9737 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9738 # resulting binary.
9739 hardcode_minus_L=$hardcode_minus_L
9740
9741 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9742 # the resulting binary.
9743 hardcode_shlibpath_var=$hardcode_shlibpath_var
9744
9745 # Set to yes if building a shared library automatically hardcodes DIR into the library
9746 # and all subsequent libraries and executables linked against it.
9747 hardcode_automatic=$hardcode_automatic
9748
9749 # Variables whose values should be saved in libtool wrapper scripts and
9750 # restored at relink time.
9751 variables_saved_for_relink="$variables_saved_for_relink"
9752
9753 # Whether libtool must link a program against all its dependency libraries.
9754 link_all_deplibs=$link_all_deplibs
9755
9756 # Compile-time system search path for libraries
9757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9758
9759 # Run-time system search path for libraries
9760 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9761
9762 # Fix the shell variable \$srcfile for the compiler.
9763 fix_srcfile_path="$fix_srcfile_path"
9764
9765 # Set to yes if exported symbols are required.
9766 always_export_symbols=$always_export_symbols
9767
9768 # The commands to list exported symbols.
9769 export_symbols_cmds=$lt_export_symbols_cmds
9770
9771 # The commands to extract the exported symbol list from a shared archive.
9772 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9773
9774 # Symbols that should not be listed in the preloaded symbols.
9775 exclude_expsyms=$lt_exclude_expsyms
9776
9777 # Symbols that must always be exported.
9778 include_expsyms=$lt_include_expsyms
9779
9780 # ### END LIBTOOL CONFIG
9781
9782 __EOF__
9783
9784
9785   case $host_os in
9786   aix3*)
9787     cat <<\EOF >> "$cfgfile"
9788
9789 # AIX sometimes has problems with the GCC collect2 program.  For some
9790 # reason, if we set the COLLECT_NAMES environment variable, the problems
9791 # vanish in a puff of smoke.
9792 if test "X${COLLECT_NAMES+set}" != Xset; then
9793   COLLECT_NAMES=
9794   export COLLECT_NAMES
9795 fi
9796 EOF
9797     ;;
9798   esac
9799
9800   # We use sed instead of cat because bash on DJGPP gets confused if
9801   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9802   # text mode, it properly converts lines to CR/LF.  This bash problem
9803   # is reportedly fixed, but why not run on old versions too?
9804   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9805
9806   mv -f "$cfgfile" "$ofile" || \
9807     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9808   chmod +x "$ofile"
9809
9810 else
9811   # If there is no Makefile yet, we rely on a make rule to execute
9812   # `config.status --recheck' to rerun these tests and create the
9813   # libtool script then.
9814   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9815   if test -f "$ltmain_in"; then
9816     test -f Makefile && make "$ltmain"
9817   fi
9818 fi
9819
9820
9821 ac_ext=c
9822 ac_cpp='$CPP $CPPFLAGS'
9823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9826
9827 CC="$lt_save_CC"
9828
9829
9830 # Check whether --with-tags or --without-tags was given.
9831 if test "${with_tags+set}" = set; then
9832   withval="$with_tags"
9833   tagnames="$withval"
9834 fi;
9835
9836 if test -f "$ltmain" && test -n "$tagnames"; then
9837   if test ! -f "${ofile}"; then
9838     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9839 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9840   fi
9841
9842   if test -z "$LTCC"; then
9843     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9844     if test -z "$LTCC"; then
9845       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9846 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9847     else
9848       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9849 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9850     fi
9851   fi
9852   if test -z "$LTCFLAGS"; then
9853     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9854   fi
9855
9856   # Extract list of available tagged configurations in $ofile.
9857   # Note that this assumes the entire list is on one line.
9858   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9859
9860   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9861   for tagname in $tagnames; do
9862     IFS="$lt_save_ifs"
9863     # Check whether tagname contains only valid characters
9864     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9865     "") ;;
9866     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9867 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9868    { (exit 1); exit 1; }; }
9869         ;;
9870     esac
9871
9872     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9873     then
9874       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9875 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9876    { (exit 1); exit 1; }; }
9877     fi
9878
9879     # Update the list of available tags.
9880     if test -n "$tagname"; then
9881       echo appending configuration tag \"$tagname\" to $ofile
9882
9883       case $tagname in
9884       CXX)
9885         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9886             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9887             (test "X$CXX" != "Xg++"))) ; then
9888           ac_ext=cc
9889 ac_cpp='$CXXCPP $CPPFLAGS'
9890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9893
9894
9895
9896
9897 archive_cmds_need_lc_CXX=no
9898 allow_undefined_flag_CXX=
9899 always_export_symbols_CXX=no
9900 archive_expsym_cmds_CXX=
9901 export_dynamic_flag_spec_CXX=
9902 hardcode_direct_CXX=no
9903 hardcode_libdir_flag_spec_CXX=
9904 hardcode_libdir_flag_spec_ld_CXX=
9905 hardcode_libdir_separator_CXX=
9906 hardcode_minus_L_CXX=no
9907 hardcode_shlibpath_var_CXX=unsupported
9908 hardcode_automatic_CXX=no
9909 module_cmds_CXX=
9910 module_expsym_cmds_CXX=
9911 link_all_deplibs_CXX=unknown
9912 old_archive_cmds_CXX=$old_archive_cmds
9913 no_undefined_flag_CXX=
9914 whole_archive_flag_spec_CXX=
9915 enable_shared_with_static_runtimes_CXX=no
9916
9917 # Dependencies to place before and after the object being linked:
9918 predep_objects_CXX=
9919 postdep_objects_CXX=
9920 predeps_CXX=
9921 postdeps_CXX=
9922 compiler_lib_search_path_CXX=
9923
9924 # Source file extension for C++ test sources.
9925 ac_ext=cpp
9926
9927 # Object file extension for compiled C++ test sources.
9928 objext=o
9929 objext_CXX=$objext
9930
9931 # Code to be used in simple compile tests
9932 lt_simple_compile_test_code="int some_variable = 0;\n"
9933
9934 # Code to be used in simple link tests
9935 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9936
9937 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9938
9939 # If no C compiler was specified, use CC.
9940 LTCC=${LTCC-"$CC"}
9941
9942 # If no C compiler flags were specified, use CFLAGS.
9943 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9944
9945 # Allow CC to be a program name with arguments.
9946 compiler=$CC
9947
9948
9949 # save warnings/boilerplate of simple test code
9950 ac_outfile=conftest.$ac_objext
9951 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9952 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9953 _lt_compiler_boilerplate=`cat conftest.err`
9954 $rm conftest*
9955
9956 ac_outfile=conftest.$ac_objext
9957 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9958 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9959 _lt_linker_boilerplate=`cat conftest.err`
9960 $rm conftest*
9961
9962
9963 # Allow CC to be a program name with arguments.
9964 lt_save_CC=$CC
9965 lt_save_LD=$LD
9966 lt_save_GCC=$GCC
9967 GCC=$GXX
9968 lt_save_with_gnu_ld=$with_gnu_ld
9969 lt_save_path_LD=$lt_cv_path_LD
9970 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9971   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9972 else
9973   $as_unset lt_cv_prog_gnu_ld
9974 fi
9975 if test -n "${lt_cv_path_LDCXX+set}"; then
9976   lt_cv_path_LD=$lt_cv_path_LDCXX
9977 else
9978   $as_unset lt_cv_path_LD
9979 fi
9980 test -z "${LDCXX+set}" || LD=$LDCXX
9981 CC=${CXX-"c++"}
9982 compiler=$CC
9983 compiler_CXX=$CC
9984 for cc_temp in $compiler""; do
9985   case $cc_temp in
9986     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9987     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9988     \-*) ;;
9989     *) break;;
9990   esac
9991 done
9992 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
9993
9994
9995 # We don't want -fno-exception wen compiling C++ code, so set the
9996 # no_builtin_flag separately
9997 if test "$GXX" = yes; then
9998   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9999 else
10000   lt_prog_compiler_no_builtin_flag_CXX=
10001 fi
10002
10003 if test "$GXX" = yes; then
10004   # Set up default GNU C++ configuration
10005
10006
10007 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10008 if test "${with_gnu_ld+set}" = set; then
10009   withval="$with_gnu_ld"
10010   test "$withval" = no || with_gnu_ld=yes
10011 else
10012   with_gnu_ld=no
10013 fi;
10014 ac_prog=ld
10015 if test "$GCC" = yes; then
10016   # Check if gcc -print-prog-name=ld gives a path.
10017   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10018 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10019   case $host in
10020   *-*-mingw*)
10021     # gcc leaves a trailing carriage return which upsets mingw
10022     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10023   *)
10024     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10025   esac
10026   case $ac_prog in
10027     # Accept absolute paths.
10028     [\\/]* | ?:[\\/]*)
10029       re_direlt='/[^/][^/]*/\.\./'
10030       # Canonicalize the pathname of ld
10031       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10032       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10033         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10034       done
10035       test -z "$LD" && LD="$ac_prog"
10036       ;;
10037   "")
10038     # If it fails, then pretend we aren't using GCC.
10039     ac_prog=ld
10040     ;;
10041   *)
10042     # If it is relative, then search for the first ld in PATH.
10043     with_gnu_ld=unknown
10044     ;;
10045   esac
10046 elif test "$with_gnu_ld" = yes; then
10047   echo "$as_me:$LINENO: checking for GNU ld" >&5
10048 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10049 else
10050   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10051 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10052 fi
10053 if test "${lt_cv_path_LD+set}" = set; then
10054   echo $ECHO_N "(cached) $ECHO_C" >&6
10055 else
10056   if test -z "$LD"; then
10057   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10058   for ac_dir in $PATH; do
10059     IFS="$lt_save_ifs"
10060     test -z "$ac_dir" && ac_dir=.
10061     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10062       lt_cv_path_LD="$ac_dir/$ac_prog"
10063       # Check to see if the program is GNU ld.  I'd rather use --version,
10064       # but apparently some variants of GNU ld only accept -v.
10065       # Break only if it was the GNU/non-GNU ld that we prefer.
10066       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10067       *GNU* | *'with BFD'*)
10068         test "$with_gnu_ld" != no && break
10069         ;;
10070       *)
10071         test "$with_gnu_ld" != yes && break
10072         ;;
10073       esac
10074     fi
10075   done
10076   IFS="$lt_save_ifs"
10077 else
10078   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10079 fi
10080 fi
10081
10082 LD="$lt_cv_path_LD"
10083 if test -n "$LD"; then
10084   echo "$as_me:$LINENO: result: $LD" >&5
10085 echo "${ECHO_T}$LD" >&6
10086 else
10087   echo "$as_me:$LINENO: result: no" >&5
10088 echo "${ECHO_T}no" >&6
10089 fi
10090 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10091 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10092    { (exit 1); exit 1; }; }
10093 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10094 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10095 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10096   echo $ECHO_N "(cached) $ECHO_C" >&6
10097 else
10098   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10099 case `$LD -v 2>&1 </dev/null` in
10100 *GNU* | *'with BFD'*)
10101   lt_cv_prog_gnu_ld=yes
10102   ;;
10103 *)
10104   lt_cv_prog_gnu_ld=no
10105   ;;
10106 esac
10107 fi
10108 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10109 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10110 with_gnu_ld=$lt_cv_prog_gnu_ld
10111
10112
10113
10114   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10115   # archiving commands below assume that GNU ld is being used.
10116   if test "$with_gnu_ld" = yes; then
10117     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10118     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'
10119
10120     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10121     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10122
10123     # If archive_cmds runs LD, not CC, wlarc should be empty
10124     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10125     #     investigate it a little bit more. (MM)
10126     wlarc='${wl}'
10127
10128     # ancient GNU ld didn't support --whole-archive et. al.
10129     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10130         grep 'no-whole-archive' > /dev/null; then
10131       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10132     else
10133       whole_archive_flag_spec_CXX=
10134     fi
10135   else
10136     with_gnu_ld=no
10137     wlarc=
10138
10139     # A generic and very simple default shared library creation
10140     # command for GNU C++ for the case where it uses the native
10141     # linker, instead of GNU ld.  If possible, this setting should
10142     # overridden to take advantage of the native linker features on
10143     # the platform it is being used on.
10144     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10145   fi
10146
10147   # Commands to make compiler produce verbose output that lists
10148   # what "hidden" libraries, object files and flags are used when
10149   # linking a shared library.
10150   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10151
10152 else
10153   GXX=no
10154   with_gnu_ld=no
10155   wlarc=
10156 fi
10157
10158 # PORTME: fill in a description of your system's C++ link characteristics
10159 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10160 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10161 ld_shlibs_CXX=yes
10162 case $host_os in
10163   aix3*)
10164     # FIXME: insert proper C++ library support
10165     ld_shlibs_CXX=no
10166     ;;
10167   aix4* | aix5*)
10168     if test "$host_cpu" = ia64; then
10169       # On IA64, the linker does run time linking by default, so we don't
10170       # have to do anything special.
10171       aix_use_runtimelinking=no
10172       exp_sym_flag='-Bexport'
10173       no_entry_flag=""
10174     else
10175       aix_use_runtimelinking=no
10176
10177       # Test if we are trying to use run time linking or normal
10178       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10179       # need to do runtime linking.
10180       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10181         for ld_flag in $LDFLAGS; do
10182           case $ld_flag in
10183           *-brtl*)
10184             aix_use_runtimelinking=yes
10185             break
10186             ;;
10187           esac
10188         done
10189         ;;
10190       esac
10191
10192       exp_sym_flag='-bexport'
10193       no_entry_flag='-bnoentry'
10194     fi
10195
10196     # When large executables or shared objects are built, AIX ld can
10197     # have problems creating the table of contents.  If linking a library
10198     # or program results in "error TOC overflow" add -mminimal-toc to
10199     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10200     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10201
10202     archive_cmds_CXX=''
10203     hardcode_direct_CXX=yes
10204     hardcode_libdir_separator_CXX=':'
10205     link_all_deplibs_CXX=yes
10206
10207     if test "$GXX" = yes; then
10208       case $host_os in aix4.[012]|aix4.[012].*)
10209       # We only want to do this on AIX 4.2 and lower, the check
10210       # below for broken collect2 doesn't work under 4.3+
10211         collect2name=`${CC} -print-prog-name=collect2`
10212         if test -f "$collect2name" && \
10213            strings "$collect2name" | grep resolve_lib_name >/dev/null
10214         then
10215           # We have reworked collect2
10216           hardcode_direct_CXX=yes
10217         else
10218           # We have old collect2
10219           hardcode_direct_CXX=unsupported
10220           # It fails to find uninstalled libraries when the uninstalled
10221           # path is not listed in the libpath.  Setting hardcode_minus_L
10222           # to unsupported forces relinking
10223           hardcode_minus_L_CXX=yes
10224           hardcode_libdir_flag_spec_CXX='-L$libdir'
10225           hardcode_libdir_separator_CXX=
10226         fi
10227         ;;
10228       esac
10229       shared_flag='-shared'
10230       if test "$aix_use_runtimelinking" = yes; then
10231         shared_flag="$shared_flag "'${wl}-G'
10232       fi
10233     else
10234       # not using gcc
10235       if test "$host_cpu" = ia64; then
10236         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10237         # chokes on -Wl,-G. The following line is correct:
10238         shared_flag='-G'
10239       else
10240         if test "$aix_use_runtimelinking" = yes; then
10241           shared_flag='${wl}-G'
10242         else
10243           shared_flag='${wl}-bM:SRE'
10244         fi
10245       fi
10246     fi
10247
10248     # It seems that -bexpall does not export symbols beginning with
10249     # underscore (_), so it is better to generate a list of symbols to export.
10250     always_export_symbols_CXX=yes
10251     if test "$aix_use_runtimelinking" = yes; then
10252       # Warning - without using the other runtime loading flags (-brtl),
10253       # -berok will link without error, but may produce a broken library.
10254       allow_undefined_flag_CXX='-berok'
10255       # Determine the default libpath from the value encoded in an empty executable.
10256       cat >conftest.$ac_ext <<_ACEOF
10257 /* confdefs.h.  */
10258 _ACEOF
10259 cat confdefs.h >>conftest.$ac_ext
10260 cat >>conftest.$ac_ext <<_ACEOF
10261 /* end confdefs.h.  */
10262
10263 int
10264 main ()
10265 {
10266
10267   ;
10268   return 0;
10269 }
10270 _ACEOF
10271 rm -f conftest.$ac_objext conftest$ac_exeext
10272 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10273   (eval $ac_link) 2>conftest.er1
10274   ac_status=$?
10275   grep -v '^ *+' conftest.er1 >conftest.err
10276   rm -f conftest.er1
10277   cat conftest.err >&5
10278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10279   (exit $ac_status); } &&
10280          { ac_try='test -z "$ac_cxx_werror_flag"
10281                          || test ! -s conftest.err'
10282   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10283   (eval $ac_try) 2>&5
10284   ac_status=$?
10285   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10286   (exit $ac_status); }; } &&
10287          { ac_try='test -s conftest$ac_exeext'
10288   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10289   (eval $ac_try) 2>&5
10290   ac_status=$?
10291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10292   (exit $ac_status); }; }; then
10293
10294 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10295 }'`
10296 # Check for a 64-bit object if we didn't find anything.
10297 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; }
10298 }'`; fi
10299 else
10300   echo "$as_me: failed program was:" >&5
10301 sed 's/^/| /' conftest.$ac_ext >&5
10302
10303 fi
10304 rm -f conftest.err conftest.$ac_objext \
10305       conftest$ac_exeext conftest.$ac_ext
10306 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10307
10308       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10309
10310       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"
10311      else
10312       if test "$host_cpu" = ia64; then
10313         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10314         allow_undefined_flag_CXX="-z nodefs"
10315         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"
10316       else
10317         # Determine the default libpath from the value encoded in an empty executable.
10318         cat >conftest.$ac_ext <<_ACEOF
10319 /* confdefs.h.  */
10320 _ACEOF
10321 cat confdefs.h >>conftest.$ac_ext
10322 cat >>conftest.$ac_ext <<_ACEOF
10323 /* end confdefs.h.  */
10324
10325 int
10326 main ()
10327 {
10328
10329   ;
10330   return 0;
10331 }
10332 _ACEOF
10333 rm -f conftest.$ac_objext conftest$ac_exeext
10334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10335   (eval $ac_link) 2>conftest.er1
10336   ac_status=$?
10337   grep -v '^ *+' conftest.er1 >conftest.err
10338   rm -f conftest.er1
10339   cat conftest.err >&5
10340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341   (exit $ac_status); } &&
10342          { ac_try='test -z "$ac_cxx_werror_flag"
10343                          || test ! -s conftest.err'
10344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10345   (eval $ac_try) 2>&5
10346   ac_status=$?
10347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348   (exit $ac_status); }; } &&
10349          { ac_try='test -s conftest$ac_exeext'
10350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10351   (eval $ac_try) 2>&5
10352   ac_status=$?
10353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10354   (exit $ac_status); }; }; then
10355
10356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10357 }'`
10358 # Check for a 64-bit object if we didn't find anything.
10359 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; }
10360 }'`; fi
10361 else
10362   echo "$as_me: failed program was:" >&5
10363 sed 's/^/| /' conftest.$ac_ext >&5
10364
10365 fi
10366 rm -f conftest.err conftest.$ac_objext \
10367       conftest$ac_exeext conftest.$ac_ext
10368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10369
10370         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10371         # Warning - without using the other run time loading flags,
10372         # -berok will link without error, but may produce a broken library.
10373         no_undefined_flag_CXX=' ${wl}-bernotok'
10374         allow_undefined_flag_CXX=' ${wl}-berok'
10375         # Exported symbols can be pulled into shared objects from archives
10376         whole_archive_flag_spec_CXX='$convenience'
10377         archive_cmds_need_lc_CXX=yes
10378         # This is similar to how AIX traditionally builds its shared libraries.
10379         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'
10380       fi
10381     fi
10382     ;;
10383
10384   beos*)
10385     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10386       allow_undefined_flag_CXX=unsupported
10387       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10388       # support --undefined.  This deserves some investigation.  FIXME
10389       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10390     else
10391       ld_shlibs_CXX=no
10392     fi
10393     ;;
10394
10395   chorus*)
10396     case $cc_basename in
10397       *)
10398         # FIXME: insert proper C++ library support
10399         ld_shlibs_CXX=no
10400         ;;
10401     esac
10402     ;;
10403
10404   cygwin* | mingw* | pw32*)
10405     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10406     # as there is no search path for DLLs.
10407     hardcode_libdir_flag_spec_CXX='-L$libdir'
10408     allow_undefined_flag_CXX=unsupported
10409     always_export_symbols_CXX=no
10410     enable_shared_with_static_runtimes_CXX=yes
10411
10412     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10413       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'
10414       # If the export-symbols file already is a .def file (1st line
10415       # is EXPORTS), use it as is; otherwise, prepend...
10416       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10417         cp $export_symbols $output_objdir/$soname.def;
10418       else
10419         echo EXPORTS > $output_objdir/$soname.def;
10420         cat $export_symbols >> $output_objdir/$soname.def;
10421       fi~
10422       $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'
10423     else
10424       ld_shlibs_CXX=no
10425     fi
10426   ;;
10427       darwin* | rhapsody*)
10428         case $host_os in
10429         rhapsody* | darwin1.[012])
10430          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10431          ;;
10432        *) # Darwin 1.3 on
10433          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10434            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10435          else
10436            case ${MACOSX_DEPLOYMENT_TARGET} in
10437              10.[012])
10438                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10439                ;;
10440              10.*)
10441                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10442                ;;
10443            esac
10444          fi
10445          ;;
10446         esac
10447       archive_cmds_need_lc_CXX=no
10448       hardcode_direct_CXX=no
10449       hardcode_automatic_CXX=yes
10450       hardcode_shlibpath_var_CXX=unsupported
10451       whole_archive_flag_spec_CXX=''
10452       link_all_deplibs_CXX=yes
10453
10454     if test "$GXX" = yes ; then
10455       lt_int_apple_cc_single_mod=no
10456       output_verbose_link_cmd='echo'
10457       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10458        lt_int_apple_cc_single_mod=yes
10459       fi
10460       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10461        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10462       else
10463           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'
10464         fi
10465         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10466         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10467           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10468             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}'
10469           else
10470             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}'
10471           fi
10472             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}'
10473       else
10474       case $cc_basename in
10475         xlc*)
10476          output_verbose_link_cmd='echo'
10477           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'
10478           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10479           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10480           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}'
10481           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}'
10482           ;;
10483        *)
10484          ld_shlibs_CXX=no
10485           ;;
10486       esac
10487       fi
10488         ;;
10489
10490   dgux*)
10491     case $cc_basename in
10492       ec++*)
10493         # FIXME: insert proper C++ library support
10494         ld_shlibs_CXX=no
10495         ;;
10496       ghcx*)
10497         # Green Hills C++ Compiler
10498         # FIXME: insert proper C++ library support
10499         ld_shlibs_CXX=no
10500         ;;
10501       *)
10502         # FIXME: insert proper C++ library support
10503         ld_shlibs_CXX=no
10504         ;;
10505     esac
10506     ;;
10507   freebsd[12]*)
10508     # C++ shared libraries reported to be fairly broken before switch to ELF
10509     ld_shlibs_CXX=no
10510     ;;
10511   freebsd-elf*)
10512     archive_cmds_need_lc_CXX=no
10513     ;;
10514   freebsd* | kfreebsd*-gnu | dragonfly*)
10515     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10516     # conventions
10517     ld_shlibs_CXX=yes
10518     ;;
10519   gnu*)
10520     ;;
10521   hpux9*)
10522     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10523     hardcode_libdir_separator_CXX=:
10524     export_dynamic_flag_spec_CXX='${wl}-E'
10525     hardcode_direct_CXX=yes
10526     hardcode_minus_L_CXX=yes # Not in the search PATH,
10527                                 # but as the default
10528                                 # location of the library.
10529
10530     case $cc_basename in
10531     CC*)
10532       # FIXME: insert proper C++ library support
10533       ld_shlibs_CXX=no
10534       ;;
10535     aCC*)
10536       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'
10537       # Commands to make compiler produce verbose output that lists
10538       # what "hidden" libraries, object files and flags are used when
10539       # linking a shared library.
10540       #
10541       # There doesn't appear to be a way to prevent this compiler from
10542       # explicitly linking system object files so we need to strip them
10543       # from the output so that they don't get included in the library
10544       # dependencies.
10545       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'
10546       ;;
10547     *)
10548       if test "$GXX" = yes; then
10549         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'
10550       else
10551         # FIXME: insert proper C++ library support
10552         ld_shlibs_CXX=no
10553       fi
10554       ;;
10555     esac
10556     ;;
10557   hpux10*|hpux11*)
10558     if test $with_gnu_ld = no; then
10559       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10560       hardcode_libdir_separator_CXX=:
10561
10562       case $host_cpu in
10563       hppa*64*|ia64*)
10564         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10565         ;;
10566       *)
10567         export_dynamic_flag_spec_CXX='${wl}-E'
10568         ;;
10569       esac
10570     fi
10571     case $host_cpu in
10572     hppa*64*|ia64*)
10573       hardcode_direct_CXX=no
10574       hardcode_shlibpath_var_CXX=no
10575       ;;
10576     *)
10577       hardcode_direct_CXX=yes
10578       hardcode_minus_L_CXX=yes # Not in the search PATH,
10579                                               # but as the default
10580                                               # location of the library.
10581       ;;
10582     esac
10583
10584     case $cc_basename in
10585       CC*)
10586         # FIXME: insert proper C++ library support
10587         ld_shlibs_CXX=no
10588         ;;
10589       aCC*)
10590         case $host_cpu in
10591         hppa*64*)
10592           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10593           ;;
10594         ia64*)
10595           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10596           ;;
10597         *)
10598           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10599           ;;
10600         esac
10601         # Commands to make compiler produce verbose output that lists
10602         # what "hidden" libraries, object files and flags are used when
10603         # linking a shared library.
10604         #
10605         # There doesn't appear to be a way to prevent this compiler from
10606         # explicitly linking system object files so we need to strip them
10607         # from the output so that they don't get included in the library
10608         # dependencies.
10609         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'
10610         ;;
10611       *)
10612         if test "$GXX" = yes; then
10613           if test $with_gnu_ld = no; then
10614             case $host_cpu in
10615             hppa*64*)
10616               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10617               ;;
10618             ia64*)
10619               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10620               ;;
10621             *)
10622               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'
10623               ;;
10624             esac
10625           fi
10626         else
10627           # FIXME: insert proper C++ library support
10628           ld_shlibs_CXX=no
10629         fi
10630         ;;
10631     esac
10632     ;;
10633   interix3*)
10634     hardcode_direct_CXX=no
10635     hardcode_shlibpath_var_CXX=no
10636     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10637     export_dynamic_flag_spec_CXX='${wl}-E'
10638     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10639     # Instead, shared libraries are loaded at an image base (0x10000000 by
10640     # default) and relocated if they conflict, which is a slow very memory
10641     # consuming and fragmenting process.  To avoid this, we pick a random,
10642     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10643     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10644     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'
10645     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'
10646     ;;
10647   irix5* | irix6*)
10648     case $cc_basename in
10649       CC*)
10650         # SGI C++
10651         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'
10652
10653         # Archives containing C++ object files must be created using
10654         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10655         # necessary to make sure instantiated templates are included
10656         # in the archive.
10657         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10658         ;;
10659       *)
10660         if test "$GXX" = yes; then
10661           if test "$with_gnu_ld" = no; then
10662             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'
10663           else
10664             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'
10665           fi
10666         fi
10667         link_all_deplibs_CXX=yes
10668         ;;
10669     esac
10670     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10671     hardcode_libdir_separator_CXX=:
10672     ;;
10673   linux*)
10674     case $cc_basename in
10675       KCC*)
10676         # Kuck and Associates, Inc. (KAI) C++ Compiler
10677
10678         # KCC will only create a shared library if the output file
10679         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10680         # to its proper name (with version) after linking.
10681         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'
10682         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'
10683         # Commands to make compiler produce verbose output that lists
10684         # what "hidden" libraries, object files and flags are used when
10685         # linking a shared library.
10686         #
10687         # There doesn't appear to be a way to prevent this compiler from
10688         # explicitly linking system object files so we need to strip them
10689         # from the output so that they don't get included in the library
10690         # dependencies.
10691         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'
10692
10693         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10694         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10695
10696         # Archives containing C++ object files must be created using
10697         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10698         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10699         ;;
10700       icpc*)
10701         # Intel C++
10702         with_gnu_ld=yes
10703         # version 8.0 and above of icpc choke on multiply defined symbols
10704         # if we add $predep_objects and $postdep_objects, however 7.1 and
10705         # earlier do not add the objects themselves.
10706         case `$CC -V 2>&1` in
10707         *"Version 7."*)
10708           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10709           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'
10710           ;;
10711         *)  # Version 8.0 or newer
10712           tmp_idyn=
10713           case $host_cpu in
10714             ia64*) tmp_idyn=' -i_dynamic';;
10715           esac
10716           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10717           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'
10718           ;;
10719         esac
10720         archive_cmds_need_lc_CXX=no
10721         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10722         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10723         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10724         ;;
10725       pgCC*)
10726         # Portland Group C++ compiler
10727         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10728         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'
10729
10730         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10731         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10732         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'
10733         ;;
10734       cxx*)
10735         # Compaq C++
10736         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10737         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'
10738
10739         runpath_var=LD_RUN_PATH
10740         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10741         hardcode_libdir_separator_CXX=:
10742
10743         # Commands to make compiler produce verbose output that lists
10744         # what "hidden" libraries, object files and flags are used when
10745         # linking a shared library.
10746         #
10747         # There doesn't appear to be a way to prevent this compiler from
10748         # explicitly linking system object files so we need to strip them
10749         # from the output so that they don't get included in the library
10750         # dependencies.
10751         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'
10752         ;;
10753     esac
10754     ;;
10755   lynxos*)
10756     # FIXME: insert proper C++ library support
10757     ld_shlibs_CXX=no
10758     ;;
10759   m88k*)
10760     # FIXME: insert proper C++ library support
10761     ld_shlibs_CXX=no
10762     ;;
10763   mvs*)
10764     case $cc_basename in
10765       cxx*)
10766         # FIXME: insert proper C++ library support
10767         ld_shlibs_CXX=no
10768         ;;
10769       *)
10770         # FIXME: insert proper C++ library support
10771         ld_shlibs_CXX=no
10772         ;;
10773     esac
10774     ;;
10775   netbsd*)
10776     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10777       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10778       wlarc=
10779       hardcode_libdir_flag_spec_CXX='-R$libdir'
10780       hardcode_direct_CXX=yes
10781       hardcode_shlibpath_var_CXX=no
10782     fi
10783     # Workaround some broken pre-1.5 toolchains
10784     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10785     ;;
10786   openbsd2*)
10787     # C++ shared libraries are fairly broken
10788     ld_shlibs_CXX=no
10789     ;;
10790   openbsd*)
10791     hardcode_direct_CXX=yes
10792     hardcode_shlibpath_var_CXX=no
10793     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10794     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10795     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10796       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10797       export_dynamic_flag_spec_CXX='${wl}-E'
10798       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10799     fi
10800     output_verbose_link_cmd='echo'
10801     ;;
10802   osf3*)
10803     case $cc_basename in
10804       KCC*)
10805         # Kuck and Associates, Inc. (KAI) C++ Compiler
10806
10807         # KCC will only create a shared library if the output file
10808         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10809         # to its proper name (with version) after linking.
10810         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'
10811
10812         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10813         hardcode_libdir_separator_CXX=:
10814
10815         # Archives containing C++ object files must be created using
10816         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10817         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10818
10819         ;;
10820       RCC*)
10821         # Rational C++ 2.4.1
10822         # FIXME: insert proper C++ library support
10823         ld_shlibs_CXX=no
10824         ;;
10825       cxx*)
10826         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10827         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'
10828
10829         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10830         hardcode_libdir_separator_CXX=:
10831
10832         # Commands to make compiler produce verbose output that lists
10833         # what "hidden" libraries, object files and flags are used when
10834         # linking a shared library.
10835         #
10836         # There doesn't appear to be a way to prevent this compiler from
10837         # explicitly linking system object files so we need to strip them
10838         # from the output so that they don't get included in the library
10839         # dependencies.
10840         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'
10841         ;;
10842       *)
10843         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10844           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10845           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'
10846
10847           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10848           hardcode_libdir_separator_CXX=:
10849
10850           # Commands to make compiler produce verbose output that lists
10851           # what "hidden" libraries, object files and flags are used when
10852           # linking a shared library.
10853           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10854
10855         else
10856           # FIXME: insert proper C++ library support
10857           ld_shlibs_CXX=no
10858         fi
10859         ;;
10860     esac
10861     ;;
10862   osf4* | osf5*)
10863     case $cc_basename in
10864       KCC*)
10865         # Kuck and Associates, Inc. (KAI) C++ Compiler
10866
10867         # KCC will only create a shared library if the output file
10868         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10869         # to its proper name (with version) after linking.
10870         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'
10871
10872         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10873         hardcode_libdir_separator_CXX=:
10874
10875         # Archives containing C++ object files must be created using
10876         # the KAI C++ compiler.
10877         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10878         ;;
10879       RCC*)
10880         # Rational C++ 2.4.1
10881         # FIXME: insert proper C++ library support
10882         ld_shlibs_CXX=no
10883         ;;
10884       cxx*)
10885         allow_undefined_flag_CXX=' -expect_unresolved \*'
10886         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'
10887         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10888           echo "-hidden">> $lib.exp~
10889           $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~
10890           $rm $lib.exp'
10891
10892         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10893         hardcode_libdir_separator_CXX=:
10894
10895         # Commands to make compiler produce verbose output that lists
10896         # what "hidden" libraries, object files and flags are used when
10897         # linking a shared library.
10898         #
10899         # There doesn't appear to be a way to prevent this compiler from
10900         # explicitly linking system object files so we need to strip them
10901         # from the output so that they don't get included in the library
10902         # dependencies.
10903         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'
10904         ;;
10905       *)
10906         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10907           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10908          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'
10909
10910           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10911           hardcode_libdir_separator_CXX=:
10912
10913           # Commands to make compiler produce verbose output that lists
10914           # what "hidden" libraries, object files and flags are used when
10915           # linking a shared library.
10916           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10917
10918         else
10919           # FIXME: insert proper C++ library support
10920           ld_shlibs_CXX=no
10921         fi
10922         ;;
10923     esac
10924     ;;
10925   psos*)
10926     # FIXME: insert proper C++ library support
10927     ld_shlibs_CXX=no
10928     ;;
10929   sunos4*)
10930     case $cc_basename in
10931       CC*)
10932         # Sun C++ 4.x
10933         # FIXME: insert proper C++ library support
10934         ld_shlibs_CXX=no
10935         ;;
10936       lcc*)
10937         # Lucid
10938         # FIXME: insert proper C++ library support
10939         ld_shlibs_CXX=no
10940         ;;
10941       *)
10942         # FIXME: insert proper C++ library support
10943         ld_shlibs_CXX=no
10944         ;;
10945     esac
10946     ;;
10947   solaris*)
10948     case $cc_basename in
10949       CC*)
10950         # Sun C++ 4.2, 5.x and Centerline C++
10951         archive_cmds_need_lc_CXX=yes
10952         no_undefined_flag_CXX=' -zdefs'
10953         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10954         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10955         $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'
10956
10957         hardcode_libdir_flag_spec_CXX='-R$libdir'
10958         hardcode_shlibpath_var_CXX=no
10959         case $host_os in
10960           solaris2.[0-5] | solaris2.[0-5].*) ;;
10961           *)
10962             # The C++ compiler is used as linker so we must use $wl
10963             # flag to pass the commands to the underlying system
10964             # linker. We must also pass each convience library through
10965             # to the system linker between allextract/defaultextract.
10966             # The C++ compiler will combine linker options so we
10967             # cannot just pass the convience library names through
10968             # without $wl.
10969             # Supported since Solaris 2.6 (maybe 2.5.1?)
10970             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'
10971             ;;
10972         esac
10973         link_all_deplibs_CXX=yes
10974
10975         output_verbose_link_cmd='echo'
10976
10977         # Archives containing C++ object files must be created using
10978         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10979         # necessary to make sure instantiated templates are included
10980         # in the archive.
10981         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10982         ;;
10983       gcx*)
10984         # Green Hills C++ Compiler
10985         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10986
10987         # The C++ compiler must be used to create the archive.
10988         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10989         ;;
10990       *)
10991         # GNU C++ compiler with Solaris linker
10992         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10993           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10994           if $CC --version | grep -v '^2\.7' > /dev/null; then
10995             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10996             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10997                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10998
10999             # Commands to make compiler produce verbose output that lists
11000             # what "hidden" libraries, object files and flags are used when
11001             # linking a shared library.
11002             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11003           else
11004             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11005             # platform.
11006             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11007             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11008                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11009
11010             # Commands to make compiler produce verbose output that lists
11011             # what "hidden" libraries, object files and flags are used when
11012             # linking a shared library.
11013             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11014           fi
11015
11016           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11017         fi
11018         ;;
11019     esac
11020     ;;
11021   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11022     no_undefined_flag_CXX='${wl}-z,text'
11023     archive_cmds_need_lc_CXX=no
11024     hardcode_shlibpath_var_CXX=no
11025     runpath_var='LD_RUN_PATH'
11026
11027     case $cc_basename in
11028       CC*)
11029         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11030         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11031         ;;
11032       *)
11033         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11034         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11035         ;;
11036     esac
11037     ;;
11038   sysv5* | sco3.2v5* | sco5v6*)
11039     # Note: We can NOT use -z defs as we might desire, because we do not
11040     # link with -lc, and that would cause any symbols used from libc to
11041     # always be unresolved, which means just about no library would
11042     # ever link correctly.  If we're not using GNU ld we use -z text
11043     # though, which does catch some bad symbols but isn't as heavy-handed
11044     # as -z defs.
11045     # For security reasons, it is highly recommended that you always
11046     # use absolute paths for naming shared libraries, and exclude the
11047     # DT_RUNPATH tag from executables and libraries.  But doing so
11048     # requires that you compile everything twice, which is a pain.
11049     # So that behaviour is only enabled if SCOABSPATH is set to a
11050     # non-empty value in the environment.  Most likely only useful for
11051     # creating official distributions of packages.
11052     # This is a hack until libtool officially supports absolute path
11053     # names for shared libraries.
11054     no_undefined_flag_CXX='${wl}-z,text'
11055     allow_undefined_flag_CXX='${wl}-z,nodefs'
11056     archive_cmds_need_lc_CXX=no
11057     hardcode_shlibpath_var_CXX=no
11058     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11059     hardcode_libdir_separator_CXX=':'
11060     link_all_deplibs_CXX=yes
11061     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11062     runpath_var='LD_RUN_PATH'
11063
11064     case $cc_basename in
11065       CC*)
11066         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11067         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11068         ;;
11069       *)
11070         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11071         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11072         ;;
11073     esac
11074     ;;
11075   tandem*)
11076     case $cc_basename in
11077       NCC*)
11078         # NonStop-UX NCC 3.20
11079         # FIXME: insert proper C++ library support
11080         ld_shlibs_CXX=no
11081         ;;
11082       *)
11083         # FIXME: insert proper C++ library support
11084         ld_shlibs_CXX=no
11085         ;;
11086     esac
11087     ;;
11088   vxworks*)
11089     # FIXME: insert proper C++ library support
11090     ld_shlibs_CXX=no
11091     ;;
11092   *)
11093     # FIXME: insert proper C++ library support
11094     ld_shlibs_CXX=no
11095     ;;
11096 esac
11097 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11098 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11099 test "$ld_shlibs_CXX" = no && can_build_shared=no
11100
11101 GCC_CXX="$GXX"
11102 LD_CXX="$LD"
11103
11104
11105 cat > conftest.$ac_ext <<EOF
11106 class Foo
11107 {
11108 public:
11109   Foo (void) { a = 0; }
11110 private:
11111   int a;
11112 };
11113 EOF
11114
11115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11116   (eval $ac_compile) 2>&5
11117   ac_status=$?
11118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11119   (exit $ac_status); }; then
11120   # Parse the compiler output and extract the necessary
11121   # objects, libraries and library flags.
11122
11123   # Sentinel used to keep track of whether or not we are before
11124   # the conftest object file.
11125   pre_test_object_deps_done=no
11126
11127   # The `*' in the case matches for architectures that use `case' in
11128   # $output_verbose_cmd can trigger glob expansion during the loop
11129   # eval without this substitution.
11130   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11131
11132   for p in `eval $output_verbose_link_cmd`; do
11133     case $p in
11134
11135     -L* | -R* | -l*)
11136        # Some compilers place space between "-{L,R}" and the path.
11137        # Remove the space.
11138        if test $p = "-L" \
11139           || test $p = "-R"; then
11140          prev=$p
11141          continue
11142        else
11143          prev=
11144        fi
11145
11146        if test "$pre_test_object_deps_done" = no; then
11147          case $p in
11148          -L* | -R*)
11149            # Internal compiler library paths should come after those
11150            # provided the user.  The postdeps already come after the
11151            # user supplied libs so there is no need to process them.
11152            if test -z "$compiler_lib_search_path_CXX"; then
11153              compiler_lib_search_path_CXX="${prev}${p}"
11154            else
11155              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11156            fi
11157            ;;
11158          # The "-l" case would never come before the object being
11159          # linked, so don't bother handling this case.
11160          esac
11161        else
11162          if test -z "$postdeps_CXX"; then
11163            postdeps_CXX="${prev}${p}"
11164          else
11165            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11166          fi
11167        fi
11168        ;;
11169
11170     *.$objext)
11171        # This assumes that the test object file only shows up
11172        # once in the compiler output.
11173        if test "$p" = "conftest.$objext"; then
11174          pre_test_object_deps_done=yes
11175          continue
11176        fi
11177
11178        if test "$pre_test_object_deps_done" = no; then
11179          if test -z "$predep_objects_CXX"; then
11180            predep_objects_CXX="$p"
11181          else
11182            predep_objects_CXX="$predep_objects_CXX $p"
11183          fi
11184        else
11185          if test -z "$postdep_objects_CXX"; then
11186            postdep_objects_CXX="$p"
11187          else
11188            postdep_objects_CXX="$postdep_objects_CXX $p"
11189          fi
11190        fi
11191        ;;
11192
11193     *) ;; # Ignore the rest.
11194
11195     esac
11196   done
11197
11198   # Clean up.
11199   rm -f a.out a.exe
11200 else
11201   echo "libtool.m4: error: problem compiling CXX test program"
11202 fi
11203
11204 $rm -f confest.$objext
11205
11206 # PORTME: override above test on systems where it is broken
11207 case $host_os in
11208 interix3*)
11209   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11210   # hack all around it, let's just trust "g++" to DTRT.
11211   predep_objects_CXX=
11212   postdep_objects_CXX=
11213   postdeps_CXX=
11214   ;;
11215
11216 solaris*)
11217   case $cc_basename in
11218   CC*)
11219     # Adding this requires a known-good setup of shared libraries for
11220     # Sun compiler versions before 5.6, else PIC objects from an old
11221     # archive will be linked into the output, leading to subtle bugs.
11222     postdeps_CXX='-lCstd -lCrun'
11223     ;;
11224   esac
11225   ;;
11226 esac
11227
11228
11229 case " $postdeps_CXX " in
11230 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11231 esac
11232
11233 lt_prog_compiler_wl_CXX=
11234 lt_prog_compiler_pic_CXX=
11235 lt_prog_compiler_static_CXX=
11236
11237 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11238 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11239
11240   # C++ specific cases for pic, static, wl, etc.
11241   if test "$GXX" = yes; then
11242     lt_prog_compiler_wl_CXX='-Wl,'
11243     lt_prog_compiler_static_CXX='-static'
11244
11245     case $host_os in
11246     aix*)
11247       # All AIX code is PIC.
11248       if test "$host_cpu" = ia64; then
11249         # AIX 5 now supports IA64 processor
11250         lt_prog_compiler_static_CXX='-Bstatic'
11251       fi
11252       ;;
11253     amigaos*)
11254       # FIXME: we need at least 68020 code to build shared libraries, but
11255       # adding the `-m68020' flag to GCC prevents building anything better,
11256       # like `-m68040'.
11257       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11258       ;;
11259     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11260       # PIC is the default for these OSes.
11261       ;;
11262     mingw* | os2* | pw32*)
11263       # This hack is so that the source file can tell whether it is being
11264       # built for inclusion in a dll (and should export symbols for example).
11265       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11266       ;;
11267     darwin* | rhapsody*)
11268       # PIC is the default on this platform
11269       # Common symbols not allowed in MH_DYLIB files
11270       lt_prog_compiler_pic_CXX='-fno-common'
11271       ;;
11272     *djgpp*)
11273       # DJGPP does not support shared libraries at all
11274       lt_prog_compiler_pic_CXX=
11275       ;;
11276     interix3*)
11277       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11278       # Instead, we relocate shared libraries at runtime.
11279       ;;
11280     sysv4*MP*)
11281       if test -d /usr/nec; then
11282         lt_prog_compiler_pic_CXX=-Kconform_pic
11283       fi
11284       ;;
11285     hpux*)
11286       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11287       # not for PA HP-UX.
11288       case $host_cpu in
11289       hppa*64*|ia64*)
11290         ;;
11291       *)
11292         lt_prog_compiler_pic_CXX='-fPIC'
11293         ;;
11294       esac
11295       ;;
11296     *)
11297       lt_prog_compiler_pic_CXX='-fPIC'
11298       ;;
11299     esac
11300   else
11301     case $host_os in
11302       aix4* | aix5*)
11303         # All AIX code is PIC.
11304         if test "$host_cpu" = ia64; then
11305           # AIX 5 now supports IA64 processor
11306           lt_prog_compiler_static_CXX='-Bstatic'
11307         else
11308           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11309         fi
11310         ;;
11311       chorus*)
11312         case $cc_basename in
11313         cxch68*)
11314           # Green Hills C++ Compiler
11315           # _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"
11316           ;;
11317         esac
11318         ;;
11319        darwin*)
11320          # PIC is the default on this platform
11321          # Common symbols not allowed in MH_DYLIB files
11322          case $cc_basename in
11323            xlc*)
11324            lt_prog_compiler_pic_CXX='-qnocommon'
11325            lt_prog_compiler_wl_CXX='-Wl,'
11326            ;;
11327          esac
11328        ;;
11329       dgux*)
11330         case $cc_basename in
11331           ec++*)
11332             lt_prog_compiler_pic_CXX='-KPIC'
11333             ;;
11334           ghcx*)
11335             # Green Hills C++ Compiler
11336             lt_prog_compiler_pic_CXX='-pic'
11337             ;;
11338           *)
11339             ;;
11340         esac
11341         ;;
11342       freebsd* | kfreebsd*-gnu | dragonfly*)
11343         # FreeBSD uses GNU C++
11344         ;;
11345       hpux9* | hpux10* | hpux11*)
11346         case $cc_basename in
11347           CC*)
11348             lt_prog_compiler_wl_CXX='-Wl,'
11349             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11350             if test "$host_cpu" != ia64; then
11351               lt_prog_compiler_pic_CXX='+Z'
11352             fi
11353             ;;
11354           aCC*)
11355             lt_prog_compiler_wl_CXX='-Wl,'
11356             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11357             case $host_cpu in
11358             hppa*64*|ia64*)
11359               # +Z the default
11360               ;;
11361             *)
11362               lt_prog_compiler_pic_CXX='+Z'
11363               ;;
11364             esac
11365             ;;
11366           *)
11367             ;;
11368         esac
11369         ;;
11370       interix*)
11371         # This is c89, which is MS Visual C++ (no shared libs)
11372         # Anyone wants to do a port?
11373         ;;
11374       irix5* | irix6* | nonstopux*)
11375         case $cc_basename in
11376           CC*)
11377             lt_prog_compiler_wl_CXX='-Wl,'
11378             lt_prog_compiler_static_CXX='-non_shared'
11379             # CC pic flag -KPIC is the default.
11380             ;;
11381           *)
11382             ;;
11383         esac
11384         ;;
11385       linux*)
11386         case $cc_basename in
11387           KCC*)
11388             # KAI C++ Compiler
11389             lt_prog_compiler_wl_CXX='--backend -Wl,'
11390             lt_prog_compiler_pic_CXX='-fPIC'
11391             ;;
11392           icpc* | ecpc*)
11393             # Intel C++
11394             lt_prog_compiler_wl_CXX='-Wl,'
11395             lt_prog_compiler_pic_CXX='-KPIC'
11396             lt_prog_compiler_static_CXX='-static'
11397             ;;
11398           pgCC*)
11399             # Portland Group C++ compiler.
11400             lt_prog_compiler_wl_CXX='-Wl,'
11401             lt_prog_compiler_pic_CXX='-fpic'
11402             lt_prog_compiler_static_CXX='-Bstatic'
11403             ;;
11404           cxx*)
11405             # Compaq C++
11406             # Make sure the PIC flag is empty.  It appears that all Alpha
11407             # Linux and Compaq Tru64 Unix objects are PIC.
11408             lt_prog_compiler_pic_CXX=
11409             lt_prog_compiler_static_CXX='-non_shared'
11410             ;;
11411           *)
11412             ;;
11413         esac
11414         ;;
11415       lynxos*)
11416         ;;
11417       m88k*)
11418         ;;
11419       mvs*)
11420         case $cc_basename in
11421           cxx*)
11422             lt_prog_compiler_pic_CXX='-W c,exportall'
11423             ;;
11424           *)
11425             ;;
11426         esac
11427         ;;
11428       netbsd*)
11429         ;;
11430       osf3* | osf4* | osf5*)
11431         case $cc_basename in
11432           KCC*)
11433             lt_prog_compiler_wl_CXX='--backend -Wl,'
11434             ;;
11435           RCC*)
11436             # Rational C++ 2.4.1
11437             lt_prog_compiler_pic_CXX='-pic'
11438             ;;
11439           cxx*)
11440             # Digital/Compaq C++
11441             lt_prog_compiler_wl_CXX='-Wl,'
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       psos*)
11452         ;;
11453       solaris*)
11454         case $cc_basename in
11455           CC*)
11456             # Sun C++ 4.2, 5.x and Centerline C++
11457             lt_prog_compiler_pic_CXX='-KPIC'
11458             lt_prog_compiler_static_CXX='-Bstatic'
11459             lt_prog_compiler_wl_CXX='-Qoption ld '
11460             ;;
11461           gcx*)
11462             # Green Hills C++ Compiler
11463             lt_prog_compiler_pic_CXX='-PIC'
11464             ;;
11465           *)
11466             ;;
11467         esac
11468         ;;
11469       sunos4*)
11470         case $cc_basename in
11471           CC*)
11472             # Sun C++ 4.x
11473             lt_prog_compiler_pic_CXX='-pic'
11474             lt_prog_compiler_static_CXX='-Bstatic'
11475             ;;
11476           lcc*)
11477             # Lucid
11478             lt_prog_compiler_pic_CXX='-pic'
11479             ;;
11480           *)
11481             ;;
11482         esac
11483         ;;
11484       tandem*)
11485         case $cc_basename in
11486           NCC*)
11487             # NonStop-UX NCC 3.20
11488             lt_prog_compiler_pic_CXX='-KPIC'
11489             ;;
11490           *)
11491             ;;
11492         esac
11493         ;;
11494       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11495         case $cc_basename in
11496           CC*)
11497             lt_prog_compiler_wl_CXX='-Wl,'
11498             lt_prog_compiler_pic_CXX='-KPIC'
11499             lt_prog_compiler_static_CXX='-Bstatic'
11500             ;;
11501         esac
11502         ;;
11503       vxworks*)
11504         ;;
11505       *)
11506         lt_prog_compiler_can_build_shared_CXX=no
11507         ;;
11508     esac
11509   fi
11510
11511 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11512 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11513
11514 #
11515 # Check to make sure the PIC flag actually works.
11516 #
11517 if test -n "$lt_prog_compiler_pic_CXX"; then
11518
11519 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11520 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11521 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11522   echo $ECHO_N "(cached) $ECHO_C" >&6
11523 else
11524   lt_prog_compiler_pic_works_CXX=no
11525   ac_outfile=conftest.$ac_objext
11526    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11527    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11528    # Insert the option either (1) after the last *FLAGS variable, or
11529    # (2) before a word containing "conftest.", or (3) at the end.
11530    # Note that $ac_compile itself does not contain backslashes and begins
11531    # with a dollar sign (not a hyphen), so the echo should work correctly.
11532    # The option is referenced via a variable to avoid confusing sed.
11533    lt_compile=`echo "$ac_compile" | $SED \
11534    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11535    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11536    -e 's:$: $lt_compiler_flag:'`
11537    (eval echo "\"\$as_me:11537: $lt_compile\"" >&5)
11538    (eval "$lt_compile" 2>conftest.err)
11539    ac_status=$?
11540    cat conftest.err >&5
11541    echo "$as_me:11541: \$? = $ac_status" >&5
11542    if (exit $ac_status) && test -s "$ac_outfile"; then
11543      # The compiler can only warn and ignore the option if not recognized
11544      # So say no if there are warnings other than the usual output.
11545      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11546      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11547      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11548        lt_prog_compiler_pic_works_CXX=yes
11549      fi
11550    fi
11551    $rm conftest*
11552
11553 fi
11554 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11555 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11556
11557 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11558     case $lt_prog_compiler_pic_CXX in
11559      "" | " "*) ;;
11560      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11561      esac
11562 else
11563     lt_prog_compiler_pic_CXX=
11564      lt_prog_compiler_can_build_shared_CXX=no
11565 fi
11566
11567 fi
11568 case $host_os in
11569   # For platforms which do not support PIC, -DPIC is meaningless:
11570   *djgpp*)
11571     lt_prog_compiler_pic_CXX=
11572     ;;
11573   *)
11574     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11575     ;;
11576 esac
11577
11578 #
11579 # Check to make sure the static flag actually works.
11580 #
11581 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11582 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11583 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11584 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11585   echo $ECHO_N "(cached) $ECHO_C" >&6
11586 else
11587   lt_prog_compiler_static_works_CXX=no
11588    save_LDFLAGS="$LDFLAGS"
11589    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11590    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11591    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11592      # The linker can only warn and ignore the option if not recognized
11593      # So say no if there are warnings
11594      if test -s conftest.err; then
11595        # Append any errors to the config.log.
11596        cat conftest.err 1>&5
11597        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11598        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11599        if diff conftest.exp conftest.er2 >/dev/null; then
11600          lt_prog_compiler_static_works_CXX=yes
11601        fi
11602      else
11603        lt_prog_compiler_static_works_CXX=yes
11604      fi
11605    fi
11606    $rm conftest*
11607    LDFLAGS="$save_LDFLAGS"
11608
11609 fi
11610 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11611 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11612
11613 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11614     :
11615 else
11616     lt_prog_compiler_static_CXX=
11617 fi
11618
11619
11620 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11621 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11622 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11623   echo $ECHO_N "(cached) $ECHO_C" >&6
11624 else
11625   lt_cv_prog_compiler_c_o_CXX=no
11626    $rm -r conftest 2>/dev/null
11627    mkdir conftest
11628    cd conftest
11629    mkdir out
11630    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11631
11632    lt_compiler_flag="-o out/conftest2.$ac_objext"
11633    # Insert the option either (1) after the last *FLAGS variable, or
11634    # (2) before a word containing "conftest.", or (3) at the end.
11635    # Note that $ac_compile itself does not contain backslashes and begins
11636    # with a dollar sign (not a hyphen), so the echo should work correctly.
11637    lt_compile=`echo "$ac_compile" | $SED \
11638    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11639    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11640    -e 's:$: $lt_compiler_flag:'`
11641    (eval echo "\"\$as_me:11641: $lt_compile\"" >&5)
11642    (eval "$lt_compile" 2>out/conftest.err)
11643    ac_status=$?
11644    cat out/conftest.err >&5
11645    echo "$as_me:11645: \$? = $ac_status" >&5
11646    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11647    then
11648      # The compiler can only warn and ignore the option if not recognized
11649      # So say no if there are warnings
11650      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11651      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11652      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11653        lt_cv_prog_compiler_c_o_CXX=yes
11654      fi
11655    fi
11656    chmod u+w . 2>&5
11657    $rm conftest*
11658    # SGI C++ compiler will create directory out/ii_files/ for
11659    # template instantiation
11660    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11661    $rm out/* && rmdir out
11662    cd ..
11663    rmdir conftest
11664    $rm conftest*
11665
11666 fi
11667 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11668 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11669
11670
11671 hard_links="nottested"
11672 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11673   # do not overwrite the value of need_locks provided by the user
11674   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11675 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11676   hard_links=yes
11677   $rm conftest*
11678   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11679   touch conftest.a
11680   ln conftest.a conftest.b 2>&5 || hard_links=no
11681   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11682   echo "$as_me:$LINENO: result: $hard_links" >&5
11683 echo "${ECHO_T}$hard_links" >&6
11684   if test "$hard_links" = no; then
11685     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11686 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11687     need_locks=warn
11688   fi
11689 else
11690   need_locks=no
11691 fi
11692
11693 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11694 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11695
11696   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11697   case $host_os in
11698   aix4* | aix5*)
11699     # If we're using GNU nm, then we don't want the "-C" option.
11700     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11701     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11702       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'
11703     else
11704       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'
11705     fi
11706     ;;
11707   pw32*)
11708     export_symbols_cmds_CXX="$ltdll_cmds"
11709   ;;
11710   cygwin* | mingw*)
11711     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'
11712   ;;
11713   *)
11714     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11715   ;;
11716   esac
11717
11718 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11719 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11720 test "$ld_shlibs_CXX" = no && can_build_shared=no
11721
11722 #
11723 # Do we need to explicitly link libc?
11724 #
11725 case "x$archive_cmds_need_lc_CXX" in
11726 x|xyes)
11727   # Assume -lc should be added
11728   archive_cmds_need_lc_CXX=yes
11729
11730   if test "$enable_shared" = yes && test "$GCC" = yes; then
11731     case $archive_cmds_CXX in
11732     *'~'*)
11733       # FIXME: we may have to deal with multi-command sequences.
11734       ;;
11735     '$CC '*)
11736       # Test whether the compiler implicitly links with -lc since on some
11737       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11738       # to ld, don't add -lc before -lgcc.
11739       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11740 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11741       $rm conftest*
11742       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11743
11744       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11745   (eval $ac_compile) 2>&5
11746   ac_status=$?
11747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11748   (exit $ac_status); } 2>conftest.err; then
11749         soname=conftest
11750         lib=conftest
11751         libobjs=conftest.$ac_objext
11752         deplibs=
11753         wl=$lt_prog_compiler_wl_CXX
11754         pic_flag=$lt_prog_compiler_pic_CXX
11755         compiler_flags=-v
11756         linker_flags=-v
11757         verstring=
11758         output_objdir=.
11759         libname=conftest
11760         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11761         allow_undefined_flag_CXX=
11762         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11763   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11764   ac_status=$?
11765   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11766   (exit $ac_status); }
11767         then
11768           archive_cmds_need_lc_CXX=no
11769         else
11770           archive_cmds_need_lc_CXX=yes
11771         fi
11772         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11773       else
11774         cat conftest.err 1>&5
11775       fi
11776       $rm conftest*
11777       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11778 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11779       ;;
11780     esac
11781   fi
11782   ;;
11783 esac
11784
11785 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11786 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11787 library_names_spec=
11788 libname_spec='lib$name'
11789 soname_spec=
11790 shrext_cmds=".so"
11791 postinstall_cmds=
11792 postuninstall_cmds=
11793 finish_cmds=
11794 finish_eval=
11795 shlibpath_var=
11796 shlibpath_overrides_runpath=unknown
11797 version_type=none
11798 dynamic_linker="$host_os ld.so"
11799 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11800 if test "$GCC" = yes; then
11801   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11802   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11803     # if the path contains ";" then we assume it to be the separator
11804     # otherwise default to the standard path separator (i.e. ":") - it is
11805     # assumed that no part of a normal pathname contains ";" but that should
11806     # okay in the real world where ";" in dirpaths is itself problematic.
11807     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11808   else
11809     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11810   fi
11811 else
11812   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11813 fi
11814 need_lib_prefix=unknown
11815 hardcode_into_libs=no
11816
11817 # when you set need_version to no, make sure it does not cause -set_version
11818 # flags to be left without arguments
11819 need_version=unknown
11820
11821 case $host_os in
11822 aix3*)
11823   version_type=linux
11824   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11825   shlibpath_var=LIBPATH
11826
11827   # AIX 3 has no versioning support, so we append a major version to the name.
11828   soname_spec='${libname}${release}${shared_ext}$major'
11829   ;;
11830
11831 aix4* | aix5*)
11832   version_type=linux
11833   need_lib_prefix=no
11834   need_version=no
11835   hardcode_into_libs=yes
11836   if test "$host_cpu" = ia64; then
11837     # AIX 5 supports IA64
11838     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11839     shlibpath_var=LD_LIBRARY_PATH
11840   else
11841     # With GCC up to 2.95.x, collect2 would create an import file
11842     # for dependence libraries.  The import file would start with
11843     # the line `#! .'.  This would cause the generated library to
11844     # depend on `.', always an invalid library.  This was fixed in
11845     # development snapshots of GCC prior to 3.0.
11846     case $host_os in
11847       aix4 | aix4.[01] | aix4.[01].*)
11848       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11849            echo ' yes '
11850            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11851         :
11852       else
11853         can_build_shared=no
11854       fi
11855       ;;
11856     esac
11857     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11858     # soname into executable. Probably we can add versioning support to
11859     # collect2, so additional links can be useful in future.
11860     if test "$aix_use_runtimelinking" = yes; then
11861       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11862       # instead of lib<name>.a to let people know that these are not
11863       # typical AIX shared libraries.
11864       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11865     else
11866       # We preserve .a as extension for shared libraries through AIX4.2
11867       # and later when we are not doing run time linking.
11868       library_names_spec='${libname}${release}.a $libname.a'
11869       soname_spec='${libname}${release}${shared_ext}$major'
11870     fi
11871     shlibpath_var=LIBPATH
11872   fi
11873   ;;
11874
11875 amigaos*)
11876   library_names_spec='$libname.ixlibrary $libname.a'
11877   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11878   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'
11879   ;;
11880
11881 beos*)
11882   library_names_spec='${libname}${shared_ext}'
11883   dynamic_linker="$host_os ld.so"
11884   shlibpath_var=LIBRARY_PATH
11885   ;;
11886
11887 bsdi[45]*)
11888   version_type=linux
11889   need_version=no
11890   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891   soname_spec='${libname}${release}${shared_ext}$major'
11892   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11893   shlibpath_var=LD_LIBRARY_PATH
11894   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11895   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11896   # the default ld.so.conf also contains /usr/contrib/lib and
11897   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11898   # libtool to hard-code these into programs
11899   ;;
11900
11901 cygwin* | mingw* | pw32*)
11902   version_type=windows
11903   shrext_cmds=".dll"
11904   need_version=no
11905   need_lib_prefix=no
11906
11907   case $GCC,$host_os in
11908   yes,cygwin* | yes,mingw* | yes,pw32*)
11909     library_names_spec='$libname.dll.a'
11910     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11911     postinstall_cmds='base_file=`basename \${file}`~
11912       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11913       dldir=$destdir/`dirname \$dlpath`~
11914       test -d \$dldir || mkdir -p \$dldir~
11915       $install_prog $dir/$dlname \$dldir/$dlname~
11916       chmod a+x \$dldir/$dlname'
11917     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11918       dlpath=$dir/\$dldll~
11919        $rm \$dlpath'
11920     shlibpath_overrides_runpath=yes
11921
11922     case $host_os in
11923     cygwin*)
11924       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11925       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11926       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11927       ;;
11928     mingw*)
11929       # MinGW DLLs use traditional 'lib' prefix
11930       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11931       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11932       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11933         # It is most probably a Windows format PATH printed by
11934         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11935         # path with ; separators, and with drive letters. We can handle the
11936         # drive letters (cygwin fileutils understands them), so leave them,
11937         # especially as we might pass files found there to a mingw objdump,
11938         # which wouldn't understand a cygwinified path. Ahh.
11939         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11940       else
11941         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11942       fi
11943       ;;
11944     pw32*)
11945       # pw32 DLLs use 'pw' prefix rather than 'lib'
11946       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11947       ;;
11948     esac
11949     ;;
11950
11951   *)
11952     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11953     ;;
11954   esac
11955   dynamic_linker='Win32 ld.exe'
11956   # FIXME: first we should search . and the directory the executable is in
11957   shlibpath_var=PATH
11958   ;;
11959
11960 darwin* | rhapsody*)
11961   dynamic_linker="$host_os dyld"
11962   version_type=darwin
11963   need_lib_prefix=no
11964   need_version=no
11965   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11966   soname_spec='${libname}${release}${major}$shared_ext'
11967   shlibpath_overrides_runpath=yes
11968   shlibpath_var=DYLD_LIBRARY_PATH
11969   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11970   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11971   if test "$GCC" = yes; then
11972     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"`
11973   else
11974     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11975   fi
11976   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11977   ;;
11978
11979 dgux*)
11980   version_type=linux
11981   need_lib_prefix=no
11982   need_version=no
11983   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11984   soname_spec='${libname}${release}${shared_ext}$major'
11985   shlibpath_var=LD_LIBRARY_PATH
11986   ;;
11987
11988 freebsd1*)
11989   dynamic_linker=no
11990   ;;
11991
11992 kfreebsd*-gnu)
11993   version_type=linux
11994   need_lib_prefix=no
11995   need_version=no
11996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11997   soname_spec='${libname}${release}${shared_ext}$major'
11998   shlibpath_var=LD_LIBRARY_PATH
11999   shlibpath_overrides_runpath=no
12000   hardcode_into_libs=yes
12001   dynamic_linker='GNU ld.so'
12002   ;;
12003
12004 freebsd* | dragonfly*)
12005   # DragonFly does not have aout.  When/if they implement a new
12006   # versioning mechanism, adjust this.
12007   if test -x /usr/bin/objformat; then
12008     objformat=`/usr/bin/objformat`
12009   else
12010     case $host_os in
12011     freebsd[123]*) objformat=aout ;;
12012     *) objformat=elf ;;
12013     esac
12014   fi
12015   version_type=freebsd-$objformat
12016   case $version_type in
12017     freebsd-elf*)
12018       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12019       need_version=no
12020       need_lib_prefix=no
12021       ;;
12022     freebsd-*)
12023       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12024       need_version=yes
12025       ;;
12026   esac
12027   shlibpath_var=LD_LIBRARY_PATH
12028   case $host_os in
12029   freebsd2*)
12030     shlibpath_overrides_runpath=yes
12031     ;;
12032   freebsd3.[01]* | freebsdelf3.[01]*)
12033     shlibpath_overrides_runpath=yes
12034     hardcode_into_libs=yes
12035     ;;
12036   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12037   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12038     shlibpath_overrides_runpath=no
12039     hardcode_into_libs=yes
12040     ;;
12041   freebsd*) # from 4.6 on
12042     shlibpath_overrides_runpath=yes
12043     hardcode_into_libs=yes
12044     ;;
12045   esac
12046   ;;
12047
12048 gnu*)
12049   version_type=linux
12050   need_lib_prefix=no
12051   need_version=no
12052   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12053   soname_spec='${libname}${release}${shared_ext}$major'
12054   shlibpath_var=LD_LIBRARY_PATH
12055   hardcode_into_libs=yes
12056   ;;
12057
12058 hpux9* | hpux10* | hpux11*)
12059   # Give a soname corresponding to the major version so that dld.sl refuses to
12060   # link against other versions.
12061   version_type=sunos
12062   need_lib_prefix=no
12063   need_version=no
12064   case $host_cpu in
12065   ia64*)
12066     shrext_cmds='.so'
12067     hardcode_into_libs=yes
12068     dynamic_linker="$host_os dld.so"
12069     shlibpath_var=LD_LIBRARY_PATH
12070     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12071     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12072     soname_spec='${libname}${release}${shared_ext}$major'
12073     if test "X$HPUX_IA64_MODE" = X32; then
12074       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12075     else
12076       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12077     fi
12078     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12079     ;;
12080    hppa*64*)
12081      shrext_cmds='.sl'
12082      hardcode_into_libs=yes
12083      dynamic_linker="$host_os dld.sl"
12084      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12085      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12086      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12087      soname_spec='${libname}${release}${shared_ext}$major'
12088      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12089      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12090      ;;
12091    *)
12092     shrext_cmds='.sl'
12093     dynamic_linker="$host_os dld.sl"
12094     shlibpath_var=SHLIB_PATH
12095     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12096     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12097     soname_spec='${libname}${release}${shared_ext}$major'
12098     ;;
12099   esac
12100   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12101   postinstall_cmds='chmod 555 $lib'
12102   ;;
12103
12104 interix3*)
12105   version_type=linux
12106   need_lib_prefix=no
12107   need_version=no
12108   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12109   soname_spec='${libname}${release}${shared_ext}$major'
12110   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12111   shlibpath_var=LD_LIBRARY_PATH
12112   shlibpath_overrides_runpath=no
12113   hardcode_into_libs=yes
12114   ;;
12115
12116 irix5* | irix6* | nonstopux*)
12117   case $host_os in
12118     nonstopux*) version_type=nonstopux ;;
12119     *)
12120         if test "$lt_cv_prog_gnu_ld" = yes; then
12121                 version_type=linux
12122         else
12123                 version_type=irix
12124         fi ;;
12125   esac
12126   need_lib_prefix=no
12127   need_version=no
12128   soname_spec='${libname}${release}${shared_ext}$major'
12129   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12130   case $host_os in
12131   irix5* | nonstopux*)
12132     libsuff= shlibsuff=
12133     ;;
12134   *)
12135     case $LD in # libtool.m4 will add one of these switches to LD
12136     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12137       libsuff= shlibsuff= libmagic=32-bit;;
12138     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12139       libsuff=32 shlibsuff=N32 libmagic=N32;;
12140     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12141       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12142     *) libsuff= shlibsuff= libmagic=never-match;;
12143     esac
12144     ;;
12145   esac
12146   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12147   shlibpath_overrides_runpath=no
12148   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12149   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12150   hardcode_into_libs=yes
12151   ;;
12152
12153 # No shared lib support for Linux oldld, aout, or coff.
12154 linux*oldld* | linux*aout* | linux*coff*)
12155   dynamic_linker=no
12156   ;;
12157
12158 # This must be Linux ELF.
12159 linux*)
12160   version_type=linux
12161   need_lib_prefix=no
12162   need_version=no
12163   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12164   soname_spec='${libname}${release}${shared_ext}$major'
12165   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12166   shlibpath_var=LD_LIBRARY_PATH
12167   shlibpath_overrides_runpath=no
12168   # This implies no fast_install, which is unacceptable.
12169   # Some rework will be needed to allow for fast_install
12170   # before this can be enabled.
12171   hardcode_into_libs=yes
12172
12173   # find out which ABI we are using
12174   libsuff=
12175   case "$host_cpu" in
12176   x86_64*|s390x*|powerpc64*)
12177     echo '#line 12177 "configure"' > conftest.$ac_ext
12178     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12179   (eval $ac_compile) 2>&5
12180   ac_status=$?
12181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182   (exit $ac_status); }; then
12183       case `/usr/bin/file conftest.$ac_objext` in
12184       *64-bit*)
12185         libsuff=64
12186         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12187         ;;
12188       esac
12189     fi
12190     rm -rf conftest*
12191     ;;
12192   esac
12193
12194   # Append ld.so.conf contents to the search path
12195   if test -f /etc/ld.so.conf; then
12196     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' ' '`
12197     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12198   fi
12199
12200   # We used to test for /lib/ld.so.1 and disable shared libraries on
12201   # powerpc, because MkLinux only supported shared libraries with the
12202   # GNU dynamic linker.  Since this was broken with cross compilers,
12203   # most powerpc-linux boxes support dynamic linking these days and
12204   # people can always --disable-shared, the test was removed, and we
12205   # assume the GNU/Linux dynamic linker is in use.
12206   dynamic_linker='GNU/Linux ld.so'
12207   ;;
12208
12209 knetbsd*-gnu)
12210   version_type=linux
12211   need_lib_prefix=no
12212   need_version=no
12213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12214   soname_spec='${libname}${release}${shared_ext}$major'
12215   shlibpath_var=LD_LIBRARY_PATH
12216   shlibpath_overrides_runpath=no
12217   hardcode_into_libs=yes
12218   dynamic_linker='GNU ld.so'
12219   ;;
12220
12221 netbsd*)
12222   version_type=sunos
12223   need_lib_prefix=no
12224   need_version=no
12225   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12226     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12227     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12228     dynamic_linker='NetBSD (a.out) ld.so'
12229   else
12230     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12231     soname_spec='${libname}${release}${shared_ext}$major'
12232     dynamic_linker='NetBSD ld.elf_so'
12233   fi
12234   shlibpath_var=LD_LIBRARY_PATH
12235   shlibpath_overrides_runpath=yes
12236   hardcode_into_libs=yes
12237   ;;
12238
12239 newsos6)
12240   version_type=linux
12241   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12242   shlibpath_var=LD_LIBRARY_PATH
12243   shlibpath_overrides_runpath=yes
12244   ;;
12245
12246 nto-qnx*)
12247   version_type=linux
12248   need_lib_prefix=no
12249   need_version=no
12250   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12251   soname_spec='${libname}${release}${shared_ext}$major'
12252   shlibpath_var=LD_LIBRARY_PATH
12253   shlibpath_overrides_runpath=yes
12254   ;;
12255
12256 openbsd*)
12257   version_type=sunos
12258   sys_lib_dlsearch_path_spec="/usr/lib"
12259   need_lib_prefix=no
12260   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12261   case $host_os in
12262     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12263     *)                         need_version=no  ;;
12264   esac
12265   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12266   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12267   shlibpath_var=LD_LIBRARY_PATH
12268   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12269     case $host_os in
12270       openbsd2.[89] | openbsd2.[89].*)
12271         shlibpath_overrides_runpath=no
12272         ;;
12273       *)
12274         shlibpath_overrides_runpath=yes
12275         ;;
12276       esac
12277   else
12278     shlibpath_overrides_runpath=yes
12279   fi
12280   ;;
12281
12282 os2*)
12283   libname_spec='$name'
12284   shrext_cmds=".dll"
12285   need_lib_prefix=no
12286   library_names_spec='$libname${shared_ext} $libname.a'
12287   dynamic_linker='OS/2 ld.exe'
12288   shlibpath_var=LIBPATH
12289   ;;
12290
12291 osf3* | osf4* | osf5*)
12292   version_type=osf
12293   need_lib_prefix=no
12294   need_version=no
12295   soname_spec='${libname}${release}${shared_ext}$major'
12296   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12297   shlibpath_var=LD_LIBRARY_PATH
12298   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12299   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12300   ;;
12301
12302 solaris*)
12303   version_type=linux
12304   need_lib_prefix=no
12305   need_version=no
12306   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12307   soname_spec='${libname}${release}${shared_ext}$major'
12308   shlibpath_var=LD_LIBRARY_PATH
12309   shlibpath_overrides_runpath=yes
12310   hardcode_into_libs=yes
12311   # ldd complains unless libraries are executable
12312   postinstall_cmds='chmod +x $lib'
12313   ;;
12314
12315 sunos4*)
12316   version_type=sunos
12317   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12318   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12319   shlibpath_var=LD_LIBRARY_PATH
12320   shlibpath_overrides_runpath=yes
12321   if test "$with_gnu_ld" = yes; then
12322     need_lib_prefix=no
12323   fi
12324   need_version=yes
12325   ;;
12326
12327 sysv4 | sysv4.3*)
12328   version_type=linux
12329   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330   soname_spec='${libname}${release}${shared_ext}$major'
12331   shlibpath_var=LD_LIBRARY_PATH
12332   case $host_vendor in
12333     sni)
12334       shlibpath_overrides_runpath=no
12335       need_lib_prefix=no
12336       export_dynamic_flag_spec='${wl}-Blargedynsym'
12337       runpath_var=LD_RUN_PATH
12338       ;;
12339     siemens)
12340       need_lib_prefix=no
12341       ;;
12342     motorola)
12343       need_lib_prefix=no
12344       need_version=no
12345       shlibpath_overrides_runpath=no
12346       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12347       ;;
12348   esac
12349   ;;
12350
12351 sysv4*MP*)
12352   if test -d /usr/nec ;then
12353     version_type=linux
12354     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12355     soname_spec='$libname${shared_ext}.$major'
12356     shlibpath_var=LD_LIBRARY_PATH
12357   fi
12358   ;;
12359
12360 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12361   version_type=freebsd-elf
12362   need_lib_prefix=no
12363   need_version=no
12364   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12365   soname_spec='${libname}${release}${shared_ext}$major'
12366   shlibpath_var=LD_LIBRARY_PATH
12367   hardcode_into_libs=yes
12368   if test "$with_gnu_ld" = yes; then
12369     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12370     shlibpath_overrides_runpath=no
12371   else
12372     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12373     shlibpath_overrides_runpath=yes
12374     case $host_os in
12375       sco3.2v5*)
12376         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12377         ;;
12378     esac
12379   fi
12380   sys_lib_dlsearch_path_spec='/usr/lib'
12381   ;;
12382
12383 uts4*)
12384   version_type=linux
12385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12386   soname_spec='${libname}${release}${shared_ext}$major'
12387   shlibpath_var=LD_LIBRARY_PATH
12388   ;;
12389
12390 *)
12391   dynamic_linker=no
12392   ;;
12393 esac
12394 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12395 echo "${ECHO_T}$dynamic_linker" >&6
12396 test "$dynamic_linker" = no && can_build_shared=no
12397
12398 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12399 if test "$GCC" = yes; then
12400   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12401 fi
12402
12403 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12404 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12405 hardcode_action_CXX=
12406 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12407    test -n "$runpath_var_CXX" || \
12408    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12409
12410   # We can hardcode non-existant directories.
12411   if test "$hardcode_direct_CXX" != no &&
12412      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12413      # have to relink, otherwise we might link with an installed library
12414      # when we should be linking with a yet-to-be-installed one
12415      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12416      test "$hardcode_minus_L_CXX" != no; then
12417     # Linking always hardcodes the temporary library directory.
12418     hardcode_action_CXX=relink
12419   else
12420     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12421     hardcode_action_CXX=immediate
12422   fi
12423 else
12424   # We cannot hardcode anything, or else we can only hardcode existing
12425   # directories.
12426   hardcode_action_CXX=unsupported
12427 fi
12428 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12429 echo "${ECHO_T}$hardcode_action_CXX" >&6
12430
12431 if test "$hardcode_action_CXX" = relink; then
12432   # Fast installation is not supported
12433   enable_fast_install=no
12434 elif test "$shlibpath_overrides_runpath" = yes ||
12435      test "$enable_shared" = no; then
12436   # Fast installation is not necessary
12437   enable_fast_install=needless
12438 fi
12439
12440
12441 # The else clause should only fire when bootstrapping the
12442 # libtool distribution, otherwise you forgot to ship ltmain.sh
12443 # with your package, and you will get complaints that there are
12444 # no rules to generate ltmain.sh.
12445 if test -f "$ltmain"; then
12446   # See if we are running on zsh, and set the options which allow our commands through
12447   # without removal of \ escapes.
12448   if test -n "${ZSH_VERSION+set}" ; then
12449     setopt NO_GLOB_SUBST
12450   fi
12451   # Now quote all the things that may contain metacharacters while being
12452   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12453   # variables and quote the copies for generation of the libtool script.
12454   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12455     SED SHELL STRIP \
12456     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12457     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12458     deplibs_check_method reload_flag reload_cmds need_locks \
12459     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12460     lt_cv_sys_global_symbol_to_c_name_address \
12461     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12462     old_postinstall_cmds old_postuninstall_cmds \
12463     compiler_CXX \
12464     CC_CXX \
12465     LD_CXX \
12466     lt_prog_compiler_wl_CXX \
12467     lt_prog_compiler_pic_CXX \
12468     lt_prog_compiler_static_CXX \
12469     lt_prog_compiler_no_builtin_flag_CXX \
12470     export_dynamic_flag_spec_CXX \
12471     thread_safe_flag_spec_CXX \
12472     whole_archive_flag_spec_CXX \
12473     enable_shared_with_static_runtimes_CXX \
12474     old_archive_cmds_CXX \
12475     old_archive_from_new_cmds_CXX \
12476     predep_objects_CXX \
12477     postdep_objects_CXX \
12478     predeps_CXX \
12479     postdeps_CXX \
12480     compiler_lib_search_path_CXX \
12481     archive_cmds_CXX \
12482     archive_expsym_cmds_CXX \
12483     postinstall_cmds_CXX \
12484     postuninstall_cmds_CXX \
12485     old_archive_from_expsyms_cmds_CXX \
12486     allow_undefined_flag_CXX \
12487     no_undefined_flag_CXX \
12488     export_symbols_cmds_CXX \
12489     hardcode_libdir_flag_spec_CXX \
12490     hardcode_libdir_flag_spec_ld_CXX \
12491     hardcode_libdir_separator_CXX \
12492     hardcode_automatic_CXX \
12493     module_cmds_CXX \
12494     module_expsym_cmds_CXX \
12495     lt_cv_prog_compiler_c_o_CXX \
12496     exclude_expsyms_CXX \
12497     include_expsyms_CXX; do
12498
12499     case $var in
12500     old_archive_cmds_CXX | \
12501     old_archive_from_new_cmds_CXX | \
12502     archive_cmds_CXX | \
12503     archive_expsym_cmds_CXX | \
12504     module_cmds_CXX | \
12505     module_expsym_cmds_CXX | \
12506     old_archive_from_expsyms_cmds_CXX | \
12507     export_symbols_cmds_CXX | \
12508     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12509     postinstall_cmds | postuninstall_cmds | \
12510     old_postinstall_cmds | old_postuninstall_cmds | \
12511     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12512       # Double-quote double-evaled strings.
12513       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12514       ;;
12515     *)
12516       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12517       ;;
12518     esac
12519   done
12520
12521   case $lt_echo in
12522   *'\$0 --fallback-echo"')
12523     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12524     ;;
12525   esac
12526
12527 cfgfile="$ofile"
12528
12529   cat <<__EOF__ >> "$cfgfile"
12530 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12531
12532 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12533
12534 # Shell to use when invoking shell scripts.
12535 SHELL=$lt_SHELL
12536
12537 # Whether or not to build shared libraries.
12538 build_libtool_libs=$enable_shared
12539
12540 # Whether or not to build static libraries.
12541 build_old_libs=$enable_static
12542
12543 # Whether or not to add -lc for building shared libraries.
12544 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12545
12546 # Whether or not to disallow shared libs when runtime libs are static
12547 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12548
12549 # Whether or not to optimize for fast installation.
12550 fast_install=$enable_fast_install
12551
12552 # The host system.
12553 host_alias=$host_alias
12554 host=$host
12555 host_os=$host_os
12556
12557 # The build system.
12558 build_alias=$build_alias
12559 build=$build
12560 build_os=$build_os
12561
12562 # An echo program that does not interpret backslashes.
12563 echo=$lt_echo
12564
12565 # The archiver.
12566 AR=$lt_AR
12567 AR_FLAGS=$lt_AR_FLAGS
12568
12569 # A C compiler.
12570 LTCC=$lt_LTCC
12571
12572 # LTCC compiler flags.
12573 LTCFLAGS=$lt_LTCFLAGS
12574
12575 # A language-specific compiler.
12576 CC=$lt_compiler_CXX
12577
12578 # Is the compiler the GNU C compiler?
12579 with_gcc=$GCC_CXX
12580
12581 # An ERE matcher.
12582 EGREP=$lt_EGREP
12583
12584 # The linker used to build libraries.
12585 LD=$lt_LD_CXX
12586
12587 # Whether we need hard or soft links.
12588 LN_S=$lt_LN_S
12589
12590 # A BSD-compatible nm program.
12591 NM=$lt_NM
12592
12593 # A symbol stripping program
12594 STRIP=$lt_STRIP
12595
12596 # Used to examine libraries when file_magic_cmd begins "file"
12597 MAGIC_CMD=$MAGIC_CMD
12598
12599 # Used on cygwin: DLL creation program.
12600 DLLTOOL="$DLLTOOL"
12601
12602 # Used on cygwin: object dumper.
12603 OBJDUMP="$OBJDUMP"
12604
12605 # Used on cygwin: assembler.
12606 AS="$AS"
12607
12608 # The name of the directory that contains temporary libtool files.
12609 objdir=$objdir
12610
12611 # How to create reloadable object files.
12612 reload_flag=$lt_reload_flag
12613 reload_cmds=$lt_reload_cmds
12614
12615 # How to pass a linker flag through the compiler.
12616 wl=$lt_lt_prog_compiler_wl_CXX
12617
12618 # Object file suffix (normally "o").
12619 objext="$ac_objext"
12620
12621 # Old archive suffix (normally "a").
12622 libext="$libext"
12623
12624 # Shared library suffix (normally ".so").
12625 shrext_cmds='$shrext_cmds'
12626
12627 # Executable file suffix (normally "").
12628 exeext="$exeext"
12629
12630 # Additional compiler flags for building library objects.
12631 pic_flag=$lt_lt_prog_compiler_pic_CXX
12632 pic_mode=$pic_mode
12633
12634 # What is the maximum length of a command?
12635 max_cmd_len=$lt_cv_sys_max_cmd_len
12636
12637 # Does compiler simultaneously support -c and -o options?
12638 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12639
12640 # Must we lock files when doing compilation?
12641 need_locks=$lt_need_locks
12642
12643 # Do we need the lib prefix for modules?
12644 need_lib_prefix=$need_lib_prefix
12645
12646 # Do we need a version for libraries?
12647 need_version=$need_version
12648
12649 # Whether dlopen is supported.
12650 dlopen_support=$enable_dlopen
12651
12652 # Whether dlopen of programs is supported.
12653 dlopen_self=$enable_dlopen_self
12654
12655 # Whether dlopen of statically linked programs is supported.
12656 dlopen_self_static=$enable_dlopen_self_static
12657
12658 # Compiler flag to prevent dynamic linking.
12659 link_static_flag=$lt_lt_prog_compiler_static_CXX
12660
12661 # Compiler flag to turn off builtin functions.
12662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12663
12664 # Compiler flag to allow reflexive dlopens.
12665 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12666
12667 # Compiler flag to generate shared objects directly from archives.
12668 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12669
12670 # Compiler flag to generate thread-safe objects.
12671 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12672
12673 # Library versioning type.
12674 version_type=$version_type
12675
12676 # Format of library name prefix.
12677 libname_spec=$lt_libname_spec
12678
12679 # List of archive names.  First name is the real one, the rest are links.
12680 # The last name is the one that the linker finds with -lNAME.
12681 library_names_spec=$lt_library_names_spec
12682
12683 # The coded name of the library, if different from the real name.
12684 soname_spec=$lt_soname_spec
12685
12686 # Commands used to build and install an old-style archive.
12687 RANLIB=$lt_RANLIB
12688 old_archive_cmds=$lt_old_archive_cmds_CXX
12689 old_postinstall_cmds=$lt_old_postinstall_cmds
12690 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12691
12692 # Create an old-style archive from a shared archive.
12693 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12694
12695 # Create a temporary old-style archive to link instead of a shared archive.
12696 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12697
12698 # Commands used to build and install a shared archive.
12699 archive_cmds=$lt_archive_cmds_CXX
12700 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12701 postinstall_cmds=$lt_postinstall_cmds
12702 postuninstall_cmds=$lt_postuninstall_cmds
12703
12704 # Commands used to build a loadable module (assumed same as above if empty)
12705 module_cmds=$lt_module_cmds_CXX
12706 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12707
12708 # Commands to strip libraries.
12709 old_striplib=$lt_old_striplib
12710 striplib=$lt_striplib
12711
12712 # Dependencies to place before the objects being linked to create a
12713 # shared library.
12714 predep_objects=$lt_predep_objects_CXX
12715
12716 # Dependencies to place after the objects being linked to create a
12717 # shared library.
12718 postdep_objects=$lt_postdep_objects_CXX
12719
12720 # Dependencies to place before the objects being linked to create a
12721 # shared library.
12722 predeps=$lt_predeps_CXX
12723
12724 # Dependencies to place after the objects being linked to create a
12725 # shared library.
12726 postdeps=$lt_postdeps_CXX
12727
12728 # The library search path used internally by the compiler when linking
12729 # a shared library.
12730 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12731
12732 # Method to check whether dependent libraries are shared objects.
12733 deplibs_check_method=$lt_deplibs_check_method
12734
12735 # Command to use when deplibs_check_method == file_magic.
12736 file_magic_cmd=$lt_file_magic_cmd
12737
12738 # Flag that allows shared libraries with undefined symbols to be built.
12739 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12740
12741 # Flag that forces no undefined symbols.
12742 no_undefined_flag=$lt_no_undefined_flag_CXX
12743
12744 # Commands used to finish a libtool library installation in a directory.
12745 finish_cmds=$lt_finish_cmds
12746
12747 # Same as above, but a single script fragment to be evaled but not shown.
12748 finish_eval=$lt_finish_eval
12749
12750 # Take the output of nm and produce a listing of raw symbols and C names.
12751 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12752
12753 # Transform the output of nm in a proper C declaration
12754 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12755
12756 # Transform the output of nm in a C name address pair
12757 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12758
12759 # This is the shared library runtime path variable.
12760 runpath_var=$runpath_var
12761
12762 # This is the shared library path variable.
12763 shlibpath_var=$shlibpath_var
12764
12765 # Is shlibpath searched before the hard-coded library search path?
12766 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12767
12768 # How to hardcode a shared library path into an executable.
12769 hardcode_action=$hardcode_action_CXX
12770
12771 # Whether we should hardcode library paths into libraries.
12772 hardcode_into_libs=$hardcode_into_libs
12773
12774 # Flag to hardcode \$libdir into a binary during linking.
12775 # This must work even if \$libdir does not exist.
12776 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12777
12778 # If ld is used when linking, flag to hardcode \$libdir into
12779 # a binary during linking. This must work even if \$libdir does
12780 # not exist.
12781 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12782
12783 # Whether we need a single -rpath flag with a separated argument.
12784 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12785
12786 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12787 # resulting binary.
12788 hardcode_direct=$hardcode_direct_CXX
12789
12790 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12791 # resulting binary.
12792 hardcode_minus_L=$hardcode_minus_L_CXX
12793
12794 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12795 # the resulting binary.
12796 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12797
12798 # Set to yes if building a shared library automatically hardcodes DIR into the library
12799 # and all subsequent libraries and executables linked against it.
12800 hardcode_automatic=$hardcode_automatic_CXX
12801
12802 # Variables whose values should be saved in libtool wrapper scripts and
12803 # restored at relink time.
12804 variables_saved_for_relink="$variables_saved_for_relink"
12805
12806 # Whether libtool must link a program against all its dependency libraries.
12807 link_all_deplibs=$link_all_deplibs_CXX
12808
12809 # Compile-time system search path for libraries
12810 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12811
12812 # Run-time system search path for libraries
12813 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12814
12815 # Fix the shell variable \$srcfile for the compiler.
12816 fix_srcfile_path="$fix_srcfile_path_CXX"
12817
12818 # Set to yes if exported symbols are required.
12819 always_export_symbols=$always_export_symbols_CXX
12820
12821 # The commands to list exported symbols.
12822 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12823
12824 # The commands to extract the exported symbol list from a shared archive.
12825 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12826
12827 # Symbols that should not be listed in the preloaded symbols.
12828 exclude_expsyms=$lt_exclude_expsyms_CXX
12829
12830 # Symbols that must always be exported.
12831 include_expsyms=$lt_include_expsyms_CXX
12832
12833 # ### END LIBTOOL TAG CONFIG: $tagname
12834
12835 __EOF__
12836
12837
12838 else
12839   # If there is no Makefile yet, we rely on a make rule to execute
12840   # `config.status --recheck' to rerun these tests and create the
12841   # libtool script then.
12842   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12843   if test -f "$ltmain_in"; then
12844     test -f Makefile && make "$ltmain"
12845   fi
12846 fi
12847
12848
12849 ac_ext=c
12850 ac_cpp='$CPP $CPPFLAGS'
12851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12854
12855 CC=$lt_save_CC
12856 LDCXX=$LD
12857 LD=$lt_save_LD
12858 GCC=$lt_save_GCC
12859 with_gnu_ldcxx=$with_gnu_ld
12860 with_gnu_ld=$lt_save_with_gnu_ld
12861 lt_cv_path_LDCXX=$lt_cv_path_LD
12862 lt_cv_path_LD=$lt_save_path_LD
12863 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12864 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12865
12866         else
12867           tagname=""
12868         fi
12869         ;;
12870
12871       F77)
12872         if test -n "$F77" && test "X$F77" != "Xno"; then
12873
12874 ac_ext=f
12875 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12876 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12877 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12878
12879
12880 archive_cmds_need_lc_F77=no
12881 allow_undefined_flag_F77=
12882 always_export_symbols_F77=no
12883 archive_expsym_cmds_F77=
12884 export_dynamic_flag_spec_F77=
12885 hardcode_direct_F77=no
12886 hardcode_libdir_flag_spec_F77=
12887 hardcode_libdir_flag_spec_ld_F77=
12888 hardcode_libdir_separator_F77=
12889 hardcode_minus_L_F77=no
12890 hardcode_automatic_F77=no
12891 module_cmds_F77=
12892 module_expsym_cmds_F77=
12893 link_all_deplibs_F77=unknown
12894 old_archive_cmds_F77=$old_archive_cmds
12895 no_undefined_flag_F77=
12896 whole_archive_flag_spec_F77=
12897 enable_shared_with_static_runtimes_F77=no
12898
12899 # Source file extension for f77 test sources.
12900 ac_ext=f
12901
12902 # Object file extension for compiled f77 test sources.
12903 objext=o
12904 objext_F77=$objext
12905
12906 # Code to be used in simple compile tests
12907 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12908
12909 # Code to be used in simple link tests
12910 lt_simple_link_test_code="      program t\n      end\n"
12911
12912 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12913
12914 # If no C compiler was specified, use CC.
12915 LTCC=${LTCC-"$CC"}
12916
12917 # If no C compiler flags were specified, use CFLAGS.
12918 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12919
12920 # Allow CC to be a program name with arguments.
12921 compiler=$CC
12922
12923
12924 # save warnings/boilerplate of simple test code
12925 ac_outfile=conftest.$ac_objext
12926 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12927 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12928 _lt_compiler_boilerplate=`cat conftest.err`
12929 $rm conftest*
12930
12931 ac_outfile=conftest.$ac_objext
12932 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12933 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12934 _lt_linker_boilerplate=`cat conftest.err`
12935 $rm conftest*
12936
12937
12938 # Allow CC to be a program name with arguments.
12939 lt_save_CC="$CC"
12940 CC=${F77-"f77"}
12941 compiler=$CC
12942 compiler_F77=$CC
12943 for cc_temp in $compiler""; do
12944   case $cc_temp in
12945     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12946     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12947     \-*) ;;
12948     *) break;;
12949   esac
12950 done
12951 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12952
12953
12954 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12955 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12956 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12957 echo "${ECHO_T}$can_build_shared" >&6
12958
12959 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12960 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12961 test "$can_build_shared" = "no" && enable_shared=no
12962
12963 # On AIX, shared libraries and static libraries use the same namespace, and
12964 # are all built from PIC.
12965 case $host_os in
12966 aix3*)
12967   test "$enable_shared" = yes && enable_static=no
12968   if test -n "$RANLIB"; then
12969     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12970     postinstall_cmds='$RANLIB $lib'
12971   fi
12972   ;;
12973 aix4* | aix5*)
12974   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12975     test "$enable_shared" = yes && enable_static=no
12976   fi
12977   ;;
12978 esac
12979 echo "$as_me:$LINENO: result: $enable_shared" >&5
12980 echo "${ECHO_T}$enable_shared" >&6
12981
12982 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12983 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12984 # Make sure either enable_shared or enable_static is yes.
12985 test "$enable_shared" = yes || enable_static=yes
12986 echo "$as_me:$LINENO: result: $enable_static" >&5
12987 echo "${ECHO_T}$enable_static" >&6
12988
12989 GCC_F77="$G77"
12990 LD_F77="$LD"
12991
12992 lt_prog_compiler_wl_F77=
12993 lt_prog_compiler_pic_F77=
12994 lt_prog_compiler_static_F77=
12995
12996 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12997 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12998
12999   if test "$GCC" = yes; then
13000     lt_prog_compiler_wl_F77='-Wl,'
13001     lt_prog_compiler_static_F77='-static'
13002
13003     case $host_os in
13004       aix*)
13005       # All AIX code is PIC.
13006       if test "$host_cpu" = ia64; then
13007         # AIX 5 now supports IA64 processor
13008         lt_prog_compiler_static_F77='-Bstatic'
13009       fi
13010       ;;
13011
13012     amigaos*)
13013       # FIXME: we need at least 68020 code to build shared libraries, but
13014       # adding the `-m68020' flag to GCC prevents building anything better,
13015       # like `-m68040'.
13016       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13017       ;;
13018
13019     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13020       # PIC is the default for these OSes.
13021       ;;
13022
13023     mingw* | pw32* | os2*)
13024       # This hack is so that the source file can tell whether it is being
13025       # built for inclusion in a dll (and should export symbols for example).
13026       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13027       ;;
13028
13029     darwin* | rhapsody*)
13030       # PIC is the default on this platform
13031       # Common symbols not allowed in MH_DYLIB files
13032       lt_prog_compiler_pic_F77='-fno-common'
13033       ;;
13034
13035     interix3*)
13036       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13037       # Instead, we relocate shared libraries at runtime.
13038       ;;
13039
13040     msdosdjgpp*)
13041       # Just because we use GCC doesn't mean we suddenly get shared libraries
13042       # on systems that don't support them.
13043       lt_prog_compiler_can_build_shared_F77=no
13044       enable_shared=no
13045       ;;
13046
13047     sysv4*MP*)
13048       if test -d /usr/nec; then
13049         lt_prog_compiler_pic_F77=-Kconform_pic
13050       fi
13051       ;;
13052
13053     hpux*)
13054       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13055       # not for PA HP-UX.
13056       case $host_cpu in
13057       hppa*64*|ia64*)
13058         # +Z the default
13059         ;;
13060       *)
13061         lt_prog_compiler_pic_F77='-fPIC'
13062         ;;
13063       esac
13064       ;;
13065
13066     *)
13067       lt_prog_compiler_pic_F77='-fPIC'
13068       ;;
13069     esac
13070   else
13071     # PORTME Check for flag to pass linker flags through the system compiler.
13072     case $host_os in
13073     aix*)
13074       lt_prog_compiler_wl_F77='-Wl,'
13075       if test "$host_cpu" = ia64; then
13076         # AIX 5 now supports IA64 processor
13077         lt_prog_compiler_static_F77='-Bstatic'
13078       else
13079         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13080       fi
13081       ;;
13082       darwin*)
13083         # PIC is the default on this platform
13084         # Common symbols not allowed in MH_DYLIB files
13085        case $cc_basename in
13086          xlc*)
13087          lt_prog_compiler_pic_F77='-qnocommon'
13088          lt_prog_compiler_wl_F77='-Wl,'
13089          ;;
13090        esac
13091        ;;
13092
13093     mingw* | pw32* | os2*)
13094       # This hack is so that the source file can tell whether it is being
13095       # built for inclusion in a dll (and should export symbols for example).
13096       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13097       ;;
13098
13099     hpux9* | hpux10* | hpux11*)
13100       lt_prog_compiler_wl_F77='-Wl,'
13101       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13102       # not for PA HP-UX.
13103       case $host_cpu in
13104       hppa*64*|ia64*)
13105         # +Z the default
13106         ;;
13107       *)
13108         lt_prog_compiler_pic_F77='+Z'
13109         ;;
13110       esac
13111       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13112       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13113       ;;
13114
13115     irix5* | irix6* | nonstopux*)
13116       lt_prog_compiler_wl_F77='-Wl,'
13117       # PIC (with -KPIC) is the default.
13118       lt_prog_compiler_static_F77='-non_shared'
13119       ;;
13120
13121     newsos6)
13122       lt_prog_compiler_pic_F77='-KPIC'
13123       lt_prog_compiler_static_F77='-Bstatic'
13124       ;;
13125
13126     linux*)
13127       case $cc_basename in
13128       icc* | ecc*)
13129         lt_prog_compiler_wl_F77='-Wl,'
13130         lt_prog_compiler_pic_F77='-KPIC'
13131         lt_prog_compiler_static_F77='-static'
13132         ;;
13133       pgcc* | pgf77* | pgf90* | pgf95*)
13134         # Portland Group compilers (*not* the Pentium gcc compiler,
13135         # which looks to be a dead project)
13136         lt_prog_compiler_wl_F77='-Wl,'
13137         lt_prog_compiler_pic_F77='-fpic'
13138         lt_prog_compiler_static_F77='-Bstatic'
13139         ;;
13140       ccc*)
13141         lt_prog_compiler_wl_F77='-Wl,'
13142         # All Alpha code is PIC.
13143         lt_prog_compiler_static_F77='-non_shared'
13144         ;;
13145       esac
13146       ;;
13147
13148     osf3* | osf4* | osf5*)
13149       lt_prog_compiler_wl_F77='-Wl,'
13150       # All OSF/1 code is PIC.
13151       lt_prog_compiler_static_F77='-non_shared'
13152       ;;
13153
13154     solaris*)
13155       lt_prog_compiler_pic_F77='-KPIC'
13156       lt_prog_compiler_static_F77='-Bstatic'
13157       case $cc_basename in
13158       f77* | f90* | f95*)
13159         lt_prog_compiler_wl_F77='-Qoption ld ';;
13160       *)
13161         lt_prog_compiler_wl_F77='-Wl,';;
13162       esac
13163       ;;
13164
13165     sunos4*)
13166       lt_prog_compiler_wl_F77='-Qoption ld '
13167       lt_prog_compiler_pic_F77='-PIC'
13168       lt_prog_compiler_static_F77='-Bstatic'
13169       ;;
13170
13171     sysv4 | sysv4.2uw2* | sysv4.3*)
13172       lt_prog_compiler_wl_F77='-Wl,'
13173       lt_prog_compiler_pic_F77='-KPIC'
13174       lt_prog_compiler_static_F77='-Bstatic'
13175       ;;
13176
13177     sysv4*MP*)
13178       if test -d /usr/nec ;then
13179         lt_prog_compiler_pic_F77='-Kconform_pic'
13180         lt_prog_compiler_static_F77='-Bstatic'
13181       fi
13182       ;;
13183
13184     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13185       lt_prog_compiler_wl_F77='-Wl,'
13186       lt_prog_compiler_pic_F77='-KPIC'
13187       lt_prog_compiler_static_F77='-Bstatic'
13188       ;;
13189
13190     unicos*)
13191       lt_prog_compiler_wl_F77='-Wl,'
13192       lt_prog_compiler_can_build_shared_F77=no
13193       ;;
13194
13195     uts4*)
13196       lt_prog_compiler_pic_F77='-pic'
13197       lt_prog_compiler_static_F77='-Bstatic'
13198       ;;
13199
13200     *)
13201       lt_prog_compiler_can_build_shared_F77=no
13202       ;;
13203     esac
13204   fi
13205
13206 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13207 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13208
13209 #
13210 # Check to make sure the PIC flag actually works.
13211 #
13212 if test -n "$lt_prog_compiler_pic_F77"; then
13213
13214 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13215 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13216 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13217   echo $ECHO_N "(cached) $ECHO_C" >&6
13218 else
13219   lt_prog_compiler_pic_works_F77=no
13220   ac_outfile=conftest.$ac_objext
13221    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13222    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13223    # Insert the option either (1) after the last *FLAGS variable, or
13224    # (2) before a word containing "conftest.", or (3) at the end.
13225    # Note that $ac_compile itself does not contain backslashes and begins
13226    # with a dollar sign (not a hyphen), so the echo should work correctly.
13227    # The option is referenced via a variable to avoid confusing sed.
13228    lt_compile=`echo "$ac_compile" | $SED \
13229    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13230    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13231    -e 's:$: $lt_compiler_flag:'`
13232    (eval echo "\"\$as_me:13232: $lt_compile\"" >&5)
13233    (eval "$lt_compile" 2>conftest.err)
13234    ac_status=$?
13235    cat conftest.err >&5
13236    echo "$as_me:13236: \$? = $ac_status" >&5
13237    if (exit $ac_status) && test -s "$ac_outfile"; then
13238      # The compiler can only warn and ignore the option if not recognized
13239      # So say no if there are warnings other than the usual output.
13240      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13241      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13242      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13243        lt_prog_compiler_pic_works_F77=yes
13244      fi
13245    fi
13246    $rm conftest*
13247
13248 fi
13249 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13250 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13251
13252 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13253     case $lt_prog_compiler_pic_F77 in
13254      "" | " "*) ;;
13255      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13256      esac
13257 else
13258     lt_prog_compiler_pic_F77=
13259      lt_prog_compiler_can_build_shared_F77=no
13260 fi
13261
13262 fi
13263 case $host_os in
13264   # For platforms which do not support PIC, -DPIC is meaningless:
13265   *djgpp*)
13266     lt_prog_compiler_pic_F77=
13267     ;;
13268   *)
13269     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13270     ;;
13271 esac
13272
13273 #
13274 # Check to make sure the static flag actually works.
13275 #
13276 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13277 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13278 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13279 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13280   echo $ECHO_N "(cached) $ECHO_C" >&6
13281 else
13282   lt_prog_compiler_static_works_F77=no
13283    save_LDFLAGS="$LDFLAGS"
13284    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13285    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13286    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13287      # The linker can only warn and ignore the option if not recognized
13288      # So say no if there are warnings
13289      if test -s conftest.err; then
13290        # Append any errors to the config.log.
13291        cat conftest.err 1>&5
13292        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13293        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13294        if diff conftest.exp conftest.er2 >/dev/null; then
13295          lt_prog_compiler_static_works_F77=yes
13296        fi
13297      else
13298        lt_prog_compiler_static_works_F77=yes
13299      fi
13300    fi
13301    $rm conftest*
13302    LDFLAGS="$save_LDFLAGS"
13303
13304 fi
13305 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13306 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13307
13308 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13309     :
13310 else
13311     lt_prog_compiler_static_F77=
13312 fi
13313
13314
13315 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13316 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13317 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13318   echo $ECHO_N "(cached) $ECHO_C" >&6
13319 else
13320   lt_cv_prog_compiler_c_o_F77=no
13321    $rm -r conftest 2>/dev/null
13322    mkdir conftest
13323    cd conftest
13324    mkdir out
13325    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13326
13327    lt_compiler_flag="-o out/conftest2.$ac_objext"
13328    # Insert the option either (1) after the last *FLAGS variable, or
13329    # (2) before a word containing "conftest.", or (3) at the end.
13330    # Note that $ac_compile itself does not contain backslashes and begins
13331    # with a dollar sign (not a hyphen), so the echo should work correctly.
13332    lt_compile=`echo "$ac_compile" | $SED \
13333    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13334    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13335    -e 's:$: $lt_compiler_flag:'`
13336    (eval echo "\"\$as_me:13336: $lt_compile\"" >&5)
13337    (eval "$lt_compile" 2>out/conftest.err)
13338    ac_status=$?
13339    cat out/conftest.err >&5
13340    echo "$as_me:13340: \$? = $ac_status" >&5
13341    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13342    then
13343      # The compiler can only warn and ignore the option if not recognized
13344      # So say no if there are warnings
13345      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13346      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13347      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13348        lt_cv_prog_compiler_c_o_F77=yes
13349      fi
13350    fi
13351    chmod u+w . 2>&5
13352    $rm conftest*
13353    # SGI C++ compiler will create directory out/ii_files/ for
13354    # template instantiation
13355    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13356    $rm out/* && rmdir out
13357    cd ..
13358    rmdir conftest
13359    $rm conftest*
13360
13361 fi
13362 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13363 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13364
13365
13366 hard_links="nottested"
13367 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13368   # do not overwrite the value of need_locks provided by the user
13369   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13370 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13371   hard_links=yes
13372   $rm conftest*
13373   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13374   touch conftest.a
13375   ln conftest.a conftest.b 2>&5 || hard_links=no
13376   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13377   echo "$as_me:$LINENO: result: $hard_links" >&5
13378 echo "${ECHO_T}$hard_links" >&6
13379   if test "$hard_links" = no; then
13380     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13381 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13382     need_locks=warn
13383   fi
13384 else
13385   need_locks=no
13386 fi
13387
13388 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13389 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13390
13391   runpath_var=
13392   allow_undefined_flag_F77=
13393   enable_shared_with_static_runtimes_F77=no
13394   archive_cmds_F77=
13395   archive_expsym_cmds_F77=
13396   old_archive_From_new_cmds_F77=
13397   old_archive_from_expsyms_cmds_F77=
13398   export_dynamic_flag_spec_F77=
13399   whole_archive_flag_spec_F77=
13400   thread_safe_flag_spec_F77=
13401   hardcode_libdir_flag_spec_F77=
13402   hardcode_libdir_flag_spec_ld_F77=
13403   hardcode_libdir_separator_F77=
13404   hardcode_direct_F77=no
13405   hardcode_minus_L_F77=no
13406   hardcode_shlibpath_var_F77=unsupported
13407   link_all_deplibs_F77=unknown
13408   hardcode_automatic_F77=no
13409   module_cmds_F77=
13410   module_expsym_cmds_F77=
13411   always_export_symbols_F77=no
13412   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13413   # include_expsyms should be a list of space-separated symbols to be *always*
13414   # included in the symbol list
13415   include_expsyms_F77=
13416   # exclude_expsyms can be an extended regexp of symbols to exclude
13417   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13418   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13419   # as well as any symbol that contains `d'.
13420   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13421   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13422   # platforms (ab)use it in PIC code, but their linkers get confused if
13423   # the symbol is explicitly referenced.  Since portable code cannot
13424   # rely on this symbol name, it's probably fine to never include it in
13425   # preloaded symbol tables.
13426   extract_expsyms_cmds=
13427   # Just being paranoid about ensuring that cc_basename is set.
13428   for cc_temp in $compiler""; do
13429   case $cc_temp in
13430     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13431     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13432     \-*) ;;
13433     *) break;;
13434   esac
13435 done
13436 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13437
13438   case $host_os in
13439   cygwin* | mingw* | pw32*)
13440     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13441     # When not using gcc, we currently assume that we are using
13442     # Microsoft Visual C++.
13443     if test "$GCC" != yes; then
13444       with_gnu_ld=no
13445     fi
13446     ;;
13447   interix*)
13448     # we just hope/assume this is gcc and not c89 (= MSVC++)
13449     with_gnu_ld=yes
13450     ;;
13451   openbsd*)
13452     with_gnu_ld=no
13453     ;;
13454   esac
13455
13456   ld_shlibs_F77=yes
13457   if test "$with_gnu_ld" = yes; then
13458     # If archive_cmds runs LD, not CC, wlarc should be empty
13459     wlarc='${wl}'
13460
13461     # Set some defaults for GNU ld with shared library support. These
13462     # are reset later if shared libraries are not supported. Putting them
13463     # here allows them to be overridden if necessary.
13464     runpath_var=LD_RUN_PATH
13465     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13466     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13467     # ancient GNU ld didn't support --whole-archive et. al.
13468     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13469         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13470       else
13471         whole_archive_flag_spec_F77=
13472     fi
13473     supports_anon_versioning=no
13474     case `$LD -v 2>/dev/null` in
13475       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13476       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13477       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13478       *\ 2.11.*) ;; # other 2.11 versions
13479       *) supports_anon_versioning=yes ;;
13480     esac
13481
13482     # See if GNU ld supports shared libraries.
13483     case $host_os in
13484     aix3* | aix4* | aix5*)
13485       # On AIX/PPC, the GNU linker is very broken
13486       if test "$host_cpu" != ia64; then
13487         ld_shlibs_F77=no
13488         cat <<EOF 1>&2
13489
13490 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13491 *** to be unable to reliably create shared libraries on AIX.
13492 *** Therefore, libtool is disabling shared libraries support.  If you
13493 *** really care for shared libraries, you may want to modify your PATH
13494 *** so that a non-GNU linker is found, and then restart.
13495
13496 EOF
13497       fi
13498       ;;
13499
13500     amigaos*)
13501       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)'
13502       hardcode_libdir_flag_spec_F77='-L$libdir'
13503       hardcode_minus_L_F77=yes
13504
13505       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13506       # that the semantics of dynamic libraries on AmigaOS, at least up
13507       # to version 4, is to share data among multiple programs linked
13508       # with the same dynamic library.  Since this doesn't match the
13509       # behavior of shared libraries on other platforms, we can't use
13510       # them.
13511       ld_shlibs_F77=no
13512       ;;
13513
13514     beos*)
13515       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13516         allow_undefined_flag_F77=unsupported
13517         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13518         # support --undefined.  This deserves some investigation.  FIXME
13519         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13520       else
13521         ld_shlibs_F77=no
13522       fi
13523       ;;
13524
13525     cygwin* | mingw* | pw32*)
13526       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13527       # as there is no search path for DLLs.
13528       hardcode_libdir_flag_spec_F77='-L$libdir'
13529       allow_undefined_flag_F77=unsupported
13530       always_export_symbols_F77=no
13531       enable_shared_with_static_runtimes_F77=yes
13532       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13533
13534       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13535         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13536         # If the export-symbols file already is a .def file (1st line
13537         # is EXPORTS), use it as is; otherwise, prepend...
13538         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13539           cp $export_symbols $output_objdir/$soname.def;
13540         else
13541           echo EXPORTS > $output_objdir/$soname.def;
13542           cat $export_symbols >> $output_objdir/$soname.def;
13543         fi~
13544         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13545       else
13546         ld_shlibs_F77=no
13547       fi
13548       ;;
13549
13550     interix3*)
13551       hardcode_direct_F77=no
13552       hardcode_shlibpath_var_F77=no
13553       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13554       export_dynamic_flag_spec_F77='${wl}-E'
13555       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13556       # Instead, shared libraries are loaded at an image base (0x10000000 by
13557       # default) and relocated if they conflict, which is a slow very memory
13558       # consuming and fragmenting process.  To avoid this, we pick a random,
13559       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13560       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13561       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'
13562       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'
13563       ;;
13564
13565     linux*)
13566       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13567         tmp_addflag=
13568         case $cc_basename,$host_cpu in
13569         pgcc*)                          # Portland Group C compiler
13570           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'
13571           tmp_addflag=' $pic_flag'
13572           ;;
13573         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13574           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'
13575           tmp_addflag=' $pic_flag -Mnomain' ;;
13576         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13577           tmp_addflag=' -i_dynamic' ;;
13578         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13579           tmp_addflag=' -i_dynamic -nofor_main' ;;
13580         ifc* | ifort*)                  # Intel Fortran compiler
13581           tmp_addflag=' -nofor_main' ;;
13582         esac
13583         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13584
13585         if test $supports_anon_versioning = yes; then
13586           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13587   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13588   $echo "local: *; };" >> $output_objdir/$libname.ver~
13589           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13590         fi
13591       else
13592         ld_shlibs_F77=no
13593       fi
13594       ;;
13595
13596     netbsd*)
13597       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13598         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13599         wlarc=
13600       else
13601         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13602         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13603       fi
13604       ;;
13605
13606     solaris*)
13607       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13608         ld_shlibs_F77=no
13609         cat <<EOF 1>&2
13610
13611 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13612 *** create shared libraries on Solaris systems.  Therefore, libtool
13613 *** is disabling shared libraries support.  We urge you to upgrade GNU
13614 *** binutils to release 2.9.1 or newer.  Another option is to modify
13615 *** your PATH or compiler configuration so that the native linker is
13616 *** used, and then restart.
13617
13618 EOF
13619       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13620         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13621         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13622       else
13623         ld_shlibs_F77=no
13624       fi
13625       ;;
13626
13627     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13628       case `$LD -v 2>&1` in
13629         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13630         ld_shlibs_F77=no
13631         cat <<_LT_EOF 1>&2
13632
13633 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13634 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13635 *** is disabling shared libraries support.  We urge you to upgrade GNU
13636 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13637 *** your PATH or compiler configuration so that the native linker is
13638 *** used, and then restart.
13639
13640 _LT_EOF
13641         ;;
13642         *)
13643           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13644             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13645             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13646             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13647           else
13648             ld_shlibs_F77=no
13649           fi
13650         ;;
13651       esac
13652       ;;
13653
13654     sunos4*)
13655       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13656       wlarc=
13657       hardcode_direct_F77=yes
13658       hardcode_shlibpath_var_F77=no
13659       ;;
13660
13661     *)
13662       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13663         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13664         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13665       else
13666         ld_shlibs_F77=no
13667       fi
13668       ;;
13669     esac
13670
13671     if test "$ld_shlibs_F77" = no; then
13672       runpath_var=
13673       hardcode_libdir_flag_spec_F77=
13674       export_dynamic_flag_spec_F77=
13675       whole_archive_flag_spec_F77=
13676     fi
13677   else
13678     # PORTME fill in a description of your system's linker (not GNU ld)
13679     case $host_os in
13680     aix3*)
13681       allow_undefined_flag_F77=unsupported
13682       always_export_symbols_F77=yes
13683       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'
13684       # Note: this linker hardcodes the directories in LIBPATH if there
13685       # are no directories specified by -L.
13686       hardcode_minus_L_F77=yes
13687       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13688         # Neither direct hardcoding nor static linking is supported with a
13689         # broken collect2.
13690         hardcode_direct_F77=unsupported
13691       fi
13692       ;;
13693
13694     aix4* | aix5*)
13695       if test "$host_cpu" = ia64; then
13696         # On IA64, the linker does run time linking by default, so we don't
13697         # have to do anything special.
13698         aix_use_runtimelinking=no
13699         exp_sym_flag='-Bexport'
13700         no_entry_flag=""
13701       else
13702         # If we're using GNU nm, then we don't want the "-C" option.
13703         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13704         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13705           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'
13706         else
13707           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'
13708         fi
13709         aix_use_runtimelinking=no
13710
13711         # Test if we are trying to use run time linking or normal
13712         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13713         # need to do runtime linking.
13714         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13715           for ld_flag in $LDFLAGS; do
13716           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13717             aix_use_runtimelinking=yes
13718             break
13719           fi
13720           done
13721           ;;
13722         esac
13723
13724         exp_sym_flag='-bexport'
13725         no_entry_flag='-bnoentry'
13726       fi
13727
13728       # When large executables or shared objects are built, AIX ld can
13729       # have problems creating the table of contents.  If linking a library
13730       # or program results in "error TOC overflow" add -mminimal-toc to
13731       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13732       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13733
13734       archive_cmds_F77=''
13735       hardcode_direct_F77=yes
13736       hardcode_libdir_separator_F77=':'
13737       link_all_deplibs_F77=yes
13738
13739       if test "$GCC" = yes; then
13740         case $host_os in aix4.[012]|aix4.[012].*)
13741         # We only want to do this on AIX 4.2 and lower, the check
13742         # below for broken collect2 doesn't work under 4.3+
13743           collect2name=`${CC} -print-prog-name=collect2`
13744           if test -f "$collect2name" && \
13745            strings "$collect2name" | grep resolve_lib_name >/dev/null
13746           then
13747           # We have reworked collect2
13748           hardcode_direct_F77=yes
13749           else
13750           # We have old collect2
13751           hardcode_direct_F77=unsupported
13752           # It fails to find uninstalled libraries when the uninstalled
13753           # path is not listed in the libpath.  Setting hardcode_minus_L
13754           # to unsupported forces relinking
13755           hardcode_minus_L_F77=yes
13756           hardcode_libdir_flag_spec_F77='-L$libdir'
13757           hardcode_libdir_separator_F77=
13758           fi
13759           ;;
13760         esac
13761         shared_flag='-shared'
13762         if test "$aix_use_runtimelinking" = yes; then
13763           shared_flag="$shared_flag "'${wl}-G'
13764         fi
13765       else
13766         # not using gcc
13767         if test "$host_cpu" = ia64; then
13768         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13769         # chokes on -Wl,-G. The following line is correct:
13770           shared_flag='-G'
13771         else
13772           if test "$aix_use_runtimelinking" = yes; then
13773             shared_flag='${wl}-G'
13774           else
13775             shared_flag='${wl}-bM:SRE'
13776           fi
13777         fi
13778       fi
13779
13780       # It seems that -bexpall does not export symbols beginning with
13781       # underscore (_), so it is better to generate a list of symbols to export.
13782       always_export_symbols_F77=yes
13783       if test "$aix_use_runtimelinking" = yes; then
13784         # Warning - without using the other runtime loading flags (-brtl),
13785         # -berok will link without error, but may produce a broken library.
13786         allow_undefined_flag_F77='-berok'
13787        # Determine the default libpath from the value encoded in an empty executable.
13788        cat >conftest.$ac_ext <<_ACEOF
13789       program main
13790
13791       end
13792 _ACEOF
13793 rm -f conftest.$ac_objext conftest$ac_exeext
13794 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13795   (eval $ac_link) 2>conftest.er1
13796   ac_status=$?
13797   grep -v '^ *+' conftest.er1 >conftest.err
13798   rm -f conftest.er1
13799   cat conftest.err >&5
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); } &&
13802          { ac_try='test -z "$ac_f77_werror_flag"
13803                          || test ! -s conftest.err'
13804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13805   (eval $ac_try) 2>&5
13806   ac_status=$?
13807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13808   (exit $ac_status); }; } &&
13809          { ac_try='test -s conftest$ac_exeext'
13810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13811   (eval $ac_try) 2>&5
13812   ac_status=$?
13813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814   (exit $ac_status); }; }; then
13815
13816 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13817 }'`
13818 # Check for a 64-bit object if we didn't find anything.
13819 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; }
13820 }'`; fi
13821 else
13822   echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13824
13825 fi
13826 rm -f conftest.err conftest.$ac_objext \
13827       conftest$ac_exeext conftest.$ac_ext
13828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13829
13830        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13831         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"
13832        else
13833         if test "$host_cpu" = ia64; then
13834           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13835           allow_undefined_flag_F77="-z nodefs"
13836           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"
13837         else
13838          # Determine the default libpath from the value encoded in an empty executable.
13839          cat >conftest.$ac_ext <<_ACEOF
13840       program main
13841
13842       end
13843 _ACEOF
13844 rm -f conftest.$ac_objext conftest$ac_exeext
13845 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13846   (eval $ac_link) 2>conftest.er1
13847   ac_status=$?
13848   grep -v '^ *+' conftest.er1 >conftest.err
13849   rm -f conftest.er1
13850   cat conftest.err >&5
13851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13852   (exit $ac_status); } &&
13853          { ac_try='test -z "$ac_f77_werror_flag"
13854                          || test ! -s conftest.err'
13855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13856   (eval $ac_try) 2>&5
13857   ac_status=$?
13858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13859   (exit $ac_status); }; } &&
13860          { ac_try='test -s conftest$ac_exeext'
13861   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13862   (eval $ac_try) 2>&5
13863   ac_status=$?
13864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13865   (exit $ac_status); }; }; then
13866
13867 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13868 }'`
13869 # Check for a 64-bit object if we didn't find anything.
13870 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; }
13871 }'`; fi
13872 else
13873   echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 fi
13877 rm -f conftest.err conftest.$ac_objext \
13878       conftest$ac_exeext conftest.$ac_ext
13879 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13880
13881          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13882           # Warning - without using the other run time loading flags,
13883           # -berok will link without error, but may produce a broken library.
13884           no_undefined_flag_F77=' ${wl}-bernotok'
13885           allow_undefined_flag_F77=' ${wl}-berok'
13886           # Exported symbols can be pulled into shared objects from archives
13887           whole_archive_flag_spec_F77='$convenience'
13888           archive_cmds_need_lc_F77=yes
13889           # This is similar to how AIX traditionally builds its shared libraries.
13890           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'
13891         fi
13892       fi
13893       ;;
13894
13895     amigaos*)
13896       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)'
13897       hardcode_libdir_flag_spec_F77='-L$libdir'
13898       hardcode_minus_L_F77=yes
13899       # see comment about different semantics on the GNU ld section
13900       ld_shlibs_F77=no
13901       ;;
13902
13903     bsdi[45]*)
13904       export_dynamic_flag_spec_F77=-rdynamic
13905       ;;
13906
13907     cygwin* | mingw* | pw32*)
13908       # When not using gcc, we currently assume that we are using
13909       # Microsoft Visual C++.
13910       # hardcode_libdir_flag_spec is actually meaningless, as there is
13911       # no search path for DLLs.
13912       hardcode_libdir_flag_spec_F77=' '
13913       allow_undefined_flag_F77=unsupported
13914       # Tell ltmain to make .lib files, not .a files.
13915       libext=lib
13916       # Tell ltmain to make .dll files, not .so files.
13917       shrext_cmds=".dll"
13918       # FIXME: Setting linknames here is a bad hack.
13919       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13920       # The linker will automatically build a .lib file if we build a DLL.
13921       old_archive_From_new_cmds_F77='true'
13922       # FIXME: Should let the user specify the lib program.
13923       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13924       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13925       enable_shared_with_static_runtimes_F77=yes
13926       ;;
13927
13928     darwin* | rhapsody*)
13929       case $host_os in
13930         rhapsody* | darwin1.[012])
13931          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13932          ;;
13933        *) # Darwin 1.3 on
13934          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13935            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13936          else
13937            case ${MACOSX_DEPLOYMENT_TARGET} in
13938              10.[012])
13939                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13940                ;;
13941              10.*)
13942                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13943                ;;
13944            esac
13945          fi
13946          ;;
13947       esac
13948       archive_cmds_need_lc_F77=no
13949       hardcode_direct_F77=no
13950       hardcode_automatic_F77=yes
13951       hardcode_shlibpath_var_F77=unsupported
13952       whole_archive_flag_spec_F77=''
13953       link_all_deplibs_F77=yes
13954     if test "$GCC" = yes ; then
13955         output_verbose_link_cmd='echo'
13956         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13957       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13958       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13959       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}'
13960       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}'
13961     else
13962       case $cc_basename in
13963         xlc*)
13964          output_verbose_link_cmd='echo'
13965          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13966          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13967           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13968          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}'
13969           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}'
13970           ;;
13971        *)
13972          ld_shlibs_F77=no
13973           ;;
13974       esac
13975     fi
13976       ;;
13977
13978     dgux*)
13979       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13980       hardcode_libdir_flag_spec_F77='-L$libdir'
13981       hardcode_shlibpath_var_F77=no
13982       ;;
13983
13984     freebsd1*)
13985       ld_shlibs_F77=no
13986       ;;
13987
13988     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13989     # support.  Future versions do this automatically, but an explicit c++rt0.o
13990     # does not break anything, and helps significantly (at the cost of a little
13991     # extra space).
13992     freebsd2.2*)
13993       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13994       hardcode_libdir_flag_spec_F77='-R$libdir'
13995       hardcode_direct_F77=yes
13996       hardcode_shlibpath_var_F77=no
13997       ;;
13998
13999     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14000     freebsd2*)
14001       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14002       hardcode_direct_F77=yes
14003       hardcode_minus_L_F77=yes
14004       hardcode_shlibpath_var_F77=no
14005       ;;
14006
14007     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14008     freebsd* | kfreebsd*-gnu | dragonfly*)
14009       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14010       hardcode_libdir_flag_spec_F77='-R$libdir'
14011       hardcode_direct_F77=yes
14012       hardcode_shlibpath_var_F77=no
14013       ;;
14014
14015     hpux9*)
14016       if test "$GCC" = yes; then
14017         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'
14018       else
14019         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'
14020       fi
14021       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14022       hardcode_libdir_separator_F77=:
14023       hardcode_direct_F77=yes
14024
14025       # hardcode_minus_L: Not really in the search PATH,
14026       # but as the default location of the library.
14027       hardcode_minus_L_F77=yes
14028       export_dynamic_flag_spec_F77='${wl}-E'
14029       ;;
14030
14031     hpux10*)
14032       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14033         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14034       else
14035         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14036       fi
14037       if test "$with_gnu_ld" = no; then
14038         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14039         hardcode_libdir_separator_F77=:
14040
14041         hardcode_direct_F77=yes
14042         export_dynamic_flag_spec_F77='${wl}-E'
14043
14044         # hardcode_minus_L: Not really in the search PATH,
14045         # but as the default location of the library.
14046         hardcode_minus_L_F77=yes
14047       fi
14048       ;;
14049
14050     hpux11*)
14051       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14052         case $host_cpu in
14053         hppa*64*)
14054           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14055           ;;
14056         ia64*)
14057           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14058           ;;
14059         *)
14060           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14061           ;;
14062         esac
14063       else
14064         case $host_cpu in
14065         hppa*64*)
14066           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14067           ;;
14068         ia64*)
14069           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14070           ;;
14071         *)
14072           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14073           ;;
14074         esac
14075       fi
14076       if test "$with_gnu_ld" = no; then
14077         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14078         hardcode_libdir_separator_F77=:
14079
14080         case $host_cpu in
14081         hppa*64*|ia64*)
14082           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14083           hardcode_direct_F77=no
14084           hardcode_shlibpath_var_F77=no
14085           ;;
14086         *)
14087           hardcode_direct_F77=yes
14088           export_dynamic_flag_spec_F77='${wl}-E'
14089
14090           # hardcode_minus_L: Not really in the search PATH,
14091           # but as the default location of the library.
14092           hardcode_minus_L_F77=yes
14093           ;;
14094         esac
14095       fi
14096       ;;
14097
14098     irix5* | irix6* | nonstopux*)
14099       if test "$GCC" = yes; then
14100         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'
14101       else
14102         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'
14103         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14104       fi
14105       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14106       hardcode_libdir_separator_F77=:
14107       link_all_deplibs_F77=yes
14108       ;;
14109
14110     netbsd*)
14111       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14112         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14113       else
14114         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14115       fi
14116       hardcode_libdir_flag_spec_F77='-R$libdir'
14117       hardcode_direct_F77=yes
14118       hardcode_shlibpath_var_F77=no
14119       ;;
14120
14121     newsos6)
14122       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14123       hardcode_direct_F77=yes
14124       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14125       hardcode_libdir_separator_F77=:
14126       hardcode_shlibpath_var_F77=no
14127       ;;
14128
14129     openbsd*)
14130       hardcode_direct_F77=yes
14131       hardcode_shlibpath_var_F77=no
14132       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14133         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14134         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14135         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14136         export_dynamic_flag_spec_F77='${wl}-E'
14137       else
14138        case $host_os in
14139          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14140            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14141            hardcode_libdir_flag_spec_F77='-R$libdir'
14142            ;;
14143          *)
14144            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14145            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14146            ;;
14147        esac
14148       fi
14149       ;;
14150
14151     os2*)
14152       hardcode_libdir_flag_spec_F77='-L$libdir'
14153       hardcode_minus_L_F77=yes
14154       allow_undefined_flag_F77=unsupported
14155       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'
14156       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14157       ;;
14158
14159     osf3*)
14160       if test "$GCC" = yes; then
14161         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14162         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'
14163       else
14164         allow_undefined_flag_F77=' -expect_unresolved \*'
14165         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'
14166       fi
14167       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14168       hardcode_libdir_separator_F77=:
14169       ;;
14170
14171     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14172       if test "$GCC" = yes; then
14173         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14174         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'
14175         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14176       else
14177         allow_undefined_flag_F77=' -expect_unresolved \*'
14178         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'
14179         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~
14180         $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'
14181
14182         # Both c and cxx compiler support -rpath directly
14183         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14184       fi
14185       hardcode_libdir_separator_F77=:
14186       ;;
14187
14188     solaris*)
14189       no_undefined_flag_F77=' -z text'
14190       if test "$GCC" = yes; then
14191         wlarc='${wl}'
14192         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14193         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14194           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14195       else
14196         wlarc=''
14197         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14198         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14199         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14200       fi
14201       hardcode_libdir_flag_spec_F77='-R$libdir'
14202       hardcode_shlibpath_var_F77=no
14203       case $host_os in
14204       solaris2.[0-5] | solaris2.[0-5].*) ;;
14205       *)
14206         # The compiler driver will combine linker options so we
14207         # cannot just pass the convience library names through
14208         # without $wl, iff we do not link with $LD.
14209         # Luckily, gcc supports the same syntax we need for Sun Studio.
14210         # Supported since Solaris 2.6 (maybe 2.5.1?)
14211         case $wlarc in
14212         '')
14213           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14214         *)
14215           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' ;;
14216         esac ;;
14217       esac
14218       link_all_deplibs_F77=yes
14219       ;;
14220
14221     sunos4*)
14222       if test "x$host_vendor" = xsequent; then
14223         # Use $CC to link under sequent, because it throws in some extra .o
14224         # files that make .init and .fini sections work.
14225         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14226       else
14227         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14228       fi
14229       hardcode_libdir_flag_spec_F77='-L$libdir'
14230       hardcode_direct_F77=yes
14231       hardcode_minus_L_F77=yes
14232       hardcode_shlibpath_var_F77=no
14233       ;;
14234
14235     sysv4)
14236       case $host_vendor in
14237         sni)
14238           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14239           hardcode_direct_F77=yes # is this really true???
14240         ;;
14241         siemens)
14242           ## LD is ld it makes a PLAMLIB
14243           ## CC just makes a GrossModule.
14244           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14245           reload_cmds_F77='$CC -r -o $output$reload_objs'
14246           hardcode_direct_F77=no
14247         ;;
14248         motorola)
14249           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14250           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14251         ;;
14252       esac
14253       runpath_var='LD_RUN_PATH'
14254       hardcode_shlibpath_var_F77=no
14255       ;;
14256
14257     sysv4.3*)
14258       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14259       hardcode_shlibpath_var_F77=no
14260       export_dynamic_flag_spec_F77='-Bexport'
14261       ;;
14262
14263     sysv4*MP*)
14264       if test -d /usr/nec; then
14265         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14266         hardcode_shlibpath_var_F77=no
14267         runpath_var=LD_RUN_PATH
14268         hardcode_runpath_var=yes
14269         ld_shlibs_F77=yes
14270       fi
14271       ;;
14272
14273     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14274       no_undefined_flag_F77='${wl}-z,text'
14275       archive_cmds_need_lc_F77=no
14276       hardcode_shlibpath_var_F77=no
14277       runpath_var='LD_RUN_PATH'
14278
14279       if test "$GCC" = yes; then
14280         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14281         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14282       else
14283         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14284         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14285       fi
14286       ;;
14287
14288     sysv5* | sco3.2v5* | sco5v6*)
14289       # Note: We can NOT use -z defs as we might desire, because we do not
14290       # link with -lc, and that would cause any symbols used from libc to
14291       # always be unresolved, which means just about no library would
14292       # ever link correctly.  If we're not using GNU ld we use -z text
14293       # though, which does catch some bad symbols but isn't as heavy-handed
14294       # as -z defs.
14295       no_undefined_flag_F77='${wl}-z,text'
14296       allow_undefined_flag_F77='${wl}-z,nodefs'
14297       archive_cmds_need_lc_F77=no
14298       hardcode_shlibpath_var_F77=no
14299       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14300       hardcode_libdir_separator_F77=':'
14301       link_all_deplibs_F77=yes
14302       export_dynamic_flag_spec_F77='${wl}-Bexport'
14303       runpath_var='LD_RUN_PATH'
14304
14305       if test "$GCC" = yes; then
14306         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14308       else
14309         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14310         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14311       fi
14312       ;;
14313
14314     uts4*)
14315       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14316       hardcode_libdir_flag_spec_F77='-L$libdir'
14317       hardcode_shlibpath_var_F77=no
14318       ;;
14319
14320     *)
14321       ld_shlibs_F77=no
14322       ;;
14323     esac
14324   fi
14325
14326 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14327 echo "${ECHO_T}$ld_shlibs_F77" >&6
14328 test "$ld_shlibs_F77" = no && can_build_shared=no
14329
14330 #
14331 # Do we need to explicitly link libc?
14332 #
14333 case "x$archive_cmds_need_lc_F77" in
14334 x|xyes)
14335   # Assume -lc should be added
14336   archive_cmds_need_lc_F77=yes
14337
14338   if test "$enable_shared" = yes && test "$GCC" = yes; then
14339     case $archive_cmds_F77 in
14340     *'~'*)
14341       # FIXME: we may have to deal with multi-command sequences.
14342       ;;
14343     '$CC '*)
14344       # Test whether the compiler implicitly links with -lc since on some
14345       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14346       # to ld, don't add -lc before -lgcc.
14347       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14348 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14349       $rm conftest*
14350       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14351
14352       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14353   (eval $ac_compile) 2>&5
14354   ac_status=$?
14355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14356   (exit $ac_status); } 2>conftest.err; then
14357         soname=conftest
14358         lib=conftest
14359         libobjs=conftest.$ac_objext
14360         deplibs=
14361         wl=$lt_prog_compiler_wl_F77
14362         pic_flag=$lt_prog_compiler_pic_F77
14363         compiler_flags=-v
14364         linker_flags=-v
14365         verstring=
14366         output_objdir=.
14367         libname=conftest
14368         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14369         allow_undefined_flag_F77=
14370         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14371   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14372   ac_status=$?
14373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374   (exit $ac_status); }
14375         then
14376           archive_cmds_need_lc_F77=no
14377         else
14378           archive_cmds_need_lc_F77=yes
14379         fi
14380         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14381       else
14382         cat conftest.err 1>&5
14383       fi
14384       $rm conftest*
14385       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14386 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14387       ;;
14388     esac
14389   fi
14390   ;;
14391 esac
14392
14393 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14394 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14395 library_names_spec=
14396 libname_spec='lib$name'
14397 soname_spec=
14398 shrext_cmds=".so"
14399 postinstall_cmds=
14400 postuninstall_cmds=
14401 finish_cmds=
14402 finish_eval=
14403 shlibpath_var=
14404 shlibpath_overrides_runpath=unknown
14405 version_type=none
14406 dynamic_linker="$host_os ld.so"
14407 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14408 if test "$GCC" = yes; then
14409   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14410   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14411     # if the path contains ";" then we assume it to be the separator
14412     # otherwise default to the standard path separator (i.e. ":") - it is
14413     # assumed that no part of a normal pathname contains ";" but that should
14414     # okay in the real world where ";" in dirpaths is itself problematic.
14415     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14416   else
14417     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14418   fi
14419 else
14420   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14421 fi
14422 need_lib_prefix=unknown
14423 hardcode_into_libs=no
14424
14425 # when you set need_version to no, make sure it does not cause -set_version
14426 # flags to be left without arguments
14427 need_version=unknown
14428
14429 case $host_os in
14430 aix3*)
14431   version_type=linux
14432   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14433   shlibpath_var=LIBPATH
14434
14435   # AIX 3 has no versioning support, so we append a major version to the name.
14436   soname_spec='${libname}${release}${shared_ext}$major'
14437   ;;
14438
14439 aix4* | aix5*)
14440   version_type=linux
14441   need_lib_prefix=no
14442   need_version=no
14443   hardcode_into_libs=yes
14444   if test "$host_cpu" = ia64; then
14445     # AIX 5 supports IA64
14446     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14447     shlibpath_var=LD_LIBRARY_PATH
14448   else
14449     # With GCC up to 2.95.x, collect2 would create an import file
14450     # for dependence libraries.  The import file would start with
14451     # the line `#! .'.  This would cause the generated library to
14452     # depend on `.', always an invalid library.  This was fixed in
14453     # development snapshots of GCC prior to 3.0.
14454     case $host_os in
14455       aix4 | aix4.[01] | aix4.[01].*)
14456       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14457            echo ' yes '
14458            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14459         :
14460       else
14461         can_build_shared=no
14462       fi
14463       ;;
14464     esac
14465     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14466     # soname into executable. Probably we can add versioning support to
14467     # collect2, so additional links can be useful in future.
14468     if test "$aix_use_runtimelinking" = yes; then
14469       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14470       # instead of lib<name>.a to let people know that these are not
14471       # typical AIX shared libraries.
14472       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14473     else
14474       # We preserve .a as extension for shared libraries through AIX4.2
14475       # and later when we are not doing run time linking.
14476       library_names_spec='${libname}${release}.a $libname.a'
14477       soname_spec='${libname}${release}${shared_ext}$major'
14478     fi
14479     shlibpath_var=LIBPATH
14480   fi
14481   ;;
14482
14483 amigaos*)
14484   library_names_spec='$libname.ixlibrary $libname.a'
14485   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14486   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'
14487   ;;
14488
14489 beos*)
14490   library_names_spec='${libname}${shared_ext}'
14491   dynamic_linker="$host_os ld.so"
14492   shlibpath_var=LIBRARY_PATH
14493   ;;
14494
14495 bsdi[45]*)
14496   version_type=linux
14497   need_version=no
14498   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14499   soname_spec='${libname}${release}${shared_ext}$major'
14500   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14501   shlibpath_var=LD_LIBRARY_PATH
14502   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14503   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14504   # the default ld.so.conf also contains /usr/contrib/lib and
14505   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14506   # libtool to hard-code these into programs
14507   ;;
14508
14509 cygwin* | mingw* | pw32*)
14510   version_type=windows
14511   shrext_cmds=".dll"
14512   need_version=no
14513   need_lib_prefix=no
14514
14515   case $GCC,$host_os in
14516   yes,cygwin* | yes,mingw* | yes,pw32*)
14517     library_names_spec='$libname.dll.a'
14518     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14519     postinstall_cmds='base_file=`basename \${file}`~
14520       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14521       dldir=$destdir/`dirname \$dlpath`~
14522       test -d \$dldir || mkdir -p \$dldir~
14523       $install_prog $dir/$dlname \$dldir/$dlname~
14524       chmod a+x \$dldir/$dlname'
14525     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14526       dlpath=$dir/\$dldll~
14527        $rm \$dlpath'
14528     shlibpath_overrides_runpath=yes
14529
14530     case $host_os in
14531     cygwin*)
14532       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14533       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14534       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14535       ;;
14536     mingw*)
14537       # MinGW DLLs use traditional 'lib' prefix
14538       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14539       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14540       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14541         # It is most probably a Windows format PATH printed by
14542         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14543         # path with ; separators, and with drive letters. We can handle the
14544         # drive letters (cygwin fileutils understands them), so leave them,
14545         # especially as we might pass files found there to a mingw objdump,
14546         # which wouldn't understand a cygwinified path. Ahh.
14547         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14548       else
14549         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14550       fi
14551       ;;
14552     pw32*)
14553       # pw32 DLLs use 'pw' prefix rather than 'lib'
14554       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14555       ;;
14556     esac
14557     ;;
14558
14559   *)
14560     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14561     ;;
14562   esac
14563   dynamic_linker='Win32 ld.exe'
14564   # FIXME: first we should search . and the directory the executable is in
14565   shlibpath_var=PATH
14566   ;;
14567
14568 darwin* | rhapsody*)
14569   dynamic_linker="$host_os dyld"
14570   version_type=darwin
14571   need_lib_prefix=no
14572   need_version=no
14573   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14574   soname_spec='${libname}${release}${major}$shared_ext'
14575   shlibpath_overrides_runpath=yes
14576   shlibpath_var=DYLD_LIBRARY_PATH
14577   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14578   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14579   if test "$GCC" = yes; then
14580     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"`
14581   else
14582     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14583   fi
14584   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14585   ;;
14586
14587 dgux*)
14588   version_type=linux
14589   need_lib_prefix=no
14590   need_version=no
14591   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14592   soname_spec='${libname}${release}${shared_ext}$major'
14593   shlibpath_var=LD_LIBRARY_PATH
14594   ;;
14595
14596 freebsd1*)
14597   dynamic_linker=no
14598   ;;
14599
14600 kfreebsd*-gnu)
14601   version_type=linux
14602   need_lib_prefix=no
14603   need_version=no
14604   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14605   soname_spec='${libname}${release}${shared_ext}$major'
14606   shlibpath_var=LD_LIBRARY_PATH
14607   shlibpath_overrides_runpath=no
14608   hardcode_into_libs=yes
14609   dynamic_linker='GNU ld.so'
14610   ;;
14611
14612 freebsd* | dragonfly*)
14613   # DragonFly does not have aout.  When/if they implement a new
14614   # versioning mechanism, adjust this.
14615   if test -x /usr/bin/objformat; then
14616     objformat=`/usr/bin/objformat`
14617   else
14618     case $host_os in
14619     freebsd[123]*) objformat=aout ;;
14620     *) objformat=elf ;;
14621     esac
14622   fi
14623   version_type=freebsd-$objformat
14624   case $version_type in
14625     freebsd-elf*)
14626       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14627       need_version=no
14628       need_lib_prefix=no
14629       ;;
14630     freebsd-*)
14631       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14632       need_version=yes
14633       ;;
14634   esac
14635   shlibpath_var=LD_LIBRARY_PATH
14636   case $host_os in
14637   freebsd2*)
14638     shlibpath_overrides_runpath=yes
14639     ;;
14640   freebsd3.[01]* | freebsdelf3.[01]*)
14641     shlibpath_overrides_runpath=yes
14642     hardcode_into_libs=yes
14643     ;;
14644   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14645   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14646     shlibpath_overrides_runpath=no
14647     hardcode_into_libs=yes
14648     ;;
14649   freebsd*) # from 4.6 on
14650     shlibpath_overrides_runpath=yes
14651     hardcode_into_libs=yes
14652     ;;
14653   esac
14654   ;;
14655
14656 gnu*)
14657   version_type=linux
14658   need_lib_prefix=no
14659   need_version=no
14660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14661   soname_spec='${libname}${release}${shared_ext}$major'
14662   shlibpath_var=LD_LIBRARY_PATH
14663   hardcode_into_libs=yes
14664   ;;
14665
14666 hpux9* | hpux10* | hpux11*)
14667   # Give a soname corresponding to the major version so that dld.sl refuses to
14668   # link against other versions.
14669   version_type=sunos
14670   need_lib_prefix=no
14671   need_version=no
14672   case $host_cpu in
14673   ia64*)
14674     shrext_cmds='.so'
14675     hardcode_into_libs=yes
14676     dynamic_linker="$host_os dld.so"
14677     shlibpath_var=LD_LIBRARY_PATH
14678     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14679     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14680     soname_spec='${libname}${release}${shared_ext}$major'
14681     if test "X$HPUX_IA64_MODE" = X32; then
14682       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14683     else
14684       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14685     fi
14686     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14687     ;;
14688    hppa*64*)
14689      shrext_cmds='.sl'
14690      hardcode_into_libs=yes
14691      dynamic_linker="$host_os dld.sl"
14692      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14693      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14694      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14695      soname_spec='${libname}${release}${shared_ext}$major'
14696      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14697      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14698      ;;
14699    *)
14700     shrext_cmds='.sl'
14701     dynamic_linker="$host_os dld.sl"
14702     shlibpath_var=SHLIB_PATH
14703     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14704     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14705     soname_spec='${libname}${release}${shared_ext}$major'
14706     ;;
14707   esac
14708   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14709   postinstall_cmds='chmod 555 $lib'
14710   ;;
14711
14712 interix3*)
14713   version_type=linux
14714   need_lib_prefix=no
14715   need_version=no
14716   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14717   soname_spec='${libname}${release}${shared_ext}$major'
14718   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14719   shlibpath_var=LD_LIBRARY_PATH
14720   shlibpath_overrides_runpath=no
14721   hardcode_into_libs=yes
14722   ;;
14723
14724 irix5* | irix6* | nonstopux*)
14725   case $host_os in
14726     nonstopux*) version_type=nonstopux ;;
14727     *)
14728         if test "$lt_cv_prog_gnu_ld" = yes; then
14729                 version_type=linux
14730         else
14731                 version_type=irix
14732         fi ;;
14733   esac
14734   need_lib_prefix=no
14735   need_version=no
14736   soname_spec='${libname}${release}${shared_ext}$major'
14737   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14738   case $host_os in
14739   irix5* | nonstopux*)
14740     libsuff= shlibsuff=
14741     ;;
14742   *)
14743     case $LD in # libtool.m4 will add one of these switches to LD
14744     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14745       libsuff= shlibsuff= libmagic=32-bit;;
14746     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14747       libsuff=32 shlibsuff=N32 libmagic=N32;;
14748     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14749       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14750     *) libsuff= shlibsuff= libmagic=never-match;;
14751     esac
14752     ;;
14753   esac
14754   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14755   shlibpath_overrides_runpath=no
14756   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14757   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14758   hardcode_into_libs=yes
14759   ;;
14760
14761 # No shared lib support for Linux oldld, aout, or coff.
14762 linux*oldld* | linux*aout* | linux*coff*)
14763   dynamic_linker=no
14764   ;;
14765
14766 # This must be Linux ELF.
14767 linux*)
14768   version_type=linux
14769   need_lib_prefix=no
14770   need_version=no
14771   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14772   soname_spec='${libname}${release}${shared_ext}$major'
14773   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14774   shlibpath_var=LD_LIBRARY_PATH
14775   shlibpath_overrides_runpath=no
14776   # This implies no fast_install, which is unacceptable.
14777   # Some rework will be needed to allow for fast_install
14778   # before this can be enabled.
14779   hardcode_into_libs=yes
14780
14781   # find out which ABI we are using
14782   libsuff=
14783   case "$host_cpu" in
14784   x86_64*|s390x*|powerpc64*)
14785     echo '#line 14785 "configure"' > conftest.$ac_ext
14786     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14787   (eval $ac_compile) 2>&5
14788   ac_status=$?
14789   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14790   (exit $ac_status); }; then
14791       case `/usr/bin/file conftest.$ac_objext` in
14792       *64-bit*)
14793         libsuff=64
14794         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14795         ;;
14796       esac
14797     fi
14798     rm -rf conftest*
14799     ;;
14800   esac
14801
14802   # Append ld.so.conf contents to the search path
14803   if test -f /etc/ld.so.conf; then
14804     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' ' '`
14805     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14806   fi
14807
14808   # We used to test for /lib/ld.so.1 and disable shared libraries on
14809   # powerpc, because MkLinux only supported shared libraries with the
14810   # GNU dynamic linker.  Since this was broken with cross compilers,
14811   # most powerpc-linux boxes support dynamic linking these days and
14812   # people can always --disable-shared, the test was removed, and we
14813   # assume the GNU/Linux dynamic linker is in use.
14814   dynamic_linker='GNU/Linux ld.so'
14815   ;;
14816
14817 knetbsd*-gnu)
14818   version_type=linux
14819   need_lib_prefix=no
14820   need_version=no
14821   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14822   soname_spec='${libname}${release}${shared_ext}$major'
14823   shlibpath_var=LD_LIBRARY_PATH
14824   shlibpath_overrides_runpath=no
14825   hardcode_into_libs=yes
14826   dynamic_linker='GNU ld.so'
14827   ;;
14828
14829 netbsd*)
14830   version_type=sunos
14831   need_lib_prefix=no
14832   need_version=no
14833   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14834     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14835     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14836     dynamic_linker='NetBSD (a.out) ld.so'
14837   else
14838     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14839     soname_spec='${libname}${release}${shared_ext}$major'
14840     dynamic_linker='NetBSD ld.elf_so'
14841   fi
14842   shlibpath_var=LD_LIBRARY_PATH
14843   shlibpath_overrides_runpath=yes
14844   hardcode_into_libs=yes
14845   ;;
14846
14847 newsos6)
14848   version_type=linux
14849   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14850   shlibpath_var=LD_LIBRARY_PATH
14851   shlibpath_overrides_runpath=yes
14852   ;;
14853
14854 nto-qnx*)
14855   version_type=linux
14856   need_lib_prefix=no
14857   need_version=no
14858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14859   soname_spec='${libname}${release}${shared_ext}$major'
14860   shlibpath_var=LD_LIBRARY_PATH
14861   shlibpath_overrides_runpath=yes
14862   ;;
14863
14864 openbsd*)
14865   version_type=sunos
14866   sys_lib_dlsearch_path_spec="/usr/lib"
14867   need_lib_prefix=no
14868   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14869   case $host_os in
14870     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14871     *)                         need_version=no  ;;
14872   esac
14873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14874   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14875   shlibpath_var=LD_LIBRARY_PATH
14876   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14877     case $host_os in
14878       openbsd2.[89] | openbsd2.[89].*)
14879         shlibpath_overrides_runpath=no
14880         ;;
14881       *)
14882         shlibpath_overrides_runpath=yes
14883         ;;
14884       esac
14885   else
14886     shlibpath_overrides_runpath=yes
14887   fi
14888   ;;
14889
14890 os2*)
14891   libname_spec='$name'
14892   shrext_cmds=".dll"
14893   need_lib_prefix=no
14894   library_names_spec='$libname${shared_ext} $libname.a'
14895   dynamic_linker='OS/2 ld.exe'
14896   shlibpath_var=LIBPATH
14897   ;;
14898
14899 osf3* | osf4* | osf5*)
14900   version_type=osf
14901   need_lib_prefix=no
14902   need_version=no
14903   soname_spec='${libname}${release}${shared_ext}$major'
14904   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14905   shlibpath_var=LD_LIBRARY_PATH
14906   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14907   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14908   ;;
14909
14910 solaris*)
14911   version_type=linux
14912   need_lib_prefix=no
14913   need_version=no
14914   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14915   soname_spec='${libname}${release}${shared_ext}$major'
14916   shlibpath_var=LD_LIBRARY_PATH
14917   shlibpath_overrides_runpath=yes
14918   hardcode_into_libs=yes
14919   # ldd complains unless libraries are executable
14920   postinstall_cmds='chmod +x $lib'
14921   ;;
14922
14923 sunos4*)
14924   version_type=sunos
14925   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14926   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14927   shlibpath_var=LD_LIBRARY_PATH
14928   shlibpath_overrides_runpath=yes
14929   if test "$with_gnu_ld" = yes; then
14930     need_lib_prefix=no
14931   fi
14932   need_version=yes
14933   ;;
14934
14935 sysv4 | sysv4.3*)
14936   version_type=linux
14937   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14938   soname_spec='${libname}${release}${shared_ext}$major'
14939   shlibpath_var=LD_LIBRARY_PATH
14940   case $host_vendor in
14941     sni)
14942       shlibpath_overrides_runpath=no
14943       need_lib_prefix=no
14944       export_dynamic_flag_spec='${wl}-Blargedynsym'
14945       runpath_var=LD_RUN_PATH
14946       ;;
14947     siemens)
14948       need_lib_prefix=no
14949       ;;
14950     motorola)
14951       need_lib_prefix=no
14952       need_version=no
14953       shlibpath_overrides_runpath=no
14954       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14955       ;;
14956   esac
14957   ;;
14958
14959 sysv4*MP*)
14960   if test -d /usr/nec ;then
14961     version_type=linux
14962     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14963     soname_spec='$libname${shared_ext}.$major'
14964     shlibpath_var=LD_LIBRARY_PATH
14965   fi
14966   ;;
14967
14968 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14969   version_type=freebsd-elf
14970   need_lib_prefix=no
14971   need_version=no
14972   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14973   soname_spec='${libname}${release}${shared_ext}$major'
14974   shlibpath_var=LD_LIBRARY_PATH
14975   hardcode_into_libs=yes
14976   if test "$with_gnu_ld" = yes; then
14977     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14978     shlibpath_overrides_runpath=no
14979   else
14980     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14981     shlibpath_overrides_runpath=yes
14982     case $host_os in
14983       sco3.2v5*)
14984         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14985         ;;
14986     esac
14987   fi
14988   sys_lib_dlsearch_path_spec='/usr/lib'
14989   ;;
14990
14991 uts4*)
14992   version_type=linux
14993   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14994   soname_spec='${libname}${release}${shared_ext}$major'
14995   shlibpath_var=LD_LIBRARY_PATH
14996   ;;
14997
14998 *)
14999   dynamic_linker=no
15000   ;;
15001 esac
15002 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15003 echo "${ECHO_T}$dynamic_linker" >&6
15004 test "$dynamic_linker" = no && can_build_shared=no
15005
15006 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15007 if test "$GCC" = yes; then
15008   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15009 fi
15010
15011 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15012 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15013 hardcode_action_F77=
15014 if test -n "$hardcode_libdir_flag_spec_F77" || \
15015    test -n "$runpath_var_F77" || \
15016    test "X$hardcode_automatic_F77" = "Xyes" ; then
15017
15018   # We can hardcode non-existant directories.
15019   if test "$hardcode_direct_F77" != no &&
15020      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15021      # have to relink, otherwise we might link with an installed library
15022      # when we should be linking with a yet-to-be-installed one
15023      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15024      test "$hardcode_minus_L_F77" != no; then
15025     # Linking always hardcodes the temporary library directory.
15026     hardcode_action_F77=relink
15027   else
15028     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15029     hardcode_action_F77=immediate
15030   fi
15031 else
15032   # We cannot hardcode anything, or else we can only hardcode existing
15033   # directories.
15034   hardcode_action_F77=unsupported
15035 fi
15036 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15037 echo "${ECHO_T}$hardcode_action_F77" >&6
15038
15039 if test "$hardcode_action_F77" = relink; then
15040   # Fast installation is not supported
15041   enable_fast_install=no
15042 elif test "$shlibpath_overrides_runpath" = yes ||
15043      test "$enable_shared" = no; then
15044   # Fast installation is not necessary
15045   enable_fast_install=needless
15046 fi
15047
15048
15049 # The else clause should only fire when bootstrapping the
15050 # libtool distribution, otherwise you forgot to ship ltmain.sh
15051 # with your package, and you will get complaints that there are
15052 # no rules to generate ltmain.sh.
15053 if test -f "$ltmain"; then
15054   # See if we are running on zsh, and set the options which allow our commands through
15055   # without removal of \ escapes.
15056   if test -n "${ZSH_VERSION+set}" ; then
15057     setopt NO_GLOB_SUBST
15058   fi
15059   # Now quote all the things that may contain metacharacters while being
15060   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15061   # variables and quote the copies for generation of the libtool script.
15062   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15063     SED SHELL STRIP \
15064     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15065     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15066     deplibs_check_method reload_flag reload_cmds need_locks \
15067     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15068     lt_cv_sys_global_symbol_to_c_name_address \
15069     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15070     old_postinstall_cmds old_postuninstall_cmds \
15071     compiler_F77 \
15072     CC_F77 \
15073     LD_F77 \
15074     lt_prog_compiler_wl_F77 \
15075     lt_prog_compiler_pic_F77 \
15076     lt_prog_compiler_static_F77 \
15077     lt_prog_compiler_no_builtin_flag_F77 \
15078     export_dynamic_flag_spec_F77 \
15079     thread_safe_flag_spec_F77 \
15080     whole_archive_flag_spec_F77 \
15081     enable_shared_with_static_runtimes_F77 \
15082     old_archive_cmds_F77 \
15083     old_archive_from_new_cmds_F77 \
15084     predep_objects_F77 \
15085     postdep_objects_F77 \
15086     predeps_F77 \
15087     postdeps_F77 \
15088     compiler_lib_search_path_F77 \
15089     archive_cmds_F77 \
15090     archive_expsym_cmds_F77 \
15091     postinstall_cmds_F77 \
15092     postuninstall_cmds_F77 \
15093     old_archive_from_expsyms_cmds_F77 \
15094     allow_undefined_flag_F77 \
15095     no_undefined_flag_F77 \
15096     export_symbols_cmds_F77 \
15097     hardcode_libdir_flag_spec_F77 \
15098     hardcode_libdir_flag_spec_ld_F77 \
15099     hardcode_libdir_separator_F77 \
15100     hardcode_automatic_F77 \
15101     module_cmds_F77 \
15102     module_expsym_cmds_F77 \
15103     lt_cv_prog_compiler_c_o_F77 \
15104     exclude_expsyms_F77 \
15105     include_expsyms_F77; do
15106
15107     case $var in
15108     old_archive_cmds_F77 | \
15109     old_archive_from_new_cmds_F77 | \
15110     archive_cmds_F77 | \
15111     archive_expsym_cmds_F77 | \
15112     module_cmds_F77 | \
15113     module_expsym_cmds_F77 | \
15114     old_archive_from_expsyms_cmds_F77 | \
15115     export_symbols_cmds_F77 | \
15116     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15117     postinstall_cmds | postuninstall_cmds | \
15118     old_postinstall_cmds | old_postuninstall_cmds | \
15119     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15120       # Double-quote double-evaled strings.
15121       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15122       ;;
15123     *)
15124       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15125       ;;
15126     esac
15127   done
15128
15129   case $lt_echo in
15130   *'\$0 --fallback-echo"')
15131     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15132     ;;
15133   esac
15134
15135 cfgfile="$ofile"
15136
15137   cat <<__EOF__ >> "$cfgfile"
15138 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15139
15140 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15141
15142 # Shell to use when invoking shell scripts.
15143 SHELL=$lt_SHELL
15144
15145 # Whether or not to build shared libraries.
15146 build_libtool_libs=$enable_shared
15147
15148 # Whether or not to build static libraries.
15149 build_old_libs=$enable_static
15150
15151 # Whether or not to add -lc for building shared libraries.
15152 build_libtool_need_lc=$archive_cmds_need_lc_F77
15153
15154 # Whether or not to disallow shared libs when runtime libs are static
15155 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15156
15157 # Whether or not to optimize for fast installation.
15158 fast_install=$enable_fast_install
15159
15160 # The host system.
15161 host_alias=$host_alias
15162 host=$host
15163 host_os=$host_os
15164
15165 # The build system.
15166 build_alias=$build_alias
15167 build=$build
15168 build_os=$build_os
15169
15170 # An echo program that does not interpret backslashes.
15171 echo=$lt_echo
15172
15173 # The archiver.
15174 AR=$lt_AR
15175 AR_FLAGS=$lt_AR_FLAGS
15176
15177 # A C compiler.
15178 LTCC=$lt_LTCC
15179
15180 # LTCC compiler flags.
15181 LTCFLAGS=$lt_LTCFLAGS
15182
15183 # A language-specific compiler.
15184 CC=$lt_compiler_F77
15185
15186 # Is the compiler the GNU C compiler?
15187 with_gcc=$GCC_F77
15188
15189 # An ERE matcher.
15190 EGREP=$lt_EGREP
15191
15192 # The linker used to build libraries.
15193 LD=$lt_LD_F77
15194
15195 # Whether we need hard or soft links.
15196 LN_S=$lt_LN_S
15197
15198 # A BSD-compatible nm program.
15199 NM=$lt_NM
15200
15201 # A symbol stripping program
15202 STRIP=$lt_STRIP
15203
15204 # Used to examine libraries when file_magic_cmd begins "file"
15205 MAGIC_CMD=$MAGIC_CMD
15206
15207 # Used on cygwin: DLL creation program.
15208 DLLTOOL="$DLLTOOL"
15209
15210 # Used on cygwin: object dumper.
15211 OBJDUMP="$OBJDUMP"
15212
15213 # Used on cygwin: assembler.
15214 AS="$AS"
15215
15216 # The name of the directory that contains temporary libtool files.
15217 objdir=$objdir
15218
15219 # How to create reloadable object files.
15220 reload_flag=$lt_reload_flag
15221 reload_cmds=$lt_reload_cmds
15222
15223 # How to pass a linker flag through the compiler.
15224 wl=$lt_lt_prog_compiler_wl_F77
15225
15226 # Object file suffix (normally "o").
15227 objext="$ac_objext"
15228
15229 # Old archive suffix (normally "a").
15230 libext="$libext"
15231
15232 # Shared library suffix (normally ".so").
15233 shrext_cmds='$shrext_cmds'
15234
15235 # Executable file suffix (normally "").
15236 exeext="$exeext"
15237
15238 # Additional compiler flags for building library objects.
15239 pic_flag=$lt_lt_prog_compiler_pic_F77
15240 pic_mode=$pic_mode
15241
15242 # What is the maximum length of a command?
15243 max_cmd_len=$lt_cv_sys_max_cmd_len
15244
15245 # Does compiler simultaneously support -c and -o options?
15246 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15247
15248 # Must we lock files when doing compilation?
15249 need_locks=$lt_need_locks
15250
15251 # Do we need the lib prefix for modules?
15252 need_lib_prefix=$need_lib_prefix
15253
15254 # Do we need a version for libraries?
15255 need_version=$need_version
15256
15257 # Whether dlopen is supported.
15258 dlopen_support=$enable_dlopen
15259
15260 # Whether dlopen of programs is supported.
15261 dlopen_self=$enable_dlopen_self
15262
15263 # Whether dlopen of statically linked programs is supported.
15264 dlopen_self_static=$enable_dlopen_self_static
15265
15266 # Compiler flag to prevent dynamic linking.
15267 link_static_flag=$lt_lt_prog_compiler_static_F77
15268
15269 # Compiler flag to turn off builtin functions.
15270 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15271
15272 # Compiler flag to allow reflexive dlopens.
15273 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15274
15275 # Compiler flag to generate shared objects directly from archives.
15276 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15277
15278 # Compiler flag to generate thread-safe objects.
15279 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15280
15281 # Library versioning type.
15282 version_type=$version_type
15283
15284 # Format of library name prefix.
15285 libname_spec=$lt_libname_spec
15286
15287 # List of archive names.  First name is the real one, the rest are links.
15288 # The last name is the one that the linker finds with -lNAME.
15289 library_names_spec=$lt_library_names_spec
15290
15291 # The coded name of the library, if different from the real name.
15292 soname_spec=$lt_soname_spec
15293
15294 # Commands used to build and install an old-style archive.
15295 RANLIB=$lt_RANLIB
15296 old_archive_cmds=$lt_old_archive_cmds_F77
15297 old_postinstall_cmds=$lt_old_postinstall_cmds
15298 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15299
15300 # Create an old-style archive from a shared archive.
15301 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15302
15303 # Create a temporary old-style archive to link instead of a shared archive.
15304 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15305
15306 # Commands used to build and install a shared archive.
15307 archive_cmds=$lt_archive_cmds_F77
15308 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15309 postinstall_cmds=$lt_postinstall_cmds
15310 postuninstall_cmds=$lt_postuninstall_cmds
15311
15312 # Commands used to build a loadable module (assumed same as above if empty)
15313 module_cmds=$lt_module_cmds_F77
15314 module_expsym_cmds=$lt_module_expsym_cmds_F77
15315
15316 # Commands to strip libraries.
15317 old_striplib=$lt_old_striplib
15318 striplib=$lt_striplib
15319
15320 # Dependencies to place before the objects being linked to create a
15321 # shared library.
15322 predep_objects=$lt_predep_objects_F77
15323
15324 # Dependencies to place after the objects being linked to create a
15325 # shared library.
15326 postdep_objects=$lt_postdep_objects_F77
15327
15328 # Dependencies to place before the objects being linked to create a
15329 # shared library.
15330 predeps=$lt_predeps_F77
15331
15332 # Dependencies to place after the objects being linked to create a
15333 # shared library.
15334 postdeps=$lt_postdeps_F77
15335
15336 # The library search path used internally by the compiler when linking
15337 # a shared library.
15338 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15339
15340 # Method to check whether dependent libraries are shared objects.
15341 deplibs_check_method=$lt_deplibs_check_method
15342
15343 # Command to use when deplibs_check_method == file_magic.
15344 file_magic_cmd=$lt_file_magic_cmd
15345
15346 # Flag that allows shared libraries with undefined symbols to be built.
15347 allow_undefined_flag=$lt_allow_undefined_flag_F77
15348
15349 # Flag that forces no undefined symbols.
15350 no_undefined_flag=$lt_no_undefined_flag_F77
15351
15352 # Commands used to finish a libtool library installation in a directory.
15353 finish_cmds=$lt_finish_cmds
15354
15355 # Same as above, but a single script fragment to be evaled but not shown.
15356 finish_eval=$lt_finish_eval
15357
15358 # Take the output of nm and produce a listing of raw symbols and C names.
15359 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15360
15361 # Transform the output of nm in a proper C declaration
15362 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15363
15364 # Transform the output of nm in a C name address pair
15365 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15366
15367 # This is the shared library runtime path variable.
15368 runpath_var=$runpath_var
15369
15370 # This is the shared library path variable.
15371 shlibpath_var=$shlibpath_var
15372
15373 # Is shlibpath searched before the hard-coded library search path?
15374 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15375
15376 # How to hardcode a shared library path into an executable.
15377 hardcode_action=$hardcode_action_F77
15378
15379 # Whether we should hardcode library paths into libraries.
15380 hardcode_into_libs=$hardcode_into_libs
15381
15382 # Flag to hardcode \$libdir into a binary during linking.
15383 # This must work even if \$libdir does not exist.
15384 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15385
15386 # If ld is used when linking, flag to hardcode \$libdir into
15387 # a binary during linking. This must work even if \$libdir does
15388 # not exist.
15389 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15390
15391 # Whether we need a single -rpath flag with a separated argument.
15392 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15393
15394 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15395 # resulting binary.
15396 hardcode_direct=$hardcode_direct_F77
15397
15398 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15399 # resulting binary.
15400 hardcode_minus_L=$hardcode_minus_L_F77
15401
15402 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15403 # the resulting binary.
15404 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15405
15406 # Set to yes if building a shared library automatically hardcodes DIR into the library
15407 # and all subsequent libraries and executables linked against it.
15408 hardcode_automatic=$hardcode_automatic_F77
15409
15410 # Variables whose values should be saved in libtool wrapper scripts and
15411 # restored at relink time.
15412 variables_saved_for_relink="$variables_saved_for_relink"
15413
15414 # Whether libtool must link a program against all its dependency libraries.
15415 link_all_deplibs=$link_all_deplibs_F77
15416
15417 # Compile-time system search path for libraries
15418 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15419
15420 # Run-time system search path for libraries
15421 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15422
15423 # Fix the shell variable \$srcfile for the compiler.
15424 fix_srcfile_path="$fix_srcfile_path_F77"
15425
15426 # Set to yes if exported symbols are required.
15427 always_export_symbols=$always_export_symbols_F77
15428
15429 # The commands to list exported symbols.
15430 export_symbols_cmds=$lt_export_symbols_cmds_F77
15431
15432 # The commands to extract the exported symbol list from a shared archive.
15433 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15434
15435 # Symbols that should not be listed in the preloaded symbols.
15436 exclude_expsyms=$lt_exclude_expsyms_F77
15437
15438 # Symbols that must always be exported.
15439 include_expsyms=$lt_include_expsyms_F77
15440
15441 # ### END LIBTOOL TAG CONFIG: $tagname
15442
15443 __EOF__
15444
15445
15446 else
15447   # If there is no Makefile yet, we rely on a make rule to execute
15448   # `config.status --recheck' to rerun these tests and create the
15449   # libtool script then.
15450   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15451   if test -f "$ltmain_in"; then
15452     test -f Makefile && make "$ltmain"
15453   fi
15454 fi
15455
15456
15457 ac_ext=c
15458 ac_cpp='$CPP $CPPFLAGS'
15459 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15460 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15462
15463 CC="$lt_save_CC"
15464
15465         else
15466           tagname=""
15467         fi
15468         ;;
15469
15470       GCJ)
15471         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15472
15473
15474
15475 # Source file extension for Java test sources.
15476 ac_ext=java
15477
15478 # Object file extension for compiled Java test sources.
15479 objext=o
15480 objext_GCJ=$objext
15481
15482 # Code to be used in simple compile tests
15483 lt_simple_compile_test_code="class foo {}\n"
15484
15485 # Code to be used in simple link tests
15486 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15487
15488 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15489
15490 # If no C compiler was specified, use CC.
15491 LTCC=${LTCC-"$CC"}
15492
15493 # If no C compiler flags were specified, use CFLAGS.
15494 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15495
15496 # Allow CC to be a program name with arguments.
15497 compiler=$CC
15498
15499
15500 # save warnings/boilerplate of simple test code
15501 ac_outfile=conftest.$ac_objext
15502 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15503 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15504 _lt_compiler_boilerplate=`cat conftest.err`
15505 $rm conftest*
15506
15507 ac_outfile=conftest.$ac_objext
15508 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15509 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15510 _lt_linker_boilerplate=`cat conftest.err`
15511 $rm conftest*
15512
15513
15514 # Allow CC to be a program name with arguments.
15515 lt_save_CC="$CC"
15516 CC=${GCJ-"gcj"}
15517 compiler=$CC
15518 compiler_GCJ=$CC
15519 for cc_temp in $compiler""; do
15520   case $cc_temp in
15521     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15522     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15523     \-*) ;;
15524     *) break;;
15525   esac
15526 done
15527 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15528
15529
15530 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15531 archive_cmds_need_lc_GCJ=no
15532
15533 old_archive_cmds_GCJ=$old_archive_cmds
15534
15535
15536 lt_prog_compiler_no_builtin_flag_GCJ=
15537
15538 if test "$GCC" = yes; then
15539   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15540
15541
15542 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15543 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15544 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15545   echo $ECHO_N "(cached) $ECHO_C" >&6
15546 else
15547   lt_cv_prog_compiler_rtti_exceptions=no
15548   ac_outfile=conftest.$ac_objext
15549    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15550    lt_compiler_flag="-fno-rtti -fno-exceptions"
15551    # Insert the option either (1) after the last *FLAGS variable, or
15552    # (2) before a word containing "conftest.", or (3) at the end.
15553    # Note that $ac_compile itself does not contain backslashes and begins
15554    # with a dollar sign (not a hyphen), so the echo should work correctly.
15555    # The option is referenced via a variable to avoid confusing sed.
15556    lt_compile=`echo "$ac_compile" | $SED \
15557    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15558    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15559    -e 's:$: $lt_compiler_flag:'`
15560    (eval echo "\"\$as_me:15560: $lt_compile\"" >&5)
15561    (eval "$lt_compile" 2>conftest.err)
15562    ac_status=$?
15563    cat conftest.err >&5
15564    echo "$as_me:15564: \$? = $ac_status" >&5
15565    if (exit $ac_status) && test -s "$ac_outfile"; then
15566      # The compiler can only warn and ignore the option if not recognized
15567      # So say no if there are warnings other than the usual output.
15568      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15569      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15570      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15571        lt_cv_prog_compiler_rtti_exceptions=yes
15572      fi
15573    fi
15574    $rm conftest*
15575
15576 fi
15577 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15578 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15579
15580 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15581     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15582 else
15583     :
15584 fi
15585
15586 fi
15587
15588 lt_prog_compiler_wl_GCJ=
15589 lt_prog_compiler_pic_GCJ=
15590 lt_prog_compiler_static_GCJ=
15591
15592 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15593 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15594
15595   if test "$GCC" = yes; then
15596     lt_prog_compiler_wl_GCJ='-Wl,'
15597     lt_prog_compiler_static_GCJ='-static'
15598
15599     case $host_os in
15600       aix*)
15601       # All AIX code is PIC.
15602       if test "$host_cpu" = ia64; then
15603         # AIX 5 now supports IA64 processor
15604         lt_prog_compiler_static_GCJ='-Bstatic'
15605       fi
15606       ;;
15607
15608     amigaos*)
15609       # FIXME: we need at least 68020 code to build shared libraries, but
15610       # adding the `-m68020' flag to GCC prevents building anything better,
15611       # like `-m68040'.
15612       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15613       ;;
15614
15615     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15616       # PIC is the default for these OSes.
15617       ;;
15618
15619     mingw* | pw32* | os2*)
15620       # This hack is so that the source file can tell whether it is being
15621       # built for inclusion in a dll (and should export symbols for example).
15622       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15623       ;;
15624
15625     darwin* | rhapsody*)
15626       # PIC is the default on this platform
15627       # Common symbols not allowed in MH_DYLIB files
15628       lt_prog_compiler_pic_GCJ='-fno-common'
15629       ;;
15630
15631     interix3*)
15632       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15633       # Instead, we relocate shared libraries at runtime.
15634       ;;
15635
15636     msdosdjgpp*)
15637       # Just because we use GCC doesn't mean we suddenly get shared libraries
15638       # on systems that don't support them.
15639       lt_prog_compiler_can_build_shared_GCJ=no
15640       enable_shared=no
15641       ;;
15642
15643     sysv4*MP*)
15644       if test -d /usr/nec; then
15645         lt_prog_compiler_pic_GCJ=-Kconform_pic
15646       fi
15647       ;;
15648
15649     hpux*)
15650       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15651       # not for PA HP-UX.
15652       case $host_cpu in
15653       hppa*64*|ia64*)
15654         # +Z the default
15655         ;;
15656       *)
15657         lt_prog_compiler_pic_GCJ='-fPIC'
15658         ;;
15659       esac
15660       ;;
15661
15662     *)
15663       lt_prog_compiler_pic_GCJ='-fPIC'
15664       ;;
15665     esac
15666   else
15667     # PORTME Check for flag to pass linker flags through the system compiler.
15668     case $host_os in
15669     aix*)
15670       lt_prog_compiler_wl_GCJ='-Wl,'
15671       if test "$host_cpu" = ia64; then
15672         # AIX 5 now supports IA64 processor
15673         lt_prog_compiler_static_GCJ='-Bstatic'
15674       else
15675         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15676       fi
15677       ;;
15678       darwin*)
15679         # PIC is the default on this platform
15680         # Common symbols not allowed in MH_DYLIB files
15681        case $cc_basename in
15682          xlc*)
15683          lt_prog_compiler_pic_GCJ='-qnocommon'
15684          lt_prog_compiler_wl_GCJ='-Wl,'
15685          ;;
15686        esac
15687        ;;
15688
15689     mingw* | pw32* | os2*)
15690       # This hack is so that the source file can tell whether it is being
15691       # built for inclusion in a dll (and should export symbols for example).
15692       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15693       ;;
15694
15695     hpux9* | hpux10* | hpux11*)
15696       lt_prog_compiler_wl_GCJ='-Wl,'
15697       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15698       # not for PA HP-UX.
15699       case $host_cpu in
15700       hppa*64*|ia64*)
15701         # +Z the default
15702         ;;
15703       *)
15704         lt_prog_compiler_pic_GCJ='+Z'
15705         ;;
15706       esac
15707       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15708       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15709       ;;
15710
15711     irix5* | irix6* | nonstopux*)
15712       lt_prog_compiler_wl_GCJ='-Wl,'
15713       # PIC (with -KPIC) is the default.
15714       lt_prog_compiler_static_GCJ='-non_shared'
15715       ;;
15716
15717     newsos6)
15718       lt_prog_compiler_pic_GCJ='-KPIC'
15719       lt_prog_compiler_static_GCJ='-Bstatic'
15720       ;;
15721
15722     linux*)
15723       case $cc_basename in
15724       icc* | ecc*)
15725         lt_prog_compiler_wl_GCJ='-Wl,'
15726         lt_prog_compiler_pic_GCJ='-KPIC'
15727         lt_prog_compiler_static_GCJ='-static'
15728         ;;
15729       pgcc* | pgf77* | pgf90* | pgf95*)
15730         # Portland Group compilers (*not* the Pentium gcc compiler,
15731         # which looks to be a dead project)
15732         lt_prog_compiler_wl_GCJ='-Wl,'
15733         lt_prog_compiler_pic_GCJ='-fpic'
15734         lt_prog_compiler_static_GCJ='-Bstatic'
15735         ;;
15736       ccc*)
15737         lt_prog_compiler_wl_GCJ='-Wl,'
15738         # All Alpha code is PIC.
15739         lt_prog_compiler_static_GCJ='-non_shared'
15740         ;;
15741       esac
15742       ;;
15743
15744     osf3* | osf4* | osf5*)
15745       lt_prog_compiler_wl_GCJ='-Wl,'
15746       # All OSF/1 code is PIC.
15747       lt_prog_compiler_static_GCJ='-non_shared'
15748       ;;
15749
15750     solaris*)
15751       lt_prog_compiler_pic_GCJ='-KPIC'
15752       lt_prog_compiler_static_GCJ='-Bstatic'
15753       case $cc_basename in
15754       f77* | f90* | f95*)
15755         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15756       *)
15757         lt_prog_compiler_wl_GCJ='-Wl,';;
15758       esac
15759       ;;
15760
15761     sunos4*)
15762       lt_prog_compiler_wl_GCJ='-Qoption ld '
15763       lt_prog_compiler_pic_GCJ='-PIC'
15764       lt_prog_compiler_static_GCJ='-Bstatic'
15765       ;;
15766
15767     sysv4 | sysv4.2uw2* | sysv4.3*)
15768       lt_prog_compiler_wl_GCJ='-Wl,'
15769       lt_prog_compiler_pic_GCJ='-KPIC'
15770       lt_prog_compiler_static_GCJ='-Bstatic'
15771       ;;
15772
15773     sysv4*MP*)
15774       if test -d /usr/nec ;then
15775         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15776         lt_prog_compiler_static_GCJ='-Bstatic'
15777       fi
15778       ;;
15779
15780     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15781       lt_prog_compiler_wl_GCJ='-Wl,'
15782       lt_prog_compiler_pic_GCJ='-KPIC'
15783       lt_prog_compiler_static_GCJ='-Bstatic'
15784       ;;
15785
15786     unicos*)
15787       lt_prog_compiler_wl_GCJ='-Wl,'
15788       lt_prog_compiler_can_build_shared_GCJ=no
15789       ;;
15790
15791     uts4*)
15792       lt_prog_compiler_pic_GCJ='-pic'
15793       lt_prog_compiler_static_GCJ='-Bstatic'
15794       ;;
15795
15796     *)
15797       lt_prog_compiler_can_build_shared_GCJ=no
15798       ;;
15799     esac
15800   fi
15801
15802 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15803 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15804
15805 #
15806 # Check to make sure the PIC flag actually works.
15807 #
15808 if test -n "$lt_prog_compiler_pic_GCJ"; then
15809
15810 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15811 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15812 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15813   echo $ECHO_N "(cached) $ECHO_C" >&6
15814 else
15815   lt_prog_compiler_pic_works_GCJ=no
15816   ac_outfile=conftest.$ac_objext
15817    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15818    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15819    # Insert the option either (1) after the last *FLAGS variable, or
15820    # (2) before a word containing "conftest.", or (3) at the end.
15821    # Note that $ac_compile itself does not contain backslashes and begins
15822    # with a dollar sign (not a hyphen), so the echo should work correctly.
15823    # The option is referenced via a variable to avoid confusing sed.
15824    lt_compile=`echo "$ac_compile" | $SED \
15825    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15826    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15827    -e 's:$: $lt_compiler_flag:'`
15828    (eval echo "\"\$as_me:15828: $lt_compile\"" >&5)
15829    (eval "$lt_compile" 2>conftest.err)
15830    ac_status=$?
15831    cat conftest.err >&5
15832    echo "$as_me:15832: \$? = $ac_status" >&5
15833    if (exit $ac_status) && test -s "$ac_outfile"; then
15834      # The compiler can only warn and ignore the option if not recognized
15835      # So say no if there are warnings other than the usual output.
15836      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15837      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15838      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15839        lt_prog_compiler_pic_works_GCJ=yes
15840      fi
15841    fi
15842    $rm conftest*
15843
15844 fi
15845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15846 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15847
15848 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15849     case $lt_prog_compiler_pic_GCJ in
15850      "" | " "*) ;;
15851      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15852      esac
15853 else
15854     lt_prog_compiler_pic_GCJ=
15855      lt_prog_compiler_can_build_shared_GCJ=no
15856 fi
15857
15858 fi
15859 case $host_os in
15860   # For platforms which do not support PIC, -DPIC is meaningless:
15861   *djgpp*)
15862     lt_prog_compiler_pic_GCJ=
15863     ;;
15864   *)
15865     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15866     ;;
15867 esac
15868
15869 #
15870 # Check to make sure the static flag actually works.
15871 #
15872 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15873 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15874 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15875 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15876   echo $ECHO_N "(cached) $ECHO_C" >&6
15877 else
15878   lt_prog_compiler_static_works_GCJ=no
15879    save_LDFLAGS="$LDFLAGS"
15880    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15881    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15882    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15883      # The linker can only warn and ignore the option if not recognized
15884      # So say no if there are warnings
15885      if test -s conftest.err; then
15886        # Append any errors to the config.log.
15887        cat conftest.err 1>&5
15888        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15889        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15890        if diff conftest.exp conftest.er2 >/dev/null; then
15891          lt_prog_compiler_static_works_GCJ=yes
15892        fi
15893      else
15894        lt_prog_compiler_static_works_GCJ=yes
15895      fi
15896    fi
15897    $rm conftest*
15898    LDFLAGS="$save_LDFLAGS"
15899
15900 fi
15901 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15902 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15903
15904 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15905     :
15906 else
15907     lt_prog_compiler_static_GCJ=
15908 fi
15909
15910
15911 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15912 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15913 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15914   echo $ECHO_N "(cached) $ECHO_C" >&6
15915 else
15916   lt_cv_prog_compiler_c_o_GCJ=no
15917    $rm -r conftest 2>/dev/null
15918    mkdir conftest
15919    cd conftest
15920    mkdir out
15921    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15922
15923    lt_compiler_flag="-o out/conftest2.$ac_objext"
15924    # Insert the option either (1) after the last *FLAGS variable, or
15925    # (2) before a word containing "conftest.", or (3) at the end.
15926    # Note that $ac_compile itself does not contain backslashes and begins
15927    # with a dollar sign (not a hyphen), so the echo should work correctly.
15928    lt_compile=`echo "$ac_compile" | $SED \
15929    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15930    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15931    -e 's:$: $lt_compiler_flag:'`
15932    (eval echo "\"\$as_me:15932: $lt_compile\"" >&5)
15933    (eval "$lt_compile" 2>out/conftest.err)
15934    ac_status=$?
15935    cat out/conftest.err >&5
15936    echo "$as_me:15936: \$? = $ac_status" >&5
15937    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15938    then
15939      # The compiler can only warn and ignore the option if not recognized
15940      # So say no if there are warnings
15941      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15942      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15943      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15944        lt_cv_prog_compiler_c_o_GCJ=yes
15945      fi
15946    fi
15947    chmod u+w . 2>&5
15948    $rm conftest*
15949    # SGI C++ compiler will create directory out/ii_files/ for
15950    # template instantiation
15951    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15952    $rm out/* && rmdir out
15953    cd ..
15954    rmdir conftest
15955    $rm conftest*
15956
15957 fi
15958 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15959 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15960
15961
15962 hard_links="nottested"
15963 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15964   # do not overwrite the value of need_locks provided by the user
15965   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15966 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15967   hard_links=yes
15968   $rm conftest*
15969   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15970   touch conftest.a
15971   ln conftest.a conftest.b 2>&5 || hard_links=no
15972   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15973   echo "$as_me:$LINENO: result: $hard_links" >&5
15974 echo "${ECHO_T}$hard_links" >&6
15975   if test "$hard_links" = no; then
15976     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15977 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15978     need_locks=warn
15979   fi
15980 else
15981   need_locks=no
15982 fi
15983
15984 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15985 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15986
15987   runpath_var=
15988   allow_undefined_flag_GCJ=
15989   enable_shared_with_static_runtimes_GCJ=no
15990   archive_cmds_GCJ=
15991   archive_expsym_cmds_GCJ=
15992   old_archive_From_new_cmds_GCJ=
15993   old_archive_from_expsyms_cmds_GCJ=
15994   export_dynamic_flag_spec_GCJ=
15995   whole_archive_flag_spec_GCJ=
15996   thread_safe_flag_spec_GCJ=
15997   hardcode_libdir_flag_spec_GCJ=
15998   hardcode_libdir_flag_spec_ld_GCJ=
15999   hardcode_libdir_separator_GCJ=
16000   hardcode_direct_GCJ=no
16001   hardcode_minus_L_GCJ=no
16002   hardcode_shlibpath_var_GCJ=unsupported
16003   link_all_deplibs_GCJ=unknown
16004   hardcode_automatic_GCJ=no
16005   module_cmds_GCJ=
16006   module_expsym_cmds_GCJ=
16007   always_export_symbols_GCJ=no
16008   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16009   # include_expsyms should be a list of space-separated symbols to be *always*
16010   # included in the symbol list
16011   include_expsyms_GCJ=
16012   # exclude_expsyms can be an extended regexp of symbols to exclude
16013   # it will be wrapped by ` (' and `)$', so one must not match beginning or
16014   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16015   # as well as any symbol that contains `d'.
16016   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16017   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16018   # platforms (ab)use it in PIC code, but their linkers get confused if
16019   # the symbol is explicitly referenced.  Since portable code cannot
16020   # rely on this symbol name, it's probably fine to never include it in
16021   # preloaded symbol tables.
16022   extract_expsyms_cmds=
16023   # Just being paranoid about ensuring that cc_basename is set.
16024   for cc_temp in $compiler""; do
16025   case $cc_temp in
16026     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16027     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16028     \-*) ;;
16029     *) break;;
16030   esac
16031 done
16032 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16033
16034   case $host_os in
16035   cygwin* | mingw* | pw32*)
16036     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16037     # When not using gcc, we currently assume that we are using
16038     # Microsoft Visual C++.
16039     if test "$GCC" != yes; then
16040       with_gnu_ld=no
16041     fi
16042     ;;
16043   interix*)
16044     # we just hope/assume this is gcc and not c89 (= MSVC++)
16045     with_gnu_ld=yes
16046     ;;
16047   openbsd*)
16048     with_gnu_ld=no
16049     ;;
16050   esac
16051
16052   ld_shlibs_GCJ=yes
16053   if test "$with_gnu_ld" = yes; then
16054     # If archive_cmds runs LD, not CC, wlarc should be empty
16055     wlarc='${wl}'
16056
16057     # Set some defaults for GNU ld with shared library support. These
16058     # are reset later if shared libraries are not supported. Putting them
16059     # here allows them to be overridden if necessary.
16060     runpath_var=LD_RUN_PATH
16061     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16062     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16063     # ancient GNU ld didn't support --whole-archive et. al.
16064     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16065         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16066       else
16067         whole_archive_flag_spec_GCJ=
16068     fi
16069     supports_anon_versioning=no
16070     case `$LD -v 2>/dev/null` in
16071       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16072       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16073       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16074       *\ 2.11.*) ;; # other 2.11 versions
16075       *) supports_anon_versioning=yes ;;
16076     esac
16077
16078     # See if GNU ld supports shared libraries.
16079     case $host_os in
16080     aix3* | aix4* | aix5*)
16081       # On AIX/PPC, the GNU linker is very broken
16082       if test "$host_cpu" != ia64; then
16083         ld_shlibs_GCJ=no
16084         cat <<EOF 1>&2
16085
16086 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16087 *** to be unable to reliably create shared libraries on AIX.
16088 *** Therefore, libtool is disabling shared libraries support.  If you
16089 *** really care for shared libraries, you may want to modify your PATH
16090 *** so that a non-GNU linker is found, and then restart.
16091
16092 EOF
16093       fi
16094       ;;
16095
16096     amigaos*)
16097       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)'
16098       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16099       hardcode_minus_L_GCJ=yes
16100
16101       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16102       # that the semantics of dynamic libraries on AmigaOS, at least up
16103       # to version 4, is to share data among multiple programs linked
16104       # with the same dynamic library.  Since this doesn't match the
16105       # behavior of shared libraries on other platforms, we can't use
16106       # them.
16107       ld_shlibs_GCJ=no
16108       ;;
16109
16110     beos*)
16111       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16112         allow_undefined_flag_GCJ=unsupported
16113         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16114         # support --undefined.  This deserves some investigation.  FIXME
16115         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16116       else
16117         ld_shlibs_GCJ=no
16118       fi
16119       ;;
16120
16121     cygwin* | mingw* | pw32*)
16122       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16123       # as there is no search path for DLLs.
16124       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16125       allow_undefined_flag_GCJ=unsupported
16126       always_export_symbols_GCJ=no
16127       enable_shared_with_static_runtimes_GCJ=yes
16128       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16129
16130       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16131         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16132         # If the export-symbols file already is a .def file (1st line
16133         # is EXPORTS), use it as is; otherwise, prepend...
16134         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16135           cp $export_symbols $output_objdir/$soname.def;
16136         else
16137           echo EXPORTS > $output_objdir/$soname.def;
16138           cat $export_symbols >> $output_objdir/$soname.def;
16139         fi~
16140         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16141       else
16142         ld_shlibs_GCJ=no
16143       fi
16144       ;;
16145
16146     interix3*)
16147       hardcode_direct_GCJ=no
16148       hardcode_shlibpath_var_GCJ=no
16149       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16150       export_dynamic_flag_spec_GCJ='${wl}-E'
16151       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16152       # Instead, shared libraries are loaded at an image base (0x10000000 by
16153       # default) and relocated if they conflict, which is a slow very memory
16154       # consuming and fragmenting process.  To avoid this, we pick a random,
16155       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16156       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16157       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'
16158       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'
16159       ;;
16160
16161     linux*)
16162       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16163         tmp_addflag=
16164         case $cc_basename,$host_cpu in
16165         pgcc*)                          # Portland Group C compiler
16166           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'
16167           tmp_addflag=' $pic_flag'
16168           ;;
16169         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16170           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'
16171           tmp_addflag=' $pic_flag -Mnomain' ;;
16172         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16173           tmp_addflag=' -i_dynamic' ;;
16174         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16175           tmp_addflag=' -i_dynamic -nofor_main' ;;
16176         ifc* | ifort*)                  # Intel Fortran compiler
16177           tmp_addflag=' -nofor_main' ;;
16178         esac
16179         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16180
16181         if test $supports_anon_versioning = yes; then
16182           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16183   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16184   $echo "local: *; };" >> $output_objdir/$libname.ver~
16185           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16186         fi
16187       else
16188         ld_shlibs_GCJ=no
16189       fi
16190       ;;
16191
16192     netbsd*)
16193       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16194         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16195         wlarc=
16196       else
16197         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16198         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16199       fi
16200       ;;
16201
16202     solaris*)
16203       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16204         ld_shlibs_GCJ=no
16205         cat <<EOF 1>&2
16206
16207 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16208 *** create shared libraries on Solaris systems.  Therefore, libtool
16209 *** is disabling shared libraries support.  We urge you to upgrade GNU
16210 *** binutils to release 2.9.1 or newer.  Another option is to modify
16211 *** your PATH or compiler configuration so that the native linker is
16212 *** used, and then restart.
16213
16214 EOF
16215       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16216         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16217         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16218       else
16219         ld_shlibs_GCJ=no
16220       fi
16221       ;;
16222
16223     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16224       case `$LD -v 2>&1` in
16225         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16226         ld_shlibs_GCJ=no
16227         cat <<_LT_EOF 1>&2
16228
16229 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16230 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16231 *** is disabling shared libraries support.  We urge you to upgrade GNU
16232 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16233 *** your PATH or compiler configuration so that the native linker is
16234 *** used, and then restart.
16235
16236 _LT_EOF
16237         ;;
16238         *)
16239           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16240             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16241             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16242             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16243           else
16244             ld_shlibs_GCJ=no
16245           fi
16246         ;;
16247       esac
16248       ;;
16249
16250     sunos4*)
16251       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16252       wlarc=
16253       hardcode_direct_GCJ=yes
16254       hardcode_shlibpath_var_GCJ=no
16255       ;;
16256
16257     *)
16258       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16259         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16260         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16261       else
16262         ld_shlibs_GCJ=no
16263       fi
16264       ;;
16265     esac
16266
16267     if test "$ld_shlibs_GCJ" = no; then
16268       runpath_var=
16269       hardcode_libdir_flag_spec_GCJ=
16270       export_dynamic_flag_spec_GCJ=
16271       whole_archive_flag_spec_GCJ=
16272     fi
16273   else
16274     # PORTME fill in a description of your system's linker (not GNU ld)
16275     case $host_os in
16276     aix3*)
16277       allow_undefined_flag_GCJ=unsupported
16278       always_export_symbols_GCJ=yes
16279       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'
16280       # Note: this linker hardcodes the directories in LIBPATH if there
16281       # are no directories specified by -L.
16282       hardcode_minus_L_GCJ=yes
16283       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16284         # Neither direct hardcoding nor static linking is supported with a
16285         # broken collect2.
16286         hardcode_direct_GCJ=unsupported
16287       fi
16288       ;;
16289
16290     aix4* | aix5*)
16291       if test "$host_cpu" = ia64; then
16292         # On IA64, the linker does run time linking by default, so we don't
16293         # have to do anything special.
16294         aix_use_runtimelinking=no
16295         exp_sym_flag='-Bexport'
16296         no_entry_flag=""
16297       else
16298         # If we're using GNU nm, then we don't want the "-C" option.
16299         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16300         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16301           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'
16302         else
16303           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'
16304         fi
16305         aix_use_runtimelinking=no
16306
16307         # Test if we are trying to use run time linking or normal
16308         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16309         # need to do runtime linking.
16310         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16311           for ld_flag in $LDFLAGS; do
16312           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16313             aix_use_runtimelinking=yes
16314             break
16315           fi
16316           done
16317           ;;
16318         esac
16319
16320         exp_sym_flag='-bexport'
16321         no_entry_flag='-bnoentry'
16322       fi
16323
16324       # When large executables or shared objects are built, AIX ld can
16325       # have problems creating the table of contents.  If linking a library
16326       # or program results in "error TOC overflow" add -mminimal-toc to
16327       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16328       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16329
16330       archive_cmds_GCJ=''
16331       hardcode_direct_GCJ=yes
16332       hardcode_libdir_separator_GCJ=':'
16333       link_all_deplibs_GCJ=yes
16334
16335       if test "$GCC" = yes; then
16336         case $host_os in aix4.[012]|aix4.[012].*)
16337         # We only want to do this on AIX 4.2 and lower, the check
16338         # below for broken collect2 doesn't work under 4.3+
16339           collect2name=`${CC} -print-prog-name=collect2`
16340           if test -f "$collect2name" && \
16341            strings "$collect2name" | grep resolve_lib_name >/dev/null
16342           then
16343           # We have reworked collect2
16344           hardcode_direct_GCJ=yes
16345           else
16346           # We have old collect2
16347           hardcode_direct_GCJ=unsupported
16348           # It fails to find uninstalled libraries when the uninstalled
16349           # path is not listed in the libpath.  Setting hardcode_minus_L
16350           # to unsupported forces relinking
16351           hardcode_minus_L_GCJ=yes
16352           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16353           hardcode_libdir_separator_GCJ=
16354           fi
16355           ;;
16356         esac
16357         shared_flag='-shared'
16358         if test "$aix_use_runtimelinking" = yes; then
16359           shared_flag="$shared_flag "'${wl}-G'
16360         fi
16361       else
16362         # not using gcc
16363         if test "$host_cpu" = ia64; then
16364         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16365         # chokes on -Wl,-G. The following line is correct:
16366           shared_flag='-G'
16367         else
16368           if test "$aix_use_runtimelinking" = yes; then
16369             shared_flag='${wl}-G'
16370           else
16371             shared_flag='${wl}-bM:SRE'
16372           fi
16373         fi
16374       fi
16375
16376       # It seems that -bexpall does not export symbols beginning with
16377       # underscore (_), so it is better to generate a list of symbols to export.
16378       always_export_symbols_GCJ=yes
16379       if test "$aix_use_runtimelinking" = yes; then
16380         # Warning - without using the other runtime loading flags (-brtl),
16381         # -berok will link without error, but may produce a broken library.
16382         allow_undefined_flag_GCJ='-berok'
16383        # Determine the default libpath from the value encoded in an empty executable.
16384        cat >conftest.$ac_ext <<_ACEOF
16385 /* confdefs.h.  */
16386 _ACEOF
16387 cat confdefs.h >>conftest.$ac_ext
16388 cat >>conftest.$ac_ext <<_ACEOF
16389 /* end confdefs.h.  */
16390
16391 int
16392 main ()
16393 {
16394
16395   ;
16396   return 0;
16397 }
16398 _ACEOF
16399 rm -f conftest.$ac_objext conftest$ac_exeext
16400 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16401   (eval $ac_link) 2>conftest.er1
16402   ac_status=$?
16403   grep -v '^ *+' conftest.er1 >conftest.err
16404   rm -f conftest.er1
16405   cat conftest.err >&5
16406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16407   (exit $ac_status); } &&
16408          { ac_try='test -z "$ac_c_werror_flag"
16409                          || test ! -s conftest.err'
16410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16411   (eval $ac_try) 2>&5
16412   ac_status=$?
16413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414   (exit $ac_status); }; } &&
16415          { ac_try='test -s conftest$ac_exeext'
16416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16417   (eval $ac_try) 2>&5
16418   ac_status=$?
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); }; }; then
16421
16422 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16423 }'`
16424 # Check for a 64-bit object if we didn't find anything.
16425 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; }
16426 }'`; fi
16427 else
16428   echo "$as_me: failed program was:" >&5
16429 sed 's/^/| /' conftest.$ac_ext >&5
16430
16431 fi
16432 rm -f conftest.err conftest.$ac_objext \
16433       conftest$ac_exeext conftest.$ac_ext
16434 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16435
16436        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16437         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"
16438        else
16439         if test "$host_cpu" = ia64; then
16440           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16441           allow_undefined_flag_GCJ="-z nodefs"
16442           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"
16443         else
16444          # Determine the default libpath from the value encoded in an empty executable.
16445          cat >conftest.$ac_ext <<_ACEOF
16446 /* confdefs.h.  */
16447 _ACEOF
16448 cat confdefs.h >>conftest.$ac_ext
16449 cat >>conftest.$ac_ext <<_ACEOF
16450 /* end confdefs.h.  */
16451
16452 int
16453 main ()
16454 {
16455
16456   ;
16457   return 0;
16458 }
16459 _ACEOF
16460 rm -f conftest.$ac_objext conftest$ac_exeext
16461 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16462   (eval $ac_link) 2>conftest.er1
16463   ac_status=$?
16464   grep -v '^ *+' conftest.er1 >conftest.err
16465   rm -f conftest.er1
16466   cat conftest.err >&5
16467   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16468   (exit $ac_status); } &&
16469          { ac_try='test -z "$ac_c_werror_flag"
16470                          || test ! -s conftest.err'
16471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16472   (eval $ac_try) 2>&5
16473   ac_status=$?
16474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475   (exit $ac_status); }; } &&
16476          { ac_try='test -s conftest$ac_exeext'
16477   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16478   (eval $ac_try) 2>&5
16479   ac_status=$?
16480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481   (exit $ac_status); }; }; then
16482
16483 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16484 }'`
16485 # Check for a 64-bit object if we didn't find anything.
16486 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; }
16487 }'`; fi
16488 else
16489   echo "$as_me: failed program was:" >&5
16490 sed 's/^/| /' conftest.$ac_ext >&5
16491
16492 fi
16493 rm -f conftest.err conftest.$ac_objext \
16494       conftest$ac_exeext conftest.$ac_ext
16495 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16496
16497          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16498           # Warning - without using the other run time loading flags,
16499           # -berok will link without error, but may produce a broken library.
16500           no_undefined_flag_GCJ=' ${wl}-bernotok'
16501           allow_undefined_flag_GCJ=' ${wl}-berok'
16502           # Exported symbols can be pulled into shared objects from archives
16503           whole_archive_flag_spec_GCJ='$convenience'
16504           archive_cmds_need_lc_GCJ=yes
16505           # This is similar to how AIX traditionally builds its shared libraries.
16506           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'
16507         fi
16508       fi
16509       ;;
16510
16511     amigaos*)
16512       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)'
16513       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16514       hardcode_minus_L_GCJ=yes
16515       # see comment about different semantics on the GNU ld section
16516       ld_shlibs_GCJ=no
16517       ;;
16518
16519     bsdi[45]*)
16520       export_dynamic_flag_spec_GCJ=-rdynamic
16521       ;;
16522
16523     cygwin* | mingw* | pw32*)
16524       # When not using gcc, we currently assume that we are using
16525       # Microsoft Visual C++.
16526       # hardcode_libdir_flag_spec is actually meaningless, as there is
16527       # no search path for DLLs.
16528       hardcode_libdir_flag_spec_GCJ=' '
16529       allow_undefined_flag_GCJ=unsupported
16530       # Tell ltmain to make .lib files, not .a files.
16531       libext=lib
16532       # Tell ltmain to make .dll files, not .so files.
16533       shrext_cmds=".dll"
16534       # FIXME: Setting linknames here is a bad hack.
16535       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16536       # The linker will automatically build a .lib file if we build a DLL.
16537       old_archive_From_new_cmds_GCJ='true'
16538       # FIXME: Should let the user specify the lib program.
16539       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16540       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16541       enable_shared_with_static_runtimes_GCJ=yes
16542       ;;
16543
16544     darwin* | rhapsody*)
16545       case $host_os in
16546         rhapsody* | darwin1.[012])
16547          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16548          ;;
16549        *) # Darwin 1.3 on
16550          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16551            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16552          else
16553            case ${MACOSX_DEPLOYMENT_TARGET} in
16554              10.[012])
16555                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16556                ;;
16557              10.*)
16558                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16559                ;;
16560            esac
16561          fi
16562          ;;
16563       esac
16564       archive_cmds_need_lc_GCJ=no
16565       hardcode_direct_GCJ=no
16566       hardcode_automatic_GCJ=yes
16567       hardcode_shlibpath_var_GCJ=unsupported
16568       whole_archive_flag_spec_GCJ=''
16569       link_all_deplibs_GCJ=yes
16570     if test "$GCC" = yes ; then
16571         output_verbose_link_cmd='echo'
16572         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16573       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16574       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16575       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}'
16576       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}'
16577     else
16578       case $cc_basename in
16579         xlc*)
16580          output_verbose_link_cmd='echo'
16581          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16582          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16583           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16584          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}'
16585           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}'
16586           ;;
16587        *)
16588          ld_shlibs_GCJ=no
16589           ;;
16590       esac
16591     fi
16592       ;;
16593
16594     dgux*)
16595       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16596       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16597       hardcode_shlibpath_var_GCJ=no
16598       ;;
16599
16600     freebsd1*)
16601       ld_shlibs_GCJ=no
16602       ;;
16603
16604     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16605     # support.  Future versions do this automatically, but an explicit c++rt0.o
16606     # does not break anything, and helps significantly (at the cost of a little
16607     # extra space).
16608     freebsd2.2*)
16609       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16610       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16611       hardcode_direct_GCJ=yes
16612       hardcode_shlibpath_var_GCJ=no
16613       ;;
16614
16615     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16616     freebsd2*)
16617       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16618       hardcode_direct_GCJ=yes
16619       hardcode_minus_L_GCJ=yes
16620       hardcode_shlibpath_var_GCJ=no
16621       ;;
16622
16623     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16624     freebsd* | kfreebsd*-gnu | dragonfly*)
16625       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16626       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16627       hardcode_direct_GCJ=yes
16628       hardcode_shlibpath_var_GCJ=no
16629       ;;
16630
16631     hpux9*)
16632       if test "$GCC" = yes; then
16633         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'
16634       else
16635         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'
16636       fi
16637       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16638       hardcode_libdir_separator_GCJ=:
16639       hardcode_direct_GCJ=yes
16640
16641       # hardcode_minus_L: Not really in the search PATH,
16642       # but as the default location of the library.
16643       hardcode_minus_L_GCJ=yes
16644       export_dynamic_flag_spec_GCJ='${wl}-E'
16645       ;;
16646
16647     hpux10*)
16648       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16649         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16650       else
16651         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16652       fi
16653       if test "$with_gnu_ld" = no; then
16654         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16655         hardcode_libdir_separator_GCJ=:
16656
16657         hardcode_direct_GCJ=yes
16658         export_dynamic_flag_spec_GCJ='${wl}-E'
16659
16660         # hardcode_minus_L: Not really in the search PATH,
16661         # but as the default location of the library.
16662         hardcode_minus_L_GCJ=yes
16663       fi
16664       ;;
16665
16666     hpux11*)
16667       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16668         case $host_cpu in
16669         hppa*64*)
16670           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16671           ;;
16672         ia64*)
16673           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16674           ;;
16675         *)
16676           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16677           ;;
16678         esac
16679       else
16680         case $host_cpu in
16681         hppa*64*)
16682           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16683           ;;
16684         ia64*)
16685           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16686           ;;
16687         *)
16688           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16689           ;;
16690         esac
16691       fi
16692       if test "$with_gnu_ld" = no; then
16693         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16694         hardcode_libdir_separator_GCJ=:
16695
16696         case $host_cpu in
16697         hppa*64*|ia64*)
16698           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16699           hardcode_direct_GCJ=no
16700           hardcode_shlibpath_var_GCJ=no
16701           ;;
16702         *)
16703           hardcode_direct_GCJ=yes
16704           export_dynamic_flag_spec_GCJ='${wl}-E'
16705
16706           # hardcode_minus_L: Not really in the search PATH,
16707           # but as the default location of the library.
16708           hardcode_minus_L_GCJ=yes
16709           ;;
16710         esac
16711       fi
16712       ;;
16713
16714     irix5* | irix6* | nonstopux*)
16715       if test "$GCC" = yes; then
16716         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'
16717       else
16718         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'
16719         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16720       fi
16721       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16722       hardcode_libdir_separator_GCJ=:
16723       link_all_deplibs_GCJ=yes
16724       ;;
16725
16726     netbsd*)
16727       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16728         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16729       else
16730         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16731       fi
16732       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16733       hardcode_direct_GCJ=yes
16734       hardcode_shlibpath_var_GCJ=no
16735       ;;
16736
16737     newsos6)
16738       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16739       hardcode_direct_GCJ=yes
16740       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16741       hardcode_libdir_separator_GCJ=:
16742       hardcode_shlibpath_var_GCJ=no
16743       ;;
16744
16745     openbsd*)
16746       hardcode_direct_GCJ=yes
16747       hardcode_shlibpath_var_GCJ=no
16748       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16749         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16750         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16751         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16752         export_dynamic_flag_spec_GCJ='${wl}-E'
16753       else
16754        case $host_os in
16755          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16756            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16757            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16758            ;;
16759          *)
16760            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16761            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16762            ;;
16763        esac
16764       fi
16765       ;;
16766
16767     os2*)
16768       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16769       hardcode_minus_L_GCJ=yes
16770       allow_undefined_flag_GCJ=unsupported
16771       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'
16772       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16773       ;;
16774
16775     osf3*)
16776       if test "$GCC" = yes; then
16777         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16778         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'
16779       else
16780         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16781         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'
16782       fi
16783       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16784       hardcode_libdir_separator_GCJ=:
16785       ;;
16786
16787     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16788       if test "$GCC" = yes; then
16789         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16790         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'
16791         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16792       else
16793         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16794         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'
16795         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~
16796         $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'
16797
16798         # Both c and cxx compiler support -rpath directly
16799         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16800       fi
16801       hardcode_libdir_separator_GCJ=:
16802       ;;
16803
16804     solaris*)
16805       no_undefined_flag_GCJ=' -z text'
16806       if test "$GCC" = yes; then
16807         wlarc='${wl}'
16808         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16809         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16810           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16811       else
16812         wlarc=''
16813         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16814         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16815         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16816       fi
16817       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16818       hardcode_shlibpath_var_GCJ=no
16819       case $host_os in
16820       solaris2.[0-5] | solaris2.[0-5].*) ;;
16821       *)
16822         # The compiler driver will combine linker options so we
16823         # cannot just pass the convience library names through
16824         # without $wl, iff we do not link with $LD.
16825         # Luckily, gcc supports the same syntax we need for Sun Studio.
16826         # Supported since Solaris 2.6 (maybe 2.5.1?)
16827         case $wlarc in
16828         '')
16829           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16830         *)
16831           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' ;;
16832         esac ;;
16833       esac
16834       link_all_deplibs_GCJ=yes
16835       ;;
16836
16837     sunos4*)
16838       if test "x$host_vendor" = xsequent; then
16839         # Use $CC to link under sequent, because it throws in some extra .o
16840         # files that make .init and .fini sections work.
16841         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16842       else
16843         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16844       fi
16845       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16846       hardcode_direct_GCJ=yes
16847       hardcode_minus_L_GCJ=yes
16848       hardcode_shlibpath_var_GCJ=no
16849       ;;
16850
16851     sysv4)
16852       case $host_vendor in
16853         sni)
16854           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16855           hardcode_direct_GCJ=yes # is this really true???
16856         ;;
16857         siemens)
16858           ## LD is ld it makes a PLAMLIB
16859           ## CC just makes a GrossModule.
16860           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16861           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16862           hardcode_direct_GCJ=no
16863         ;;
16864         motorola)
16865           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16867         ;;
16868       esac
16869       runpath_var='LD_RUN_PATH'
16870       hardcode_shlibpath_var_GCJ=no
16871       ;;
16872
16873     sysv4.3*)
16874       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16875       hardcode_shlibpath_var_GCJ=no
16876       export_dynamic_flag_spec_GCJ='-Bexport'
16877       ;;
16878
16879     sysv4*MP*)
16880       if test -d /usr/nec; then
16881         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16882         hardcode_shlibpath_var_GCJ=no
16883         runpath_var=LD_RUN_PATH
16884         hardcode_runpath_var=yes
16885         ld_shlibs_GCJ=yes
16886       fi
16887       ;;
16888
16889     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16890       no_undefined_flag_GCJ='${wl}-z,text'
16891       archive_cmds_need_lc_GCJ=no
16892       hardcode_shlibpath_var_GCJ=no
16893       runpath_var='LD_RUN_PATH'
16894
16895       if test "$GCC" = yes; then
16896         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16897         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16898       else
16899         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16900         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16901       fi
16902       ;;
16903
16904     sysv5* | sco3.2v5* | sco5v6*)
16905       # Note: We can NOT use -z defs as we might desire, because we do not
16906       # link with -lc, and that would cause any symbols used from libc to
16907       # always be unresolved, which means just about no library would
16908       # ever link correctly.  If we're not using GNU ld we use -z text
16909       # though, which does catch some bad symbols but isn't as heavy-handed
16910       # as -z defs.
16911       no_undefined_flag_GCJ='${wl}-z,text'
16912       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16913       archive_cmds_need_lc_GCJ=no
16914       hardcode_shlibpath_var_GCJ=no
16915       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16916       hardcode_libdir_separator_GCJ=':'
16917       link_all_deplibs_GCJ=yes
16918       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16919       runpath_var='LD_RUN_PATH'
16920
16921       if test "$GCC" = yes; then
16922         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16923         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16924       else
16925         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16926         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16927       fi
16928       ;;
16929
16930     uts4*)
16931       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16932       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16933       hardcode_shlibpath_var_GCJ=no
16934       ;;
16935
16936     *)
16937       ld_shlibs_GCJ=no
16938       ;;
16939     esac
16940   fi
16941
16942 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16943 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16944 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16945
16946 #
16947 # Do we need to explicitly link libc?
16948 #
16949 case "x$archive_cmds_need_lc_GCJ" in
16950 x|xyes)
16951   # Assume -lc should be added
16952   archive_cmds_need_lc_GCJ=yes
16953
16954   if test "$enable_shared" = yes && test "$GCC" = yes; then
16955     case $archive_cmds_GCJ in
16956     *'~'*)
16957       # FIXME: we may have to deal with multi-command sequences.
16958       ;;
16959     '$CC '*)
16960       # Test whether the compiler implicitly links with -lc since on some
16961       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16962       # to ld, don't add -lc before -lgcc.
16963       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16964 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16965       $rm conftest*
16966       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16967
16968       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16969   (eval $ac_compile) 2>&5
16970   ac_status=$?
16971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16972   (exit $ac_status); } 2>conftest.err; then
16973         soname=conftest
16974         lib=conftest
16975         libobjs=conftest.$ac_objext
16976         deplibs=
16977         wl=$lt_prog_compiler_wl_GCJ
16978         pic_flag=$lt_prog_compiler_pic_GCJ
16979         compiler_flags=-v
16980         linker_flags=-v
16981         verstring=
16982         output_objdir=.
16983         libname=conftest
16984         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16985         allow_undefined_flag_GCJ=
16986         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16987   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16988   ac_status=$?
16989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16990   (exit $ac_status); }
16991         then
16992           archive_cmds_need_lc_GCJ=no
16993         else
16994           archive_cmds_need_lc_GCJ=yes
16995         fi
16996         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16997       else
16998         cat conftest.err 1>&5
16999       fi
17000       $rm conftest*
17001       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17002 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17003       ;;
17004     esac
17005   fi
17006   ;;
17007 esac
17008
17009 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17010 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17011 library_names_spec=
17012 libname_spec='lib$name'
17013 soname_spec=
17014 shrext_cmds=".so"
17015 postinstall_cmds=
17016 postuninstall_cmds=
17017 finish_cmds=
17018 finish_eval=
17019 shlibpath_var=
17020 shlibpath_overrides_runpath=unknown
17021 version_type=none
17022 dynamic_linker="$host_os ld.so"
17023 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17024 if test "$GCC" = yes; then
17025   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17026   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17027     # if the path contains ";" then we assume it to be the separator
17028     # otherwise default to the standard path separator (i.e. ":") - it is
17029     # assumed that no part of a normal pathname contains ";" but that should
17030     # okay in the real world where ";" in dirpaths is itself problematic.
17031     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17032   else
17033     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17034   fi
17035 else
17036   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17037 fi
17038 need_lib_prefix=unknown
17039 hardcode_into_libs=no
17040
17041 # when you set need_version to no, make sure it does not cause -set_version
17042 # flags to be left without arguments
17043 need_version=unknown
17044
17045 case $host_os in
17046 aix3*)
17047   version_type=linux
17048   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17049   shlibpath_var=LIBPATH
17050
17051   # AIX 3 has no versioning support, so we append a major version to the name.
17052   soname_spec='${libname}${release}${shared_ext}$major'
17053   ;;
17054
17055 aix4* | aix5*)
17056   version_type=linux
17057   need_lib_prefix=no
17058   need_version=no
17059   hardcode_into_libs=yes
17060   if test "$host_cpu" = ia64; then
17061     # AIX 5 supports IA64
17062     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17063     shlibpath_var=LD_LIBRARY_PATH
17064   else
17065     # With GCC up to 2.95.x, collect2 would create an import file
17066     # for dependence libraries.  The import file would start with
17067     # the line `#! .'.  This would cause the generated library to
17068     # depend on `.', always an invalid library.  This was fixed in
17069     # development snapshots of GCC prior to 3.0.
17070     case $host_os in
17071       aix4 | aix4.[01] | aix4.[01].*)
17072       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17073            echo ' yes '
17074            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17075         :
17076       else
17077         can_build_shared=no
17078       fi
17079       ;;
17080     esac
17081     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17082     # soname into executable. Probably we can add versioning support to
17083     # collect2, so additional links can be useful in future.
17084     if test "$aix_use_runtimelinking" = yes; then
17085       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17086       # instead of lib<name>.a to let people know that these are not
17087       # typical AIX shared libraries.
17088       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17089     else
17090       # We preserve .a as extension for shared libraries through AIX4.2
17091       # and later when we are not doing run time linking.
17092       library_names_spec='${libname}${release}.a $libname.a'
17093       soname_spec='${libname}${release}${shared_ext}$major'
17094     fi
17095     shlibpath_var=LIBPATH
17096   fi
17097   ;;
17098
17099 amigaos*)
17100   library_names_spec='$libname.ixlibrary $libname.a'
17101   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17102   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'
17103   ;;
17104
17105 beos*)
17106   library_names_spec='${libname}${shared_ext}'
17107   dynamic_linker="$host_os ld.so"
17108   shlibpath_var=LIBRARY_PATH
17109   ;;
17110
17111 bsdi[45]*)
17112   version_type=linux
17113   need_version=no
17114   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17115   soname_spec='${libname}${release}${shared_ext}$major'
17116   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17117   shlibpath_var=LD_LIBRARY_PATH
17118   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17119   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17120   # the default ld.so.conf also contains /usr/contrib/lib and
17121   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17122   # libtool to hard-code these into programs
17123   ;;
17124
17125 cygwin* | mingw* | pw32*)
17126   version_type=windows
17127   shrext_cmds=".dll"
17128   need_version=no
17129   need_lib_prefix=no
17130
17131   case $GCC,$host_os in
17132   yes,cygwin* | yes,mingw* | yes,pw32*)
17133     library_names_spec='$libname.dll.a'
17134     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17135     postinstall_cmds='base_file=`basename \${file}`~
17136       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17137       dldir=$destdir/`dirname \$dlpath`~
17138       test -d \$dldir || mkdir -p \$dldir~
17139       $install_prog $dir/$dlname \$dldir/$dlname~
17140       chmod a+x \$dldir/$dlname'
17141     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17142       dlpath=$dir/\$dldll~
17143        $rm \$dlpath'
17144     shlibpath_overrides_runpath=yes
17145
17146     case $host_os in
17147     cygwin*)
17148       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17149       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17150       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17151       ;;
17152     mingw*)
17153       # MinGW DLLs use traditional 'lib' prefix
17154       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17155       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17156       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17157         # It is most probably a Windows format PATH printed by
17158         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17159         # path with ; separators, and with drive letters. We can handle the
17160         # drive letters (cygwin fileutils understands them), so leave them,
17161         # especially as we might pass files found there to a mingw objdump,
17162         # which wouldn't understand a cygwinified path. Ahh.
17163         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17164       else
17165         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17166       fi
17167       ;;
17168     pw32*)
17169       # pw32 DLLs use 'pw' prefix rather than 'lib'
17170       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17171       ;;
17172     esac
17173     ;;
17174
17175   *)
17176     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17177     ;;
17178   esac
17179   dynamic_linker='Win32 ld.exe'
17180   # FIXME: first we should search . and the directory the executable is in
17181   shlibpath_var=PATH
17182   ;;
17183
17184 darwin* | rhapsody*)
17185   dynamic_linker="$host_os dyld"
17186   version_type=darwin
17187   need_lib_prefix=no
17188   need_version=no
17189   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17190   soname_spec='${libname}${release}${major}$shared_ext'
17191   shlibpath_overrides_runpath=yes
17192   shlibpath_var=DYLD_LIBRARY_PATH
17193   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17194   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17195   if test "$GCC" = yes; then
17196     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"`
17197   else
17198     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17199   fi
17200   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17201   ;;
17202
17203 dgux*)
17204   version_type=linux
17205   need_lib_prefix=no
17206   need_version=no
17207   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17208   soname_spec='${libname}${release}${shared_ext}$major'
17209   shlibpath_var=LD_LIBRARY_PATH
17210   ;;
17211
17212 freebsd1*)
17213   dynamic_linker=no
17214   ;;
17215
17216 kfreebsd*-gnu)
17217   version_type=linux
17218   need_lib_prefix=no
17219   need_version=no
17220   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17221   soname_spec='${libname}${release}${shared_ext}$major'
17222   shlibpath_var=LD_LIBRARY_PATH
17223   shlibpath_overrides_runpath=no
17224   hardcode_into_libs=yes
17225   dynamic_linker='GNU ld.so'
17226   ;;
17227
17228 freebsd* | dragonfly*)
17229   # DragonFly does not have aout.  When/if they implement a new
17230   # versioning mechanism, adjust this.
17231   if test -x /usr/bin/objformat; then
17232     objformat=`/usr/bin/objformat`
17233   else
17234     case $host_os in
17235     freebsd[123]*) objformat=aout ;;
17236     *) objformat=elf ;;
17237     esac
17238   fi
17239   version_type=freebsd-$objformat
17240   case $version_type in
17241     freebsd-elf*)
17242       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17243       need_version=no
17244       need_lib_prefix=no
17245       ;;
17246     freebsd-*)
17247       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17248       need_version=yes
17249       ;;
17250   esac
17251   shlibpath_var=LD_LIBRARY_PATH
17252   case $host_os in
17253   freebsd2*)
17254     shlibpath_overrides_runpath=yes
17255     ;;
17256   freebsd3.[01]* | freebsdelf3.[01]*)
17257     shlibpath_overrides_runpath=yes
17258     hardcode_into_libs=yes
17259     ;;
17260   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17261   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17262     shlibpath_overrides_runpath=no
17263     hardcode_into_libs=yes
17264     ;;
17265   freebsd*) # from 4.6 on
17266     shlibpath_overrides_runpath=yes
17267     hardcode_into_libs=yes
17268     ;;
17269   esac
17270   ;;
17271
17272 gnu*)
17273   version_type=linux
17274   need_lib_prefix=no
17275   need_version=no
17276   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17277   soname_spec='${libname}${release}${shared_ext}$major'
17278   shlibpath_var=LD_LIBRARY_PATH
17279   hardcode_into_libs=yes
17280   ;;
17281
17282 hpux9* | hpux10* | hpux11*)
17283   # Give a soname corresponding to the major version so that dld.sl refuses to
17284   # link against other versions.
17285   version_type=sunos
17286   need_lib_prefix=no
17287   need_version=no
17288   case $host_cpu in
17289   ia64*)
17290     shrext_cmds='.so'
17291     hardcode_into_libs=yes
17292     dynamic_linker="$host_os dld.so"
17293     shlibpath_var=LD_LIBRARY_PATH
17294     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17295     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17296     soname_spec='${libname}${release}${shared_ext}$major'
17297     if test "X$HPUX_IA64_MODE" = X32; then
17298       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17299     else
17300       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17301     fi
17302     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17303     ;;
17304    hppa*64*)
17305      shrext_cmds='.sl'
17306      hardcode_into_libs=yes
17307      dynamic_linker="$host_os dld.sl"
17308      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17309      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17310      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17311      soname_spec='${libname}${release}${shared_ext}$major'
17312      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17313      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17314      ;;
17315    *)
17316     shrext_cmds='.sl'
17317     dynamic_linker="$host_os dld.sl"
17318     shlibpath_var=SHLIB_PATH
17319     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17320     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17321     soname_spec='${libname}${release}${shared_ext}$major'
17322     ;;
17323   esac
17324   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17325   postinstall_cmds='chmod 555 $lib'
17326   ;;
17327
17328 interix3*)
17329   version_type=linux
17330   need_lib_prefix=no
17331   need_version=no
17332   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17333   soname_spec='${libname}${release}${shared_ext}$major'
17334   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17335   shlibpath_var=LD_LIBRARY_PATH
17336   shlibpath_overrides_runpath=no
17337   hardcode_into_libs=yes
17338   ;;
17339
17340 irix5* | irix6* | nonstopux*)
17341   case $host_os in
17342     nonstopux*) version_type=nonstopux ;;
17343     *)
17344         if test "$lt_cv_prog_gnu_ld" = yes; then
17345                 version_type=linux
17346         else
17347                 version_type=irix
17348         fi ;;
17349   esac
17350   need_lib_prefix=no
17351   need_version=no
17352   soname_spec='${libname}${release}${shared_ext}$major'
17353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17354   case $host_os in
17355   irix5* | nonstopux*)
17356     libsuff= shlibsuff=
17357     ;;
17358   *)
17359     case $LD in # libtool.m4 will add one of these switches to LD
17360     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17361       libsuff= shlibsuff= libmagic=32-bit;;
17362     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17363       libsuff=32 shlibsuff=N32 libmagic=N32;;
17364     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17365       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17366     *) libsuff= shlibsuff= libmagic=never-match;;
17367     esac
17368     ;;
17369   esac
17370   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17371   shlibpath_overrides_runpath=no
17372   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17373   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17374   hardcode_into_libs=yes
17375   ;;
17376
17377 # No shared lib support for Linux oldld, aout, or coff.
17378 linux*oldld* | linux*aout* | linux*coff*)
17379   dynamic_linker=no
17380   ;;
17381
17382 # This must be Linux ELF.
17383 linux*)
17384   version_type=linux
17385   need_lib_prefix=no
17386   need_version=no
17387   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17388   soname_spec='${libname}${release}${shared_ext}$major'
17389   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17390   shlibpath_var=LD_LIBRARY_PATH
17391   shlibpath_overrides_runpath=no
17392   # This implies no fast_install, which is unacceptable.
17393   # Some rework will be needed to allow for fast_install
17394   # before this can be enabled.
17395   hardcode_into_libs=yes
17396
17397   # find out which ABI we are using
17398   libsuff=
17399   case "$host_cpu" in
17400   x86_64*|s390x*|powerpc64*)
17401     echo '#line 17401 "configure"' > conftest.$ac_ext
17402     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17403   (eval $ac_compile) 2>&5
17404   ac_status=$?
17405   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406   (exit $ac_status); }; then
17407       case `/usr/bin/file conftest.$ac_objext` in
17408       *64-bit*)
17409         libsuff=64
17410         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17411         ;;
17412       esac
17413     fi
17414     rm -rf conftest*
17415     ;;
17416   esac
17417
17418   # Append ld.so.conf contents to the search path
17419   if test -f /etc/ld.so.conf; then
17420     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' ' '`
17421     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17422   fi
17423
17424   # We used to test for /lib/ld.so.1 and disable shared libraries on
17425   # powerpc, because MkLinux only supported shared libraries with the
17426   # GNU dynamic linker.  Since this was broken with cross compilers,
17427   # most powerpc-linux boxes support dynamic linking these days and
17428   # people can always --disable-shared, the test was removed, and we
17429   # assume the GNU/Linux dynamic linker is in use.
17430   dynamic_linker='GNU/Linux ld.so'
17431   ;;
17432
17433 knetbsd*-gnu)
17434   version_type=linux
17435   need_lib_prefix=no
17436   need_version=no
17437   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17438   soname_spec='${libname}${release}${shared_ext}$major'
17439   shlibpath_var=LD_LIBRARY_PATH
17440   shlibpath_overrides_runpath=no
17441   hardcode_into_libs=yes
17442   dynamic_linker='GNU ld.so'
17443   ;;
17444
17445 netbsd*)
17446   version_type=sunos
17447   need_lib_prefix=no
17448   need_version=no
17449   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17450     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17451     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17452     dynamic_linker='NetBSD (a.out) ld.so'
17453   else
17454     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17455     soname_spec='${libname}${release}${shared_ext}$major'
17456     dynamic_linker='NetBSD ld.elf_so'
17457   fi
17458   shlibpath_var=LD_LIBRARY_PATH
17459   shlibpath_overrides_runpath=yes
17460   hardcode_into_libs=yes
17461   ;;
17462
17463 newsos6)
17464   version_type=linux
17465   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17466   shlibpath_var=LD_LIBRARY_PATH
17467   shlibpath_overrides_runpath=yes
17468   ;;
17469
17470 nto-qnx*)
17471   version_type=linux
17472   need_lib_prefix=no
17473   need_version=no
17474   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17475   soname_spec='${libname}${release}${shared_ext}$major'
17476   shlibpath_var=LD_LIBRARY_PATH
17477   shlibpath_overrides_runpath=yes
17478   ;;
17479
17480 openbsd*)
17481   version_type=sunos
17482   sys_lib_dlsearch_path_spec="/usr/lib"
17483   need_lib_prefix=no
17484   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17485   case $host_os in
17486     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17487     *)                         need_version=no  ;;
17488   esac
17489   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17490   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17491   shlibpath_var=LD_LIBRARY_PATH
17492   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17493     case $host_os in
17494       openbsd2.[89] | openbsd2.[89].*)
17495         shlibpath_overrides_runpath=no
17496         ;;
17497       *)
17498         shlibpath_overrides_runpath=yes
17499         ;;
17500       esac
17501   else
17502     shlibpath_overrides_runpath=yes
17503   fi
17504   ;;
17505
17506 os2*)
17507   libname_spec='$name'
17508   shrext_cmds=".dll"
17509   need_lib_prefix=no
17510   library_names_spec='$libname${shared_ext} $libname.a'
17511   dynamic_linker='OS/2 ld.exe'
17512   shlibpath_var=LIBPATH
17513   ;;
17514
17515 osf3* | osf4* | osf5*)
17516   version_type=osf
17517   need_lib_prefix=no
17518   need_version=no
17519   soname_spec='${libname}${release}${shared_ext}$major'
17520   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17521   shlibpath_var=LD_LIBRARY_PATH
17522   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17523   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17524   ;;
17525
17526 solaris*)
17527   version_type=linux
17528   need_lib_prefix=no
17529   need_version=no
17530   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17531   soname_spec='${libname}${release}${shared_ext}$major'
17532   shlibpath_var=LD_LIBRARY_PATH
17533   shlibpath_overrides_runpath=yes
17534   hardcode_into_libs=yes
17535   # ldd complains unless libraries are executable
17536   postinstall_cmds='chmod +x $lib'
17537   ;;
17538
17539 sunos4*)
17540   version_type=sunos
17541   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17542   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17543   shlibpath_var=LD_LIBRARY_PATH
17544   shlibpath_overrides_runpath=yes
17545   if test "$with_gnu_ld" = yes; then
17546     need_lib_prefix=no
17547   fi
17548   need_version=yes
17549   ;;
17550
17551 sysv4 | sysv4.3*)
17552   version_type=linux
17553   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17554   soname_spec='${libname}${release}${shared_ext}$major'
17555   shlibpath_var=LD_LIBRARY_PATH
17556   case $host_vendor in
17557     sni)
17558       shlibpath_overrides_runpath=no
17559       need_lib_prefix=no
17560       export_dynamic_flag_spec='${wl}-Blargedynsym'
17561       runpath_var=LD_RUN_PATH
17562       ;;
17563     siemens)
17564       need_lib_prefix=no
17565       ;;
17566     motorola)
17567       need_lib_prefix=no
17568       need_version=no
17569       shlibpath_overrides_runpath=no
17570       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17571       ;;
17572   esac
17573   ;;
17574
17575 sysv4*MP*)
17576   if test -d /usr/nec ;then
17577     version_type=linux
17578     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17579     soname_spec='$libname${shared_ext}.$major'
17580     shlibpath_var=LD_LIBRARY_PATH
17581   fi
17582   ;;
17583
17584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17585   version_type=freebsd-elf
17586   need_lib_prefix=no
17587   need_version=no
17588   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17589   soname_spec='${libname}${release}${shared_ext}$major'
17590   shlibpath_var=LD_LIBRARY_PATH
17591   hardcode_into_libs=yes
17592   if test "$with_gnu_ld" = yes; then
17593     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17594     shlibpath_overrides_runpath=no
17595   else
17596     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17597     shlibpath_overrides_runpath=yes
17598     case $host_os in
17599       sco3.2v5*)
17600         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17601         ;;
17602     esac
17603   fi
17604   sys_lib_dlsearch_path_spec='/usr/lib'
17605   ;;
17606
17607 uts4*)
17608   version_type=linux
17609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17610   soname_spec='${libname}${release}${shared_ext}$major'
17611   shlibpath_var=LD_LIBRARY_PATH
17612   ;;
17613
17614 *)
17615   dynamic_linker=no
17616   ;;
17617 esac
17618 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17619 echo "${ECHO_T}$dynamic_linker" >&6
17620 test "$dynamic_linker" = no && can_build_shared=no
17621
17622 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17623 if test "$GCC" = yes; then
17624   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17625 fi
17626
17627 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17628 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17629 hardcode_action_GCJ=
17630 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17631    test -n "$runpath_var_GCJ" || \
17632    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17633
17634   # We can hardcode non-existant directories.
17635   if test "$hardcode_direct_GCJ" != no &&
17636      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17637      # have to relink, otherwise we might link with an installed library
17638      # when we should be linking with a yet-to-be-installed one
17639      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17640      test "$hardcode_minus_L_GCJ" != no; then
17641     # Linking always hardcodes the temporary library directory.
17642     hardcode_action_GCJ=relink
17643   else
17644     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17645     hardcode_action_GCJ=immediate
17646   fi
17647 else
17648   # We cannot hardcode anything, or else we can only hardcode existing
17649   # directories.
17650   hardcode_action_GCJ=unsupported
17651 fi
17652 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17653 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17654
17655 if test "$hardcode_action_GCJ" = relink; then
17656   # Fast installation is not supported
17657   enable_fast_install=no
17658 elif test "$shlibpath_overrides_runpath" = yes ||
17659      test "$enable_shared" = no; then
17660   # Fast installation is not necessary
17661   enable_fast_install=needless
17662 fi
17663
17664
17665 # The else clause should only fire when bootstrapping the
17666 # libtool distribution, otherwise you forgot to ship ltmain.sh
17667 # with your package, and you will get complaints that there are
17668 # no rules to generate ltmain.sh.
17669 if test -f "$ltmain"; then
17670   # See if we are running on zsh, and set the options which allow our commands through
17671   # without removal of \ escapes.
17672   if test -n "${ZSH_VERSION+set}" ; then
17673     setopt NO_GLOB_SUBST
17674   fi
17675   # Now quote all the things that may contain metacharacters while being
17676   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17677   # variables and quote the copies for generation of the libtool script.
17678   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17679     SED SHELL STRIP \
17680     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17681     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17682     deplibs_check_method reload_flag reload_cmds need_locks \
17683     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17684     lt_cv_sys_global_symbol_to_c_name_address \
17685     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17686     old_postinstall_cmds old_postuninstall_cmds \
17687     compiler_GCJ \
17688     CC_GCJ \
17689     LD_GCJ \
17690     lt_prog_compiler_wl_GCJ \
17691     lt_prog_compiler_pic_GCJ \
17692     lt_prog_compiler_static_GCJ \
17693     lt_prog_compiler_no_builtin_flag_GCJ \
17694     export_dynamic_flag_spec_GCJ \
17695     thread_safe_flag_spec_GCJ \
17696     whole_archive_flag_spec_GCJ \
17697     enable_shared_with_static_runtimes_GCJ \
17698     old_archive_cmds_GCJ \
17699     old_archive_from_new_cmds_GCJ \
17700     predep_objects_GCJ \
17701     postdep_objects_GCJ \
17702     predeps_GCJ \
17703     postdeps_GCJ \
17704     compiler_lib_search_path_GCJ \
17705     archive_cmds_GCJ \
17706     archive_expsym_cmds_GCJ \
17707     postinstall_cmds_GCJ \
17708     postuninstall_cmds_GCJ \
17709     old_archive_from_expsyms_cmds_GCJ \
17710     allow_undefined_flag_GCJ \
17711     no_undefined_flag_GCJ \
17712     export_symbols_cmds_GCJ \
17713     hardcode_libdir_flag_spec_GCJ \
17714     hardcode_libdir_flag_spec_ld_GCJ \
17715     hardcode_libdir_separator_GCJ \
17716     hardcode_automatic_GCJ \
17717     module_cmds_GCJ \
17718     module_expsym_cmds_GCJ \
17719     lt_cv_prog_compiler_c_o_GCJ \
17720     exclude_expsyms_GCJ \
17721     include_expsyms_GCJ; do
17722
17723     case $var in
17724     old_archive_cmds_GCJ | \
17725     old_archive_from_new_cmds_GCJ | \
17726     archive_cmds_GCJ | \
17727     archive_expsym_cmds_GCJ | \
17728     module_cmds_GCJ | \
17729     module_expsym_cmds_GCJ | \
17730     old_archive_from_expsyms_cmds_GCJ | \
17731     export_symbols_cmds_GCJ | \
17732     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17733     postinstall_cmds | postuninstall_cmds | \
17734     old_postinstall_cmds | old_postuninstall_cmds | \
17735     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17736       # Double-quote double-evaled strings.
17737       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17738       ;;
17739     *)
17740       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17741       ;;
17742     esac
17743   done
17744
17745   case $lt_echo in
17746   *'\$0 --fallback-echo"')
17747     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17748     ;;
17749   esac
17750
17751 cfgfile="$ofile"
17752
17753   cat <<__EOF__ >> "$cfgfile"
17754 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17755
17756 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17757
17758 # Shell to use when invoking shell scripts.
17759 SHELL=$lt_SHELL
17760
17761 # Whether or not to build shared libraries.
17762 build_libtool_libs=$enable_shared
17763
17764 # Whether or not to build static libraries.
17765 build_old_libs=$enable_static
17766
17767 # Whether or not to add -lc for building shared libraries.
17768 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17769
17770 # Whether or not to disallow shared libs when runtime libs are static
17771 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17772
17773 # Whether or not to optimize for fast installation.
17774 fast_install=$enable_fast_install
17775
17776 # The host system.
17777 host_alias=$host_alias
17778 host=$host
17779 host_os=$host_os
17780
17781 # The build system.
17782 build_alias=$build_alias
17783 build=$build
17784 build_os=$build_os
17785
17786 # An echo program that does not interpret backslashes.
17787 echo=$lt_echo
17788
17789 # The archiver.
17790 AR=$lt_AR
17791 AR_FLAGS=$lt_AR_FLAGS
17792
17793 # A C compiler.
17794 LTCC=$lt_LTCC
17795
17796 # LTCC compiler flags.
17797 LTCFLAGS=$lt_LTCFLAGS
17798
17799 # A language-specific compiler.
17800 CC=$lt_compiler_GCJ
17801
17802 # Is the compiler the GNU C compiler?
17803 with_gcc=$GCC_GCJ
17804
17805 # An ERE matcher.
17806 EGREP=$lt_EGREP
17807
17808 # The linker used to build libraries.
17809 LD=$lt_LD_GCJ
17810
17811 # Whether we need hard or soft links.
17812 LN_S=$lt_LN_S
17813
17814 # A BSD-compatible nm program.
17815 NM=$lt_NM
17816
17817 # A symbol stripping program
17818 STRIP=$lt_STRIP
17819
17820 # Used to examine libraries when file_magic_cmd begins "file"
17821 MAGIC_CMD=$MAGIC_CMD
17822
17823 # Used on cygwin: DLL creation program.
17824 DLLTOOL="$DLLTOOL"
17825
17826 # Used on cygwin: object dumper.
17827 OBJDUMP="$OBJDUMP"
17828
17829 # Used on cygwin: assembler.
17830 AS="$AS"
17831
17832 # The name of the directory that contains temporary libtool files.
17833 objdir=$objdir
17834
17835 # How to create reloadable object files.
17836 reload_flag=$lt_reload_flag
17837 reload_cmds=$lt_reload_cmds
17838
17839 # How to pass a linker flag through the compiler.
17840 wl=$lt_lt_prog_compiler_wl_GCJ
17841
17842 # Object file suffix (normally "o").
17843 objext="$ac_objext"
17844
17845 # Old archive suffix (normally "a").
17846 libext="$libext"
17847
17848 # Shared library suffix (normally ".so").
17849 shrext_cmds='$shrext_cmds'
17850
17851 # Executable file suffix (normally "").
17852 exeext="$exeext"
17853
17854 # Additional compiler flags for building library objects.
17855 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17856 pic_mode=$pic_mode
17857
17858 # What is the maximum length of a command?
17859 max_cmd_len=$lt_cv_sys_max_cmd_len
17860
17861 # Does compiler simultaneously support -c and -o options?
17862 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17863
17864 # Must we lock files when doing compilation?
17865 need_locks=$lt_need_locks
17866
17867 # Do we need the lib prefix for modules?
17868 need_lib_prefix=$need_lib_prefix
17869
17870 # Do we need a version for libraries?
17871 need_version=$need_version
17872
17873 # Whether dlopen is supported.
17874 dlopen_support=$enable_dlopen
17875
17876 # Whether dlopen of programs is supported.
17877 dlopen_self=$enable_dlopen_self
17878
17879 # Whether dlopen of statically linked programs is supported.
17880 dlopen_self_static=$enable_dlopen_self_static
17881
17882 # Compiler flag to prevent dynamic linking.
17883 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17884
17885 # Compiler flag to turn off builtin functions.
17886 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17887
17888 # Compiler flag to allow reflexive dlopens.
17889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17890
17891 # Compiler flag to generate shared objects directly from archives.
17892 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17893
17894 # Compiler flag to generate thread-safe objects.
17895 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17896
17897 # Library versioning type.
17898 version_type=$version_type
17899
17900 # Format of library name prefix.
17901 libname_spec=$lt_libname_spec
17902
17903 # List of archive names.  First name is the real one, the rest are links.
17904 # The last name is the one that the linker finds with -lNAME.
17905 library_names_spec=$lt_library_names_spec
17906
17907 # The coded name of the library, if different from the real name.
17908 soname_spec=$lt_soname_spec
17909
17910 # Commands used to build and install an old-style archive.
17911 RANLIB=$lt_RANLIB
17912 old_archive_cmds=$lt_old_archive_cmds_GCJ
17913 old_postinstall_cmds=$lt_old_postinstall_cmds
17914 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17915
17916 # Create an old-style archive from a shared archive.
17917 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17918
17919 # Create a temporary old-style archive to link instead of a shared archive.
17920 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17921
17922 # Commands used to build and install a shared archive.
17923 archive_cmds=$lt_archive_cmds_GCJ
17924 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17925 postinstall_cmds=$lt_postinstall_cmds
17926 postuninstall_cmds=$lt_postuninstall_cmds
17927
17928 # Commands used to build a loadable module (assumed same as above if empty)
17929 module_cmds=$lt_module_cmds_GCJ
17930 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17931
17932 # Commands to strip libraries.
17933 old_striplib=$lt_old_striplib
17934 striplib=$lt_striplib
17935
17936 # Dependencies to place before the objects being linked to create a
17937 # shared library.
17938 predep_objects=$lt_predep_objects_GCJ
17939
17940 # Dependencies to place after the objects being linked to create a
17941 # shared library.
17942 postdep_objects=$lt_postdep_objects_GCJ
17943
17944 # Dependencies to place before the objects being linked to create a
17945 # shared library.
17946 predeps=$lt_predeps_GCJ
17947
17948 # Dependencies to place after the objects being linked to create a
17949 # shared library.
17950 postdeps=$lt_postdeps_GCJ
17951
17952 # The library search path used internally by the compiler when linking
17953 # a shared library.
17954 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17955
17956 # Method to check whether dependent libraries are shared objects.
17957 deplibs_check_method=$lt_deplibs_check_method
17958
17959 # Command to use when deplibs_check_method == file_magic.
17960 file_magic_cmd=$lt_file_magic_cmd
17961
17962 # Flag that allows shared libraries with undefined symbols to be built.
17963 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17964
17965 # Flag that forces no undefined symbols.
17966 no_undefined_flag=$lt_no_undefined_flag_GCJ
17967
17968 # Commands used to finish a libtool library installation in a directory.
17969 finish_cmds=$lt_finish_cmds
17970
17971 # Same as above, but a single script fragment to be evaled but not shown.
17972 finish_eval=$lt_finish_eval
17973
17974 # Take the output of nm and produce a listing of raw symbols and C names.
17975 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17976
17977 # Transform the output of nm in a proper C declaration
17978 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17979
17980 # Transform the output of nm in a C name address pair
17981 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17982
17983 # This is the shared library runtime path variable.
17984 runpath_var=$runpath_var
17985
17986 # This is the shared library path variable.
17987 shlibpath_var=$shlibpath_var
17988
17989 # Is shlibpath searched before the hard-coded library search path?
17990 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17991
17992 # How to hardcode a shared library path into an executable.
17993 hardcode_action=$hardcode_action_GCJ
17994
17995 # Whether we should hardcode library paths into libraries.
17996 hardcode_into_libs=$hardcode_into_libs
17997
17998 # Flag to hardcode \$libdir into a binary during linking.
17999 # This must work even if \$libdir does not exist.
18000 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18001
18002 # If ld is used when linking, flag to hardcode \$libdir into
18003 # a binary during linking. This must work even if \$libdir does
18004 # not exist.
18005 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18006
18007 # Whether we need a single -rpath flag with a separated argument.
18008 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18009
18010 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18011 # resulting binary.
18012 hardcode_direct=$hardcode_direct_GCJ
18013
18014 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18015 # resulting binary.
18016 hardcode_minus_L=$hardcode_minus_L_GCJ
18017
18018 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18019 # the resulting binary.
18020 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18021
18022 # Set to yes if building a shared library automatically hardcodes DIR into the library
18023 # and all subsequent libraries and executables linked against it.
18024 hardcode_automatic=$hardcode_automatic_GCJ
18025
18026 # Variables whose values should be saved in libtool wrapper scripts and
18027 # restored at relink time.
18028 variables_saved_for_relink="$variables_saved_for_relink"
18029
18030 # Whether libtool must link a program against all its dependency libraries.
18031 link_all_deplibs=$link_all_deplibs_GCJ
18032
18033 # Compile-time system search path for libraries
18034 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18035
18036 # Run-time system search path for libraries
18037 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18038
18039 # Fix the shell variable \$srcfile for the compiler.
18040 fix_srcfile_path="$fix_srcfile_path_GCJ"
18041
18042 # Set to yes if exported symbols are required.
18043 always_export_symbols=$always_export_symbols_GCJ
18044
18045 # The commands to list exported symbols.
18046 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18047
18048 # The commands to extract the exported symbol list from a shared archive.
18049 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18050
18051 # Symbols that should not be listed in the preloaded symbols.
18052 exclude_expsyms=$lt_exclude_expsyms_GCJ
18053
18054 # Symbols that must always be exported.
18055 include_expsyms=$lt_include_expsyms_GCJ
18056
18057 # ### END LIBTOOL TAG CONFIG: $tagname
18058
18059 __EOF__
18060
18061
18062 else
18063   # If there is no Makefile yet, we rely on a make rule to execute
18064   # `config.status --recheck' to rerun these tests and create the
18065   # libtool script then.
18066   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18067   if test -f "$ltmain_in"; then
18068     test -f Makefile && make "$ltmain"
18069   fi
18070 fi
18071
18072
18073 ac_ext=c
18074 ac_cpp='$CPP $CPPFLAGS'
18075 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18076 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18077 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18078
18079 CC="$lt_save_CC"
18080
18081         else
18082           tagname=""
18083         fi
18084         ;;
18085
18086       RC)
18087
18088
18089
18090 # Source file extension for RC test sources.
18091 ac_ext=rc
18092
18093 # Object file extension for compiled RC test sources.
18094 objext=o
18095 objext_RC=$objext
18096
18097 # Code to be used in simple compile tests
18098 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18099
18100 # Code to be used in simple link tests
18101 lt_simple_link_test_code="$lt_simple_compile_test_code"
18102
18103 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18104
18105 # If no C compiler was specified, use CC.
18106 LTCC=${LTCC-"$CC"}
18107
18108 # If no C compiler flags were specified, use CFLAGS.
18109 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18110
18111 # Allow CC to be a program name with arguments.
18112 compiler=$CC
18113
18114
18115 # save warnings/boilerplate of simple test code
18116 ac_outfile=conftest.$ac_objext
18117 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18118 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18119 _lt_compiler_boilerplate=`cat conftest.err`
18120 $rm conftest*
18121
18122 ac_outfile=conftest.$ac_objext
18123 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18124 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18125 _lt_linker_boilerplate=`cat conftest.err`
18126 $rm conftest*
18127
18128
18129 # Allow CC to be a program name with arguments.
18130 lt_save_CC="$CC"
18131 CC=${RC-"windres"}
18132 compiler=$CC
18133 compiler_RC=$CC
18134 for cc_temp in $compiler""; do
18135   case $cc_temp in
18136     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18137     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18138     \-*) ;;
18139     *) break;;
18140   esac
18141 done
18142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18143
18144 lt_cv_prog_compiler_c_o_RC=yes
18145
18146 # The else clause should only fire when bootstrapping the
18147 # libtool distribution, otherwise you forgot to ship ltmain.sh
18148 # with your package, and you will get complaints that there are
18149 # no rules to generate ltmain.sh.
18150 if test -f "$ltmain"; then
18151   # See if we are running on zsh, and set the options which allow our commands through
18152   # without removal of \ escapes.
18153   if test -n "${ZSH_VERSION+set}" ; then
18154     setopt NO_GLOB_SUBST
18155   fi
18156   # Now quote all the things that may contain metacharacters while being
18157   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18158   # variables and quote the copies for generation of the libtool script.
18159   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18160     SED SHELL STRIP \
18161     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18162     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18163     deplibs_check_method reload_flag reload_cmds need_locks \
18164     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18165     lt_cv_sys_global_symbol_to_c_name_address \
18166     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18167     old_postinstall_cmds old_postuninstall_cmds \
18168     compiler_RC \
18169     CC_RC \
18170     LD_RC \
18171     lt_prog_compiler_wl_RC \
18172     lt_prog_compiler_pic_RC \
18173     lt_prog_compiler_static_RC \
18174     lt_prog_compiler_no_builtin_flag_RC \
18175     export_dynamic_flag_spec_RC \
18176     thread_safe_flag_spec_RC \
18177     whole_archive_flag_spec_RC \
18178     enable_shared_with_static_runtimes_RC \
18179     old_archive_cmds_RC \
18180     old_archive_from_new_cmds_RC \
18181     predep_objects_RC \
18182     postdep_objects_RC \
18183     predeps_RC \
18184     postdeps_RC \
18185     compiler_lib_search_path_RC \
18186     archive_cmds_RC \
18187     archive_expsym_cmds_RC \
18188     postinstall_cmds_RC \
18189     postuninstall_cmds_RC \
18190     old_archive_from_expsyms_cmds_RC \
18191     allow_undefined_flag_RC \
18192     no_undefined_flag_RC \
18193     export_symbols_cmds_RC \
18194     hardcode_libdir_flag_spec_RC \
18195     hardcode_libdir_flag_spec_ld_RC \
18196     hardcode_libdir_separator_RC \
18197     hardcode_automatic_RC \
18198     module_cmds_RC \
18199     module_expsym_cmds_RC \
18200     lt_cv_prog_compiler_c_o_RC \
18201     exclude_expsyms_RC \
18202     include_expsyms_RC; do
18203
18204     case $var in
18205     old_archive_cmds_RC | \
18206     old_archive_from_new_cmds_RC | \
18207     archive_cmds_RC | \
18208     archive_expsym_cmds_RC | \
18209     module_cmds_RC | \
18210     module_expsym_cmds_RC | \
18211     old_archive_from_expsyms_cmds_RC | \
18212     export_symbols_cmds_RC | \
18213     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18214     postinstall_cmds | postuninstall_cmds | \
18215     old_postinstall_cmds | old_postuninstall_cmds | \
18216     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18217       # Double-quote double-evaled strings.
18218       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18219       ;;
18220     *)
18221       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18222       ;;
18223     esac
18224   done
18225
18226   case $lt_echo in
18227   *'\$0 --fallback-echo"')
18228     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18229     ;;
18230   esac
18231
18232 cfgfile="$ofile"
18233
18234   cat <<__EOF__ >> "$cfgfile"
18235 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18236
18237 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18238
18239 # Shell to use when invoking shell scripts.
18240 SHELL=$lt_SHELL
18241
18242 # Whether or not to build shared libraries.
18243 build_libtool_libs=$enable_shared
18244
18245 # Whether or not to build static libraries.
18246 build_old_libs=$enable_static
18247
18248 # Whether or not to add -lc for building shared libraries.
18249 build_libtool_need_lc=$archive_cmds_need_lc_RC
18250
18251 # Whether or not to disallow shared libs when runtime libs are static
18252 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18253
18254 # Whether or not to optimize for fast installation.
18255 fast_install=$enable_fast_install
18256
18257 # The host system.
18258 host_alias=$host_alias
18259 host=$host
18260 host_os=$host_os
18261
18262 # The build system.
18263 build_alias=$build_alias
18264 build=$build
18265 build_os=$build_os
18266
18267 # An echo program that does not interpret backslashes.
18268 echo=$lt_echo
18269
18270 # The archiver.
18271 AR=$lt_AR
18272 AR_FLAGS=$lt_AR_FLAGS
18273
18274 # A C compiler.
18275 LTCC=$lt_LTCC
18276
18277 # LTCC compiler flags.
18278 LTCFLAGS=$lt_LTCFLAGS
18279
18280 # A language-specific compiler.
18281 CC=$lt_compiler_RC
18282
18283 # Is the compiler the GNU C compiler?
18284 with_gcc=$GCC_RC
18285
18286 # An ERE matcher.
18287 EGREP=$lt_EGREP
18288
18289 # The linker used to build libraries.
18290 LD=$lt_LD_RC
18291
18292 # Whether we need hard or soft links.
18293 LN_S=$lt_LN_S
18294
18295 # A BSD-compatible nm program.
18296 NM=$lt_NM
18297
18298 # A symbol stripping program
18299 STRIP=$lt_STRIP
18300
18301 # Used to examine libraries when file_magic_cmd begins "file"
18302 MAGIC_CMD=$MAGIC_CMD
18303
18304 # Used on cygwin: DLL creation program.
18305 DLLTOOL="$DLLTOOL"
18306
18307 # Used on cygwin: object dumper.
18308 OBJDUMP="$OBJDUMP"
18309
18310 # Used on cygwin: assembler.
18311 AS="$AS"
18312
18313 # The name of the directory that contains temporary libtool files.
18314 objdir=$objdir
18315
18316 # How to create reloadable object files.
18317 reload_flag=$lt_reload_flag
18318 reload_cmds=$lt_reload_cmds
18319
18320 # How to pass a linker flag through the compiler.
18321 wl=$lt_lt_prog_compiler_wl_RC
18322
18323 # Object file suffix (normally "o").
18324 objext="$ac_objext"
18325
18326 # Old archive suffix (normally "a").
18327 libext="$libext"
18328
18329 # Shared library suffix (normally ".so").
18330 shrext_cmds='$shrext_cmds'
18331
18332 # Executable file suffix (normally "").
18333 exeext="$exeext"
18334
18335 # Additional compiler flags for building library objects.
18336 pic_flag=$lt_lt_prog_compiler_pic_RC
18337 pic_mode=$pic_mode
18338
18339 # What is the maximum length of a command?
18340 max_cmd_len=$lt_cv_sys_max_cmd_len
18341
18342 # Does compiler simultaneously support -c and -o options?
18343 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18344
18345 # Must we lock files when doing compilation?
18346 need_locks=$lt_need_locks
18347
18348 # Do we need the lib prefix for modules?
18349 need_lib_prefix=$need_lib_prefix
18350
18351 # Do we need a version for libraries?
18352 need_version=$need_version
18353
18354 # Whether dlopen is supported.
18355 dlopen_support=$enable_dlopen
18356
18357 # Whether dlopen of programs is supported.
18358 dlopen_self=$enable_dlopen_self
18359
18360 # Whether dlopen of statically linked programs is supported.
18361 dlopen_self_static=$enable_dlopen_self_static
18362
18363 # Compiler flag to prevent dynamic linking.
18364 link_static_flag=$lt_lt_prog_compiler_static_RC
18365
18366 # Compiler flag to turn off builtin functions.
18367 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18368
18369 # Compiler flag to allow reflexive dlopens.
18370 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18371
18372 # Compiler flag to generate shared objects directly from archives.
18373 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18374
18375 # Compiler flag to generate thread-safe objects.
18376 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18377
18378 # Library versioning type.
18379 version_type=$version_type
18380
18381 # Format of library name prefix.
18382 libname_spec=$lt_libname_spec
18383
18384 # List of archive names.  First name is the real one, the rest are links.
18385 # The last name is the one that the linker finds with -lNAME.
18386 library_names_spec=$lt_library_names_spec
18387
18388 # The coded name of the library, if different from the real name.
18389 soname_spec=$lt_soname_spec
18390
18391 # Commands used to build and install an old-style archive.
18392 RANLIB=$lt_RANLIB
18393 old_archive_cmds=$lt_old_archive_cmds_RC
18394 old_postinstall_cmds=$lt_old_postinstall_cmds
18395 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18396
18397 # Create an old-style archive from a shared archive.
18398 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18399
18400 # Create a temporary old-style archive to link instead of a shared archive.
18401 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18402
18403 # Commands used to build and install a shared archive.
18404 archive_cmds=$lt_archive_cmds_RC
18405 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18406 postinstall_cmds=$lt_postinstall_cmds
18407 postuninstall_cmds=$lt_postuninstall_cmds
18408
18409 # Commands used to build a loadable module (assumed same as above if empty)
18410 module_cmds=$lt_module_cmds_RC
18411 module_expsym_cmds=$lt_module_expsym_cmds_RC
18412
18413 # Commands to strip libraries.
18414 old_striplib=$lt_old_striplib
18415 striplib=$lt_striplib
18416
18417 # Dependencies to place before the objects being linked to create a
18418 # shared library.
18419 predep_objects=$lt_predep_objects_RC
18420
18421 # Dependencies to place after the objects being linked to create a
18422 # shared library.
18423 postdep_objects=$lt_postdep_objects_RC
18424
18425 # Dependencies to place before the objects being linked to create a
18426 # shared library.
18427 predeps=$lt_predeps_RC
18428
18429 # Dependencies to place after the objects being linked to create a
18430 # shared library.
18431 postdeps=$lt_postdeps_RC
18432
18433 # The library search path used internally by the compiler when linking
18434 # a shared library.
18435 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18436
18437 # Method to check whether dependent libraries are shared objects.
18438 deplibs_check_method=$lt_deplibs_check_method
18439
18440 # Command to use when deplibs_check_method == file_magic.
18441 file_magic_cmd=$lt_file_magic_cmd
18442
18443 # Flag that allows shared libraries with undefined symbols to be built.
18444 allow_undefined_flag=$lt_allow_undefined_flag_RC
18445
18446 # Flag that forces no undefined symbols.
18447 no_undefined_flag=$lt_no_undefined_flag_RC
18448
18449 # Commands used to finish a libtool library installation in a directory.
18450 finish_cmds=$lt_finish_cmds
18451
18452 # Same as above, but a single script fragment to be evaled but not shown.
18453 finish_eval=$lt_finish_eval
18454
18455 # Take the output of nm and produce a listing of raw symbols and C names.
18456 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18457
18458 # Transform the output of nm in a proper C declaration
18459 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18460
18461 # Transform the output of nm in a C name address pair
18462 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18463
18464 # This is the shared library runtime path variable.
18465 runpath_var=$runpath_var
18466
18467 # This is the shared library path variable.
18468 shlibpath_var=$shlibpath_var
18469
18470 # Is shlibpath searched before the hard-coded library search path?
18471 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18472
18473 # How to hardcode a shared library path into an executable.
18474 hardcode_action=$hardcode_action_RC
18475
18476 # Whether we should hardcode library paths into libraries.
18477 hardcode_into_libs=$hardcode_into_libs
18478
18479 # Flag to hardcode \$libdir into a binary during linking.
18480 # This must work even if \$libdir does not exist.
18481 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18482
18483 # If ld is used when linking, flag to hardcode \$libdir into
18484 # a binary during linking. This must work even if \$libdir does
18485 # not exist.
18486 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18487
18488 # Whether we need a single -rpath flag with a separated argument.
18489 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18490
18491 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18492 # resulting binary.
18493 hardcode_direct=$hardcode_direct_RC
18494
18495 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18496 # resulting binary.
18497 hardcode_minus_L=$hardcode_minus_L_RC
18498
18499 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18500 # the resulting binary.
18501 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18502
18503 # Set to yes if building a shared library automatically hardcodes DIR into the library
18504 # and all subsequent libraries and executables linked against it.
18505 hardcode_automatic=$hardcode_automatic_RC
18506
18507 # Variables whose values should be saved in libtool wrapper scripts and
18508 # restored at relink time.
18509 variables_saved_for_relink="$variables_saved_for_relink"
18510
18511 # Whether libtool must link a program against all its dependency libraries.
18512 link_all_deplibs=$link_all_deplibs_RC
18513
18514 # Compile-time system search path for libraries
18515 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18516
18517 # Run-time system search path for libraries
18518 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18519
18520 # Fix the shell variable \$srcfile for the compiler.
18521 fix_srcfile_path="$fix_srcfile_path_RC"
18522
18523 # Set to yes if exported symbols are required.
18524 always_export_symbols=$always_export_symbols_RC
18525
18526 # The commands to list exported symbols.
18527 export_symbols_cmds=$lt_export_symbols_cmds_RC
18528
18529 # The commands to extract the exported symbol list from a shared archive.
18530 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18531
18532 # Symbols that should not be listed in the preloaded symbols.
18533 exclude_expsyms=$lt_exclude_expsyms_RC
18534
18535 # Symbols that must always be exported.
18536 include_expsyms=$lt_include_expsyms_RC
18537
18538 # ### END LIBTOOL TAG CONFIG: $tagname
18539
18540 __EOF__
18541
18542
18543 else
18544   # If there is no Makefile yet, we rely on a make rule to execute
18545   # `config.status --recheck' to rerun these tests and create the
18546   # libtool script then.
18547   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18548   if test -f "$ltmain_in"; then
18549     test -f Makefile && make "$ltmain"
18550   fi
18551 fi
18552
18553
18554 ac_ext=c
18555 ac_cpp='$CPP $CPPFLAGS'
18556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18559
18560 CC="$lt_save_CC"
18561
18562         ;;
18563
18564       *)
18565         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18566 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18567    { (exit 1); exit 1; }; }
18568         ;;
18569       esac
18570
18571       # Append the new tag name to the list of available tags.
18572       if test -n "$tagname" ; then
18573       available_tags="$available_tags $tagname"
18574     fi
18575     fi
18576   done
18577   IFS="$lt_save_ifs"
18578
18579   # Now substitute the updated list of available tags.
18580   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18581     mv "${ofile}T" "$ofile"
18582     chmod +x "$ofile"
18583   else
18584     rm -f "${ofile}T"
18585     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18586 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18587    { (exit 1); exit 1; }; }
18588   fi
18589 fi
18590
18591
18592
18593 # This can be used to rebuild libtool when needed
18594 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18595
18596 # Always use our own libtool.
18597 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18598
18599 # Prevent multiple expansion
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620
18621 case $target in
18622 *apple-darwin*)  use_mac_ta="yes" ;;
18623 *) use_libcurl="yes" ;;
18624 esac
18625
18626 if test "x$use_libcurl" = "xyes"; then
18627     echo "$as_me:$LINENO: checking for libcurl" >&5
18628 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6
18629     if CURL_LDFLAGS=`sh -c 'curl-config --libs' 2>&5` && \
18630        CURL_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
18631             echo "$as_me:$LINENO: result: found" >&5
18632 echo "${ECHO_T}found" >&6
18633
18634
18635     else
18636             echo "$as_me:$LINENO: result: missing" >&5
18637 echo "${ECHO_T}missing" >&6
18638             { { echo "$as_me:$LINENO: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&5
18639 echo "$as_me: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&2;}
18640    { (exit 1); exit 1; }; }
18641     fi
18642 fi
18643
18644 if test "x$use_mac_ta" = "xyes"; then
18645     CURL_LDFLAGS="-framework CoreServices"
18646
18647 fi
18648
18649
18650
18651 for ac_header in time.h
18652 do
18653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18655   echo "$as_me:$LINENO: checking for $ac_header" >&5
18656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18657 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18658   echo $ECHO_N "(cached) $ECHO_C" >&6
18659 fi
18660 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18661 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18662 else
18663   # Is the header compilable?
18664 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18666 cat >conftest.$ac_ext <<_ACEOF
18667 /* confdefs.h.  */
18668 _ACEOF
18669 cat confdefs.h >>conftest.$ac_ext
18670 cat >>conftest.$ac_ext <<_ACEOF
18671 /* end confdefs.h.  */
18672 $ac_includes_default
18673 #include <$ac_header>
18674 _ACEOF
18675 rm -f conftest.$ac_objext
18676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18677   (eval $ac_compile) 2>conftest.er1
18678   ac_status=$?
18679   grep -v '^ *+' conftest.er1 >conftest.err
18680   rm -f conftest.er1
18681   cat conftest.err >&5
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); } &&
18684          { ac_try='test -z "$ac_c_werror_flag"
18685                          || test ! -s conftest.err'
18686   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18687   (eval $ac_try) 2>&5
18688   ac_status=$?
18689   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18690   (exit $ac_status); }; } &&
18691          { ac_try='test -s conftest.$ac_objext'
18692   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18693   (eval $ac_try) 2>&5
18694   ac_status=$?
18695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18696   (exit $ac_status); }; }; then
18697   ac_header_compiler=yes
18698 else
18699   echo "$as_me: failed program was:" >&5
18700 sed 's/^/| /' conftest.$ac_ext >&5
18701
18702 ac_header_compiler=no
18703 fi
18704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18706 echo "${ECHO_T}$ac_header_compiler" >&6
18707
18708 # Is the header present?
18709 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18711 cat >conftest.$ac_ext <<_ACEOF
18712 /* confdefs.h.  */
18713 _ACEOF
18714 cat confdefs.h >>conftest.$ac_ext
18715 cat >>conftest.$ac_ext <<_ACEOF
18716 /* end confdefs.h.  */
18717 #include <$ac_header>
18718 _ACEOF
18719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18720   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18721   ac_status=$?
18722   grep -v '^ *+' conftest.er1 >conftest.err
18723   rm -f conftest.er1
18724   cat conftest.err >&5
18725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18726   (exit $ac_status); } >/dev/null; then
18727   if test -s conftest.err; then
18728     ac_cpp_err=$ac_c_preproc_warn_flag
18729     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18730   else
18731     ac_cpp_err=
18732   fi
18733 else
18734   ac_cpp_err=yes
18735 fi
18736 if test -z "$ac_cpp_err"; then
18737   ac_header_preproc=yes
18738 else
18739   echo "$as_me: failed program was:" >&5
18740 sed 's/^/| /' conftest.$ac_ext >&5
18741
18742   ac_header_preproc=no
18743 fi
18744 rm -f conftest.err conftest.$ac_ext
18745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18746 echo "${ECHO_T}$ac_header_preproc" >&6
18747
18748 # So?  What about this header?
18749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18750   yes:no: )
18751     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18753     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18755     ac_header_preproc=yes
18756     ;;
18757   no:yes:* )
18758     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18760     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18761 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18762     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18764     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18765 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18768     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18770     (
18771       cat <<\_ASBOX
18772 ## ------------------------------------------ ##
18773 ## Report this to the AC_PACKAGE_NAME lists.  ##
18774 ## ------------------------------------------ ##
18775 _ASBOX
18776     ) |
18777       sed "s/^/$as_me: WARNING:     /" >&2
18778     ;;
18779 esac
18780 echo "$as_me:$LINENO: checking for $ac_header" >&5
18781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18782 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18783   echo $ECHO_N "(cached) $ECHO_C" >&6
18784 else
18785   eval "$as_ac_Header=\$ac_header_preproc"
18786 fi
18787 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18788 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18789
18790 fi
18791 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18792   cat >>confdefs.h <<_ACEOF
18793 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18794 _ACEOF
18795
18796 fi
18797
18798 done
18799
18800
18801 # Check whether --enable-unit-tests or --disable-unit-tests was given.
18802 if test "${enable_unit_tests+set}" = set; then
18803   enableval="$enable_unit_tests"
18804   enable_unit_tests="$enableval"
18805 else
18806   enable_unit_tests="no"
18807 fi;
18808 # Check whether --enable-integration-tests or --disable-integration-tests was given.
18809 if test "${enable_integration_tests+set}" = set; then
18810   enableval="$enable_integration_tests"
18811   enable_integration_tests="$enableval"
18812 else
18813   enable_integration_tests="no"
18814 fi;
18815 # Check whether --enable-assert or --disable-assert was given.
18816 if test "${enable_assert+set}" = set; then
18817   enableval="$enable_assert"
18818   enable_assert="$enableval"
18819 else
18820   enable_assert="no"
18821 fi;
18822
18823 if test $enable_assert == "no"; then
18824
18825 cat >>confdefs.h <<\_ACEOF
18826 #define NDEBUG 1
18827 _ACEOF
18828
18829 fi
18830
18831 # Optionally use wchar_t for unicode strings
18832 # Check whether --enable-wchar or --disable-wchar was given.
18833 if test "${enable_wchar+set}" = set; then
18834   enableval="$enable_wchar"
18835   enable_wchar="$enableval"
18836 else
18837   enable_wchar="no"
18838 fi;
18839
18840 if test $enable_wchar == "yes"; then
18841
18842 cat >>confdefs.h <<\_ACEOF
18843 #define USE_WCHAR 1
18844 _ACEOF
18845
18846
18847 for ac_header in wchar.h
18848 do
18849 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18850 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18851   echo "$as_me:$LINENO: checking for $ac_header" >&5
18852 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18853 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 fi
18856 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18857 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18858 else
18859   # Is the header compilable?
18860 echo "$as_me:$LINENO: checking $ac_header usability" >&5
18861 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
18862 cat >conftest.$ac_ext <<_ACEOF
18863 /* confdefs.h.  */
18864 _ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h.  */
18868 $ac_includes_default
18869 #include <$ac_header>
18870 _ACEOF
18871 rm -f conftest.$ac_objext
18872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18873   (eval $ac_compile) 2>conftest.er1
18874   ac_status=$?
18875   grep -v '^ *+' conftest.er1 >conftest.err
18876   rm -f conftest.er1
18877   cat conftest.err >&5
18878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879   (exit $ac_status); } &&
18880          { ac_try='test -z "$ac_c_werror_flag"
18881                          || test ! -s conftest.err'
18882   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18883   (eval $ac_try) 2>&5
18884   ac_status=$?
18885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886   (exit $ac_status); }; } &&
18887          { ac_try='test -s conftest.$ac_objext'
18888   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18889   (eval $ac_try) 2>&5
18890   ac_status=$?
18891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18892   (exit $ac_status); }; }; then
18893   ac_header_compiler=yes
18894 else
18895   echo "$as_me: failed program was:" >&5
18896 sed 's/^/| /' conftest.$ac_ext >&5
18897
18898 ac_header_compiler=no
18899 fi
18900 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18901 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18902 echo "${ECHO_T}$ac_header_compiler" >&6
18903
18904 # Is the header present?
18905 echo "$as_me:$LINENO: checking $ac_header presence" >&5
18906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
18907 cat >conftest.$ac_ext <<_ACEOF
18908 /* confdefs.h.  */
18909 _ACEOF
18910 cat confdefs.h >>conftest.$ac_ext
18911 cat >>conftest.$ac_ext <<_ACEOF
18912 /* end confdefs.h.  */
18913 #include <$ac_header>
18914 _ACEOF
18915 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18916   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18917   ac_status=$?
18918   grep -v '^ *+' conftest.er1 >conftest.err
18919   rm -f conftest.er1
18920   cat conftest.err >&5
18921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922   (exit $ac_status); } >/dev/null; then
18923   if test -s conftest.err; then
18924     ac_cpp_err=$ac_c_preproc_warn_flag
18925     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18926   else
18927     ac_cpp_err=
18928   fi
18929 else
18930   ac_cpp_err=yes
18931 fi
18932 if test -z "$ac_cpp_err"; then
18933   ac_header_preproc=yes
18934 else
18935   echo "$as_me: failed program was:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18937
18938   ac_header_preproc=no
18939 fi
18940 rm -f conftest.err conftest.$ac_ext
18941 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18942 echo "${ECHO_T}$ac_header_preproc" >&6
18943
18944 # So?  What about this header?
18945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18946   yes:no: )
18947     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18948 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18949     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18950 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18951     ac_header_preproc=yes
18952     ;;
18953   no:yes:* )
18954     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18955 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18956     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
18957 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
18958     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18959 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18960     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
18961 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
18962     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18963 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18964     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18965 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18966     (
18967       cat <<\_ASBOX
18968 ## ------------------------------------------ ##
18969 ## Report this to the AC_PACKAGE_NAME lists.  ##
18970 ## ------------------------------------------ ##
18971 _ASBOX
18972     ) |
18973       sed "s/^/$as_me: WARNING:     /" >&2
18974     ;;
18975 esac
18976 echo "$as_me:$LINENO: checking for $ac_header" >&5
18977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
18978 if eval "test \"\${$as_ac_Header+set}\" = set"; then
18979   echo $ECHO_N "(cached) $ECHO_C" >&6
18980 else
18981   eval "$as_ac_Header=\$ac_header_preproc"
18982 fi
18983 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
18984 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
18985
18986 fi
18987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18988   cat >>confdefs.h <<_ACEOF
18989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18990 _ACEOF
18991
18992 fi
18993
18994 done
18995
18996 fi
18997
18998 # cppunit needed?
18999 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
19000         CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
19001 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
19002    { (exit 1); exit 1; }; }
19003         CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
19004 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
19005    { (exit 1); exit 1; }; }
19006         CPPUNIT_TESTS=client-test
19007
19008 for ac_header in signal.h
19009 do
19010 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19011 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19012   echo "$as_me:$LINENO: checking for $ac_header" >&5
19013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19014 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19015   echo $ECHO_N "(cached) $ECHO_C" >&6
19016 fi
19017 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19018 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19019 else
19020   # Is the header compilable?
19021 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19023 cat >conftest.$ac_ext <<_ACEOF
19024 /* confdefs.h.  */
19025 _ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h.  */
19029 $ac_includes_default
19030 #include <$ac_header>
19031 _ACEOF
19032 rm -f conftest.$ac_objext
19033 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19034   (eval $ac_compile) 2>conftest.er1
19035   ac_status=$?
19036   grep -v '^ *+' conftest.er1 >conftest.err
19037   rm -f conftest.er1
19038   cat conftest.err >&5
19039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19040   (exit $ac_status); } &&
19041          { ac_try='test -z "$ac_c_werror_flag"
19042                          || test ! -s conftest.err'
19043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19044   (eval $ac_try) 2>&5
19045   ac_status=$?
19046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19047   (exit $ac_status); }; } &&
19048          { ac_try='test -s conftest.$ac_objext'
19049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19050   (eval $ac_try) 2>&5
19051   ac_status=$?
19052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053   (exit $ac_status); }; }; then
19054   ac_header_compiler=yes
19055 else
19056   echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19058
19059 ac_header_compiler=no
19060 fi
19061 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19062 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19063 echo "${ECHO_T}$ac_header_compiler" >&6
19064
19065 # Is the header present?
19066 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19067 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19068 cat >conftest.$ac_ext <<_ACEOF
19069 /* confdefs.h.  */
19070 _ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h.  */
19074 #include <$ac_header>
19075 _ACEOF
19076 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19077   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19078   ac_status=$?
19079   grep -v '^ *+' conftest.er1 >conftest.err
19080   rm -f conftest.er1
19081   cat conftest.err >&5
19082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083   (exit $ac_status); } >/dev/null; then
19084   if test -s conftest.err; then
19085     ac_cpp_err=$ac_c_preproc_warn_flag
19086     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19087   else
19088     ac_cpp_err=
19089   fi
19090 else
19091   ac_cpp_err=yes
19092 fi
19093 if test -z "$ac_cpp_err"; then
19094   ac_header_preproc=yes
19095 else
19096   echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099   ac_header_preproc=no
19100 fi
19101 rm -f conftest.err conftest.$ac_ext
19102 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19103 echo "${ECHO_T}$ac_header_preproc" >&6
19104
19105 # So?  What about this header?
19106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19107   yes:no: )
19108     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19110     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19112     ac_header_preproc=yes
19113     ;;
19114   no:yes:* )
19115     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19117     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19118 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19119     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19121     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19122 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19123     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19125     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19127     (
19128       cat <<\_ASBOX
19129 ## ------------------------------------------ ##
19130 ## Report this to the AC_PACKAGE_NAME lists.  ##
19131 ## ------------------------------------------ ##
19132 _ASBOX
19133     ) |
19134       sed "s/^/$as_me: WARNING:     /" >&2
19135     ;;
19136 esac
19137 echo "$as_me:$LINENO: checking for $ac_header" >&5
19138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19139 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19140   echo $ECHO_N "(cached) $ECHO_C" >&6
19141 else
19142   eval "$as_ac_Header=\$ac_header_preproc"
19143 fi
19144 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19145 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19146
19147 fi
19148 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19149   cat >>confdefs.h <<_ACEOF
19150 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19151 _ACEOF
19152
19153 fi
19154
19155 done
19156
19157 fi
19158
19159
19160
19161
19162 if test $enable_unit_tests == "yes"; then
19163
19164 cat >>confdefs.h <<\_ACEOF
19165 #define ENABLE_UNIT_TESTS 1
19166 _ACEOF
19167
19168 fi
19169 if test $enable_integration_tests == "yes"; then
19170
19171 cat >>confdefs.h <<\_ACEOF
19172 #define ENABLE_INTEGRATION_TESTS 1
19173 _ACEOF
19174
19175 fi
19176
19177
19178                                         ac_config_files="$ac_config_files Makefile src/Makefile include/Makefile test/Makefile"
19179 cat >confcache <<\_ACEOF
19180 # This file is a shell script that caches the results of configure
19181 # tests run on this system so they can be shared between configure
19182 # scripts and configure runs, see configure's option --config-cache.
19183 # It is not useful on other systems.  If it contains results you don't
19184 # want to keep, you may remove or edit it.
19185 #
19186 # config.status only pays attention to the cache file if you give it
19187 # the --recheck option to rerun configure.
19188 #
19189 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19190 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19191 # following values.
19192
19193 _ACEOF
19194
19195 # The following way of writing the cache mishandles newlines in values,
19196 # but we know of no workaround that is simple, portable, and efficient.
19197 # So, don't put newlines in cache variables' values.
19198 # Ultrix sh set writes to stderr and can't be redirected directly,
19199 # and sets the high bit in the cache file unless we assign to the vars.
19200 {
19201   (set) 2>&1 |
19202     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19203     *ac_space=\ *)
19204       # `set' does not quote correctly, so add quotes (double-quote
19205       # substitution turns \\\\ into \\, and sed turns \\ into \).
19206       sed -n \
19207         "s/'/'\\\\''/g;
19208           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19209       ;;
19210     *)
19211       # `set' quotes correctly as required by POSIX, so do not add quotes.
19212       sed -n \
19213         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19214       ;;
19215     esac;
19216 } |
19217   sed '
19218      t clear
19219      : clear
19220      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19221      t end
19222      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19223      : end' >>confcache
19224 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19225   if test -w $cache_file; then
19226     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19227     cat confcache >$cache_file
19228   else
19229     echo "not updating unwritable cache $cache_file"
19230   fi
19231 fi
19232 rm -f confcache
19233
19234 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19235 # Let make expand exec_prefix.
19236 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19237
19238 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19239 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19240 # trailing colons and then remove the whole line if VPATH becomes empty
19241 # (actually we leave an empty line to preserve line numbers).
19242 if test "x$srcdir" = x.; then
19243   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19244 s/:*\$(srcdir):*/:/;
19245 s/:*\${srcdir}:*/:/;
19246 s/:*@srcdir@:*/:/;
19247 s/^\([^=]*=[     ]*\):*/\1/;
19248 s/:*$//;
19249 s/^[^=]*=[       ]*$//;
19250 }'
19251 fi
19252
19253 DEFS=-DHAVE_CONFIG_H
19254
19255 ac_libobjs=
19256 ac_ltlibobjs=
19257 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19258   # 1. Remove the extension, and $U if already installed.
19259   ac_i=`echo "$ac_i" |
19260          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19261   # 2. Add them.
19262   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19263   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19264 done
19265 LIBOBJS=$ac_libobjs
19266
19267 LTLIBOBJS=$ac_ltlibobjs
19268
19269
19270 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19271   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19272 Usually this means the macro was only invoked conditionally." >&5
19273 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19274 Usually this means the macro was only invoked conditionally." >&2;}
19275    { (exit 1); exit 1; }; }
19276 fi
19277 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19278   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19279 Usually this means the macro was only invoked conditionally." >&5
19280 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19281 Usually this means the macro was only invoked conditionally." >&2;}
19282    { (exit 1); exit 1; }; }
19283 fi
19284 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19285   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19286 Usually this means the macro was only invoked conditionally." >&5
19287 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19288 Usually this means the macro was only invoked conditionally." >&2;}
19289    { (exit 1); exit 1; }; }
19290 fi
19291
19292 : ${CONFIG_STATUS=./config.status}
19293 ac_clean_files_save=$ac_clean_files
19294 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19295 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19296 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19297 cat >$CONFIG_STATUS <<_ACEOF
19298 #! $SHELL
19299 # Generated by $as_me.
19300 # Run this file to recreate the current configuration.
19301 # Compiler output produced by configure, useful for debugging
19302 # configure, is in config.log if it exists.
19303
19304 debug=false
19305 ac_cs_recheck=false
19306 ac_cs_silent=false
19307 SHELL=\${CONFIG_SHELL-$SHELL}
19308 _ACEOF
19309
19310 cat >>$CONFIG_STATUS <<\_ACEOF
19311 ## --------------------- ##
19312 ## M4sh Initialization.  ##
19313 ## --------------------- ##
19314
19315 # Be Bourne compatible
19316 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19317   emulate sh
19318   NULLCMD=:
19319   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19320   # is contrary to our usage.  Disable this feature.
19321   alias -g '${1+"$@"}'='"$@"'
19322 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19323   set -o posix
19324 fi
19325 DUALCASE=1; export DUALCASE # for MKS sh
19326
19327 # Support unset when possible.
19328 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19329   as_unset=unset
19330 else
19331   as_unset=false
19332 fi
19333
19334
19335 # Work around bugs in pre-3.0 UWIN ksh.
19336 $as_unset ENV MAIL MAILPATH
19337 PS1='$ '
19338 PS2='> '
19339 PS4='+ '
19340
19341 # NLS nuisances.
19342 for as_var in \
19343   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19344   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19345   LC_TELEPHONE LC_TIME
19346 do
19347   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19348     eval $as_var=C; export $as_var
19349   else
19350     $as_unset $as_var
19351   fi
19352 done
19353
19354 # Required to use basename.
19355 if expr a : '\(a\)' >/dev/null 2>&1; then
19356   as_expr=expr
19357 else
19358   as_expr=false
19359 fi
19360
19361 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19362   as_basename=basename
19363 else
19364   as_basename=false
19365 fi
19366
19367
19368 # Name of the executable.
19369 as_me=`$as_basename "$0" ||
19370 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19371          X"$0" : 'X\(//\)$' \| \
19372          X"$0" : 'X\(/\)$' \| \
19373          .     : '\(.\)' 2>/dev/null ||
19374 echo X/"$0" |
19375     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19376           /^X\/\(\/\/\)$/{ s//\1/; q; }
19377           /^X\/\(\/\).*/{ s//\1/; q; }
19378           s/.*/./; q'`
19379
19380
19381 # PATH needs CR, and LINENO needs CR and PATH.
19382 # Avoid depending upon Character Ranges.
19383 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19384 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19385 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19386 as_cr_digits='0123456789'
19387 as_cr_alnum=$as_cr_Letters$as_cr_digits
19388
19389 # The user is always right.
19390 if test "${PATH_SEPARATOR+set}" != set; then
19391   echo "#! /bin/sh" >conf$$.sh
19392   echo  "exit 0"   >>conf$$.sh
19393   chmod +x conf$$.sh
19394   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19395     PATH_SEPARATOR=';'
19396   else
19397     PATH_SEPARATOR=:
19398   fi
19399   rm -f conf$$.sh
19400 fi
19401
19402
19403   as_lineno_1=$LINENO
19404   as_lineno_2=$LINENO
19405   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19406   test "x$as_lineno_1" != "x$as_lineno_2" &&
19407   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19408   # Find who we are.  Look in the path if we contain no path at all
19409   # relative or not.
19410   case $0 in
19411     *[\\/]* ) as_myself=$0 ;;
19412     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19413 for as_dir in $PATH
19414 do
19415   IFS=$as_save_IFS
19416   test -z "$as_dir" && as_dir=.
19417   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19418 done
19419
19420        ;;
19421   esac
19422   # We did not find ourselves, most probably we were run as `sh COMMAND'
19423   # in which case we are not to be found in the path.
19424   if test "x$as_myself" = x; then
19425     as_myself=$0
19426   fi
19427   if test ! -f "$as_myself"; then
19428     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19429 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19430    { (exit 1); exit 1; }; }
19431   fi
19432   case $CONFIG_SHELL in
19433   '')
19434     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19435 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19436 do
19437   IFS=$as_save_IFS
19438   test -z "$as_dir" && as_dir=.
19439   for as_base in sh bash ksh sh5; do
19440          case $as_dir in
19441          /*)
19442            if ("$as_dir/$as_base" -c '
19443   as_lineno_1=$LINENO
19444   as_lineno_2=$LINENO
19445   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19446   test "x$as_lineno_1" != "x$as_lineno_2" &&
19447   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19448              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19449              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19450              CONFIG_SHELL=$as_dir/$as_base
19451              export CONFIG_SHELL
19452              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19453            fi;;
19454          esac
19455        done
19456 done
19457 ;;
19458   esac
19459
19460   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19461   # uniformly replaced by the line number.  The first 'sed' inserts a
19462   # line-number line before each line; the second 'sed' does the real
19463   # work.  The second script uses 'N' to pair each line-number line
19464   # with the numbered line, and appends trailing '-' during
19465   # substitution so that $LINENO is not a special case at line end.
19466   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19467   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19468   sed '=' <$as_myself |
19469     sed '
19470       N
19471       s,$,-,
19472       : loop
19473       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19474       t loop
19475       s,-$,,
19476       s,^['$as_cr_digits']*\n,,
19477     ' >$as_me.lineno &&
19478   chmod +x $as_me.lineno ||
19479     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19480 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19481    { (exit 1); exit 1; }; }
19482
19483   # Don't try to exec as it changes $[0], causing all sort of problems
19484   # (the dirname of $[0] is not the place where we might find the
19485   # original and so on.  Autoconf is especially sensible to this).
19486   . ./$as_me.lineno
19487   # Exit status is that of the last command.
19488   exit
19489 }
19490
19491
19492 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19493   *c*,-n*) ECHO_N= ECHO_C='
19494 ' ECHO_T='      ' ;;
19495   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19496   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19497 esac
19498
19499 if expr a : '\(a\)' >/dev/null 2>&1; then
19500   as_expr=expr
19501 else
19502   as_expr=false
19503 fi
19504
19505 rm -f conf$$ conf$$.exe conf$$.file
19506 echo >conf$$.file
19507 if ln -s conf$$.file conf$$ 2>/dev/null; then
19508   # We could just check for DJGPP; but this test a) works b) is more generic
19509   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19510   if test -f conf$$.exe; then
19511     # Don't use ln at all; we don't have any links
19512     as_ln_s='cp -p'
19513   else
19514     as_ln_s='ln -s'
19515   fi
19516 elif ln conf$$.file conf$$ 2>/dev/null; then
19517   as_ln_s=ln
19518 else
19519   as_ln_s='cp -p'
19520 fi
19521 rm -f conf$$ conf$$.exe conf$$.file
19522
19523 if mkdir -p . 2>/dev/null; then
19524   as_mkdir_p=:
19525 else
19526   test -d ./-p && rmdir ./-p
19527   as_mkdir_p=false
19528 fi
19529
19530 as_executable_p="test -f"
19531
19532 # Sed expression to map a string onto a valid CPP name.
19533 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19534
19535 # Sed expression to map a string onto a valid variable name.
19536 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19537
19538
19539 # IFS
19540 # We need space, tab and new line, in precisely that order.
19541 as_nl='
19542 '
19543 IFS="   $as_nl"
19544
19545 # CDPATH.
19546 $as_unset CDPATH
19547
19548 exec 6>&1
19549
19550 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19551 # report actual input values of CONFIG_FILES etc. instead of their
19552 # values after options handling.  Logging --version etc. is OK.
19553 exec 5>>config.log
19554 {
19555   echo
19556   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19557 ## Running $as_me. ##
19558 _ASBOX
19559 } >&5
19560 cat >&5 <<_CSEOF
19561
19562 This file was extended by $as_me, which was
19563 generated by GNU Autoconf 2.59.  Invocation command line was
19564
19565   CONFIG_FILES    = $CONFIG_FILES
19566   CONFIG_HEADERS  = $CONFIG_HEADERS
19567   CONFIG_LINKS    = $CONFIG_LINKS
19568   CONFIG_COMMANDS = $CONFIG_COMMANDS
19569   $ $0 $@
19570
19571 _CSEOF
19572 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19573 echo >&5
19574 _ACEOF
19575
19576 # Files that config.status was made for.
19577 if test -n "$ac_config_files"; then
19578   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19579 fi
19580
19581 if test -n "$ac_config_headers"; then
19582   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19583 fi
19584
19585 if test -n "$ac_config_links"; then
19586   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19587 fi
19588
19589 if test -n "$ac_config_commands"; then
19590   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19591 fi
19592
19593 cat >>$CONFIG_STATUS <<\_ACEOF
19594
19595 ac_cs_usage="\
19596 \`$as_me' instantiates files from templates according to the
19597 current configuration.
19598
19599 Usage: $0 [OPTIONS] [FILE]...
19600
19601   -h, --help       print this help, then exit
19602   -V, --version    print version number, then exit
19603   -q, --quiet      do not print progress messages
19604   -d, --debug      don't remove temporary files
19605       --recheck    update $as_me by reconfiguring in the same conditions
19606   --file=FILE[:TEMPLATE]
19607                    instantiate the configuration file FILE
19608   --header=FILE[:TEMPLATE]
19609                    instantiate the configuration header FILE
19610
19611 Configuration files:
19612 $config_files
19613
19614 Configuration headers:
19615 $config_headers
19616
19617 Configuration commands:
19618 $config_commands
19619
19620 Report bugs to <bug-autoconf@gnu.org>."
19621 _ACEOF
19622
19623 cat >>$CONFIG_STATUS <<_ACEOF
19624 ac_cs_version="\\
19625 config.status
19626 configured by $0, generated by GNU Autoconf 2.59,
19627   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19628
19629 Copyright (C) 2003 Free Software Foundation, Inc.
19630 This config.status script is free software; the Free Software Foundation
19631 gives unlimited permission to copy, distribute and modify it."
19632 srcdir=$srcdir
19633 INSTALL="$INSTALL"
19634 _ACEOF
19635
19636 cat >>$CONFIG_STATUS <<\_ACEOF
19637 # If no file are specified by the user, then we need to provide default
19638 # value.  By we need to know if files were specified by the user.
19639 ac_need_defaults=:
19640 while test $# != 0
19641 do
19642   case $1 in
19643   --*=*)
19644     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19645     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19646     ac_shift=:
19647     ;;
19648   -*)
19649     ac_option=$1
19650     ac_optarg=$2
19651     ac_shift=shift
19652     ;;
19653   *) # This is not an option, so the user has probably given explicit
19654      # arguments.
19655      ac_option=$1
19656      ac_need_defaults=false;;
19657   esac
19658
19659   case $ac_option in
19660   # Handling of the options.
19661 _ACEOF
19662 cat >>$CONFIG_STATUS <<\_ACEOF
19663   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19664     ac_cs_recheck=: ;;
19665   --version | --vers* | -V )
19666     echo "$ac_cs_version"; exit 0 ;;
19667   --he | --h)
19668     # Conflict between --help and --header
19669     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19670 Try \`$0 --help' for more information." >&5
19671 echo "$as_me: error: ambiguous option: $1
19672 Try \`$0 --help' for more information." >&2;}
19673    { (exit 1); exit 1; }; };;
19674   --help | --hel | -h )
19675     echo "$ac_cs_usage"; exit 0 ;;
19676   --debug | --d* | -d )
19677     debug=: ;;
19678   --file | --fil | --fi | --f )
19679     $ac_shift
19680     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19681     ac_need_defaults=false;;
19682   --header | --heade | --head | --hea )
19683     $ac_shift
19684     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19685     ac_need_defaults=false;;
19686   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19687   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19688     ac_cs_silent=: ;;
19689
19690   # This is an error.
19691   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19692 Try \`$0 --help' for more information." >&5
19693 echo "$as_me: error: unrecognized option: $1
19694 Try \`$0 --help' for more information." >&2;}
19695    { (exit 1); exit 1; }; } ;;
19696
19697   *) ac_config_targets="$ac_config_targets $1" ;;
19698
19699   esac
19700   shift
19701 done
19702
19703 ac_configure_extra_args=
19704
19705 if $ac_cs_silent; then
19706   exec 6>/dev/null
19707   ac_configure_extra_args="$ac_configure_extra_args --silent"
19708 fi
19709
19710 _ACEOF
19711 cat >>$CONFIG_STATUS <<_ACEOF
19712 if \$ac_cs_recheck; then
19713   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19714   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19715 fi
19716
19717 _ACEOF
19718
19719 cat >>$CONFIG_STATUS <<_ACEOF
19720 #
19721 # INIT-COMMANDS section.
19722 #
19723
19724 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19725
19726 _ACEOF
19727
19728
19729
19730 cat >>$CONFIG_STATUS <<\_ACEOF
19731 for ac_config_target in $ac_config_targets
19732 do
19733   case "$ac_config_target" in
19734   # Handling of arguments.
19735   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19736   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19737   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
19738   "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
19739   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19740   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
19741   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19742 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19743    { (exit 1); exit 1; }; };;
19744   esac
19745 done
19746
19747 # If the user did not use the arguments to specify the items to instantiate,
19748 # then the envvar interface is used.  Set only those that are not.
19749 # We use the long form for the default assignment because of an extremely
19750 # bizarre bug on SunOS 4.1.3.
19751 if $ac_need_defaults; then
19752   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19753   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19754   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19755 fi
19756
19757 # Have a temporary directory for convenience.  Make it in the build tree
19758 # simply because there is no reason to put it here, and in addition,
19759 # creating and moving files from /tmp can sometimes cause problems.
19760 # Create a temporary directory, and hook for its removal unless debugging.
19761 $debug ||
19762 {
19763   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19764   trap '{ (exit 1); exit 1; }' 1 2 13 15
19765 }
19766
19767 # Create a (secure) tmp directory for tmp files.
19768
19769 {
19770   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19771   test -n "$tmp" && test -d "$tmp"
19772 }  ||
19773 {
19774   tmp=./confstat$$-$RANDOM
19775   (umask 077 && mkdir $tmp)
19776 } ||
19777 {
19778    echo "$me: cannot create a temporary directory in ." >&2
19779    { (exit 1); exit 1; }
19780 }
19781
19782 _ACEOF
19783
19784 cat >>$CONFIG_STATUS <<_ACEOF
19785
19786 #
19787 # CONFIG_FILES section.
19788 #
19789
19790 # No need to generate the scripts if there are no CONFIG_FILES.
19791 # This happens for instance when ./config.status config.h
19792 if test -n "\$CONFIG_FILES"; then
19793   # Protect against being on the right side of a sed subst in config.status.
19794   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19795    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19796 s,@SHELL@,$SHELL,;t t
19797 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19798 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19799 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19800 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19801 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19802 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19803 s,@exec_prefix@,$exec_prefix,;t t
19804 s,@prefix@,$prefix,;t t
19805 s,@program_transform_name@,$program_transform_name,;t t
19806 s,@bindir@,$bindir,;t t
19807 s,@sbindir@,$sbindir,;t t
19808 s,@libexecdir@,$libexecdir,;t t
19809 s,@datadir@,$datadir,;t t
19810 s,@sysconfdir@,$sysconfdir,;t t
19811 s,@sharedstatedir@,$sharedstatedir,;t t
19812 s,@localstatedir@,$localstatedir,;t t
19813 s,@libdir@,$libdir,;t t
19814 s,@includedir@,$includedir,;t t
19815 s,@oldincludedir@,$oldincludedir,;t t
19816 s,@infodir@,$infodir,;t t
19817 s,@mandir@,$mandir,;t t
19818 s,@build_alias@,$build_alias,;t t
19819 s,@host_alias@,$host_alias,;t t
19820 s,@target_alias@,$target_alias,;t t
19821 s,@DEFS@,$DEFS,;t t
19822 s,@ECHO_C@,$ECHO_C,;t t
19823 s,@ECHO_N@,$ECHO_N,;t t
19824 s,@ECHO_T@,$ECHO_T,;t t
19825 s,@LIBS@,$LIBS,;t t
19826 s,@build@,$build,;t t
19827 s,@build_cpu@,$build_cpu,;t t
19828 s,@build_vendor@,$build_vendor,;t t
19829 s,@build_os@,$build_os,;t t
19830 s,@host@,$host,;t t
19831 s,@host_cpu@,$host_cpu,;t t
19832 s,@host_vendor@,$host_vendor,;t t
19833 s,@host_os@,$host_os,;t t
19834 s,@target@,$target,;t t
19835 s,@target_cpu@,$target_cpu,;t t
19836 s,@target_vendor@,$target_vendor,;t t
19837 s,@target_os@,$target_os,;t t
19838 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19839 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19840 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19841 s,@CYGPATH_W@,$CYGPATH_W,;t t
19842 s,@PACKAGE@,$PACKAGE,;t t
19843 s,@VERSION@,$VERSION,;t t
19844 s,@ACLOCAL@,$ACLOCAL,;t t
19845 s,@AUTOCONF@,$AUTOCONF,;t t
19846 s,@AUTOMAKE@,$AUTOMAKE,;t t
19847 s,@AUTOHEADER@,$AUTOHEADER,;t t
19848 s,@MAKEINFO@,$MAKEINFO,;t t
19849 s,@install_sh@,$install_sh,;t t
19850 s,@STRIP@,$STRIP,;t t
19851 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19852 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19853 s,@mkdir_p@,$mkdir_p,;t t
19854 s,@AWK@,$AWK,;t t
19855 s,@SET_MAKE@,$SET_MAKE,;t t
19856 s,@am__leading_dot@,$am__leading_dot,;t t
19857 s,@AMTAR@,$AMTAR,;t t
19858 s,@am__tar@,$am__tar,;t t
19859 s,@am__untar@,$am__untar,;t t
19860 s,@CXX@,$CXX,;t t
19861 s,@CXXFLAGS@,$CXXFLAGS,;t t
19862 s,@LDFLAGS@,$LDFLAGS,;t t
19863 s,@CPPFLAGS@,$CPPFLAGS,;t t
19864 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19865 s,@EXEEXT@,$EXEEXT,;t t
19866 s,@OBJEXT@,$OBJEXT,;t t
19867 s,@DEPDIR@,$DEPDIR,;t t
19868 s,@am__include@,$am__include,;t t
19869 s,@am__quote@,$am__quote,;t t
19870 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19871 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19872 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19873 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19874 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19875 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19876 s,@CC@,$CC,;t t
19877 s,@CFLAGS@,$CFLAGS,;t t
19878 s,@ac_ct_CC@,$ac_ct_CC,;t t
19879 s,@CCDEPMODE@,$CCDEPMODE,;t t
19880 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19881 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19882 s,@EGREP@,$EGREP,;t t
19883 s,@LN_S@,$LN_S,;t t
19884 s,@ECHO@,$ECHO,;t t
19885 s,@AR@,$AR,;t t
19886 s,@ac_ct_AR@,$ac_ct_AR,;t t
19887 s,@RANLIB@,$RANLIB,;t t
19888 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19889 s,@CPP@,$CPP,;t t
19890 s,@CXXCPP@,$CXXCPP,;t t
19891 s,@F77@,$F77,;t t
19892 s,@FFLAGS@,$FFLAGS,;t t
19893 s,@ac_ct_F77@,$ac_ct_F77,;t t
19894 s,@LIBTOOL@,$LIBTOOL,;t t
19895 s,@CURL_LDFLAGS@,$CURL_LDFLAGS,;t t
19896 s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
19897 s,@CPPUNIT_CXXFLAGS@,$CPPUNIT_CXXFLAGS,;t t
19898 s,@CPPUNIT_LDFLAGS@,$CPPUNIT_LDFLAGS,;t t
19899 s,@CPPUNIT_TESTS@,$CPPUNIT_TESTS,;t t
19900 s,@LIBOBJS@,$LIBOBJS,;t t
19901 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19902 CEOF
19903
19904 _ACEOF
19905
19906   cat >>$CONFIG_STATUS <<\_ACEOF
19907   # Split the substitutions into bite-sized pieces for seds with
19908   # small command number limits, like on Digital OSF/1 and HP-UX.
19909   ac_max_sed_lines=48
19910   ac_sed_frag=1 # Number of current file.
19911   ac_beg=1 # First line for current file.
19912   ac_end=$ac_max_sed_lines # Line after last line for current file.
19913   ac_more_lines=:
19914   ac_sed_cmds=
19915   while $ac_more_lines; do
19916     if test $ac_beg -gt 1; then
19917       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19918     else
19919       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19920     fi
19921     if test ! -s $tmp/subs.frag; then
19922       ac_more_lines=false
19923     else
19924       # The purpose of the label and of the branching condition is to
19925       # speed up the sed processing (if there are no `@' at all, there
19926       # is no need to browse any of the substitutions).
19927       # These are the two extra sed commands mentioned above.
19928       (echo ':t
19929   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19930       if test -z "$ac_sed_cmds"; then
19931         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19932       else
19933         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19934       fi
19935       ac_sed_frag=`expr $ac_sed_frag + 1`
19936       ac_beg=$ac_end
19937       ac_end=`expr $ac_end + $ac_max_sed_lines`
19938     fi
19939   done
19940   if test -z "$ac_sed_cmds"; then
19941     ac_sed_cmds=cat
19942   fi
19943 fi # test -n "$CONFIG_FILES"
19944
19945 _ACEOF
19946 cat >>$CONFIG_STATUS <<\_ACEOF
19947 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
19948   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
19949   case $ac_file in
19950   - | *:- | *:-:* ) # input from stdin
19951         cat >$tmp/stdin
19952         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19953         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19954   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
19955         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
19956   * )   ac_file_in=$ac_file.in ;;
19957   esac
19958
19959   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
19960   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
19961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19962          X"$ac_file" : 'X\(//\)[^/]' \| \
19963          X"$ac_file" : 'X\(//\)$' \| \
19964          X"$ac_file" : 'X\(/\)' \| \
19965          .     : '\(.\)' 2>/dev/null ||
19966 echo X"$ac_file" |
19967     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19968           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19969           /^X\(\/\/\)$/{ s//\1/; q; }
19970           /^X\(\/\).*/{ s//\1/; q; }
19971           s/.*/./; q'`
19972   { if $as_mkdir_p; then
19973     mkdir -p "$ac_dir"
19974   else
19975     as_dir="$ac_dir"
19976     as_dirs=
19977     while test ! -d "$as_dir"; do
19978       as_dirs="$as_dir $as_dirs"
19979       as_dir=`(dirname "$as_dir") 2>/dev/null ||
19980 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19981          X"$as_dir" : 'X\(//\)[^/]' \| \
19982          X"$as_dir" : 'X\(//\)$' \| \
19983          X"$as_dir" : 'X\(/\)' \| \
19984          .     : '\(.\)' 2>/dev/null ||
19985 echo X"$as_dir" |
19986     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
19987           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
19988           /^X\(\/\/\)$/{ s//\1/; q; }
19989           /^X\(\/\).*/{ s//\1/; q; }
19990           s/.*/./; q'`
19991     done
19992     test ! -n "$as_dirs" || mkdir $as_dirs
19993   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
19994 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
19995    { (exit 1); exit 1; }; }; }
19996
19997   ac_builddir=.
19998
19999 if test "$ac_dir" != .; then
20000   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20001   # A "../" for each directory in $ac_dir_suffix.
20002   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20003 else
20004   ac_dir_suffix= ac_top_builddir=
20005 fi
20006
20007 case $srcdir in
20008   .)  # No --srcdir option.  We are building in place.
20009     ac_srcdir=.
20010     if test -z "$ac_top_builddir"; then
20011        ac_top_srcdir=.
20012     else
20013        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20014     fi ;;
20015   [\\/]* | ?:[\\/]* )  # Absolute path.
20016     ac_srcdir=$srcdir$ac_dir_suffix;
20017     ac_top_srcdir=$srcdir ;;
20018   *) # Relative path.
20019     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20020     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20021 esac
20022
20023 # Do not use `cd foo && pwd` to compute absolute paths, because
20024 # the directories may not exist.
20025 case `pwd` in
20026 .) ac_abs_builddir="$ac_dir";;
20027 *)
20028   case "$ac_dir" in
20029   .) ac_abs_builddir=`pwd`;;
20030   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20031   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20032   esac;;
20033 esac
20034 case $ac_abs_builddir in
20035 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20036 *)
20037   case ${ac_top_builddir}. in
20038   .) ac_abs_top_builddir=$ac_abs_builddir;;
20039   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20040   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20041   esac;;
20042 esac
20043 case $ac_abs_builddir in
20044 .) ac_abs_srcdir=$ac_srcdir;;
20045 *)
20046   case $ac_srcdir in
20047   .) ac_abs_srcdir=$ac_abs_builddir;;
20048   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20049   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20050   esac;;
20051 esac
20052 case $ac_abs_builddir in
20053 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20054 *)
20055   case $ac_top_srcdir in
20056   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20057   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20058   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20059   esac;;
20060 esac
20061
20062
20063   case $INSTALL in
20064   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20065   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20066   esac
20067
20068   if test x"$ac_file" != x-; then
20069     { echo "$as_me:$LINENO: creating $ac_file" >&5
20070 echo "$as_me: creating $ac_file" >&6;}
20071     rm -f "$ac_file"
20072   fi
20073   # Let's still pretend it is `configure' which instantiates (i.e., don't
20074   # use $as_me), people would be surprised to read:
20075   #    /* config.h.  Generated by config.status.  */
20076   if test x"$ac_file" = x-; then
20077     configure_input=
20078   else
20079     configure_input="$ac_file.  "
20080   fi
20081   configure_input=$configure_input"Generated from `echo $ac_file_in |
20082                                      sed 's,.*/,,'` by configure."
20083
20084   # First look for the input files in the build tree, otherwise in the
20085   # src tree.
20086   ac_file_inputs=`IFS=:
20087     for f in $ac_file_in; do
20088       case $f in
20089       -) echo $tmp/stdin ;;
20090       [\\/$]*)
20091          # Absolute (can't be DOS-style, as IFS=:)
20092          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20093 echo "$as_me: error: cannot find input file: $f" >&2;}
20094    { (exit 1); exit 1; }; }
20095          echo "$f";;
20096       *) # Relative
20097          if test -f "$f"; then
20098            # Build tree
20099            echo "$f"
20100          elif test -f "$srcdir/$f"; then
20101            # Source tree
20102            echo "$srcdir/$f"
20103          else
20104            # /dev/null tree
20105            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20106 echo "$as_me: error: cannot find input file: $f" >&2;}
20107    { (exit 1); exit 1; }; }
20108          fi;;
20109       esac
20110     done` || { (exit 1); exit 1; }
20111 _ACEOF
20112 cat >>$CONFIG_STATUS <<_ACEOF
20113   sed "$ac_vpsub
20114 $extrasub
20115 _ACEOF
20116 cat >>$CONFIG_STATUS <<\_ACEOF
20117 :t
20118 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20119 s,@configure_input@,$configure_input,;t t
20120 s,@srcdir@,$ac_srcdir,;t t
20121 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20122 s,@top_srcdir@,$ac_top_srcdir,;t t
20123 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20124 s,@builddir@,$ac_builddir,;t t
20125 s,@abs_builddir@,$ac_abs_builddir,;t t
20126 s,@top_builddir@,$ac_top_builddir,;t t
20127 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20128 s,@INSTALL@,$ac_INSTALL,;t t
20129 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20130   rm -f $tmp/stdin
20131   if test x"$ac_file" != x-; then
20132     mv $tmp/out $ac_file
20133   else
20134     cat $tmp/out
20135     rm -f $tmp/out
20136   fi
20137
20138 done
20139 _ACEOF
20140 cat >>$CONFIG_STATUS <<\_ACEOF
20141
20142 #
20143 # CONFIG_HEADER section.
20144 #
20145
20146 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20147 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20148 #
20149 # ac_d sets the value in "#define NAME VALUE" lines.
20150 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20151 ac_dB='[         ].*$,\1#\2'
20152 ac_dC=' '
20153 ac_dD=',;t'
20154 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20155 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20156 ac_uB='$,\1#\2define\3'
20157 ac_uC=' '
20158 ac_uD=',;t'
20159
20160 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20161   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20162   case $ac_file in
20163   - | *:- | *:-:* ) # input from stdin
20164         cat >$tmp/stdin
20165         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20166         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20167   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20168         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20169   * )   ac_file_in=$ac_file.in ;;
20170   esac
20171
20172   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20173 echo "$as_me: creating $ac_file" >&6;}
20174
20175   # First look for the input files in the build tree, otherwise in the
20176   # src tree.
20177   ac_file_inputs=`IFS=:
20178     for f in $ac_file_in; do
20179       case $f in
20180       -) echo $tmp/stdin ;;
20181       [\\/$]*)
20182          # Absolute (can't be DOS-style, as IFS=:)
20183          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20184 echo "$as_me: error: cannot find input file: $f" >&2;}
20185    { (exit 1); exit 1; }; }
20186          # Do quote $f, to prevent DOS paths from being IFS'd.
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   # Remove the trailing spaces.
20204   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20205
20206 _ACEOF
20207
20208 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20209 # `conftest.undefs', that substitutes the proper values into
20210 # config.h.in to produce config.h.  The first handles `#define'
20211 # templates, and the second `#undef' templates.
20212 # And first: Protect against being on the right side of a sed subst in
20213 # config.status.  Protect against being in an unquoted here document
20214 # in config.status.
20215 rm -f conftest.defines conftest.undefs
20216 # Using a here document instead of a string reduces the quoting nightmare.
20217 # Putting comments in sed scripts is not portable.
20218 #
20219 # `end' is used to avoid that the second main sed command (meant for
20220 # 0-ary CPP macros) applies to n-ary macro definitions.
20221 # See the Autoconf documentation for `clear'.
20222 cat >confdef2sed.sed <<\_ACEOF
20223 s/[\\&,]/\\&/g
20224 s,[\\$`],\\&,g
20225 t clear
20226 : clear
20227 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20228 t end
20229 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20230 : end
20231 _ACEOF
20232 # If some macros were called several times there might be several times
20233 # the same #defines, which is useless.  Nevertheless, we may not want to
20234 # sort them, since we want the *last* AC-DEFINE to be honored.
20235 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20236 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20237 rm -f confdef2sed.sed
20238
20239 # This sed command replaces #undef with comments.  This is necessary, for
20240 # example, in the case of _POSIX_SOURCE, which is predefined and required
20241 # on some systems where configure will not decide to define it.
20242 cat >>conftest.undefs <<\_ACEOF
20243 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20244 _ACEOF
20245
20246 # Break up conftest.defines because some shells have a limit on the size
20247 # of here documents, and old seds have small limits too (100 cmds).
20248 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20249 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20250 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20251 echo '  :' >>$CONFIG_STATUS
20252 rm -f conftest.tail
20253 while grep . conftest.defines >/dev/null
20254 do
20255   # Write a limited-size here document to $tmp/defines.sed.
20256   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20257   # Speed up: don't consider the non `#define' lines.
20258   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20259   # Work around the forget-to-reset-the-flag bug.
20260   echo 't clr' >>$CONFIG_STATUS
20261   echo ': clr' >>$CONFIG_STATUS
20262   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20263   echo 'CEOF
20264   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20265   rm -f $tmp/in
20266   mv $tmp/out $tmp/in
20267 ' >>$CONFIG_STATUS
20268   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20269   rm -f conftest.defines
20270   mv conftest.tail conftest.defines
20271 done
20272 rm -f conftest.defines
20273 echo '  fi # grep' >>$CONFIG_STATUS
20274 echo >>$CONFIG_STATUS
20275
20276 # Break up conftest.undefs because some shells have a limit on the size
20277 # of here documents, and old seds have small limits too (100 cmds).
20278 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20279 rm -f conftest.tail
20280 while grep . conftest.undefs >/dev/null
20281 do
20282   # Write a limited-size here document to $tmp/undefs.sed.
20283   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20284   # Speed up: don't consider the non `#undef'
20285   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20286   # Work around the forget-to-reset-the-flag bug.
20287   echo 't clr' >>$CONFIG_STATUS
20288   echo ': clr' >>$CONFIG_STATUS
20289   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20290   echo 'CEOF
20291   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20292   rm -f $tmp/in
20293   mv $tmp/out $tmp/in
20294 ' >>$CONFIG_STATUS
20295   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20296   rm -f conftest.undefs
20297   mv conftest.tail conftest.undefs
20298 done
20299 rm -f conftest.undefs
20300
20301 cat >>$CONFIG_STATUS <<\_ACEOF
20302   # Let's still pretend it is `configure' which instantiates (i.e., don't
20303   # use $as_me), people would be surprised to read:
20304   #    /* config.h.  Generated by config.status.  */
20305   if test x"$ac_file" = x-; then
20306     echo "/* Generated by configure.  */" >$tmp/config.h
20307   else
20308     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20309   fi
20310   cat $tmp/in >>$tmp/config.h
20311   rm -f $tmp/in
20312   if test x"$ac_file" != x-; then
20313     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20314       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20315 echo "$as_me: $ac_file is unchanged" >&6;}
20316     else
20317       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20318 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20319          X"$ac_file" : 'X\(//\)[^/]' \| \
20320          X"$ac_file" : 'X\(//\)$' \| \
20321          X"$ac_file" : 'X\(/\)' \| \
20322          .     : '\(.\)' 2>/dev/null ||
20323 echo X"$ac_file" |
20324     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20325           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20326           /^X\(\/\/\)$/{ s//\1/; q; }
20327           /^X\(\/\).*/{ s//\1/; q; }
20328           s/.*/./; q'`
20329       { if $as_mkdir_p; then
20330     mkdir -p "$ac_dir"
20331   else
20332     as_dir="$ac_dir"
20333     as_dirs=
20334     while test ! -d "$as_dir"; do
20335       as_dirs="$as_dir $as_dirs"
20336       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20337 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20338          X"$as_dir" : 'X\(//\)[^/]' \| \
20339          X"$as_dir" : 'X\(//\)$' \| \
20340          X"$as_dir" : 'X\(/\)' \| \
20341          .     : '\(.\)' 2>/dev/null ||
20342 echo X"$as_dir" |
20343     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20344           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20345           /^X\(\/\/\)$/{ s//\1/; q; }
20346           /^X\(\/\).*/{ s//\1/; q; }
20347           s/.*/./; q'`
20348     done
20349     test ! -n "$as_dirs" || mkdir $as_dirs
20350   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20351 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20352    { (exit 1); exit 1; }; }; }
20353
20354       rm -f $ac_file
20355       mv $tmp/config.h $ac_file
20356     fi
20357   else
20358     cat $tmp/config.h
20359     rm -f $tmp/config.h
20360   fi
20361 # Compute $ac_file's index in $config_headers.
20362 _am_stamp_count=1
20363 for _am_header in $config_headers :; do
20364   case $_am_header in
20365     $ac_file | $ac_file:* )
20366       break ;;
20367     * )
20368       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20369   esac
20370 done
20371 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20372 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20373          X$ac_file : 'X\(//\)[^/]' \| \
20374          X$ac_file : 'X\(//\)$' \| \
20375          X$ac_file : 'X\(/\)' \| \
20376          .     : '\(.\)' 2>/dev/null ||
20377 echo X$ac_file |
20378     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20379           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20380           /^X\(\/\/\)$/{ s//\1/; q; }
20381           /^X\(\/\).*/{ s//\1/; q; }
20382           s/.*/./; q'`/stamp-h$_am_stamp_count
20383 done
20384 _ACEOF
20385 cat >>$CONFIG_STATUS <<\_ACEOF
20386
20387 #
20388 # CONFIG_COMMANDS section.
20389 #
20390 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20391   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20392   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20393   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20394 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20395          X"$ac_dest" : 'X\(//\)[^/]' \| \
20396          X"$ac_dest" : 'X\(//\)$' \| \
20397          X"$ac_dest" : 'X\(/\)' \| \
20398          .     : '\(.\)' 2>/dev/null ||
20399 echo X"$ac_dest" |
20400     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20401           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20402           /^X\(\/\/\)$/{ s//\1/; q; }
20403           /^X\(\/\).*/{ s//\1/; q; }
20404           s/.*/./; q'`
20405   { if $as_mkdir_p; then
20406     mkdir -p "$ac_dir"
20407   else
20408     as_dir="$ac_dir"
20409     as_dirs=
20410     while test ! -d "$as_dir"; do
20411       as_dirs="$as_dir $as_dirs"
20412       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20413 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20414          X"$as_dir" : 'X\(//\)[^/]' \| \
20415          X"$as_dir" : 'X\(//\)$' \| \
20416          X"$as_dir" : 'X\(/\)' \| \
20417          .     : '\(.\)' 2>/dev/null ||
20418 echo X"$as_dir" |
20419     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20420           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20421           /^X\(\/\/\)$/{ s//\1/; q; }
20422           /^X\(\/\).*/{ s//\1/; q; }
20423           s/.*/./; q'`
20424     done
20425     test ! -n "$as_dirs" || mkdir $as_dirs
20426   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20427 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20428    { (exit 1); exit 1; }; }; }
20429
20430   ac_builddir=.
20431
20432 if test "$ac_dir" != .; then
20433   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20434   # A "../" for each directory in $ac_dir_suffix.
20435   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20436 else
20437   ac_dir_suffix= ac_top_builddir=
20438 fi
20439
20440 case $srcdir in
20441   .)  # No --srcdir option.  We are building in place.
20442     ac_srcdir=.
20443     if test -z "$ac_top_builddir"; then
20444        ac_top_srcdir=.
20445     else
20446        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20447     fi ;;
20448   [\\/]* | ?:[\\/]* )  # Absolute path.
20449     ac_srcdir=$srcdir$ac_dir_suffix;
20450     ac_top_srcdir=$srcdir ;;
20451   *) # Relative path.
20452     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20453     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20454 esac
20455
20456 # Do not use `cd foo && pwd` to compute absolute paths, because
20457 # the directories may not exist.
20458 case `pwd` in
20459 .) ac_abs_builddir="$ac_dir";;
20460 *)
20461   case "$ac_dir" in
20462   .) ac_abs_builddir=`pwd`;;
20463   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20464   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20465   esac;;
20466 esac
20467 case $ac_abs_builddir in
20468 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20469 *)
20470   case ${ac_top_builddir}. in
20471   .) ac_abs_top_builddir=$ac_abs_builddir;;
20472   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20473   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20474   esac;;
20475 esac
20476 case $ac_abs_builddir in
20477 .) ac_abs_srcdir=$ac_srcdir;;
20478 *)
20479   case $ac_srcdir in
20480   .) ac_abs_srcdir=$ac_abs_builddir;;
20481   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20482   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20483   esac;;
20484 esac
20485 case $ac_abs_builddir in
20486 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20487 *)
20488   case $ac_top_srcdir in
20489   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20490   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20491   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20492   esac;;
20493 esac
20494
20495
20496   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20497 echo "$as_me: executing $ac_dest commands" >&6;}
20498   case $ac_dest in
20499     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20500   # Strip MF so we end up with the name of the file.
20501   mf=`echo "$mf" | sed -e 's/:.*$//'`
20502   # Check whether this is an Automake generated Makefile or not.
20503   # We used to match only the files named `Makefile.in', but
20504   # some people rename them; so instead we look at the file content.
20505   # Grep'ing the first line is not enough: some people post-process
20506   # each Makefile.in and add a new line on top of each file to say so.
20507   # So let's grep whole file.
20508   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20509     dirpart=`(dirname "$mf") 2>/dev/null ||
20510 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20511          X"$mf" : 'X\(//\)[^/]' \| \
20512          X"$mf" : 'X\(//\)$' \| \
20513          X"$mf" : 'X\(/\)' \| \
20514          .     : '\(.\)' 2>/dev/null ||
20515 echo X"$mf" |
20516     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20517           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20518           /^X\(\/\/\)$/{ s//\1/; q; }
20519           /^X\(\/\).*/{ s//\1/; q; }
20520           s/.*/./; q'`
20521   else
20522     continue
20523   fi
20524   # Extract the definition of DEPDIR, am__include, and am__quote
20525   # from the Makefile without running `make'.
20526   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20527   test -z "$DEPDIR" && continue
20528   am__include=`sed -n 's/^am__include = //p' < "$mf"`
20529   test -z "am__include" && continue
20530   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20531   # When using ansi2knr, U may be empty or an underscore; expand it
20532   U=`sed -n 's/^U = //p' < "$mf"`
20533   # Find all dependency output files, they are included files with
20534   # $(DEPDIR) in their names.  We invoke sed twice because it is the
20535   # simplest approach to changing $(DEPDIR) to its actual value in the
20536   # expansion.
20537   for file in `sed -n "
20538     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20539        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20540     # Make sure the directory exists.
20541     test -f "$dirpart/$file" && continue
20542     fdir=`(dirname "$file") 2>/dev/null ||
20543 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20544          X"$file" : 'X\(//\)[^/]' \| \
20545          X"$file" : 'X\(//\)$' \| \
20546          X"$file" : 'X\(/\)' \| \
20547          .     : '\(.\)' 2>/dev/null ||
20548 echo X"$file" |
20549     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20550           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20551           /^X\(\/\/\)$/{ s//\1/; q; }
20552           /^X\(\/\).*/{ s//\1/; q; }
20553           s/.*/./; q'`
20554     { if $as_mkdir_p; then
20555     mkdir -p $dirpart/$fdir
20556   else
20557     as_dir=$dirpart/$fdir
20558     as_dirs=
20559     while test ! -d "$as_dir"; do
20560       as_dirs="$as_dir $as_dirs"
20561       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20563          X"$as_dir" : 'X\(//\)[^/]' \| \
20564          X"$as_dir" : 'X\(//\)$' \| \
20565          X"$as_dir" : 'X\(/\)' \| \
20566          .     : '\(.\)' 2>/dev/null ||
20567 echo X"$as_dir" |
20568     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20569           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20570           /^X\(\/\/\)$/{ s//\1/; q; }
20571           /^X\(\/\).*/{ s//\1/; q; }
20572           s/.*/./; q'`
20573     done
20574     test ! -n "$as_dirs" || mkdir $as_dirs
20575   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20576 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20577    { (exit 1); exit 1; }; }; }
20578
20579     # echo "creating $dirpart/$file"
20580     echo '# dummy' > "$dirpart/$file"
20581   done
20582 done
20583  ;;
20584   esac
20585 done
20586 _ACEOF
20587
20588 cat >>$CONFIG_STATUS <<\_ACEOF
20589
20590 { (exit 0); exit 0; }
20591 _ACEOF
20592 chmod +x $CONFIG_STATUS
20593 ac_clean_files=$ac_clean_files_save
20594
20595
20596 # configure is writing to config.log, and then calls config.status.
20597 # config.status does its own redirection, appending to config.log.
20598 # Unfortunately, on DOS this fails, as config.log is still kept open
20599 # by configure, so config.status won't be able to write to it; its
20600 # output is simply discarded.  So we exec the FD to /dev/null,
20601 # effectively closing config.log, so it can be properly (re)opened and
20602 # appended to by config.status.  When coming back to configure, we
20603 # need to make the FD available again.
20604 if test "$no_create" != yes; then
20605   ac_cs_success=:
20606   ac_config_status_args=
20607   test "$silent" = yes &&
20608     ac_config_status_args="$ac_config_status_args --quiet"
20609   exec 5>/dev/null
20610   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20611   exec 5>>config.log
20612   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20613   # would make configure fail if this is the last instruction.
20614   $ac_cs_success || { (exit 1); exit 1; }
20615 fi
20616