]> git.sur5r.net Git - openldap/blob - contrib/ldapc++/configure
fix ITS#4883
[openldap] / contrib / ldapc++ / 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="examples/main.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 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os 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 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 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --disable-dependency-tracking  speeds up one-time build
1027   --enable-dependency-tracking   do not reject slow dependency extractors
1028   --enable-shared[=PKGS]
1029                           build shared libraries [default=yes]
1030   --enable-static[=PKGS]
1031                           build static libraries [default=yes]
1032   --enable-fast-install[=PKGS]
1033                           optimize for fast installation [default=yes]
1034   --disable-libtool-lock  avoid locking (might break parallel builds)
1035   --enable-debug
1036
1037 Optional Packages:
1038   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1041   --with-pic              try to use only PIC/non-PIC objects [default=use
1042                           both]
1043   --with-tags[=TAGS]
1044                           include additional configurations [automatic]
1045   --with-libldap=DIR          Path to the libldap library /usr/local/lib
1046   --with-ldap-includes=DIR    Path to the libldap include files /usr/local/include
1047
1048 Some influential environment variables:
1049   CXX         C++ compiler command
1050   CXXFLAGS    C++ compiler flags
1051   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1052               nonstandard directory <lib dir>
1053   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1054               headers in a nonstandard directory <include dir>
1055   CC          C compiler command
1056   CFLAGS      C compiler flags
1057   CPP         C preprocessor
1058   CXXCPP      C++ preprocessor
1059   F77         Fortran 77 compiler command
1060   FFLAGS      Fortran 77 compiler flags
1061
1062 Use these variables to override the choices made by `configure' or to help
1063 it to find libraries and programs with nonstandard names/locations.
1064
1065 _ACEOF
1066 fi
1067
1068 if test "$ac_init_help" = "recursive"; then
1069   # If there are subdirs, report their specific --help.
1070   ac_popdir=`pwd`
1071   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1072     test -d $ac_dir || continue
1073     ac_builddir=.
1074
1075 if test "$ac_dir" != .; then
1076   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1077   # A "../" for each directory in $ac_dir_suffix.
1078   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1079 else
1080   ac_dir_suffix= ac_top_builddir=
1081 fi
1082
1083 case $srcdir in
1084   .)  # No --srcdir option.  We are building in place.
1085     ac_srcdir=.
1086     if test -z "$ac_top_builddir"; then
1087        ac_top_srcdir=.
1088     else
1089        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1090     fi ;;
1091   [\\/]* | ?:[\\/]* )  # Absolute path.
1092     ac_srcdir=$srcdir$ac_dir_suffix;
1093     ac_top_srcdir=$srcdir ;;
1094   *) # Relative path.
1095     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1096     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1097 esac
1098
1099 # Do not use `cd foo && pwd` to compute absolute paths, because
1100 # the directories may not exist.
1101 case `pwd` in
1102 .) ac_abs_builddir="$ac_dir";;
1103 *)
1104   case "$ac_dir" in
1105   .) ac_abs_builddir=`pwd`;;
1106   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1107   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1108   esac;;
1109 esac
1110 case $ac_abs_builddir in
1111 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1112 *)
1113   case ${ac_top_builddir}. in
1114   .) ac_abs_top_builddir=$ac_abs_builddir;;
1115   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1116   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1117   esac;;
1118 esac
1119 case $ac_abs_builddir in
1120 .) ac_abs_srcdir=$ac_srcdir;;
1121 *)
1122   case $ac_srcdir in
1123   .) ac_abs_srcdir=$ac_abs_builddir;;
1124   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1125   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1126   esac;;
1127 esac
1128 case $ac_abs_builddir in
1129 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1130 *)
1131   case $ac_top_srcdir in
1132   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1133   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1134   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1135   esac;;
1136 esac
1137
1138     cd $ac_dir
1139     # Check for guested configure; otherwise get Cygnus style configure.
1140     if test -f $ac_srcdir/configure.gnu; then
1141       echo
1142       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1143     elif test -f $ac_srcdir/configure; then
1144       echo
1145       $SHELL $ac_srcdir/configure  --help=recursive
1146     elif test -f $ac_srcdir/configure.ac ||
1147            test -f $ac_srcdir/configure.in; then
1148       echo
1149       $ac_configure --help
1150     else
1151       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1152     fi
1153     cd $ac_popdir
1154   done
1155 fi
1156
1157 test -n "$ac_init_help" && exit 0
1158 if $ac_init_version; then
1159   cat <<\_ACEOF
1160
1161 Copyright (C) 2003 Free Software Foundation, Inc.
1162 This configure script is free software; the Free Software Foundation
1163 gives unlimited permission to copy, distribute and modify it.
1164 _ACEOF
1165   exit 0
1166 fi
1167 exec 5>config.log
1168 cat >&5 <<_ACEOF
1169 This file contains any messages produced by compilers while
1170 running configure, to aid debugging if configure makes a mistake.
1171
1172 It was created by $as_me, which was
1173 generated by GNU Autoconf 2.59.  Invocation command line was
1174
1175   $ $0 $@
1176
1177 _ACEOF
1178 {
1179 cat <<_ASUNAME
1180 ## --------- ##
1181 ## Platform. ##
1182 ## --------- ##
1183
1184 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1185 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1186 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1187 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1188 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1189
1190 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1191 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1192
1193 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1194 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1195 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1196 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1197 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1198 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1199 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1200
1201 _ASUNAME
1202
1203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1204 for as_dir in $PATH
1205 do
1206   IFS=$as_save_IFS
1207   test -z "$as_dir" && as_dir=.
1208   echo "PATH: $as_dir"
1209 done
1210
1211 } >&5
1212
1213 cat >&5 <<_ACEOF
1214
1215
1216 ## ----------- ##
1217 ## Core tests. ##
1218 ## ----------- ##
1219
1220 _ACEOF
1221
1222
1223 # Keep a trace of the command line.
1224 # Strip out --no-create and --no-recursion so they do not pile up.
1225 # Strip out --silent because we don't want to record it for future runs.
1226 # Also quote any args containing shell meta-characters.
1227 # Make two passes to allow for proper duplicate-argument suppression.
1228 ac_configure_args=
1229 ac_configure_args0=
1230 ac_configure_args1=
1231 ac_sep=
1232 ac_must_keep_next=false
1233 for ac_pass in 1 2
1234 do
1235   for ac_arg
1236   do
1237     case $ac_arg in
1238     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1239     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1240     | -silent | --silent | --silen | --sile | --sil)
1241       continue ;;
1242     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1243       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1244     esac
1245     case $ac_pass in
1246     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1247     2)
1248       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1249       if test $ac_must_keep_next = true; then
1250         ac_must_keep_next=false # Got value, back to normal.
1251       else
1252         case $ac_arg in
1253           *=* | --config-cache | -C | -disable-* | --disable-* \
1254           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1255           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1256           | -with-* | --with-* | -without-* | --without-* | --x)
1257             case "$ac_configure_args0 " in
1258               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1259             esac
1260             ;;
1261           -* ) ac_must_keep_next=true ;;
1262         esac
1263       fi
1264       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1265       # Get rid of the leading space.
1266       ac_sep=" "
1267       ;;
1268     esac
1269   done
1270 done
1271 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1272 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1273
1274 # When interrupted or exit'd, cleanup temporary files, and complete
1275 # config.log.  We remove comments because anyway the quotes in there
1276 # would cause problems or look ugly.
1277 # WARNING: Be sure not to use single quotes in there, as some shells,
1278 # such as our DU 5.0 friend, will then `close' the trap.
1279 trap 'exit_status=$?
1280   # Save into config.log some information that might help in debugging.
1281   {
1282     echo
1283
1284     cat <<\_ASBOX
1285 ## ---------------- ##
1286 ## Cache variables. ##
1287 ## ---------------- ##
1288 _ASBOX
1289     echo
1290     # The following way of writing the cache mishandles newlines in values,
1291 {
1292   (set) 2>&1 |
1293     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1294     *ac_space=\ *)
1295       sed -n \
1296         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1297           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1298       ;;
1299     *)
1300       sed -n \
1301         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1302       ;;
1303     esac;
1304 }
1305     echo
1306
1307     cat <<\_ASBOX
1308 ## ----------------- ##
1309 ## Output variables. ##
1310 ## ----------------- ##
1311 _ASBOX
1312     echo
1313     for ac_var in $ac_subst_vars
1314     do
1315       eval ac_val=$`echo $ac_var`
1316       echo "$ac_var='"'"'$ac_val'"'"'"
1317     done | sort
1318     echo
1319
1320     if test -n "$ac_subst_files"; then
1321       cat <<\_ASBOX
1322 ## ------------- ##
1323 ## Output files. ##
1324 ## ------------- ##
1325 _ASBOX
1326       echo
1327       for ac_var in $ac_subst_files
1328       do
1329         eval ac_val=$`echo $ac_var`
1330         echo "$ac_var='"'"'$ac_val'"'"'"
1331       done | sort
1332       echo
1333     fi
1334
1335     if test -s confdefs.h; then
1336       cat <<\_ASBOX
1337 ## ----------- ##
1338 ## confdefs.h. ##
1339 ## ----------- ##
1340 _ASBOX
1341       echo
1342       sed "/^$/d" confdefs.h | sort
1343       echo
1344     fi
1345     test "$ac_signal" != 0 &&
1346       echo "$as_me: caught signal $ac_signal"
1347     echo "$as_me: exit $exit_status"
1348   } >&5
1349   rm -f core *.core &&
1350   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1351     exit $exit_status
1352      ' 0
1353 for ac_signal in 1 2 13 15; do
1354   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1355 done
1356 ac_signal=0
1357
1358 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1359 rm -rf conftest* confdefs.h
1360 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1361 echo >confdefs.h
1362
1363 # Predefined preprocessor variables.
1364
1365 cat >>confdefs.h <<_ACEOF
1366 #define PACKAGE_NAME "$PACKAGE_NAME"
1367 _ACEOF
1368
1369
1370 cat >>confdefs.h <<_ACEOF
1371 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1372 _ACEOF
1373
1374
1375 cat >>confdefs.h <<_ACEOF
1376 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1377 _ACEOF
1378
1379
1380 cat >>confdefs.h <<_ACEOF
1381 #define PACKAGE_STRING "$PACKAGE_STRING"
1382 _ACEOF
1383
1384
1385 cat >>confdefs.h <<_ACEOF
1386 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1387 _ACEOF
1388
1389
1390 # Let the site file select an alternate cache file if it wants to.
1391 # Prefer explicitly selected file to automatically selected ones.
1392 if test -z "$CONFIG_SITE"; then
1393   if test "x$prefix" != xNONE; then
1394     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1395   else
1396     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1397   fi
1398 fi
1399 for ac_site_file in $CONFIG_SITE; do
1400   if test -r "$ac_site_file"; then
1401     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1402 echo "$as_me: loading site script $ac_site_file" >&6;}
1403     sed 's/^/| /' "$ac_site_file" >&5
1404     . "$ac_site_file"
1405   fi
1406 done
1407
1408 if test -r "$cache_file"; then
1409   # Some versions of bash will fail to source /dev/null (special
1410   # files actually), so we avoid doing that.
1411   if test -f "$cache_file"; then
1412     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1413 echo "$as_me: loading cache $cache_file" >&6;}
1414     case $cache_file in
1415       [\\/]* | ?:[\\/]* ) . $cache_file;;
1416       *)                      . ./$cache_file;;
1417     esac
1418   fi
1419 else
1420   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1421 echo "$as_me: creating cache $cache_file" >&6;}
1422   >$cache_file
1423 fi
1424
1425 # Check that the precious variables saved in the cache have kept the same
1426 # value.
1427 ac_cache_corrupted=false
1428 for ac_var in `(set) 2>&1 |
1429                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1430   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1431   eval ac_new_set=\$ac_env_${ac_var}_set
1432   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1433   eval ac_new_val="\$ac_env_${ac_var}_value"
1434   case $ac_old_set,$ac_new_set in
1435     set,)
1436       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1437 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1438       ac_cache_corrupted=: ;;
1439     ,set)
1440       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1441 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1442       ac_cache_corrupted=: ;;
1443     ,);;
1444     *)
1445       if test "x$ac_old_val" != "x$ac_new_val"; then
1446         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1447 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1448         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1449 echo "$as_me:   former value:  $ac_old_val" >&2;}
1450         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1451 echo "$as_me:   current value: $ac_new_val" >&2;}
1452         ac_cache_corrupted=:
1453       fi;;
1454   esac
1455   # Pass precious variables to config.status.
1456   if test "$ac_new_set" = set; then
1457     case $ac_new_val in
1458     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1459       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1460     *) ac_arg=$ac_var=$ac_new_val ;;
1461     esac
1462     case " $ac_configure_args " in
1463       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1464       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1465     esac
1466   fi
1467 done
1468 if $ac_cache_corrupted; then
1469   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1470 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1471   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1472 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1473    { (exit 1); exit 1; }; }
1474 fi
1475
1476 ac_ext=c
1477 ac_cpp='$CPP $CPPFLAGS'
1478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500 am__api_version="1.9"
1501 ac_aux_dir=
1502 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1503   if test -f $ac_dir/install-sh; then
1504     ac_aux_dir=$ac_dir
1505     ac_install_sh="$ac_aux_dir/install-sh -c"
1506     break
1507   elif 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/shtool; then
1512     ac_aux_dir=$ac_dir
1513     ac_install_sh="$ac_aux_dir/shtool install -c"
1514     break
1515   fi
1516 done
1517 if test -z "$ac_aux_dir"; then
1518   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1519 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1520    { (exit 1); exit 1; }; }
1521 fi
1522 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1523 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1524 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1525
1526 # Find a good install program.  We prefer a C program (faster),
1527 # so one script is as good as another.  But avoid the broken or
1528 # incompatible versions:
1529 # SysV /etc/install, /usr/sbin/install
1530 # SunOS /usr/etc/install
1531 # IRIX /sbin/install
1532 # AIX /bin/install
1533 # AmigaOS /C/install, which installs bootblocks on floppy discs
1534 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1535 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1536 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1537 # OS/2's system install, which has a completely different semantic
1538 # ./install, which can be erroneously created by make from ./install.sh.
1539 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1540 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1541 if test -z "$INSTALL"; then
1542 if test "${ac_cv_path_install+set}" = set; then
1543   echo $ECHO_N "(cached) $ECHO_C" >&6
1544 else
1545   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1546 for as_dir in $PATH
1547 do
1548   IFS=$as_save_IFS
1549   test -z "$as_dir" && as_dir=.
1550   # Account for people who put trailing slashes in PATH elements.
1551 case $as_dir/ in
1552   ./ | .// | /cC/* | \
1553   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1554   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1555   /usr/ucb/* ) ;;
1556   *)
1557     # OSF1 and SCO ODT 3.0 have their own names for install.
1558     # Don't use installbsd from OSF since it installs stuff as root
1559     # by default.
1560     for ac_prog in ginstall scoinst install; do
1561       for ac_exec_ext in '' $ac_executable_extensions; do
1562         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1563           if test $ac_prog = install &&
1564             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1565             # AIX install.  It has an incompatible calling convention.
1566             :
1567           elif test $ac_prog = install &&
1568             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1569             # program-specific install script used by HP pwplus--don't use.
1570             :
1571           else
1572             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1573             break 3
1574           fi
1575         fi
1576       done
1577     done
1578     ;;
1579 esac
1580 done
1581
1582
1583 fi
1584   if test "${ac_cv_path_install+set}" = set; then
1585     INSTALL=$ac_cv_path_install
1586   else
1587     # As a last resort, use the slow shell script.  We don't cache a
1588     # path for INSTALL within a source directory, because that will
1589     # break other packages using the cache if that directory is
1590     # removed, or if the path is relative.
1591     INSTALL=$ac_install_sh
1592   fi
1593 fi
1594 echo "$as_me:$LINENO: result: $INSTALL" >&5
1595 echo "${ECHO_T}$INSTALL" >&6
1596
1597 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1598 # It thinks the first close brace ends the variable substitution.
1599 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1600
1601 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1602
1603 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1604
1605 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1606 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1607 # Just in case
1608 sleep 1
1609 echo timestamp > conftest.file
1610 # Do `set' in a subshell so we don't clobber the current shell's
1611 # arguments.  Must try -L first in case configure is actually a
1612 # symlink; some systems play weird games with the mod time of symlinks
1613 # (eg FreeBSD returns the mod time of the symlink's containing
1614 # directory).
1615 if (
1616    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1617    if test "$*" = "X"; then
1618       # -L didn't work.
1619       set X `ls -t $srcdir/configure conftest.file`
1620    fi
1621    rm -f conftest.file
1622    if test "$*" != "X $srcdir/configure conftest.file" \
1623       && test "$*" != "X conftest.file $srcdir/configure"; then
1624
1625       # If neither matched, then we have a broken ls.  This can happen
1626       # if, for instance, CONFIG_SHELL is bash and it inherits a
1627       # broken ls alias from the environment.  This has actually
1628       # happened.  Such a system could not be considered "sane".
1629       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1630 alias in your environment" >&5
1631 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1632 alias in your environment" >&2;}
1633    { (exit 1); exit 1; }; }
1634    fi
1635
1636    test "$2" = conftest.file
1637    )
1638 then
1639    # Ok.
1640    :
1641 else
1642    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1643 Check your system clock" >&5
1644 echo "$as_me: error: newly created file is older than distributed files!
1645 Check your system clock" >&2;}
1646    { (exit 1); exit 1; }; }
1647 fi
1648 echo "$as_me:$LINENO: result: yes" >&5
1649 echo "${ECHO_T}yes" >&6
1650 test "$program_prefix" != NONE &&
1651   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1652 # Use a double $ so make ignores it.
1653 test "$program_suffix" != NONE &&
1654   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1655 # Double any \ or $.  echo might interpret backslashes.
1656 # By default was `s,x,x', remove it if useless.
1657 cat <<\_ACEOF >conftest.sed
1658 s/[\\$]/&&/g;s/;s,x,x,$//
1659 _ACEOF
1660 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1661 rm conftest.sed
1662
1663 # expand $ac_aux_dir to an absolute path
1664 am_aux_dir=`cd $ac_aux_dir && pwd`
1665
1666 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1667 # Use eval to expand $SHELL
1668 if eval "$MISSING --run true"; then
1669   am_missing_run="$MISSING --run "
1670 else
1671   am_missing_run=
1672   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1673 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1674 fi
1675
1676 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1677   # We used to keeping the `.' as first argument, in order to
1678   # allow $(mkdir_p) to be used without argument.  As in
1679   #   $(mkdir_p) $(somedir)
1680   # where $(somedir) is conditionally defined.  However this is wrong
1681   # for two reasons:
1682   #  1. if the package is installed by a user who cannot write `.'
1683   #     make install will fail,
1684   #  2. the above comment should most certainly read
1685   #     $(mkdir_p) $(DESTDIR)$(somedir)
1686   #     so it does not work when $(somedir) is undefined and
1687   #     $(DESTDIR) is not.
1688   #  To support the latter case, we have to write
1689   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1690   #  so the `.' trick is pointless.
1691   mkdir_p='mkdir -p --'
1692 else
1693   # On NextStep and OpenStep, the `mkdir' command does not
1694   # recognize any option.  It will interpret all options as
1695   # directories to create, and then abort because `.' already
1696   # exists.
1697   for d in ./-p ./--version;
1698   do
1699     test -d $d && rmdir $d
1700   done
1701   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1702   if test -f "$ac_aux_dir/mkinstalldirs"; then
1703     mkdir_p='$(mkinstalldirs)'
1704   else
1705     mkdir_p='$(install_sh) -d'
1706   fi
1707 fi
1708
1709 for ac_prog in gawk mawk nawk awk
1710 do
1711   # Extract the first word of "$ac_prog", so it can be a program name with args.
1712 set dummy $ac_prog; ac_word=$2
1713 echo "$as_me:$LINENO: checking for $ac_word" >&5
1714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1715 if test "${ac_cv_prog_AWK+set}" = set; then
1716   echo $ECHO_N "(cached) $ECHO_C" >&6
1717 else
1718   if test -n "$AWK"; then
1719   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1720 else
1721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1722 for as_dir in $PATH
1723 do
1724   IFS=$as_save_IFS
1725   test -z "$as_dir" && as_dir=.
1726   for ac_exec_ext in '' $ac_executable_extensions; do
1727   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1728     ac_cv_prog_AWK="$ac_prog"
1729     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1730     break 2
1731   fi
1732 done
1733 done
1734
1735 fi
1736 fi
1737 AWK=$ac_cv_prog_AWK
1738 if test -n "$AWK"; then
1739   echo "$as_me:$LINENO: result: $AWK" >&5
1740 echo "${ECHO_T}$AWK" >&6
1741 else
1742   echo "$as_me:$LINENO: result: no" >&5
1743 echo "${ECHO_T}no" >&6
1744 fi
1745
1746   test -n "$AWK" && break
1747 done
1748
1749 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1750 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1751 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1752 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1753   echo $ECHO_N "(cached) $ECHO_C" >&6
1754 else
1755   cat >conftest.make <<\_ACEOF
1756 all:
1757         @echo 'ac_maketemp="$(MAKE)"'
1758 _ACEOF
1759 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1760 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1761 if test -n "$ac_maketemp"; then
1762   eval ac_cv_prog_make_${ac_make}_set=yes
1763 else
1764   eval ac_cv_prog_make_${ac_make}_set=no
1765 fi
1766 rm -f conftest.make
1767 fi
1768 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1769   echo "$as_me:$LINENO: result: yes" >&5
1770 echo "${ECHO_T}yes" >&6
1771   SET_MAKE=
1772 else
1773   echo "$as_me:$LINENO: result: no" >&5
1774 echo "${ECHO_T}no" >&6
1775   SET_MAKE="MAKE=${MAKE-make}"
1776 fi
1777
1778 rm -rf .tst 2>/dev/null
1779 mkdir .tst 2>/dev/null
1780 if test -d .tst; then
1781   am__leading_dot=.
1782 else
1783   am__leading_dot=_
1784 fi
1785 rmdir .tst 2>/dev/null
1786
1787 # test to see if srcdir already configured
1788 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1789    test -f $srcdir/config.status; then
1790   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1791 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1792    { (exit 1); exit 1; }; }
1793 fi
1794
1795 # test whether we have cygpath
1796 if test -z "$CYGPATH_W"; then
1797   if (cygpath --version) >/dev/null 2>/dev/null; then
1798     CYGPATH_W='cygpath -w'
1799   else
1800     CYGPATH_W=echo
1801   fi
1802 fi
1803
1804
1805 # Define the identity of the package.
1806  PACKAGE=main
1807  VERSION=0.0.1
1808
1809
1810 cat >>confdefs.h <<_ACEOF
1811 #define PACKAGE "$PACKAGE"
1812 _ACEOF
1813
1814
1815 cat >>confdefs.h <<_ACEOF
1816 #define VERSION "$VERSION"
1817 _ACEOF
1818
1819 # Some tools Automake needs.
1820
1821 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1822
1823
1824 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1825
1826
1827 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1828
1829
1830 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1831
1832
1833 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1834
1835 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1836
1837 # Installed binaries are usually stripped using `strip' when the user
1838 # run `make install-strip'.  However `strip' might not be the right
1839 # tool to use in cross-compilation environments, therefore Automake
1840 # will honor the `STRIP' environment variable to overrule this program.
1841 if test "$cross_compiling" != no; then
1842   if test -n "$ac_tool_prefix"; then
1843   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1844 set dummy ${ac_tool_prefix}strip; ac_word=$2
1845 echo "$as_me:$LINENO: checking for $ac_word" >&5
1846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1847 if test "${ac_cv_prog_STRIP+set}" = set; then
1848   echo $ECHO_N "(cached) $ECHO_C" >&6
1849 else
1850   if test -n "$STRIP"; then
1851   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1852 else
1853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1854 for as_dir in $PATH
1855 do
1856   IFS=$as_save_IFS
1857   test -z "$as_dir" && as_dir=.
1858   for ac_exec_ext in '' $ac_executable_extensions; do
1859   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1860     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1861     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1862     break 2
1863   fi
1864 done
1865 done
1866
1867 fi
1868 fi
1869 STRIP=$ac_cv_prog_STRIP
1870 if test -n "$STRIP"; then
1871   echo "$as_me:$LINENO: result: $STRIP" >&5
1872 echo "${ECHO_T}$STRIP" >&6
1873 else
1874   echo "$as_me:$LINENO: result: no" >&5
1875 echo "${ECHO_T}no" >&6
1876 fi
1877
1878 fi
1879 if test -z "$ac_cv_prog_STRIP"; then
1880   ac_ct_STRIP=$STRIP
1881   # Extract the first word of "strip", so it can be a program name with args.
1882 set dummy strip; ac_word=$2
1883 echo "$as_me:$LINENO: checking for $ac_word" >&5
1884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1885 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1886   echo $ECHO_N "(cached) $ECHO_C" >&6
1887 else
1888   if test -n "$ac_ct_STRIP"; then
1889   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1890 else
1891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1892 for as_dir in $PATH
1893 do
1894   IFS=$as_save_IFS
1895   test -z "$as_dir" && as_dir=.
1896   for ac_exec_ext in '' $ac_executable_extensions; do
1897   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1898     ac_cv_prog_ac_ct_STRIP="strip"
1899     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1900     break 2
1901   fi
1902 done
1903 done
1904
1905   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1906 fi
1907 fi
1908 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1909 if test -n "$ac_ct_STRIP"; then
1910   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1911 echo "${ECHO_T}$ac_ct_STRIP" >&6
1912 else
1913   echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1915 fi
1916
1917   STRIP=$ac_ct_STRIP
1918 else
1919   STRIP="$ac_cv_prog_STRIP"
1920 fi
1921
1922 fi
1923 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1924
1925 # We need awk for the "check" target.  The system "awk" is bad on
1926 # some platforms.
1927 # Always define AMTAR for backward compatibility.
1928
1929 AMTAR=${AMTAR-"${am_missing_run}tar"}
1930
1931 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
1932
1933
1934
1935
1936
1937           ac_config_headers="$ac_config_headers src/config.h"
1938
1939
1940
1941 # Find a good install program.  We prefer a C program (faster),
1942 # so one script is as good as another.  But avoid the broken or
1943 # incompatible versions:
1944 # SysV /etc/install, /usr/sbin/install
1945 # SunOS /usr/etc/install
1946 # IRIX /sbin/install
1947 # AIX /bin/install
1948 # AmigaOS /C/install, which installs bootblocks on floppy discs
1949 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1950 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1951 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1952 # OS/2's system install, which has a completely different semantic
1953 # ./install, which can be erroneously created by make from ./install.sh.
1954 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1955 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1956 if test -z "$INSTALL"; then
1957 if test "${ac_cv_path_install+set}" = set; then
1958   echo $ECHO_N "(cached) $ECHO_C" >&6
1959 else
1960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1961 for as_dir in $PATH
1962 do
1963   IFS=$as_save_IFS
1964   test -z "$as_dir" && as_dir=.
1965   # Account for people who put trailing slashes in PATH elements.
1966 case $as_dir/ in
1967   ./ | .// | /cC/* | \
1968   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1969   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1970   /usr/ucb/* ) ;;
1971   *)
1972     # OSF1 and SCO ODT 3.0 have their own names for install.
1973     # Don't use installbsd from OSF since it installs stuff as root
1974     # by default.
1975     for ac_prog in ginstall scoinst install; do
1976       for ac_exec_ext in '' $ac_executable_extensions; do
1977         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1978           if test $ac_prog = install &&
1979             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1980             # AIX install.  It has an incompatible calling convention.
1981             :
1982           elif test $ac_prog = install &&
1983             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1984             # program-specific install script used by HP pwplus--don't use.
1985             :
1986           else
1987             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1988             break 3
1989           fi
1990         fi
1991       done
1992     done
1993     ;;
1994 esac
1995 done
1996
1997
1998 fi
1999   if test "${ac_cv_path_install+set}" = set; then
2000     INSTALL=$ac_cv_path_install
2001   else
2002     # As a last resort, use the slow shell script.  We don't cache a
2003     # path for INSTALL within a source directory, because that will
2004     # break other packages using the cache if that directory is
2005     # removed, or if the path is relative.
2006     INSTALL=$ac_install_sh
2007   fi
2008 fi
2009 echo "$as_me:$LINENO: result: $INSTALL" >&5
2010 echo "${ECHO_T}$INSTALL" >&6
2011
2012 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2013 # It thinks the first close brace ends the variable substitution.
2014 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2015
2016 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2017
2018 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2019
2020 ac_ext=cc
2021 ac_cpp='$CXXCPP $CPPFLAGS'
2022 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2023 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2024 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2025 if test -n "$ac_tool_prefix"; then
2026   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2027   do
2028     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2029 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_CXX+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$CXX"; then
2036   ac_cv_prog_CXX="$CXX" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2040 do
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2051
2052 fi
2053 fi
2054 CXX=$ac_cv_prog_CXX
2055 if test -n "$CXX"; then
2056   echo "$as_me:$LINENO: result: $CXX" >&5
2057 echo "${ECHO_T}$CXX" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2061 fi
2062
2063     test -n "$CXX" && break
2064   done
2065 fi
2066 if test -z "$CXX"; then
2067   ac_ct_CXX=$CXX
2068   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
2069 do
2070   # Extract the first word of "$ac_prog", so it can be a program name with args.
2071 set dummy $ac_prog; ac_word=$2
2072 echo "$as_me:$LINENO: checking for $ac_word" >&5
2073 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2074 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2075   echo $ECHO_N "(cached) $ECHO_C" >&6
2076 else
2077   if test -n "$ac_ct_CXX"; then
2078   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2079 else
2080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2081 for as_dir in $PATH
2082 do
2083   IFS=$as_save_IFS
2084   test -z "$as_dir" && as_dir=.
2085   for ac_exec_ext in '' $ac_executable_extensions; do
2086   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2087     ac_cv_prog_ac_ct_CXX="$ac_prog"
2088     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2089     break 2
2090   fi
2091 done
2092 done
2093
2094 fi
2095 fi
2096 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2097 if test -n "$ac_ct_CXX"; then
2098   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2099 echo "${ECHO_T}$ac_ct_CXX" >&6
2100 else
2101   echo "$as_me:$LINENO: result: no" >&5
2102 echo "${ECHO_T}no" >&6
2103 fi
2104
2105   test -n "$ac_ct_CXX" && break
2106 done
2107 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2108
2109   CXX=$ac_ct_CXX
2110 fi
2111
2112
2113 # Provide some information about the compiler.
2114 echo "$as_me:$LINENO:" \
2115      "checking for C++ compiler version" >&5
2116 ac_compiler=`set X $ac_compile; echo $2`
2117 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2118   (eval $ac_compiler --version </dev/null >&5) 2>&5
2119   ac_status=$?
2120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2121   (exit $ac_status); }
2122 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2123   (eval $ac_compiler -v </dev/null >&5) 2>&5
2124   ac_status=$?
2125   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2126   (exit $ac_status); }
2127 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2128   (eval $ac_compiler -V </dev/null >&5) 2>&5
2129   ac_status=$?
2130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2131   (exit $ac_status); }
2132
2133 cat >conftest.$ac_ext <<_ACEOF
2134 /* confdefs.h.  */
2135 _ACEOF
2136 cat confdefs.h >>conftest.$ac_ext
2137 cat >>conftest.$ac_ext <<_ACEOF
2138 /* end confdefs.h.  */
2139
2140 int
2141 main ()
2142 {
2143
2144   ;
2145   return 0;
2146 }
2147 _ACEOF
2148 ac_clean_files_save=$ac_clean_files
2149 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2150 # Try to create an executable without -o first, disregard a.out.
2151 # It will help us diagnose broken compilers, and finding out an intuition
2152 # of exeext.
2153 echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2154 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
2155 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2156 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2157   (eval $ac_link_default) 2>&5
2158   ac_status=$?
2159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160   (exit $ac_status); }; then
2161   # Find the output, starting from the most likely.  This scheme is
2162 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2163 # resort.
2164
2165 # Be careful to initialize this variable, since it used to be cached.
2166 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2167 ac_cv_exeext=
2168 # b.out is created by i960 compilers.
2169 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2170 do
2171   test -f "$ac_file" || continue
2172   case $ac_file in
2173     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2174         ;;
2175     conftest.$ac_ext )
2176         # This is the source file.
2177         ;;
2178     [ab].out )
2179         # We found the default executable, but exeext='' is most
2180         # certainly right.
2181         break;;
2182     *.* )
2183         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2184         # FIXME: I believe we export ac_cv_exeext for Libtool,
2185         # but it would be cool to find out if it's true.  Does anybody
2186         # maintain Libtool? --akim.
2187         export ac_cv_exeext
2188         break;;
2189     * )
2190         break;;
2191   esac
2192 done
2193 else
2194   echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2198 See \`config.log' for more details." >&5
2199 echo "$as_me: error: C++ compiler cannot create executables
2200 See \`config.log' for more details." >&2;}
2201    { (exit 77); exit 77; }; }
2202 fi
2203
2204 ac_exeext=$ac_cv_exeext
2205 echo "$as_me:$LINENO: result: $ac_file" >&5
2206 echo "${ECHO_T}$ac_file" >&6
2207
2208 # Check the compiler produces executables we can run.  If not, either
2209 # the compiler is broken, or we cross compile.
2210 echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2211 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
2212 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2213 # If not cross compiling, check that we can run a simple program.
2214 if test "$cross_compiling" != yes; then
2215   if { ac_try='./$ac_file'
2216   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217   (eval $ac_try) 2>&5
2218   ac_status=$?
2219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220   (exit $ac_status); }; }; then
2221     cross_compiling=no
2222   else
2223     if test "$cross_compiling" = maybe; then
2224         cross_compiling=yes
2225     else
2226         { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2227 If you meant to cross compile, use \`--host'.
2228 See \`config.log' for more details." >&5
2229 echo "$as_me: error: cannot run C++ compiled programs.
2230 If you meant to cross compile, use \`--host'.
2231 See \`config.log' for more details." >&2;}
2232    { (exit 1); exit 1; }; }
2233     fi
2234   fi
2235 fi
2236 echo "$as_me:$LINENO: result: yes" >&5
2237 echo "${ECHO_T}yes" >&6
2238
2239 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2240 ac_clean_files=$ac_clean_files_save
2241 # Check the compiler produces executables we can run.  If not, either
2242 # the compiler is broken, or we cross compile.
2243 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2244 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2245 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2246 echo "${ECHO_T}$cross_compiling" >&6
2247
2248 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2249 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2251   (eval $ac_link) 2>&5
2252   ac_status=$?
2253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254   (exit $ac_status); }; then
2255   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2256 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2257 # work properly (i.e., refer to `conftest.exe'), while it won't with
2258 # `rm'.
2259 for ac_file in conftest.exe conftest conftest.*; do
2260   test -f "$ac_file" || continue
2261   case $ac_file in
2262     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2263     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2264           export ac_cv_exeext
2265           break;;
2266     * ) break;;
2267   esac
2268 done
2269 else
2270   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2271 See \`config.log' for more details." >&5
2272 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2273 See \`config.log' for more details." >&2;}
2274    { (exit 1); exit 1; }; }
2275 fi
2276
2277 rm -f conftest$ac_cv_exeext
2278 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2279 echo "${ECHO_T}$ac_cv_exeext" >&6
2280
2281 rm -f conftest.$ac_ext
2282 EXEEXT=$ac_cv_exeext
2283 ac_exeext=$EXEEXT
2284 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2285 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2286 if test "${ac_cv_objext+set}" = set; then
2287   echo $ECHO_N "(cached) $ECHO_C" >&6
2288 else
2289   cat >conftest.$ac_ext <<_ACEOF
2290 /* confdefs.h.  */
2291 _ACEOF
2292 cat confdefs.h >>conftest.$ac_ext
2293 cat >>conftest.$ac_ext <<_ACEOF
2294 /* end confdefs.h.  */
2295
2296 int
2297 main ()
2298 {
2299
2300   ;
2301   return 0;
2302 }
2303 _ACEOF
2304 rm -f conftest.o conftest.obj
2305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2306   (eval $ac_compile) 2>&5
2307   ac_status=$?
2308   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2309   (exit $ac_status); }; then
2310   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2311   case $ac_file in
2312     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2313     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2314        break;;
2315   esac
2316 done
2317 else
2318   echo "$as_me: failed program was:" >&5
2319 sed 's/^/| /' conftest.$ac_ext >&5
2320
2321 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2322 See \`config.log' for more details." >&5
2323 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2324 See \`config.log' for more details." >&2;}
2325    { (exit 1); exit 1; }; }
2326 fi
2327
2328 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2329 fi
2330 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2331 echo "${ECHO_T}$ac_cv_objext" >&6
2332 OBJEXT=$ac_cv_objext
2333 ac_objext=$OBJEXT
2334 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2335 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2336 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2337   echo $ECHO_N "(cached) $ECHO_C" >&6
2338 else
2339   cat >conftest.$ac_ext <<_ACEOF
2340 /* confdefs.h.  */
2341 _ACEOF
2342 cat confdefs.h >>conftest.$ac_ext
2343 cat >>conftest.$ac_ext <<_ACEOF
2344 /* end confdefs.h.  */
2345
2346 int
2347 main ()
2348 {
2349 #ifndef __GNUC__
2350        choke me
2351 #endif
2352
2353   ;
2354   return 0;
2355 }
2356 _ACEOF
2357 rm -f conftest.$ac_objext
2358 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2359   (eval $ac_compile) 2>conftest.er1
2360   ac_status=$?
2361   grep -v '^ *+' conftest.er1 >conftest.err
2362   rm -f conftest.er1
2363   cat conftest.err >&5
2364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2365   (exit $ac_status); } &&
2366          { ac_try='test -z "$ac_cxx_werror_flag"
2367                          || test ! -s conftest.err'
2368   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2369   (eval $ac_try) 2>&5
2370   ac_status=$?
2371   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2372   (exit $ac_status); }; } &&
2373          { ac_try='test -s conftest.$ac_objext'
2374   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375   (eval $ac_try) 2>&5
2376   ac_status=$?
2377   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378   (exit $ac_status); }; }; then
2379   ac_compiler_gnu=yes
2380 else
2381   echo "$as_me: failed program was:" >&5
2382 sed 's/^/| /' conftest.$ac_ext >&5
2383
2384 ac_compiler_gnu=no
2385 fi
2386 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2387 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2388
2389 fi
2390 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2391 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2392 GXX=`test $ac_compiler_gnu = yes && echo yes`
2393 ac_test_CXXFLAGS=${CXXFLAGS+set}
2394 ac_save_CXXFLAGS=$CXXFLAGS
2395 CXXFLAGS="-g"
2396 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2397 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2398 if test "${ac_cv_prog_cxx_g+set}" = set; then
2399   echo $ECHO_N "(cached) $ECHO_C" >&6
2400 else
2401   cat >conftest.$ac_ext <<_ACEOF
2402 /* confdefs.h.  */
2403 _ACEOF
2404 cat confdefs.h >>conftest.$ac_ext
2405 cat >>conftest.$ac_ext <<_ACEOF
2406 /* end confdefs.h.  */
2407
2408 int
2409 main ()
2410 {
2411
2412   ;
2413   return 0;
2414 }
2415 _ACEOF
2416 rm -f conftest.$ac_objext
2417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2418   (eval $ac_compile) 2>conftest.er1
2419   ac_status=$?
2420   grep -v '^ *+' conftest.er1 >conftest.err
2421   rm -f conftest.er1
2422   cat conftest.err >&5
2423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2424   (exit $ac_status); } &&
2425          { ac_try='test -z "$ac_cxx_werror_flag"
2426                          || test ! -s conftest.err'
2427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2428   (eval $ac_try) 2>&5
2429   ac_status=$?
2430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2431   (exit $ac_status); }; } &&
2432          { ac_try='test -s conftest.$ac_objext'
2433   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2434   (eval $ac_try) 2>&5
2435   ac_status=$?
2436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437   (exit $ac_status); }; }; then
2438   ac_cv_prog_cxx_g=yes
2439 else
2440   echo "$as_me: failed program was:" >&5
2441 sed 's/^/| /' conftest.$ac_ext >&5
2442
2443 ac_cv_prog_cxx_g=no
2444 fi
2445 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2446 fi
2447 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2448 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2449 if test "$ac_test_CXXFLAGS" = set; then
2450   CXXFLAGS=$ac_save_CXXFLAGS
2451 elif test $ac_cv_prog_cxx_g = yes; then
2452   if test "$GXX" = yes; then
2453     CXXFLAGS="-g -O2"
2454   else
2455     CXXFLAGS="-g"
2456   fi
2457 else
2458   if test "$GXX" = yes; then
2459     CXXFLAGS="-O2"
2460   else
2461     CXXFLAGS=
2462   fi
2463 fi
2464 for ac_declaration in \
2465    '' \
2466    'extern "C" void std::exit (int) throw (); using std::exit;' \
2467    'extern "C" void std::exit (int); using std::exit;' \
2468    'extern "C" void exit (int) throw ();' \
2469    'extern "C" void exit (int);' \
2470    'void exit (int);'
2471 do
2472   cat >conftest.$ac_ext <<_ACEOF
2473 /* confdefs.h.  */
2474 _ACEOF
2475 cat confdefs.h >>conftest.$ac_ext
2476 cat >>conftest.$ac_ext <<_ACEOF
2477 /* end confdefs.h.  */
2478 $ac_declaration
2479 #include <stdlib.h>
2480 int
2481 main ()
2482 {
2483 exit (42);
2484   ;
2485   return 0;
2486 }
2487 _ACEOF
2488 rm -f conftest.$ac_objext
2489 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2490   (eval $ac_compile) 2>conftest.er1
2491   ac_status=$?
2492   grep -v '^ *+' conftest.er1 >conftest.err
2493   rm -f conftest.er1
2494   cat conftest.err >&5
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); } &&
2497          { ac_try='test -z "$ac_cxx_werror_flag"
2498                          || test ! -s conftest.err'
2499   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2500   (eval $ac_try) 2>&5
2501   ac_status=$?
2502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2503   (exit $ac_status); }; } &&
2504          { ac_try='test -s conftest.$ac_objext'
2505   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2506   (eval $ac_try) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }; }; then
2510   :
2511 else
2512   echo "$as_me: failed program was:" >&5
2513 sed 's/^/| /' conftest.$ac_ext >&5
2514
2515 continue
2516 fi
2517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2518   cat >conftest.$ac_ext <<_ACEOF
2519 /* confdefs.h.  */
2520 _ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h.  */
2524 $ac_declaration
2525 int
2526 main ()
2527 {
2528 exit (42);
2529   ;
2530   return 0;
2531 }
2532 _ACEOF
2533 rm -f conftest.$ac_objext
2534 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2535   (eval $ac_compile) 2>conftest.er1
2536   ac_status=$?
2537   grep -v '^ *+' conftest.er1 >conftest.err
2538   rm -f conftest.er1
2539   cat conftest.err >&5
2540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541   (exit $ac_status); } &&
2542          { ac_try='test -z "$ac_cxx_werror_flag"
2543                          || test ! -s conftest.err'
2544   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2545   (eval $ac_try) 2>&5
2546   ac_status=$?
2547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548   (exit $ac_status); }; } &&
2549          { ac_try='test -s conftest.$ac_objext'
2550   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2551   (eval $ac_try) 2>&5
2552   ac_status=$?
2553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2554   (exit $ac_status); }; }; then
2555   break
2556 else
2557   echo "$as_me: failed program was:" >&5
2558 sed 's/^/| /' conftest.$ac_ext >&5
2559
2560 fi
2561 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2562 done
2563 rm -f conftest*
2564 if test -n "$ac_declaration"; then
2565   echo '#ifdef __cplusplus' >>confdefs.h
2566   echo $ac_declaration      >>confdefs.h
2567   echo '#endif'             >>confdefs.h
2568 fi
2569
2570 ac_ext=c
2571 ac_cpp='$CPP $CPPFLAGS'
2572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2575 DEPDIR="${am__leading_dot}deps"
2576
2577           ac_config_commands="$ac_config_commands depfiles"
2578
2579
2580 am_make=${MAKE-make}
2581 cat > confinc << 'END'
2582 am__doit:
2583         @echo done
2584 .PHONY: am__doit
2585 END
2586 # If we don't find an include directive, just comment out the code.
2587 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2588 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2589 am__include="#"
2590 am__quote=
2591 _am_result=none
2592 # First try GNU make style include.
2593 echo "include confinc" > confmf
2594 # We grep out `Entering directory' and `Leaving directory'
2595 # messages which can occur if `w' ends up in MAKEFLAGS.
2596 # In particular we don't look at `^make:' because GNU make might
2597 # be invoked under some other name (usually "gmake"), in which
2598 # case it prints its new name instead of `make'.
2599 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2600    am__include=include
2601    am__quote=
2602    _am_result=GNU
2603 fi
2604 # Now try BSD make style include.
2605 if test "$am__include" = "#"; then
2606    echo '.include "confinc"' > confmf
2607    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2608       am__include=.include
2609       am__quote="\""
2610       _am_result=BSD
2611    fi
2612 fi
2613
2614
2615 echo "$as_me:$LINENO: result: $_am_result" >&5
2616 echo "${ECHO_T}$_am_result" >&6
2617 rm -f confinc confmf
2618
2619 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2620 if test "${enable_dependency_tracking+set}" = set; then
2621   enableval="$enable_dependency_tracking"
2622
2623 fi;
2624 if test "x$enable_dependency_tracking" != xno; then
2625   am_depcomp="$ac_aux_dir/depcomp"
2626   AMDEPBACKSLASH='\'
2627 fi
2628
2629
2630 if test "x$enable_dependency_tracking" != xno; then
2631   AMDEP_TRUE=
2632   AMDEP_FALSE='#'
2633 else
2634   AMDEP_TRUE='#'
2635   AMDEP_FALSE=
2636 fi
2637
2638
2639
2640
2641 depcc="$CXX"  am_compiler_list=
2642
2643 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
2644 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
2645 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
2646   echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
2649   # We make a subdir and do the tests there.  Otherwise we can end up
2650   # making bogus files that we don't know about and never remove.  For
2651   # instance it was reported that on HP-UX the gcc test will end up
2652   # making a dummy file named `D' -- because `-MD' means `put the output
2653   # in D'.
2654   mkdir conftest.dir
2655   # Copy depcomp to subdir because otherwise we won't find it if we're
2656   # using a relative directory.
2657   cp "$am_depcomp" conftest.dir
2658   cd conftest.dir
2659   # We will build objects and dependencies in a subdirectory because
2660   # it helps to detect inapplicable dependency modes.  For instance
2661   # both Tru64's cc and ICC support -MD to output dependencies as a
2662   # side effect of compilation, but ICC will put the dependencies in
2663   # the current directory while Tru64 will put them in the object
2664   # directory.
2665   mkdir sub
2666
2667   am_cv_CXX_dependencies_compiler_type=none
2668   if test "$am_compiler_list" = ""; then
2669      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
2670   fi
2671   for depmode in $am_compiler_list; do
2672     # Setup a source with many dependencies, because some compilers
2673     # like to wrap large dependency lists on column 80 (with \), and
2674     # we should not choose a depcomp mode which is confused by this.
2675     #
2676     # We need to recreate these files for each test, as the compiler may
2677     # overwrite some of them when testing with obscure command lines.
2678     # This happens at least with the AIX C compiler.
2679     : > sub/conftest.c
2680     for i in 1 2 3 4 5 6; do
2681       echo '#include "conftst'$i'.h"' >> sub/conftest.c
2682       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
2683       # Solaris 8's {/usr,}/bin/sh.
2684       touch sub/conftst$i.h
2685     done
2686     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
2687
2688     case $depmode in
2689     nosideeffect)
2690       # after this tag, mechanisms are not by side-effect, so they'll
2691       # only be used when explicitly requested
2692       if test "x$enable_dependency_tracking" = xyes; then
2693         continue
2694       else
2695         break
2696       fi
2697       ;;
2698     none) break ;;
2699     esac
2700     # We check with `-c' and `-o' for the sake of the "dashmstdout"
2701     # mode.  It turns out that the SunPro C++ compiler does not properly
2702     # handle `-M -o', and we need to detect this.
2703     if depmode=$depmode \
2704        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
2705        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
2706        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
2707          >/dev/null 2>conftest.err &&
2708        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
2709        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
2710        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
2711       # icc doesn't choke on unknown options, it will just issue warnings
2712       # or remarks (even with -Werror).  So we grep stderr for any message
2713       # that says an option was ignored or not supported.
2714       # When given -MP, icc 7.0 and 7.1 complain thusly:
2715       #   icc: Command line warning: ignoring option '-M'; no argument required
2716       # The diagnosis changed in icc 8.0:
2717       #   icc: Command line remark: option '-MP' not supported
2718       if (grep 'ignoring option' conftest.err ||
2719           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
2720         am_cv_CXX_dependencies_compiler_type=$depmode
2721         break
2722       fi
2723     fi
2724   done
2725
2726   cd ..
2727   rm -rf conftest.dir
2728 else
2729   am_cv_CXX_dependencies_compiler_type=none
2730 fi
2731
2732 fi
2733 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
2734 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
2735 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
2736
2737
2738
2739 if
2740   test "x$enable_dependency_tracking" != xno \
2741   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
2742   am__fastdepCXX_TRUE=
2743   am__fastdepCXX_FALSE='#'
2744 else
2745   am__fastdepCXX_TRUE='#'
2746   am__fastdepCXX_FALSE=
2747 fi
2748
2749
2750 # Check whether --enable-shared or --disable-shared was given.
2751 if test "${enable_shared+set}" = set; then
2752   enableval="$enable_shared"
2753   p=${PACKAGE-default}
2754     case $enableval in
2755     yes) enable_shared=yes ;;
2756     no) enable_shared=no ;;
2757     *)
2758       enable_shared=no
2759       # Look at the argument we got.  We use all the common list separators.
2760       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2761       for pkg in $enableval; do
2762         IFS="$lt_save_ifs"
2763         if test "X$pkg" = "X$p"; then
2764           enable_shared=yes
2765         fi
2766       done
2767       IFS="$lt_save_ifs"
2768       ;;
2769     esac
2770 else
2771   enable_shared=yes
2772 fi;
2773
2774 # Check whether --enable-static or --disable-static was given.
2775 if test "${enable_static+set}" = set; then
2776   enableval="$enable_static"
2777   p=${PACKAGE-default}
2778     case $enableval in
2779     yes) enable_static=yes ;;
2780     no) enable_static=no ;;
2781     *)
2782      enable_static=no
2783       # Look at the argument we got.  We use all the common list separators.
2784       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2785       for pkg in $enableval; do
2786         IFS="$lt_save_ifs"
2787         if test "X$pkg" = "X$p"; then
2788           enable_static=yes
2789         fi
2790       done
2791       IFS="$lt_save_ifs"
2792       ;;
2793     esac
2794 else
2795   enable_static=yes
2796 fi;
2797
2798 # Check whether --enable-fast-install or --disable-fast-install was given.
2799 if test "${enable_fast_install+set}" = set; then
2800   enableval="$enable_fast_install"
2801   p=${PACKAGE-default}
2802     case $enableval in
2803     yes) enable_fast_install=yes ;;
2804     no) enable_fast_install=no ;;
2805     *)
2806       enable_fast_install=no
2807       # Look at the argument we got.  We use all the common list separators.
2808       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2809       for pkg in $enableval; do
2810         IFS="$lt_save_ifs"
2811         if test "X$pkg" = "X$p"; then
2812           enable_fast_install=yes
2813         fi
2814       done
2815       IFS="$lt_save_ifs"
2816       ;;
2817     esac
2818 else
2819   enable_fast_install=yes
2820 fi;
2821
2822 # Make sure we can run config.sub.
2823 $ac_config_sub sun4 >/dev/null 2>&1 ||
2824   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2825 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2826    { (exit 1); exit 1; }; }
2827
2828 echo "$as_me:$LINENO: checking build system type" >&5
2829 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2830 if test "${ac_cv_build+set}" = set; then
2831   echo $ECHO_N "(cached) $ECHO_C" >&6
2832 else
2833   ac_cv_build_alias=$build_alias
2834 test -z "$ac_cv_build_alias" &&
2835   ac_cv_build_alias=`$ac_config_guess`
2836 test -z "$ac_cv_build_alias" &&
2837   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2838 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2839    { (exit 1); exit 1; }; }
2840 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2841   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2842 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2843    { (exit 1); exit 1; }; }
2844
2845 fi
2846 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2847 echo "${ECHO_T}$ac_cv_build" >&6
2848 build=$ac_cv_build
2849 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2850 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2851 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2852
2853
2854 echo "$as_me:$LINENO: checking host system type" >&5
2855 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2856 if test "${ac_cv_host+set}" = set; then
2857   echo $ECHO_N "(cached) $ECHO_C" >&6
2858 else
2859   ac_cv_host_alias=$host_alias
2860 test -z "$ac_cv_host_alias" &&
2861   ac_cv_host_alias=$ac_cv_build_alias
2862 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2863   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2864 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2865    { (exit 1); exit 1; }; }
2866
2867 fi
2868 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2869 echo "${ECHO_T}$ac_cv_host" >&6
2870 host=$ac_cv_host
2871 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2872 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2873 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2874
2875
2876 ac_ext=c
2877 ac_cpp='$CPP $CPPFLAGS'
2878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2884 echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887   echo $ECHO_N "(cached) $ECHO_C" >&6
2888 else
2889   if test -n "$CC"; then
2890   ac_cv_prog_CC="$CC" # Let the user override the test.
2891 else
2892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2893 for as_dir in $PATH
2894 do
2895   IFS=$as_save_IFS
2896   test -z "$as_dir" && as_dir=.
2897   for ac_exec_ext in '' $ac_executable_extensions; do
2898   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2899     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2901     break 2
2902   fi
2903 done
2904 done
2905
2906 fi
2907 fi
2908 CC=$ac_cv_prog_CC
2909 if test -n "$CC"; then
2910   echo "$as_me:$LINENO: result: $CC" >&5
2911 echo "${ECHO_T}$CC" >&6
2912 else
2913   echo "$as_me:$LINENO: result: no" >&5
2914 echo "${ECHO_T}no" >&6
2915 fi
2916
2917 fi
2918 if test -z "$ac_cv_prog_CC"; then
2919   ac_ct_CC=$CC
2920   # Extract the first word of "gcc", so it can be a program name with args.
2921 set dummy gcc; ac_word=$2
2922 echo "$as_me:$LINENO: checking for $ac_word" >&5
2923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2924 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2925   echo $ECHO_N "(cached) $ECHO_C" >&6
2926 else
2927   if test -n "$ac_ct_CC"; then
2928   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2929 else
2930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2931 for as_dir in $PATH
2932 do
2933   IFS=$as_save_IFS
2934   test -z "$as_dir" && as_dir=.
2935   for ac_exec_ext in '' $ac_executable_extensions; do
2936   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2937     ac_cv_prog_ac_ct_CC="gcc"
2938     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2939     break 2
2940   fi
2941 done
2942 done
2943
2944 fi
2945 fi
2946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2947 if test -n "$ac_ct_CC"; then
2948   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2949 echo "${ECHO_T}$ac_ct_CC" >&6
2950 else
2951   echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6
2953 fi
2954
2955   CC=$ac_ct_CC
2956 else
2957   CC="$ac_cv_prog_CC"
2958 fi
2959
2960 if test -z "$CC"; then
2961   if test -n "$ac_tool_prefix"; then
2962   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2963 set dummy ${ac_tool_prefix}cc; ac_word=$2
2964 echo "$as_me:$LINENO: checking for $ac_word" >&5
2965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2966 if test "${ac_cv_prog_CC+set}" = set; then
2967   echo $ECHO_N "(cached) $ECHO_C" >&6
2968 else
2969   if test -n "$CC"; then
2970   ac_cv_prog_CC="$CC" # Let the user override the test.
2971 else
2972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2973 for as_dir in $PATH
2974 do
2975   IFS=$as_save_IFS
2976   test -z "$as_dir" && as_dir=.
2977   for ac_exec_ext in '' $ac_executable_extensions; do
2978   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2979     ac_cv_prog_CC="${ac_tool_prefix}cc"
2980     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2981     break 2
2982   fi
2983 done
2984 done
2985
2986 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990   echo "$as_me:$LINENO: result: $CC" >&5
2991 echo "${ECHO_T}$CC" >&6
2992 else
2993   echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6
2995 fi
2996
2997 fi
2998 if test -z "$ac_cv_prog_CC"; then
2999   ac_ct_CC=$CC
3000   # Extract the first word of "cc", so it can be a program name with args.
3001 set dummy cc; ac_word=$2
3002 echo "$as_me:$LINENO: checking for $ac_word" >&5
3003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3004 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3005   echo $ECHO_N "(cached) $ECHO_C" >&6
3006 else
3007   if test -n "$ac_ct_CC"; then
3008   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3009 else
3010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3011 for as_dir in $PATH
3012 do
3013   IFS=$as_save_IFS
3014   test -z "$as_dir" && as_dir=.
3015   for ac_exec_ext in '' $ac_executable_extensions; do
3016   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3017     ac_cv_prog_ac_ct_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 fi
3025 fi
3026 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3027 if test -n "$ac_ct_CC"; then
3028   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3029 echo "${ECHO_T}$ac_ct_CC" >&6
3030 else
3031   echo "$as_me:$LINENO: result: no" >&5
3032 echo "${ECHO_T}no" >&6
3033 fi
3034
3035   CC=$ac_ct_CC
3036 else
3037   CC="$ac_cv_prog_CC"
3038 fi
3039
3040 fi
3041 if test -z "$CC"; then
3042   # Extract the first word of "cc", so it can be a program name with args.
3043 set dummy cc; ac_word=$2
3044 echo "$as_me:$LINENO: checking for $ac_word" >&5
3045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046 if test "${ac_cv_prog_CC+set}" = set; then
3047   echo $ECHO_N "(cached) $ECHO_C" >&6
3048 else
3049   if test -n "$CC"; then
3050   ac_cv_prog_CC="$CC" # Let the user override the test.
3051 else
3052   ac_prog_rejected=no
3053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3054 for as_dir in $PATH
3055 do
3056   IFS=$as_save_IFS
3057   test -z "$as_dir" && as_dir=.
3058   for ac_exec_ext in '' $ac_executable_extensions; do
3059   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3060     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3061        ac_prog_rejected=yes
3062        continue
3063      fi
3064     ac_cv_prog_CC="cc"
3065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3066     break 2
3067   fi
3068 done
3069 done
3070
3071 if test $ac_prog_rejected = yes; then
3072   # We found a bogon in the path, so make sure we never use it.
3073   set dummy $ac_cv_prog_CC
3074   shift
3075   if test $# != 0; then
3076     # We chose a different compiler from the bogus one.
3077     # However, it has the same basename, so the bogon will be chosen
3078     # first if we set CC to just the basename; use the full file name.
3079     shift
3080     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3081   fi
3082 fi
3083 fi
3084 fi
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087   echo "$as_me:$LINENO: result: $CC" >&5
3088 echo "${ECHO_T}$CC" >&6
3089 else
3090   echo "$as_me:$LINENO: result: no" >&5
3091 echo "${ECHO_T}no" >&6
3092 fi
3093
3094 fi
3095 if test -z "$CC"; then
3096   if test -n "$ac_tool_prefix"; then
3097   for ac_prog in cl
3098   do
3099     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3101 echo "$as_me:$LINENO: checking for $ac_word" >&5
3102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3103 if test "${ac_cv_prog_CC+set}" = set; then
3104   echo $ECHO_N "(cached) $ECHO_C" >&6
3105 else
3106   if test -n "$CC"; then
3107   ac_cv_prog_CC="$CC" # Let the user override the test.
3108 else
3109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3110 for as_dir in $PATH
3111 do
3112   IFS=$as_save_IFS
3113   test -z "$as_dir" && as_dir=.
3114   for ac_exec_ext in '' $ac_executable_extensions; do
3115   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3116     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3117     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3118     break 2
3119   fi
3120 done
3121 done
3122
3123 fi
3124 fi
3125 CC=$ac_cv_prog_CC
3126 if test -n "$CC"; then
3127   echo "$as_me:$LINENO: result: $CC" >&5
3128 echo "${ECHO_T}$CC" >&6
3129 else
3130   echo "$as_me:$LINENO: result: no" >&5
3131 echo "${ECHO_T}no" >&6
3132 fi
3133
3134     test -n "$CC" && break
3135   done
3136 fi
3137 if test -z "$CC"; then
3138   ac_ct_CC=$CC
3139   for ac_prog in cl
3140 do
3141   # Extract the first word of "$ac_prog", so it can be a program name with args.
3142 set dummy $ac_prog; ac_word=$2
3143 echo "$as_me:$LINENO: checking for $ac_word" >&5
3144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3145 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3146   echo $ECHO_N "(cached) $ECHO_C" >&6
3147 else
3148   if test -n "$ac_ct_CC"; then
3149   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3150 else
3151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3152 for as_dir in $PATH
3153 do
3154   IFS=$as_save_IFS
3155   test -z "$as_dir" && as_dir=.
3156   for ac_exec_ext in '' $ac_executable_extensions; do
3157   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3158     ac_cv_prog_ac_ct_CC="$ac_prog"
3159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3160     break 2
3161   fi
3162 done
3163 done
3164
3165 fi
3166 fi
3167 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3170 echo "${ECHO_T}$ac_ct_CC" >&6
3171 else
3172   echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6
3174 fi
3175
3176   test -n "$ac_ct_CC" && break
3177 done
3178
3179   CC=$ac_ct_CC
3180 fi
3181
3182 fi
3183
3184
3185 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details." >&5
3187 echo "$as_me: error: no acceptable C compiler found in \$PATH
3188 See \`config.log' for more details." >&2;}
3189    { (exit 1); exit 1; }; }
3190
3191 # Provide some information about the compiler.
3192 echo "$as_me:$LINENO:" \
3193      "checking for C compiler version" >&5
3194 ac_compiler=`set X $ac_compile; echo $2`
3195 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3196   (eval $ac_compiler --version </dev/null >&5) 2>&5
3197   ac_status=$?
3198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3199   (exit $ac_status); }
3200 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3201   (eval $ac_compiler -v </dev/null >&5) 2>&5
3202   ac_status=$?
3203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204   (exit $ac_status); }
3205 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3206   (eval $ac_compiler -V </dev/null >&5) 2>&5
3207   ac_status=$?
3208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209   (exit $ac_status); }
3210
3211 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3212 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3213 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3214   echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216   cat >conftest.$ac_ext <<_ACEOF
3217 /* confdefs.h.  */
3218 _ACEOF
3219 cat confdefs.h >>conftest.$ac_ext
3220 cat >>conftest.$ac_ext <<_ACEOF
3221 /* end confdefs.h.  */
3222
3223 int
3224 main ()
3225 {
3226 #ifndef __GNUC__
3227        choke me
3228 #endif
3229
3230   ;
3231   return 0;
3232 }
3233 _ACEOF
3234 rm -f conftest.$ac_objext
3235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3236   (eval $ac_compile) 2>conftest.er1
3237   ac_status=$?
3238   grep -v '^ *+' conftest.er1 >conftest.err
3239   rm -f conftest.er1
3240   cat conftest.err >&5
3241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3242   (exit $ac_status); } &&
3243          { ac_try='test -z "$ac_c_werror_flag"
3244                          || test ! -s conftest.err'
3245   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246   (eval $ac_try) 2>&5
3247   ac_status=$?
3248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249   (exit $ac_status); }; } &&
3250          { ac_try='test -s conftest.$ac_objext'
3251   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3252   (eval $ac_try) 2>&5
3253   ac_status=$?
3254   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255   (exit $ac_status); }; }; then
3256   ac_compiler_gnu=yes
3257 else
3258   echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3260
3261 ac_compiler_gnu=no
3262 fi
3263 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3264 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3265
3266 fi
3267 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3268 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3269 GCC=`test $ac_compiler_gnu = yes && echo yes`
3270 ac_test_CFLAGS=${CFLAGS+set}
3271 ac_save_CFLAGS=$CFLAGS
3272 CFLAGS="-g"
3273 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3274 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3275 if test "${ac_cv_prog_cc_g+set}" = set; then
3276   echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278   cat >conftest.$ac_ext <<_ACEOF
3279 /* confdefs.h.  */
3280 _ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h.  */
3284
3285 int
3286 main ()
3287 {
3288
3289   ;
3290   return 0;
3291 }
3292 _ACEOF
3293 rm -f conftest.$ac_objext
3294 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3295   (eval $ac_compile) 2>conftest.er1
3296   ac_status=$?
3297   grep -v '^ *+' conftest.er1 >conftest.err
3298   rm -f conftest.er1
3299   cat conftest.err >&5
3300   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3301   (exit $ac_status); } &&
3302          { ac_try='test -z "$ac_c_werror_flag"
3303                          || test ! -s conftest.err'
3304   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3305   (eval $ac_try) 2>&5
3306   ac_status=$?
3307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308   (exit $ac_status); }; } &&
3309          { ac_try='test -s conftest.$ac_objext'
3310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3311   (eval $ac_try) 2>&5
3312   ac_status=$?
3313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314   (exit $ac_status); }; }; then
3315   ac_cv_prog_cc_g=yes
3316 else
3317   echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3319
3320 ac_cv_prog_cc_g=no
3321 fi
3322 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3323 fi
3324 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3325 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3326 if test "$ac_test_CFLAGS" = set; then
3327   CFLAGS=$ac_save_CFLAGS
3328 elif test $ac_cv_prog_cc_g = yes; then
3329   if test "$GCC" = yes; then
3330     CFLAGS="-g -O2"
3331   else
3332     CFLAGS="-g"
3333   fi
3334 else
3335   if test "$GCC" = yes; then
3336     CFLAGS="-O2"
3337   else
3338     CFLAGS=
3339   fi
3340 fi
3341 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3342 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3343 if test "${ac_cv_prog_cc_stdc+set}" = set; then
3344   echo $ECHO_N "(cached) $ECHO_C" >&6
3345 else
3346   ac_cv_prog_cc_stdc=no
3347 ac_save_CC=$CC
3348 cat >conftest.$ac_ext <<_ACEOF
3349 /* confdefs.h.  */
3350 _ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h.  */
3354 #include <stdarg.h>
3355 #include <stdio.h>
3356 #include <sys/types.h>
3357 #include <sys/stat.h>
3358 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3359 struct buf { int x; };
3360 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3361 static char *e (p, i)
3362      char **p;
3363      int i;
3364 {
3365   return p[i];
3366 }
3367 static char *f (char * (*g) (char **, int), char **p, ...)
3368 {
3369   char *s;
3370   va_list v;
3371   va_start (v,p);
3372   s = g (p, va_arg (v,int));
3373   va_end (v);
3374   return s;
3375 }
3376
3377 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3378    function prototypes and stuff, but not '\xHH' hex character constants.
3379    These don't provoke an error unfortunately, instead are silently treated
3380    as 'x'.  The following induces an error, until -std1 is added to get
3381    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3382    array size at least.  It's necessary to write '\x00'==0 to get something
3383    that's true only with -std1.  */
3384 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3385
3386 int test (int i, double x);
3387 struct s1 {int (*f) (int a);};
3388 struct s2 {int (*f) (double a);};
3389 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3390 int argc;
3391 char **argv;
3392 int
3393 main ()
3394 {
3395 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3396   ;
3397   return 0;
3398 }
3399 _ACEOF
3400 # Don't try gcc -ansi; that turns off useful extensions and
3401 # breaks some systems' header files.
3402 # AIX                   -qlanglvl=ansi
3403 # Ultrix and OSF/1      -std1
3404 # HP-UX 10.20 and later -Ae
3405 # HP-UX older versions  -Aa -D_HPUX_SOURCE
3406 # SVR4                  -Xc -D__EXTENSIONS__
3407 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3408 do
3409   CC="$ac_save_CC $ac_arg"
3410   rm -f conftest.$ac_objext
3411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3412   (eval $ac_compile) 2>conftest.er1
3413   ac_status=$?
3414   grep -v '^ *+' conftest.er1 >conftest.err
3415   rm -f conftest.er1
3416   cat conftest.err >&5
3417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3418   (exit $ac_status); } &&
3419          { ac_try='test -z "$ac_c_werror_flag"
3420                          || test ! -s conftest.err'
3421   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3422   (eval $ac_try) 2>&5
3423   ac_status=$?
3424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3425   (exit $ac_status); }; } &&
3426          { ac_try='test -s conftest.$ac_objext'
3427   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3428   (eval $ac_try) 2>&5
3429   ac_status=$?
3430   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3431   (exit $ac_status); }; }; then
3432   ac_cv_prog_cc_stdc=$ac_arg
3433 break
3434 else
3435   echo "$as_me: failed program was:" >&5
3436 sed 's/^/| /' conftest.$ac_ext >&5
3437
3438 fi
3439 rm -f conftest.err conftest.$ac_objext
3440 done
3441 rm -f conftest.$ac_ext conftest.$ac_objext
3442 CC=$ac_save_CC
3443
3444 fi
3445
3446 case "x$ac_cv_prog_cc_stdc" in
3447   x|xno)
3448     echo "$as_me:$LINENO: result: none needed" >&5
3449 echo "${ECHO_T}none needed" >&6 ;;
3450   *)
3451     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3452 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3453     CC="$CC $ac_cv_prog_cc_stdc" ;;
3454 esac
3455
3456 # Some people use a C++ compiler to compile C.  Since we use `exit',
3457 # in C++ we need to declare it.  In case someone uses the same compiler
3458 # for both compiling C and C++ we need to have the C++ compiler decide
3459 # the declaration of exit, since it's the most demanding environment.
3460 cat >conftest.$ac_ext <<_ACEOF
3461 #ifndef __cplusplus
3462   choke me
3463 #endif
3464 _ACEOF
3465 rm -f conftest.$ac_objext
3466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3467   (eval $ac_compile) 2>conftest.er1
3468   ac_status=$?
3469   grep -v '^ *+' conftest.er1 >conftest.err
3470   rm -f conftest.er1
3471   cat conftest.err >&5
3472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473   (exit $ac_status); } &&
3474          { ac_try='test -z "$ac_c_werror_flag"
3475                          || test ! -s conftest.err'
3476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3477   (eval $ac_try) 2>&5
3478   ac_status=$?
3479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3480   (exit $ac_status); }; } &&
3481          { ac_try='test -s conftest.$ac_objext'
3482   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3483   (eval $ac_try) 2>&5
3484   ac_status=$?
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); }; }; then
3487   for ac_declaration in \
3488    '' \
3489    'extern "C" void std::exit (int) throw (); using std::exit;' \
3490    'extern "C" void std::exit (int); using std::exit;' \
3491    'extern "C" void exit (int) throw ();' \
3492    'extern "C" void exit (int);' \
3493    'void exit (int);'
3494 do
3495   cat >conftest.$ac_ext <<_ACEOF
3496 /* confdefs.h.  */
3497 _ACEOF
3498 cat confdefs.h >>conftest.$ac_ext
3499 cat >>conftest.$ac_ext <<_ACEOF
3500 /* end confdefs.h.  */
3501 $ac_declaration
3502 #include <stdlib.h>
3503 int
3504 main ()
3505 {
3506 exit (42);
3507   ;
3508   return 0;
3509 }
3510 _ACEOF
3511 rm -f conftest.$ac_objext
3512 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3513   (eval $ac_compile) 2>conftest.er1
3514   ac_status=$?
3515   grep -v '^ *+' conftest.er1 >conftest.err
3516   rm -f conftest.er1
3517   cat conftest.err >&5
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); } &&
3520          { ac_try='test -z "$ac_c_werror_flag"
3521                          || test ! -s conftest.err'
3522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3523   (eval $ac_try) 2>&5
3524   ac_status=$?
3525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526   (exit $ac_status); }; } &&
3527          { ac_try='test -s conftest.$ac_objext'
3528   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3529   (eval $ac_try) 2>&5
3530   ac_status=$?
3531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3532   (exit $ac_status); }; }; then
3533   :
3534 else
3535   echo "$as_me: failed program was:" >&5
3536 sed 's/^/| /' conftest.$ac_ext >&5
3537
3538 continue
3539 fi
3540 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3541   cat >conftest.$ac_ext <<_ACEOF
3542 /* confdefs.h.  */
3543 _ACEOF
3544 cat confdefs.h >>conftest.$ac_ext
3545 cat >>conftest.$ac_ext <<_ACEOF
3546 /* end confdefs.h.  */
3547 $ac_declaration
3548 int
3549 main ()
3550 {
3551 exit (42);
3552   ;
3553   return 0;
3554 }
3555 _ACEOF
3556 rm -f conftest.$ac_objext
3557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3558   (eval $ac_compile) 2>conftest.er1
3559   ac_status=$?
3560   grep -v '^ *+' conftest.er1 >conftest.err
3561   rm -f conftest.er1
3562   cat conftest.err >&5
3563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3564   (exit $ac_status); } &&
3565          { ac_try='test -z "$ac_c_werror_flag"
3566                          || test ! -s conftest.err'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; } &&
3572          { ac_try='test -s conftest.$ac_objext'
3573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3574   (eval $ac_try) 2>&5
3575   ac_status=$?
3576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3577   (exit $ac_status); }; }; then
3578   break
3579 else
3580   echo "$as_me: failed program was:" >&5
3581 sed 's/^/| /' conftest.$ac_ext >&5
3582
3583 fi
3584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3585 done
3586 rm -f conftest*
3587 if test -n "$ac_declaration"; then
3588   echo '#ifdef __cplusplus' >>confdefs.h
3589   echo $ac_declaration      >>confdefs.h
3590   echo '#endif'             >>confdefs.h
3591 fi
3592
3593 else
3594   echo "$as_me: failed program was:" >&5
3595 sed 's/^/| /' conftest.$ac_ext >&5
3596
3597 fi
3598 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3599 ac_ext=c
3600 ac_cpp='$CPP $CPPFLAGS'
3601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3604
3605 depcc="$CC"   am_compiler_list=
3606
3607 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3608 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3609 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3610   echo $ECHO_N "(cached) $ECHO_C" >&6
3611 else
3612   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3613   # We make a subdir and do the tests there.  Otherwise we can end up
3614   # making bogus files that we don't know about and never remove.  For
3615   # instance it was reported that on HP-UX the gcc test will end up
3616   # making a dummy file named `D' -- because `-MD' means `put the output
3617   # in D'.
3618   mkdir conftest.dir
3619   # Copy depcomp to subdir because otherwise we won't find it if we're
3620   # using a relative directory.
3621   cp "$am_depcomp" conftest.dir
3622   cd conftest.dir
3623   # We will build objects and dependencies in a subdirectory because
3624   # it helps to detect inapplicable dependency modes.  For instance
3625   # both Tru64's cc and ICC support -MD to output dependencies as a
3626   # side effect of compilation, but ICC will put the dependencies in
3627   # the current directory while Tru64 will put them in the object
3628   # directory.
3629   mkdir sub
3630
3631   am_cv_CC_dependencies_compiler_type=none
3632   if test "$am_compiler_list" = ""; then
3633      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3634   fi
3635   for depmode in $am_compiler_list; do
3636     # Setup a source with many dependencies, because some compilers
3637     # like to wrap large dependency lists on column 80 (with \), and
3638     # we should not choose a depcomp mode which is confused by this.
3639     #
3640     # We need to recreate these files for each test, as the compiler may
3641     # overwrite some of them when testing with obscure command lines.
3642     # This happens at least with the AIX C compiler.
3643     : > sub/conftest.c
3644     for i in 1 2 3 4 5 6; do
3645       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3646       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3647       # Solaris 8's {/usr,}/bin/sh.
3648       touch sub/conftst$i.h
3649     done
3650     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3651
3652     case $depmode in
3653     nosideeffect)
3654       # after this tag, mechanisms are not by side-effect, so they'll
3655       # only be used when explicitly requested
3656       if test "x$enable_dependency_tracking" = xyes; then
3657         continue
3658       else
3659         break
3660       fi
3661       ;;
3662     none) break ;;
3663     esac
3664     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3665     # mode.  It turns out that the SunPro C++ compiler does not properly
3666     # handle `-M -o', and we need to detect this.
3667     if depmode=$depmode \
3668        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3669        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3670        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3671          >/dev/null 2>conftest.err &&
3672        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3673        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3674        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3675       # icc doesn't choke on unknown options, it will just issue warnings
3676       # or remarks (even with -Werror).  So we grep stderr for any message
3677       # that says an option was ignored or not supported.
3678       # When given -MP, icc 7.0 and 7.1 complain thusly:
3679       #   icc: Command line warning: ignoring option '-M'; no argument required
3680       # The diagnosis changed in icc 8.0:
3681       #   icc: Command line remark: option '-MP' not supported
3682       if (grep 'ignoring option' conftest.err ||
3683           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3684         am_cv_CC_dependencies_compiler_type=$depmode
3685         break
3686       fi
3687     fi
3688   done
3689
3690   cd ..
3691   rm -rf conftest.dir
3692 else
3693   am_cv_CC_dependencies_compiler_type=none
3694 fi
3695
3696 fi
3697 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3698 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3699 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3700
3701
3702
3703 if
3704   test "x$enable_dependency_tracking" != xno \
3705   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3706   am__fastdepCC_TRUE=
3707   am__fastdepCC_FALSE='#'
3708 else
3709   am__fastdepCC_TRUE='#'
3710   am__fastdepCC_FALSE=
3711 fi
3712
3713
3714 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3715 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3716 if test "${lt_cv_path_SED+set}" = set; then
3717   echo $ECHO_N "(cached) $ECHO_C" >&6
3718 else
3719   # Loop through the user's path and test for sed and gsed.
3720 # Then use that list of sed's as ones to test for truncation.
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724   IFS=$as_save_IFS
3725   test -z "$as_dir" && as_dir=.
3726   for lt_ac_prog in sed gsed; do
3727     for ac_exec_ext in '' $ac_executable_extensions; do
3728       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3729         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3730       fi
3731     done
3732   done
3733 done
3734 lt_ac_max=0
3735 lt_ac_count=0
3736 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3737 # along with /bin/sed that truncates output.
3738 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3739   test ! -f $lt_ac_sed && continue
3740   cat /dev/null > conftest.in
3741   lt_ac_count=0
3742   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3743   # Check for GNU sed and select it if it is found.
3744   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3745     lt_cv_path_SED=$lt_ac_sed
3746     break
3747   fi
3748   while true; do
3749     cat conftest.in conftest.in >conftest.tmp
3750     mv conftest.tmp conftest.in
3751     cp conftest.in conftest.nl
3752     echo >>conftest.nl
3753     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3754     cmp -s conftest.out conftest.nl || break
3755     # 10000 chars as input seems more than enough
3756     test $lt_ac_count -gt 10 && break
3757     lt_ac_count=`expr $lt_ac_count + 1`
3758     if test $lt_ac_count -gt $lt_ac_max; then
3759       lt_ac_max=$lt_ac_count
3760       lt_cv_path_SED=$lt_ac_sed
3761     fi
3762   done
3763 done
3764
3765 fi
3766
3767 SED=$lt_cv_path_SED
3768 echo "$as_me:$LINENO: result: $SED" >&5
3769 echo "${ECHO_T}$SED" >&6
3770
3771 echo "$as_me:$LINENO: checking for egrep" >&5
3772 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3773 if test "${ac_cv_prog_egrep+set}" = set; then
3774   echo $ECHO_N "(cached) $ECHO_C" >&6
3775 else
3776   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3777     then ac_cv_prog_egrep='grep -E'
3778     else ac_cv_prog_egrep='egrep'
3779     fi
3780 fi
3781 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3782 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3783  EGREP=$ac_cv_prog_egrep
3784
3785
3786
3787 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3788 if test "${with_gnu_ld+set}" = set; then
3789   withval="$with_gnu_ld"
3790   test "$withval" = no || with_gnu_ld=yes
3791 else
3792   with_gnu_ld=no
3793 fi;
3794 ac_prog=ld
3795 if test "$GCC" = yes; then
3796   # Check if gcc -print-prog-name=ld gives a path.
3797   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3798 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3799   case $host in
3800   *-*-mingw*)
3801     # gcc leaves a trailing carriage return which upsets mingw
3802     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3803   *)
3804     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3805   esac
3806   case $ac_prog in
3807     # Accept absolute paths.
3808     [\\/]* | ?:[\\/]*)
3809       re_direlt='/[^/][^/]*/\.\./'
3810       # Canonicalize the pathname of ld
3811       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3812       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3813         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3814       done
3815       test -z "$LD" && LD="$ac_prog"
3816       ;;
3817   "")
3818     # If it fails, then pretend we aren't using GCC.
3819     ac_prog=ld
3820     ;;
3821   *)
3822     # If it is relative, then search for the first ld in PATH.
3823     with_gnu_ld=unknown
3824     ;;
3825   esac
3826 elif test "$with_gnu_ld" = yes; then
3827   echo "$as_me:$LINENO: checking for GNU ld" >&5
3828 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3829 else
3830   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3831 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3832 fi
3833 if test "${lt_cv_path_LD+set}" = set; then
3834   echo $ECHO_N "(cached) $ECHO_C" >&6
3835 else
3836   if test -z "$LD"; then
3837   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3838   for ac_dir in $PATH; do
3839     IFS="$lt_save_ifs"
3840     test -z "$ac_dir" && ac_dir=.
3841     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3842       lt_cv_path_LD="$ac_dir/$ac_prog"
3843       # Check to see if the program is GNU ld.  I'd rather use --version,
3844       # but apparently some variants of GNU ld only accept -v.
3845       # Break only if it was the GNU/non-GNU ld that we prefer.
3846       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3847       *GNU* | *'with BFD'*)
3848         test "$with_gnu_ld" != no && break
3849         ;;
3850       *)
3851         test "$with_gnu_ld" != yes && break
3852         ;;
3853       esac
3854     fi
3855   done
3856   IFS="$lt_save_ifs"
3857 else
3858   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3859 fi
3860 fi
3861
3862 LD="$lt_cv_path_LD"
3863 if test -n "$LD"; then
3864   echo "$as_me:$LINENO: result: $LD" >&5
3865 echo "${ECHO_T}$LD" >&6
3866 else
3867   echo "$as_me:$LINENO: result: no" >&5
3868 echo "${ECHO_T}no" >&6
3869 fi
3870 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3871 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3872    { (exit 1); exit 1; }; }
3873 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3874 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3875 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3876   echo $ECHO_N "(cached) $ECHO_C" >&6
3877 else
3878   # I'd rather use --version here, but apparently some GNU lds only accept -v.
3879 case `$LD -v 2>&1 </dev/null` in
3880 *GNU* | *'with BFD'*)
3881   lt_cv_prog_gnu_ld=yes
3882   ;;
3883 *)
3884   lt_cv_prog_gnu_ld=no
3885   ;;
3886 esac
3887 fi
3888 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3889 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3890 with_gnu_ld=$lt_cv_prog_gnu_ld
3891
3892
3893 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3894 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3895 if test "${lt_cv_ld_reload_flag+set}" = set; then
3896   echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898   lt_cv_ld_reload_flag='-r'
3899 fi
3900 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3901 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3902 reload_flag=$lt_cv_ld_reload_flag
3903 case $reload_flag in
3904 "" | " "*) ;;
3905 *) reload_flag=" $reload_flag" ;;
3906 esac
3907 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3908 case $host_os in
3909   darwin*)
3910     if test "$GCC" = yes; then
3911       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
3912     else
3913       reload_cmds='$LD$reload_flag -o $output$reload_objs'
3914     fi
3915     ;;
3916 esac
3917
3918 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3919 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3920 if test "${lt_cv_path_NM+set}" = set; then
3921   echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923   if test -n "$NM"; then
3924   # Let the user override the test.
3925   lt_cv_path_NM="$NM"
3926 else
3927   lt_nm_to_check="${ac_tool_prefix}nm"
3928   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3929     lt_nm_to_check="$lt_nm_to_check nm"
3930   fi
3931   for lt_tmp_nm in $lt_nm_to_check; do
3932     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3933     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3934       IFS="$lt_save_ifs"
3935       test -z "$ac_dir" && ac_dir=.
3936       tmp_nm="$ac_dir/$lt_tmp_nm"
3937       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3938         # Check to see if the nm accepts a BSD-compat flag.
3939         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3940         #   nm: unknown option "B" ignored
3941         # Tru64's nm complains that /dev/null is an invalid object file
3942         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3943         */dev/null* | *'Invalid file or object type'*)
3944           lt_cv_path_NM="$tmp_nm -B"
3945           break
3946           ;;
3947         *)
3948           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3949           */dev/null*)
3950             lt_cv_path_NM="$tmp_nm -p"
3951             break
3952             ;;
3953           *)
3954             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3955             continue # so that we can try to find one that supports BSD flags
3956             ;;
3957           esac
3958           ;;
3959         esac
3960       fi
3961     done
3962     IFS="$lt_save_ifs"
3963   done
3964   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3965 fi
3966 fi
3967 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3968 echo "${ECHO_T}$lt_cv_path_NM" >&6
3969 NM="$lt_cv_path_NM"
3970
3971 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3972 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3973 LN_S=$as_ln_s
3974 if test "$LN_S" = "ln -s"; then
3975   echo "$as_me:$LINENO: result: yes" >&5
3976 echo "${ECHO_T}yes" >&6
3977 else
3978   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3979 echo "${ECHO_T}no, using $LN_S" >&6
3980 fi
3981
3982 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3983 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3984 if test "${lt_cv_deplibs_check_method+set}" = set; then
3985   echo $ECHO_N "(cached) $ECHO_C" >&6
3986 else
3987   lt_cv_file_magic_cmd='$MAGIC_CMD'
3988 lt_cv_file_magic_test_file=
3989 lt_cv_deplibs_check_method='unknown'
3990 # Need to set the preceding variable on all platforms that support
3991 # interlibrary dependencies.
3992 # 'none' -- dependencies not supported.
3993 # `unknown' -- same as none, but documents that we really don't know.
3994 # 'pass_all' -- all dependencies passed with no checks.
3995 # 'test_compile' -- check by making test program.
3996 # 'file_magic [[regex]]' -- check by looking for files in library path
3997 # which responds to the $file_magic_cmd with a given extended regex.
3998 # If you have `file' or equivalent on your system and you're not sure
3999 # whether `pass_all' will *always* work, you probably want this one.
4000
4001 case $host_os in
4002 aix4* | aix5*)
4003   lt_cv_deplibs_check_method=pass_all
4004   ;;
4005
4006 beos*)
4007   lt_cv_deplibs_check_method=pass_all
4008   ;;
4009
4010 bsdi[45]*)
4011   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4012   lt_cv_file_magic_cmd='/usr/bin/file -L'
4013   lt_cv_file_magic_test_file=/shlib/libc.so
4014   ;;
4015
4016 cygwin*)
4017   # func_win32_libid is a shell function defined in ltmain.sh
4018   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4019   lt_cv_file_magic_cmd='func_win32_libid'
4020   ;;
4021
4022 mingw* | pw32*)
4023   # Base MSYS/MinGW do not provide the 'file' command needed by
4024   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4025   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4026   lt_cv_file_magic_cmd='$OBJDUMP -f'
4027   ;;
4028
4029 darwin* | rhapsody*)
4030   lt_cv_deplibs_check_method=pass_all
4031   ;;
4032
4033 freebsd* | kfreebsd*-gnu | dragonfly*)
4034   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4035     case $host_cpu in
4036     i*86 )
4037       # Not sure whether the presence of OpenBSD here was a mistake.
4038       # Let's accept both of them until this is cleared up.
4039       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4040       lt_cv_file_magic_cmd=/usr/bin/file
4041       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4042       ;;
4043     esac
4044   else
4045     lt_cv_deplibs_check_method=pass_all
4046   fi
4047   ;;
4048
4049 gnu*)
4050   lt_cv_deplibs_check_method=pass_all
4051   ;;
4052
4053 hpux10.20* | hpux11*)
4054   lt_cv_file_magic_cmd=/usr/bin/file
4055   case $host_cpu in
4056   ia64*)
4057     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4058     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4059     ;;
4060   hppa*64*)
4061     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]'
4062     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4063     ;;
4064   *)
4065     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4066     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4067     ;;
4068   esac
4069   ;;
4070
4071 interix3*)
4072   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4073   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4074   ;;
4075
4076 irix5* | irix6* | nonstopux*)
4077   case $LD in
4078   *-32|*"-32 ") libmagic=32-bit;;
4079   *-n32|*"-n32 ") libmagic=N32;;
4080   *-64|*"-64 ") libmagic=64-bit;;
4081   *) libmagic=never-match;;
4082   esac
4083   lt_cv_deplibs_check_method=pass_all
4084   ;;
4085
4086 # This must be Linux ELF.
4087 linux*)
4088   lt_cv_deplibs_check_method=pass_all
4089   ;;
4090
4091 netbsd*)
4092   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4093     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4094   else
4095     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4096   fi
4097   ;;
4098
4099 newos6*)
4100   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4101   lt_cv_file_magic_cmd=/usr/bin/file
4102   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4103   ;;
4104
4105 nto-qnx*)
4106   lt_cv_deplibs_check_method=unknown
4107   ;;
4108
4109 openbsd*)
4110   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4111     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4112   else
4113     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4114   fi
4115   ;;
4116
4117 osf3* | osf4* | osf5*)
4118   lt_cv_deplibs_check_method=pass_all
4119   ;;
4120
4121 solaris*)
4122   lt_cv_deplibs_check_method=pass_all
4123   ;;
4124
4125 sysv4 | sysv4.3*)
4126   case $host_vendor in
4127   motorola)
4128     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]'
4129     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4130     ;;
4131   ncr)
4132     lt_cv_deplibs_check_method=pass_all
4133     ;;
4134   sequent)
4135     lt_cv_file_magic_cmd='/bin/file'
4136     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4137     ;;
4138   sni)
4139     lt_cv_file_magic_cmd='/bin/file'
4140     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4141     lt_cv_file_magic_test_file=/lib/libc.so
4142     ;;
4143   siemens)
4144     lt_cv_deplibs_check_method=pass_all
4145     ;;
4146   pc)
4147     lt_cv_deplibs_check_method=pass_all
4148     ;;
4149   esac
4150   ;;
4151
4152 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4153   lt_cv_deplibs_check_method=pass_all
4154   ;;
4155 esac
4156
4157 fi
4158 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4159 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4160 file_magic_cmd=$lt_cv_file_magic_cmd
4161 deplibs_check_method=$lt_cv_deplibs_check_method
4162 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4163
4164
4165
4166
4167 # If no C compiler was specified, use CC.
4168 LTCC=${LTCC-"$CC"}
4169
4170 # If no C compiler flags were specified, use CFLAGS.
4171 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4172
4173 # Allow CC to be a program name with arguments.
4174 compiler=$CC
4175
4176
4177 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4178 if test "${enable_libtool_lock+set}" = set; then
4179   enableval="$enable_libtool_lock"
4180
4181 fi;
4182 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4183
4184 # Some flags need to be propagated to the compiler or linker for good
4185 # libtool support.
4186 case $host in
4187 ia64-*-hpux*)
4188   # Find out which ABI we are using.
4189   echo 'int i;' > conftest.$ac_ext
4190   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4191   (eval $ac_compile) 2>&5
4192   ac_status=$?
4193   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4194   (exit $ac_status); }; then
4195     case `/usr/bin/file conftest.$ac_objext` in
4196     *ELF-32*)
4197       HPUX_IA64_MODE="32"
4198       ;;
4199     *ELF-64*)
4200       HPUX_IA64_MODE="64"
4201       ;;
4202     esac
4203   fi
4204   rm -rf conftest*
4205   ;;
4206 *-*-irix6*)
4207   # Find out which ABI we are using.
4208   echo '#line 4208 "configure"' > conftest.$ac_ext
4209   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4210   (eval $ac_compile) 2>&5
4211   ac_status=$?
4212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213   (exit $ac_status); }; then
4214    if test "$lt_cv_prog_gnu_ld" = yes; then
4215     case `/usr/bin/file conftest.$ac_objext` in
4216     *32-bit*)
4217       LD="${LD-ld} -melf32bsmip"
4218       ;;
4219     *N32*)
4220       LD="${LD-ld} -melf32bmipn32"
4221       ;;
4222     *64-bit*)
4223       LD="${LD-ld} -melf64bmip"
4224       ;;
4225     esac
4226    else
4227     case `/usr/bin/file conftest.$ac_objext` in
4228     *32-bit*)
4229       LD="${LD-ld} -32"
4230       ;;
4231     *N32*)
4232       LD="${LD-ld} -n32"
4233       ;;
4234     *64-bit*)
4235       LD="${LD-ld} -64"
4236       ;;
4237     esac
4238    fi
4239   fi
4240   rm -rf conftest*
4241   ;;
4242
4243 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4244   # Find out which ABI we are using.
4245   echo 'int i;' > conftest.$ac_ext
4246   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4247   (eval $ac_compile) 2>&5
4248   ac_status=$?
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); }; then
4251     case `/usr/bin/file conftest.o` in
4252     *32-bit*)
4253       case $host in
4254         x86_64-*linux*)
4255           LD="${LD-ld} -m elf_i386"
4256           ;;
4257         ppc64-*linux*|powerpc64-*linux*)
4258           LD="${LD-ld} -m elf32ppclinux"
4259           ;;
4260         s390x-*linux*)
4261           LD="${LD-ld} -m elf_s390"
4262           ;;
4263         sparc64-*linux*)
4264           LD="${LD-ld} -m elf32_sparc"
4265           ;;
4266       esac
4267       ;;
4268     *64-bit*)
4269       case $host in
4270         x86_64-*linux*)
4271           LD="${LD-ld} -m elf_x86_64"
4272           ;;
4273         ppc*-*linux*|powerpc*-*linux*)
4274           LD="${LD-ld} -m elf64ppc"
4275           ;;
4276         s390*-*linux*)
4277           LD="${LD-ld} -m elf64_s390"
4278           ;;
4279         sparc*-*linux*)
4280           LD="${LD-ld} -m elf64_sparc"
4281           ;;
4282       esac
4283       ;;
4284     esac
4285   fi
4286   rm -rf conftest*
4287   ;;
4288
4289 *-*-sco3.2v5*)
4290   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4291   SAVE_CFLAGS="$CFLAGS"
4292   CFLAGS="$CFLAGS -belf"
4293   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4294 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4295 if test "${lt_cv_cc_needs_belf+set}" = set; then
4296   echo $ECHO_N "(cached) $ECHO_C" >&6
4297 else
4298   ac_ext=c
4299 ac_cpp='$CPP $CPPFLAGS'
4300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4303
4304      cat >conftest.$ac_ext <<_ACEOF
4305 /* confdefs.h.  */
4306 _ACEOF
4307 cat confdefs.h >>conftest.$ac_ext
4308 cat >>conftest.$ac_ext <<_ACEOF
4309 /* end confdefs.h.  */
4310
4311 int
4312 main ()
4313 {
4314
4315   ;
4316   return 0;
4317 }
4318 _ACEOF
4319 rm -f conftest.$ac_objext conftest$ac_exeext
4320 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4321   (eval $ac_link) 2>conftest.er1
4322   ac_status=$?
4323   grep -v '^ *+' conftest.er1 >conftest.err
4324   rm -f conftest.er1
4325   cat conftest.err >&5
4326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327   (exit $ac_status); } &&
4328          { ac_try='test -z "$ac_c_werror_flag"
4329                          || test ! -s conftest.err'
4330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4331   (eval $ac_try) 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; } &&
4335          { ac_try='test -s conftest$ac_exeext'
4336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4337   (eval $ac_try) 2>&5
4338   ac_status=$?
4339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340   (exit $ac_status); }; }; then
4341   lt_cv_cc_needs_belf=yes
4342 else
4343   echo "$as_me: failed program was:" >&5
4344 sed 's/^/| /' conftest.$ac_ext >&5
4345
4346 lt_cv_cc_needs_belf=no
4347 fi
4348 rm -f conftest.err conftest.$ac_objext \
4349       conftest$ac_exeext conftest.$ac_ext
4350      ac_ext=c
4351 ac_cpp='$CPP $CPPFLAGS'
4352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4355
4356 fi
4357 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4358 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4359   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4360     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4361     CFLAGS="$SAVE_CFLAGS"
4362   fi
4363   ;;
4364 sparc*-*solaris*)
4365   # Find out which ABI we are using.
4366   echo 'int i;' > conftest.$ac_ext
4367   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4368   (eval $ac_compile) 2>&5
4369   ac_status=$?
4370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4371   (exit $ac_status); }; then
4372     case `/usr/bin/file conftest.o` in
4373     *64-bit*)
4374       case $lt_cv_prog_gnu_ld in
4375       yes*) LD="${LD-ld} -m elf64_sparc" ;;
4376       *)    LD="${LD-ld} -64" ;;
4377       esac
4378       ;;
4379     esac
4380   fi
4381   rm -rf conftest*
4382   ;;
4383
4384
4385 esac
4386
4387 need_locks="$enable_libtool_lock"
4388
4389
4390 ac_ext=c
4391 ac_cpp='$CPP $CPPFLAGS'
4392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4397 # On Suns, sometimes $CPP names a directory.
4398 if test -n "$CPP" && test -d "$CPP"; then
4399   CPP=
4400 fi
4401 if test -z "$CPP"; then
4402   if test "${ac_cv_prog_CPP+set}" = set; then
4403   echo $ECHO_N "(cached) $ECHO_C" >&6
4404 else
4405       # Double quotes because CPP needs to be expanded
4406     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4407     do
4408       ac_preproc_ok=false
4409 for ac_c_preproc_warn_flag in '' yes
4410 do
4411   # Use a header file that comes with gcc, so configuring glibc
4412   # with a fresh cross-compiler works.
4413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4414   # <limits.h> exists even on freestanding compilers.
4415   # On the NeXT, cc -E runs the code through the compiler's parser,
4416   # not just through cpp. "Syntax error" is here to catch this case.
4417   cat >conftest.$ac_ext <<_ACEOF
4418 /* confdefs.h.  */
4419 _ACEOF
4420 cat confdefs.h >>conftest.$ac_ext
4421 cat >>conftest.$ac_ext <<_ACEOF
4422 /* end confdefs.h.  */
4423 #ifdef __STDC__
4424 # include <limits.h>
4425 #else
4426 # include <assert.h>
4427 #endif
4428                      Syntax error
4429 _ACEOF
4430 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4431   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4432   ac_status=$?
4433   grep -v '^ *+' conftest.er1 >conftest.err
4434   rm -f conftest.er1
4435   cat conftest.err >&5
4436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4437   (exit $ac_status); } >/dev/null; then
4438   if test -s conftest.err; then
4439     ac_cpp_err=$ac_c_preproc_warn_flag
4440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4441   else
4442     ac_cpp_err=
4443   fi
4444 else
4445   ac_cpp_err=yes
4446 fi
4447 if test -z "$ac_cpp_err"; then
4448   :
4449 else
4450   echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.$ac_ext >&5
4452
4453   # Broken: fails on valid input.
4454 continue
4455 fi
4456 rm -f conftest.err conftest.$ac_ext
4457
4458   # OK, works on sane cases.  Now check whether non-existent headers
4459   # can be detected and how.
4460   cat >conftest.$ac_ext <<_ACEOF
4461 /* confdefs.h.  */
4462 _ACEOF
4463 cat confdefs.h >>conftest.$ac_ext
4464 cat >>conftest.$ac_ext <<_ACEOF
4465 /* end confdefs.h.  */
4466 #include <ac_nonexistent.h>
4467 _ACEOF
4468 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4469   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4470   ac_status=$?
4471   grep -v '^ *+' conftest.er1 >conftest.err
4472   rm -f conftest.er1
4473   cat conftest.err >&5
4474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475   (exit $ac_status); } >/dev/null; then
4476   if test -s conftest.err; then
4477     ac_cpp_err=$ac_c_preproc_warn_flag
4478     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4479   else
4480     ac_cpp_err=
4481   fi
4482 else
4483   ac_cpp_err=yes
4484 fi
4485 if test -z "$ac_cpp_err"; then
4486   # Broken: success on invalid input.
4487 continue
4488 else
4489   echo "$as_me: failed program was:" >&5
4490 sed 's/^/| /' conftest.$ac_ext >&5
4491
4492   # Passes both tests.
4493 ac_preproc_ok=:
4494 break
4495 fi
4496 rm -f conftest.err conftest.$ac_ext
4497
4498 done
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.$ac_ext
4501 if $ac_preproc_ok; then
4502   break
4503 fi
4504
4505     done
4506     ac_cv_prog_CPP=$CPP
4507
4508 fi
4509   CPP=$ac_cv_prog_CPP
4510 else
4511   ac_cv_prog_CPP=$CPP
4512 fi
4513 echo "$as_me:$LINENO: result: $CPP" >&5
4514 echo "${ECHO_T}$CPP" >&6
4515 ac_preproc_ok=false
4516 for ac_c_preproc_warn_flag in '' yes
4517 do
4518   # Use a header file that comes with gcc, so configuring glibc
4519   # with a fresh cross-compiler works.
4520   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521   # <limits.h> exists even on freestanding compilers.
4522   # On the NeXT, cc -E runs the code through the compiler's parser,
4523   # not just through cpp. "Syntax error" is here to catch this case.
4524   cat >conftest.$ac_ext <<_ACEOF
4525 /* confdefs.h.  */
4526 _ACEOF
4527 cat confdefs.h >>conftest.$ac_ext
4528 cat >>conftest.$ac_ext <<_ACEOF
4529 /* end confdefs.h.  */
4530 #ifdef __STDC__
4531 # include <limits.h>
4532 #else
4533 # include <assert.h>
4534 #endif
4535                      Syntax error
4536 _ACEOF
4537 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4538   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4539   ac_status=$?
4540   grep -v '^ *+' conftest.er1 >conftest.err
4541   rm -f conftest.er1
4542   cat conftest.err >&5
4543   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4544   (exit $ac_status); } >/dev/null; then
4545   if test -s conftest.err; then
4546     ac_cpp_err=$ac_c_preproc_warn_flag
4547     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4548   else
4549     ac_cpp_err=
4550   fi
4551 else
4552   ac_cpp_err=yes
4553 fi
4554 if test -z "$ac_cpp_err"; then
4555   :
4556 else
4557   echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560   # Broken: fails on valid input.
4561 continue
4562 fi
4563 rm -f conftest.err conftest.$ac_ext
4564
4565   # OK, works on sane cases.  Now check whether non-existent headers
4566   # can be detected and how.
4567   cat >conftest.$ac_ext <<_ACEOF
4568 /* confdefs.h.  */
4569 _ACEOF
4570 cat confdefs.h >>conftest.$ac_ext
4571 cat >>conftest.$ac_ext <<_ACEOF
4572 /* end confdefs.h.  */
4573 #include <ac_nonexistent.h>
4574 _ACEOF
4575 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4576   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4577   ac_status=$?
4578   grep -v '^ *+' conftest.er1 >conftest.err
4579   rm -f conftest.er1
4580   cat conftest.err >&5
4581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4582   (exit $ac_status); } >/dev/null; then
4583   if test -s conftest.err; then
4584     ac_cpp_err=$ac_c_preproc_warn_flag
4585     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4586   else
4587     ac_cpp_err=
4588   fi
4589 else
4590   ac_cpp_err=yes
4591 fi
4592 if test -z "$ac_cpp_err"; then
4593   # Broken: success on invalid input.
4594 continue
4595 else
4596   echo "$as_me: failed program was:" >&5
4597 sed 's/^/| /' conftest.$ac_ext >&5
4598
4599   # Passes both tests.
4600 ac_preproc_ok=:
4601 break
4602 fi
4603 rm -f conftest.err conftest.$ac_ext
4604
4605 done
4606 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4607 rm -f conftest.err conftest.$ac_ext
4608 if $ac_preproc_ok; then
4609   :
4610 else
4611   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4612 See \`config.log' for more details." >&5
4613 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4614 See \`config.log' for more details." >&2;}
4615    { (exit 1); exit 1; }; }
4616 fi
4617
4618 ac_ext=c
4619 ac_cpp='$CPP $CPPFLAGS'
4620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4623
4624
4625 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4626 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4627 if test "${ac_cv_header_stdc+set}" = set; then
4628   echo $ECHO_N "(cached) $ECHO_C" >&6
4629 else
4630   cat >conftest.$ac_ext <<_ACEOF
4631 /* confdefs.h.  */
4632 _ACEOF
4633 cat confdefs.h >>conftest.$ac_ext
4634 cat >>conftest.$ac_ext <<_ACEOF
4635 /* end confdefs.h.  */
4636 #include <stdlib.h>
4637 #include <stdarg.h>
4638 #include <string.h>
4639 #include <float.h>
4640
4641 int
4642 main ()
4643 {
4644
4645   ;
4646   return 0;
4647 }
4648 _ACEOF
4649 rm -f conftest.$ac_objext
4650 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4651   (eval $ac_compile) 2>conftest.er1
4652   ac_status=$?
4653   grep -v '^ *+' conftest.er1 >conftest.err
4654   rm -f conftest.er1
4655   cat conftest.err >&5
4656   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4657   (exit $ac_status); } &&
4658          { ac_try='test -z "$ac_c_werror_flag"
4659                          || test ! -s conftest.err'
4660   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4661   (eval $ac_try) 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; } &&
4665          { ac_try='test -s conftest.$ac_objext'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; }; then
4671   ac_cv_header_stdc=yes
4672 else
4673   echo "$as_me: failed program was:" >&5
4674 sed 's/^/| /' conftest.$ac_ext >&5
4675
4676 ac_cv_header_stdc=no
4677 fi
4678 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4679
4680 if test $ac_cv_header_stdc = yes; then
4681   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4682   cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h.  */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h.  */
4688 #include <string.h>
4689
4690 _ACEOF
4691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4692   $EGREP "memchr" >/dev/null 2>&1; then
4693   :
4694 else
4695   ac_cv_header_stdc=no
4696 fi
4697 rm -f conftest*
4698
4699 fi
4700
4701 if test $ac_cv_header_stdc = yes; then
4702   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4703   cat >conftest.$ac_ext <<_ACEOF
4704 /* confdefs.h.  */
4705 _ACEOF
4706 cat confdefs.h >>conftest.$ac_ext
4707 cat >>conftest.$ac_ext <<_ACEOF
4708 /* end confdefs.h.  */
4709 #include <stdlib.h>
4710
4711 _ACEOF
4712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4713   $EGREP "free" >/dev/null 2>&1; then
4714   :
4715 else
4716   ac_cv_header_stdc=no
4717 fi
4718 rm -f conftest*
4719
4720 fi
4721
4722 if test $ac_cv_header_stdc = yes; then
4723   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4724   if test "$cross_compiling" = yes; then
4725   :
4726 else
4727   cat >conftest.$ac_ext <<_ACEOF
4728 /* confdefs.h.  */
4729 _ACEOF
4730 cat confdefs.h >>conftest.$ac_ext
4731 cat >>conftest.$ac_ext <<_ACEOF
4732 /* end confdefs.h.  */
4733 #include <ctype.h>
4734 #if ((' ' & 0x0FF) == 0x020)
4735 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4736 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4737 #else
4738 # define ISLOWER(c) \
4739                    (('a' <= (c) && (c) <= 'i') \
4740                      || ('j' <= (c) && (c) <= 'r') \
4741                      || ('s' <= (c) && (c) <= 'z'))
4742 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4743 #endif
4744
4745 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4746 int
4747 main ()
4748 {
4749   int i;
4750   for (i = 0; i < 256; i++)
4751     if (XOR (islower (i), ISLOWER (i))
4752         || toupper (i) != TOUPPER (i))
4753       exit(2);
4754   exit (0);
4755 }
4756 _ACEOF
4757 rm -f conftest$ac_exeext
4758 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4759   (eval $ac_link) 2>&5
4760   ac_status=$?
4761   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4763   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764   (eval $ac_try) 2>&5
4765   ac_status=$?
4766   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767   (exit $ac_status); }; }; then
4768   :
4769 else
4770   echo "$as_me: program exited with status $ac_status" >&5
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 ( exit $ac_status )
4775 ac_cv_header_stdc=no
4776 fi
4777 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4778 fi
4779 fi
4780 fi
4781 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4782 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4783 if test $ac_cv_header_stdc = yes; then
4784
4785 cat >>confdefs.h <<\_ACEOF
4786 #define STDC_HEADERS 1
4787 _ACEOF
4788
4789 fi
4790
4791 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4792
4793
4794
4795
4796
4797
4798
4799
4800
4801 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4802                   inttypes.h stdint.h unistd.h
4803 do
4804 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4805 echo "$as_me:$LINENO: checking for $ac_header" >&5
4806 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4807 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4808   echo $ECHO_N "(cached) $ECHO_C" >&6
4809 else
4810   cat >conftest.$ac_ext <<_ACEOF
4811 /* confdefs.h.  */
4812 _ACEOF
4813 cat confdefs.h >>conftest.$ac_ext
4814 cat >>conftest.$ac_ext <<_ACEOF
4815 /* end confdefs.h.  */
4816 $ac_includes_default
4817
4818 #include <$ac_header>
4819 _ACEOF
4820 rm -f conftest.$ac_objext
4821 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4822   (eval $ac_compile) 2>conftest.er1
4823   ac_status=$?
4824   grep -v '^ *+' conftest.er1 >conftest.err
4825   rm -f conftest.er1
4826   cat conftest.err >&5
4827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828   (exit $ac_status); } &&
4829          { ac_try='test -z "$ac_c_werror_flag"
4830                          || test ! -s conftest.err'
4831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4832   (eval $ac_try) 2>&5
4833   ac_status=$?
4834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835   (exit $ac_status); }; } &&
4836          { ac_try='test -s conftest.$ac_objext'
4837   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4838   (eval $ac_try) 2>&5
4839   ac_status=$?
4840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4841   (exit $ac_status); }; }; then
4842   eval "$as_ac_Header=yes"
4843 else
4844   echo "$as_me: failed program was:" >&5
4845 sed 's/^/| /' conftest.$ac_ext >&5
4846
4847 eval "$as_ac_Header=no"
4848 fi
4849 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4850 fi
4851 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4852 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4854   cat >>confdefs.h <<_ACEOF
4855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4856 _ACEOF
4857
4858 fi
4859
4860 done
4861
4862
4863
4864 for ac_header in dlfcn.h
4865 do
4866 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4867 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4868   echo "$as_me:$LINENO: checking for $ac_header" >&5
4869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4871   echo $ECHO_N "(cached) $ECHO_C" >&6
4872 fi
4873 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4874 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4875 else
4876   # Is the header compilable?
4877 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4878 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h.  */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h.  */
4885 $ac_includes_default
4886 #include <$ac_header>
4887 _ACEOF
4888 rm -f conftest.$ac_objext
4889 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4890   (eval $ac_compile) 2>conftest.er1
4891   ac_status=$?
4892   grep -v '^ *+' conftest.er1 >conftest.err
4893   rm -f conftest.er1
4894   cat conftest.err >&5
4895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896   (exit $ac_status); } &&
4897          { ac_try='test -z "$ac_c_werror_flag"
4898                          || test ! -s conftest.err'
4899   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4900   (eval $ac_try) 2>&5
4901   ac_status=$?
4902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4903   (exit $ac_status); }; } &&
4904          { ac_try='test -s conftest.$ac_objext'
4905   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4906   (eval $ac_try) 2>&5
4907   ac_status=$?
4908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909   (exit $ac_status); }; }; then
4910   ac_header_compiler=yes
4911 else
4912   echo "$as_me: failed program was:" >&5
4913 sed 's/^/| /' conftest.$ac_ext >&5
4914
4915 ac_header_compiler=no
4916 fi
4917 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4918 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4919 echo "${ECHO_T}$ac_header_compiler" >&6
4920
4921 # Is the header present?
4922 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4924 cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h.  */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h.  */
4930 #include <$ac_header>
4931 _ACEOF
4932 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4933   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4934   ac_status=$?
4935   grep -v '^ *+' conftest.er1 >conftest.err
4936   rm -f conftest.er1
4937   cat conftest.err >&5
4938   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4939   (exit $ac_status); } >/dev/null; then
4940   if test -s conftest.err; then
4941     ac_cpp_err=$ac_c_preproc_warn_flag
4942     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4943   else
4944     ac_cpp_err=
4945   fi
4946 else
4947   ac_cpp_err=yes
4948 fi
4949 if test -z "$ac_cpp_err"; then
4950   ac_header_preproc=yes
4951 else
4952   echo "$as_me: failed program was:" >&5
4953 sed 's/^/| /' conftest.$ac_ext >&5
4954
4955   ac_header_preproc=no
4956 fi
4957 rm -f conftest.err conftest.$ac_ext
4958 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4959 echo "${ECHO_T}$ac_header_preproc" >&6
4960
4961 # So?  What about this header?
4962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4963   yes:no: )
4964     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4965 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4966     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4968     ac_header_preproc=yes
4969     ;;
4970   no:yes:* )
4971     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4972 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4973     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4974 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4975     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4976 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4977     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4978 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4979     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4981     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4982 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4983     (
4984       cat <<\_ASBOX
4985 ## ------------------------------------------ ##
4986 ## Report this to the AC_PACKAGE_NAME lists.  ##
4987 ## ------------------------------------------ ##
4988 _ASBOX
4989     ) |
4990       sed "s/^/$as_me: WARNING:     /" >&2
4991     ;;
4992 esac
4993 echo "$as_me:$LINENO: checking for $ac_header" >&5
4994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4995 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998   eval "$as_ac_Header=\$ac_header_preproc"
4999 fi
5000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5001 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5002
5003 fi
5004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5005   cat >>confdefs.h <<_ACEOF
5006 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5007 _ACEOF
5008
5009 fi
5010
5011 done
5012
5013
5014
5015 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5016     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5017     (test "X$CXX" != "Xg++"))) ; then
5018   ac_ext=cc
5019 ac_cpp='$CXXCPP $CPPFLAGS'
5020 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5021 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5022 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5023 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5024 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5025 if test -z "$CXXCPP"; then
5026   if test "${ac_cv_prog_CXXCPP+set}" = set; then
5027   echo $ECHO_N "(cached) $ECHO_C" >&6
5028 else
5029       # Double quotes because CXXCPP needs to be expanded
5030     for CXXCPP in "$CXX -E" "/lib/cpp"
5031     do
5032       ac_preproc_ok=false
5033 for ac_cxx_preproc_warn_flag in '' yes
5034 do
5035   # Use a header file that comes with gcc, so configuring glibc
5036   # with a fresh cross-compiler works.
5037   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5038   # <limits.h> exists even on freestanding compilers.
5039   # On the NeXT, cc -E runs the code through the compiler's parser,
5040   # not just through cpp. "Syntax error" is here to catch this case.
5041   cat >conftest.$ac_ext <<_ACEOF
5042 /* confdefs.h.  */
5043 _ACEOF
5044 cat confdefs.h >>conftest.$ac_ext
5045 cat >>conftest.$ac_ext <<_ACEOF
5046 /* end confdefs.h.  */
5047 #ifdef __STDC__
5048 # include <limits.h>
5049 #else
5050 # include <assert.h>
5051 #endif
5052                      Syntax error
5053 _ACEOF
5054 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5055   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5056   ac_status=$?
5057   grep -v '^ *+' conftest.er1 >conftest.err
5058   rm -f conftest.er1
5059   cat conftest.err >&5
5060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5061   (exit $ac_status); } >/dev/null; then
5062   if test -s conftest.err; then
5063     ac_cpp_err=$ac_cxx_preproc_warn_flag
5064     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5065   else
5066     ac_cpp_err=
5067   fi
5068 else
5069   ac_cpp_err=yes
5070 fi
5071 if test -z "$ac_cpp_err"; then
5072   :
5073 else
5074   echo "$as_me: failed program was:" >&5
5075 sed 's/^/| /' conftest.$ac_ext >&5
5076
5077   # Broken: fails on valid input.
5078 continue
5079 fi
5080 rm -f conftest.err conftest.$ac_ext
5081
5082   # OK, works on sane cases.  Now check whether non-existent headers
5083   # can be detected and how.
5084   cat >conftest.$ac_ext <<_ACEOF
5085 /* confdefs.h.  */
5086 _ACEOF
5087 cat confdefs.h >>conftest.$ac_ext
5088 cat >>conftest.$ac_ext <<_ACEOF
5089 /* end confdefs.h.  */
5090 #include <ac_nonexistent.h>
5091 _ACEOF
5092 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5093   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5094   ac_status=$?
5095   grep -v '^ *+' conftest.er1 >conftest.err
5096   rm -f conftest.er1
5097   cat conftest.err >&5
5098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5099   (exit $ac_status); } >/dev/null; then
5100   if test -s conftest.err; then
5101     ac_cpp_err=$ac_cxx_preproc_warn_flag
5102     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5103   else
5104     ac_cpp_err=
5105   fi
5106 else
5107   ac_cpp_err=yes
5108 fi
5109 if test -z "$ac_cpp_err"; then
5110   # Broken: success on invalid input.
5111 continue
5112 else
5113   echo "$as_me: failed program was:" >&5
5114 sed 's/^/| /' conftest.$ac_ext >&5
5115
5116   # Passes both tests.
5117 ac_preproc_ok=:
5118 break
5119 fi
5120 rm -f conftest.err conftest.$ac_ext
5121
5122 done
5123 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5124 rm -f conftest.err conftest.$ac_ext
5125 if $ac_preproc_ok; then
5126   break
5127 fi
5128
5129     done
5130     ac_cv_prog_CXXCPP=$CXXCPP
5131
5132 fi
5133   CXXCPP=$ac_cv_prog_CXXCPP
5134 else
5135   ac_cv_prog_CXXCPP=$CXXCPP
5136 fi
5137 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5138 echo "${ECHO_T}$CXXCPP" >&6
5139 ac_preproc_ok=false
5140 for ac_cxx_preproc_warn_flag in '' yes
5141 do
5142   # Use a header file that comes with gcc, so configuring glibc
5143   # with a fresh cross-compiler works.
5144   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5145   # <limits.h> exists even on freestanding compilers.
5146   # On the NeXT, cc -E runs the code through the compiler's parser,
5147   # not just through cpp. "Syntax error" is here to catch this case.
5148   cat >conftest.$ac_ext <<_ACEOF
5149 /* confdefs.h.  */
5150 _ACEOF
5151 cat confdefs.h >>conftest.$ac_ext
5152 cat >>conftest.$ac_ext <<_ACEOF
5153 /* end confdefs.h.  */
5154 #ifdef __STDC__
5155 # include <limits.h>
5156 #else
5157 # include <assert.h>
5158 #endif
5159                      Syntax error
5160 _ACEOF
5161 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5162   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5163   ac_status=$?
5164   grep -v '^ *+' conftest.er1 >conftest.err
5165   rm -f conftest.er1
5166   cat conftest.err >&5
5167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5168   (exit $ac_status); } >/dev/null; then
5169   if test -s conftest.err; then
5170     ac_cpp_err=$ac_cxx_preproc_warn_flag
5171     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5172   else
5173     ac_cpp_err=
5174   fi
5175 else
5176   ac_cpp_err=yes
5177 fi
5178 if test -z "$ac_cpp_err"; then
5179   :
5180 else
5181   echo "$as_me: failed program was:" >&5
5182 sed 's/^/| /' conftest.$ac_ext >&5
5183
5184   # Broken: fails on valid input.
5185 continue
5186 fi
5187 rm -f conftest.err conftest.$ac_ext
5188
5189   # OK, works on sane cases.  Now check whether non-existent headers
5190   # can be detected and how.
5191   cat >conftest.$ac_ext <<_ACEOF
5192 /* confdefs.h.  */
5193 _ACEOF
5194 cat confdefs.h >>conftest.$ac_ext
5195 cat >>conftest.$ac_ext <<_ACEOF
5196 /* end confdefs.h.  */
5197 #include <ac_nonexistent.h>
5198 _ACEOF
5199 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5200   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5201   ac_status=$?
5202   grep -v '^ *+' conftest.er1 >conftest.err
5203   rm -f conftest.er1
5204   cat conftest.err >&5
5205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5206   (exit $ac_status); } >/dev/null; then
5207   if test -s conftest.err; then
5208     ac_cpp_err=$ac_cxx_preproc_warn_flag
5209     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5210   else
5211     ac_cpp_err=
5212   fi
5213 else
5214   ac_cpp_err=yes
5215 fi
5216 if test -z "$ac_cpp_err"; then
5217   # Broken: success on invalid input.
5218 continue
5219 else
5220   echo "$as_me: failed program was:" >&5
5221 sed 's/^/| /' conftest.$ac_ext >&5
5222
5223   # Passes both tests.
5224 ac_preproc_ok=:
5225 break
5226 fi
5227 rm -f conftest.err conftest.$ac_ext
5228
5229 done
5230 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5231 rm -f conftest.err conftest.$ac_ext
5232 if $ac_preproc_ok; then
5233   :
5234 else
5235   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5236 See \`config.log' for more details." >&5
5237 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5238 See \`config.log' for more details." >&2;}
5239    { (exit 1); exit 1; }; }
5240 fi
5241
5242 ac_ext=cc
5243 ac_cpp='$CXXCPP $CPPFLAGS'
5244 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5245 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5246 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5247
5248 fi
5249
5250
5251 ac_ext=f
5252 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5253 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5254 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5255 if test -n "$ac_tool_prefix"; then
5256   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5257   do
5258     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5259 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5260 echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5262 if test "${ac_cv_prog_F77+set}" = set; then
5263   echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265   if test -n "$F77"; then
5266   ac_cv_prog_F77="$F77" # Let the user override the test.
5267 else
5268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 for as_dir in $PATH
5270 do
5271   IFS=$as_save_IFS
5272   test -z "$as_dir" && as_dir=.
5273   for ac_exec_ext in '' $ac_executable_extensions; do
5274   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5275     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5276     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5277     break 2
5278   fi
5279 done
5280 done
5281
5282 fi
5283 fi
5284 F77=$ac_cv_prog_F77
5285 if test -n "$F77"; then
5286   echo "$as_me:$LINENO: result: $F77" >&5
5287 echo "${ECHO_T}$F77" >&6
5288 else
5289   echo "$as_me:$LINENO: result: no" >&5
5290 echo "${ECHO_T}no" >&6
5291 fi
5292
5293     test -n "$F77" && break
5294   done
5295 fi
5296 if test -z "$F77"; then
5297   ac_ct_F77=$F77
5298   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5299 do
5300   # Extract the first word of "$ac_prog", so it can be a program name with args.
5301 set dummy $ac_prog; ac_word=$2
5302 echo "$as_me:$LINENO: checking for $ac_word" >&5
5303 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5304 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5305   echo $ECHO_N "(cached) $ECHO_C" >&6
5306 else
5307   if test -n "$ac_ct_F77"; then
5308   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5309 else
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311 for as_dir in $PATH
5312 do
5313   IFS=$as_save_IFS
5314   test -z "$as_dir" && as_dir=.
5315   for ac_exec_ext in '' $ac_executable_extensions; do
5316   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5317     ac_cv_prog_ac_ct_F77="$ac_prog"
5318     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5319     break 2
5320   fi
5321 done
5322 done
5323
5324 fi
5325 fi
5326 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5327 if test -n "$ac_ct_F77"; then
5328   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5329 echo "${ECHO_T}$ac_ct_F77" >&6
5330 else
5331   echo "$as_me:$LINENO: result: no" >&5
5332 echo "${ECHO_T}no" >&6
5333 fi
5334
5335   test -n "$ac_ct_F77" && break
5336 done
5337
5338   F77=$ac_ct_F77
5339 fi
5340
5341
5342 # Provide some information about the compiler.
5343 echo "$as_me:5343:" \
5344      "checking for Fortran 77 compiler version" >&5
5345 ac_compiler=`set X $ac_compile; echo $2`
5346 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5347   (eval $ac_compiler --version </dev/null >&5) 2>&5
5348   ac_status=$?
5349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350   (exit $ac_status); }
5351 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5352   (eval $ac_compiler -v </dev/null >&5) 2>&5
5353   ac_status=$?
5354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355   (exit $ac_status); }
5356 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5357   (eval $ac_compiler -V </dev/null >&5) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }
5361 rm -f a.out
5362
5363 # If we don't use `.F' as extension, the preprocessor is not run on the
5364 # input file.  (Note that this only needs to work for GNU compilers.)
5365 ac_save_ext=$ac_ext
5366 ac_ext=F
5367 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5368 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5369 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5370   echo $ECHO_N "(cached) $ECHO_C" >&6
5371 else
5372   cat >conftest.$ac_ext <<_ACEOF
5373       program main
5374 #ifndef __GNUC__
5375        choke me
5376 #endif
5377
5378       end
5379 _ACEOF
5380 rm -f conftest.$ac_objext
5381 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5382   (eval $ac_compile) 2>conftest.er1
5383   ac_status=$?
5384   grep -v '^ *+' conftest.er1 >conftest.err
5385   rm -f conftest.er1
5386   cat conftest.err >&5
5387   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5388   (exit $ac_status); } &&
5389          { ac_try='test -z "$ac_f77_werror_flag"
5390                          || test ! -s conftest.err'
5391   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5392   (eval $ac_try) 2>&5
5393   ac_status=$?
5394   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5395   (exit $ac_status); }; } &&
5396          { ac_try='test -s conftest.$ac_objext'
5397   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5398   (eval $ac_try) 2>&5
5399   ac_status=$?
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); }; }; then
5402   ac_compiler_gnu=yes
5403 else
5404   echo "$as_me: failed program was:" >&5
5405 sed 's/^/| /' conftest.$ac_ext >&5
5406
5407 ac_compiler_gnu=no
5408 fi
5409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5410 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5411
5412 fi
5413 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5414 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5415 ac_ext=$ac_save_ext
5416 ac_test_FFLAGS=${FFLAGS+set}
5417 ac_save_FFLAGS=$FFLAGS
5418 FFLAGS=
5419 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5420 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5421 if test "${ac_cv_prog_f77_g+set}" = set; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424   FFLAGS=-g
5425 cat >conftest.$ac_ext <<_ACEOF
5426       program main
5427
5428       end
5429 _ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5432   (eval $ac_compile) 2>conftest.er1
5433   ac_status=$?
5434   grep -v '^ *+' conftest.er1 >conftest.err
5435   rm -f conftest.er1
5436   cat conftest.err >&5
5437   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5438   (exit $ac_status); } &&
5439          { ac_try='test -z "$ac_f77_werror_flag"
5440                          || test ! -s conftest.err'
5441   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5442   (eval $ac_try) 2>&5
5443   ac_status=$?
5444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445   (exit $ac_status); }; } &&
5446          { ac_try='test -s conftest.$ac_objext'
5447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5448   (eval $ac_try) 2>&5
5449   ac_status=$?
5450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451   (exit $ac_status); }; }; then
5452   ac_cv_prog_f77_g=yes
5453 else
5454   echo "$as_me: failed program was:" >&5
5455 sed 's/^/| /' conftest.$ac_ext >&5
5456
5457 ac_cv_prog_f77_g=no
5458 fi
5459 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5460
5461 fi
5462 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5463 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5464 if test "$ac_test_FFLAGS" = set; then
5465   FFLAGS=$ac_save_FFLAGS
5466 elif test $ac_cv_prog_f77_g = yes; then
5467   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5468     FFLAGS="-g -O2"
5469   else
5470     FFLAGS="-g"
5471   fi
5472 else
5473   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5474     FFLAGS="-O2"
5475   else
5476     FFLAGS=
5477   fi
5478 fi
5479
5480 G77=`test $ac_compiler_gnu = yes && echo yes`
5481 ac_ext=c
5482 ac_cpp='$CPP $CPPFLAGS'
5483 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5484 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5485 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5486
5487
5488
5489 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5490
5491 # find the maximum length of command line arguments
5492 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5493 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5494 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5495   echo $ECHO_N "(cached) $ECHO_C" >&6
5496 else
5497     i=0
5498   teststring="ABCD"
5499
5500   case $build_os in
5501   msdosdjgpp*)
5502     # On DJGPP, this test can blow up pretty badly due to problems in libc
5503     # (any single argument exceeding 2000 bytes causes a buffer overrun
5504     # during glob expansion).  Even if it were fixed, the result of this
5505     # check would be larger than it should be.
5506     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5507     ;;
5508
5509   gnu*)
5510     # Under GNU Hurd, this test is not required because there is
5511     # no limit to the length of command line arguments.
5512     # Libtool will interpret -1 as no limit whatsoever
5513     lt_cv_sys_max_cmd_len=-1;
5514     ;;
5515
5516   cygwin* | mingw*)
5517     # On Win9x/ME, this test blows up -- it succeeds, but takes
5518     # about 5 minutes as the teststring grows exponentially.
5519     # Worse, since 9x/ME are not pre-emptively multitasking,
5520     # you end up with a "frozen" computer, even though with patience
5521     # the test eventually succeeds (with a max line length of 256k).
5522     # Instead, let's just punt: use the minimum linelength reported by
5523     # all of the supported platforms: 8192 (on NT/2K/XP).
5524     lt_cv_sys_max_cmd_len=8192;
5525     ;;
5526
5527   amigaos*)
5528     # On AmigaOS with pdksh, this test takes hours, literally.
5529     # So we just punt and use a minimum line length of 8192.
5530     lt_cv_sys_max_cmd_len=8192;
5531     ;;
5532
5533   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5534     # This has been around since 386BSD, at least.  Likely further.
5535     if test -x /sbin/sysctl; then
5536       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5537     elif test -x /usr/sbin/sysctl; then
5538       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5539     else
5540       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5541     fi
5542     # And add a safety zone
5543     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5544     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5545     ;;
5546
5547   interix*)
5548     # We know the value 262144 and hardcode it with a safety zone (like BSD)
5549     lt_cv_sys_max_cmd_len=196608
5550     ;;
5551
5552   osf*)
5553     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5554     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5555     # nice to cause kernel panics so lets avoid the loop below.
5556     # First set a reasonable default.
5557     lt_cv_sys_max_cmd_len=16384
5558     #
5559     if test -x /sbin/sysconfig; then
5560       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5561         *1*) lt_cv_sys_max_cmd_len=-1 ;;
5562       esac
5563     fi
5564     ;;
5565   sco3.2v5*)
5566     lt_cv_sys_max_cmd_len=102400
5567     ;;
5568   sysv5* | sco5v6* | sysv4.2uw2*)
5569     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5570     if test -n "$kargmax"; then
5571       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5572     else
5573       lt_cv_sys_max_cmd_len=32768
5574     fi
5575     ;;
5576   *)
5577     # If test is not a shell built-in, we'll probably end up computing a
5578     # maximum length that is only half of the actual maximum length, but
5579     # we can't tell.
5580     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5581     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5582                = "XX$teststring") >/dev/null 2>&1 &&
5583             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5584             lt_cv_sys_max_cmd_len=$new_result &&
5585             test $i != 17 # 1/2 MB should be enough
5586     do
5587       i=`expr $i + 1`
5588       teststring=$teststring$teststring
5589     done
5590     teststring=
5591     # Add a significant safety factor because C++ compilers can tack on massive
5592     # amounts of additional arguments before passing them to the linker.
5593     # It appears as though 1/2 is a usable value.
5594     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5595     ;;
5596   esac
5597
5598 fi
5599
5600 if test -n $lt_cv_sys_max_cmd_len ; then
5601   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5602 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5603 else
5604   echo "$as_me:$LINENO: result: none" >&5
5605 echo "${ECHO_T}none" >&6
5606 fi
5607
5608
5609
5610
5611 # Check for command to grab the raw symbol name followed by C symbol from nm.
5612 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5613 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5614 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5615   echo $ECHO_N "(cached) $ECHO_C" >&6
5616 else
5617
5618 # These are sane defaults that work on at least a few old systems.
5619 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5620
5621 # Character class describing NM global symbol codes.
5622 symcode='[BCDEGRST]'
5623
5624 # Regexp to match symbols that can be accessed directly from C.
5625 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5626
5627 # Transform an extracted symbol line into a proper C declaration
5628 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5629
5630 # Transform an extracted symbol line into symbol name and symbol address
5631 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'"
5632
5633 # Define system-specific variables.
5634 case $host_os in
5635 aix*)
5636   symcode='[BCDT]'
5637   ;;
5638 cygwin* | mingw* | pw32*)
5639   symcode='[ABCDGISTW]'
5640   ;;
5641 hpux*) # Its linker distinguishes data from code symbols
5642   if test "$host_cpu" = ia64; then
5643     symcode='[ABCDEGRST]'
5644   fi
5645   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5646   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'"
5647   ;;
5648 linux*)
5649   if test "$host_cpu" = ia64; then
5650     symcode='[ABCDGIRSTW]'
5651     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5652     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'"
5653   fi
5654   ;;
5655 irix* | nonstopux*)
5656   symcode='[BCDEGRST]'
5657   ;;
5658 osf*)
5659   symcode='[BCDEGQRST]'
5660   ;;
5661 solaris*)
5662   symcode='[BDRT]'
5663   ;;
5664 sco3.2v5*)
5665   symcode='[DT]'
5666   ;;
5667 sysv4.2uw2*)
5668   symcode='[DT]'
5669   ;;
5670 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5671   symcode='[ABDT]'
5672   ;;
5673 sysv4)
5674   symcode='[DFNSTU]'
5675   ;;
5676 esac
5677
5678 # Handle CRLF in mingw tool chain
5679 opt_cr=
5680 case $build_os in
5681 mingw*)
5682   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5683   ;;
5684 esac
5685
5686 # If we're using GNU nm, then use its standard symbol codes.
5687 case `$NM -V 2>&1` in
5688 *GNU* | *'with BFD'*)
5689   symcode='[ABCDGIRSTW]' ;;
5690 esac
5691
5692 # Try without a prefix undercore, then with it.
5693 for ac_symprfx in "" "_"; do
5694
5695   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5696   symxfrm="\\1 $ac_symprfx\\2 \\2"
5697
5698   # Write the raw and C identifiers.
5699   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5700
5701   # Check to see that the pipe works correctly.
5702   pipe_works=no
5703
5704   rm -f conftest*
5705   cat > conftest.$ac_ext <<EOF
5706 #ifdef __cplusplus
5707 extern "C" {
5708 #endif
5709 char nm_test_var;
5710 void nm_test_func(){}
5711 #ifdef __cplusplus
5712 }
5713 #endif
5714 int main(){nm_test_var='a';nm_test_func();return(0);}
5715 EOF
5716
5717   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5718   (eval $ac_compile) 2>&5
5719   ac_status=$?
5720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721   (exit $ac_status); }; then
5722     # Now try to grab the symbols.
5723     nlist=conftest.nm
5724     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5725   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5726   ac_status=$?
5727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728   (exit $ac_status); } && test -s "$nlist"; then
5729       # Try sorting and uniquifying the output.
5730       if sort "$nlist" | uniq > "$nlist"T; then
5731         mv -f "$nlist"T "$nlist"
5732       else
5733         rm -f "$nlist"T
5734       fi
5735
5736       # Make sure that we snagged all the symbols we need.
5737       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5738         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5739           cat <<EOF > conftest.$ac_ext
5740 #ifdef __cplusplus
5741 extern "C" {
5742 #endif
5743
5744 EOF
5745           # Now generate the symbol file.
5746           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5747
5748           cat <<EOF >> conftest.$ac_ext
5749 #if defined (__STDC__) && __STDC__
5750 # define lt_ptr_t void *
5751 #else
5752 # define lt_ptr_t char *
5753 # define const
5754 #endif
5755
5756 /* The mapping between symbol names and symbols. */
5757 const struct {
5758   const char *name;
5759   lt_ptr_t address;
5760 }
5761 lt_preloaded_symbols[] =
5762 {
5763 EOF
5764           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5765           cat <<\EOF >> conftest.$ac_ext
5766   {0, (lt_ptr_t) 0}
5767 };
5768
5769 #ifdef __cplusplus
5770 }
5771 #endif
5772 EOF
5773           # Now try linking the two files.
5774           mv conftest.$ac_objext conftstm.$ac_objext
5775           lt_save_LIBS="$LIBS"
5776           lt_save_CFLAGS="$CFLAGS"
5777           LIBS="conftstm.$ac_objext"
5778           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5779           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5780   (eval $ac_link) 2>&5
5781   ac_status=$?
5782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5784             pipe_works=yes
5785           fi
5786           LIBS="$lt_save_LIBS"
5787           CFLAGS="$lt_save_CFLAGS"
5788         else
5789           echo "cannot find nm_test_func in $nlist" >&5
5790         fi
5791       else
5792         echo "cannot find nm_test_var in $nlist" >&5
5793       fi
5794     else
5795       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5796     fi
5797   else
5798     echo "$progname: failed program was:" >&5
5799     cat conftest.$ac_ext >&5
5800   fi
5801   rm -f conftest* conftst*
5802
5803   # Do not use the global_symbol_pipe unless it works.
5804   if test "$pipe_works" = yes; then
5805     break
5806   else
5807     lt_cv_sys_global_symbol_pipe=
5808   fi
5809 done
5810
5811 fi
5812
5813 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5814   lt_cv_sys_global_symbol_to_cdecl=
5815 fi
5816 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5817   echo "$as_me:$LINENO: result: failed" >&5
5818 echo "${ECHO_T}failed" >&6
5819 else
5820   echo "$as_me:$LINENO: result: ok" >&5
5821 echo "${ECHO_T}ok" >&6
5822 fi
5823
5824 echo "$as_me:$LINENO: checking for objdir" >&5
5825 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5826 if test "${lt_cv_objdir+set}" = set; then
5827   echo $ECHO_N "(cached) $ECHO_C" >&6
5828 else
5829   rm -f .libs 2>/dev/null
5830 mkdir .libs 2>/dev/null
5831 if test -d .libs; then
5832   lt_cv_objdir=.libs
5833 else
5834   # MS-DOS does not allow filenames that begin with a dot.
5835   lt_cv_objdir=_libs
5836 fi
5837 rmdir .libs 2>/dev/null
5838 fi
5839 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5840 echo "${ECHO_T}$lt_cv_objdir" >&6
5841 objdir=$lt_cv_objdir
5842
5843
5844
5845
5846
5847 case $host_os in
5848 aix3*)
5849   # AIX sometimes has problems with the GCC collect2 program.  For some
5850   # reason, if we set the COLLECT_NAMES environment variable, the problems
5851   # vanish in a puff of smoke.
5852   if test "X${COLLECT_NAMES+set}" != Xset; then
5853     COLLECT_NAMES=
5854     export COLLECT_NAMES
5855   fi
5856   ;;
5857 esac
5858
5859 # Sed substitution that helps us do robust quoting.  It backslashifies
5860 # metacharacters that are still active within double-quoted strings.
5861 Xsed='sed -e 1s/^X//'
5862 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5863
5864 # Same as above, but do not quote variable references.
5865 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5866
5867 # Sed substitution to delay expansion of an escaped shell variable in a
5868 # double_quote_subst'ed string.
5869 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5870
5871 # Sed substitution to avoid accidental globbing in evaled expressions
5872 no_glob_subst='s/\*/\\\*/g'
5873
5874 # Constants:
5875 rm="rm -f"
5876
5877 # Global variables:
5878 default_ofile=libtool
5879 can_build_shared=yes
5880
5881 # All known linkers require a `.a' archive for static linking (except MSVC,
5882 # which needs '.lib').
5883 libext=a
5884 ltmain="$ac_aux_dir/ltmain.sh"
5885 ofile="$default_ofile"
5886 with_gnu_ld="$lt_cv_prog_gnu_ld"
5887
5888 if test -n "$ac_tool_prefix"; then
5889   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5890 set dummy ${ac_tool_prefix}ar; ac_word=$2
5891 echo "$as_me:$LINENO: checking for $ac_word" >&5
5892 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5893 if test "${ac_cv_prog_AR+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   if test -n "$AR"; then
5897   ac_cv_prog_AR="$AR" # Let the user override the test.
5898 else
5899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 for as_dir in $PATH
5901 do
5902   IFS=$as_save_IFS
5903   test -z "$as_dir" && as_dir=.
5904   for ac_exec_ext in '' $ac_executable_extensions; do
5905   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5906     ac_cv_prog_AR="${ac_tool_prefix}ar"
5907     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5908     break 2
5909   fi
5910 done
5911 done
5912
5913 fi
5914 fi
5915 AR=$ac_cv_prog_AR
5916 if test -n "$AR"; then
5917   echo "$as_me:$LINENO: result: $AR" >&5
5918 echo "${ECHO_T}$AR" >&6
5919 else
5920   echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6
5922 fi
5923
5924 fi
5925 if test -z "$ac_cv_prog_AR"; then
5926   ac_ct_AR=$AR
5927   # Extract the first word of "ar", so it can be a program name with args.
5928 set dummy ar; ac_word=$2
5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5931 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5932   echo $ECHO_N "(cached) $ECHO_C" >&6
5933 else
5934   if test -n "$ac_ct_AR"; then
5935   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5936 else
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5938 for as_dir in $PATH
5939 do
5940   IFS=$as_save_IFS
5941   test -z "$as_dir" && as_dir=.
5942   for ac_exec_ext in '' $ac_executable_extensions; do
5943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5944     ac_cv_prog_ac_ct_AR="ar"
5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5946     break 2
5947   fi
5948 done
5949 done
5950
5951   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5952 fi
5953 fi
5954 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5955 if test -n "$ac_ct_AR"; then
5956   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5957 echo "${ECHO_T}$ac_ct_AR" >&6
5958 else
5959   echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5961 fi
5962
5963   AR=$ac_ct_AR
5964 else
5965   AR="$ac_cv_prog_AR"
5966 fi
5967
5968 if test -n "$ac_tool_prefix"; then
5969   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5970 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5971 echo "$as_me:$LINENO: checking for $ac_word" >&5
5972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5973 if test "${ac_cv_prog_RANLIB+set}" = set; then
5974   echo $ECHO_N "(cached) $ECHO_C" >&6
5975 else
5976   if test -n "$RANLIB"; then
5977   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5978 else
5979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 for as_dir in $PATH
5981 do
5982   IFS=$as_save_IFS
5983   test -z "$as_dir" && as_dir=.
5984   for ac_exec_ext in '' $ac_executable_extensions; do
5985   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5986     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5987     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5988     break 2
5989   fi
5990 done
5991 done
5992
5993 fi
5994 fi
5995 RANLIB=$ac_cv_prog_RANLIB
5996 if test -n "$RANLIB"; then
5997   echo "$as_me:$LINENO: result: $RANLIB" >&5
5998 echo "${ECHO_T}$RANLIB" >&6
5999 else
6000   echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6
6002 fi
6003
6004 fi
6005 if test -z "$ac_cv_prog_RANLIB"; then
6006   ac_ct_RANLIB=$RANLIB
6007   # Extract the first word of "ranlib", so it can be a program name with args.
6008 set dummy ranlib; ac_word=$2
6009 echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6011 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6012   echo $ECHO_N "(cached) $ECHO_C" >&6
6013 else
6014   if test -n "$ac_ct_RANLIB"; then
6015   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6016 else
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018 for as_dir in $PATH
6019 do
6020   IFS=$as_save_IFS
6021   test -z "$as_dir" && as_dir=.
6022   for ac_exec_ext in '' $ac_executable_extensions; do
6023   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6024     ac_cv_prog_ac_ct_RANLIB="ranlib"
6025     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6026     break 2
6027   fi
6028 done
6029 done
6030
6031   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6032 fi
6033 fi
6034 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6035 if test -n "$ac_ct_RANLIB"; then
6036   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6037 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6038 else
6039   echo "$as_me:$LINENO: result: no" >&5
6040 echo "${ECHO_T}no" >&6
6041 fi
6042
6043   RANLIB=$ac_ct_RANLIB
6044 else
6045   RANLIB="$ac_cv_prog_RANLIB"
6046 fi
6047
6048 if test -n "$ac_tool_prefix"; then
6049   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}strip; ac_word=$2
6051 echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6053 if test "${ac_cv_prog_STRIP+set}" = set; then
6054   echo $ECHO_N "(cached) $ECHO_C" >&6
6055 else
6056   if test -n "$STRIP"; then
6057   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6058 else
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 for as_dir in $PATH
6061 do
6062   IFS=$as_save_IFS
6063   test -z "$as_dir" && as_dir=.
6064   for ac_exec_ext in '' $ac_executable_extensions; do
6065   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6066     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6067     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6068     break 2
6069   fi
6070 done
6071 done
6072
6073 fi
6074 fi
6075 STRIP=$ac_cv_prog_STRIP
6076 if test -n "$STRIP"; then
6077   echo "$as_me:$LINENO: result: $STRIP" >&5
6078 echo "${ECHO_T}$STRIP" >&6
6079 else
6080   echo "$as_me:$LINENO: result: no" >&5
6081 echo "${ECHO_T}no" >&6
6082 fi
6083
6084 fi
6085 if test -z "$ac_cv_prog_STRIP"; then
6086   ac_ct_STRIP=$STRIP
6087   # Extract the first word of "strip", so it can be a program name with args.
6088 set dummy strip; ac_word=$2
6089 echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6091 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6092   echo $ECHO_N "(cached) $ECHO_C" >&6
6093 else
6094   if test -n "$ac_ct_STRIP"; then
6095   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6096 else
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6098 for as_dir in $PATH
6099 do
6100   IFS=$as_save_IFS
6101   test -z "$as_dir" && as_dir=.
6102   for ac_exec_ext in '' $ac_executable_extensions; do
6103   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6104     ac_cv_prog_ac_ct_STRIP="strip"
6105     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6106     break 2
6107   fi
6108 done
6109 done
6110
6111   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6112 fi
6113 fi
6114 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6115 if test -n "$ac_ct_STRIP"; then
6116   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6117 echo "${ECHO_T}$ac_ct_STRIP" >&6
6118 else
6119   echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6
6121 fi
6122
6123   STRIP=$ac_ct_STRIP
6124 else
6125   STRIP="$ac_cv_prog_STRIP"
6126 fi
6127
6128
6129 old_CC="$CC"
6130 old_CFLAGS="$CFLAGS"
6131
6132 # Set sane defaults for various variables
6133 test -z "$AR" && AR=ar
6134 test -z "$AR_FLAGS" && AR_FLAGS=cru
6135 test -z "$AS" && AS=as
6136 test -z "$CC" && CC=cc
6137 test -z "$LTCC" && LTCC=$CC
6138 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6139 test -z "$DLLTOOL" && DLLTOOL=dlltool
6140 test -z "$LD" && LD=ld
6141 test -z "$LN_S" && LN_S="ln -s"
6142 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6143 test -z "$NM" && NM=nm
6144 test -z "$SED" && SED=sed
6145 test -z "$OBJDUMP" && OBJDUMP=objdump
6146 test -z "$RANLIB" && RANLIB=:
6147 test -z "$STRIP" && STRIP=:
6148 test -z "$ac_objext" && ac_objext=o
6149
6150 # Determine commands to create old-style static archives.
6151 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6152 old_postinstall_cmds='chmod 644 $oldlib'
6153 old_postuninstall_cmds=
6154
6155 if test -n "$RANLIB"; then
6156   case $host_os in
6157   openbsd*)
6158     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6159     ;;
6160   *)
6161     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6162     ;;
6163   esac
6164   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6165 fi
6166
6167 for cc_temp in $compiler""; do
6168   case $cc_temp in
6169     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6170     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6171     \-*) ;;
6172     *) break;;
6173   esac
6174 done
6175 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6176
6177
6178 # Only perform the check for file, if the check method requires it
6179 case $deplibs_check_method in
6180 file_magic*)
6181   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6182     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6183 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6184 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6185   echo $ECHO_N "(cached) $ECHO_C" >&6
6186 else
6187   case $MAGIC_CMD in
6188 [\\/*] |  ?:[\\/]*)
6189   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6190   ;;
6191 *)
6192   lt_save_MAGIC_CMD="$MAGIC_CMD"
6193   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6194   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6195   for ac_dir in $ac_dummy; do
6196     IFS="$lt_save_ifs"
6197     test -z "$ac_dir" && ac_dir=.
6198     if test -f $ac_dir/${ac_tool_prefix}file; then
6199       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6200       if test -n "$file_magic_test_file"; then
6201         case $deplibs_check_method in
6202         "file_magic "*)
6203           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6204           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6205           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6206             $EGREP "$file_magic_regex" > /dev/null; then
6207             :
6208           else
6209             cat <<EOF 1>&2
6210
6211 *** Warning: the command libtool uses to detect shared libraries,
6212 *** $file_magic_cmd, produces output that libtool cannot recognize.
6213 *** The result is that libtool may fail to recognize shared libraries
6214 *** as such.  This will affect the creation of libtool libraries that
6215 *** depend on shared libraries, but programs linked with such libtool
6216 *** libraries will work regardless of this problem.  Nevertheless, you
6217 *** may want to report the problem to your system manager and/or to
6218 *** bug-libtool@gnu.org
6219
6220 EOF
6221           fi ;;
6222         esac
6223       fi
6224       break
6225     fi
6226   done
6227   IFS="$lt_save_ifs"
6228   MAGIC_CMD="$lt_save_MAGIC_CMD"
6229   ;;
6230 esac
6231 fi
6232
6233 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6234 if test -n "$MAGIC_CMD"; then
6235   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6236 echo "${ECHO_T}$MAGIC_CMD" >&6
6237 else
6238   echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6
6240 fi
6241
6242 if test -z "$lt_cv_path_MAGIC_CMD"; then
6243   if test -n "$ac_tool_prefix"; then
6244     echo "$as_me:$LINENO: checking for file" >&5
6245 echo $ECHO_N "checking for file... $ECHO_C" >&6
6246 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6247   echo $ECHO_N "(cached) $ECHO_C" >&6
6248 else
6249   case $MAGIC_CMD in
6250 [\\/*] |  ?:[\\/]*)
6251   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6252   ;;
6253 *)
6254   lt_save_MAGIC_CMD="$MAGIC_CMD"
6255   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6256   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6257   for ac_dir in $ac_dummy; do
6258     IFS="$lt_save_ifs"
6259     test -z "$ac_dir" && ac_dir=.
6260     if test -f $ac_dir/file; then
6261       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6262       if test -n "$file_magic_test_file"; then
6263         case $deplibs_check_method in
6264         "file_magic "*)
6265           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6266           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6267           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6268             $EGREP "$file_magic_regex" > /dev/null; then
6269             :
6270           else
6271             cat <<EOF 1>&2
6272
6273 *** Warning: the command libtool uses to detect shared libraries,
6274 *** $file_magic_cmd, produces output that libtool cannot recognize.
6275 *** The result is that libtool may fail to recognize shared libraries
6276 *** as such.  This will affect the creation of libtool libraries that
6277 *** depend on shared libraries, but programs linked with such libtool
6278 *** libraries will work regardless of this problem.  Nevertheless, you
6279 *** may want to report the problem to your system manager and/or to
6280 *** bug-libtool@gnu.org
6281
6282 EOF
6283           fi ;;
6284         esac
6285       fi
6286       break
6287     fi
6288   done
6289   IFS="$lt_save_ifs"
6290   MAGIC_CMD="$lt_save_MAGIC_CMD"
6291   ;;
6292 esac
6293 fi
6294
6295 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6296 if test -n "$MAGIC_CMD"; then
6297   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6298 echo "${ECHO_T}$MAGIC_CMD" >&6
6299 else
6300   echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6
6302 fi
6303
6304   else
6305     MAGIC_CMD=:
6306   fi
6307 fi
6308
6309   fi
6310   ;;
6311 esac
6312
6313 enable_dlopen=no
6314 enable_win32_dll=no
6315
6316 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6317 if test "${enable_libtool_lock+set}" = set; then
6318   enableval="$enable_libtool_lock"
6319
6320 fi;
6321 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6322
6323
6324 # Check whether --with-pic or --without-pic was given.
6325 if test "${with_pic+set}" = set; then
6326   withval="$with_pic"
6327   pic_mode="$withval"
6328 else
6329   pic_mode=default
6330 fi;
6331 test -z "$pic_mode" && pic_mode=default
6332
6333 # Use C for the default configuration in the libtool script
6334 tagname=
6335 lt_save_CC="$CC"
6336 ac_ext=c
6337 ac_cpp='$CPP $CPPFLAGS'
6338 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6339 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6340 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6341
6342
6343 # Source file extension for C test sources.
6344 ac_ext=c
6345
6346 # Object file extension for compiled C test sources.
6347 objext=o
6348 objext=$objext
6349
6350 # Code to be used in simple compile tests
6351 lt_simple_compile_test_code="int some_variable = 0;\n"
6352
6353 # Code to be used in simple link tests
6354 lt_simple_link_test_code='int main(){return(0);}\n'
6355
6356
6357 # If no C compiler was specified, use CC.
6358 LTCC=${LTCC-"$CC"}
6359
6360 # If no C compiler flags were specified, use CFLAGS.
6361 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6362
6363 # Allow CC to be a program name with arguments.
6364 compiler=$CC
6365
6366
6367 # save warnings/boilerplate of simple test code
6368 ac_outfile=conftest.$ac_objext
6369 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6371 _lt_compiler_boilerplate=`cat conftest.err`
6372 $rm conftest*
6373
6374 ac_outfile=conftest.$ac_objext
6375 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6377 _lt_linker_boilerplate=`cat conftest.err`
6378 $rm conftest*
6379
6380
6381
6382 lt_prog_compiler_no_builtin_flag=
6383
6384 if test "$GCC" = yes; then
6385   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6386
6387
6388 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6389 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6390 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6391   echo $ECHO_N "(cached) $ECHO_C" >&6
6392 else
6393   lt_cv_prog_compiler_rtti_exceptions=no
6394   ac_outfile=conftest.$ac_objext
6395    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6396    lt_compiler_flag="-fno-rtti -fno-exceptions"
6397    # Insert the option either (1) after the last *FLAGS variable, or
6398    # (2) before a word containing "conftest.", or (3) at the end.
6399    # Note that $ac_compile itself does not contain backslashes and begins
6400    # with a dollar sign (not a hyphen), so the echo should work correctly.
6401    # The option is referenced via a variable to avoid confusing sed.
6402    lt_compile=`echo "$ac_compile" | $SED \
6403    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6404    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6405    -e 's:$: $lt_compiler_flag:'`
6406    (eval echo "\"\$as_me:6406: $lt_compile\"" >&5)
6407    (eval "$lt_compile" 2>conftest.err)
6408    ac_status=$?
6409    cat conftest.err >&5
6410    echo "$as_me:6410: \$? = $ac_status" >&5
6411    if (exit $ac_status) && test -s "$ac_outfile"; then
6412      # The compiler can only warn and ignore the option if not recognized
6413      # So say no if there are warnings other than the usual output.
6414      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6415      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6416      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6417        lt_cv_prog_compiler_rtti_exceptions=yes
6418      fi
6419    fi
6420    $rm conftest*
6421
6422 fi
6423 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6424 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6425
6426 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6427     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6428 else
6429     :
6430 fi
6431
6432 fi
6433
6434 lt_prog_compiler_wl=
6435 lt_prog_compiler_pic=
6436 lt_prog_compiler_static=
6437
6438 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6439 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6440
6441   if test "$GCC" = yes; then
6442     lt_prog_compiler_wl='-Wl,'
6443     lt_prog_compiler_static='-static'
6444
6445     case $host_os in
6446       aix*)
6447       # All AIX code is PIC.
6448       if test "$host_cpu" = ia64; then
6449         # AIX 5 now supports IA64 processor
6450         lt_prog_compiler_static='-Bstatic'
6451       fi
6452       ;;
6453
6454     amigaos*)
6455       # FIXME: we need at least 68020 code to build shared libraries, but
6456       # adding the `-m68020' flag to GCC prevents building anything better,
6457       # like `-m68040'.
6458       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6459       ;;
6460
6461     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6462       # PIC is the default for these OSes.
6463       ;;
6464
6465     mingw* | pw32* | os2*)
6466       # This hack is so that the source file can tell whether it is being
6467       # built for inclusion in a dll (and should export symbols for example).
6468       lt_prog_compiler_pic='-DDLL_EXPORT'
6469       ;;
6470
6471     darwin* | rhapsody*)
6472       # PIC is the default on this platform
6473       # Common symbols not allowed in MH_DYLIB files
6474       lt_prog_compiler_pic='-fno-common'
6475       ;;
6476
6477     interix3*)
6478       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6479       # Instead, we relocate shared libraries at runtime.
6480       ;;
6481
6482     msdosdjgpp*)
6483       # Just because we use GCC doesn't mean we suddenly get shared libraries
6484       # on systems that don't support them.
6485       lt_prog_compiler_can_build_shared=no
6486       enable_shared=no
6487       ;;
6488
6489     sysv4*MP*)
6490       if test -d /usr/nec; then
6491         lt_prog_compiler_pic=-Kconform_pic
6492       fi
6493       ;;
6494
6495     hpux*)
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='-fPIC'
6504         ;;
6505       esac
6506       ;;
6507
6508     *)
6509       lt_prog_compiler_pic='-fPIC'
6510       ;;
6511     esac
6512   else
6513     # PORTME Check for flag to pass linker flags through the system compiler.
6514     case $host_os in
6515     aix*)
6516       lt_prog_compiler_wl='-Wl,'
6517       if test "$host_cpu" = ia64; then
6518         # AIX 5 now supports IA64 processor
6519         lt_prog_compiler_static='-Bstatic'
6520       else
6521         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6522       fi
6523       ;;
6524       darwin*)
6525         # PIC is the default on this platform
6526         # Common symbols not allowed in MH_DYLIB files
6527        case $cc_basename in
6528          xlc*)
6529          lt_prog_compiler_pic='-qnocommon'
6530          lt_prog_compiler_wl='-Wl,'
6531          ;;
6532        esac
6533        ;;
6534
6535     mingw* | pw32* | os2*)
6536       # This hack is so that the source file can tell whether it is being
6537       # built for inclusion in a dll (and should export symbols for example).
6538       lt_prog_compiler_pic='-DDLL_EXPORT'
6539       ;;
6540
6541     hpux9* | hpux10* | hpux11*)
6542       lt_prog_compiler_wl='-Wl,'
6543       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6544       # not for PA HP-UX.
6545       case $host_cpu in
6546       hppa*64*|ia64*)
6547         # +Z the default
6548         ;;
6549       *)
6550         lt_prog_compiler_pic='+Z'
6551         ;;
6552       esac
6553       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6554       lt_prog_compiler_static='${wl}-a ${wl}archive'
6555       ;;
6556
6557     irix5* | irix6* | nonstopux*)
6558       lt_prog_compiler_wl='-Wl,'
6559       # PIC (with -KPIC) is the default.
6560       lt_prog_compiler_static='-non_shared'
6561       ;;
6562
6563     newsos6)
6564       lt_prog_compiler_pic='-KPIC'
6565       lt_prog_compiler_static='-Bstatic'
6566       ;;
6567
6568     linux*)
6569       case $cc_basename in
6570       icc* | ecc*)
6571         lt_prog_compiler_wl='-Wl,'
6572         lt_prog_compiler_pic='-KPIC'
6573         lt_prog_compiler_static='-static'
6574         ;;
6575       pgcc* | pgf77* | pgf90* | pgf95*)
6576         # Portland Group compilers (*not* the Pentium gcc compiler,
6577         # which looks to be a dead project)
6578         lt_prog_compiler_wl='-Wl,'
6579         lt_prog_compiler_pic='-fpic'
6580         lt_prog_compiler_static='-Bstatic'
6581         ;;
6582       ccc*)
6583         lt_prog_compiler_wl='-Wl,'
6584         # All Alpha code is PIC.
6585         lt_prog_compiler_static='-non_shared'
6586         ;;
6587       esac
6588       ;;
6589
6590     osf3* | osf4* | osf5*)
6591       lt_prog_compiler_wl='-Wl,'
6592       # All OSF/1 code is PIC.
6593       lt_prog_compiler_static='-non_shared'
6594       ;;
6595
6596     solaris*)
6597       lt_prog_compiler_pic='-KPIC'
6598       lt_prog_compiler_static='-Bstatic'
6599       case $cc_basename in
6600       f77* | f90* | f95*)
6601         lt_prog_compiler_wl='-Qoption ld ';;
6602       *)
6603         lt_prog_compiler_wl='-Wl,';;
6604       esac
6605       ;;
6606
6607     sunos4*)
6608       lt_prog_compiler_wl='-Qoption ld '
6609       lt_prog_compiler_pic='-PIC'
6610       lt_prog_compiler_static='-Bstatic'
6611       ;;
6612
6613     sysv4 | sysv4.2uw2* | sysv4.3*)
6614       lt_prog_compiler_wl='-Wl,'
6615       lt_prog_compiler_pic='-KPIC'
6616       lt_prog_compiler_static='-Bstatic'
6617       ;;
6618
6619     sysv4*MP*)
6620       if test -d /usr/nec ;then
6621         lt_prog_compiler_pic='-Kconform_pic'
6622         lt_prog_compiler_static='-Bstatic'
6623       fi
6624       ;;
6625
6626     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6627       lt_prog_compiler_wl='-Wl,'
6628       lt_prog_compiler_pic='-KPIC'
6629       lt_prog_compiler_static='-Bstatic'
6630       ;;
6631
6632     unicos*)
6633       lt_prog_compiler_wl='-Wl,'
6634       lt_prog_compiler_can_build_shared=no
6635       ;;
6636
6637     uts4*)
6638       lt_prog_compiler_pic='-pic'
6639       lt_prog_compiler_static='-Bstatic'
6640       ;;
6641
6642     *)
6643       lt_prog_compiler_can_build_shared=no
6644       ;;
6645     esac
6646   fi
6647
6648 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6649 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6650
6651 #
6652 # Check to make sure the PIC flag actually works.
6653 #
6654 if test -n "$lt_prog_compiler_pic"; then
6655
6656 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6657 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6658 if test "${lt_prog_compiler_pic_works+set}" = set; then
6659   echo $ECHO_N "(cached) $ECHO_C" >&6
6660 else
6661   lt_prog_compiler_pic_works=no
6662   ac_outfile=conftest.$ac_objext
6663    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6664    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6665    # Insert the option either (1) after the last *FLAGS variable, or
6666    # (2) before a word containing "conftest.", or (3) at the end.
6667    # Note that $ac_compile itself does not contain backslashes and begins
6668    # with a dollar sign (not a hyphen), so the echo should work correctly.
6669    # The option is referenced via a variable to avoid confusing sed.
6670    lt_compile=`echo "$ac_compile" | $SED \
6671    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6672    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6673    -e 's:$: $lt_compiler_flag:'`
6674    (eval echo "\"\$as_me:6674: $lt_compile\"" >&5)
6675    (eval "$lt_compile" 2>conftest.err)
6676    ac_status=$?
6677    cat conftest.err >&5
6678    echo "$as_me:6678: \$? = $ac_status" >&5
6679    if (exit $ac_status) && test -s "$ac_outfile"; then
6680      # The compiler can only warn and ignore the option if not recognized
6681      # So say no if there are warnings other than the usual output.
6682      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6683      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6684      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6685        lt_prog_compiler_pic_works=yes
6686      fi
6687    fi
6688    $rm conftest*
6689
6690 fi
6691 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6692 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6693
6694 if test x"$lt_prog_compiler_pic_works" = xyes; then
6695     case $lt_prog_compiler_pic in
6696      "" | " "*) ;;
6697      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6698      esac
6699 else
6700     lt_prog_compiler_pic=
6701      lt_prog_compiler_can_build_shared=no
6702 fi
6703
6704 fi
6705 case $host_os in
6706   # For platforms which do not support PIC, -DPIC is meaningless:
6707   *djgpp*)
6708     lt_prog_compiler_pic=
6709     ;;
6710   *)
6711     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6712     ;;
6713 esac
6714
6715 #
6716 # Check to make sure the static flag actually works.
6717 #
6718 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6719 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
6720 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
6721 if test "${lt_prog_compiler_static_works+set}" = set; then
6722   echo $ECHO_N "(cached) $ECHO_C" >&6
6723 else
6724   lt_prog_compiler_static_works=no
6725    save_LDFLAGS="$LDFLAGS"
6726    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
6727    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6728    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6729      # The linker can only warn and ignore the option if not recognized
6730      # So say no if there are warnings
6731      if test -s conftest.err; then
6732        # Append any errors to the config.log.
6733        cat conftest.err 1>&5
6734        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
6735        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6736        if diff conftest.exp conftest.er2 >/dev/null; then
6737          lt_prog_compiler_static_works=yes
6738        fi
6739      else
6740        lt_prog_compiler_static_works=yes
6741      fi
6742    fi
6743    $rm conftest*
6744    LDFLAGS="$save_LDFLAGS"
6745
6746 fi
6747 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6748 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6749
6750 if test x"$lt_prog_compiler_static_works" = xyes; then
6751     :
6752 else
6753     lt_prog_compiler_static=
6754 fi
6755
6756
6757 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6758 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6759 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6760   echo $ECHO_N "(cached) $ECHO_C" >&6
6761 else
6762   lt_cv_prog_compiler_c_o=no
6763    $rm -r conftest 2>/dev/null
6764    mkdir conftest
6765    cd conftest
6766    mkdir out
6767    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6768
6769    lt_compiler_flag="-o out/conftest2.$ac_objext"
6770    # Insert the option either (1) after the last *FLAGS variable, or
6771    # (2) before a word containing "conftest.", or (3) at the end.
6772    # Note that $ac_compile itself does not contain backslashes and begins
6773    # with a dollar sign (not a hyphen), so the echo should work correctly.
6774    lt_compile=`echo "$ac_compile" | $SED \
6775    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6776    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6777    -e 's:$: $lt_compiler_flag:'`
6778    (eval echo "\"\$as_me:6778: $lt_compile\"" >&5)
6779    (eval "$lt_compile" 2>out/conftest.err)
6780    ac_status=$?
6781    cat out/conftest.err >&5
6782    echo "$as_me:6782: \$? = $ac_status" >&5
6783    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6784    then
6785      # The compiler can only warn and ignore the option if not recognized
6786      # So say no if there are warnings
6787      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
6788      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
6789      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
6790        lt_cv_prog_compiler_c_o=yes
6791      fi
6792    fi
6793    chmod u+w . 2>&5
6794    $rm conftest*
6795    # SGI C++ compiler will create directory out/ii_files/ for
6796    # template instantiation
6797    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6798    $rm out/* && rmdir out
6799    cd ..
6800    rmdir conftest
6801    $rm conftest*
6802
6803 fi
6804 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6805 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6806
6807
6808 hard_links="nottested"
6809 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6810   # do not overwrite the value of need_locks provided by the user
6811   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6812 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6813   hard_links=yes
6814   $rm conftest*
6815   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6816   touch conftest.a
6817   ln conftest.a conftest.b 2>&5 || hard_links=no
6818   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6819   echo "$as_me:$LINENO: result: $hard_links" >&5
6820 echo "${ECHO_T}$hard_links" >&6
6821   if test "$hard_links" = no; then
6822     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6823 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6824     need_locks=warn
6825   fi
6826 else
6827   need_locks=no
6828 fi
6829
6830 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6831 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6832
6833   runpath_var=
6834   allow_undefined_flag=
6835   enable_shared_with_static_runtimes=no
6836   archive_cmds=
6837   archive_expsym_cmds=
6838   old_archive_From_new_cmds=
6839   old_archive_from_expsyms_cmds=
6840   export_dynamic_flag_spec=
6841   whole_archive_flag_spec=
6842   thread_safe_flag_spec=
6843   hardcode_libdir_flag_spec=
6844   hardcode_libdir_flag_spec_ld=
6845   hardcode_libdir_separator=
6846   hardcode_direct=no
6847   hardcode_minus_L=no
6848   hardcode_shlibpath_var=unsupported
6849   link_all_deplibs=unknown
6850   hardcode_automatic=no
6851   module_cmds=
6852   module_expsym_cmds=
6853   always_export_symbols=no
6854   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6855   # include_expsyms should be a list of space-separated symbols to be *always*
6856   # included in the symbol list
6857   include_expsyms=
6858   # exclude_expsyms can be an extended regexp of symbols to exclude
6859   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6860   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6861   # as well as any symbol that contains `d'.
6862   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6863   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6864   # platforms (ab)use it in PIC code, but their linkers get confused if
6865   # the symbol is explicitly referenced.  Since portable code cannot
6866   # rely on this symbol name, it's probably fine to never include it in
6867   # preloaded symbol tables.
6868   extract_expsyms_cmds=
6869   # Just being paranoid about ensuring that cc_basename is set.
6870   for cc_temp in $compiler""; do
6871   case $cc_temp in
6872     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6873     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6874     \-*) ;;
6875     *) break;;
6876   esac
6877 done
6878 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6879
6880   case $host_os in
6881   cygwin* | mingw* | pw32*)
6882     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6883     # When not using gcc, we currently assume that we are using
6884     # Microsoft Visual C++.
6885     if test "$GCC" != yes; then
6886       with_gnu_ld=no
6887     fi
6888     ;;
6889   interix*)
6890     # we just hope/assume this is gcc and not c89 (= MSVC++)
6891     with_gnu_ld=yes
6892     ;;
6893   openbsd*)
6894     with_gnu_ld=no
6895     ;;
6896   esac
6897
6898   ld_shlibs=yes
6899   if test "$with_gnu_ld" = yes; then
6900     # If archive_cmds runs LD, not CC, wlarc should be empty
6901     wlarc='${wl}'
6902
6903     # Set some defaults for GNU ld with shared library support. These
6904     # are reset later if shared libraries are not supported. Putting them
6905     # here allows them to be overridden if necessary.
6906     runpath_var=LD_RUN_PATH
6907     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6908     export_dynamic_flag_spec='${wl}--export-dynamic'
6909     # ancient GNU ld didn't support --whole-archive et. al.
6910     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6911         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6912       else
6913         whole_archive_flag_spec=
6914     fi
6915     supports_anon_versioning=no
6916     case `$LD -v 2>/dev/null` in
6917       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6918       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6919       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6920       *\ 2.11.*) ;; # other 2.11 versions
6921       *) supports_anon_versioning=yes ;;
6922     esac
6923
6924     # See if GNU ld supports shared libraries.
6925     case $host_os in
6926     aix3* | aix4* | aix5*)
6927       # On AIX/PPC, the GNU linker is very broken
6928       if test "$host_cpu" != ia64; then
6929         ld_shlibs=no
6930         cat <<EOF 1>&2
6931
6932 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6933 *** to be unable to reliably create shared libraries on AIX.
6934 *** Therefore, libtool is disabling shared libraries support.  If you
6935 *** really care for shared libraries, you may want to modify your PATH
6936 *** so that a non-GNU linker is found, and then restart.
6937
6938 EOF
6939       fi
6940       ;;
6941
6942     amigaos*)
6943       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)'
6944       hardcode_libdir_flag_spec='-L$libdir'
6945       hardcode_minus_L=yes
6946
6947       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6948       # that the semantics of dynamic libraries on AmigaOS, at least up
6949       # to version 4, is to share data among multiple programs linked
6950       # with the same dynamic library.  Since this doesn't match the
6951       # behavior of shared libraries on other platforms, we can't use
6952       # them.
6953       ld_shlibs=no
6954       ;;
6955
6956     beos*)
6957       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6958         allow_undefined_flag=unsupported
6959         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6960         # support --undefined.  This deserves some investigation.  FIXME
6961         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6962       else
6963         ld_shlibs=no
6964       fi
6965       ;;
6966
6967     cygwin* | mingw* | pw32*)
6968       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6969       # as there is no search path for DLLs.
6970       hardcode_libdir_flag_spec='-L$libdir'
6971       allow_undefined_flag=unsupported
6972       always_export_symbols=no
6973       enable_shared_with_static_runtimes=yes
6974       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6975
6976       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6977         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6978         # If the export-symbols file already is a .def file (1st line
6979         # is EXPORTS), use it as is; otherwise, prepend...
6980         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6981           cp $export_symbols $output_objdir/$soname.def;
6982         else
6983           echo EXPORTS > $output_objdir/$soname.def;
6984           cat $export_symbols >> $output_objdir/$soname.def;
6985         fi~
6986         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
6987       else
6988         ld_shlibs=no
6989       fi
6990       ;;
6991
6992     interix3*)
6993       hardcode_direct=no
6994       hardcode_shlibpath_var=no
6995       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
6996       export_dynamic_flag_spec='${wl}-E'
6997       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
6998       # Instead, shared libraries are loaded at an image base (0x10000000 by
6999       # default) and relocated if they conflict, which is a slow very memory
7000       # consuming and fragmenting process.  To avoid this, we pick a random,
7001       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7002       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7003       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7004       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'
7005       ;;
7006
7007     linux*)
7008       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7009         tmp_addflag=
7010         case $cc_basename,$host_cpu in
7011         pgcc*)                          # Portland Group C compiler
7012           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'
7013           tmp_addflag=' $pic_flag'
7014           ;;
7015         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7016           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'
7017           tmp_addflag=' $pic_flag -Mnomain' ;;
7018         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7019           tmp_addflag=' -i_dynamic' ;;
7020         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7021           tmp_addflag=' -i_dynamic -nofor_main' ;;
7022         ifc* | ifort*)                  # Intel Fortran compiler
7023           tmp_addflag=' -nofor_main' ;;
7024         esac
7025         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7026
7027         if test $supports_anon_versioning = yes; then
7028           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7029   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7030   $echo "local: *; };" >> $output_objdir/$libname.ver~
7031           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7032         fi
7033       else
7034         ld_shlibs=no
7035       fi
7036       ;;
7037
7038     netbsd*)
7039       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7040         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7041         wlarc=
7042       else
7043         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7044         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7045       fi
7046       ;;
7047
7048     solaris*)
7049       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7050         ld_shlibs=no
7051         cat <<EOF 1>&2
7052
7053 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7054 *** create shared libraries on Solaris systems.  Therefore, libtool
7055 *** is disabling shared libraries support.  We urge you to upgrade GNU
7056 *** binutils to release 2.9.1 or newer.  Another option is to modify
7057 *** your PATH or compiler configuration so that the native linker is
7058 *** used, and then restart.
7059
7060 EOF
7061       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7062         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7063         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7064       else
7065         ld_shlibs=no
7066       fi
7067       ;;
7068
7069     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7070       case `$LD -v 2>&1` in
7071         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7072         ld_shlibs=no
7073         cat <<_LT_EOF 1>&2
7074
7075 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7076 *** reliably create shared libraries on SCO systems.  Therefore, libtool
7077 *** is disabling shared libraries support.  We urge you to upgrade GNU
7078 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7079 *** your PATH or compiler configuration so that the native linker is
7080 *** used, and then restart.
7081
7082 _LT_EOF
7083         ;;
7084         *)
7085           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7086             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7087             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7088             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7089           else
7090             ld_shlibs=no
7091           fi
7092         ;;
7093       esac
7094       ;;
7095
7096     sunos4*)
7097       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7098       wlarc=
7099       hardcode_direct=yes
7100       hardcode_shlibpath_var=no
7101       ;;
7102
7103     *)
7104       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7105         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7106         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7107       else
7108         ld_shlibs=no
7109       fi
7110       ;;
7111     esac
7112
7113     if test "$ld_shlibs" = no; then
7114       runpath_var=
7115       hardcode_libdir_flag_spec=
7116       export_dynamic_flag_spec=
7117       whole_archive_flag_spec=
7118     fi
7119   else
7120     # PORTME fill in a description of your system's linker (not GNU ld)
7121     case $host_os in
7122     aix3*)
7123       allow_undefined_flag=unsupported
7124       always_export_symbols=yes
7125       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'
7126       # Note: this linker hardcodes the directories in LIBPATH if there
7127       # are no directories specified by -L.
7128       hardcode_minus_L=yes
7129       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7130         # Neither direct hardcoding nor static linking is supported with a
7131         # broken collect2.
7132         hardcode_direct=unsupported
7133       fi
7134       ;;
7135
7136     aix4* | aix5*)
7137       if test "$host_cpu" = ia64; then
7138         # On IA64, the linker does run time linking by default, so we don't
7139         # have to do anything special.
7140         aix_use_runtimelinking=no
7141         exp_sym_flag='-Bexport'
7142         no_entry_flag=""
7143       else
7144         # If we're using GNU nm, then we don't want the "-C" option.
7145         # -C means demangle to AIX nm, but means don't demangle with GNU nm
7146         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7147           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'
7148         else
7149           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'
7150         fi
7151         aix_use_runtimelinking=no
7152
7153         # Test if we are trying to use run time linking or normal
7154         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7155         # need to do runtime linking.
7156         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7157           for ld_flag in $LDFLAGS; do
7158           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7159             aix_use_runtimelinking=yes
7160             break
7161           fi
7162           done
7163           ;;
7164         esac
7165
7166         exp_sym_flag='-bexport'
7167         no_entry_flag='-bnoentry'
7168       fi
7169
7170       # When large executables or shared objects are built, AIX ld can
7171       # have problems creating the table of contents.  If linking a library
7172       # or program results in "error TOC overflow" add -mminimal-toc to
7173       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7174       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7175
7176       archive_cmds=''
7177       hardcode_direct=yes
7178       hardcode_libdir_separator=':'
7179       link_all_deplibs=yes
7180
7181       if test "$GCC" = yes; then
7182         case $host_os in aix4.[012]|aix4.[012].*)
7183         # We only want to do this on AIX 4.2 and lower, the check
7184         # below for broken collect2 doesn't work under 4.3+
7185           collect2name=`${CC} -print-prog-name=collect2`
7186           if test -f "$collect2name" && \
7187            strings "$collect2name" | grep resolve_lib_name >/dev/null
7188           then
7189           # We have reworked collect2
7190           hardcode_direct=yes
7191           else
7192           # We have old collect2
7193           hardcode_direct=unsupported
7194           # It fails to find uninstalled libraries when the uninstalled
7195           # path is not listed in the libpath.  Setting hardcode_minus_L
7196           # to unsupported forces relinking
7197           hardcode_minus_L=yes
7198           hardcode_libdir_flag_spec='-L$libdir'
7199           hardcode_libdir_separator=
7200           fi
7201           ;;
7202         esac
7203         shared_flag='-shared'
7204         if test "$aix_use_runtimelinking" = yes; then
7205           shared_flag="$shared_flag "'${wl}-G'
7206         fi
7207       else
7208         # not using gcc
7209         if test "$host_cpu" = ia64; then
7210         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7211         # chokes on -Wl,-G. The following line is correct:
7212           shared_flag='-G'
7213         else
7214           if test "$aix_use_runtimelinking" = yes; then
7215             shared_flag='${wl}-G'
7216           else
7217             shared_flag='${wl}-bM:SRE'
7218           fi
7219         fi
7220       fi
7221
7222       # It seems that -bexpall does not export symbols beginning with
7223       # underscore (_), so it is better to generate a list of symbols to export.
7224       always_export_symbols=yes
7225       if test "$aix_use_runtimelinking" = yes; then
7226         # Warning - without using the other runtime loading flags (-brtl),
7227         # -berok will link without error, but may produce a broken library.
7228         allow_undefined_flag='-berok'
7229        # Determine the default libpath from the value encoded in an empty executable.
7230        cat >conftest.$ac_ext <<_ACEOF
7231 /* confdefs.h.  */
7232 _ACEOF
7233 cat confdefs.h >>conftest.$ac_ext
7234 cat >>conftest.$ac_ext <<_ACEOF
7235 /* end confdefs.h.  */
7236
7237 int
7238 main ()
7239 {
7240
7241   ;
7242   return 0;
7243 }
7244 _ACEOF
7245 rm -f conftest.$ac_objext conftest$ac_exeext
7246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7247   (eval $ac_link) 2>conftest.er1
7248   ac_status=$?
7249   grep -v '^ *+' conftest.er1 >conftest.err
7250   rm -f conftest.er1
7251   cat conftest.err >&5
7252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253   (exit $ac_status); } &&
7254          { ac_try='test -z "$ac_c_werror_flag"
7255                          || test ! -s conftest.err'
7256   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7257   (eval $ac_try) 2>&5
7258   ac_status=$?
7259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260   (exit $ac_status); }; } &&
7261          { ac_try='test -s conftest$ac_exeext'
7262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7263   (eval $ac_try) 2>&5
7264   ac_status=$?
7265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266   (exit $ac_status); }; }; then
7267
7268 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7269 }'`
7270 # Check for a 64-bit object if we didn't find anything.
7271 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; }
7272 }'`; fi
7273 else
7274   echo "$as_me: failed program was:" >&5
7275 sed 's/^/| /' conftest.$ac_ext >&5
7276
7277 fi
7278 rm -f conftest.err conftest.$ac_objext \
7279       conftest$ac_exeext conftest.$ac_ext
7280 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7281
7282        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7283         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"
7284        else
7285         if test "$host_cpu" = ia64; then
7286           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7287           allow_undefined_flag="-z nodefs"
7288           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"
7289         else
7290          # Determine the default libpath from the value encoded in an empty executable.
7291          cat >conftest.$ac_ext <<_ACEOF
7292 /* confdefs.h.  */
7293 _ACEOF
7294 cat confdefs.h >>conftest.$ac_ext
7295 cat >>conftest.$ac_ext <<_ACEOF
7296 /* end confdefs.h.  */
7297
7298 int
7299 main ()
7300 {
7301
7302   ;
7303   return 0;
7304 }
7305 _ACEOF
7306 rm -f conftest.$ac_objext conftest$ac_exeext
7307 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7308   (eval $ac_link) 2>conftest.er1
7309   ac_status=$?
7310   grep -v '^ *+' conftest.er1 >conftest.err
7311   rm -f conftest.er1
7312   cat conftest.err >&5
7313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7314   (exit $ac_status); } &&
7315          { ac_try='test -z "$ac_c_werror_flag"
7316                          || test ! -s conftest.err'
7317   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7318   (eval $ac_try) 2>&5
7319   ac_status=$?
7320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321   (exit $ac_status); }; } &&
7322          { ac_try='test -s conftest$ac_exeext'
7323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7324   (eval $ac_try) 2>&5
7325   ac_status=$?
7326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7327   (exit $ac_status); }; }; then
7328
7329 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7330 }'`
7331 # Check for a 64-bit object if we didn't find anything.
7332 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; }
7333 }'`; fi
7334 else
7335   echo "$as_me: failed program was:" >&5
7336 sed 's/^/| /' conftest.$ac_ext >&5
7337
7338 fi
7339 rm -f conftest.err conftest.$ac_objext \
7340       conftest$ac_exeext conftest.$ac_ext
7341 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7342
7343          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7344           # Warning - without using the other run time loading flags,
7345           # -berok will link without error, but may produce a broken library.
7346           no_undefined_flag=' ${wl}-bernotok'
7347           allow_undefined_flag=' ${wl}-berok'
7348           # Exported symbols can be pulled into shared objects from archives
7349           whole_archive_flag_spec='$convenience'
7350           archive_cmds_need_lc=yes
7351           # This is similar to how AIX traditionally builds its shared libraries.
7352           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'
7353         fi
7354       fi
7355       ;;
7356
7357     amigaos*)
7358       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)'
7359       hardcode_libdir_flag_spec='-L$libdir'
7360       hardcode_minus_L=yes
7361       # see comment about different semantics on the GNU ld section
7362       ld_shlibs=no
7363       ;;
7364
7365     bsdi[45]*)
7366       export_dynamic_flag_spec=-rdynamic
7367       ;;
7368
7369     cygwin* | mingw* | pw32*)
7370       # When not using gcc, we currently assume that we are using
7371       # Microsoft Visual C++.
7372       # hardcode_libdir_flag_spec is actually meaningless, as there is
7373       # no search path for DLLs.
7374       hardcode_libdir_flag_spec=' '
7375       allow_undefined_flag=unsupported
7376       # Tell ltmain to make .lib files, not .a files.
7377       libext=lib
7378       # Tell ltmain to make .dll files, not .so files.
7379       shrext_cmds=".dll"
7380       # FIXME: Setting linknames here is a bad hack.
7381       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7382       # The linker will automatically build a .lib file if we build a DLL.
7383       old_archive_From_new_cmds='true'
7384       # FIXME: Should let the user specify the lib program.
7385       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7386       fix_srcfile_path='`cygpath -w "$srcfile"`'
7387       enable_shared_with_static_runtimes=yes
7388       ;;
7389
7390     darwin* | rhapsody*)
7391       case $host_os in
7392         rhapsody* | darwin1.[012])
7393          allow_undefined_flag='${wl}-undefined ${wl}suppress'
7394          ;;
7395        *) # Darwin 1.3 on
7396          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7397            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7398          else
7399            case ${MACOSX_DEPLOYMENT_TARGET} in
7400              10.[012])
7401                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7402                ;;
7403              10.*)
7404                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7405                ;;
7406            esac
7407          fi
7408          ;;
7409       esac
7410       archive_cmds_need_lc=no
7411       hardcode_direct=no
7412       hardcode_automatic=yes
7413       hardcode_shlibpath_var=unsupported
7414       whole_archive_flag_spec=''
7415       link_all_deplibs=yes
7416     if test "$GCC" = yes ; then
7417         output_verbose_link_cmd='echo'
7418         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7419       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7420       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7421       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}'
7422       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}'
7423     else
7424       case $cc_basename in
7425         xlc*)
7426          output_verbose_link_cmd='echo'
7427          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7428          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7429           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7430          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}'
7431           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}'
7432           ;;
7433        *)
7434          ld_shlibs=no
7435           ;;
7436       esac
7437     fi
7438       ;;
7439
7440     dgux*)
7441       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7442       hardcode_libdir_flag_spec='-L$libdir'
7443       hardcode_shlibpath_var=no
7444       ;;
7445
7446     freebsd1*)
7447       ld_shlibs=no
7448       ;;
7449
7450     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7451     # support.  Future versions do this automatically, but an explicit c++rt0.o
7452     # does not break anything, and helps significantly (at the cost of a little
7453     # extra space).
7454     freebsd2.2*)
7455       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7456       hardcode_libdir_flag_spec='-R$libdir'
7457       hardcode_direct=yes
7458       hardcode_shlibpath_var=no
7459       ;;
7460
7461     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7462     freebsd2*)
7463       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7464       hardcode_direct=yes
7465       hardcode_minus_L=yes
7466       hardcode_shlibpath_var=no
7467       ;;
7468
7469     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7470     freebsd* | kfreebsd*-gnu | dragonfly*)
7471       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7472       hardcode_libdir_flag_spec='-R$libdir'
7473       hardcode_direct=yes
7474       hardcode_shlibpath_var=no
7475       ;;
7476
7477     hpux9*)
7478       if test "$GCC" = yes; then
7479         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'
7480       else
7481         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'
7482       fi
7483       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7484       hardcode_libdir_separator=:
7485       hardcode_direct=yes
7486
7487       # hardcode_minus_L: Not really in the search PATH,
7488       # but as the default location of the library.
7489       hardcode_minus_L=yes
7490       export_dynamic_flag_spec='${wl}-E'
7491       ;;
7492
7493     hpux10*)
7494       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7495         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7496       else
7497         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7498       fi
7499       if test "$with_gnu_ld" = no; then
7500         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7501         hardcode_libdir_separator=:
7502
7503         hardcode_direct=yes
7504         export_dynamic_flag_spec='${wl}-E'
7505
7506         # hardcode_minus_L: Not really in the search PATH,
7507         # but as the default location of the library.
7508         hardcode_minus_L=yes
7509       fi
7510       ;;
7511
7512     hpux11*)
7513       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7514         case $host_cpu in
7515         hppa*64*)
7516           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7517           ;;
7518         ia64*)
7519           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7520           ;;
7521         *)
7522           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7523           ;;
7524         esac
7525       else
7526         case $host_cpu in
7527         hppa*64*)
7528           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7529           ;;
7530         ia64*)
7531           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7532           ;;
7533         *)
7534           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7535           ;;
7536         esac
7537       fi
7538       if test "$with_gnu_ld" = no; then
7539         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7540         hardcode_libdir_separator=:
7541
7542         case $host_cpu in
7543         hppa*64*|ia64*)
7544           hardcode_libdir_flag_spec_ld='+b $libdir'
7545           hardcode_direct=no
7546           hardcode_shlibpath_var=no
7547           ;;
7548         *)
7549           hardcode_direct=yes
7550           export_dynamic_flag_spec='${wl}-E'
7551
7552           # hardcode_minus_L: Not really in the search PATH,
7553           # but as the default location of the library.
7554           hardcode_minus_L=yes
7555           ;;
7556         esac
7557       fi
7558       ;;
7559
7560     irix5* | irix6* | nonstopux*)
7561       if test "$GCC" = yes; then
7562         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'
7563       else
7564         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'
7565         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7566       fi
7567       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7568       hardcode_libdir_separator=:
7569       link_all_deplibs=yes
7570       ;;
7571
7572     netbsd*)
7573       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7574         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7575       else
7576         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7577       fi
7578       hardcode_libdir_flag_spec='-R$libdir'
7579       hardcode_direct=yes
7580       hardcode_shlibpath_var=no
7581       ;;
7582
7583     newsos6)
7584       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7585       hardcode_direct=yes
7586       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7587       hardcode_libdir_separator=:
7588       hardcode_shlibpath_var=no
7589       ;;
7590
7591     openbsd*)
7592       hardcode_direct=yes
7593       hardcode_shlibpath_var=no
7594       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7595         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7596         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7597         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7598         export_dynamic_flag_spec='${wl}-E'
7599       else
7600        case $host_os in
7601          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7602            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7603            hardcode_libdir_flag_spec='-R$libdir'
7604            ;;
7605          *)
7606            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7607            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7608            ;;
7609        esac
7610       fi
7611       ;;
7612
7613     os2*)
7614       hardcode_libdir_flag_spec='-L$libdir'
7615       hardcode_minus_L=yes
7616       allow_undefined_flag=unsupported
7617       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'
7618       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7619       ;;
7620
7621     osf3*)
7622       if test "$GCC" = yes; then
7623         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7624         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'
7625       else
7626         allow_undefined_flag=' -expect_unresolved \*'
7627         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'
7628       fi
7629       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7630       hardcode_libdir_separator=:
7631       ;;
7632
7633     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7634       if test "$GCC" = yes; then
7635         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7636         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'
7637         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7638       else
7639         allow_undefined_flag=' -expect_unresolved \*'
7640         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'
7641         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7642         $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'
7643
7644         # Both c and cxx compiler support -rpath directly
7645         hardcode_libdir_flag_spec='-rpath $libdir'
7646       fi
7647       hardcode_libdir_separator=:
7648       ;;
7649
7650     solaris*)
7651       no_undefined_flag=' -z text'
7652       if test "$GCC" = yes; then
7653         wlarc='${wl}'
7654         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7655         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7656           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7657       else
7658         wlarc=''
7659         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7660         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7661         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7662       fi
7663       hardcode_libdir_flag_spec='-R$libdir'
7664       hardcode_shlibpath_var=no
7665       case $host_os in
7666       solaris2.[0-5] | solaris2.[0-5].*) ;;
7667       *)
7668         # The compiler driver will combine linker options so we
7669         # cannot just pass the convience library names through
7670         # without $wl, iff we do not link with $LD.
7671         # Luckily, gcc supports the same syntax we need for Sun Studio.
7672         # Supported since Solaris 2.6 (maybe 2.5.1?)
7673         case $wlarc in
7674         '')
7675           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7676         *)
7677           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' ;;
7678         esac ;;
7679       esac
7680       link_all_deplibs=yes
7681       ;;
7682
7683     sunos4*)
7684       if test "x$host_vendor" = xsequent; then
7685         # Use $CC to link under sequent, because it throws in some extra .o
7686         # files that make .init and .fini sections work.
7687         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7688       else
7689         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7690       fi
7691       hardcode_libdir_flag_spec='-L$libdir'
7692       hardcode_direct=yes
7693       hardcode_minus_L=yes
7694       hardcode_shlibpath_var=no
7695       ;;
7696
7697     sysv4)
7698       case $host_vendor in
7699         sni)
7700           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7701           hardcode_direct=yes # is this really true???
7702         ;;
7703         siemens)
7704           ## LD is ld it makes a PLAMLIB
7705           ## CC just makes a GrossModule.
7706           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7707           reload_cmds='$CC -r -o $output$reload_objs'
7708           hardcode_direct=no
7709         ;;
7710         motorola)
7711           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7712           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7713         ;;
7714       esac
7715       runpath_var='LD_RUN_PATH'
7716       hardcode_shlibpath_var=no
7717       ;;
7718
7719     sysv4.3*)
7720       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7721       hardcode_shlibpath_var=no
7722       export_dynamic_flag_spec='-Bexport'
7723       ;;
7724
7725     sysv4*MP*)
7726       if test -d /usr/nec; then
7727         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7728         hardcode_shlibpath_var=no
7729         runpath_var=LD_RUN_PATH
7730         hardcode_runpath_var=yes
7731         ld_shlibs=yes
7732       fi
7733       ;;
7734
7735     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
7736       no_undefined_flag='${wl}-z,text'
7737       archive_cmds_need_lc=no
7738       hardcode_shlibpath_var=no
7739       runpath_var='LD_RUN_PATH'
7740
7741       if test "$GCC" = yes; then
7742         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7743         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7744       else
7745         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7746         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
7747       fi
7748       ;;
7749
7750     sysv5* | sco3.2v5* | sco5v6*)
7751       # Note: We can NOT use -z defs as we might desire, because we do not
7752       # link with -lc, and that would cause any symbols used from libc to
7753       # always be unresolved, which means just about no library would
7754       # ever link correctly.  If we're not using GNU ld we use -z text
7755       # though, which does catch some bad symbols but isn't as heavy-handed
7756       # as -z defs.
7757       no_undefined_flag='${wl}-z,text'
7758       allow_undefined_flag='${wl}-z,nodefs'
7759       archive_cmds_need_lc=no
7760       hardcode_shlibpath_var=no
7761       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
7762       hardcode_libdir_separator=':'
7763       link_all_deplibs=yes
7764       export_dynamic_flag_spec='${wl}-Bexport'
7765       runpath_var='LD_RUN_PATH'
7766
7767       if test "$GCC" = yes; then
7768         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7769         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7770       else
7771         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7772         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
7773       fi
7774       ;;
7775
7776     uts4*)
7777       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7778       hardcode_libdir_flag_spec='-L$libdir'
7779       hardcode_shlibpath_var=no
7780       ;;
7781
7782     *)
7783       ld_shlibs=no
7784       ;;
7785     esac
7786   fi
7787
7788 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7789 echo "${ECHO_T}$ld_shlibs" >&6
7790 test "$ld_shlibs" = no && can_build_shared=no
7791
7792 #
7793 # Do we need to explicitly link libc?
7794 #
7795 case "x$archive_cmds_need_lc" in
7796 x|xyes)
7797   # Assume -lc should be added
7798   archive_cmds_need_lc=yes
7799
7800   if test "$enable_shared" = yes && test "$GCC" = yes; then
7801     case $archive_cmds in
7802     *'~'*)
7803       # FIXME: we may have to deal with multi-command sequences.
7804       ;;
7805     '$CC '*)
7806       # Test whether the compiler implicitly links with -lc since on some
7807       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7808       # to ld, don't add -lc before -lgcc.
7809       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7810 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7811       $rm conftest*
7812       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7813
7814       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7815   (eval $ac_compile) 2>&5
7816   ac_status=$?
7817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818   (exit $ac_status); } 2>conftest.err; then
7819         soname=conftest
7820         lib=conftest
7821         libobjs=conftest.$ac_objext
7822         deplibs=
7823         wl=$lt_prog_compiler_wl
7824         pic_flag=$lt_prog_compiler_pic
7825         compiler_flags=-v
7826         linker_flags=-v
7827         verstring=
7828         output_objdir=.
7829         libname=conftest
7830         lt_save_allow_undefined_flag=$allow_undefined_flag
7831         allow_undefined_flag=
7832         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7833   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7834   ac_status=$?
7835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836   (exit $ac_status); }
7837         then
7838           archive_cmds_need_lc=no
7839         else
7840           archive_cmds_need_lc=yes
7841         fi
7842         allow_undefined_flag=$lt_save_allow_undefined_flag
7843       else
7844         cat conftest.err 1>&5
7845       fi
7846       $rm conftest*
7847       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7848 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7849       ;;
7850     esac
7851   fi
7852   ;;
7853 esac
7854
7855 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7856 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7857 library_names_spec=
7858 libname_spec='lib$name'
7859 soname_spec=
7860 shrext_cmds=".so"
7861 postinstall_cmds=
7862 postuninstall_cmds=
7863 finish_cmds=
7864 finish_eval=
7865 shlibpath_var=
7866 shlibpath_overrides_runpath=unknown
7867 version_type=none
7868 dynamic_linker="$host_os ld.so"
7869 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7870 if test "$GCC" = yes; then
7871   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7872   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7873     # if the path contains ";" then we assume it to be the separator
7874     # otherwise default to the standard path separator (i.e. ":") - it is
7875     # assumed that no part of a normal pathname contains ";" but that should
7876     # okay in the real world where ";" in dirpaths is itself problematic.
7877     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7878   else
7879     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7880   fi
7881 else
7882   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7883 fi
7884 need_lib_prefix=unknown
7885 hardcode_into_libs=no
7886
7887 # when you set need_version to no, make sure it does not cause -set_version
7888 # flags to be left without arguments
7889 need_version=unknown
7890
7891 case $host_os in
7892 aix3*)
7893   version_type=linux
7894   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7895   shlibpath_var=LIBPATH
7896
7897   # AIX 3 has no versioning support, so we append a major version to the name.
7898   soname_spec='${libname}${release}${shared_ext}$major'
7899   ;;
7900
7901 aix4* | aix5*)
7902   version_type=linux
7903   need_lib_prefix=no
7904   need_version=no
7905   hardcode_into_libs=yes
7906   if test "$host_cpu" = ia64; then
7907     # AIX 5 supports IA64
7908     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7909     shlibpath_var=LD_LIBRARY_PATH
7910   else
7911     # With GCC up to 2.95.x, collect2 would create an import file
7912     # for dependence libraries.  The import file would start with
7913     # the line `#! .'.  This would cause the generated library to
7914     # depend on `.', always an invalid library.  This was fixed in
7915     # development snapshots of GCC prior to 3.0.
7916     case $host_os in
7917       aix4 | aix4.[01] | aix4.[01].*)
7918       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7919            echo ' yes '
7920            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7921         :
7922       else
7923         can_build_shared=no
7924       fi
7925       ;;
7926     esac
7927     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7928     # soname into executable. Probably we can add versioning support to
7929     # collect2, so additional links can be useful in future.
7930     if test "$aix_use_runtimelinking" = yes; then
7931       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7932       # instead of lib<name>.a to let people know that these are not
7933       # typical AIX shared libraries.
7934       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7935     else
7936       # We preserve .a as extension for shared libraries through AIX4.2
7937       # and later when we are not doing run time linking.
7938       library_names_spec='${libname}${release}.a $libname.a'
7939       soname_spec='${libname}${release}${shared_ext}$major'
7940     fi
7941     shlibpath_var=LIBPATH
7942   fi
7943   ;;
7944
7945 amigaos*)
7946   library_names_spec='$libname.ixlibrary $libname.a'
7947   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7948   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'
7949   ;;
7950
7951 beos*)
7952   library_names_spec='${libname}${shared_ext}'
7953   dynamic_linker="$host_os ld.so"
7954   shlibpath_var=LIBRARY_PATH
7955   ;;
7956
7957 bsdi[45]*)
7958   version_type=linux
7959   need_version=no
7960   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7961   soname_spec='${libname}${release}${shared_ext}$major'
7962   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7963   shlibpath_var=LD_LIBRARY_PATH
7964   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7965   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7966   # the default ld.so.conf also contains /usr/contrib/lib and
7967   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7968   # libtool to hard-code these into programs
7969   ;;
7970
7971 cygwin* | mingw* | pw32*)
7972   version_type=windows
7973   shrext_cmds=".dll"
7974   need_version=no
7975   need_lib_prefix=no
7976
7977   case $GCC,$host_os in
7978   yes,cygwin* | yes,mingw* | yes,pw32*)
7979     library_names_spec='$libname.dll.a'
7980     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7981     postinstall_cmds='base_file=`basename \${file}`~
7982       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7983       dldir=$destdir/`dirname \$dlpath`~
7984       test -d \$dldir || mkdir -p \$dldir~
7985       $install_prog $dir/$dlname \$dldir/$dlname~
7986       chmod a+x \$dldir/$dlname'
7987     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7988       dlpath=$dir/\$dldll~
7989        $rm \$dlpath'
7990     shlibpath_overrides_runpath=yes
7991
7992     case $host_os in
7993     cygwin*)
7994       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7995       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7996       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7997       ;;
7998     mingw*)
7999       # MinGW DLLs use traditional 'lib' prefix
8000       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8001       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8002       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8003         # It is most probably a Windows format PATH printed by
8004         # mingw gcc, but we are running on Cygwin. Gcc prints its search
8005         # path with ; separators, and with drive letters. We can handle the
8006         # drive letters (cygwin fileutils understands them), so leave them,
8007         # especially as we might pass files found there to a mingw objdump,
8008         # which wouldn't understand a cygwinified path. Ahh.
8009         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8010       else
8011         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8012       fi
8013       ;;
8014     pw32*)
8015       # pw32 DLLs use 'pw' prefix rather than 'lib'
8016       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8017       ;;
8018     esac
8019     ;;
8020
8021   *)
8022     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8023     ;;
8024   esac
8025   dynamic_linker='Win32 ld.exe'
8026   # FIXME: first we should search . and the directory the executable is in
8027   shlibpath_var=PATH
8028   ;;
8029
8030 darwin* | rhapsody*)
8031   dynamic_linker="$host_os dyld"
8032   version_type=darwin
8033   need_lib_prefix=no
8034   need_version=no
8035   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8036   soname_spec='${libname}${release}${major}$shared_ext'
8037   shlibpath_overrides_runpath=yes
8038   shlibpath_var=DYLD_LIBRARY_PATH
8039   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8040   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8041   if test "$GCC" = yes; then
8042     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"`
8043   else
8044     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8045   fi
8046   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8047   ;;
8048
8049 dgux*)
8050   version_type=linux
8051   need_lib_prefix=no
8052   need_version=no
8053   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8054   soname_spec='${libname}${release}${shared_ext}$major'
8055   shlibpath_var=LD_LIBRARY_PATH
8056   ;;
8057
8058 freebsd1*)
8059   dynamic_linker=no
8060   ;;
8061
8062 kfreebsd*-gnu)
8063   version_type=linux
8064   need_lib_prefix=no
8065   need_version=no
8066   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8067   soname_spec='${libname}${release}${shared_ext}$major'
8068   shlibpath_var=LD_LIBRARY_PATH
8069   shlibpath_overrides_runpath=no
8070   hardcode_into_libs=yes
8071   dynamic_linker='GNU ld.so'
8072   ;;
8073
8074 freebsd* | dragonfly*)
8075   # DragonFly does not have aout.  When/if they implement a new
8076   # versioning mechanism, adjust this.
8077   if test -x /usr/bin/objformat; then
8078     objformat=`/usr/bin/objformat`
8079   else
8080     case $host_os in
8081     freebsd[123]*) objformat=aout ;;
8082     *) objformat=elf ;;
8083     esac
8084   fi
8085   version_type=freebsd-$objformat
8086   case $version_type in
8087     freebsd-elf*)
8088       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8089       need_version=no
8090       need_lib_prefix=no
8091       ;;
8092     freebsd-*)
8093       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8094       need_version=yes
8095       ;;
8096   esac
8097   shlibpath_var=LD_LIBRARY_PATH
8098   case $host_os in
8099   freebsd2*)
8100     shlibpath_overrides_runpath=yes
8101     ;;
8102   freebsd3.[01]* | freebsdelf3.[01]*)
8103     shlibpath_overrides_runpath=yes
8104     hardcode_into_libs=yes
8105     ;;
8106   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8107   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8108     shlibpath_overrides_runpath=no
8109     hardcode_into_libs=yes
8110     ;;
8111   freebsd*) # from 4.6 on
8112     shlibpath_overrides_runpath=yes
8113     hardcode_into_libs=yes
8114     ;;
8115   esac
8116   ;;
8117
8118 gnu*)
8119   version_type=linux
8120   need_lib_prefix=no
8121   need_version=no
8122   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8123   soname_spec='${libname}${release}${shared_ext}$major'
8124   shlibpath_var=LD_LIBRARY_PATH
8125   hardcode_into_libs=yes
8126   ;;
8127
8128 hpux9* | hpux10* | hpux11*)
8129   # Give a soname corresponding to the major version so that dld.sl refuses to
8130   # link against other versions.
8131   version_type=sunos
8132   need_lib_prefix=no
8133   need_version=no
8134   case $host_cpu in
8135   ia64*)
8136     shrext_cmds='.so'
8137     hardcode_into_libs=yes
8138     dynamic_linker="$host_os dld.so"
8139     shlibpath_var=LD_LIBRARY_PATH
8140     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8141     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8142     soname_spec='${libname}${release}${shared_ext}$major'
8143     if test "X$HPUX_IA64_MODE" = X32; then
8144       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8145     else
8146       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8147     fi
8148     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8149     ;;
8150    hppa*64*)
8151      shrext_cmds='.sl'
8152      hardcode_into_libs=yes
8153      dynamic_linker="$host_os dld.sl"
8154      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8155      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8156      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8157      soname_spec='${libname}${release}${shared_ext}$major'
8158      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8159      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8160      ;;
8161    *)
8162     shrext_cmds='.sl'
8163     dynamic_linker="$host_os dld.sl"
8164     shlibpath_var=SHLIB_PATH
8165     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8166     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8167     soname_spec='${libname}${release}${shared_ext}$major'
8168     ;;
8169   esac
8170   # HP-UX runs *really* slowly unless shared libraries are mode 555.
8171   postinstall_cmds='chmod 555 $lib'
8172   ;;
8173
8174 interix3*)
8175   version_type=linux
8176   need_lib_prefix=no
8177   need_version=no
8178   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8179   soname_spec='${libname}${release}${shared_ext}$major'
8180   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8181   shlibpath_var=LD_LIBRARY_PATH
8182   shlibpath_overrides_runpath=no
8183   hardcode_into_libs=yes
8184   ;;
8185
8186 irix5* | irix6* | nonstopux*)
8187   case $host_os in
8188     nonstopux*) version_type=nonstopux ;;
8189     *)
8190         if test "$lt_cv_prog_gnu_ld" = yes; then
8191                 version_type=linux
8192         else
8193                 version_type=irix
8194         fi ;;
8195   esac
8196   need_lib_prefix=no
8197   need_version=no
8198   soname_spec='${libname}${release}${shared_ext}$major'
8199   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8200   case $host_os in
8201   irix5* | nonstopux*)
8202     libsuff= shlibsuff=
8203     ;;
8204   *)
8205     case $LD in # libtool.m4 will add one of these switches to LD
8206     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8207       libsuff= shlibsuff= libmagic=32-bit;;
8208     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8209       libsuff=32 shlibsuff=N32 libmagic=N32;;
8210     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8211       libsuff=64 shlibsuff=64 libmagic=64-bit;;
8212     *) libsuff= shlibsuff= libmagic=never-match;;
8213     esac
8214     ;;
8215   esac
8216   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8217   shlibpath_overrides_runpath=no
8218   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8219   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8220   hardcode_into_libs=yes
8221   ;;
8222
8223 # No shared lib support for Linux oldld, aout, or coff.
8224 linux*oldld* | linux*aout* | linux*coff*)
8225   dynamic_linker=no
8226   ;;
8227
8228 # This must be Linux ELF.
8229 linux*)
8230   version_type=linux
8231   need_lib_prefix=no
8232   need_version=no
8233   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8234   soname_spec='${libname}${release}${shared_ext}$major'
8235   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8236   shlibpath_var=LD_LIBRARY_PATH
8237   shlibpath_overrides_runpath=no
8238   # This implies no fast_install, which is unacceptable.
8239   # Some rework will be needed to allow for fast_install
8240   # before this can be enabled.
8241   hardcode_into_libs=yes
8242
8243   # Append ld.so.conf contents to the search path
8244   if test -f /etc/ld.so.conf; then
8245     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' ' '`
8246     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8247   fi
8248
8249   # We used to test for /lib/ld.so.1 and disable shared libraries on
8250   # powerpc, because MkLinux only supported shared libraries with the
8251   # GNU dynamic linker.  Since this was broken with cross compilers,
8252   # most powerpc-linux boxes support dynamic linking these days and
8253   # people can always --disable-shared, the test was removed, and we
8254   # assume the GNU/Linux dynamic linker is in use.
8255   dynamic_linker='GNU/Linux ld.so'
8256   ;;
8257
8258 knetbsd*-gnu)
8259   version_type=linux
8260   need_lib_prefix=no
8261   need_version=no
8262   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8263   soname_spec='${libname}${release}${shared_ext}$major'
8264   shlibpath_var=LD_LIBRARY_PATH
8265   shlibpath_overrides_runpath=no
8266   hardcode_into_libs=yes
8267   dynamic_linker='GNU ld.so'
8268   ;;
8269
8270 netbsd*)
8271   version_type=sunos
8272   need_lib_prefix=no
8273   need_version=no
8274   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8275     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8276     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8277     dynamic_linker='NetBSD (a.out) ld.so'
8278   else
8279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8280     soname_spec='${libname}${release}${shared_ext}$major'
8281     dynamic_linker='NetBSD ld.elf_so'
8282   fi
8283   shlibpath_var=LD_LIBRARY_PATH
8284   shlibpath_overrides_runpath=yes
8285   hardcode_into_libs=yes
8286   ;;
8287
8288 newsos6)
8289   version_type=linux
8290   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8291   shlibpath_var=LD_LIBRARY_PATH
8292   shlibpath_overrides_runpath=yes
8293   ;;
8294
8295 nto-qnx*)
8296   version_type=linux
8297   need_lib_prefix=no
8298   need_version=no
8299   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8300   soname_spec='${libname}${release}${shared_ext}$major'
8301   shlibpath_var=LD_LIBRARY_PATH
8302   shlibpath_overrides_runpath=yes
8303   ;;
8304
8305 openbsd*)
8306   version_type=sunos
8307   sys_lib_dlsearch_path_spec="/usr/lib"
8308   need_lib_prefix=no
8309   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8310   case $host_os in
8311     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8312     *)                         need_version=no  ;;
8313   esac
8314   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8315   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8316   shlibpath_var=LD_LIBRARY_PATH
8317   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8318     case $host_os in
8319       openbsd2.[89] | openbsd2.[89].*)
8320         shlibpath_overrides_runpath=no
8321         ;;
8322       *)
8323         shlibpath_overrides_runpath=yes
8324         ;;
8325       esac
8326   else
8327     shlibpath_overrides_runpath=yes
8328   fi
8329   ;;
8330
8331 os2*)
8332   libname_spec='$name'
8333   shrext_cmds=".dll"
8334   need_lib_prefix=no
8335   library_names_spec='$libname${shared_ext} $libname.a'
8336   dynamic_linker='OS/2 ld.exe'
8337   shlibpath_var=LIBPATH
8338   ;;
8339
8340 osf3* | osf4* | osf5*)
8341   version_type=osf
8342   need_lib_prefix=no
8343   need_version=no
8344   soname_spec='${libname}${release}${shared_ext}$major'
8345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8346   shlibpath_var=LD_LIBRARY_PATH
8347   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8348   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8349   ;;
8350
8351 solaris*)
8352   version_type=linux
8353   need_lib_prefix=no
8354   need_version=no
8355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8356   soname_spec='${libname}${release}${shared_ext}$major'
8357   shlibpath_var=LD_LIBRARY_PATH
8358   shlibpath_overrides_runpath=yes
8359   hardcode_into_libs=yes
8360   # ldd complains unless libraries are executable
8361   postinstall_cmds='chmod +x $lib'
8362   ;;
8363
8364 sunos4*)
8365   version_type=sunos
8366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8367   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8368   shlibpath_var=LD_LIBRARY_PATH
8369   shlibpath_overrides_runpath=yes
8370   if test "$with_gnu_ld" = yes; then
8371     need_lib_prefix=no
8372   fi
8373   need_version=yes
8374   ;;
8375
8376 sysv4 | sysv4.3*)
8377   version_type=linux
8378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8379   soname_spec='${libname}${release}${shared_ext}$major'
8380   shlibpath_var=LD_LIBRARY_PATH
8381   case $host_vendor in
8382     sni)
8383       shlibpath_overrides_runpath=no
8384       need_lib_prefix=no
8385       export_dynamic_flag_spec='${wl}-Blargedynsym'
8386       runpath_var=LD_RUN_PATH
8387       ;;
8388     siemens)
8389       need_lib_prefix=no
8390       ;;
8391     motorola)
8392       need_lib_prefix=no
8393       need_version=no
8394       shlibpath_overrides_runpath=no
8395       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8396       ;;
8397   esac
8398   ;;
8399
8400 sysv4*MP*)
8401   if test -d /usr/nec ;then
8402     version_type=linux
8403     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8404     soname_spec='$libname${shared_ext}.$major'
8405     shlibpath_var=LD_LIBRARY_PATH
8406   fi
8407   ;;
8408
8409 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8410   version_type=freebsd-elf
8411   need_lib_prefix=no
8412   need_version=no
8413   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8414   soname_spec='${libname}${release}${shared_ext}$major'
8415   shlibpath_var=LD_LIBRARY_PATH
8416   hardcode_into_libs=yes
8417   if test "$with_gnu_ld" = yes; then
8418     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8419     shlibpath_overrides_runpath=no
8420   else
8421     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8422     shlibpath_overrides_runpath=yes
8423     case $host_os in
8424       sco3.2v5*)
8425         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8426         ;;
8427     esac
8428   fi
8429   sys_lib_dlsearch_path_spec='/usr/lib'
8430   ;;
8431
8432 uts4*)
8433   version_type=linux
8434   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8435   soname_spec='${libname}${release}${shared_ext}$major'
8436   shlibpath_var=LD_LIBRARY_PATH
8437   ;;
8438
8439 *)
8440   dynamic_linker=no
8441   ;;
8442 esac
8443 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8444 echo "${ECHO_T}$dynamic_linker" >&6
8445 test "$dynamic_linker" = no && can_build_shared=no
8446
8447 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8448 if test "$GCC" = yes; then
8449   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8450 fi
8451
8452 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8453 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8454 hardcode_action=
8455 if test -n "$hardcode_libdir_flag_spec" || \
8456    test -n "$runpath_var" || \
8457    test "X$hardcode_automatic" = "Xyes" ; then
8458
8459   # We can hardcode non-existant directories.
8460   if test "$hardcode_direct" != no &&
8461      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8462      # have to relink, otherwise we might link with an installed library
8463      # when we should be linking with a yet-to-be-installed one
8464      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8465      test "$hardcode_minus_L" != no; then
8466     # Linking always hardcodes the temporary library directory.
8467     hardcode_action=relink
8468   else
8469     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8470     hardcode_action=immediate
8471   fi
8472 else
8473   # We cannot hardcode anything, or else we can only hardcode existing
8474   # directories.
8475   hardcode_action=unsupported
8476 fi
8477 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8478 echo "${ECHO_T}$hardcode_action" >&6
8479
8480 if test "$hardcode_action" = relink; then
8481   # Fast installation is not supported
8482   enable_fast_install=no
8483 elif test "$shlibpath_overrides_runpath" = yes ||
8484      test "$enable_shared" = no; then
8485   # Fast installation is not necessary
8486   enable_fast_install=needless
8487 fi
8488
8489 striplib=
8490 old_striplib=
8491 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8492 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8493 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8494   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8495   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8496   echo "$as_me:$LINENO: result: yes" >&5
8497 echo "${ECHO_T}yes" >&6
8498 else
8499 # FIXME - insert some real tests, host_os isn't really good enough
8500   case $host_os in
8501    darwin*)
8502        if test -n "$STRIP" ; then
8503          striplib="$STRIP -x"
8504          echo "$as_me:$LINENO: result: yes" >&5
8505 echo "${ECHO_T}yes" >&6
8506        else
8507   echo "$as_me:$LINENO: result: no" >&5
8508 echo "${ECHO_T}no" >&6
8509 fi
8510        ;;
8511    *)
8512   echo "$as_me:$LINENO: result: no" >&5
8513 echo "${ECHO_T}no" >&6
8514     ;;
8515   esac
8516 fi
8517
8518 if test "x$enable_dlopen" != xyes; then
8519   enable_dlopen=unknown
8520   enable_dlopen_self=unknown
8521   enable_dlopen_self_static=unknown
8522 else
8523   lt_cv_dlopen=no
8524   lt_cv_dlopen_libs=
8525
8526   case $host_os in
8527   beos*)
8528     lt_cv_dlopen="load_add_on"
8529     lt_cv_dlopen_libs=
8530     lt_cv_dlopen_self=yes
8531     ;;
8532
8533   mingw* | pw32*)
8534     lt_cv_dlopen="LoadLibrary"
8535     lt_cv_dlopen_libs=
8536    ;;
8537
8538   cygwin*)
8539     lt_cv_dlopen="dlopen"
8540     lt_cv_dlopen_libs=
8541    ;;
8542
8543   darwin*)
8544   # if libdl is installed we need to link against it
8545     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8546 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8547 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8548   echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550   ac_check_lib_save_LIBS=$LIBS
8551 LIBS="-ldl  $LIBS"
8552 cat >conftest.$ac_ext <<_ACEOF
8553 /* confdefs.h.  */
8554 _ACEOF
8555 cat confdefs.h >>conftest.$ac_ext
8556 cat >>conftest.$ac_ext <<_ACEOF
8557 /* end confdefs.h.  */
8558
8559 /* Override any gcc2 internal prototype to avoid an error.  */
8560 #ifdef __cplusplus
8561 extern "C"
8562 #endif
8563 /* We use char because int might match the return type of a gcc2
8564    builtin and then its argument prototype would still apply.  */
8565 char dlopen ();
8566 int
8567 main ()
8568 {
8569 dlopen ();
8570   ;
8571   return 0;
8572 }
8573 _ACEOF
8574 rm -f conftest.$ac_objext conftest$ac_exeext
8575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8576   (eval $ac_link) 2>conftest.er1
8577   ac_status=$?
8578   grep -v '^ *+' conftest.er1 >conftest.err
8579   rm -f conftest.er1
8580   cat conftest.err >&5
8581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8582   (exit $ac_status); } &&
8583          { ac_try='test -z "$ac_c_werror_flag"
8584                          || test ! -s conftest.err'
8585   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8586   (eval $ac_try) 2>&5
8587   ac_status=$?
8588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8589   (exit $ac_status); }; } &&
8590          { ac_try='test -s conftest$ac_exeext'
8591   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8592   (eval $ac_try) 2>&5
8593   ac_status=$?
8594   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8595   (exit $ac_status); }; }; then
8596   ac_cv_lib_dl_dlopen=yes
8597 else
8598   echo "$as_me: failed program was:" >&5
8599 sed 's/^/| /' conftest.$ac_ext >&5
8600
8601 ac_cv_lib_dl_dlopen=no
8602 fi
8603 rm -f conftest.err conftest.$ac_objext \
8604       conftest$ac_exeext conftest.$ac_ext
8605 LIBS=$ac_check_lib_save_LIBS
8606 fi
8607 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8608 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8609 if test $ac_cv_lib_dl_dlopen = yes; then
8610   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8611 else
8612
8613     lt_cv_dlopen="dyld"
8614     lt_cv_dlopen_libs=
8615     lt_cv_dlopen_self=yes
8616
8617 fi
8618
8619    ;;
8620
8621   *)
8622     echo "$as_me:$LINENO: checking for shl_load" >&5
8623 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8624 if test "${ac_cv_func_shl_load+set}" = set; then
8625   echo $ECHO_N "(cached) $ECHO_C" >&6
8626 else
8627   cat >conftest.$ac_ext <<_ACEOF
8628 /* confdefs.h.  */
8629 _ACEOF
8630 cat confdefs.h >>conftest.$ac_ext
8631 cat >>conftest.$ac_ext <<_ACEOF
8632 /* end confdefs.h.  */
8633 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8634    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8635 #define shl_load innocuous_shl_load
8636
8637 /* System header to define __stub macros and hopefully few prototypes,
8638     which can conflict with char shl_load (); below.
8639     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8640     <limits.h> exists even on freestanding compilers.  */
8641
8642 #ifdef __STDC__
8643 # include <limits.h>
8644 #else
8645 # include <assert.h>
8646 #endif
8647
8648 #undef shl_load
8649
8650 /* Override any gcc2 internal prototype to avoid an error.  */
8651 #ifdef __cplusplus
8652 extern "C"
8653 {
8654 #endif
8655 /* We use char because int might match the return type of a gcc2
8656    builtin and then its argument prototype would still apply.  */
8657 char shl_load ();
8658 /* The GNU C library defines this for functions which it implements
8659     to always fail with ENOSYS.  Some functions are actually named
8660     something starting with __ and the normal name is an alias.  */
8661 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8662 choke me
8663 #else
8664 char (*f) () = shl_load;
8665 #endif
8666 #ifdef __cplusplus
8667 }
8668 #endif
8669
8670 int
8671 main ()
8672 {
8673 return f != shl_load;
8674   ;
8675   return 0;
8676 }
8677 _ACEOF
8678 rm -f conftest.$ac_objext conftest$ac_exeext
8679 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8680   (eval $ac_link) 2>conftest.er1
8681   ac_status=$?
8682   grep -v '^ *+' conftest.er1 >conftest.err
8683   rm -f conftest.er1
8684   cat conftest.err >&5
8685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8686   (exit $ac_status); } &&
8687          { ac_try='test -z "$ac_c_werror_flag"
8688                          || test ! -s conftest.err'
8689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690   (eval $ac_try) 2>&5
8691   ac_status=$?
8692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693   (exit $ac_status); }; } &&
8694          { ac_try='test -s conftest$ac_exeext'
8695   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696   (eval $ac_try) 2>&5
8697   ac_status=$?
8698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699   (exit $ac_status); }; }; then
8700   ac_cv_func_shl_load=yes
8701 else
8702   echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_cv_func_shl_load=no
8706 fi
8707 rm -f conftest.err conftest.$ac_objext \
8708       conftest$ac_exeext conftest.$ac_ext
8709 fi
8710 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8711 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8712 if test $ac_cv_func_shl_load = yes; then
8713   lt_cv_dlopen="shl_load"
8714 else
8715   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8716 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8717 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8718   echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720   ac_check_lib_save_LIBS=$LIBS
8721 LIBS="-ldld  $LIBS"
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h.  */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h.  */
8728
8729 /* Override any gcc2 internal prototype to avoid an error.  */
8730 #ifdef __cplusplus
8731 extern "C"
8732 #endif
8733 /* We use char because int might match the return type of a gcc2
8734    builtin and then its argument prototype would still apply.  */
8735 char shl_load ();
8736 int
8737 main ()
8738 {
8739 shl_load ();
8740   ;
8741   return 0;
8742 }
8743 _ACEOF
8744 rm -f conftest.$ac_objext conftest$ac_exeext
8745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8746   (eval $ac_link) 2>conftest.er1
8747   ac_status=$?
8748   grep -v '^ *+' conftest.er1 >conftest.err
8749   rm -f conftest.er1
8750   cat conftest.err >&5
8751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752   (exit $ac_status); } &&
8753          { ac_try='test -z "$ac_c_werror_flag"
8754                          || test ! -s conftest.err'
8755   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8756   (eval $ac_try) 2>&5
8757   ac_status=$?
8758   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759   (exit $ac_status); }; } &&
8760          { ac_try='test -s conftest$ac_exeext'
8761   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8762   (eval $ac_try) 2>&5
8763   ac_status=$?
8764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8765   (exit $ac_status); }; }; then
8766   ac_cv_lib_dld_shl_load=yes
8767 else
8768   echo "$as_me: failed program was:" >&5
8769 sed 's/^/| /' conftest.$ac_ext >&5
8770
8771 ac_cv_lib_dld_shl_load=no
8772 fi
8773 rm -f conftest.err conftest.$ac_objext \
8774       conftest$ac_exeext conftest.$ac_ext
8775 LIBS=$ac_check_lib_save_LIBS
8776 fi
8777 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8778 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8779 if test $ac_cv_lib_dld_shl_load = yes; then
8780   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8781 else
8782   echo "$as_me:$LINENO: checking for dlopen" >&5
8783 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8784 if test "${ac_cv_func_dlopen+set}" = set; then
8785   echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787   cat >conftest.$ac_ext <<_ACEOF
8788 /* confdefs.h.  */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h.  */
8793 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8795 #define dlopen innocuous_dlopen
8796
8797 /* System header to define __stub macros and hopefully few prototypes,
8798     which can conflict with char dlopen (); below.
8799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8800     <limits.h> exists even on freestanding compilers.  */
8801
8802 #ifdef __STDC__
8803 # include <limits.h>
8804 #else
8805 # include <assert.h>
8806 #endif
8807
8808 #undef dlopen
8809
8810 /* Override any gcc2 internal prototype to avoid an error.  */
8811 #ifdef __cplusplus
8812 extern "C"
8813 {
8814 #endif
8815 /* We use char because int might match the return type of a gcc2
8816    builtin and then its argument prototype would still apply.  */
8817 char dlopen ();
8818 /* The GNU C library defines this for functions which it implements
8819     to always fail with ENOSYS.  Some functions are actually named
8820     something starting with __ and the normal name is an alias.  */
8821 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8822 choke me
8823 #else
8824 char (*f) () = dlopen;
8825 #endif
8826 #ifdef __cplusplus
8827 }
8828 #endif
8829
8830 int
8831 main ()
8832 {
8833 return f != dlopen;
8834   ;
8835   return 0;
8836 }
8837 _ACEOF
8838 rm -f conftest.$ac_objext conftest$ac_exeext
8839 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8840   (eval $ac_link) 2>conftest.er1
8841   ac_status=$?
8842   grep -v '^ *+' conftest.er1 >conftest.err
8843   rm -f conftest.er1
8844   cat conftest.err >&5
8845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8846   (exit $ac_status); } &&
8847          { ac_try='test -z "$ac_c_werror_flag"
8848                          || test ! -s conftest.err'
8849   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8850   (eval $ac_try) 2>&5
8851   ac_status=$?
8852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853   (exit $ac_status); }; } &&
8854          { ac_try='test -s conftest$ac_exeext'
8855   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8856   (eval $ac_try) 2>&5
8857   ac_status=$?
8858   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859   (exit $ac_status); }; }; then
8860   ac_cv_func_dlopen=yes
8861 else
8862   echo "$as_me: failed program was:" >&5
8863 sed 's/^/| /' conftest.$ac_ext >&5
8864
8865 ac_cv_func_dlopen=no
8866 fi
8867 rm -f conftest.err conftest.$ac_objext \
8868       conftest$ac_exeext conftest.$ac_ext
8869 fi
8870 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8871 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8872 if test $ac_cv_func_dlopen = yes; then
8873   lt_cv_dlopen="dlopen"
8874 else
8875   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8876 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8877 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8878   echo $ECHO_N "(cached) $ECHO_C" >&6
8879 else
8880   ac_check_lib_save_LIBS=$LIBS
8881 LIBS="-ldl  $LIBS"
8882 cat >conftest.$ac_ext <<_ACEOF
8883 /* confdefs.h.  */
8884 _ACEOF
8885 cat confdefs.h >>conftest.$ac_ext
8886 cat >>conftest.$ac_ext <<_ACEOF
8887 /* end confdefs.h.  */
8888
8889 /* Override any gcc2 internal prototype to avoid an error.  */
8890 #ifdef __cplusplus
8891 extern "C"
8892 #endif
8893 /* We use char because int might match the return type of a gcc2
8894    builtin and then its argument prototype would still apply.  */
8895 char dlopen ();
8896 int
8897 main ()
8898 {
8899 dlopen ();
8900   ;
8901   return 0;
8902 }
8903 _ACEOF
8904 rm -f conftest.$ac_objext conftest$ac_exeext
8905 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8906   (eval $ac_link) 2>conftest.er1
8907   ac_status=$?
8908   grep -v '^ *+' conftest.er1 >conftest.err
8909   rm -f conftest.er1
8910   cat conftest.err >&5
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); } &&
8913          { ac_try='test -z "$ac_c_werror_flag"
8914                          || test ! -s conftest.err'
8915   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8916   (eval $ac_try) 2>&5
8917   ac_status=$?
8918   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8919   (exit $ac_status); }; } &&
8920          { ac_try='test -s conftest$ac_exeext'
8921   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8922   (eval $ac_try) 2>&5
8923   ac_status=$?
8924   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8925   (exit $ac_status); }; }; then
8926   ac_cv_lib_dl_dlopen=yes
8927 else
8928   echo "$as_me: failed program was:" >&5
8929 sed 's/^/| /' conftest.$ac_ext >&5
8930
8931 ac_cv_lib_dl_dlopen=no
8932 fi
8933 rm -f conftest.err conftest.$ac_objext \
8934       conftest$ac_exeext conftest.$ac_ext
8935 LIBS=$ac_check_lib_save_LIBS
8936 fi
8937 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8938 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8939 if test $ac_cv_lib_dl_dlopen = yes; then
8940   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8941 else
8942   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8943 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8944 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8945   echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947   ac_check_lib_save_LIBS=$LIBS
8948 LIBS="-lsvld  $LIBS"
8949 cat >conftest.$ac_ext <<_ACEOF
8950 /* confdefs.h.  */
8951 _ACEOF
8952 cat confdefs.h >>conftest.$ac_ext
8953 cat >>conftest.$ac_ext <<_ACEOF
8954 /* end confdefs.h.  */
8955
8956 /* Override any gcc2 internal prototype to avoid an error.  */
8957 #ifdef __cplusplus
8958 extern "C"
8959 #endif
8960 /* We use char because int might match the return type of a gcc2
8961    builtin and then its argument prototype would still apply.  */
8962 char dlopen ();
8963 int
8964 main ()
8965 {
8966 dlopen ();
8967   ;
8968   return 0;
8969 }
8970 _ACEOF
8971 rm -f conftest.$ac_objext conftest$ac_exeext
8972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8973   (eval $ac_link) 2>conftest.er1
8974   ac_status=$?
8975   grep -v '^ *+' conftest.er1 >conftest.err
8976   rm -f conftest.er1
8977   cat conftest.err >&5
8978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979   (exit $ac_status); } &&
8980          { ac_try='test -z "$ac_c_werror_flag"
8981                          || test ! -s conftest.err'
8982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983   (eval $ac_try) 2>&5
8984   ac_status=$?
8985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986   (exit $ac_status); }; } &&
8987          { ac_try='test -s conftest$ac_exeext'
8988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8989   (eval $ac_try) 2>&5
8990   ac_status=$?
8991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8992   (exit $ac_status); }; }; then
8993   ac_cv_lib_svld_dlopen=yes
8994 else
8995   echo "$as_me: failed program was:" >&5
8996 sed 's/^/| /' conftest.$ac_ext >&5
8997
8998 ac_cv_lib_svld_dlopen=no
8999 fi
9000 rm -f conftest.err conftest.$ac_objext \
9001       conftest$ac_exeext conftest.$ac_ext
9002 LIBS=$ac_check_lib_save_LIBS
9003 fi
9004 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9005 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9006 if test $ac_cv_lib_svld_dlopen = yes; then
9007   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9008 else
9009   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9010 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9011 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9012   echo $ECHO_N "(cached) $ECHO_C" >&6
9013 else
9014   ac_check_lib_save_LIBS=$LIBS
9015 LIBS="-ldld  $LIBS"
9016 cat >conftest.$ac_ext <<_ACEOF
9017 /* confdefs.h.  */
9018 _ACEOF
9019 cat confdefs.h >>conftest.$ac_ext
9020 cat >>conftest.$ac_ext <<_ACEOF
9021 /* end confdefs.h.  */
9022
9023 /* Override any gcc2 internal prototype to avoid an error.  */
9024 #ifdef __cplusplus
9025 extern "C"
9026 #endif
9027 /* We use char because int might match the return type of a gcc2
9028    builtin and then its argument prototype would still apply.  */
9029 char dld_link ();
9030 int
9031 main ()
9032 {
9033 dld_link ();
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9040   (eval $ac_link) 2>conftest.er1
9041   ac_status=$?
9042   grep -v '^ *+' conftest.er1 >conftest.err
9043   rm -f conftest.er1
9044   cat conftest.err >&5
9045   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046   (exit $ac_status); } &&
9047          { ac_try='test -z "$ac_c_werror_flag"
9048                          || test ! -s conftest.err'
9049   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050   (eval $ac_try) 2>&5
9051   ac_status=$?
9052   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053   (exit $ac_status); }; } &&
9054          { ac_try='test -s conftest$ac_exeext'
9055   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9056   (eval $ac_try) 2>&5
9057   ac_status=$?
9058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059   (exit $ac_status); }; }; then
9060   ac_cv_lib_dld_dld_link=yes
9061 else
9062   echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9064
9065 ac_cv_lib_dld_dld_link=no
9066 fi
9067 rm -f conftest.err conftest.$ac_objext \
9068       conftest$ac_exeext conftest.$ac_ext
9069 LIBS=$ac_check_lib_save_LIBS
9070 fi
9071 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9072 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9073 if test $ac_cv_lib_dld_dld_link = yes; then
9074   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9075 fi
9076
9077
9078 fi
9079
9080
9081 fi
9082
9083
9084 fi
9085
9086
9087 fi
9088
9089
9090 fi
9091
9092     ;;
9093   esac
9094
9095   if test "x$lt_cv_dlopen" != xno; then
9096     enable_dlopen=yes
9097   else
9098     enable_dlopen=no
9099   fi
9100
9101   case $lt_cv_dlopen in
9102   dlopen)
9103     save_CPPFLAGS="$CPPFLAGS"
9104     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9105
9106     save_LDFLAGS="$LDFLAGS"
9107     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9108
9109     save_LIBS="$LIBS"
9110     LIBS="$lt_cv_dlopen_libs $LIBS"
9111
9112     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9113 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9114 if test "${lt_cv_dlopen_self+set}" = set; then
9115   echo $ECHO_N "(cached) $ECHO_C" >&6
9116 else
9117           if test "$cross_compiling" = yes; then :
9118   lt_cv_dlopen_self=cross
9119 else
9120   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9121   lt_status=$lt_dlunknown
9122   cat > conftest.$ac_ext <<EOF
9123 #line 9123 "configure"
9124 #include "confdefs.h"
9125
9126 #if HAVE_DLFCN_H
9127 #include <dlfcn.h>
9128 #endif
9129
9130 #include <stdio.h>
9131
9132 #ifdef RTLD_GLOBAL
9133 #  define LT_DLGLOBAL           RTLD_GLOBAL
9134 #else
9135 #  ifdef DL_GLOBAL
9136 #    define LT_DLGLOBAL         DL_GLOBAL
9137 #  else
9138 #    define LT_DLGLOBAL         0
9139 #  endif
9140 #endif
9141
9142 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9143    find out it does not work in some platform. */
9144 #ifndef LT_DLLAZY_OR_NOW
9145 #  ifdef RTLD_LAZY
9146 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9147 #  else
9148 #    ifdef DL_LAZY
9149 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9150 #    else
9151 #      ifdef RTLD_NOW
9152 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9153 #      else
9154 #        ifdef DL_NOW
9155 #          define LT_DLLAZY_OR_NOW      DL_NOW
9156 #        else
9157 #          define LT_DLLAZY_OR_NOW      0
9158 #        endif
9159 #      endif
9160 #    endif
9161 #  endif
9162 #endif
9163
9164 #ifdef __cplusplus
9165 extern "C" void exit (int);
9166 #endif
9167
9168 void fnord() { int i=42;}
9169 int main ()
9170 {
9171   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9172   int status = $lt_dlunknown;
9173
9174   if (self)
9175     {
9176       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9177       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9178       /* dlclose (self); */
9179     }
9180   else
9181     puts (dlerror ());
9182
9183     exit (status);
9184 }
9185 EOF
9186   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9187   (eval $ac_link) 2>&5
9188   ac_status=$?
9189   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9190   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9191     (./conftest; exit; ) >&5 2>/dev/null
9192     lt_status=$?
9193     case x$lt_status in
9194       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9195       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9196       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9197     esac
9198   else :
9199     # compilation failed
9200     lt_cv_dlopen_self=no
9201   fi
9202 fi
9203 rm -fr conftest*
9204
9205
9206 fi
9207 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9208 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9209
9210     if test "x$lt_cv_dlopen_self" = xyes; then
9211       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9212       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9213 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9214 if test "${lt_cv_dlopen_self_static+set}" = set; then
9215   echo $ECHO_N "(cached) $ECHO_C" >&6
9216 else
9217           if test "$cross_compiling" = yes; then :
9218   lt_cv_dlopen_self_static=cross
9219 else
9220   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9221   lt_status=$lt_dlunknown
9222   cat > conftest.$ac_ext <<EOF
9223 #line 9223 "configure"
9224 #include "confdefs.h"
9225
9226 #if HAVE_DLFCN_H
9227 #include <dlfcn.h>
9228 #endif
9229
9230 #include <stdio.h>
9231
9232 #ifdef RTLD_GLOBAL
9233 #  define LT_DLGLOBAL           RTLD_GLOBAL
9234 #else
9235 #  ifdef DL_GLOBAL
9236 #    define LT_DLGLOBAL         DL_GLOBAL
9237 #  else
9238 #    define LT_DLGLOBAL         0
9239 #  endif
9240 #endif
9241
9242 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9243    find out it does not work in some platform. */
9244 #ifndef LT_DLLAZY_OR_NOW
9245 #  ifdef RTLD_LAZY
9246 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9247 #  else
9248 #    ifdef DL_LAZY
9249 #      define LT_DLLAZY_OR_NOW          DL_LAZY
9250 #    else
9251 #      ifdef RTLD_NOW
9252 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
9253 #      else
9254 #        ifdef DL_NOW
9255 #          define LT_DLLAZY_OR_NOW      DL_NOW
9256 #        else
9257 #          define LT_DLLAZY_OR_NOW      0
9258 #        endif
9259 #      endif
9260 #    endif
9261 #  endif
9262 #endif
9263
9264 #ifdef __cplusplus
9265 extern "C" void exit (int);
9266 #endif
9267
9268 void fnord() { int i=42;}
9269 int main ()
9270 {
9271   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9272   int status = $lt_dlunknown;
9273
9274   if (self)
9275     {
9276       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9277       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9278       /* dlclose (self); */
9279     }
9280   else
9281     puts (dlerror ());
9282
9283     exit (status);
9284 }
9285 EOF
9286   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9287   (eval $ac_link) 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9291     (./conftest; exit; ) >&5 2>/dev/null
9292     lt_status=$?
9293     case x$lt_status in
9294       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9295       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9296       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9297     esac
9298   else :
9299     # compilation failed
9300     lt_cv_dlopen_self_static=no
9301   fi
9302 fi
9303 rm -fr conftest*
9304
9305
9306 fi
9307 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9308 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9309     fi
9310
9311     CPPFLAGS="$save_CPPFLAGS"
9312     LDFLAGS="$save_LDFLAGS"
9313     LIBS="$save_LIBS"
9314     ;;
9315   esac
9316
9317   case $lt_cv_dlopen_self in
9318   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9319   *) enable_dlopen_self=unknown ;;
9320   esac
9321
9322   case $lt_cv_dlopen_self_static in
9323   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9324   *) enable_dlopen_self_static=unknown ;;
9325   esac
9326 fi
9327
9328
9329 # Report which library types will actually be built
9330 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9331 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9332 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9333 echo "${ECHO_T}$can_build_shared" >&6
9334
9335 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9336 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9337 test "$can_build_shared" = "no" && enable_shared=no
9338
9339 # On AIX, shared libraries and static libraries use the same namespace, and
9340 # are all built from PIC.
9341 case $host_os in
9342 aix3*)
9343   test "$enable_shared" = yes && enable_static=no
9344   if test -n "$RANLIB"; then
9345     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9346     postinstall_cmds='$RANLIB $lib'
9347   fi
9348   ;;
9349
9350 aix4* | aix5*)
9351   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9352     test "$enable_shared" = yes && enable_static=no
9353   fi
9354     ;;
9355 esac
9356 echo "$as_me:$LINENO: result: $enable_shared" >&5
9357 echo "${ECHO_T}$enable_shared" >&6
9358
9359 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9360 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9361 # Make sure either enable_shared or enable_static is yes.
9362 test "$enable_shared" = yes || enable_static=yes
9363 echo "$as_me:$LINENO: result: $enable_static" >&5
9364 echo "${ECHO_T}$enable_static" >&6
9365
9366 # The else clause should only fire when bootstrapping the
9367 # libtool distribution, otherwise you forgot to ship ltmain.sh
9368 # with your package, and you will get complaints that there are
9369 # no rules to generate ltmain.sh.
9370 if test -f "$ltmain"; then
9371   # See if we are running on zsh, and set the options which allow our commands through
9372   # without removal of \ escapes.
9373   if test -n "${ZSH_VERSION+set}" ; then
9374     setopt NO_GLOB_SUBST
9375   fi
9376   # Now quote all the things that may contain metacharacters while being
9377   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9378   # variables and quote the copies for generation of the libtool script.
9379   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9380     SED SHELL STRIP \
9381     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9382     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9383     deplibs_check_method reload_flag reload_cmds need_locks \
9384     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9385     lt_cv_sys_global_symbol_to_c_name_address \
9386     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9387     old_postinstall_cmds old_postuninstall_cmds \
9388     compiler \
9389     CC \
9390     LD \
9391     lt_prog_compiler_wl \
9392     lt_prog_compiler_pic \
9393     lt_prog_compiler_static \
9394     lt_prog_compiler_no_builtin_flag \
9395     export_dynamic_flag_spec \
9396     thread_safe_flag_spec \
9397     whole_archive_flag_spec \
9398     enable_shared_with_static_runtimes \
9399     old_archive_cmds \
9400     old_archive_from_new_cmds \
9401     predep_objects \
9402     postdep_objects \
9403     predeps \
9404     postdeps \
9405     compiler_lib_search_path \
9406     archive_cmds \
9407     archive_expsym_cmds \
9408     postinstall_cmds \
9409     postuninstall_cmds \
9410     old_archive_from_expsyms_cmds \
9411     allow_undefined_flag \
9412     no_undefined_flag \
9413     export_symbols_cmds \
9414     hardcode_libdir_flag_spec \
9415     hardcode_libdir_flag_spec_ld \
9416     hardcode_libdir_separator \
9417     hardcode_automatic \
9418     module_cmds \
9419     module_expsym_cmds \
9420     lt_cv_prog_compiler_c_o \
9421     exclude_expsyms \
9422     include_expsyms; do
9423
9424     case $var in
9425     old_archive_cmds | \
9426     old_archive_from_new_cmds | \
9427     archive_cmds | \
9428     archive_expsym_cmds | \
9429     module_cmds | \
9430     module_expsym_cmds | \
9431     old_archive_from_expsyms_cmds | \
9432     export_symbols_cmds | \
9433     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9434     postinstall_cmds | postuninstall_cmds | \
9435     old_postinstall_cmds | old_postuninstall_cmds | \
9436     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9437       # Double-quote double-evaled strings.
9438       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9439       ;;
9440     *)
9441       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9442       ;;
9443     esac
9444   done
9445
9446   case $lt_echo in
9447   *'\$0 --fallback-echo"')
9448     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9449     ;;
9450   esac
9451
9452 cfgfile="${ofile}T"
9453   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9454   $rm -f "$cfgfile"
9455   { echo "$as_me:$LINENO: creating $ofile" >&5
9456 echo "$as_me: creating $ofile" >&6;}
9457
9458   cat <<__EOF__ >> "$cfgfile"
9459 #! $SHELL
9460
9461 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9462 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9463 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9464 #
9465 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9466 # Free Software Foundation, Inc.
9467 #
9468 # This file is part of GNU Libtool:
9469 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9470 #
9471 # This program is free software; you can redistribute it and/or modify
9472 # it under the terms of the GNU General Public License as published by
9473 # the Free Software Foundation; either version 2 of the License, or
9474 # (at your option) any later version.
9475 #
9476 # This program is distributed in the hope that it will be useful, but
9477 # WITHOUT ANY WARRANTY; without even the implied warranty of
9478 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9479 # General Public License for more details.
9480 #
9481 # You should have received a copy of the GNU General Public License
9482 # along with this program; if not, write to the Free Software
9483 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9484 #
9485 # As a special exception to the GNU General Public License, if you
9486 # distribute this file as part of a program that contains a
9487 # configuration script generated by Autoconf, you may include it under
9488 # the same distribution terms that you use for the rest of that program.
9489
9490 # A sed program that does not truncate output.
9491 SED=$lt_SED
9492
9493 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9494 Xsed="$SED -e 1s/^X//"
9495
9496 # The HP-UX ksh and POSIX shell print the target directory to stdout
9497 # if CDPATH is set.
9498 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9499
9500 # The names of the tagged configurations supported by this script.
9501 available_tags=
9502
9503 # ### BEGIN LIBTOOL CONFIG
9504
9505 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9506
9507 # Shell to use when invoking shell scripts.
9508 SHELL=$lt_SHELL
9509
9510 # Whether or not to build shared libraries.
9511 build_libtool_libs=$enable_shared
9512
9513 # Whether or not to build static libraries.
9514 build_old_libs=$enable_static
9515
9516 # Whether or not to add -lc for building shared libraries.
9517 build_libtool_need_lc=$archive_cmds_need_lc
9518
9519 # Whether or not to disallow shared libs when runtime libs are static
9520 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9521
9522 # Whether or not to optimize for fast installation.
9523 fast_install=$enable_fast_install
9524
9525 # The host system.
9526 host_alias=$host_alias
9527 host=$host
9528 host_os=$host_os
9529
9530 # The build system.
9531 build_alias=$build_alias
9532 build=$build
9533 build_os=$build_os
9534
9535 # An echo program that does not interpret backslashes.
9536 echo=$lt_echo
9537
9538 # The archiver.
9539 AR=$lt_AR
9540 AR_FLAGS=$lt_AR_FLAGS
9541
9542 # A C compiler.
9543 LTCC=$lt_LTCC
9544
9545 # LTCC compiler flags.
9546 LTCFLAGS=$lt_LTCFLAGS
9547
9548 # A language-specific compiler.
9549 CC=$lt_compiler
9550
9551 # Is the compiler the GNU C compiler?
9552 with_gcc=$GCC
9553
9554 # An ERE matcher.
9555 EGREP=$lt_EGREP
9556
9557 # The linker used to build libraries.
9558 LD=$lt_LD
9559
9560 # Whether we need hard or soft links.
9561 LN_S=$lt_LN_S
9562
9563 # A BSD-compatible nm program.
9564 NM=$lt_NM
9565
9566 # A symbol stripping program
9567 STRIP=$lt_STRIP
9568
9569 # Used to examine libraries when file_magic_cmd begins "file"
9570 MAGIC_CMD=$MAGIC_CMD
9571
9572 # Used on cygwin: DLL creation program.
9573 DLLTOOL="$DLLTOOL"
9574
9575 # Used on cygwin: object dumper.
9576 OBJDUMP="$OBJDUMP"
9577
9578 # Used on cygwin: assembler.
9579 AS="$AS"
9580
9581 # The name of the directory that contains temporary libtool files.
9582 objdir=$objdir
9583
9584 # How to create reloadable object files.
9585 reload_flag=$lt_reload_flag
9586 reload_cmds=$lt_reload_cmds
9587
9588 # How to pass a linker flag through the compiler.
9589 wl=$lt_lt_prog_compiler_wl
9590
9591 # Object file suffix (normally "o").
9592 objext="$ac_objext"
9593
9594 # Old archive suffix (normally "a").
9595 libext="$libext"
9596
9597 # Shared library suffix (normally ".so").
9598 shrext_cmds='$shrext_cmds'
9599
9600 # Executable file suffix (normally "").
9601 exeext="$exeext"
9602
9603 # Additional compiler flags for building library objects.
9604 pic_flag=$lt_lt_prog_compiler_pic
9605 pic_mode=$pic_mode
9606
9607 # What is the maximum length of a command?
9608 max_cmd_len=$lt_cv_sys_max_cmd_len
9609
9610 # Does compiler simultaneously support -c and -o options?
9611 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9612
9613 # Must we lock files when doing compilation?
9614 need_locks=$lt_need_locks
9615
9616 # Do we need the lib prefix for modules?
9617 need_lib_prefix=$need_lib_prefix
9618
9619 # Do we need a version for libraries?
9620 need_version=$need_version
9621
9622 # Whether dlopen is supported.
9623 dlopen_support=$enable_dlopen
9624
9625 # Whether dlopen of programs is supported.
9626 dlopen_self=$enable_dlopen_self
9627
9628 # Whether dlopen of statically linked programs is supported.
9629 dlopen_self_static=$enable_dlopen_self_static
9630
9631 # Compiler flag to prevent dynamic linking.
9632 link_static_flag=$lt_lt_prog_compiler_static
9633
9634 # Compiler flag to turn off builtin functions.
9635 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9636
9637 # Compiler flag to allow reflexive dlopens.
9638 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9639
9640 # Compiler flag to generate shared objects directly from archives.
9641 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9642
9643 # Compiler flag to generate thread-safe objects.
9644 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9645
9646 # Library versioning type.
9647 version_type=$version_type
9648
9649 # Format of library name prefix.
9650 libname_spec=$lt_libname_spec
9651
9652 # List of archive names.  First name is the real one, the rest are links.
9653 # The last name is the one that the linker finds with -lNAME.
9654 library_names_spec=$lt_library_names_spec
9655
9656 # The coded name of the library, if different from the real name.
9657 soname_spec=$lt_soname_spec
9658
9659 # Commands used to build and install an old-style archive.
9660 RANLIB=$lt_RANLIB
9661 old_archive_cmds=$lt_old_archive_cmds
9662 old_postinstall_cmds=$lt_old_postinstall_cmds
9663 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9664
9665 # Create an old-style archive from a shared archive.
9666 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9667
9668 # Create a temporary old-style archive to link instead of a shared archive.
9669 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9670
9671 # Commands used to build and install a shared archive.
9672 archive_cmds=$lt_archive_cmds
9673 archive_expsym_cmds=$lt_archive_expsym_cmds
9674 postinstall_cmds=$lt_postinstall_cmds
9675 postuninstall_cmds=$lt_postuninstall_cmds
9676
9677 # Commands used to build a loadable module (assumed same as above if empty)
9678 module_cmds=$lt_module_cmds
9679 module_expsym_cmds=$lt_module_expsym_cmds
9680
9681 # Commands to strip libraries.
9682 old_striplib=$lt_old_striplib
9683 striplib=$lt_striplib
9684
9685 # Dependencies to place before the objects being linked to create a
9686 # shared library.
9687 predep_objects=$lt_predep_objects
9688
9689 # Dependencies to place after the objects being linked to create a
9690 # shared library.
9691 postdep_objects=$lt_postdep_objects
9692
9693 # Dependencies to place before the objects being linked to create a
9694 # shared library.
9695 predeps=$lt_predeps
9696
9697 # Dependencies to place after the objects being linked to create a
9698 # shared library.
9699 postdeps=$lt_postdeps
9700
9701 # The library search path used internally by the compiler when linking
9702 # a shared library.
9703 compiler_lib_search_path=$lt_compiler_lib_search_path
9704
9705 # Method to check whether dependent libraries are shared objects.
9706 deplibs_check_method=$lt_deplibs_check_method
9707
9708 # Command to use when deplibs_check_method == file_magic.
9709 file_magic_cmd=$lt_file_magic_cmd
9710
9711 # Flag that allows shared libraries with undefined symbols to be built.
9712 allow_undefined_flag=$lt_allow_undefined_flag
9713
9714 # Flag that forces no undefined symbols.
9715 no_undefined_flag=$lt_no_undefined_flag
9716
9717 # Commands used to finish a libtool library installation in a directory.
9718 finish_cmds=$lt_finish_cmds
9719
9720 # Same as above, but a single script fragment to be evaled but not shown.
9721 finish_eval=$lt_finish_eval
9722
9723 # Take the output of nm and produce a listing of raw symbols and C names.
9724 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9725
9726 # Transform the output of nm in a proper C declaration
9727 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9728
9729 # Transform the output of nm in a C name address pair
9730 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9731
9732 # This is the shared library runtime path variable.
9733 runpath_var=$runpath_var
9734
9735 # This is the shared library path variable.
9736 shlibpath_var=$shlibpath_var
9737
9738 # Is shlibpath searched before the hard-coded library search path?
9739 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9740
9741 # How to hardcode a shared library path into an executable.
9742 hardcode_action=$hardcode_action
9743
9744 # Whether we should hardcode library paths into libraries.
9745 hardcode_into_libs=$hardcode_into_libs
9746
9747 # Flag to hardcode \$libdir into a binary during linking.
9748 # This must work even if \$libdir does not exist.
9749 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9750
9751 # If ld is used when linking, flag to hardcode \$libdir into
9752 # a binary during linking. This must work even if \$libdir does
9753 # not exist.
9754 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9755
9756 # Whether we need a single -rpath flag with a separated argument.
9757 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9758
9759 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9760 # resulting binary.
9761 hardcode_direct=$hardcode_direct
9762
9763 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9764 # resulting binary.
9765 hardcode_minus_L=$hardcode_minus_L
9766
9767 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9768 # the resulting binary.
9769 hardcode_shlibpath_var=$hardcode_shlibpath_var
9770
9771 # Set to yes if building a shared library automatically hardcodes DIR into the library
9772 # and all subsequent libraries and executables linked against it.
9773 hardcode_automatic=$hardcode_automatic
9774
9775 # Variables whose values should be saved in libtool wrapper scripts and
9776 # restored at relink time.
9777 variables_saved_for_relink="$variables_saved_for_relink"
9778
9779 # Whether libtool must link a program against all its dependency libraries.
9780 link_all_deplibs=$link_all_deplibs
9781
9782 # Compile-time system search path for libraries
9783 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9784
9785 # Run-time system search path for libraries
9786 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9787
9788 # Fix the shell variable \$srcfile for the compiler.
9789 fix_srcfile_path="$fix_srcfile_path"
9790
9791 # Set to yes if exported symbols are required.
9792 always_export_symbols=$always_export_symbols
9793
9794 # The commands to list exported symbols.
9795 export_symbols_cmds=$lt_export_symbols_cmds
9796
9797 # The commands to extract the exported symbol list from a shared archive.
9798 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9799
9800 # Symbols that should not be listed in the preloaded symbols.
9801 exclude_expsyms=$lt_exclude_expsyms
9802
9803 # Symbols that must always be exported.
9804 include_expsyms=$lt_include_expsyms
9805
9806 # ### END LIBTOOL CONFIG
9807
9808 __EOF__
9809
9810
9811   case $host_os in
9812   aix3*)
9813     cat <<\EOF >> "$cfgfile"
9814
9815 # AIX sometimes has problems with the GCC collect2 program.  For some
9816 # reason, if we set the COLLECT_NAMES environment variable, the problems
9817 # vanish in a puff of smoke.
9818 if test "X${COLLECT_NAMES+set}" != Xset; then
9819   COLLECT_NAMES=
9820   export COLLECT_NAMES
9821 fi
9822 EOF
9823     ;;
9824   esac
9825
9826   # We use sed instead of cat because bash on DJGPP gets confused if
9827   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9828   # text mode, it properly converts lines to CR/LF.  This bash problem
9829   # is reportedly fixed, but why not run on old versions too?
9830   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9831
9832   mv -f "$cfgfile" "$ofile" || \
9833     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9834   chmod +x "$ofile"
9835
9836 else
9837   # If there is no Makefile yet, we rely on a make rule to execute
9838   # `config.status --recheck' to rerun these tests and create the
9839   # libtool script then.
9840   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9841   if test -f "$ltmain_in"; then
9842     test -f Makefile && make "$ltmain"
9843   fi
9844 fi
9845
9846
9847 ac_ext=c
9848 ac_cpp='$CPP $CPPFLAGS'
9849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9852
9853 CC="$lt_save_CC"
9854
9855
9856 # Check whether --with-tags or --without-tags was given.
9857 if test "${with_tags+set}" = set; then
9858   withval="$with_tags"
9859   tagnames="$withval"
9860 fi;
9861
9862 if test -f "$ltmain" && test -n "$tagnames"; then
9863   if test ! -f "${ofile}"; then
9864     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9865 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9866   fi
9867
9868   if test -z "$LTCC"; then
9869     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9870     if test -z "$LTCC"; then
9871       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9872 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9873     else
9874       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9875 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9876     fi
9877   fi
9878   if test -z "$LTCFLAGS"; then
9879     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
9880   fi
9881
9882   # Extract list of available tagged configurations in $ofile.
9883   # Note that this assumes the entire list is on one line.
9884   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9885
9886   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9887   for tagname in $tagnames; do
9888     IFS="$lt_save_ifs"
9889     # Check whether tagname contains only valid characters
9890     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9891     "") ;;
9892     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9893 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9894    { (exit 1); exit 1; }; }
9895         ;;
9896     esac
9897
9898     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9899     then
9900       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9901 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9902    { (exit 1); exit 1; }; }
9903     fi
9904
9905     # Update the list of available tags.
9906     if test -n "$tagname"; then
9907       echo appending configuration tag \"$tagname\" to $ofile
9908
9909       case $tagname in
9910       CXX)
9911         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
9912             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
9913             (test "X$CXX" != "Xg++"))) ; then
9914           ac_ext=cc
9915 ac_cpp='$CXXCPP $CPPFLAGS'
9916 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9917 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9918 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9919
9920
9921
9922
9923 archive_cmds_need_lc_CXX=no
9924 allow_undefined_flag_CXX=
9925 always_export_symbols_CXX=no
9926 archive_expsym_cmds_CXX=
9927 export_dynamic_flag_spec_CXX=
9928 hardcode_direct_CXX=no
9929 hardcode_libdir_flag_spec_CXX=
9930 hardcode_libdir_flag_spec_ld_CXX=
9931 hardcode_libdir_separator_CXX=
9932 hardcode_minus_L_CXX=no
9933 hardcode_shlibpath_var_CXX=unsupported
9934 hardcode_automatic_CXX=no
9935 module_cmds_CXX=
9936 module_expsym_cmds_CXX=
9937 link_all_deplibs_CXX=unknown
9938 old_archive_cmds_CXX=$old_archive_cmds
9939 no_undefined_flag_CXX=
9940 whole_archive_flag_spec_CXX=
9941 enable_shared_with_static_runtimes_CXX=no
9942
9943 # Dependencies to place before and after the object being linked:
9944 predep_objects_CXX=
9945 postdep_objects_CXX=
9946 predeps_CXX=
9947 postdeps_CXX=
9948 compiler_lib_search_path_CXX=
9949
9950 # Source file extension for C++ test sources.
9951 ac_ext=cpp
9952
9953 # Object file extension for compiled C++ test sources.
9954 objext=o
9955 objext_CXX=$objext
9956
9957 # Code to be used in simple compile tests
9958 lt_simple_compile_test_code="int some_variable = 0;\n"
9959
9960 # Code to be used in simple link tests
9961 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
9962
9963 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9964
9965 # If no C compiler was specified, use CC.
9966 LTCC=${LTCC-"$CC"}
9967
9968 # If no C compiler flags were specified, use CFLAGS.
9969 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9970
9971 # Allow CC to be a program name with arguments.
9972 compiler=$CC
9973
9974
9975 # save warnings/boilerplate of simple test code
9976 ac_outfile=conftest.$ac_objext
9977 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
9978 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9979 _lt_compiler_boilerplate=`cat conftest.err`
9980 $rm conftest*
9981
9982 ac_outfile=conftest.$ac_objext
9983 printf "$lt_simple_link_test_code" >conftest.$ac_ext
9984 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9985 _lt_linker_boilerplate=`cat conftest.err`
9986 $rm conftest*
9987
9988
9989 # Allow CC to be a program name with arguments.
9990 lt_save_CC=$CC
9991 lt_save_LD=$LD
9992 lt_save_GCC=$GCC
9993 GCC=$GXX
9994 lt_save_with_gnu_ld=$with_gnu_ld
9995 lt_save_path_LD=$lt_cv_path_LD
9996 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9997   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9998 else
9999   $as_unset lt_cv_prog_gnu_ld
10000 fi
10001 if test -n "${lt_cv_path_LDCXX+set}"; then
10002   lt_cv_path_LD=$lt_cv_path_LDCXX
10003 else
10004   $as_unset lt_cv_path_LD
10005 fi
10006 test -z "${LDCXX+set}" || LD=$LDCXX
10007 CC=${CXX-"c++"}
10008 compiler=$CC
10009 compiler_CXX=$CC
10010 for cc_temp in $compiler""; do
10011   case $cc_temp in
10012     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10013     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10014     \-*) ;;
10015     *) break;;
10016   esac
10017 done
10018 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10019
10020
10021 # We don't want -fno-exception wen compiling C++ code, so set the
10022 # no_builtin_flag separately
10023 if test "$GXX" = yes; then
10024   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10025 else
10026   lt_prog_compiler_no_builtin_flag_CXX=
10027 fi
10028
10029 if test "$GXX" = yes; then
10030   # Set up default GNU C++ configuration
10031
10032
10033 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10034 if test "${with_gnu_ld+set}" = set; then
10035   withval="$with_gnu_ld"
10036   test "$withval" = no || with_gnu_ld=yes
10037 else
10038   with_gnu_ld=no
10039 fi;
10040 ac_prog=ld
10041 if test "$GCC" = yes; then
10042   # Check if gcc -print-prog-name=ld gives a path.
10043   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10044 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10045   case $host in
10046   *-*-mingw*)
10047     # gcc leaves a trailing carriage return which upsets mingw
10048     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10049   *)
10050     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10051   esac
10052   case $ac_prog in
10053     # Accept absolute paths.
10054     [\\/]* | ?:[\\/]*)
10055       re_direlt='/[^/][^/]*/\.\./'
10056       # Canonicalize the pathname of ld
10057       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10058       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10059         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10060       done
10061       test -z "$LD" && LD="$ac_prog"
10062       ;;
10063   "")
10064     # If it fails, then pretend we aren't using GCC.
10065     ac_prog=ld
10066     ;;
10067   *)
10068     # If it is relative, then search for the first ld in PATH.
10069     with_gnu_ld=unknown
10070     ;;
10071   esac
10072 elif test "$with_gnu_ld" = yes; then
10073   echo "$as_me:$LINENO: checking for GNU ld" >&5
10074 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10075 else
10076   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10077 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10078 fi
10079 if test "${lt_cv_path_LD+set}" = set; then
10080   echo $ECHO_N "(cached) $ECHO_C" >&6
10081 else
10082   if test -z "$LD"; then
10083   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10084   for ac_dir in $PATH; do
10085     IFS="$lt_save_ifs"
10086     test -z "$ac_dir" && ac_dir=.
10087     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10088       lt_cv_path_LD="$ac_dir/$ac_prog"
10089       # Check to see if the program is GNU ld.  I'd rather use --version,
10090       # but apparently some variants of GNU ld only accept -v.
10091       # Break only if it was the GNU/non-GNU ld that we prefer.
10092       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10093       *GNU* | *'with BFD'*)
10094         test "$with_gnu_ld" != no && break
10095         ;;
10096       *)
10097         test "$with_gnu_ld" != yes && break
10098         ;;
10099       esac
10100     fi
10101   done
10102   IFS="$lt_save_ifs"
10103 else
10104   lt_cv_path_LD="$LD" # Let the user override the test with a path.
10105 fi
10106 fi
10107
10108 LD="$lt_cv_path_LD"
10109 if test -n "$LD"; then
10110   echo "$as_me:$LINENO: result: $LD" >&5
10111 echo "${ECHO_T}$LD" >&6
10112 else
10113   echo "$as_me:$LINENO: result: no" >&5
10114 echo "${ECHO_T}no" >&6
10115 fi
10116 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10117 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10118    { (exit 1); exit 1; }; }
10119 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10120 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10121 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10122   echo $ECHO_N "(cached) $ECHO_C" >&6
10123 else
10124   # I'd rather use --version here, but apparently some GNU lds only accept -v.
10125 case `$LD -v 2>&1 </dev/null` in
10126 *GNU* | *'with BFD'*)
10127   lt_cv_prog_gnu_ld=yes
10128   ;;
10129 *)
10130   lt_cv_prog_gnu_ld=no
10131   ;;
10132 esac
10133 fi
10134 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10135 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10136 with_gnu_ld=$lt_cv_prog_gnu_ld
10137
10138
10139
10140   # Check if GNU C++ uses GNU ld as the underlying linker, since the
10141   # archiving commands below assume that GNU ld is being used.
10142   if test "$with_gnu_ld" = yes; then
10143     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10144     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'
10145
10146     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10147     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10148
10149     # If archive_cmds runs LD, not CC, wlarc should be empty
10150     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10151     #     investigate it a little bit more. (MM)
10152     wlarc='${wl}'
10153
10154     # ancient GNU ld didn't support --whole-archive et. al.
10155     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10156         grep 'no-whole-archive' > /dev/null; then
10157       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10158     else
10159       whole_archive_flag_spec_CXX=
10160     fi
10161   else
10162     with_gnu_ld=no
10163     wlarc=
10164
10165     # A generic and very simple default shared library creation
10166     # command for GNU C++ for the case where it uses the native
10167     # linker, instead of GNU ld.  If possible, this setting should
10168     # overridden to take advantage of the native linker features on
10169     # the platform it is being used on.
10170     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10171   fi
10172
10173   # Commands to make compiler produce verbose output that lists
10174   # what "hidden" libraries, object files and flags are used when
10175   # linking a shared library.
10176   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10177
10178 else
10179   GXX=no
10180   with_gnu_ld=no
10181   wlarc=
10182 fi
10183
10184 # PORTME: fill in a description of your system's C++ link characteristics
10185 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10186 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10187 ld_shlibs_CXX=yes
10188 case $host_os in
10189   aix3*)
10190     # FIXME: insert proper C++ library support
10191     ld_shlibs_CXX=no
10192     ;;
10193   aix4* | aix5*)
10194     if test "$host_cpu" = ia64; then
10195       # On IA64, the linker does run time linking by default, so we don't
10196       # have to do anything special.
10197       aix_use_runtimelinking=no
10198       exp_sym_flag='-Bexport'
10199       no_entry_flag=""
10200     else
10201       aix_use_runtimelinking=no
10202
10203       # Test if we are trying to use run time linking or normal
10204       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10205       # need to do runtime linking.
10206       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10207         for ld_flag in $LDFLAGS; do
10208           case $ld_flag in
10209           *-brtl*)
10210             aix_use_runtimelinking=yes
10211             break
10212             ;;
10213           esac
10214         done
10215         ;;
10216       esac
10217
10218       exp_sym_flag='-bexport'
10219       no_entry_flag='-bnoentry'
10220     fi
10221
10222     # When large executables or shared objects are built, AIX ld can
10223     # have problems creating the table of contents.  If linking a library
10224     # or program results in "error TOC overflow" add -mminimal-toc to
10225     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10226     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10227
10228     archive_cmds_CXX=''
10229     hardcode_direct_CXX=yes
10230     hardcode_libdir_separator_CXX=':'
10231     link_all_deplibs_CXX=yes
10232
10233     if test "$GXX" = yes; then
10234       case $host_os in aix4.[012]|aix4.[012].*)
10235       # We only want to do this on AIX 4.2 and lower, the check
10236       # below for broken collect2 doesn't work under 4.3+
10237         collect2name=`${CC} -print-prog-name=collect2`
10238         if test -f "$collect2name" && \
10239            strings "$collect2name" | grep resolve_lib_name >/dev/null
10240         then
10241           # We have reworked collect2
10242           hardcode_direct_CXX=yes
10243         else
10244           # We have old collect2
10245           hardcode_direct_CXX=unsupported
10246           # It fails to find uninstalled libraries when the uninstalled
10247           # path is not listed in the libpath.  Setting hardcode_minus_L
10248           # to unsupported forces relinking
10249           hardcode_minus_L_CXX=yes
10250           hardcode_libdir_flag_spec_CXX='-L$libdir'
10251           hardcode_libdir_separator_CXX=
10252         fi
10253         ;;
10254       esac
10255       shared_flag='-shared'
10256       if test "$aix_use_runtimelinking" = yes; then
10257         shared_flag="$shared_flag "'${wl}-G'
10258       fi
10259     else
10260       # not using gcc
10261       if test "$host_cpu" = ia64; then
10262         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10263         # chokes on -Wl,-G. The following line is correct:
10264         shared_flag='-G'
10265       else
10266         if test "$aix_use_runtimelinking" = yes; then
10267           shared_flag='${wl}-G'
10268         else
10269           shared_flag='${wl}-bM:SRE'
10270         fi
10271       fi
10272     fi
10273
10274     # It seems that -bexpall does not export symbols beginning with
10275     # underscore (_), so it is better to generate a list of symbols to export.
10276     always_export_symbols_CXX=yes
10277     if test "$aix_use_runtimelinking" = yes; then
10278       # Warning - without using the other runtime loading flags (-brtl),
10279       # -berok will link without error, but may produce a broken library.
10280       allow_undefined_flag_CXX='-berok'
10281       # Determine the default libpath from the value encoded in an empty executable.
10282       cat >conftest.$ac_ext <<_ACEOF
10283 /* confdefs.h.  */
10284 _ACEOF
10285 cat confdefs.h >>conftest.$ac_ext
10286 cat >>conftest.$ac_ext <<_ACEOF
10287 /* end confdefs.h.  */
10288
10289 int
10290 main ()
10291 {
10292
10293   ;
10294   return 0;
10295 }
10296 _ACEOF
10297 rm -f conftest.$ac_objext conftest$ac_exeext
10298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10299   (eval $ac_link) 2>conftest.er1
10300   ac_status=$?
10301   grep -v '^ *+' conftest.er1 >conftest.err
10302   rm -f conftest.er1
10303   cat conftest.err >&5
10304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305   (exit $ac_status); } &&
10306          { ac_try='test -z "$ac_cxx_werror_flag"
10307                          || test ! -s conftest.err'
10308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10309   (eval $ac_try) 2>&5
10310   ac_status=$?
10311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10312   (exit $ac_status); }; } &&
10313          { ac_try='test -s conftest$ac_exeext'
10314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10315   (eval $ac_try) 2>&5
10316   ac_status=$?
10317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10318   (exit $ac_status); }; }; then
10319
10320 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10321 }'`
10322 # Check for a 64-bit object if we didn't find anything.
10323 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; }
10324 }'`; fi
10325 else
10326   echo "$as_me: failed program was:" >&5
10327 sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 fi
10330 rm -f conftest.err conftest.$ac_objext \
10331       conftest$ac_exeext conftest.$ac_ext
10332 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10333
10334       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10335
10336       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"
10337      else
10338       if test "$host_cpu" = ia64; then
10339         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10340         allow_undefined_flag_CXX="-z nodefs"
10341         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"
10342       else
10343         # Determine the default libpath from the value encoded in an empty executable.
10344         cat >conftest.$ac_ext <<_ACEOF
10345 /* confdefs.h.  */
10346 _ACEOF
10347 cat confdefs.h >>conftest.$ac_ext
10348 cat >>conftest.$ac_ext <<_ACEOF
10349 /* end confdefs.h.  */
10350
10351 int
10352 main ()
10353 {
10354
10355   ;
10356   return 0;
10357 }
10358 _ACEOF
10359 rm -f conftest.$ac_objext conftest$ac_exeext
10360 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10361   (eval $ac_link) 2>conftest.er1
10362   ac_status=$?
10363   grep -v '^ *+' conftest.er1 >conftest.err
10364   rm -f conftest.er1
10365   cat conftest.err >&5
10366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10367   (exit $ac_status); } &&
10368          { ac_try='test -z "$ac_cxx_werror_flag"
10369                          || test ! -s conftest.err'
10370   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10371   (eval $ac_try) 2>&5
10372   ac_status=$?
10373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10374   (exit $ac_status); }; } &&
10375          { ac_try='test -s conftest$ac_exeext'
10376   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10377   (eval $ac_try) 2>&5
10378   ac_status=$?
10379   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380   (exit $ac_status); }; }; then
10381
10382 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10383 }'`
10384 # Check for a 64-bit object if we didn't find anything.
10385 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; }
10386 }'`; fi
10387 else
10388   echo "$as_me: failed program was:" >&5
10389 sed 's/^/| /' conftest.$ac_ext >&5
10390
10391 fi
10392 rm -f conftest.err conftest.$ac_objext \
10393       conftest$ac_exeext conftest.$ac_ext
10394 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10395
10396         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10397         # Warning - without using the other run time loading flags,
10398         # -berok will link without error, but may produce a broken library.
10399         no_undefined_flag_CXX=' ${wl}-bernotok'
10400         allow_undefined_flag_CXX=' ${wl}-berok'
10401         # Exported symbols can be pulled into shared objects from archives
10402         whole_archive_flag_spec_CXX='$convenience'
10403         archive_cmds_need_lc_CXX=yes
10404         # This is similar to how AIX traditionally builds its shared libraries.
10405         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'
10406       fi
10407     fi
10408     ;;
10409
10410   beos*)
10411     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10412       allow_undefined_flag_CXX=unsupported
10413       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10414       # support --undefined.  This deserves some investigation.  FIXME
10415       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416     else
10417       ld_shlibs_CXX=no
10418     fi
10419     ;;
10420
10421   chorus*)
10422     case $cc_basename in
10423       *)
10424         # FIXME: insert proper C++ library support
10425         ld_shlibs_CXX=no
10426         ;;
10427     esac
10428     ;;
10429
10430   cygwin* | mingw* | pw32*)
10431     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10432     # as there is no search path for DLLs.
10433     hardcode_libdir_flag_spec_CXX='-L$libdir'
10434     allow_undefined_flag_CXX=unsupported
10435     always_export_symbols_CXX=no
10436     enable_shared_with_static_runtimes_CXX=yes
10437
10438     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10439       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'
10440       # If the export-symbols file already is a .def file (1st line
10441       # is EXPORTS), use it as is; otherwise, prepend...
10442       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10443         cp $export_symbols $output_objdir/$soname.def;
10444       else
10445         echo EXPORTS > $output_objdir/$soname.def;
10446         cat $export_symbols >> $output_objdir/$soname.def;
10447       fi~
10448       $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'
10449     else
10450       ld_shlibs_CXX=no
10451     fi
10452   ;;
10453       darwin* | rhapsody*)
10454         case $host_os in
10455         rhapsody* | darwin1.[012])
10456          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10457          ;;
10458        *) # Darwin 1.3 on
10459          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10460            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10461          else
10462            case ${MACOSX_DEPLOYMENT_TARGET} in
10463              10.[012])
10464                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10465                ;;
10466              10.*)
10467                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10468                ;;
10469            esac
10470          fi
10471          ;;
10472         esac
10473       archive_cmds_need_lc_CXX=no
10474       hardcode_direct_CXX=no
10475       hardcode_automatic_CXX=yes
10476       hardcode_shlibpath_var_CXX=unsupported
10477       whole_archive_flag_spec_CXX=''
10478       link_all_deplibs_CXX=yes
10479
10480     if test "$GXX" = yes ; then
10481       lt_int_apple_cc_single_mod=no
10482       output_verbose_link_cmd='echo'
10483       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10484        lt_int_apple_cc_single_mod=yes
10485       fi
10486       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10487        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10488       else
10489           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'
10490         fi
10491         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10492         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10493           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10494             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}'
10495           else
10496             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}'
10497           fi
10498             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}'
10499       else
10500       case $cc_basename in
10501         xlc*)
10502          output_verbose_link_cmd='echo'
10503           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'
10504           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10505           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10506           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}'
10507           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}'
10508           ;;
10509        *)
10510          ld_shlibs_CXX=no
10511           ;;
10512       esac
10513       fi
10514         ;;
10515
10516   dgux*)
10517     case $cc_basename in
10518       ec++*)
10519         # FIXME: insert proper C++ library support
10520         ld_shlibs_CXX=no
10521         ;;
10522       ghcx*)
10523         # Green Hills C++ Compiler
10524         # FIXME: insert proper C++ library support
10525         ld_shlibs_CXX=no
10526         ;;
10527       *)
10528         # FIXME: insert proper C++ library support
10529         ld_shlibs_CXX=no
10530         ;;
10531     esac
10532     ;;
10533   freebsd[12]*)
10534     # C++ shared libraries reported to be fairly broken before switch to ELF
10535     ld_shlibs_CXX=no
10536     ;;
10537   freebsd-elf*)
10538     archive_cmds_need_lc_CXX=no
10539     ;;
10540   freebsd* | kfreebsd*-gnu | dragonfly*)
10541     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10542     # conventions
10543     ld_shlibs_CXX=yes
10544     ;;
10545   gnu*)
10546     ;;
10547   hpux9*)
10548     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10549     hardcode_libdir_separator_CXX=:
10550     export_dynamic_flag_spec_CXX='${wl}-E'
10551     hardcode_direct_CXX=yes
10552     hardcode_minus_L_CXX=yes # Not in the search PATH,
10553                                 # but as the default
10554                                 # location of the library.
10555
10556     case $cc_basename in
10557     CC*)
10558       # FIXME: insert proper C++ library support
10559       ld_shlibs_CXX=no
10560       ;;
10561     aCC*)
10562       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'
10563       # Commands to make compiler produce verbose output that lists
10564       # what "hidden" libraries, object files and flags are used when
10565       # linking a shared library.
10566       #
10567       # There doesn't appear to be a way to prevent this compiler from
10568       # explicitly linking system object files so we need to strip them
10569       # from the output so that they don't get included in the library
10570       # dependencies.
10571       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'
10572       ;;
10573     *)
10574       if test "$GXX" = yes; then
10575         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'
10576       else
10577         # FIXME: insert proper C++ library support
10578         ld_shlibs_CXX=no
10579       fi
10580       ;;
10581     esac
10582     ;;
10583   hpux10*|hpux11*)
10584     if test $with_gnu_ld = no; then
10585       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10586       hardcode_libdir_separator_CXX=:
10587
10588       case $host_cpu in
10589       hppa*64*|ia64*)
10590         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10591         ;;
10592       *)
10593         export_dynamic_flag_spec_CXX='${wl}-E'
10594         ;;
10595       esac
10596     fi
10597     case $host_cpu in
10598     hppa*64*|ia64*)
10599       hardcode_direct_CXX=no
10600       hardcode_shlibpath_var_CXX=no
10601       ;;
10602     *)
10603       hardcode_direct_CXX=yes
10604       hardcode_minus_L_CXX=yes # Not in the search PATH,
10605                                               # but as the default
10606                                               # location of the library.
10607       ;;
10608     esac
10609
10610     case $cc_basename in
10611       CC*)
10612         # FIXME: insert proper C++ library support
10613         ld_shlibs_CXX=no
10614         ;;
10615       aCC*)
10616         case $host_cpu in
10617         hppa*64*)
10618           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10619           ;;
10620         ia64*)
10621           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10622           ;;
10623         *)
10624           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10625           ;;
10626         esac
10627         # Commands to make compiler produce verbose output that lists
10628         # what "hidden" libraries, object files and flags are used when
10629         # linking a shared library.
10630         #
10631         # There doesn't appear to be a way to prevent this compiler from
10632         # explicitly linking system object files so we need to strip them
10633         # from the output so that they don't get included in the library
10634         # dependencies.
10635         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'
10636         ;;
10637       *)
10638         if test "$GXX" = yes; then
10639           if test $with_gnu_ld = no; then
10640             case $host_cpu in
10641             hppa*64*)
10642               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10643               ;;
10644             ia64*)
10645               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10646               ;;
10647             *)
10648               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'
10649               ;;
10650             esac
10651           fi
10652         else
10653           # FIXME: insert proper C++ library support
10654           ld_shlibs_CXX=no
10655         fi
10656         ;;
10657     esac
10658     ;;
10659   interix3*)
10660     hardcode_direct_CXX=no
10661     hardcode_shlibpath_var_CXX=no
10662     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10663     export_dynamic_flag_spec_CXX='${wl}-E'
10664     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10665     # Instead, shared libraries are loaded at an image base (0x10000000 by
10666     # default) and relocated if they conflict, which is a slow very memory
10667     # consuming and fragmenting process.  To avoid this, we pick a random,
10668     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10669     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
10670     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'
10671     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'
10672     ;;
10673   irix5* | irix6*)
10674     case $cc_basename in
10675       CC*)
10676         # SGI C++
10677         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'
10678
10679         # Archives containing C++ object files must be created using
10680         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10681         # necessary to make sure instantiated templates are included
10682         # in the archive.
10683         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10684         ;;
10685       *)
10686         if test "$GXX" = yes; then
10687           if test "$with_gnu_ld" = no; then
10688             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'
10689           else
10690             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'
10691           fi
10692         fi
10693         link_all_deplibs_CXX=yes
10694         ;;
10695     esac
10696     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10697     hardcode_libdir_separator_CXX=:
10698     ;;
10699   linux*)
10700     case $cc_basename in
10701       KCC*)
10702         # Kuck and Associates, Inc. (KAI) C++ Compiler
10703
10704         # KCC will only create a shared library if the output file
10705         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10706         # to its proper name (with version) after linking.
10707         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'
10708         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'
10709         # Commands to make compiler produce verbose output that lists
10710         # what "hidden" libraries, object files and flags are used when
10711         # linking a shared library.
10712         #
10713         # There doesn't appear to be a way to prevent this compiler from
10714         # explicitly linking system object files so we need to strip them
10715         # from the output so that they don't get included in the library
10716         # dependencies.
10717         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'
10718
10719         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10720         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10721
10722         # Archives containing C++ object files must be created using
10723         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10724         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10725         ;;
10726       icpc*)
10727         # Intel C++
10728         with_gnu_ld=yes
10729         # version 8.0 and above of icpc choke on multiply defined symbols
10730         # if we add $predep_objects and $postdep_objects, however 7.1 and
10731         # earlier do not add the objects themselves.
10732         case `$CC -V 2>&1` in
10733         *"Version 7."*)
10734           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10735           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'
10736           ;;
10737         *)  # Version 8.0 or newer
10738           tmp_idyn=
10739           case $host_cpu in
10740             ia64*) tmp_idyn=' -i_dynamic';;
10741           esac
10742           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10743           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'
10744           ;;
10745         esac
10746         archive_cmds_need_lc_CXX=no
10747         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10748         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10749         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10750         ;;
10751       pgCC*)
10752         # Portland Group C++ compiler
10753         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10754         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'
10755
10756         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10757         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10758         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'
10759         ;;
10760       cxx*)
10761         # Compaq C++
10762         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10763         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'
10764
10765         runpath_var=LD_RUN_PATH
10766         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10767         hardcode_libdir_separator_CXX=:
10768
10769         # Commands to make compiler produce verbose output that lists
10770         # what "hidden" libraries, object files and flags are used when
10771         # linking a shared library.
10772         #
10773         # There doesn't appear to be a way to prevent this compiler from
10774         # explicitly linking system object files so we need to strip them
10775         # from the output so that they don't get included in the library
10776         # dependencies.
10777         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'
10778         ;;
10779     esac
10780     ;;
10781   lynxos*)
10782     # FIXME: insert proper C++ library support
10783     ld_shlibs_CXX=no
10784     ;;
10785   m88k*)
10786     # FIXME: insert proper C++ library support
10787     ld_shlibs_CXX=no
10788     ;;
10789   mvs*)
10790     case $cc_basename in
10791       cxx*)
10792         # FIXME: insert proper C++ library support
10793         ld_shlibs_CXX=no
10794         ;;
10795       *)
10796         # FIXME: insert proper C++ library support
10797         ld_shlibs_CXX=no
10798         ;;
10799     esac
10800     ;;
10801   netbsd*)
10802     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10803       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10804       wlarc=
10805       hardcode_libdir_flag_spec_CXX='-R$libdir'
10806       hardcode_direct_CXX=yes
10807       hardcode_shlibpath_var_CXX=no
10808     fi
10809     # Workaround some broken pre-1.5 toolchains
10810     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10811     ;;
10812   openbsd2*)
10813     # C++ shared libraries are fairly broken
10814     ld_shlibs_CXX=no
10815     ;;
10816   openbsd*)
10817     hardcode_direct_CXX=yes
10818     hardcode_shlibpath_var_CXX=no
10819     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10820     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10821     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10822       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10823       export_dynamic_flag_spec_CXX='${wl}-E'
10824       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10825     fi
10826     output_verbose_link_cmd='echo'
10827     ;;
10828   osf3*)
10829     case $cc_basename in
10830       KCC*)
10831         # Kuck and Associates, Inc. (KAI) C++ Compiler
10832
10833         # KCC will only create a shared library if the output file
10834         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10835         # to its proper name (with version) after linking.
10836         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'
10837
10838         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10839         hardcode_libdir_separator_CXX=:
10840
10841         # Archives containing C++ object files must be created using
10842         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10843         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10844
10845         ;;
10846       RCC*)
10847         # Rational C++ 2.4.1
10848         # FIXME: insert proper C++ library support
10849         ld_shlibs_CXX=no
10850         ;;
10851       cxx*)
10852         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10853         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'
10854
10855         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10856         hardcode_libdir_separator_CXX=:
10857
10858         # Commands to make compiler produce verbose output that lists
10859         # what "hidden" libraries, object files and flags are used when
10860         # linking a shared library.
10861         #
10862         # There doesn't appear to be a way to prevent this compiler from
10863         # explicitly linking system object files so we need to strip them
10864         # from the output so that they don't get included in the library
10865         # dependencies.
10866         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'
10867         ;;
10868       *)
10869         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10870           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10871           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'
10872
10873           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10874           hardcode_libdir_separator_CXX=:
10875
10876           # Commands to make compiler produce verbose output that lists
10877           # what "hidden" libraries, object files and flags are used when
10878           # linking a shared library.
10879           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10880
10881         else
10882           # FIXME: insert proper C++ library support
10883           ld_shlibs_CXX=no
10884         fi
10885         ;;
10886     esac
10887     ;;
10888   osf4* | osf5*)
10889     case $cc_basename in
10890       KCC*)
10891         # Kuck and Associates, Inc. (KAI) C++ Compiler
10892
10893         # KCC will only create a shared library if the output file
10894         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10895         # to its proper name (with version) after linking.
10896         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'
10897
10898         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10899         hardcode_libdir_separator_CXX=:
10900
10901         # Archives containing C++ object files must be created using
10902         # the KAI C++ compiler.
10903         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10904         ;;
10905       RCC*)
10906         # Rational C++ 2.4.1
10907         # FIXME: insert proper C++ library support
10908         ld_shlibs_CXX=no
10909         ;;
10910       cxx*)
10911         allow_undefined_flag_CXX=' -expect_unresolved \*'
10912         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'
10913         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10914           echo "-hidden">> $lib.exp~
10915           $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~
10916           $rm $lib.exp'
10917
10918         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10919         hardcode_libdir_separator_CXX=:
10920
10921         # Commands to make compiler produce verbose output that lists
10922         # what "hidden" libraries, object files and flags are used when
10923         # linking a shared library.
10924         #
10925         # There doesn't appear to be a way to prevent this compiler from
10926         # explicitly linking system object files so we need to strip them
10927         # from the output so that they don't get included in the library
10928         # dependencies.
10929         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'
10930         ;;
10931       *)
10932         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10933           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10934          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'
10935
10936           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10937           hardcode_libdir_separator_CXX=:
10938
10939           # Commands to make compiler produce verbose output that lists
10940           # what "hidden" libraries, object files and flags are used when
10941           # linking a shared library.
10942           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10943
10944         else
10945           # FIXME: insert proper C++ library support
10946           ld_shlibs_CXX=no
10947         fi
10948         ;;
10949     esac
10950     ;;
10951   psos*)
10952     # FIXME: insert proper C++ library support
10953     ld_shlibs_CXX=no
10954     ;;
10955   sunos4*)
10956     case $cc_basename in
10957       CC*)
10958         # Sun C++ 4.x
10959         # FIXME: insert proper C++ library support
10960         ld_shlibs_CXX=no
10961         ;;
10962       lcc*)
10963         # Lucid
10964         # FIXME: insert proper C++ library support
10965         ld_shlibs_CXX=no
10966         ;;
10967       *)
10968         # FIXME: insert proper C++ library support
10969         ld_shlibs_CXX=no
10970         ;;
10971     esac
10972     ;;
10973   solaris*)
10974     case $cc_basename in
10975       CC*)
10976         # Sun C++ 4.2, 5.x and Centerline C++
10977         archive_cmds_need_lc_CXX=yes
10978         no_undefined_flag_CXX=' -zdefs'
10979         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10980         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10981         $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'
10982
10983         hardcode_libdir_flag_spec_CXX='-R$libdir'
10984         hardcode_shlibpath_var_CXX=no
10985         case $host_os in
10986           solaris2.[0-5] | solaris2.[0-5].*) ;;
10987           *)
10988             # The C++ compiler is used as linker so we must use $wl
10989             # flag to pass the commands to the underlying system
10990             # linker. We must also pass each convience library through
10991             # to the system linker between allextract/defaultextract.
10992             # The C++ compiler will combine linker options so we
10993             # cannot just pass the convience library names through
10994             # without $wl.
10995             # Supported since Solaris 2.6 (maybe 2.5.1?)
10996             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'
10997             ;;
10998         esac
10999         link_all_deplibs_CXX=yes
11000
11001         output_verbose_link_cmd='echo'
11002
11003         # Archives containing C++ object files must be created using
11004         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
11005         # necessary to make sure instantiated templates are included
11006         # in the archive.
11007         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11008         ;;
11009       gcx*)
11010         # Green Hills C++ Compiler
11011         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11012
11013         # The C++ compiler must be used to create the archive.
11014         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11015         ;;
11016       *)
11017         # GNU C++ compiler with Solaris linker
11018         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11019           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11020           if $CC --version | grep -v '^2\.7' > /dev/null; then
11021             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11022             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11023                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11024
11025             # Commands to make compiler produce verbose output that lists
11026             # what "hidden" libraries, object files and flags are used when
11027             # linking a shared library.
11028             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11029           else
11030             # g++ 2.7 appears to require `-G' NOT `-shared' on this
11031             # platform.
11032             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11033             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11034                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11035
11036             # Commands to make compiler produce verbose output that lists
11037             # what "hidden" libraries, object files and flags are used when
11038             # linking a shared library.
11039             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11040           fi
11041
11042           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11043         fi
11044         ;;
11045     esac
11046     ;;
11047   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11048     no_undefined_flag_CXX='${wl}-z,text'
11049     archive_cmds_need_lc_CXX=no
11050     hardcode_shlibpath_var_CXX=no
11051     runpath_var='LD_RUN_PATH'
11052
11053     case $cc_basename in
11054       CC*)
11055         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11056         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11057         ;;
11058       *)
11059         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11060         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11061         ;;
11062     esac
11063     ;;
11064   sysv5* | sco3.2v5* | sco5v6*)
11065     # Note: We can NOT use -z defs as we might desire, because we do not
11066     # link with -lc, and that would cause any symbols used from libc to
11067     # always be unresolved, which means just about no library would
11068     # ever link correctly.  If we're not using GNU ld we use -z text
11069     # though, which does catch some bad symbols but isn't as heavy-handed
11070     # as -z defs.
11071     # For security reasons, it is highly recommended that you always
11072     # use absolute paths for naming shared libraries, and exclude the
11073     # DT_RUNPATH tag from executables and libraries.  But doing so
11074     # requires that you compile everything twice, which is a pain.
11075     # So that behaviour is only enabled if SCOABSPATH is set to a
11076     # non-empty value in the environment.  Most likely only useful for
11077     # creating official distributions of packages.
11078     # This is a hack until libtool officially supports absolute path
11079     # names for shared libraries.
11080     no_undefined_flag_CXX='${wl}-z,text'
11081     allow_undefined_flag_CXX='${wl}-z,nodefs'
11082     archive_cmds_need_lc_CXX=no
11083     hardcode_shlibpath_var_CXX=no
11084     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11085     hardcode_libdir_separator_CXX=':'
11086     link_all_deplibs_CXX=yes
11087     export_dynamic_flag_spec_CXX='${wl}-Bexport'
11088     runpath_var='LD_RUN_PATH'
11089
11090     case $cc_basename in
11091       CC*)
11092         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11093         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11094         ;;
11095       *)
11096         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11097         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11098         ;;
11099     esac
11100     ;;
11101   tandem*)
11102     case $cc_basename in
11103       NCC*)
11104         # NonStop-UX NCC 3.20
11105         # FIXME: insert proper C++ library support
11106         ld_shlibs_CXX=no
11107         ;;
11108       *)
11109         # FIXME: insert proper C++ library support
11110         ld_shlibs_CXX=no
11111         ;;
11112     esac
11113     ;;
11114   vxworks*)
11115     # FIXME: insert proper C++ library support
11116     ld_shlibs_CXX=no
11117     ;;
11118   *)
11119     # FIXME: insert proper C++ library support
11120     ld_shlibs_CXX=no
11121     ;;
11122 esac
11123 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11124 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11125 test "$ld_shlibs_CXX" = no && can_build_shared=no
11126
11127 GCC_CXX="$GXX"
11128 LD_CXX="$LD"
11129
11130
11131 cat > conftest.$ac_ext <<EOF
11132 class Foo
11133 {
11134 public:
11135   Foo (void) { a = 0; }
11136 private:
11137   int a;
11138 };
11139 EOF
11140
11141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11142   (eval $ac_compile) 2>&5
11143   ac_status=$?
11144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11145   (exit $ac_status); }; then
11146   # Parse the compiler output and extract the necessary
11147   # objects, libraries and library flags.
11148
11149   # Sentinel used to keep track of whether or not we are before
11150   # the conftest object file.
11151   pre_test_object_deps_done=no
11152
11153   # The `*' in the case matches for architectures that use `case' in
11154   # $output_verbose_cmd can trigger glob expansion during the loop
11155   # eval without this substitution.
11156   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11157
11158   for p in `eval $output_verbose_link_cmd`; do
11159     case $p in
11160
11161     -L* | -R* | -l*)
11162        # Some compilers place space between "-{L,R}" and the path.
11163        # Remove the space.
11164        if test $p = "-L" \
11165           || test $p = "-R"; then
11166          prev=$p
11167          continue
11168        else
11169          prev=
11170        fi
11171
11172        if test "$pre_test_object_deps_done" = no; then
11173          case $p in
11174          -L* | -R*)
11175            # Internal compiler library paths should come after those
11176            # provided the user.  The postdeps already come after the
11177            # user supplied libs so there is no need to process them.
11178            if test -z "$compiler_lib_search_path_CXX"; then
11179              compiler_lib_search_path_CXX="${prev}${p}"
11180            else
11181              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11182            fi
11183            ;;
11184          # The "-l" case would never come before the object being
11185          # linked, so don't bother handling this case.
11186          esac
11187        else
11188          if test -z "$postdeps_CXX"; then
11189            postdeps_CXX="${prev}${p}"
11190          else
11191            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11192          fi
11193        fi
11194        ;;
11195
11196     *.$objext)
11197        # This assumes that the test object file only shows up
11198        # once in the compiler output.
11199        if test "$p" = "conftest.$objext"; then
11200          pre_test_object_deps_done=yes
11201          continue
11202        fi
11203
11204        if test "$pre_test_object_deps_done" = no; then
11205          if test -z "$predep_objects_CXX"; then
11206            predep_objects_CXX="$p"
11207          else
11208            predep_objects_CXX="$predep_objects_CXX $p"
11209          fi
11210        else
11211          if test -z "$postdep_objects_CXX"; then
11212            postdep_objects_CXX="$p"
11213          else
11214            postdep_objects_CXX="$postdep_objects_CXX $p"
11215          fi
11216        fi
11217        ;;
11218
11219     *) ;; # Ignore the rest.
11220
11221     esac
11222   done
11223
11224   # Clean up.
11225   rm -f a.out a.exe
11226 else
11227   echo "libtool.m4: error: problem compiling CXX test program"
11228 fi
11229
11230 $rm -f confest.$objext
11231
11232 # PORTME: override above test on systems where it is broken
11233 case $host_os in
11234 interix3*)
11235   # Interix 3.5 installs completely hosed .la files for C++, so rather than
11236   # hack all around it, let's just trust "g++" to DTRT.
11237   predep_objects_CXX=
11238   postdep_objects_CXX=
11239   postdeps_CXX=
11240   ;;
11241
11242 solaris*)
11243   case $cc_basename in
11244   CC*)
11245     # Adding this requires a known-good setup of shared libraries for
11246     # Sun compiler versions before 5.6, else PIC objects from an old
11247     # archive will be linked into the output, leading to subtle bugs.
11248     postdeps_CXX='-lCstd -lCrun'
11249     ;;
11250   esac
11251   ;;
11252 esac
11253
11254
11255 case " $postdeps_CXX " in
11256 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11257 esac
11258
11259 lt_prog_compiler_wl_CXX=
11260 lt_prog_compiler_pic_CXX=
11261 lt_prog_compiler_static_CXX=
11262
11263 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11264 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11265
11266   # C++ specific cases for pic, static, wl, etc.
11267   if test "$GXX" = yes; then
11268     lt_prog_compiler_wl_CXX='-Wl,'
11269     lt_prog_compiler_static_CXX='-static'
11270
11271     case $host_os in
11272     aix*)
11273       # All AIX code is PIC.
11274       if test "$host_cpu" = ia64; then
11275         # AIX 5 now supports IA64 processor
11276         lt_prog_compiler_static_CXX='-Bstatic'
11277       fi
11278       ;;
11279     amigaos*)
11280       # FIXME: we need at least 68020 code to build shared libraries, but
11281       # adding the `-m68020' flag to GCC prevents building anything better,
11282       # like `-m68040'.
11283       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11284       ;;
11285     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11286       # PIC is the default for these OSes.
11287       ;;
11288     mingw* | os2* | pw32*)
11289       # This hack is so that the source file can tell whether it is being
11290       # built for inclusion in a dll (and should export symbols for example).
11291       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11292       ;;
11293     darwin* | rhapsody*)
11294       # PIC is the default on this platform
11295       # Common symbols not allowed in MH_DYLIB files
11296       lt_prog_compiler_pic_CXX='-fno-common'
11297       ;;
11298     *djgpp*)
11299       # DJGPP does not support shared libraries at all
11300       lt_prog_compiler_pic_CXX=
11301       ;;
11302     interix3*)
11303       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11304       # Instead, we relocate shared libraries at runtime.
11305       ;;
11306     sysv4*MP*)
11307       if test -d /usr/nec; then
11308         lt_prog_compiler_pic_CXX=-Kconform_pic
11309       fi
11310       ;;
11311     hpux*)
11312       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11313       # not for PA HP-UX.
11314       case $host_cpu in
11315       hppa*64*|ia64*)
11316         ;;
11317       *)
11318         lt_prog_compiler_pic_CXX='-fPIC'
11319         ;;
11320       esac
11321       ;;
11322     *)
11323       lt_prog_compiler_pic_CXX='-fPIC'
11324       ;;
11325     esac
11326   else
11327     case $host_os in
11328       aix4* | aix5*)
11329         # All AIX code is PIC.
11330         if test "$host_cpu" = ia64; then
11331           # AIX 5 now supports IA64 processor
11332           lt_prog_compiler_static_CXX='-Bstatic'
11333         else
11334           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11335         fi
11336         ;;
11337       chorus*)
11338         case $cc_basename in
11339         cxch68*)
11340           # Green Hills C++ Compiler
11341           # _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"
11342           ;;
11343         esac
11344         ;;
11345        darwin*)
11346          # PIC is the default on this platform
11347          # Common symbols not allowed in MH_DYLIB files
11348          case $cc_basename in
11349            xlc*)
11350            lt_prog_compiler_pic_CXX='-qnocommon'
11351            lt_prog_compiler_wl_CXX='-Wl,'
11352            ;;
11353          esac
11354        ;;
11355       dgux*)
11356         case $cc_basename in
11357           ec++*)
11358             lt_prog_compiler_pic_CXX='-KPIC'
11359             ;;
11360           ghcx*)
11361             # Green Hills C++ Compiler
11362             lt_prog_compiler_pic_CXX='-pic'
11363             ;;
11364           *)
11365             ;;
11366         esac
11367         ;;
11368       freebsd* | kfreebsd*-gnu | dragonfly*)
11369         # FreeBSD uses GNU C++
11370         ;;
11371       hpux9* | hpux10* | hpux11*)
11372         case $cc_basename in
11373           CC*)
11374             lt_prog_compiler_wl_CXX='-Wl,'
11375             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11376             if test "$host_cpu" != ia64; then
11377               lt_prog_compiler_pic_CXX='+Z'
11378             fi
11379             ;;
11380           aCC*)
11381             lt_prog_compiler_wl_CXX='-Wl,'
11382             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11383             case $host_cpu in
11384             hppa*64*|ia64*)
11385               # +Z the default
11386               ;;
11387             *)
11388               lt_prog_compiler_pic_CXX='+Z'
11389               ;;
11390             esac
11391             ;;
11392           *)
11393             ;;
11394         esac
11395         ;;
11396       interix*)
11397         # This is c89, which is MS Visual C++ (no shared libs)
11398         # Anyone wants to do a port?
11399         ;;
11400       irix5* | irix6* | nonstopux*)
11401         case $cc_basename in
11402           CC*)
11403             lt_prog_compiler_wl_CXX='-Wl,'
11404             lt_prog_compiler_static_CXX='-non_shared'
11405             # CC pic flag -KPIC is the default.
11406             ;;
11407           *)
11408             ;;
11409         esac
11410         ;;
11411       linux*)
11412         case $cc_basename in
11413           KCC*)
11414             # KAI C++ Compiler
11415             lt_prog_compiler_wl_CXX='--backend -Wl,'
11416             lt_prog_compiler_pic_CXX='-fPIC'
11417             ;;
11418           icpc* | ecpc*)
11419             # Intel C++
11420             lt_prog_compiler_wl_CXX='-Wl,'
11421             lt_prog_compiler_pic_CXX='-KPIC'
11422             lt_prog_compiler_static_CXX='-static'
11423             ;;
11424           pgCC*)
11425             # Portland Group C++ compiler.
11426             lt_prog_compiler_wl_CXX='-Wl,'
11427             lt_prog_compiler_pic_CXX='-fpic'
11428             lt_prog_compiler_static_CXX='-Bstatic'
11429             ;;
11430           cxx*)
11431             # Compaq C++
11432             # Make sure the PIC flag is empty.  It appears that all Alpha
11433             # Linux and Compaq Tru64 Unix objects are PIC.
11434             lt_prog_compiler_pic_CXX=
11435             lt_prog_compiler_static_CXX='-non_shared'
11436             ;;
11437           *)
11438             ;;
11439         esac
11440         ;;
11441       lynxos*)
11442         ;;
11443       m88k*)
11444         ;;
11445       mvs*)
11446         case $cc_basename in
11447           cxx*)
11448             lt_prog_compiler_pic_CXX='-W c,exportall'
11449             ;;
11450           *)
11451             ;;
11452         esac
11453         ;;
11454       netbsd*)
11455         ;;
11456       osf3* | osf4* | osf5*)
11457         case $cc_basename in
11458           KCC*)
11459             lt_prog_compiler_wl_CXX='--backend -Wl,'
11460             ;;
11461           RCC*)
11462             # Rational C++ 2.4.1
11463             lt_prog_compiler_pic_CXX='-pic'
11464             ;;
11465           cxx*)
11466             # Digital/Compaq C++
11467             lt_prog_compiler_wl_CXX='-Wl,'
11468             # Make sure the PIC flag is empty.  It appears that all Alpha
11469             # Linux and Compaq Tru64 Unix objects are PIC.
11470             lt_prog_compiler_pic_CXX=
11471             lt_prog_compiler_static_CXX='-non_shared'
11472             ;;
11473           *)
11474             ;;
11475         esac
11476         ;;
11477       psos*)
11478         ;;
11479       solaris*)
11480         case $cc_basename in
11481           CC*)
11482             # Sun C++ 4.2, 5.x and Centerline C++
11483             lt_prog_compiler_pic_CXX='-KPIC'
11484             lt_prog_compiler_static_CXX='-Bstatic'
11485             lt_prog_compiler_wl_CXX='-Qoption ld '
11486             ;;
11487           gcx*)
11488             # Green Hills C++ Compiler
11489             lt_prog_compiler_pic_CXX='-PIC'
11490             ;;
11491           *)
11492             ;;
11493         esac
11494         ;;
11495       sunos4*)
11496         case $cc_basename in
11497           CC*)
11498             # Sun C++ 4.x
11499             lt_prog_compiler_pic_CXX='-pic'
11500             lt_prog_compiler_static_CXX='-Bstatic'
11501             ;;
11502           lcc*)
11503             # Lucid
11504             lt_prog_compiler_pic_CXX='-pic'
11505             ;;
11506           *)
11507             ;;
11508         esac
11509         ;;
11510       tandem*)
11511         case $cc_basename in
11512           NCC*)
11513             # NonStop-UX NCC 3.20
11514             lt_prog_compiler_pic_CXX='-KPIC'
11515             ;;
11516           *)
11517             ;;
11518         esac
11519         ;;
11520       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11521         case $cc_basename in
11522           CC*)
11523             lt_prog_compiler_wl_CXX='-Wl,'
11524             lt_prog_compiler_pic_CXX='-KPIC'
11525             lt_prog_compiler_static_CXX='-Bstatic'
11526             ;;
11527         esac
11528         ;;
11529       vxworks*)
11530         ;;
11531       *)
11532         lt_prog_compiler_can_build_shared_CXX=no
11533         ;;
11534     esac
11535   fi
11536
11537 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11538 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11539
11540 #
11541 # Check to make sure the PIC flag actually works.
11542 #
11543 if test -n "$lt_prog_compiler_pic_CXX"; then
11544
11545 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11546 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11547 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11548   echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550   lt_prog_compiler_pic_works_CXX=no
11551   ac_outfile=conftest.$ac_objext
11552    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11553    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11554    # Insert the option either (1) after the last *FLAGS variable, or
11555    # (2) before a word containing "conftest.", or (3) at the end.
11556    # Note that $ac_compile itself does not contain backslashes and begins
11557    # with a dollar sign (not a hyphen), so the echo should work correctly.
11558    # The option is referenced via a variable to avoid confusing sed.
11559    lt_compile=`echo "$ac_compile" | $SED \
11560    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11561    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11562    -e 's:$: $lt_compiler_flag:'`
11563    (eval echo "\"\$as_me:11563: $lt_compile\"" >&5)
11564    (eval "$lt_compile" 2>conftest.err)
11565    ac_status=$?
11566    cat conftest.err >&5
11567    echo "$as_me:11567: \$? = $ac_status" >&5
11568    if (exit $ac_status) && test -s "$ac_outfile"; then
11569      # The compiler can only warn and ignore the option if not recognized
11570      # So say no if there are warnings other than the usual output.
11571      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11572      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11573      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11574        lt_prog_compiler_pic_works_CXX=yes
11575      fi
11576    fi
11577    $rm conftest*
11578
11579 fi
11580 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11581 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11582
11583 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11584     case $lt_prog_compiler_pic_CXX in
11585      "" | " "*) ;;
11586      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11587      esac
11588 else
11589     lt_prog_compiler_pic_CXX=
11590      lt_prog_compiler_can_build_shared_CXX=no
11591 fi
11592
11593 fi
11594 case $host_os in
11595   # For platforms which do not support PIC, -DPIC is meaningless:
11596   *djgpp*)
11597     lt_prog_compiler_pic_CXX=
11598     ;;
11599   *)
11600     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11601     ;;
11602 esac
11603
11604 #
11605 # Check to make sure the static flag actually works.
11606 #
11607 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11608 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11609 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
11610 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
11611   echo $ECHO_N "(cached) $ECHO_C" >&6
11612 else
11613   lt_prog_compiler_static_works_CXX=no
11614    save_LDFLAGS="$LDFLAGS"
11615    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11616    printf "$lt_simple_link_test_code" > conftest.$ac_ext
11617    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11618      # The linker can only warn and ignore the option if not recognized
11619      # So say no if there are warnings
11620      if test -s conftest.err; then
11621        # Append any errors to the config.log.
11622        cat conftest.err 1>&5
11623        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11624        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11625        if diff conftest.exp conftest.er2 >/dev/null; then
11626          lt_prog_compiler_static_works_CXX=yes
11627        fi
11628      else
11629        lt_prog_compiler_static_works_CXX=yes
11630      fi
11631    fi
11632    $rm conftest*
11633    LDFLAGS="$save_LDFLAGS"
11634
11635 fi
11636 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
11637 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
11638
11639 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11640     :
11641 else
11642     lt_prog_compiler_static_CXX=
11643 fi
11644
11645
11646 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11647 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11648 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11649   echo $ECHO_N "(cached) $ECHO_C" >&6
11650 else
11651   lt_cv_prog_compiler_c_o_CXX=no
11652    $rm -r conftest 2>/dev/null
11653    mkdir conftest
11654    cd conftest
11655    mkdir out
11656    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11657
11658    lt_compiler_flag="-o out/conftest2.$ac_objext"
11659    # Insert the option either (1) after the last *FLAGS variable, or
11660    # (2) before a word containing "conftest.", or (3) at the end.
11661    # Note that $ac_compile itself does not contain backslashes and begins
11662    # with a dollar sign (not a hyphen), so the echo should work correctly.
11663    lt_compile=`echo "$ac_compile" | $SED \
11664    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11665    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11666    -e 's:$: $lt_compiler_flag:'`
11667    (eval echo "\"\$as_me:11667: $lt_compile\"" >&5)
11668    (eval "$lt_compile" 2>out/conftest.err)
11669    ac_status=$?
11670    cat out/conftest.err >&5
11671    echo "$as_me:11671: \$? = $ac_status" >&5
11672    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11673    then
11674      # The compiler can only warn and ignore the option if not recognized
11675      # So say no if there are warnings
11676      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11677      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11678      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11679        lt_cv_prog_compiler_c_o_CXX=yes
11680      fi
11681    fi
11682    chmod u+w . 2>&5
11683    $rm conftest*
11684    # SGI C++ compiler will create directory out/ii_files/ for
11685    # template instantiation
11686    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11687    $rm out/* && rmdir out
11688    cd ..
11689    rmdir conftest
11690    $rm conftest*
11691
11692 fi
11693 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11694 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11695
11696
11697 hard_links="nottested"
11698 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11699   # do not overwrite the value of need_locks provided by the user
11700   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11701 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11702   hard_links=yes
11703   $rm conftest*
11704   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11705   touch conftest.a
11706   ln conftest.a conftest.b 2>&5 || hard_links=no
11707   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11708   echo "$as_me:$LINENO: result: $hard_links" >&5
11709 echo "${ECHO_T}$hard_links" >&6
11710   if test "$hard_links" = no; then
11711     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11712 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11713     need_locks=warn
11714   fi
11715 else
11716   need_locks=no
11717 fi
11718
11719 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11720 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11721
11722   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11723   case $host_os in
11724   aix4* | aix5*)
11725     # If we're using GNU nm, then we don't want the "-C" option.
11726     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11727     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11728       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'
11729     else
11730       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'
11731     fi
11732     ;;
11733   pw32*)
11734     export_symbols_cmds_CXX="$ltdll_cmds"
11735   ;;
11736   cygwin* | mingw*)
11737     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'
11738   ;;
11739   *)
11740     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11741   ;;
11742   esac
11743
11744 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11745 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11746 test "$ld_shlibs_CXX" = no && can_build_shared=no
11747
11748 #
11749 # Do we need to explicitly link libc?
11750 #
11751 case "x$archive_cmds_need_lc_CXX" in
11752 x|xyes)
11753   # Assume -lc should be added
11754   archive_cmds_need_lc_CXX=yes
11755
11756   if test "$enable_shared" = yes && test "$GCC" = yes; then
11757     case $archive_cmds_CXX in
11758     *'~'*)
11759       # FIXME: we may have to deal with multi-command sequences.
11760       ;;
11761     '$CC '*)
11762       # Test whether the compiler implicitly links with -lc since on some
11763       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11764       # to ld, don't add -lc before -lgcc.
11765       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11766 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11767       $rm conftest*
11768       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11769
11770       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11771   (eval $ac_compile) 2>&5
11772   ac_status=$?
11773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11774   (exit $ac_status); } 2>conftest.err; then
11775         soname=conftest
11776         lib=conftest
11777         libobjs=conftest.$ac_objext
11778         deplibs=
11779         wl=$lt_prog_compiler_wl_CXX
11780         pic_flag=$lt_prog_compiler_pic_CXX
11781         compiler_flags=-v
11782         linker_flags=-v
11783         verstring=
11784         output_objdir=.
11785         libname=conftest
11786         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11787         allow_undefined_flag_CXX=
11788         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11789   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11790   ac_status=$?
11791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792   (exit $ac_status); }
11793         then
11794           archive_cmds_need_lc_CXX=no
11795         else
11796           archive_cmds_need_lc_CXX=yes
11797         fi
11798         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11799       else
11800         cat conftest.err 1>&5
11801       fi
11802       $rm conftest*
11803       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11804 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11805       ;;
11806     esac
11807   fi
11808   ;;
11809 esac
11810
11811 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11812 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11813 library_names_spec=
11814 libname_spec='lib$name'
11815 soname_spec=
11816 shrext_cmds=".so"
11817 postinstall_cmds=
11818 postuninstall_cmds=
11819 finish_cmds=
11820 finish_eval=
11821 shlibpath_var=
11822 shlibpath_overrides_runpath=unknown
11823 version_type=none
11824 dynamic_linker="$host_os ld.so"
11825 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11826 if test "$GCC" = yes; then
11827   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11828   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11829     # if the path contains ";" then we assume it to be the separator
11830     # otherwise default to the standard path separator (i.e. ":") - it is
11831     # assumed that no part of a normal pathname contains ";" but that should
11832     # okay in the real world where ";" in dirpaths is itself problematic.
11833     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11834   else
11835     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11836   fi
11837 else
11838   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11839 fi
11840 need_lib_prefix=unknown
11841 hardcode_into_libs=no
11842
11843 # when you set need_version to no, make sure it does not cause -set_version
11844 # flags to be left without arguments
11845 need_version=unknown
11846
11847 case $host_os in
11848 aix3*)
11849   version_type=linux
11850   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11851   shlibpath_var=LIBPATH
11852
11853   # AIX 3 has no versioning support, so we append a major version to the name.
11854   soname_spec='${libname}${release}${shared_ext}$major'
11855   ;;
11856
11857 aix4* | aix5*)
11858   version_type=linux
11859   need_lib_prefix=no
11860   need_version=no
11861   hardcode_into_libs=yes
11862   if test "$host_cpu" = ia64; then
11863     # AIX 5 supports IA64
11864     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11865     shlibpath_var=LD_LIBRARY_PATH
11866   else
11867     # With GCC up to 2.95.x, collect2 would create an import file
11868     # for dependence libraries.  The import file would start with
11869     # the line `#! .'.  This would cause the generated library to
11870     # depend on `.', always an invalid library.  This was fixed in
11871     # development snapshots of GCC prior to 3.0.
11872     case $host_os in
11873       aix4 | aix4.[01] | aix4.[01].*)
11874       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11875            echo ' yes '
11876            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11877         :
11878       else
11879         can_build_shared=no
11880       fi
11881       ;;
11882     esac
11883     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11884     # soname into executable. Probably we can add versioning support to
11885     # collect2, so additional links can be useful in future.
11886     if test "$aix_use_runtimelinking" = yes; then
11887       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11888       # instead of lib<name>.a to let people know that these are not
11889       # typical AIX shared libraries.
11890       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11891     else
11892       # We preserve .a as extension for shared libraries through AIX4.2
11893       # and later when we are not doing run time linking.
11894       library_names_spec='${libname}${release}.a $libname.a'
11895       soname_spec='${libname}${release}${shared_ext}$major'
11896     fi
11897     shlibpath_var=LIBPATH
11898   fi
11899   ;;
11900
11901 amigaos*)
11902   library_names_spec='$libname.ixlibrary $libname.a'
11903   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11904   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'
11905   ;;
11906
11907 beos*)
11908   library_names_spec='${libname}${shared_ext}'
11909   dynamic_linker="$host_os ld.so"
11910   shlibpath_var=LIBRARY_PATH
11911   ;;
11912
11913 bsdi[45]*)
11914   version_type=linux
11915   need_version=no
11916   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11917   soname_spec='${libname}${release}${shared_ext}$major'
11918   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11919   shlibpath_var=LD_LIBRARY_PATH
11920   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11921   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11922   # the default ld.so.conf also contains /usr/contrib/lib and
11923   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11924   # libtool to hard-code these into programs
11925   ;;
11926
11927 cygwin* | mingw* | pw32*)
11928   version_type=windows
11929   shrext_cmds=".dll"
11930   need_version=no
11931   need_lib_prefix=no
11932
11933   case $GCC,$host_os in
11934   yes,cygwin* | yes,mingw* | yes,pw32*)
11935     library_names_spec='$libname.dll.a'
11936     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11937     postinstall_cmds='base_file=`basename \${file}`~
11938       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11939       dldir=$destdir/`dirname \$dlpath`~
11940       test -d \$dldir || mkdir -p \$dldir~
11941       $install_prog $dir/$dlname \$dldir/$dlname~
11942       chmod a+x \$dldir/$dlname'
11943     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11944       dlpath=$dir/\$dldll~
11945        $rm \$dlpath'
11946     shlibpath_overrides_runpath=yes
11947
11948     case $host_os in
11949     cygwin*)
11950       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11951       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11952       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11953       ;;
11954     mingw*)
11955       # MinGW DLLs use traditional 'lib' prefix
11956       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11957       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11958       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11959         # It is most probably a Windows format PATH printed by
11960         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11961         # path with ; separators, and with drive letters. We can handle the
11962         # drive letters (cygwin fileutils understands them), so leave them,
11963         # especially as we might pass files found there to a mingw objdump,
11964         # which wouldn't understand a cygwinified path. Ahh.
11965         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11966       else
11967         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11968       fi
11969       ;;
11970     pw32*)
11971       # pw32 DLLs use 'pw' prefix rather than 'lib'
11972       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11973       ;;
11974     esac
11975     ;;
11976
11977   *)
11978     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11979     ;;
11980   esac
11981   dynamic_linker='Win32 ld.exe'
11982   # FIXME: first we should search . and the directory the executable is in
11983   shlibpath_var=PATH
11984   ;;
11985
11986 darwin* | rhapsody*)
11987   dynamic_linker="$host_os dyld"
11988   version_type=darwin
11989   need_lib_prefix=no
11990   need_version=no
11991   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11992   soname_spec='${libname}${release}${major}$shared_ext'
11993   shlibpath_overrides_runpath=yes
11994   shlibpath_var=DYLD_LIBRARY_PATH
11995   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11996   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11997   if test "$GCC" = yes; then
11998     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"`
11999   else
12000     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12001   fi
12002   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12003   ;;
12004
12005 dgux*)
12006   version_type=linux
12007   need_lib_prefix=no
12008   need_version=no
12009   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12010   soname_spec='${libname}${release}${shared_ext}$major'
12011   shlibpath_var=LD_LIBRARY_PATH
12012   ;;
12013
12014 freebsd1*)
12015   dynamic_linker=no
12016   ;;
12017
12018 kfreebsd*-gnu)
12019   version_type=linux
12020   need_lib_prefix=no
12021   need_version=no
12022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12023   soname_spec='${libname}${release}${shared_ext}$major'
12024   shlibpath_var=LD_LIBRARY_PATH
12025   shlibpath_overrides_runpath=no
12026   hardcode_into_libs=yes
12027   dynamic_linker='GNU ld.so'
12028   ;;
12029
12030 freebsd* | dragonfly*)
12031   # DragonFly does not have aout.  When/if they implement a new
12032   # versioning mechanism, adjust this.
12033   if test -x /usr/bin/objformat; then
12034     objformat=`/usr/bin/objformat`
12035   else
12036     case $host_os in
12037     freebsd[123]*) objformat=aout ;;
12038     *) objformat=elf ;;
12039     esac
12040   fi
12041   version_type=freebsd-$objformat
12042   case $version_type in
12043     freebsd-elf*)
12044       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12045       need_version=no
12046       need_lib_prefix=no
12047       ;;
12048     freebsd-*)
12049       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12050       need_version=yes
12051       ;;
12052   esac
12053   shlibpath_var=LD_LIBRARY_PATH
12054   case $host_os in
12055   freebsd2*)
12056     shlibpath_overrides_runpath=yes
12057     ;;
12058   freebsd3.[01]* | freebsdelf3.[01]*)
12059     shlibpath_overrides_runpath=yes
12060     hardcode_into_libs=yes
12061     ;;
12062   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12063   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12064     shlibpath_overrides_runpath=no
12065     hardcode_into_libs=yes
12066     ;;
12067   freebsd*) # from 4.6 on
12068     shlibpath_overrides_runpath=yes
12069     hardcode_into_libs=yes
12070     ;;
12071   esac
12072   ;;
12073
12074 gnu*)
12075   version_type=linux
12076   need_lib_prefix=no
12077   need_version=no
12078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12079   soname_spec='${libname}${release}${shared_ext}$major'
12080   shlibpath_var=LD_LIBRARY_PATH
12081   hardcode_into_libs=yes
12082   ;;
12083
12084 hpux9* | hpux10* | hpux11*)
12085   # Give a soname corresponding to the major version so that dld.sl refuses to
12086   # link against other versions.
12087   version_type=sunos
12088   need_lib_prefix=no
12089   need_version=no
12090   case $host_cpu in
12091   ia64*)
12092     shrext_cmds='.so'
12093     hardcode_into_libs=yes
12094     dynamic_linker="$host_os dld.so"
12095     shlibpath_var=LD_LIBRARY_PATH
12096     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12097     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12098     soname_spec='${libname}${release}${shared_ext}$major'
12099     if test "X$HPUX_IA64_MODE" = X32; then
12100       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12101     else
12102       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12103     fi
12104     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12105     ;;
12106    hppa*64*)
12107      shrext_cmds='.sl'
12108      hardcode_into_libs=yes
12109      dynamic_linker="$host_os dld.sl"
12110      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12111      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12112      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12113      soname_spec='${libname}${release}${shared_ext}$major'
12114      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12115      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12116      ;;
12117    *)
12118     shrext_cmds='.sl'
12119     dynamic_linker="$host_os dld.sl"
12120     shlibpath_var=SHLIB_PATH
12121     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12122     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12123     soname_spec='${libname}${release}${shared_ext}$major'
12124     ;;
12125   esac
12126   # HP-UX runs *really* slowly unless shared libraries are mode 555.
12127   postinstall_cmds='chmod 555 $lib'
12128   ;;
12129
12130 interix3*)
12131   version_type=linux
12132   need_lib_prefix=no
12133   need_version=no
12134   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12135   soname_spec='${libname}${release}${shared_ext}$major'
12136   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12137   shlibpath_var=LD_LIBRARY_PATH
12138   shlibpath_overrides_runpath=no
12139   hardcode_into_libs=yes
12140   ;;
12141
12142 irix5* | irix6* | nonstopux*)
12143   case $host_os in
12144     nonstopux*) version_type=nonstopux ;;
12145     *)
12146         if test "$lt_cv_prog_gnu_ld" = yes; then
12147                 version_type=linux
12148         else
12149                 version_type=irix
12150         fi ;;
12151   esac
12152   need_lib_prefix=no
12153   need_version=no
12154   soname_spec='${libname}${release}${shared_ext}$major'
12155   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12156   case $host_os in
12157   irix5* | nonstopux*)
12158     libsuff= shlibsuff=
12159     ;;
12160   *)
12161     case $LD in # libtool.m4 will add one of these switches to LD
12162     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12163       libsuff= shlibsuff= libmagic=32-bit;;
12164     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12165       libsuff=32 shlibsuff=N32 libmagic=N32;;
12166     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12167       libsuff=64 shlibsuff=64 libmagic=64-bit;;
12168     *) libsuff= shlibsuff= libmagic=never-match;;
12169     esac
12170     ;;
12171   esac
12172   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12173   shlibpath_overrides_runpath=no
12174   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12175   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12176   hardcode_into_libs=yes
12177   ;;
12178
12179 # No shared lib support for Linux oldld, aout, or coff.
12180 linux*oldld* | linux*aout* | linux*coff*)
12181   dynamic_linker=no
12182   ;;
12183
12184 # This must be Linux ELF.
12185 linux*)
12186   version_type=linux
12187   need_lib_prefix=no
12188   need_version=no
12189   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12190   soname_spec='${libname}${release}${shared_ext}$major'
12191   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12192   shlibpath_var=LD_LIBRARY_PATH
12193   shlibpath_overrides_runpath=no
12194   # This implies no fast_install, which is unacceptable.
12195   # Some rework will be needed to allow for fast_install
12196   # before this can be enabled.
12197   hardcode_into_libs=yes
12198
12199   # Append ld.so.conf contents to the search path
12200   if test -f /etc/ld.so.conf; then
12201     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' ' '`
12202     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12203   fi
12204
12205   # We used to test for /lib/ld.so.1 and disable shared libraries on
12206   # powerpc, because MkLinux only supported shared libraries with the
12207   # GNU dynamic linker.  Since this was broken with cross compilers,
12208   # most powerpc-linux boxes support dynamic linking these days and
12209   # people can always --disable-shared, the test was removed, and we
12210   # assume the GNU/Linux dynamic linker is in use.
12211   dynamic_linker='GNU/Linux ld.so'
12212   ;;
12213
12214 knetbsd*-gnu)
12215   version_type=linux
12216   need_lib_prefix=no
12217   need_version=no
12218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12219   soname_spec='${libname}${release}${shared_ext}$major'
12220   shlibpath_var=LD_LIBRARY_PATH
12221   shlibpath_overrides_runpath=no
12222   hardcode_into_libs=yes
12223   dynamic_linker='GNU ld.so'
12224   ;;
12225
12226 netbsd*)
12227   version_type=sunos
12228   need_lib_prefix=no
12229   need_version=no
12230   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12231     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12232     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12233     dynamic_linker='NetBSD (a.out) ld.so'
12234   else
12235     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12236     soname_spec='${libname}${release}${shared_ext}$major'
12237     dynamic_linker='NetBSD ld.elf_so'
12238   fi
12239   shlibpath_var=LD_LIBRARY_PATH
12240   shlibpath_overrides_runpath=yes
12241   hardcode_into_libs=yes
12242   ;;
12243
12244 newsos6)
12245   version_type=linux
12246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12247   shlibpath_var=LD_LIBRARY_PATH
12248   shlibpath_overrides_runpath=yes
12249   ;;
12250
12251 nto-qnx*)
12252   version_type=linux
12253   need_lib_prefix=no
12254   need_version=no
12255   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12256   soname_spec='${libname}${release}${shared_ext}$major'
12257   shlibpath_var=LD_LIBRARY_PATH
12258   shlibpath_overrides_runpath=yes
12259   ;;
12260
12261 openbsd*)
12262   version_type=sunos
12263   sys_lib_dlsearch_path_spec="/usr/lib"
12264   need_lib_prefix=no
12265   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12266   case $host_os in
12267     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12268     *)                         need_version=no  ;;
12269   esac
12270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12271   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12272   shlibpath_var=LD_LIBRARY_PATH
12273   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12274     case $host_os in
12275       openbsd2.[89] | openbsd2.[89].*)
12276         shlibpath_overrides_runpath=no
12277         ;;
12278       *)
12279         shlibpath_overrides_runpath=yes
12280         ;;
12281       esac
12282   else
12283     shlibpath_overrides_runpath=yes
12284   fi
12285   ;;
12286
12287 os2*)
12288   libname_spec='$name'
12289   shrext_cmds=".dll"
12290   need_lib_prefix=no
12291   library_names_spec='$libname${shared_ext} $libname.a'
12292   dynamic_linker='OS/2 ld.exe'
12293   shlibpath_var=LIBPATH
12294   ;;
12295
12296 osf3* | osf4* | osf5*)
12297   version_type=osf
12298   need_lib_prefix=no
12299   need_version=no
12300   soname_spec='${libname}${release}${shared_ext}$major'
12301   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12302   shlibpath_var=LD_LIBRARY_PATH
12303   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12304   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12305   ;;
12306
12307 solaris*)
12308   version_type=linux
12309   need_lib_prefix=no
12310   need_version=no
12311   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312   soname_spec='${libname}${release}${shared_ext}$major'
12313   shlibpath_var=LD_LIBRARY_PATH
12314   shlibpath_overrides_runpath=yes
12315   hardcode_into_libs=yes
12316   # ldd complains unless libraries are executable
12317   postinstall_cmds='chmod +x $lib'
12318   ;;
12319
12320 sunos4*)
12321   version_type=sunos
12322   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12323   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12324   shlibpath_var=LD_LIBRARY_PATH
12325   shlibpath_overrides_runpath=yes
12326   if test "$with_gnu_ld" = yes; then
12327     need_lib_prefix=no
12328   fi
12329   need_version=yes
12330   ;;
12331
12332 sysv4 | sysv4.3*)
12333   version_type=linux
12334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12335   soname_spec='${libname}${release}${shared_ext}$major'
12336   shlibpath_var=LD_LIBRARY_PATH
12337   case $host_vendor in
12338     sni)
12339       shlibpath_overrides_runpath=no
12340       need_lib_prefix=no
12341       export_dynamic_flag_spec='${wl}-Blargedynsym'
12342       runpath_var=LD_RUN_PATH
12343       ;;
12344     siemens)
12345       need_lib_prefix=no
12346       ;;
12347     motorola)
12348       need_lib_prefix=no
12349       need_version=no
12350       shlibpath_overrides_runpath=no
12351       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12352       ;;
12353   esac
12354   ;;
12355
12356 sysv4*MP*)
12357   if test -d /usr/nec ;then
12358     version_type=linux
12359     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12360     soname_spec='$libname${shared_ext}.$major'
12361     shlibpath_var=LD_LIBRARY_PATH
12362   fi
12363   ;;
12364
12365 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12366   version_type=freebsd-elf
12367   need_lib_prefix=no
12368   need_version=no
12369   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12370   soname_spec='${libname}${release}${shared_ext}$major'
12371   shlibpath_var=LD_LIBRARY_PATH
12372   hardcode_into_libs=yes
12373   if test "$with_gnu_ld" = yes; then
12374     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12375     shlibpath_overrides_runpath=no
12376   else
12377     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12378     shlibpath_overrides_runpath=yes
12379     case $host_os in
12380       sco3.2v5*)
12381         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12382         ;;
12383     esac
12384   fi
12385   sys_lib_dlsearch_path_spec='/usr/lib'
12386   ;;
12387
12388 uts4*)
12389   version_type=linux
12390   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12391   soname_spec='${libname}${release}${shared_ext}$major'
12392   shlibpath_var=LD_LIBRARY_PATH
12393   ;;
12394
12395 *)
12396   dynamic_linker=no
12397   ;;
12398 esac
12399 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12400 echo "${ECHO_T}$dynamic_linker" >&6
12401 test "$dynamic_linker" = no && can_build_shared=no
12402
12403 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12404 if test "$GCC" = yes; then
12405   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12406 fi
12407
12408 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
12409 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
12410 hardcode_action_CXX=
12411 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12412    test -n "$runpath_var_CXX" || \
12413    test "X$hardcode_automatic_CXX" = "Xyes" ; then
12414
12415   # We can hardcode non-existant directories.
12416   if test "$hardcode_direct_CXX" != no &&
12417      # If the only mechanism to avoid hardcoding is shlibpath_var, we
12418      # have to relink, otherwise we might link with an installed library
12419      # when we should be linking with a yet-to-be-installed one
12420      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12421      test "$hardcode_minus_L_CXX" != no; then
12422     # Linking always hardcodes the temporary library directory.
12423     hardcode_action_CXX=relink
12424   else
12425     # We can link without hardcoding, and we can hardcode nonexisting dirs.
12426     hardcode_action_CXX=immediate
12427   fi
12428 else
12429   # We cannot hardcode anything, or else we can only hardcode existing
12430   # directories.
12431   hardcode_action_CXX=unsupported
12432 fi
12433 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
12434 echo "${ECHO_T}$hardcode_action_CXX" >&6
12435
12436 if test "$hardcode_action_CXX" = relink; then
12437   # Fast installation is not supported
12438   enable_fast_install=no
12439 elif test "$shlibpath_overrides_runpath" = yes ||
12440      test "$enable_shared" = no; then
12441   # Fast installation is not necessary
12442   enable_fast_install=needless
12443 fi
12444
12445
12446 # The else clause should only fire when bootstrapping the
12447 # libtool distribution, otherwise you forgot to ship ltmain.sh
12448 # with your package, and you will get complaints that there are
12449 # no rules to generate ltmain.sh.
12450 if test -f "$ltmain"; then
12451   # See if we are running on zsh, and set the options which allow our commands through
12452   # without removal of \ escapes.
12453   if test -n "${ZSH_VERSION+set}" ; then
12454     setopt NO_GLOB_SUBST
12455   fi
12456   # Now quote all the things that may contain metacharacters while being
12457   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12458   # variables and quote the copies for generation of the libtool script.
12459   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12460     SED SHELL STRIP \
12461     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12462     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12463     deplibs_check_method reload_flag reload_cmds need_locks \
12464     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12465     lt_cv_sys_global_symbol_to_c_name_address \
12466     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12467     old_postinstall_cmds old_postuninstall_cmds \
12468     compiler_CXX \
12469     CC_CXX \
12470     LD_CXX \
12471     lt_prog_compiler_wl_CXX \
12472     lt_prog_compiler_pic_CXX \
12473     lt_prog_compiler_static_CXX \
12474     lt_prog_compiler_no_builtin_flag_CXX \
12475     export_dynamic_flag_spec_CXX \
12476     thread_safe_flag_spec_CXX \
12477     whole_archive_flag_spec_CXX \
12478     enable_shared_with_static_runtimes_CXX \
12479     old_archive_cmds_CXX \
12480     old_archive_from_new_cmds_CXX \
12481     predep_objects_CXX \
12482     postdep_objects_CXX \
12483     predeps_CXX \
12484     postdeps_CXX \
12485     compiler_lib_search_path_CXX \
12486     archive_cmds_CXX \
12487     archive_expsym_cmds_CXX \
12488     postinstall_cmds_CXX \
12489     postuninstall_cmds_CXX \
12490     old_archive_from_expsyms_cmds_CXX \
12491     allow_undefined_flag_CXX \
12492     no_undefined_flag_CXX \
12493     export_symbols_cmds_CXX \
12494     hardcode_libdir_flag_spec_CXX \
12495     hardcode_libdir_flag_spec_ld_CXX \
12496     hardcode_libdir_separator_CXX \
12497     hardcode_automatic_CXX \
12498     module_cmds_CXX \
12499     module_expsym_cmds_CXX \
12500     lt_cv_prog_compiler_c_o_CXX \
12501     exclude_expsyms_CXX \
12502     include_expsyms_CXX; do
12503
12504     case $var in
12505     old_archive_cmds_CXX | \
12506     old_archive_from_new_cmds_CXX | \
12507     archive_cmds_CXX | \
12508     archive_expsym_cmds_CXX | \
12509     module_cmds_CXX | \
12510     module_expsym_cmds_CXX | \
12511     old_archive_from_expsyms_cmds_CXX | \
12512     export_symbols_cmds_CXX | \
12513     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12514     postinstall_cmds | postuninstall_cmds | \
12515     old_postinstall_cmds | old_postuninstall_cmds | \
12516     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12517       # Double-quote double-evaled strings.
12518       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12519       ;;
12520     *)
12521       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12522       ;;
12523     esac
12524   done
12525
12526   case $lt_echo in
12527   *'\$0 --fallback-echo"')
12528     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12529     ;;
12530   esac
12531
12532 cfgfile="$ofile"
12533
12534   cat <<__EOF__ >> "$cfgfile"
12535 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12536
12537 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12538
12539 # Shell to use when invoking shell scripts.
12540 SHELL=$lt_SHELL
12541
12542 # Whether or not to build shared libraries.
12543 build_libtool_libs=$enable_shared
12544
12545 # Whether or not to build static libraries.
12546 build_old_libs=$enable_static
12547
12548 # Whether or not to add -lc for building shared libraries.
12549 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12550
12551 # Whether or not to disallow shared libs when runtime libs are static
12552 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12553
12554 # Whether or not to optimize for fast installation.
12555 fast_install=$enable_fast_install
12556
12557 # The host system.
12558 host_alias=$host_alias
12559 host=$host
12560 host_os=$host_os
12561
12562 # The build system.
12563 build_alias=$build_alias
12564 build=$build
12565 build_os=$build_os
12566
12567 # An echo program that does not interpret backslashes.
12568 echo=$lt_echo
12569
12570 # The archiver.
12571 AR=$lt_AR
12572 AR_FLAGS=$lt_AR_FLAGS
12573
12574 # A C compiler.
12575 LTCC=$lt_LTCC
12576
12577 # LTCC compiler flags.
12578 LTCFLAGS=$lt_LTCFLAGS
12579
12580 # A language-specific compiler.
12581 CC=$lt_compiler_CXX
12582
12583 # Is the compiler the GNU C compiler?
12584 with_gcc=$GCC_CXX
12585
12586 # An ERE matcher.
12587 EGREP=$lt_EGREP
12588
12589 # The linker used to build libraries.
12590 LD=$lt_LD_CXX
12591
12592 # Whether we need hard or soft links.
12593 LN_S=$lt_LN_S
12594
12595 # A BSD-compatible nm program.
12596 NM=$lt_NM
12597
12598 # A symbol stripping program
12599 STRIP=$lt_STRIP
12600
12601 # Used to examine libraries when file_magic_cmd begins "file"
12602 MAGIC_CMD=$MAGIC_CMD
12603
12604 # Used on cygwin: DLL creation program.
12605 DLLTOOL="$DLLTOOL"
12606
12607 # Used on cygwin: object dumper.
12608 OBJDUMP="$OBJDUMP"
12609
12610 # Used on cygwin: assembler.
12611 AS="$AS"
12612
12613 # The name of the directory that contains temporary libtool files.
12614 objdir=$objdir
12615
12616 # How to create reloadable object files.
12617 reload_flag=$lt_reload_flag
12618 reload_cmds=$lt_reload_cmds
12619
12620 # How to pass a linker flag through the compiler.
12621 wl=$lt_lt_prog_compiler_wl_CXX
12622
12623 # Object file suffix (normally "o").
12624 objext="$ac_objext"
12625
12626 # Old archive suffix (normally "a").
12627 libext="$libext"
12628
12629 # Shared library suffix (normally ".so").
12630 shrext_cmds='$shrext_cmds'
12631
12632 # Executable file suffix (normally "").
12633 exeext="$exeext"
12634
12635 # Additional compiler flags for building library objects.
12636 pic_flag=$lt_lt_prog_compiler_pic_CXX
12637 pic_mode=$pic_mode
12638
12639 # What is the maximum length of a command?
12640 max_cmd_len=$lt_cv_sys_max_cmd_len
12641
12642 # Does compiler simultaneously support -c and -o options?
12643 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12644
12645 # Must we lock files when doing compilation?
12646 need_locks=$lt_need_locks
12647
12648 # Do we need the lib prefix for modules?
12649 need_lib_prefix=$need_lib_prefix
12650
12651 # Do we need a version for libraries?
12652 need_version=$need_version
12653
12654 # Whether dlopen is supported.
12655 dlopen_support=$enable_dlopen
12656
12657 # Whether dlopen of programs is supported.
12658 dlopen_self=$enable_dlopen_self
12659
12660 # Whether dlopen of statically linked programs is supported.
12661 dlopen_self_static=$enable_dlopen_self_static
12662
12663 # Compiler flag to prevent dynamic linking.
12664 link_static_flag=$lt_lt_prog_compiler_static_CXX
12665
12666 # Compiler flag to turn off builtin functions.
12667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12668
12669 # Compiler flag to allow reflexive dlopens.
12670 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12671
12672 # Compiler flag to generate shared objects directly from archives.
12673 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12674
12675 # Compiler flag to generate thread-safe objects.
12676 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12677
12678 # Library versioning type.
12679 version_type=$version_type
12680
12681 # Format of library name prefix.
12682 libname_spec=$lt_libname_spec
12683
12684 # List of archive names.  First name is the real one, the rest are links.
12685 # The last name is the one that the linker finds with -lNAME.
12686 library_names_spec=$lt_library_names_spec
12687
12688 # The coded name of the library, if different from the real name.
12689 soname_spec=$lt_soname_spec
12690
12691 # Commands used to build and install an old-style archive.
12692 RANLIB=$lt_RANLIB
12693 old_archive_cmds=$lt_old_archive_cmds_CXX
12694 old_postinstall_cmds=$lt_old_postinstall_cmds
12695 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12696
12697 # Create an old-style archive from a shared archive.
12698 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12699
12700 # Create a temporary old-style archive to link instead of a shared archive.
12701 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12702
12703 # Commands used to build and install a shared archive.
12704 archive_cmds=$lt_archive_cmds_CXX
12705 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12706 postinstall_cmds=$lt_postinstall_cmds
12707 postuninstall_cmds=$lt_postuninstall_cmds
12708
12709 # Commands used to build a loadable module (assumed same as above if empty)
12710 module_cmds=$lt_module_cmds_CXX
12711 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12712
12713 # Commands to strip libraries.
12714 old_striplib=$lt_old_striplib
12715 striplib=$lt_striplib
12716
12717 # Dependencies to place before the objects being linked to create a
12718 # shared library.
12719 predep_objects=$lt_predep_objects_CXX
12720
12721 # Dependencies to place after the objects being linked to create a
12722 # shared library.
12723 postdep_objects=$lt_postdep_objects_CXX
12724
12725 # Dependencies to place before the objects being linked to create a
12726 # shared library.
12727 predeps=$lt_predeps_CXX
12728
12729 # Dependencies to place after the objects being linked to create a
12730 # shared library.
12731 postdeps=$lt_postdeps_CXX
12732
12733 # The library search path used internally by the compiler when linking
12734 # a shared library.
12735 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12736
12737 # Method to check whether dependent libraries are shared objects.
12738 deplibs_check_method=$lt_deplibs_check_method
12739
12740 # Command to use when deplibs_check_method == file_magic.
12741 file_magic_cmd=$lt_file_magic_cmd
12742
12743 # Flag that allows shared libraries with undefined symbols to be built.
12744 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12745
12746 # Flag that forces no undefined symbols.
12747 no_undefined_flag=$lt_no_undefined_flag_CXX
12748
12749 # Commands used to finish a libtool library installation in a directory.
12750 finish_cmds=$lt_finish_cmds
12751
12752 # Same as above, but a single script fragment to be evaled but not shown.
12753 finish_eval=$lt_finish_eval
12754
12755 # Take the output of nm and produce a listing of raw symbols and C names.
12756 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12757
12758 # Transform the output of nm in a proper C declaration
12759 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12760
12761 # Transform the output of nm in a C name address pair
12762 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12763
12764 # This is the shared library runtime path variable.
12765 runpath_var=$runpath_var
12766
12767 # This is the shared library path variable.
12768 shlibpath_var=$shlibpath_var
12769
12770 # Is shlibpath searched before the hard-coded library search path?
12771 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12772
12773 # How to hardcode a shared library path into an executable.
12774 hardcode_action=$hardcode_action_CXX
12775
12776 # Whether we should hardcode library paths into libraries.
12777 hardcode_into_libs=$hardcode_into_libs
12778
12779 # Flag to hardcode \$libdir into a binary during linking.
12780 # This must work even if \$libdir does not exist.
12781 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12782
12783 # If ld is used when linking, flag to hardcode \$libdir into
12784 # a binary during linking. This must work even if \$libdir does
12785 # not exist.
12786 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12787
12788 # Whether we need a single -rpath flag with a separated argument.
12789 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12790
12791 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12792 # resulting binary.
12793 hardcode_direct=$hardcode_direct_CXX
12794
12795 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12796 # resulting binary.
12797 hardcode_minus_L=$hardcode_minus_L_CXX
12798
12799 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12800 # the resulting binary.
12801 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12802
12803 # Set to yes if building a shared library automatically hardcodes DIR into the library
12804 # and all subsequent libraries and executables linked against it.
12805 hardcode_automatic=$hardcode_automatic_CXX
12806
12807 # Variables whose values should be saved in libtool wrapper scripts and
12808 # restored at relink time.
12809 variables_saved_for_relink="$variables_saved_for_relink"
12810
12811 # Whether libtool must link a program against all its dependency libraries.
12812 link_all_deplibs=$link_all_deplibs_CXX
12813
12814 # Compile-time system search path for libraries
12815 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12816
12817 # Run-time system search path for libraries
12818 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12819
12820 # Fix the shell variable \$srcfile for the compiler.
12821 fix_srcfile_path="$fix_srcfile_path_CXX"
12822
12823 # Set to yes if exported symbols are required.
12824 always_export_symbols=$always_export_symbols_CXX
12825
12826 # The commands to list exported symbols.
12827 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12828
12829 # The commands to extract the exported symbol list from a shared archive.
12830 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12831
12832 # Symbols that should not be listed in the preloaded symbols.
12833 exclude_expsyms=$lt_exclude_expsyms_CXX
12834
12835 # Symbols that must always be exported.
12836 include_expsyms=$lt_include_expsyms_CXX
12837
12838 # ### END LIBTOOL TAG CONFIG: $tagname
12839
12840 __EOF__
12841
12842
12843 else
12844   # If there is no Makefile yet, we rely on a make rule to execute
12845   # `config.status --recheck' to rerun these tests and create the
12846   # libtool script then.
12847   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
12848   if test -f "$ltmain_in"; then
12849     test -f Makefile && make "$ltmain"
12850   fi
12851 fi
12852
12853
12854 ac_ext=c
12855 ac_cpp='$CPP $CPPFLAGS'
12856 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12857 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12858 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12859
12860 CC=$lt_save_CC
12861 LDCXX=$LD
12862 LD=$lt_save_LD
12863 GCC=$lt_save_GCC
12864 with_gnu_ldcxx=$with_gnu_ld
12865 with_gnu_ld=$lt_save_with_gnu_ld
12866 lt_cv_path_LDCXX=$lt_cv_path_LD
12867 lt_cv_path_LD=$lt_save_path_LD
12868 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12869 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12870
12871         else
12872           tagname=""
12873         fi
12874         ;;
12875
12876       F77)
12877         if test -n "$F77" && test "X$F77" != "Xno"; then
12878
12879 ac_ext=f
12880 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12881 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12882 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12883
12884
12885 archive_cmds_need_lc_F77=no
12886 allow_undefined_flag_F77=
12887 always_export_symbols_F77=no
12888 archive_expsym_cmds_F77=
12889 export_dynamic_flag_spec_F77=
12890 hardcode_direct_F77=no
12891 hardcode_libdir_flag_spec_F77=
12892 hardcode_libdir_flag_spec_ld_F77=
12893 hardcode_libdir_separator_F77=
12894 hardcode_minus_L_F77=no
12895 hardcode_automatic_F77=no
12896 module_cmds_F77=
12897 module_expsym_cmds_F77=
12898 link_all_deplibs_F77=unknown
12899 old_archive_cmds_F77=$old_archive_cmds
12900 no_undefined_flag_F77=
12901 whole_archive_flag_spec_F77=
12902 enable_shared_with_static_runtimes_F77=no
12903
12904 # Source file extension for f77 test sources.
12905 ac_ext=f
12906
12907 # Object file extension for compiled f77 test sources.
12908 objext=o
12909 objext_F77=$objext
12910
12911 # Code to be used in simple compile tests
12912 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12913
12914 # Code to be used in simple link tests
12915 lt_simple_link_test_code="      program t\n      end\n"
12916
12917 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12918
12919 # If no C compiler was specified, use CC.
12920 LTCC=${LTCC-"$CC"}
12921
12922 # If no C compiler flags were specified, use CFLAGS.
12923 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12924
12925 # Allow CC to be a program name with arguments.
12926 compiler=$CC
12927
12928
12929 # save warnings/boilerplate of simple test code
12930 ac_outfile=conftest.$ac_objext
12931 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
12932 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12933 _lt_compiler_boilerplate=`cat conftest.err`
12934 $rm conftest*
12935
12936 ac_outfile=conftest.$ac_objext
12937 printf "$lt_simple_link_test_code" >conftest.$ac_ext
12938 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12939 _lt_linker_boilerplate=`cat conftest.err`
12940 $rm conftest*
12941
12942
12943 # Allow CC to be a program name with arguments.
12944 lt_save_CC="$CC"
12945 CC=${F77-"f77"}
12946 compiler=$CC
12947 compiler_F77=$CC
12948 for cc_temp in $compiler""; do
12949   case $cc_temp in
12950     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12951     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12952     \-*) ;;
12953     *) break;;
12954   esac
12955 done
12956 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12957
12958
12959 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12960 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12961 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12962 echo "${ECHO_T}$can_build_shared" >&6
12963
12964 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12965 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12966 test "$can_build_shared" = "no" && enable_shared=no
12967
12968 # On AIX, shared libraries and static libraries use the same namespace, and
12969 # are all built from PIC.
12970 case $host_os in
12971 aix3*)
12972   test "$enable_shared" = yes && enable_static=no
12973   if test -n "$RANLIB"; then
12974     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12975     postinstall_cmds='$RANLIB $lib'
12976   fi
12977   ;;
12978 aix4* | aix5*)
12979   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12980     test "$enable_shared" = yes && enable_static=no
12981   fi
12982   ;;
12983 esac
12984 echo "$as_me:$LINENO: result: $enable_shared" >&5
12985 echo "${ECHO_T}$enable_shared" >&6
12986
12987 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12988 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12989 # Make sure either enable_shared or enable_static is yes.
12990 test "$enable_shared" = yes || enable_static=yes
12991 echo "$as_me:$LINENO: result: $enable_static" >&5
12992 echo "${ECHO_T}$enable_static" >&6
12993
12994 GCC_F77="$G77"
12995 LD_F77="$LD"
12996
12997 lt_prog_compiler_wl_F77=
12998 lt_prog_compiler_pic_F77=
12999 lt_prog_compiler_static_F77=
13000
13001 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13002 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13003
13004   if test "$GCC" = yes; then
13005     lt_prog_compiler_wl_F77='-Wl,'
13006     lt_prog_compiler_static_F77='-static'
13007
13008     case $host_os in
13009       aix*)
13010       # All AIX code is PIC.
13011       if test "$host_cpu" = ia64; then
13012         # AIX 5 now supports IA64 processor
13013         lt_prog_compiler_static_F77='-Bstatic'
13014       fi
13015       ;;
13016
13017     amigaos*)
13018       # FIXME: we need at least 68020 code to build shared libraries, but
13019       # adding the `-m68020' flag to GCC prevents building anything better,
13020       # like `-m68040'.
13021       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13022       ;;
13023
13024     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13025       # PIC is the default for these OSes.
13026       ;;
13027
13028     mingw* | pw32* | os2*)
13029       # This hack is so that the source file can tell whether it is being
13030       # built for inclusion in a dll (and should export symbols for example).
13031       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13032       ;;
13033
13034     darwin* | rhapsody*)
13035       # PIC is the default on this platform
13036       # Common symbols not allowed in MH_DYLIB files
13037       lt_prog_compiler_pic_F77='-fno-common'
13038       ;;
13039
13040     interix3*)
13041       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13042       # Instead, we relocate shared libraries at runtime.
13043       ;;
13044
13045     msdosdjgpp*)
13046       # Just because we use GCC doesn't mean we suddenly get shared libraries
13047       # on systems that don't support them.
13048       lt_prog_compiler_can_build_shared_F77=no
13049       enable_shared=no
13050       ;;
13051
13052     sysv4*MP*)
13053       if test -d /usr/nec; then
13054         lt_prog_compiler_pic_F77=-Kconform_pic
13055       fi
13056       ;;
13057
13058     hpux*)
13059       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13060       # not for PA HP-UX.
13061       case $host_cpu in
13062       hppa*64*|ia64*)
13063         # +Z the default
13064         ;;
13065       *)
13066         lt_prog_compiler_pic_F77='-fPIC'
13067         ;;
13068       esac
13069       ;;
13070
13071     *)
13072       lt_prog_compiler_pic_F77='-fPIC'
13073       ;;
13074     esac
13075   else
13076     # PORTME Check for flag to pass linker flags through the system compiler.
13077     case $host_os in
13078     aix*)
13079       lt_prog_compiler_wl_F77='-Wl,'
13080       if test "$host_cpu" = ia64; then
13081         # AIX 5 now supports IA64 processor
13082         lt_prog_compiler_static_F77='-Bstatic'
13083       else
13084         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13085       fi
13086       ;;
13087       darwin*)
13088         # PIC is the default on this platform
13089         # Common symbols not allowed in MH_DYLIB files
13090        case $cc_basename in
13091          xlc*)
13092          lt_prog_compiler_pic_F77='-qnocommon'
13093          lt_prog_compiler_wl_F77='-Wl,'
13094          ;;
13095        esac
13096        ;;
13097
13098     mingw* | pw32* | os2*)
13099       # This hack is so that the source file can tell whether it is being
13100       # built for inclusion in a dll (and should export symbols for example).
13101       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13102       ;;
13103
13104     hpux9* | hpux10* | hpux11*)
13105       lt_prog_compiler_wl_F77='-Wl,'
13106       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13107       # not for PA HP-UX.
13108       case $host_cpu in
13109       hppa*64*|ia64*)
13110         # +Z the default
13111         ;;
13112       *)
13113         lt_prog_compiler_pic_F77='+Z'
13114         ;;
13115       esac
13116       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13117       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13118       ;;
13119
13120     irix5* | irix6* | nonstopux*)
13121       lt_prog_compiler_wl_F77='-Wl,'
13122       # PIC (with -KPIC) is the default.
13123       lt_prog_compiler_static_F77='-non_shared'
13124       ;;
13125
13126     newsos6)
13127       lt_prog_compiler_pic_F77='-KPIC'
13128       lt_prog_compiler_static_F77='-Bstatic'
13129       ;;
13130
13131     linux*)
13132       case $cc_basename in
13133       icc* | ecc*)
13134         lt_prog_compiler_wl_F77='-Wl,'
13135         lt_prog_compiler_pic_F77='-KPIC'
13136         lt_prog_compiler_static_F77='-static'
13137         ;;
13138       pgcc* | pgf77* | pgf90* | pgf95*)
13139         # Portland Group compilers (*not* the Pentium gcc compiler,
13140         # which looks to be a dead project)
13141         lt_prog_compiler_wl_F77='-Wl,'
13142         lt_prog_compiler_pic_F77='-fpic'
13143         lt_prog_compiler_static_F77='-Bstatic'
13144         ;;
13145       ccc*)
13146         lt_prog_compiler_wl_F77='-Wl,'
13147         # All Alpha code is PIC.
13148         lt_prog_compiler_static_F77='-non_shared'
13149         ;;
13150       esac
13151       ;;
13152
13153     osf3* | osf4* | osf5*)
13154       lt_prog_compiler_wl_F77='-Wl,'
13155       # All OSF/1 code is PIC.
13156       lt_prog_compiler_static_F77='-non_shared'
13157       ;;
13158
13159     solaris*)
13160       lt_prog_compiler_pic_F77='-KPIC'
13161       lt_prog_compiler_static_F77='-Bstatic'
13162       case $cc_basename in
13163       f77* | f90* | f95*)
13164         lt_prog_compiler_wl_F77='-Qoption ld ';;
13165       *)
13166         lt_prog_compiler_wl_F77='-Wl,';;
13167       esac
13168       ;;
13169
13170     sunos4*)
13171       lt_prog_compiler_wl_F77='-Qoption ld '
13172       lt_prog_compiler_pic_F77='-PIC'
13173       lt_prog_compiler_static_F77='-Bstatic'
13174       ;;
13175
13176     sysv4 | sysv4.2uw2* | sysv4.3*)
13177       lt_prog_compiler_wl_F77='-Wl,'
13178       lt_prog_compiler_pic_F77='-KPIC'
13179       lt_prog_compiler_static_F77='-Bstatic'
13180       ;;
13181
13182     sysv4*MP*)
13183       if test -d /usr/nec ;then
13184         lt_prog_compiler_pic_F77='-Kconform_pic'
13185         lt_prog_compiler_static_F77='-Bstatic'
13186       fi
13187       ;;
13188
13189     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13190       lt_prog_compiler_wl_F77='-Wl,'
13191       lt_prog_compiler_pic_F77='-KPIC'
13192       lt_prog_compiler_static_F77='-Bstatic'
13193       ;;
13194
13195     unicos*)
13196       lt_prog_compiler_wl_F77='-Wl,'
13197       lt_prog_compiler_can_build_shared_F77=no
13198       ;;
13199
13200     uts4*)
13201       lt_prog_compiler_pic_F77='-pic'
13202       lt_prog_compiler_static_F77='-Bstatic'
13203       ;;
13204
13205     *)
13206       lt_prog_compiler_can_build_shared_F77=no
13207       ;;
13208     esac
13209   fi
13210
13211 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13212 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13213
13214 #
13215 # Check to make sure the PIC flag actually works.
13216 #
13217 if test -n "$lt_prog_compiler_pic_F77"; then
13218
13219 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13220 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13221 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13222   echo $ECHO_N "(cached) $ECHO_C" >&6
13223 else
13224   lt_prog_compiler_pic_works_F77=no
13225   ac_outfile=conftest.$ac_objext
13226    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13227    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13228    # Insert the option either (1) after the last *FLAGS variable, or
13229    # (2) before a word containing "conftest.", or (3) at the end.
13230    # Note that $ac_compile itself does not contain backslashes and begins
13231    # with a dollar sign (not a hyphen), so the echo should work correctly.
13232    # The option is referenced via a variable to avoid confusing sed.
13233    lt_compile=`echo "$ac_compile" | $SED \
13234    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13235    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13236    -e 's:$: $lt_compiler_flag:'`
13237    (eval echo "\"\$as_me:13237: $lt_compile\"" >&5)
13238    (eval "$lt_compile" 2>conftest.err)
13239    ac_status=$?
13240    cat conftest.err >&5
13241    echo "$as_me:13241: \$? = $ac_status" >&5
13242    if (exit $ac_status) && test -s "$ac_outfile"; then
13243      # The compiler can only warn and ignore the option if not recognized
13244      # So say no if there are warnings other than the usual output.
13245      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13246      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13248        lt_prog_compiler_pic_works_F77=yes
13249      fi
13250    fi
13251    $rm conftest*
13252
13253 fi
13254 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13255 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13256
13257 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13258     case $lt_prog_compiler_pic_F77 in
13259      "" | " "*) ;;
13260      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13261      esac
13262 else
13263     lt_prog_compiler_pic_F77=
13264      lt_prog_compiler_can_build_shared_F77=no
13265 fi
13266
13267 fi
13268 case $host_os in
13269   # For platforms which do not support PIC, -DPIC is meaningless:
13270   *djgpp*)
13271     lt_prog_compiler_pic_F77=
13272     ;;
13273   *)
13274     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13275     ;;
13276 esac
13277
13278 #
13279 # Check to make sure the static flag actually works.
13280 #
13281 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13282 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13283 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13284 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
13285   echo $ECHO_N "(cached) $ECHO_C" >&6
13286 else
13287   lt_prog_compiler_static_works_F77=no
13288    save_LDFLAGS="$LDFLAGS"
13289    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13290    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13291    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13292      # The linker can only warn and ignore the option if not recognized
13293      # So say no if there are warnings
13294      if test -s conftest.err; then
13295        # Append any errors to the config.log.
13296        cat conftest.err 1>&5
13297        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13298        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13299        if diff conftest.exp conftest.er2 >/dev/null; then
13300          lt_prog_compiler_static_works_F77=yes
13301        fi
13302      else
13303        lt_prog_compiler_static_works_F77=yes
13304      fi
13305    fi
13306    $rm conftest*
13307    LDFLAGS="$save_LDFLAGS"
13308
13309 fi
13310 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
13311 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
13312
13313 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13314     :
13315 else
13316     lt_prog_compiler_static_F77=
13317 fi
13318
13319
13320 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13321 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13322 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13323   echo $ECHO_N "(cached) $ECHO_C" >&6
13324 else
13325   lt_cv_prog_compiler_c_o_F77=no
13326    $rm -r conftest 2>/dev/null
13327    mkdir conftest
13328    cd conftest
13329    mkdir out
13330    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13331
13332    lt_compiler_flag="-o out/conftest2.$ac_objext"
13333    # Insert the option either (1) after the last *FLAGS variable, or
13334    # (2) before a word containing "conftest.", or (3) at the end.
13335    # Note that $ac_compile itself does not contain backslashes and begins
13336    # with a dollar sign (not a hyphen), so the echo should work correctly.
13337    lt_compile=`echo "$ac_compile" | $SED \
13338    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13339    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13340    -e 's:$: $lt_compiler_flag:'`
13341    (eval echo "\"\$as_me:13341: $lt_compile\"" >&5)
13342    (eval "$lt_compile" 2>out/conftest.err)
13343    ac_status=$?
13344    cat out/conftest.err >&5
13345    echo "$as_me:13345: \$? = $ac_status" >&5
13346    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13347    then
13348      # The compiler can only warn and ignore the option if not recognized
13349      # So say no if there are warnings
13350      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13351      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13352      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13353        lt_cv_prog_compiler_c_o_F77=yes
13354      fi
13355    fi
13356    chmod u+w . 2>&5
13357    $rm conftest*
13358    # SGI C++ compiler will create directory out/ii_files/ for
13359    # template instantiation
13360    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13361    $rm out/* && rmdir out
13362    cd ..
13363    rmdir conftest
13364    $rm conftest*
13365
13366 fi
13367 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13368 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13369
13370
13371 hard_links="nottested"
13372 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13373   # do not overwrite the value of need_locks provided by the user
13374   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13375 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13376   hard_links=yes
13377   $rm conftest*
13378   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13379   touch conftest.a
13380   ln conftest.a conftest.b 2>&5 || hard_links=no
13381   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13382   echo "$as_me:$LINENO: result: $hard_links" >&5
13383 echo "${ECHO_T}$hard_links" >&6
13384   if test "$hard_links" = no; then
13385     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13386 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13387     need_locks=warn
13388   fi
13389 else
13390   need_locks=no
13391 fi
13392
13393 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13394 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13395
13396   runpath_var=
13397   allow_undefined_flag_F77=
13398   enable_shared_with_static_runtimes_F77=no
13399   archive_cmds_F77=
13400   archive_expsym_cmds_F77=
13401   old_archive_From_new_cmds_F77=
13402   old_archive_from_expsyms_cmds_F77=
13403   export_dynamic_flag_spec_F77=
13404   whole_archive_flag_spec_F77=
13405   thread_safe_flag_spec_F77=
13406   hardcode_libdir_flag_spec_F77=
13407   hardcode_libdir_flag_spec_ld_F77=
13408   hardcode_libdir_separator_F77=
13409   hardcode_direct_F77=no
13410   hardcode_minus_L_F77=no
13411   hardcode_shlibpath_var_F77=unsupported
13412   link_all_deplibs_F77=unknown
13413   hardcode_automatic_F77=no
13414   module_cmds_F77=
13415   module_expsym_cmds_F77=
13416   always_export_symbols_F77=no
13417   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13418   # include_expsyms should be a list of space-separated symbols to be *always*
13419   # included in the symbol list
13420   include_expsyms_F77=
13421   # exclude_expsyms can be an extended regexp of symbols to exclude
13422   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13423   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13424   # as well as any symbol that contains `d'.
13425   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13426   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13427   # platforms (ab)use it in PIC code, but their linkers get confused if
13428   # the symbol is explicitly referenced.  Since portable code cannot
13429   # rely on this symbol name, it's probably fine to never include it in
13430   # preloaded symbol tables.
13431   extract_expsyms_cmds=
13432   # Just being paranoid about ensuring that cc_basename is set.
13433   for cc_temp in $compiler""; do
13434   case $cc_temp in
13435     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13436     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13437     \-*) ;;
13438     *) break;;
13439   esac
13440 done
13441 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13442
13443   case $host_os in
13444   cygwin* | mingw* | pw32*)
13445     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13446     # When not using gcc, we currently assume that we are using
13447     # Microsoft Visual C++.
13448     if test "$GCC" != yes; then
13449       with_gnu_ld=no
13450     fi
13451     ;;
13452   interix*)
13453     # we just hope/assume this is gcc and not c89 (= MSVC++)
13454     with_gnu_ld=yes
13455     ;;
13456   openbsd*)
13457     with_gnu_ld=no
13458     ;;
13459   esac
13460
13461   ld_shlibs_F77=yes
13462   if test "$with_gnu_ld" = yes; then
13463     # If archive_cmds runs LD, not CC, wlarc should be empty
13464     wlarc='${wl}'
13465
13466     # Set some defaults for GNU ld with shared library support. These
13467     # are reset later if shared libraries are not supported. Putting them
13468     # here allows them to be overridden if necessary.
13469     runpath_var=LD_RUN_PATH
13470     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13471     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13472     # ancient GNU ld didn't support --whole-archive et. al.
13473     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13474         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13475       else
13476         whole_archive_flag_spec_F77=
13477     fi
13478     supports_anon_versioning=no
13479     case `$LD -v 2>/dev/null` in
13480       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13481       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13482       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13483       *\ 2.11.*) ;; # other 2.11 versions
13484       *) supports_anon_versioning=yes ;;
13485     esac
13486
13487     # See if GNU ld supports shared libraries.
13488     case $host_os in
13489     aix3* | aix4* | aix5*)
13490       # On AIX/PPC, the GNU linker is very broken
13491       if test "$host_cpu" != ia64; then
13492         ld_shlibs_F77=no
13493         cat <<EOF 1>&2
13494
13495 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13496 *** to be unable to reliably create shared libraries on AIX.
13497 *** Therefore, libtool is disabling shared libraries support.  If you
13498 *** really care for shared libraries, you may want to modify your PATH
13499 *** so that a non-GNU linker is found, and then restart.
13500
13501 EOF
13502       fi
13503       ;;
13504
13505     amigaos*)
13506       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)'
13507       hardcode_libdir_flag_spec_F77='-L$libdir'
13508       hardcode_minus_L_F77=yes
13509
13510       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13511       # that the semantics of dynamic libraries on AmigaOS, at least up
13512       # to version 4, is to share data among multiple programs linked
13513       # with the same dynamic library.  Since this doesn't match the
13514       # behavior of shared libraries on other platforms, we can't use
13515       # them.
13516       ld_shlibs_F77=no
13517       ;;
13518
13519     beos*)
13520       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13521         allow_undefined_flag_F77=unsupported
13522         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13523         # support --undefined.  This deserves some investigation.  FIXME
13524         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13525       else
13526         ld_shlibs_F77=no
13527       fi
13528       ;;
13529
13530     cygwin* | mingw* | pw32*)
13531       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13532       # as there is no search path for DLLs.
13533       hardcode_libdir_flag_spec_F77='-L$libdir'
13534       allow_undefined_flag_F77=unsupported
13535       always_export_symbols_F77=no
13536       enable_shared_with_static_runtimes_F77=yes
13537       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13538
13539       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13540         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13541         # If the export-symbols file already is a .def file (1st line
13542         # is EXPORTS), use it as is; otherwise, prepend...
13543         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13544           cp $export_symbols $output_objdir/$soname.def;
13545         else
13546           echo EXPORTS > $output_objdir/$soname.def;
13547           cat $export_symbols >> $output_objdir/$soname.def;
13548         fi~
13549         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13550       else
13551         ld_shlibs_F77=no
13552       fi
13553       ;;
13554
13555     interix3*)
13556       hardcode_direct_F77=no
13557       hardcode_shlibpath_var_F77=no
13558       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13559       export_dynamic_flag_spec_F77='${wl}-E'
13560       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13561       # Instead, shared libraries are loaded at an image base (0x10000000 by
13562       # default) and relocated if they conflict, which is a slow very memory
13563       # consuming and fragmenting process.  To avoid this, we pick a random,
13564       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13565       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
13566       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'
13567       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'
13568       ;;
13569
13570     linux*)
13571       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13572         tmp_addflag=
13573         case $cc_basename,$host_cpu in
13574         pgcc*)                          # Portland Group C compiler
13575           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'
13576           tmp_addflag=' $pic_flag'
13577           ;;
13578         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
13579           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'
13580           tmp_addflag=' $pic_flag -Mnomain' ;;
13581         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
13582           tmp_addflag=' -i_dynamic' ;;
13583         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
13584           tmp_addflag=' -i_dynamic -nofor_main' ;;
13585         ifc* | ifort*)                  # Intel Fortran compiler
13586           tmp_addflag=' -nofor_main' ;;
13587         esac
13588         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13589
13590         if test $supports_anon_versioning = yes; then
13591           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13592   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13593   $echo "local: *; };" >> $output_objdir/$libname.ver~
13594           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13595         fi
13596       else
13597         ld_shlibs_F77=no
13598       fi
13599       ;;
13600
13601     netbsd*)
13602       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13603         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13604         wlarc=
13605       else
13606         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13607         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13608       fi
13609       ;;
13610
13611     solaris*)
13612       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13613         ld_shlibs_F77=no
13614         cat <<EOF 1>&2
13615
13616 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13617 *** create shared libraries on Solaris systems.  Therefore, libtool
13618 *** is disabling shared libraries support.  We urge you to upgrade GNU
13619 *** binutils to release 2.9.1 or newer.  Another option is to modify
13620 *** your PATH or compiler configuration so that the native linker is
13621 *** used, and then restart.
13622
13623 EOF
13624       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13625         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13626         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13627       else
13628         ld_shlibs_F77=no
13629       fi
13630       ;;
13631
13632     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13633       case `$LD -v 2>&1` in
13634         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13635         ld_shlibs_F77=no
13636         cat <<_LT_EOF 1>&2
13637
13638 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13639 *** reliably create shared libraries on SCO systems.  Therefore, libtool
13640 *** is disabling shared libraries support.  We urge you to upgrade GNU
13641 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
13642 *** your PATH or compiler configuration so that the native linker is
13643 *** used, and then restart.
13644
13645 _LT_EOF
13646         ;;
13647         *)
13648           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13649             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13650             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13651             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13652           else
13653             ld_shlibs_F77=no
13654           fi
13655         ;;
13656       esac
13657       ;;
13658
13659     sunos4*)
13660       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13661       wlarc=
13662       hardcode_direct_F77=yes
13663       hardcode_shlibpath_var_F77=no
13664       ;;
13665
13666     *)
13667       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13668         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13669         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13670       else
13671         ld_shlibs_F77=no
13672       fi
13673       ;;
13674     esac
13675
13676     if test "$ld_shlibs_F77" = no; then
13677       runpath_var=
13678       hardcode_libdir_flag_spec_F77=
13679       export_dynamic_flag_spec_F77=
13680       whole_archive_flag_spec_F77=
13681     fi
13682   else
13683     # PORTME fill in a description of your system's linker (not GNU ld)
13684     case $host_os in
13685     aix3*)
13686       allow_undefined_flag_F77=unsupported
13687       always_export_symbols_F77=yes
13688       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'
13689       # Note: this linker hardcodes the directories in LIBPATH if there
13690       # are no directories specified by -L.
13691       hardcode_minus_L_F77=yes
13692       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13693         # Neither direct hardcoding nor static linking is supported with a
13694         # broken collect2.
13695         hardcode_direct_F77=unsupported
13696       fi
13697       ;;
13698
13699     aix4* | aix5*)
13700       if test "$host_cpu" = ia64; then
13701         # On IA64, the linker does run time linking by default, so we don't
13702         # have to do anything special.
13703         aix_use_runtimelinking=no
13704         exp_sym_flag='-Bexport'
13705         no_entry_flag=""
13706       else
13707         # If we're using GNU nm, then we don't want the "-C" option.
13708         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13709         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13710           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'
13711         else
13712           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'
13713         fi
13714         aix_use_runtimelinking=no
13715
13716         # Test if we are trying to use run time linking or normal
13717         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13718         # need to do runtime linking.
13719         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13720           for ld_flag in $LDFLAGS; do
13721           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13722             aix_use_runtimelinking=yes
13723             break
13724           fi
13725           done
13726           ;;
13727         esac
13728
13729         exp_sym_flag='-bexport'
13730         no_entry_flag='-bnoentry'
13731       fi
13732
13733       # When large executables or shared objects are built, AIX ld can
13734       # have problems creating the table of contents.  If linking a library
13735       # or program results in "error TOC overflow" add -mminimal-toc to
13736       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13737       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13738
13739       archive_cmds_F77=''
13740       hardcode_direct_F77=yes
13741       hardcode_libdir_separator_F77=':'
13742       link_all_deplibs_F77=yes
13743
13744       if test "$GCC" = yes; then
13745         case $host_os in aix4.[012]|aix4.[012].*)
13746         # We only want to do this on AIX 4.2 and lower, the check
13747         # below for broken collect2 doesn't work under 4.3+
13748           collect2name=`${CC} -print-prog-name=collect2`
13749           if test -f "$collect2name" && \
13750            strings "$collect2name" | grep resolve_lib_name >/dev/null
13751           then
13752           # We have reworked collect2
13753           hardcode_direct_F77=yes
13754           else
13755           # We have old collect2
13756           hardcode_direct_F77=unsupported
13757           # It fails to find uninstalled libraries when the uninstalled
13758           # path is not listed in the libpath.  Setting hardcode_minus_L
13759           # to unsupported forces relinking
13760           hardcode_minus_L_F77=yes
13761           hardcode_libdir_flag_spec_F77='-L$libdir'
13762           hardcode_libdir_separator_F77=
13763           fi
13764           ;;
13765         esac
13766         shared_flag='-shared'
13767         if test "$aix_use_runtimelinking" = yes; then
13768           shared_flag="$shared_flag "'${wl}-G'
13769         fi
13770       else
13771         # not using gcc
13772         if test "$host_cpu" = ia64; then
13773         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13774         # chokes on -Wl,-G. The following line is correct:
13775           shared_flag='-G'
13776         else
13777           if test "$aix_use_runtimelinking" = yes; then
13778             shared_flag='${wl}-G'
13779           else
13780             shared_flag='${wl}-bM:SRE'
13781           fi
13782         fi
13783       fi
13784
13785       # It seems that -bexpall does not export symbols beginning with
13786       # underscore (_), so it is better to generate a list of symbols to export.
13787       always_export_symbols_F77=yes
13788       if test "$aix_use_runtimelinking" = yes; then
13789         # Warning - without using the other runtime loading flags (-brtl),
13790         # -berok will link without error, but may produce a broken library.
13791         allow_undefined_flag_F77='-berok'
13792        # Determine the default libpath from the value encoded in an empty executable.
13793        cat >conftest.$ac_ext <<_ACEOF
13794       program main
13795
13796       end
13797 _ACEOF
13798 rm -f conftest.$ac_objext conftest$ac_exeext
13799 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13800   (eval $ac_link) 2>conftest.er1
13801   ac_status=$?
13802   grep -v '^ *+' conftest.er1 >conftest.err
13803   rm -f conftest.er1
13804   cat conftest.err >&5
13805   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806   (exit $ac_status); } &&
13807          { ac_try='test -z "$ac_f77_werror_flag"
13808                          || test ! -s conftest.err'
13809   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13810   (eval $ac_try) 2>&5
13811   ac_status=$?
13812   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813   (exit $ac_status); }; } &&
13814          { ac_try='test -s conftest$ac_exeext'
13815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13816   (eval $ac_try) 2>&5
13817   ac_status=$?
13818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819   (exit $ac_status); }; }; then
13820
13821 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13822 }'`
13823 # Check for a 64-bit object if we didn't find anything.
13824 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; }
13825 }'`; fi
13826 else
13827   echo "$as_me: failed program was:" >&5
13828 sed 's/^/| /' conftest.$ac_ext >&5
13829
13830 fi
13831 rm -f conftest.err conftest.$ac_objext \
13832       conftest$ac_exeext conftest.$ac_ext
13833 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13834
13835        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13836         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"
13837        else
13838         if test "$host_cpu" = ia64; then
13839           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13840           allow_undefined_flag_F77="-z nodefs"
13841           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"
13842         else
13843          # Determine the default libpath from the value encoded in an empty executable.
13844          cat >conftest.$ac_ext <<_ACEOF
13845       program main
13846
13847       end
13848 _ACEOF
13849 rm -f conftest.$ac_objext conftest$ac_exeext
13850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13851   (eval $ac_link) 2>conftest.er1
13852   ac_status=$?
13853   grep -v '^ *+' conftest.er1 >conftest.err
13854   rm -f conftest.er1
13855   cat conftest.err >&5
13856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13857   (exit $ac_status); } &&
13858          { ac_try='test -z "$ac_f77_werror_flag"
13859                          || test ! -s conftest.err'
13860   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13861   (eval $ac_try) 2>&5
13862   ac_status=$?
13863   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13864   (exit $ac_status); }; } &&
13865          { ac_try='test -s conftest$ac_exeext'
13866   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13867   (eval $ac_try) 2>&5
13868   ac_status=$?
13869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13870   (exit $ac_status); }; }; then
13871
13872 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13873 }'`
13874 # Check for a 64-bit object if we didn't find anything.
13875 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; }
13876 }'`; fi
13877 else
13878   echo "$as_me: failed program was:" >&5
13879 sed 's/^/| /' conftest.$ac_ext >&5
13880
13881 fi
13882 rm -f conftest.err conftest.$ac_objext \
13883       conftest$ac_exeext conftest.$ac_ext
13884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13885
13886          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13887           # Warning - without using the other run time loading flags,
13888           # -berok will link without error, but may produce a broken library.
13889           no_undefined_flag_F77=' ${wl}-bernotok'
13890           allow_undefined_flag_F77=' ${wl}-berok'
13891           # Exported symbols can be pulled into shared objects from archives
13892           whole_archive_flag_spec_F77='$convenience'
13893           archive_cmds_need_lc_F77=yes
13894           # This is similar to how AIX traditionally builds its shared libraries.
13895           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'
13896         fi
13897       fi
13898       ;;
13899
13900     amigaos*)
13901       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)'
13902       hardcode_libdir_flag_spec_F77='-L$libdir'
13903       hardcode_minus_L_F77=yes
13904       # see comment about different semantics on the GNU ld section
13905       ld_shlibs_F77=no
13906       ;;
13907
13908     bsdi[45]*)
13909       export_dynamic_flag_spec_F77=-rdynamic
13910       ;;
13911
13912     cygwin* | mingw* | pw32*)
13913       # When not using gcc, we currently assume that we are using
13914       # Microsoft Visual C++.
13915       # hardcode_libdir_flag_spec is actually meaningless, as there is
13916       # no search path for DLLs.
13917       hardcode_libdir_flag_spec_F77=' '
13918       allow_undefined_flag_F77=unsupported
13919       # Tell ltmain to make .lib files, not .a files.
13920       libext=lib
13921       # Tell ltmain to make .dll files, not .so files.
13922       shrext_cmds=".dll"
13923       # FIXME: Setting linknames here is a bad hack.
13924       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13925       # The linker will automatically build a .lib file if we build a DLL.
13926       old_archive_From_new_cmds_F77='true'
13927       # FIXME: Should let the user specify the lib program.
13928       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13929       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
13930       enable_shared_with_static_runtimes_F77=yes
13931       ;;
13932
13933     darwin* | rhapsody*)
13934       case $host_os in
13935         rhapsody* | darwin1.[012])
13936          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
13937          ;;
13938        *) # Darwin 1.3 on
13939          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13940            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13941          else
13942            case ${MACOSX_DEPLOYMENT_TARGET} in
13943              10.[012])
13944                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13945                ;;
13946              10.*)
13947                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
13948                ;;
13949            esac
13950          fi
13951          ;;
13952       esac
13953       archive_cmds_need_lc_F77=no
13954       hardcode_direct_F77=no
13955       hardcode_automatic_F77=yes
13956       hardcode_shlibpath_var_F77=unsupported
13957       whole_archive_flag_spec_F77=''
13958       link_all_deplibs_F77=yes
13959     if test "$GCC" = yes ; then
13960         output_verbose_link_cmd='echo'
13961         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13962       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13963       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13964       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}'
13965       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}'
13966     else
13967       case $cc_basename in
13968         xlc*)
13969          output_verbose_link_cmd='echo'
13970          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
13971          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13972           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13973          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}'
13974           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}'
13975           ;;
13976        *)
13977          ld_shlibs_F77=no
13978           ;;
13979       esac
13980     fi
13981       ;;
13982
13983     dgux*)
13984       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13985       hardcode_libdir_flag_spec_F77='-L$libdir'
13986       hardcode_shlibpath_var_F77=no
13987       ;;
13988
13989     freebsd1*)
13990       ld_shlibs_F77=no
13991       ;;
13992
13993     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13994     # support.  Future versions do this automatically, but an explicit c++rt0.o
13995     # does not break anything, and helps significantly (at the cost of a little
13996     # extra space).
13997     freebsd2.2*)
13998       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13999       hardcode_libdir_flag_spec_F77='-R$libdir'
14000       hardcode_direct_F77=yes
14001       hardcode_shlibpath_var_F77=no
14002       ;;
14003
14004     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14005     freebsd2*)
14006       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14007       hardcode_direct_F77=yes
14008       hardcode_minus_L_F77=yes
14009       hardcode_shlibpath_var_F77=no
14010       ;;
14011
14012     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14013     freebsd* | kfreebsd*-gnu | dragonfly*)
14014       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14015       hardcode_libdir_flag_spec_F77='-R$libdir'
14016       hardcode_direct_F77=yes
14017       hardcode_shlibpath_var_F77=no
14018       ;;
14019
14020     hpux9*)
14021       if test "$GCC" = yes; then
14022         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'
14023       else
14024         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'
14025       fi
14026       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14027       hardcode_libdir_separator_F77=:
14028       hardcode_direct_F77=yes
14029
14030       # hardcode_minus_L: Not really in the search PATH,
14031       # but as the default location of the library.
14032       hardcode_minus_L_F77=yes
14033       export_dynamic_flag_spec_F77='${wl}-E'
14034       ;;
14035
14036     hpux10*)
14037       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14038         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14039       else
14040         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14041       fi
14042       if test "$with_gnu_ld" = no; then
14043         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14044         hardcode_libdir_separator_F77=:
14045
14046         hardcode_direct_F77=yes
14047         export_dynamic_flag_spec_F77='${wl}-E'
14048
14049         # hardcode_minus_L: Not really in the search PATH,
14050         # but as the default location of the library.
14051         hardcode_minus_L_F77=yes
14052       fi
14053       ;;
14054
14055     hpux11*)
14056       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14057         case $host_cpu in
14058         hppa*64*)
14059           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14060           ;;
14061         ia64*)
14062           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14063           ;;
14064         *)
14065           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14066           ;;
14067         esac
14068       else
14069         case $host_cpu in
14070         hppa*64*)
14071           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14072           ;;
14073         ia64*)
14074           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14075           ;;
14076         *)
14077           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14078           ;;
14079         esac
14080       fi
14081       if test "$with_gnu_ld" = no; then
14082         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14083         hardcode_libdir_separator_F77=:
14084
14085         case $host_cpu in
14086         hppa*64*|ia64*)
14087           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14088           hardcode_direct_F77=no
14089           hardcode_shlibpath_var_F77=no
14090           ;;
14091         *)
14092           hardcode_direct_F77=yes
14093           export_dynamic_flag_spec_F77='${wl}-E'
14094
14095           # hardcode_minus_L: Not really in the search PATH,
14096           # but as the default location of the library.
14097           hardcode_minus_L_F77=yes
14098           ;;
14099         esac
14100       fi
14101       ;;
14102
14103     irix5* | irix6* | nonstopux*)
14104       if test "$GCC" = yes; then
14105         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'
14106       else
14107         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'
14108         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14109       fi
14110       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14111       hardcode_libdir_separator_F77=:
14112       link_all_deplibs_F77=yes
14113       ;;
14114
14115     netbsd*)
14116       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14117         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14118       else
14119         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14120       fi
14121       hardcode_libdir_flag_spec_F77='-R$libdir'
14122       hardcode_direct_F77=yes
14123       hardcode_shlibpath_var_F77=no
14124       ;;
14125
14126     newsos6)
14127       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14128       hardcode_direct_F77=yes
14129       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14130       hardcode_libdir_separator_F77=:
14131       hardcode_shlibpath_var_F77=no
14132       ;;
14133
14134     openbsd*)
14135       hardcode_direct_F77=yes
14136       hardcode_shlibpath_var_F77=no
14137       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14138         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14139         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14140         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14141         export_dynamic_flag_spec_F77='${wl}-E'
14142       else
14143        case $host_os in
14144          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14145            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14146            hardcode_libdir_flag_spec_F77='-R$libdir'
14147            ;;
14148          *)
14149            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14150            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14151            ;;
14152        esac
14153       fi
14154       ;;
14155
14156     os2*)
14157       hardcode_libdir_flag_spec_F77='-L$libdir'
14158       hardcode_minus_L_F77=yes
14159       allow_undefined_flag_F77=unsupported
14160       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'
14161       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14162       ;;
14163
14164     osf3*)
14165       if test "$GCC" = yes; then
14166         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14167         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'
14168       else
14169         allow_undefined_flag_F77=' -expect_unresolved \*'
14170         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'
14171       fi
14172       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14173       hardcode_libdir_separator_F77=:
14174       ;;
14175
14176     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14177       if test "$GCC" = yes; then
14178         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14179         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'
14180         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14181       else
14182         allow_undefined_flag_F77=' -expect_unresolved \*'
14183         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'
14184         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~
14185         $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'
14186
14187         # Both c and cxx compiler support -rpath directly
14188         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14189       fi
14190       hardcode_libdir_separator_F77=:
14191       ;;
14192
14193     solaris*)
14194       no_undefined_flag_F77=' -z text'
14195       if test "$GCC" = yes; then
14196         wlarc='${wl}'
14197         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14198         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14199           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14200       else
14201         wlarc=''
14202         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14203         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14204         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14205       fi
14206       hardcode_libdir_flag_spec_F77='-R$libdir'
14207       hardcode_shlibpath_var_F77=no
14208       case $host_os in
14209       solaris2.[0-5] | solaris2.[0-5].*) ;;
14210       *)
14211         # The compiler driver will combine linker options so we
14212         # cannot just pass the convience library names through
14213         # without $wl, iff we do not link with $LD.
14214         # Luckily, gcc supports the same syntax we need for Sun Studio.
14215         # Supported since Solaris 2.6 (maybe 2.5.1?)
14216         case $wlarc in
14217         '')
14218           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14219         *)
14220           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' ;;
14221         esac ;;
14222       esac
14223       link_all_deplibs_F77=yes
14224       ;;
14225
14226     sunos4*)
14227       if test "x$host_vendor" = xsequent; then
14228         # Use $CC to link under sequent, because it throws in some extra .o
14229         # files that make .init and .fini sections work.
14230         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14231       else
14232         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14233       fi
14234       hardcode_libdir_flag_spec_F77='-L$libdir'
14235       hardcode_direct_F77=yes
14236       hardcode_minus_L_F77=yes
14237       hardcode_shlibpath_var_F77=no
14238       ;;
14239
14240     sysv4)
14241       case $host_vendor in
14242         sni)
14243           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14244           hardcode_direct_F77=yes # is this really true???
14245         ;;
14246         siemens)
14247           ## LD is ld it makes a PLAMLIB
14248           ## CC just makes a GrossModule.
14249           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14250           reload_cmds_F77='$CC -r -o $output$reload_objs'
14251           hardcode_direct_F77=no
14252         ;;
14253         motorola)
14254           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14255           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14256         ;;
14257       esac
14258       runpath_var='LD_RUN_PATH'
14259       hardcode_shlibpath_var_F77=no
14260       ;;
14261
14262     sysv4.3*)
14263       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14264       hardcode_shlibpath_var_F77=no
14265       export_dynamic_flag_spec_F77='-Bexport'
14266       ;;
14267
14268     sysv4*MP*)
14269       if test -d /usr/nec; then
14270         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14271         hardcode_shlibpath_var_F77=no
14272         runpath_var=LD_RUN_PATH
14273         hardcode_runpath_var=yes
14274         ld_shlibs_F77=yes
14275       fi
14276       ;;
14277
14278     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14279       no_undefined_flag_F77='${wl}-z,text'
14280       archive_cmds_need_lc_F77=no
14281       hardcode_shlibpath_var_F77=no
14282       runpath_var='LD_RUN_PATH'
14283
14284       if test "$GCC" = yes; then
14285         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14286         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14287       else
14288         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14289         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14290       fi
14291       ;;
14292
14293     sysv5* | sco3.2v5* | sco5v6*)
14294       # Note: We can NOT use -z defs as we might desire, because we do not
14295       # link with -lc, and that would cause any symbols used from libc to
14296       # always be unresolved, which means just about no library would
14297       # ever link correctly.  If we're not using GNU ld we use -z text
14298       # though, which does catch some bad symbols but isn't as heavy-handed
14299       # as -z defs.
14300       no_undefined_flag_F77='${wl}-z,text'
14301       allow_undefined_flag_F77='${wl}-z,nodefs'
14302       archive_cmds_need_lc_F77=no
14303       hardcode_shlibpath_var_F77=no
14304       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14305       hardcode_libdir_separator_F77=':'
14306       link_all_deplibs_F77=yes
14307       export_dynamic_flag_spec_F77='${wl}-Bexport'
14308       runpath_var='LD_RUN_PATH'
14309
14310       if test "$GCC" = yes; then
14311         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14312         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14313       else
14314         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14315         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14316       fi
14317       ;;
14318
14319     uts4*)
14320       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14321       hardcode_libdir_flag_spec_F77='-L$libdir'
14322       hardcode_shlibpath_var_F77=no
14323       ;;
14324
14325     *)
14326       ld_shlibs_F77=no
14327       ;;
14328     esac
14329   fi
14330
14331 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14332 echo "${ECHO_T}$ld_shlibs_F77" >&6
14333 test "$ld_shlibs_F77" = no && can_build_shared=no
14334
14335 #
14336 # Do we need to explicitly link libc?
14337 #
14338 case "x$archive_cmds_need_lc_F77" in
14339 x|xyes)
14340   # Assume -lc should be added
14341   archive_cmds_need_lc_F77=yes
14342
14343   if test "$enable_shared" = yes && test "$GCC" = yes; then
14344     case $archive_cmds_F77 in
14345     *'~'*)
14346       # FIXME: we may have to deal with multi-command sequences.
14347       ;;
14348     '$CC '*)
14349       # Test whether the compiler implicitly links with -lc since on some
14350       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14351       # to ld, don't add -lc before -lgcc.
14352       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14353 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14354       $rm conftest*
14355       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14356
14357       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14358   (eval $ac_compile) 2>&5
14359   ac_status=$?
14360   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14361   (exit $ac_status); } 2>conftest.err; then
14362         soname=conftest
14363         lib=conftest
14364         libobjs=conftest.$ac_objext
14365         deplibs=
14366         wl=$lt_prog_compiler_wl_F77
14367         pic_flag=$lt_prog_compiler_pic_F77
14368         compiler_flags=-v
14369         linker_flags=-v
14370         verstring=
14371         output_objdir=.
14372         libname=conftest
14373         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14374         allow_undefined_flag_F77=
14375         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14376   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14377   ac_status=$?
14378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379   (exit $ac_status); }
14380         then
14381           archive_cmds_need_lc_F77=no
14382         else
14383           archive_cmds_need_lc_F77=yes
14384         fi
14385         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14386       else
14387         cat conftest.err 1>&5
14388       fi
14389       $rm conftest*
14390       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14391 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14392       ;;
14393     esac
14394   fi
14395   ;;
14396 esac
14397
14398 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14399 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14400 library_names_spec=
14401 libname_spec='lib$name'
14402 soname_spec=
14403 shrext_cmds=".so"
14404 postinstall_cmds=
14405 postuninstall_cmds=
14406 finish_cmds=
14407 finish_eval=
14408 shlibpath_var=
14409 shlibpath_overrides_runpath=unknown
14410 version_type=none
14411 dynamic_linker="$host_os ld.so"
14412 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14413 if test "$GCC" = yes; then
14414   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14415   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14416     # if the path contains ";" then we assume it to be the separator
14417     # otherwise default to the standard path separator (i.e. ":") - it is
14418     # assumed that no part of a normal pathname contains ";" but that should
14419     # okay in the real world where ";" in dirpaths is itself problematic.
14420     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14421   else
14422     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14423   fi
14424 else
14425   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14426 fi
14427 need_lib_prefix=unknown
14428 hardcode_into_libs=no
14429
14430 # when you set need_version to no, make sure it does not cause -set_version
14431 # flags to be left without arguments
14432 need_version=unknown
14433
14434 case $host_os in
14435 aix3*)
14436   version_type=linux
14437   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14438   shlibpath_var=LIBPATH
14439
14440   # AIX 3 has no versioning support, so we append a major version to the name.
14441   soname_spec='${libname}${release}${shared_ext}$major'
14442   ;;
14443
14444 aix4* | aix5*)
14445   version_type=linux
14446   need_lib_prefix=no
14447   need_version=no
14448   hardcode_into_libs=yes
14449   if test "$host_cpu" = ia64; then
14450     # AIX 5 supports IA64
14451     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14452     shlibpath_var=LD_LIBRARY_PATH
14453   else
14454     # With GCC up to 2.95.x, collect2 would create an import file
14455     # for dependence libraries.  The import file would start with
14456     # the line `#! .'.  This would cause the generated library to
14457     # depend on `.', always an invalid library.  This was fixed in
14458     # development snapshots of GCC prior to 3.0.
14459     case $host_os in
14460       aix4 | aix4.[01] | aix4.[01].*)
14461       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14462            echo ' yes '
14463            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14464         :
14465       else
14466         can_build_shared=no
14467       fi
14468       ;;
14469     esac
14470     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14471     # soname into executable. Probably we can add versioning support to
14472     # collect2, so additional links can be useful in future.
14473     if test "$aix_use_runtimelinking" = yes; then
14474       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14475       # instead of lib<name>.a to let people know that these are not
14476       # typical AIX shared libraries.
14477       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478     else
14479       # We preserve .a as extension for shared libraries through AIX4.2
14480       # and later when we are not doing run time linking.
14481       library_names_spec='${libname}${release}.a $libname.a'
14482       soname_spec='${libname}${release}${shared_ext}$major'
14483     fi
14484     shlibpath_var=LIBPATH
14485   fi
14486   ;;
14487
14488 amigaos*)
14489   library_names_spec='$libname.ixlibrary $libname.a'
14490   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14491   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'
14492   ;;
14493
14494 beos*)
14495   library_names_spec='${libname}${shared_ext}'
14496   dynamic_linker="$host_os ld.so"
14497   shlibpath_var=LIBRARY_PATH
14498   ;;
14499
14500 bsdi[45]*)
14501   version_type=linux
14502   need_version=no
14503   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14504   soname_spec='${libname}${release}${shared_ext}$major'
14505   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14506   shlibpath_var=LD_LIBRARY_PATH
14507   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14508   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14509   # the default ld.so.conf also contains /usr/contrib/lib and
14510   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14511   # libtool to hard-code these into programs
14512   ;;
14513
14514 cygwin* | mingw* | pw32*)
14515   version_type=windows
14516   shrext_cmds=".dll"
14517   need_version=no
14518   need_lib_prefix=no
14519
14520   case $GCC,$host_os in
14521   yes,cygwin* | yes,mingw* | yes,pw32*)
14522     library_names_spec='$libname.dll.a'
14523     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14524     postinstall_cmds='base_file=`basename \${file}`~
14525       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14526       dldir=$destdir/`dirname \$dlpath`~
14527       test -d \$dldir || mkdir -p \$dldir~
14528       $install_prog $dir/$dlname \$dldir/$dlname~
14529       chmod a+x \$dldir/$dlname'
14530     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14531       dlpath=$dir/\$dldll~
14532        $rm \$dlpath'
14533     shlibpath_overrides_runpath=yes
14534
14535     case $host_os in
14536     cygwin*)
14537       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14538       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14539       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14540       ;;
14541     mingw*)
14542       # MinGW DLLs use traditional 'lib' prefix
14543       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14544       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14545       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14546         # It is most probably a Windows format PATH printed by
14547         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14548         # path with ; separators, and with drive letters. We can handle the
14549         # drive letters (cygwin fileutils understands them), so leave them,
14550         # especially as we might pass files found there to a mingw objdump,
14551         # which wouldn't understand a cygwinified path. Ahh.
14552         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14553       else
14554         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14555       fi
14556       ;;
14557     pw32*)
14558       # pw32 DLLs use 'pw' prefix rather than 'lib'
14559       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14560       ;;
14561     esac
14562     ;;
14563
14564   *)
14565     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14566     ;;
14567   esac
14568   dynamic_linker='Win32 ld.exe'
14569   # FIXME: first we should search . and the directory the executable is in
14570   shlibpath_var=PATH
14571   ;;
14572
14573 darwin* | rhapsody*)
14574   dynamic_linker="$host_os dyld"
14575   version_type=darwin
14576   need_lib_prefix=no
14577   need_version=no
14578   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14579   soname_spec='${libname}${release}${major}$shared_ext'
14580   shlibpath_overrides_runpath=yes
14581   shlibpath_var=DYLD_LIBRARY_PATH
14582   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14583   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14584   if test "$GCC" = yes; then
14585     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"`
14586   else
14587     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14588   fi
14589   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14590   ;;
14591
14592 dgux*)
14593   version_type=linux
14594   need_lib_prefix=no
14595   need_version=no
14596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14597   soname_spec='${libname}${release}${shared_ext}$major'
14598   shlibpath_var=LD_LIBRARY_PATH
14599   ;;
14600
14601 freebsd1*)
14602   dynamic_linker=no
14603   ;;
14604
14605 kfreebsd*-gnu)
14606   version_type=linux
14607   need_lib_prefix=no
14608   need_version=no
14609   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14610   soname_spec='${libname}${release}${shared_ext}$major'
14611   shlibpath_var=LD_LIBRARY_PATH
14612   shlibpath_overrides_runpath=no
14613   hardcode_into_libs=yes
14614   dynamic_linker='GNU ld.so'
14615   ;;
14616
14617 freebsd* | dragonfly*)
14618   # DragonFly does not have aout.  When/if they implement a new
14619   # versioning mechanism, adjust this.
14620   if test -x /usr/bin/objformat; then
14621     objformat=`/usr/bin/objformat`
14622   else
14623     case $host_os in
14624     freebsd[123]*) objformat=aout ;;
14625     *) objformat=elf ;;
14626     esac
14627   fi
14628   version_type=freebsd-$objformat
14629   case $version_type in
14630     freebsd-elf*)
14631       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14632       need_version=no
14633       need_lib_prefix=no
14634       ;;
14635     freebsd-*)
14636       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14637       need_version=yes
14638       ;;
14639   esac
14640   shlibpath_var=LD_LIBRARY_PATH
14641   case $host_os in
14642   freebsd2*)
14643     shlibpath_overrides_runpath=yes
14644     ;;
14645   freebsd3.[01]* | freebsdelf3.[01]*)
14646     shlibpath_overrides_runpath=yes
14647     hardcode_into_libs=yes
14648     ;;
14649   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14650   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14651     shlibpath_overrides_runpath=no
14652     hardcode_into_libs=yes
14653     ;;
14654   freebsd*) # from 4.6 on
14655     shlibpath_overrides_runpath=yes
14656     hardcode_into_libs=yes
14657     ;;
14658   esac
14659   ;;
14660
14661 gnu*)
14662   version_type=linux
14663   need_lib_prefix=no
14664   need_version=no
14665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14666   soname_spec='${libname}${release}${shared_ext}$major'
14667   shlibpath_var=LD_LIBRARY_PATH
14668   hardcode_into_libs=yes
14669   ;;
14670
14671 hpux9* | hpux10* | hpux11*)
14672   # Give a soname corresponding to the major version so that dld.sl refuses to
14673   # link against other versions.
14674   version_type=sunos
14675   need_lib_prefix=no
14676   need_version=no
14677   case $host_cpu in
14678   ia64*)
14679     shrext_cmds='.so'
14680     hardcode_into_libs=yes
14681     dynamic_linker="$host_os dld.so"
14682     shlibpath_var=LD_LIBRARY_PATH
14683     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14684     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14685     soname_spec='${libname}${release}${shared_ext}$major'
14686     if test "X$HPUX_IA64_MODE" = X32; then
14687       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14688     else
14689       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14690     fi
14691     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14692     ;;
14693    hppa*64*)
14694      shrext_cmds='.sl'
14695      hardcode_into_libs=yes
14696      dynamic_linker="$host_os dld.sl"
14697      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14698      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14699      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14700      soname_spec='${libname}${release}${shared_ext}$major'
14701      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14702      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14703      ;;
14704    *)
14705     shrext_cmds='.sl'
14706     dynamic_linker="$host_os dld.sl"
14707     shlibpath_var=SHLIB_PATH
14708     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14709     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14710     soname_spec='${libname}${release}${shared_ext}$major'
14711     ;;
14712   esac
14713   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14714   postinstall_cmds='chmod 555 $lib'
14715   ;;
14716
14717 interix3*)
14718   version_type=linux
14719   need_lib_prefix=no
14720   need_version=no
14721   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14722   soname_spec='${libname}${release}${shared_ext}$major'
14723   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14724   shlibpath_var=LD_LIBRARY_PATH
14725   shlibpath_overrides_runpath=no
14726   hardcode_into_libs=yes
14727   ;;
14728
14729 irix5* | irix6* | nonstopux*)
14730   case $host_os in
14731     nonstopux*) version_type=nonstopux ;;
14732     *)
14733         if test "$lt_cv_prog_gnu_ld" = yes; then
14734                 version_type=linux
14735         else
14736                 version_type=irix
14737         fi ;;
14738   esac
14739   need_lib_prefix=no
14740   need_version=no
14741   soname_spec='${libname}${release}${shared_ext}$major'
14742   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14743   case $host_os in
14744   irix5* | nonstopux*)
14745     libsuff= shlibsuff=
14746     ;;
14747   *)
14748     case $LD in # libtool.m4 will add one of these switches to LD
14749     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14750       libsuff= shlibsuff= libmagic=32-bit;;
14751     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14752       libsuff=32 shlibsuff=N32 libmagic=N32;;
14753     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14754       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14755     *) libsuff= shlibsuff= libmagic=never-match;;
14756     esac
14757     ;;
14758   esac
14759   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14760   shlibpath_overrides_runpath=no
14761   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14762   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14763   hardcode_into_libs=yes
14764   ;;
14765
14766 # No shared lib support for Linux oldld, aout, or coff.
14767 linux*oldld* | linux*aout* | linux*coff*)
14768   dynamic_linker=no
14769   ;;
14770
14771 # This must be Linux ELF.
14772 linux*)
14773   version_type=linux
14774   need_lib_prefix=no
14775   need_version=no
14776   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14777   soname_spec='${libname}${release}${shared_ext}$major'
14778   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14779   shlibpath_var=LD_LIBRARY_PATH
14780   shlibpath_overrides_runpath=no
14781   # This implies no fast_install, which is unacceptable.
14782   # Some rework will be needed to allow for fast_install
14783   # before this can be enabled.
14784   hardcode_into_libs=yes
14785
14786   # Append ld.so.conf contents to the search path
14787   if test -f /etc/ld.so.conf; then
14788     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' ' '`
14789     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14790   fi
14791
14792   # We used to test for /lib/ld.so.1 and disable shared libraries on
14793   # powerpc, because MkLinux only supported shared libraries with the
14794   # GNU dynamic linker.  Since this was broken with cross compilers,
14795   # most powerpc-linux boxes support dynamic linking these days and
14796   # people can always --disable-shared, the test was removed, and we
14797   # assume the GNU/Linux dynamic linker is in use.
14798   dynamic_linker='GNU/Linux ld.so'
14799   ;;
14800
14801 knetbsd*-gnu)
14802   version_type=linux
14803   need_lib_prefix=no
14804   need_version=no
14805   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14806   soname_spec='${libname}${release}${shared_ext}$major'
14807   shlibpath_var=LD_LIBRARY_PATH
14808   shlibpath_overrides_runpath=no
14809   hardcode_into_libs=yes
14810   dynamic_linker='GNU ld.so'
14811   ;;
14812
14813 netbsd*)
14814   version_type=sunos
14815   need_lib_prefix=no
14816   need_version=no
14817   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14818     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14819     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14820     dynamic_linker='NetBSD (a.out) ld.so'
14821   else
14822     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14823     soname_spec='${libname}${release}${shared_ext}$major'
14824     dynamic_linker='NetBSD ld.elf_so'
14825   fi
14826   shlibpath_var=LD_LIBRARY_PATH
14827   shlibpath_overrides_runpath=yes
14828   hardcode_into_libs=yes
14829   ;;
14830
14831 newsos6)
14832   version_type=linux
14833   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14834   shlibpath_var=LD_LIBRARY_PATH
14835   shlibpath_overrides_runpath=yes
14836   ;;
14837
14838 nto-qnx*)
14839   version_type=linux
14840   need_lib_prefix=no
14841   need_version=no
14842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843   soname_spec='${libname}${release}${shared_ext}$major'
14844   shlibpath_var=LD_LIBRARY_PATH
14845   shlibpath_overrides_runpath=yes
14846   ;;
14847
14848 openbsd*)
14849   version_type=sunos
14850   sys_lib_dlsearch_path_spec="/usr/lib"
14851   need_lib_prefix=no
14852   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14853   case $host_os in
14854     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14855     *)                         need_version=no  ;;
14856   esac
14857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14858   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14859   shlibpath_var=LD_LIBRARY_PATH
14860   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14861     case $host_os in
14862       openbsd2.[89] | openbsd2.[89].*)
14863         shlibpath_overrides_runpath=no
14864         ;;
14865       *)
14866         shlibpath_overrides_runpath=yes
14867         ;;
14868       esac
14869   else
14870     shlibpath_overrides_runpath=yes
14871   fi
14872   ;;
14873
14874 os2*)
14875   libname_spec='$name'
14876   shrext_cmds=".dll"
14877   need_lib_prefix=no
14878   library_names_spec='$libname${shared_ext} $libname.a'
14879   dynamic_linker='OS/2 ld.exe'
14880   shlibpath_var=LIBPATH
14881   ;;
14882
14883 osf3* | osf4* | osf5*)
14884   version_type=osf
14885   need_lib_prefix=no
14886   need_version=no
14887   soname_spec='${libname}${release}${shared_ext}$major'
14888   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14889   shlibpath_var=LD_LIBRARY_PATH
14890   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14891   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14892   ;;
14893
14894 solaris*)
14895   version_type=linux
14896   need_lib_prefix=no
14897   need_version=no
14898   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14899   soname_spec='${libname}${release}${shared_ext}$major'
14900   shlibpath_var=LD_LIBRARY_PATH
14901   shlibpath_overrides_runpath=yes
14902   hardcode_into_libs=yes
14903   # ldd complains unless libraries are executable
14904   postinstall_cmds='chmod +x $lib'
14905   ;;
14906
14907 sunos4*)
14908   version_type=sunos
14909   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14910   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14911   shlibpath_var=LD_LIBRARY_PATH
14912   shlibpath_overrides_runpath=yes
14913   if test "$with_gnu_ld" = yes; then
14914     need_lib_prefix=no
14915   fi
14916   need_version=yes
14917   ;;
14918
14919 sysv4 | sysv4.3*)
14920   version_type=linux
14921   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14922   soname_spec='${libname}${release}${shared_ext}$major'
14923   shlibpath_var=LD_LIBRARY_PATH
14924   case $host_vendor in
14925     sni)
14926       shlibpath_overrides_runpath=no
14927       need_lib_prefix=no
14928       export_dynamic_flag_spec='${wl}-Blargedynsym'
14929       runpath_var=LD_RUN_PATH
14930       ;;
14931     siemens)
14932       need_lib_prefix=no
14933       ;;
14934     motorola)
14935       need_lib_prefix=no
14936       need_version=no
14937       shlibpath_overrides_runpath=no
14938       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14939       ;;
14940   esac
14941   ;;
14942
14943 sysv4*MP*)
14944   if test -d /usr/nec ;then
14945     version_type=linux
14946     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14947     soname_spec='$libname${shared_ext}.$major'
14948     shlibpath_var=LD_LIBRARY_PATH
14949   fi
14950   ;;
14951
14952 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14953   version_type=freebsd-elf
14954   need_lib_prefix=no
14955   need_version=no
14956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14957   soname_spec='${libname}${release}${shared_ext}$major'
14958   shlibpath_var=LD_LIBRARY_PATH
14959   hardcode_into_libs=yes
14960   if test "$with_gnu_ld" = yes; then
14961     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14962     shlibpath_overrides_runpath=no
14963   else
14964     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14965     shlibpath_overrides_runpath=yes
14966     case $host_os in
14967       sco3.2v5*)
14968         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14969         ;;
14970     esac
14971   fi
14972   sys_lib_dlsearch_path_spec='/usr/lib'
14973   ;;
14974
14975 uts4*)
14976   version_type=linux
14977   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14978   soname_spec='${libname}${release}${shared_ext}$major'
14979   shlibpath_var=LD_LIBRARY_PATH
14980   ;;
14981
14982 *)
14983   dynamic_linker=no
14984   ;;
14985 esac
14986 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14987 echo "${ECHO_T}$dynamic_linker" >&6
14988 test "$dynamic_linker" = no && can_build_shared=no
14989
14990 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14991 if test "$GCC" = yes; then
14992   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14993 fi
14994
14995 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14996 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14997 hardcode_action_F77=
14998 if test -n "$hardcode_libdir_flag_spec_F77" || \
14999    test -n "$runpath_var_F77" || \
15000    test "X$hardcode_automatic_F77" = "Xyes" ; then
15001
15002   # We can hardcode non-existant directories.
15003   if test "$hardcode_direct_F77" != no &&
15004      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15005      # have to relink, otherwise we might link with an installed library
15006      # when we should be linking with a yet-to-be-installed one
15007      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15008      test "$hardcode_minus_L_F77" != no; then
15009     # Linking always hardcodes the temporary library directory.
15010     hardcode_action_F77=relink
15011   else
15012     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15013     hardcode_action_F77=immediate
15014   fi
15015 else
15016   # We cannot hardcode anything, or else we can only hardcode existing
15017   # directories.
15018   hardcode_action_F77=unsupported
15019 fi
15020 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15021 echo "${ECHO_T}$hardcode_action_F77" >&6
15022
15023 if test "$hardcode_action_F77" = relink; then
15024   # Fast installation is not supported
15025   enable_fast_install=no
15026 elif test "$shlibpath_overrides_runpath" = yes ||
15027      test "$enable_shared" = no; then
15028   # Fast installation is not necessary
15029   enable_fast_install=needless
15030 fi
15031
15032
15033 # The else clause should only fire when bootstrapping the
15034 # libtool distribution, otherwise you forgot to ship ltmain.sh
15035 # with your package, and you will get complaints that there are
15036 # no rules to generate ltmain.sh.
15037 if test -f "$ltmain"; then
15038   # See if we are running on zsh, and set the options which allow our commands through
15039   # without removal of \ escapes.
15040   if test -n "${ZSH_VERSION+set}" ; then
15041     setopt NO_GLOB_SUBST
15042   fi
15043   # Now quote all the things that may contain metacharacters while being
15044   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15045   # variables and quote the copies for generation of the libtool script.
15046   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15047     SED SHELL STRIP \
15048     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15049     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15050     deplibs_check_method reload_flag reload_cmds need_locks \
15051     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15052     lt_cv_sys_global_symbol_to_c_name_address \
15053     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15054     old_postinstall_cmds old_postuninstall_cmds \
15055     compiler_F77 \
15056     CC_F77 \
15057     LD_F77 \
15058     lt_prog_compiler_wl_F77 \
15059     lt_prog_compiler_pic_F77 \
15060     lt_prog_compiler_static_F77 \
15061     lt_prog_compiler_no_builtin_flag_F77 \
15062     export_dynamic_flag_spec_F77 \
15063     thread_safe_flag_spec_F77 \
15064     whole_archive_flag_spec_F77 \
15065     enable_shared_with_static_runtimes_F77 \
15066     old_archive_cmds_F77 \
15067     old_archive_from_new_cmds_F77 \
15068     predep_objects_F77 \
15069     postdep_objects_F77 \
15070     predeps_F77 \
15071     postdeps_F77 \
15072     compiler_lib_search_path_F77 \
15073     archive_cmds_F77 \
15074     archive_expsym_cmds_F77 \
15075     postinstall_cmds_F77 \
15076     postuninstall_cmds_F77 \
15077     old_archive_from_expsyms_cmds_F77 \
15078     allow_undefined_flag_F77 \
15079     no_undefined_flag_F77 \
15080     export_symbols_cmds_F77 \
15081     hardcode_libdir_flag_spec_F77 \
15082     hardcode_libdir_flag_spec_ld_F77 \
15083     hardcode_libdir_separator_F77 \
15084     hardcode_automatic_F77 \
15085     module_cmds_F77 \
15086     module_expsym_cmds_F77 \
15087     lt_cv_prog_compiler_c_o_F77 \
15088     exclude_expsyms_F77 \
15089     include_expsyms_F77; do
15090
15091     case $var in
15092     old_archive_cmds_F77 | \
15093     old_archive_from_new_cmds_F77 | \
15094     archive_cmds_F77 | \
15095     archive_expsym_cmds_F77 | \
15096     module_cmds_F77 | \
15097     module_expsym_cmds_F77 | \
15098     old_archive_from_expsyms_cmds_F77 | \
15099     export_symbols_cmds_F77 | \
15100     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15101     postinstall_cmds | postuninstall_cmds | \
15102     old_postinstall_cmds | old_postuninstall_cmds | \
15103     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15104       # Double-quote double-evaled strings.
15105       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15106       ;;
15107     *)
15108       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15109       ;;
15110     esac
15111   done
15112
15113   case $lt_echo in
15114   *'\$0 --fallback-echo"')
15115     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15116     ;;
15117   esac
15118
15119 cfgfile="$ofile"
15120
15121   cat <<__EOF__ >> "$cfgfile"
15122 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15123
15124 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15125
15126 # Shell to use when invoking shell scripts.
15127 SHELL=$lt_SHELL
15128
15129 # Whether or not to build shared libraries.
15130 build_libtool_libs=$enable_shared
15131
15132 # Whether or not to build static libraries.
15133 build_old_libs=$enable_static
15134
15135 # Whether or not to add -lc for building shared libraries.
15136 build_libtool_need_lc=$archive_cmds_need_lc_F77
15137
15138 # Whether or not to disallow shared libs when runtime libs are static
15139 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15140
15141 # Whether or not to optimize for fast installation.
15142 fast_install=$enable_fast_install
15143
15144 # The host system.
15145 host_alias=$host_alias
15146 host=$host
15147 host_os=$host_os
15148
15149 # The build system.
15150 build_alias=$build_alias
15151 build=$build
15152 build_os=$build_os
15153
15154 # An echo program that does not interpret backslashes.
15155 echo=$lt_echo
15156
15157 # The archiver.
15158 AR=$lt_AR
15159 AR_FLAGS=$lt_AR_FLAGS
15160
15161 # A C compiler.
15162 LTCC=$lt_LTCC
15163
15164 # LTCC compiler flags.
15165 LTCFLAGS=$lt_LTCFLAGS
15166
15167 # A language-specific compiler.
15168 CC=$lt_compiler_F77
15169
15170 # Is the compiler the GNU C compiler?
15171 with_gcc=$GCC_F77
15172
15173 # An ERE matcher.
15174 EGREP=$lt_EGREP
15175
15176 # The linker used to build libraries.
15177 LD=$lt_LD_F77
15178
15179 # Whether we need hard or soft links.
15180 LN_S=$lt_LN_S
15181
15182 # A BSD-compatible nm program.
15183 NM=$lt_NM
15184
15185 # A symbol stripping program
15186 STRIP=$lt_STRIP
15187
15188 # Used to examine libraries when file_magic_cmd begins "file"
15189 MAGIC_CMD=$MAGIC_CMD
15190
15191 # Used on cygwin: DLL creation program.
15192 DLLTOOL="$DLLTOOL"
15193
15194 # Used on cygwin: object dumper.
15195 OBJDUMP="$OBJDUMP"
15196
15197 # Used on cygwin: assembler.
15198 AS="$AS"
15199
15200 # The name of the directory that contains temporary libtool files.
15201 objdir=$objdir
15202
15203 # How to create reloadable object files.
15204 reload_flag=$lt_reload_flag
15205 reload_cmds=$lt_reload_cmds
15206
15207 # How to pass a linker flag through the compiler.
15208 wl=$lt_lt_prog_compiler_wl_F77
15209
15210 # Object file suffix (normally "o").
15211 objext="$ac_objext"
15212
15213 # Old archive suffix (normally "a").
15214 libext="$libext"
15215
15216 # Shared library suffix (normally ".so").
15217 shrext_cmds='$shrext_cmds'
15218
15219 # Executable file suffix (normally "").
15220 exeext="$exeext"
15221
15222 # Additional compiler flags for building library objects.
15223 pic_flag=$lt_lt_prog_compiler_pic_F77
15224 pic_mode=$pic_mode
15225
15226 # What is the maximum length of a command?
15227 max_cmd_len=$lt_cv_sys_max_cmd_len
15228
15229 # Does compiler simultaneously support -c and -o options?
15230 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15231
15232 # Must we lock files when doing compilation?
15233 need_locks=$lt_need_locks
15234
15235 # Do we need the lib prefix for modules?
15236 need_lib_prefix=$need_lib_prefix
15237
15238 # Do we need a version for libraries?
15239 need_version=$need_version
15240
15241 # Whether dlopen is supported.
15242 dlopen_support=$enable_dlopen
15243
15244 # Whether dlopen of programs is supported.
15245 dlopen_self=$enable_dlopen_self
15246
15247 # Whether dlopen of statically linked programs is supported.
15248 dlopen_self_static=$enable_dlopen_self_static
15249
15250 # Compiler flag to prevent dynamic linking.
15251 link_static_flag=$lt_lt_prog_compiler_static_F77
15252
15253 # Compiler flag to turn off builtin functions.
15254 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15255
15256 # Compiler flag to allow reflexive dlopens.
15257 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15258
15259 # Compiler flag to generate shared objects directly from archives.
15260 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15261
15262 # Compiler flag to generate thread-safe objects.
15263 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15264
15265 # Library versioning type.
15266 version_type=$version_type
15267
15268 # Format of library name prefix.
15269 libname_spec=$lt_libname_spec
15270
15271 # List of archive names.  First name is the real one, the rest are links.
15272 # The last name is the one that the linker finds with -lNAME.
15273 library_names_spec=$lt_library_names_spec
15274
15275 # The coded name of the library, if different from the real name.
15276 soname_spec=$lt_soname_spec
15277
15278 # Commands used to build and install an old-style archive.
15279 RANLIB=$lt_RANLIB
15280 old_archive_cmds=$lt_old_archive_cmds_F77
15281 old_postinstall_cmds=$lt_old_postinstall_cmds
15282 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15283
15284 # Create an old-style archive from a shared archive.
15285 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15286
15287 # Create a temporary old-style archive to link instead of a shared archive.
15288 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15289
15290 # Commands used to build and install a shared archive.
15291 archive_cmds=$lt_archive_cmds_F77
15292 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15293 postinstall_cmds=$lt_postinstall_cmds
15294 postuninstall_cmds=$lt_postuninstall_cmds
15295
15296 # Commands used to build a loadable module (assumed same as above if empty)
15297 module_cmds=$lt_module_cmds_F77
15298 module_expsym_cmds=$lt_module_expsym_cmds_F77
15299
15300 # Commands to strip libraries.
15301 old_striplib=$lt_old_striplib
15302 striplib=$lt_striplib
15303
15304 # Dependencies to place before the objects being linked to create a
15305 # shared library.
15306 predep_objects=$lt_predep_objects_F77
15307
15308 # Dependencies to place after the objects being linked to create a
15309 # shared library.
15310 postdep_objects=$lt_postdep_objects_F77
15311
15312 # Dependencies to place before the objects being linked to create a
15313 # shared library.
15314 predeps=$lt_predeps_F77
15315
15316 # Dependencies to place after the objects being linked to create a
15317 # shared library.
15318 postdeps=$lt_postdeps_F77
15319
15320 # The library search path used internally by the compiler when linking
15321 # a shared library.
15322 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15323
15324 # Method to check whether dependent libraries are shared objects.
15325 deplibs_check_method=$lt_deplibs_check_method
15326
15327 # Command to use when deplibs_check_method == file_magic.
15328 file_magic_cmd=$lt_file_magic_cmd
15329
15330 # Flag that allows shared libraries with undefined symbols to be built.
15331 allow_undefined_flag=$lt_allow_undefined_flag_F77
15332
15333 # Flag that forces no undefined symbols.
15334 no_undefined_flag=$lt_no_undefined_flag_F77
15335
15336 # Commands used to finish a libtool library installation in a directory.
15337 finish_cmds=$lt_finish_cmds
15338
15339 # Same as above, but a single script fragment to be evaled but not shown.
15340 finish_eval=$lt_finish_eval
15341
15342 # Take the output of nm and produce a listing of raw symbols and C names.
15343 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15344
15345 # Transform the output of nm in a proper C declaration
15346 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15347
15348 # Transform the output of nm in a C name address pair
15349 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15350
15351 # This is the shared library runtime path variable.
15352 runpath_var=$runpath_var
15353
15354 # This is the shared library path variable.
15355 shlibpath_var=$shlibpath_var
15356
15357 # Is shlibpath searched before the hard-coded library search path?
15358 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15359
15360 # How to hardcode a shared library path into an executable.
15361 hardcode_action=$hardcode_action_F77
15362
15363 # Whether we should hardcode library paths into libraries.
15364 hardcode_into_libs=$hardcode_into_libs
15365
15366 # Flag to hardcode \$libdir into a binary during linking.
15367 # This must work even if \$libdir does not exist.
15368 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15369
15370 # If ld is used when linking, flag to hardcode \$libdir into
15371 # a binary during linking. This must work even if \$libdir does
15372 # not exist.
15373 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15374
15375 # Whether we need a single -rpath flag with a separated argument.
15376 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15377
15378 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15379 # resulting binary.
15380 hardcode_direct=$hardcode_direct_F77
15381
15382 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15383 # resulting binary.
15384 hardcode_minus_L=$hardcode_minus_L_F77
15385
15386 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15387 # the resulting binary.
15388 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15389
15390 # Set to yes if building a shared library automatically hardcodes DIR into the library
15391 # and all subsequent libraries and executables linked against it.
15392 hardcode_automatic=$hardcode_automatic_F77
15393
15394 # Variables whose values should be saved in libtool wrapper scripts and
15395 # restored at relink time.
15396 variables_saved_for_relink="$variables_saved_for_relink"
15397
15398 # Whether libtool must link a program against all its dependency libraries.
15399 link_all_deplibs=$link_all_deplibs_F77
15400
15401 # Compile-time system search path for libraries
15402 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15403
15404 # Run-time system search path for libraries
15405 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15406
15407 # Fix the shell variable \$srcfile for the compiler.
15408 fix_srcfile_path="$fix_srcfile_path_F77"
15409
15410 # Set to yes if exported symbols are required.
15411 always_export_symbols=$always_export_symbols_F77
15412
15413 # The commands to list exported symbols.
15414 export_symbols_cmds=$lt_export_symbols_cmds_F77
15415
15416 # The commands to extract the exported symbol list from a shared archive.
15417 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15418
15419 # Symbols that should not be listed in the preloaded symbols.
15420 exclude_expsyms=$lt_exclude_expsyms_F77
15421
15422 # Symbols that must always be exported.
15423 include_expsyms=$lt_include_expsyms_F77
15424
15425 # ### END LIBTOOL TAG CONFIG: $tagname
15426
15427 __EOF__
15428
15429
15430 else
15431   # If there is no Makefile yet, we rely on a make rule to execute
15432   # `config.status --recheck' to rerun these tests and create the
15433   # libtool script then.
15434   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15435   if test -f "$ltmain_in"; then
15436     test -f Makefile && make "$ltmain"
15437   fi
15438 fi
15439
15440
15441 ac_ext=c
15442 ac_cpp='$CPP $CPPFLAGS'
15443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15446
15447 CC="$lt_save_CC"
15448
15449         else
15450           tagname=""
15451         fi
15452         ;;
15453
15454       GCJ)
15455         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15456
15457
15458
15459 # Source file extension for Java test sources.
15460 ac_ext=java
15461
15462 # Object file extension for compiled Java test sources.
15463 objext=o
15464 objext_GCJ=$objext
15465
15466 # Code to be used in simple compile tests
15467 lt_simple_compile_test_code="class foo {}\n"
15468
15469 # Code to be used in simple link tests
15470 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15471
15472 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15473
15474 # If no C compiler was specified, use CC.
15475 LTCC=${LTCC-"$CC"}
15476
15477 # If no C compiler flags were specified, use CFLAGS.
15478 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15479
15480 # Allow CC to be a program name with arguments.
15481 compiler=$CC
15482
15483
15484 # save warnings/boilerplate of simple test code
15485 ac_outfile=conftest.$ac_objext
15486 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15487 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15488 _lt_compiler_boilerplate=`cat conftest.err`
15489 $rm conftest*
15490
15491 ac_outfile=conftest.$ac_objext
15492 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15493 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15494 _lt_linker_boilerplate=`cat conftest.err`
15495 $rm conftest*
15496
15497
15498 # Allow CC to be a program name with arguments.
15499 lt_save_CC="$CC"
15500 CC=${GCJ-"gcj"}
15501 compiler=$CC
15502 compiler_GCJ=$CC
15503 for cc_temp in $compiler""; do
15504   case $cc_temp in
15505     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15506     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15507     \-*) ;;
15508     *) break;;
15509   esac
15510 done
15511 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15512
15513
15514 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15515 archive_cmds_need_lc_GCJ=no
15516
15517 old_archive_cmds_GCJ=$old_archive_cmds
15518
15519
15520 lt_prog_compiler_no_builtin_flag_GCJ=
15521
15522 if test "$GCC" = yes; then
15523   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15524
15525
15526 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15527 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15528 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15529   echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531   lt_cv_prog_compiler_rtti_exceptions=no
15532   ac_outfile=conftest.$ac_objext
15533    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15534    lt_compiler_flag="-fno-rtti -fno-exceptions"
15535    # Insert the option either (1) after the last *FLAGS variable, or
15536    # (2) before a word containing "conftest.", or (3) at the end.
15537    # Note that $ac_compile itself does not contain backslashes and begins
15538    # with a dollar sign (not a hyphen), so the echo should work correctly.
15539    # The option is referenced via a variable to avoid confusing sed.
15540    lt_compile=`echo "$ac_compile" | $SED \
15541    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15542    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15543    -e 's:$: $lt_compiler_flag:'`
15544    (eval echo "\"\$as_me:15544: $lt_compile\"" >&5)
15545    (eval "$lt_compile" 2>conftest.err)
15546    ac_status=$?
15547    cat conftest.err >&5
15548    echo "$as_me:15548: \$? = $ac_status" >&5
15549    if (exit $ac_status) && test -s "$ac_outfile"; then
15550      # The compiler can only warn and ignore the option if not recognized
15551      # So say no if there are warnings other than the usual output.
15552      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15553      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15554      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15555        lt_cv_prog_compiler_rtti_exceptions=yes
15556      fi
15557    fi
15558    $rm conftest*
15559
15560 fi
15561 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15562 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15563
15564 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15565     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15566 else
15567     :
15568 fi
15569
15570 fi
15571
15572 lt_prog_compiler_wl_GCJ=
15573 lt_prog_compiler_pic_GCJ=
15574 lt_prog_compiler_static_GCJ=
15575
15576 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15577 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15578
15579   if test "$GCC" = yes; then
15580     lt_prog_compiler_wl_GCJ='-Wl,'
15581     lt_prog_compiler_static_GCJ='-static'
15582
15583     case $host_os in
15584       aix*)
15585       # All AIX code is PIC.
15586       if test "$host_cpu" = ia64; then
15587         # AIX 5 now supports IA64 processor
15588         lt_prog_compiler_static_GCJ='-Bstatic'
15589       fi
15590       ;;
15591
15592     amigaos*)
15593       # FIXME: we need at least 68020 code to build shared libraries, but
15594       # adding the `-m68020' flag to GCC prevents building anything better,
15595       # like `-m68040'.
15596       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15597       ;;
15598
15599     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15600       # PIC is the default for these OSes.
15601       ;;
15602
15603     mingw* | pw32* | os2*)
15604       # This hack is so that the source file can tell whether it is being
15605       # built for inclusion in a dll (and should export symbols for example).
15606       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15607       ;;
15608
15609     darwin* | rhapsody*)
15610       # PIC is the default on this platform
15611       # Common symbols not allowed in MH_DYLIB files
15612       lt_prog_compiler_pic_GCJ='-fno-common'
15613       ;;
15614
15615     interix3*)
15616       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15617       # Instead, we relocate shared libraries at runtime.
15618       ;;
15619
15620     msdosdjgpp*)
15621       # Just because we use GCC doesn't mean we suddenly get shared libraries
15622       # on systems that don't support them.
15623       lt_prog_compiler_can_build_shared_GCJ=no
15624       enable_shared=no
15625       ;;
15626
15627     sysv4*MP*)
15628       if test -d /usr/nec; then
15629         lt_prog_compiler_pic_GCJ=-Kconform_pic
15630       fi
15631       ;;
15632
15633     hpux*)
15634       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15635       # not for PA HP-UX.
15636       case $host_cpu in
15637       hppa*64*|ia64*)
15638         # +Z the default
15639         ;;
15640       *)
15641         lt_prog_compiler_pic_GCJ='-fPIC'
15642         ;;
15643       esac
15644       ;;
15645
15646     *)
15647       lt_prog_compiler_pic_GCJ='-fPIC'
15648       ;;
15649     esac
15650   else
15651     # PORTME Check for flag to pass linker flags through the system compiler.
15652     case $host_os in
15653     aix*)
15654       lt_prog_compiler_wl_GCJ='-Wl,'
15655       if test "$host_cpu" = ia64; then
15656         # AIX 5 now supports IA64 processor
15657         lt_prog_compiler_static_GCJ='-Bstatic'
15658       else
15659         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15660       fi
15661       ;;
15662       darwin*)
15663         # PIC is the default on this platform
15664         # Common symbols not allowed in MH_DYLIB files
15665        case $cc_basename in
15666          xlc*)
15667          lt_prog_compiler_pic_GCJ='-qnocommon'
15668          lt_prog_compiler_wl_GCJ='-Wl,'
15669          ;;
15670        esac
15671        ;;
15672
15673     mingw* | pw32* | os2*)
15674       # This hack is so that the source file can tell whether it is being
15675       # built for inclusion in a dll (and should export symbols for example).
15676       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15677       ;;
15678
15679     hpux9* | hpux10* | hpux11*)
15680       lt_prog_compiler_wl_GCJ='-Wl,'
15681       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15682       # not for PA HP-UX.
15683       case $host_cpu in
15684       hppa*64*|ia64*)
15685         # +Z the default
15686         ;;
15687       *)
15688         lt_prog_compiler_pic_GCJ='+Z'
15689         ;;
15690       esac
15691       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15692       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15693       ;;
15694
15695     irix5* | irix6* | nonstopux*)
15696       lt_prog_compiler_wl_GCJ='-Wl,'
15697       # PIC (with -KPIC) is the default.
15698       lt_prog_compiler_static_GCJ='-non_shared'
15699       ;;
15700
15701     newsos6)
15702       lt_prog_compiler_pic_GCJ='-KPIC'
15703       lt_prog_compiler_static_GCJ='-Bstatic'
15704       ;;
15705
15706     linux*)
15707       case $cc_basename in
15708       icc* | ecc*)
15709         lt_prog_compiler_wl_GCJ='-Wl,'
15710         lt_prog_compiler_pic_GCJ='-KPIC'
15711         lt_prog_compiler_static_GCJ='-static'
15712         ;;
15713       pgcc* | pgf77* | pgf90* | pgf95*)
15714         # Portland Group compilers (*not* the Pentium gcc compiler,
15715         # which looks to be a dead project)
15716         lt_prog_compiler_wl_GCJ='-Wl,'
15717         lt_prog_compiler_pic_GCJ='-fpic'
15718         lt_prog_compiler_static_GCJ='-Bstatic'
15719         ;;
15720       ccc*)
15721         lt_prog_compiler_wl_GCJ='-Wl,'
15722         # All Alpha code is PIC.
15723         lt_prog_compiler_static_GCJ='-non_shared'
15724         ;;
15725       esac
15726       ;;
15727
15728     osf3* | osf4* | osf5*)
15729       lt_prog_compiler_wl_GCJ='-Wl,'
15730       # All OSF/1 code is PIC.
15731       lt_prog_compiler_static_GCJ='-non_shared'
15732       ;;
15733
15734     solaris*)
15735       lt_prog_compiler_pic_GCJ='-KPIC'
15736       lt_prog_compiler_static_GCJ='-Bstatic'
15737       case $cc_basename in
15738       f77* | f90* | f95*)
15739         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15740       *)
15741         lt_prog_compiler_wl_GCJ='-Wl,';;
15742       esac
15743       ;;
15744
15745     sunos4*)
15746       lt_prog_compiler_wl_GCJ='-Qoption ld '
15747       lt_prog_compiler_pic_GCJ='-PIC'
15748       lt_prog_compiler_static_GCJ='-Bstatic'
15749       ;;
15750
15751     sysv4 | sysv4.2uw2* | sysv4.3*)
15752       lt_prog_compiler_wl_GCJ='-Wl,'
15753       lt_prog_compiler_pic_GCJ='-KPIC'
15754       lt_prog_compiler_static_GCJ='-Bstatic'
15755       ;;
15756
15757     sysv4*MP*)
15758       if test -d /usr/nec ;then
15759         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15760         lt_prog_compiler_static_GCJ='-Bstatic'
15761       fi
15762       ;;
15763
15764     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15765       lt_prog_compiler_wl_GCJ='-Wl,'
15766       lt_prog_compiler_pic_GCJ='-KPIC'
15767       lt_prog_compiler_static_GCJ='-Bstatic'
15768       ;;
15769
15770     unicos*)
15771       lt_prog_compiler_wl_GCJ='-Wl,'
15772       lt_prog_compiler_can_build_shared_GCJ=no
15773       ;;
15774
15775     uts4*)
15776       lt_prog_compiler_pic_GCJ='-pic'
15777       lt_prog_compiler_static_GCJ='-Bstatic'
15778       ;;
15779
15780     *)
15781       lt_prog_compiler_can_build_shared_GCJ=no
15782       ;;
15783     esac
15784   fi
15785
15786 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15787 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15788
15789 #
15790 # Check to make sure the PIC flag actually works.
15791 #
15792 if test -n "$lt_prog_compiler_pic_GCJ"; then
15793
15794 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15795 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15796 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15797   echo $ECHO_N "(cached) $ECHO_C" >&6
15798 else
15799   lt_prog_compiler_pic_works_GCJ=no
15800   ac_outfile=conftest.$ac_objext
15801    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15802    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15803    # Insert the option either (1) after the last *FLAGS variable, or
15804    # (2) before a word containing "conftest.", or (3) at the end.
15805    # Note that $ac_compile itself does not contain backslashes and begins
15806    # with a dollar sign (not a hyphen), so the echo should work correctly.
15807    # The option is referenced via a variable to avoid confusing sed.
15808    lt_compile=`echo "$ac_compile" | $SED \
15809    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15810    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15811    -e 's:$: $lt_compiler_flag:'`
15812    (eval echo "\"\$as_me:15812: $lt_compile\"" >&5)
15813    (eval "$lt_compile" 2>conftest.err)
15814    ac_status=$?
15815    cat conftest.err >&5
15816    echo "$as_me:15816: \$? = $ac_status" >&5
15817    if (exit $ac_status) && test -s "$ac_outfile"; then
15818      # The compiler can only warn and ignore the option if not recognized
15819      # So say no if there are warnings other than the usual output.
15820      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15821      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15822      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15823        lt_prog_compiler_pic_works_GCJ=yes
15824      fi
15825    fi
15826    $rm conftest*
15827
15828 fi
15829 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15830 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15831
15832 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15833     case $lt_prog_compiler_pic_GCJ in
15834      "" | " "*) ;;
15835      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15836      esac
15837 else
15838     lt_prog_compiler_pic_GCJ=
15839      lt_prog_compiler_can_build_shared_GCJ=no
15840 fi
15841
15842 fi
15843 case $host_os in
15844   # For platforms which do not support PIC, -DPIC is meaningless:
15845   *djgpp*)
15846     lt_prog_compiler_pic_GCJ=
15847     ;;
15848   *)
15849     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15850     ;;
15851 esac
15852
15853 #
15854 # Check to make sure the static flag actually works.
15855 #
15856 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15857 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15858 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
15859 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
15860   echo $ECHO_N "(cached) $ECHO_C" >&6
15861 else
15862   lt_prog_compiler_static_works_GCJ=no
15863    save_LDFLAGS="$LDFLAGS"
15864    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15865    printf "$lt_simple_link_test_code" > conftest.$ac_ext
15866    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15867      # The linker can only warn and ignore the option if not recognized
15868      # So say no if there are warnings
15869      if test -s conftest.err; then
15870        # Append any errors to the config.log.
15871        cat conftest.err 1>&5
15872        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15873        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15874        if diff conftest.exp conftest.er2 >/dev/null; then
15875          lt_prog_compiler_static_works_GCJ=yes
15876        fi
15877      else
15878        lt_prog_compiler_static_works_GCJ=yes
15879      fi
15880    fi
15881    $rm conftest*
15882    LDFLAGS="$save_LDFLAGS"
15883
15884 fi
15885 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
15886 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
15887
15888 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
15889     :
15890 else
15891     lt_prog_compiler_static_GCJ=
15892 fi
15893
15894
15895 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15896 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15897 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15898   echo $ECHO_N "(cached) $ECHO_C" >&6
15899 else
15900   lt_cv_prog_compiler_c_o_GCJ=no
15901    $rm -r conftest 2>/dev/null
15902    mkdir conftest
15903    cd conftest
15904    mkdir out
15905    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15906
15907    lt_compiler_flag="-o out/conftest2.$ac_objext"
15908    # Insert the option either (1) after the last *FLAGS variable, or
15909    # (2) before a word containing "conftest.", or (3) at the end.
15910    # Note that $ac_compile itself does not contain backslashes and begins
15911    # with a dollar sign (not a hyphen), so the echo should work correctly.
15912    lt_compile=`echo "$ac_compile" | $SED \
15913    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15914    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15915    -e 's:$: $lt_compiler_flag:'`
15916    (eval echo "\"\$as_me:15916: $lt_compile\"" >&5)
15917    (eval "$lt_compile" 2>out/conftest.err)
15918    ac_status=$?
15919    cat out/conftest.err >&5
15920    echo "$as_me:15920: \$? = $ac_status" >&5
15921    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15922    then
15923      # The compiler can only warn and ignore the option if not recognized
15924      # So say no if there are warnings
15925      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15926      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15927      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15928        lt_cv_prog_compiler_c_o_GCJ=yes
15929      fi
15930    fi
15931    chmod u+w . 2>&5
15932    $rm conftest*
15933    # SGI C++ compiler will create directory out/ii_files/ for
15934    # template instantiation
15935    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15936    $rm out/* && rmdir out
15937    cd ..
15938    rmdir conftest
15939    $rm conftest*
15940
15941 fi
15942 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15943 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15944
15945
15946 hard_links="nottested"
15947 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15948   # do not overwrite the value of need_locks provided by the user
15949   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15950 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15951   hard_links=yes
15952   $rm conftest*
15953   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15954   touch conftest.a
15955   ln conftest.a conftest.b 2>&5 || hard_links=no
15956   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15957   echo "$as_me:$LINENO: result: $hard_links" >&5
15958 echo "${ECHO_T}$hard_links" >&6
15959   if test "$hard_links" = no; then
15960     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15961 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15962     need_locks=warn
15963   fi
15964 else
15965   need_locks=no
15966 fi
15967
15968 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15969 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15970
15971   runpath_var=
15972   allow_undefined_flag_GCJ=
15973   enable_shared_with_static_runtimes_GCJ=no
15974   archive_cmds_GCJ=
15975   archive_expsym_cmds_GCJ=
15976   old_archive_From_new_cmds_GCJ=
15977   old_archive_from_expsyms_cmds_GCJ=
15978   export_dynamic_flag_spec_GCJ=
15979   whole_archive_flag_spec_GCJ=
15980   thread_safe_flag_spec_GCJ=
15981   hardcode_libdir_flag_spec_GCJ=
15982   hardcode_libdir_flag_spec_ld_GCJ=
15983   hardcode_libdir_separator_GCJ=
15984   hardcode_direct_GCJ=no
15985   hardcode_minus_L_GCJ=no
15986   hardcode_shlibpath_var_GCJ=unsupported
15987   link_all_deplibs_GCJ=unknown
15988   hardcode_automatic_GCJ=no
15989   module_cmds_GCJ=
15990   module_expsym_cmds_GCJ=
15991   always_export_symbols_GCJ=no
15992   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15993   # include_expsyms should be a list of space-separated symbols to be *always*
15994   # included in the symbol list
15995   include_expsyms_GCJ=
15996   # exclude_expsyms can be an extended regexp of symbols to exclude
15997   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15998   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15999   # as well as any symbol that contains `d'.
16000   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16001   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16002   # platforms (ab)use it in PIC code, but their linkers get confused if
16003   # the symbol is explicitly referenced.  Since portable code cannot
16004   # rely on this symbol name, it's probably fine to never include it in
16005   # preloaded symbol tables.
16006   extract_expsyms_cmds=
16007   # Just being paranoid about ensuring that cc_basename is set.
16008   for cc_temp in $compiler""; do
16009   case $cc_temp in
16010     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16011     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16012     \-*) ;;
16013     *) break;;
16014   esac
16015 done
16016 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16017
16018   case $host_os in
16019   cygwin* | mingw* | pw32*)
16020     # FIXME: the MSVC++ port hasn't been tested in a loooong time
16021     # When not using gcc, we currently assume that we are using
16022     # Microsoft Visual C++.
16023     if test "$GCC" != yes; then
16024       with_gnu_ld=no
16025     fi
16026     ;;
16027   interix*)
16028     # we just hope/assume this is gcc and not c89 (= MSVC++)
16029     with_gnu_ld=yes
16030     ;;
16031   openbsd*)
16032     with_gnu_ld=no
16033     ;;
16034   esac
16035
16036   ld_shlibs_GCJ=yes
16037   if test "$with_gnu_ld" = yes; then
16038     # If archive_cmds runs LD, not CC, wlarc should be empty
16039     wlarc='${wl}'
16040
16041     # Set some defaults for GNU ld with shared library support. These
16042     # are reset later if shared libraries are not supported. Putting them
16043     # here allows them to be overridden if necessary.
16044     runpath_var=LD_RUN_PATH
16045     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16046     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16047     # ancient GNU ld didn't support --whole-archive et. al.
16048     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16049         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16050       else
16051         whole_archive_flag_spec_GCJ=
16052     fi
16053     supports_anon_versioning=no
16054     case `$LD -v 2>/dev/null` in
16055       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16056       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16057       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16058       *\ 2.11.*) ;; # other 2.11 versions
16059       *) supports_anon_versioning=yes ;;
16060     esac
16061
16062     # See if GNU ld supports shared libraries.
16063     case $host_os in
16064     aix3* | aix4* | aix5*)
16065       # On AIX/PPC, the GNU linker is very broken
16066       if test "$host_cpu" != ia64; then
16067         ld_shlibs_GCJ=no
16068         cat <<EOF 1>&2
16069
16070 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16071 *** to be unable to reliably create shared libraries on AIX.
16072 *** Therefore, libtool is disabling shared libraries support.  If you
16073 *** really care for shared libraries, you may want to modify your PATH
16074 *** so that a non-GNU linker is found, and then restart.
16075
16076 EOF
16077       fi
16078       ;;
16079
16080     amigaos*)
16081       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)'
16082       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16083       hardcode_minus_L_GCJ=yes
16084
16085       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16086       # that the semantics of dynamic libraries on AmigaOS, at least up
16087       # to version 4, is to share data among multiple programs linked
16088       # with the same dynamic library.  Since this doesn't match the
16089       # behavior of shared libraries on other platforms, we can't use
16090       # them.
16091       ld_shlibs_GCJ=no
16092       ;;
16093
16094     beos*)
16095       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16096         allow_undefined_flag_GCJ=unsupported
16097         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16098         # support --undefined.  This deserves some investigation.  FIXME
16099         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16100       else
16101         ld_shlibs_GCJ=no
16102       fi
16103       ;;
16104
16105     cygwin* | mingw* | pw32*)
16106       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16107       # as there is no search path for DLLs.
16108       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16109       allow_undefined_flag_GCJ=unsupported
16110       always_export_symbols_GCJ=no
16111       enable_shared_with_static_runtimes_GCJ=yes
16112       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16113
16114       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16115         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16116         # If the export-symbols file already is a .def file (1st line
16117         # is EXPORTS), use it as is; otherwise, prepend...
16118         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16119           cp $export_symbols $output_objdir/$soname.def;
16120         else
16121           echo EXPORTS > $output_objdir/$soname.def;
16122           cat $export_symbols >> $output_objdir/$soname.def;
16123         fi~
16124         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16125       else
16126         ld_shlibs_GCJ=no
16127       fi
16128       ;;
16129
16130     interix3*)
16131       hardcode_direct_GCJ=no
16132       hardcode_shlibpath_var_GCJ=no
16133       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16134       export_dynamic_flag_spec_GCJ='${wl}-E'
16135       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16136       # Instead, shared libraries are loaded at an image base (0x10000000 by
16137       # default) and relocated if they conflict, which is a slow very memory
16138       # consuming and fragmenting process.  To avoid this, we pick a random,
16139       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16140       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16141       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'
16142       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'
16143       ;;
16144
16145     linux*)
16146       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16147         tmp_addflag=
16148         case $cc_basename,$host_cpu in
16149         pgcc*)                          # Portland Group C compiler
16150           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'
16151           tmp_addflag=' $pic_flag'
16152           ;;
16153         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
16154           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'
16155           tmp_addflag=' $pic_flag -Mnomain' ;;
16156         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
16157           tmp_addflag=' -i_dynamic' ;;
16158         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
16159           tmp_addflag=' -i_dynamic -nofor_main' ;;
16160         ifc* | ifort*)                  # Intel Fortran compiler
16161           tmp_addflag=' -nofor_main' ;;
16162         esac
16163         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16164
16165         if test $supports_anon_versioning = yes; then
16166           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16167   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16168   $echo "local: *; };" >> $output_objdir/$libname.ver~
16169           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16170         fi
16171       else
16172         ld_shlibs_GCJ=no
16173       fi
16174       ;;
16175
16176     netbsd*)
16177       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16178         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16179         wlarc=
16180       else
16181         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16182         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16183       fi
16184       ;;
16185
16186     solaris*)
16187       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16188         ld_shlibs_GCJ=no
16189         cat <<EOF 1>&2
16190
16191 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16192 *** create shared libraries on Solaris systems.  Therefore, libtool
16193 *** is disabling shared libraries support.  We urge you to upgrade GNU
16194 *** binutils to release 2.9.1 or newer.  Another option is to modify
16195 *** your PATH or compiler configuration so that the native linker is
16196 *** used, and then restart.
16197
16198 EOF
16199       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16200         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16201         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16202       else
16203         ld_shlibs_GCJ=no
16204       fi
16205       ;;
16206
16207     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16208       case `$LD -v 2>&1` in
16209         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16210         ld_shlibs_GCJ=no
16211         cat <<_LT_EOF 1>&2
16212
16213 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16214 *** reliably create shared libraries on SCO systems.  Therefore, libtool
16215 *** is disabling shared libraries support.  We urge you to upgrade GNU
16216 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
16217 *** your PATH or compiler configuration so that the native linker is
16218 *** used, and then restart.
16219
16220 _LT_EOF
16221         ;;
16222         *)
16223           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16224             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16225             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16226             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16227           else
16228             ld_shlibs_GCJ=no
16229           fi
16230         ;;
16231       esac
16232       ;;
16233
16234     sunos4*)
16235       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16236       wlarc=
16237       hardcode_direct_GCJ=yes
16238       hardcode_shlibpath_var_GCJ=no
16239       ;;
16240
16241     *)
16242       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16243         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16244         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16245       else
16246         ld_shlibs_GCJ=no
16247       fi
16248       ;;
16249     esac
16250
16251     if test "$ld_shlibs_GCJ" = no; then
16252       runpath_var=
16253       hardcode_libdir_flag_spec_GCJ=
16254       export_dynamic_flag_spec_GCJ=
16255       whole_archive_flag_spec_GCJ=
16256     fi
16257   else
16258     # PORTME fill in a description of your system's linker (not GNU ld)
16259     case $host_os in
16260     aix3*)
16261       allow_undefined_flag_GCJ=unsupported
16262       always_export_symbols_GCJ=yes
16263       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'
16264       # Note: this linker hardcodes the directories in LIBPATH if there
16265       # are no directories specified by -L.
16266       hardcode_minus_L_GCJ=yes
16267       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16268         # Neither direct hardcoding nor static linking is supported with a
16269         # broken collect2.
16270         hardcode_direct_GCJ=unsupported
16271       fi
16272       ;;
16273
16274     aix4* | aix5*)
16275       if test "$host_cpu" = ia64; then
16276         # On IA64, the linker does run time linking by default, so we don't
16277         # have to do anything special.
16278         aix_use_runtimelinking=no
16279         exp_sym_flag='-Bexport'
16280         no_entry_flag=""
16281       else
16282         # If we're using GNU nm, then we don't want the "-C" option.
16283         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16284         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16285           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'
16286         else
16287           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'
16288         fi
16289         aix_use_runtimelinking=no
16290
16291         # Test if we are trying to use run time linking or normal
16292         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16293         # need to do runtime linking.
16294         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16295           for ld_flag in $LDFLAGS; do
16296           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16297             aix_use_runtimelinking=yes
16298             break
16299           fi
16300           done
16301           ;;
16302         esac
16303
16304         exp_sym_flag='-bexport'
16305         no_entry_flag='-bnoentry'
16306       fi
16307
16308       # When large executables or shared objects are built, AIX ld can
16309       # have problems creating the table of contents.  If linking a library
16310       # or program results in "error TOC overflow" add -mminimal-toc to
16311       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16312       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16313
16314       archive_cmds_GCJ=''
16315       hardcode_direct_GCJ=yes
16316       hardcode_libdir_separator_GCJ=':'
16317       link_all_deplibs_GCJ=yes
16318
16319       if test "$GCC" = yes; then
16320         case $host_os in aix4.[012]|aix4.[012].*)
16321         # We only want to do this on AIX 4.2 and lower, the check
16322         # below for broken collect2 doesn't work under 4.3+
16323           collect2name=`${CC} -print-prog-name=collect2`
16324           if test -f "$collect2name" && \
16325            strings "$collect2name" | grep resolve_lib_name >/dev/null
16326           then
16327           # We have reworked collect2
16328           hardcode_direct_GCJ=yes
16329           else
16330           # We have old collect2
16331           hardcode_direct_GCJ=unsupported
16332           # It fails to find uninstalled libraries when the uninstalled
16333           # path is not listed in the libpath.  Setting hardcode_minus_L
16334           # to unsupported forces relinking
16335           hardcode_minus_L_GCJ=yes
16336           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16337           hardcode_libdir_separator_GCJ=
16338           fi
16339           ;;
16340         esac
16341         shared_flag='-shared'
16342         if test "$aix_use_runtimelinking" = yes; then
16343           shared_flag="$shared_flag "'${wl}-G'
16344         fi
16345       else
16346         # not using gcc
16347         if test "$host_cpu" = ia64; then
16348         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16349         # chokes on -Wl,-G. The following line is correct:
16350           shared_flag='-G'
16351         else
16352           if test "$aix_use_runtimelinking" = yes; then
16353             shared_flag='${wl}-G'
16354           else
16355             shared_flag='${wl}-bM:SRE'
16356           fi
16357         fi
16358       fi
16359
16360       # It seems that -bexpall does not export symbols beginning with
16361       # underscore (_), so it is better to generate a list of symbols to export.
16362       always_export_symbols_GCJ=yes
16363       if test "$aix_use_runtimelinking" = yes; then
16364         # Warning - without using the other runtime loading flags (-brtl),
16365         # -berok will link without error, but may produce a broken library.
16366         allow_undefined_flag_GCJ='-berok'
16367        # Determine the default libpath from the value encoded in an empty executable.
16368        cat >conftest.$ac_ext <<_ACEOF
16369 /* confdefs.h.  */
16370 _ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h.  */
16374
16375 int
16376 main ()
16377 {
16378
16379   ;
16380   return 0;
16381 }
16382 _ACEOF
16383 rm -f conftest.$ac_objext conftest$ac_exeext
16384 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16385   (eval $ac_link) 2>conftest.er1
16386   ac_status=$?
16387   grep -v '^ *+' conftest.er1 >conftest.err
16388   rm -f conftest.er1
16389   cat conftest.err >&5
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); } &&
16392          { ac_try='test -z "$ac_c_werror_flag"
16393                          || test ! -s conftest.err'
16394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16395   (eval $ac_try) 2>&5
16396   ac_status=$?
16397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16398   (exit $ac_status); }; } &&
16399          { ac_try='test -s conftest$ac_exeext'
16400   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16401   (eval $ac_try) 2>&5
16402   ac_status=$?
16403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404   (exit $ac_status); }; }; then
16405
16406 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16407 }'`
16408 # Check for a 64-bit object if we didn't find anything.
16409 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; }
16410 }'`; fi
16411 else
16412   echo "$as_me: failed program was:" >&5
16413 sed 's/^/| /' conftest.$ac_ext >&5
16414
16415 fi
16416 rm -f conftest.err conftest.$ac_objext \
16417       conftest$ac_exeext conftest.$ac_ext
16418 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16419
16420        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16421         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"
16422        else
16423         if test "$host_cpu" = ia64; then
16424           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16425           allow_undefined_flag_GCJ="-z nodefs"
16426           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"
16427         else
16428          # Determine the default libpath from the value encoded in an empty executable.
16429          cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h.  */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h.  */
16435
16436 int
16437 main ()
16438 {
16439
16440   ;
16441   return 0;
16442 }
16443 _ACEOF
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16446   (eval $ac_link) 2>conftest.er1
16447   ac_status=$?
16448   grep -v '^ *+' conftest.er1 >conftest.err
16449   rm -f conftest.er1
16450   cat conftest.err >&5
16451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452   (exit $ac_status); } &&
16453          { ac_try='test -z "$ac_c_werror_flag"
16454                          || test ! -s conftest.err'
16455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16456   (eval $ac_try) 2>&5
16457   ac_status=$?
16458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16459   (exit $ac_status); }; } &&
16460          { ac_try='test -s conftest$ac_exeext'
16461   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16462   (eval $ac_try) 2>&5
16463   ac_status=$?
16464   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16465   (exit $ac_status); }; }; then
16466
16467 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16468 }'`
16469 # Check for a 64-bit object if we didn't find anything.
16470 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; }
16471 }'`; fi
16472 else
16473   echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16475
16476 fi
16477 rm -f conftest.err conftest.$ac_objext \
16478       conftest$ac_exeext conftest.$ac_ext
16479 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16480
16481          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16482           # Warning - without using the other run time loading flags,
16483           # -berok will link without error, but may produce a broken library.
16484           no_undefined_flag_GCJ=' ${wl}-bernotok'
16485           allow_undefined_flag_GCJ=' ${wl}-berok'
16486           # Exported symbols can be pulled into shared objects from archives
16487           whole_archive_flag_spec_GCJ='$convenience'
16488           archive_cmds_need_lc_GCJ=yes
16489           # This is similar to how AIX traditionally builds its shared libraries.
16490           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'
16491         fi
16492       fi
16493       ;;
16494
16495     amigaos*)
16496       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)'
16497       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16498       hardcode_minus_L_GCJ=yes
16499       # see comment about different semantics on the GNU ld section
16500       ld_shlibs_GCJ=no
16501       ;;
16502
16503     bsdi[45]*)
16504       export_dynamic_flag_spec_GCJ=-rdynamic
16505       ;;
16506
16507     cygwin* | mingw* | pw32*)
16508       # When not using gcc, we currently assume that we are using
16509       # Microsoft Visual C++.
16510       # hardcode_libdir_flag_spec is actually meaningless, as there is
16511       # no search path for DLLs.
16512       hardcode_libdir_flag_spec_GCJ=' '
16513       allow_undefined_flag_GCJ=unsupported
16514       # Tell ltmain to make .lib files, not .a files.
16515       libext=lib
16516       # Tell ltmain to make .dll files, not .so files.
16517       shrext_cmds=".dll"
16518       # FIXME: Setting linknames here is a bad hack.
16519       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16520       # The linker will automatically build a .lib file if we build a DLL.
16521       old_archive_From_new_cmds_GCJ='true'
16522       # FIXME: Should let the user specify the lib program.
16523       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16524       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16525       enable_shared_with_static_runtimes_GCJ=yes
16526       ;;
16527
16528     darwin* | rhapsody*)
16529       case $host_os in
16530         rhapsody* | darwin1.[012])
16531          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16532          ;;
16533        *) # Darwin 1.3 on
16534          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16535            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16536          else
16537            case ${MACOSX_DEPLOYMENT_TARGET} in
16538              10.[012])
16539                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16540                ;;
16541              10.*)
16542                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16543                ;;
16544            esac
16545          fi
16546          ;;
16547       esac
16548       archive_cmds_need_lc_GCJ=no
16549       hardcode_direct_GCJ=no
16550       hardcode_automatic_GCJ=yes
16551       hardcode_shlibpath_var_GCJ=unsupported
16552       whole_archive_flag_spec_GCJ=''
16553       link_all_deplibs_GCJ=yes
16554     if test "$GCC" = yes ; then
16555         output_verbose_link_cmd='echo'
16556         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16557       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16558       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16559       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}'
16560       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}'
16561     else
16562       case $cc_basename in
16563         xlc*)
16564          output_verbose_link_cmd='echo'
16565          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16566          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16567           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16568          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}'
16569           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}'
16570           ;;
16571        *)
16572          ld_shlibs_GCJ=no
16573           ;;
16574       esac
16575     fi
16576       ;;
16577
16578     dgux*)
16579       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16580       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16581       hardcode_shlibpath_var_GCJ=no
16582       ;;
16583
16584     freebsd1*)
16585       ld_shlibs_GCJ=no
16586       ;;
16587
16588     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16589     # support.  Future versions do this automatically, but an explicit c++rt0.o
16590     # does not break anything, and helps significantly (at the cost of a little
16591     # extra space).
16592     freebsd2.2*)
16593       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16594       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16595       hardcode_direct_GCJ=yes
16596       hardcode_shlibpath_var_GCJ=no
16597       ;;
16598
16599     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16600     freebsd2*)
16601       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16602       hardcode_direct_GCJ=yes
16603       hardcode_minus_L_GCJ=yes
16604       hardcode_shlibpath_var_GCJ=no
16605       ;;
16606
16607     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16608     freebsd* | kfreebsd*-gnu | dragonfly*)
16609       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16610       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16611       hardcode_direct_GCJ=yes
16612       hardcode_shlibpath_var_GCJ=no
16613       ;;
16614
16615     hpux9*)
16616       if test "$GCC" = yes; then
16617         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'
16618       else
16619         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'
16620       fi
16621       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16622       hardcode_libdir_separator_GCJ=:
16623       hardcode_direct_GCJ=yes
16624
16625       # hardcode_minus_L: Not really in the search PATH,
16626       # but as the default location of the library.
16627       hardcode_minus_L_GCJ=yes
16628       export_dynamic_flag_spec_GCJ='${wl}-E'
16629       ;;
16630
16631     hpux10*)
16632       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16633         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16634       else
16635         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16636       fi
16637       if test "$with_gnu_ld" = no; then
16638         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16639         hardcode_libdir_separator_GCJ=:
16640
16641         hardcode_direct_GCJ=yes
16642         export_dynamic_flag_spec_GCJ='${wl}-E'
16643
16644         # hardcode_minus_L: Not really in the search PATH,
16645         # but as the default location of the library.
16646         hardcode_minus_L_GCJ=yes
16647       fi
16648       ;;
16649
16650     hpux11*)
16651       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16652         case $host_cpu in
16653         hppa*64*)
16654           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16655           ;;
16656         ia64*)
16657           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16658           ;;
16659         *)
16660           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16661           ;;
16662         esac
16663       else
16664         case $host_cpu in
16665         hppa*64*)
16666           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16667           ;;
16668         ia64*)
16669           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16670           ;;
16671         *)
16672           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16673           ;;
16674         esac
16675       fi
16676       if test "$with_gnu_ld" = no; then
16677         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16678         hardcode_libdir_separator_GCJ=:
16679
16680         case $host_cpu in
16681         hppa*64*|ia64*)
16682           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16683           hardcode_direct_GCJ=no
16684           hardcode_shlibpath_var_GCJ=no
16685           ;;
16686         *)
16687           hardcode_direct_GCJ=yes
16688           export_dynamic_flag_spec_GCJ='${wl}-E'
16689
16690           # hardcode_minus_L: Not really in the search PATH,
16691           # but as the default location of the library.
16692           hardcode_minus_L_GCJ=yes
16693           ;;
16694         esac
16695       fi
16696       ;;
16697
16698     irix5* | irix6* | nonstopux*)
16699       if test "$GCC" = yes; then
16700         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'
16701       else
16702         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'
16703         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16704       fi
16705       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16706       hardcode_libdir_separator_GCJ=:
16707       link_all_deplibs_GCJ=yes
16708       ;;
16709
16710     netbsd*)
16711       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16712         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16713       else
16714         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16715       fi
16716       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16717       hardcode_direct_GCJ=yes
16718       hardcode_shlibpath_var_GCJ=no
16719       ;;
16720
16721     newsos6)
16722       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16723       hardcode_direct_GCJ=yes
16724       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16725       hardcode_libdir_separator_GCJ=:
16726       hardcode_shlibpath_var_GCJ=no
16727       ;;
16728
16729     openbsd*)
16730       hardcode_direct_GCJ=yes
16731       hardcode_shlibpath_var_GCJ=no
16732       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16733         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16734         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16735         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16736         export_dynamic_flag_spec_GCJ='${wl}-E'
16737       else
16738        case $host_os in
16739          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16740            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16741            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16742            ;;
16743          *)
16744            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16745            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16746            ;;
16747        esac
16748       fi
16749       ;;
16750
16751     os2*)
16752       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16753       hardcode_minus_L_GCJ=yes
16754       allow_undefined_flag_GCJ=unsupported
16755       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'
16756       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16757       ;;
16758
16759     osf3*)
16760       if test "$GCC" = yes; then
16761         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16762         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'
16763       else
16764         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16765         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'
16766       fi
16767       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16768       hardcode_libdir_separator_GCJ=:
16769       ;;
16770
16771     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16772       if test "$GCC" = yes; then
16773         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16774         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'
16775         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16776       else
16777         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16778         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'
16779         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~
16780         $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'
16781
16782         # Both c and cxx compiler support -rpath directly
16783         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16784       fi
16785       hardcode_libdir_separator_GCJ=:
16786       ;;
16787
16788     solaris*)
16789       no_undefined_flag_GCJ=' -z text'
16790       if test "$GCC" = yes; then
16791         wlarc='${wl}'
16792         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16793         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16794           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16795       else
16796         wlarc=''
16797         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16798         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16799         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16800       fi
16801       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16802       hardcode_shlibpath_var_GCJ=no
16803       case $host_os in
16804       solaris2.[0-5] | solaris2.[0-5].*) ;;
16805       *)
16806         # The compiler driver will combine linker options so we
16807         # cannot just pass the convience library names through
16808         # without $wl, iff we do not link with $LD.
16809         # Luckily, gcc supports the same syntax we need for Sun Studio.
16810         # Supported since Solaris 2.6 (maybe 2.5.1?)
16811         case $wlarc in
16812         '')
16813           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16814         *)
16815           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' ;;
16816         esac ;;
16817       esac
16818       link_all_deplibs_GCJ=yes
16819       ;;
16820
16821     sunos4*)
16822       if test "x$host_vendor" = xsequent; then
16823         # Use $CC to link under sequent, because it throws in some extra .o
16824         # files that make .init and .fini sections work.
16825         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16826       else
16827         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16828       fi
16829       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16830       hardcode_direct_GCJ=yes
16831       hardcode_minus_L_GCJ=yes
16832       hardcode_shlibpath_var_GCJ=no
16833       ;;
16834
16835     sysv4)
16836       case $host_vendor in
16837         sni)
16838           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16839           hardcode_direct_GCJ=yes # is this really true???
16840         ;;
16841         siemens)
16842           ## LD is ld it makes a PLAMLIB
16843           ## CC just makes a GrossModule.
16844           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16845           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16846           hardcode_direct_GCJ=no
16847         ;;
16848         motorola)
16849           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16850           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16851         ;;
16852       esac
16853       runpath_var='LD_RUN_PATH'
16854       hardcode_shlibpath_var_GCJ=no
16855       ;;
16856
16857     sysv4.3*)
16858       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16859       hardcode_shlibpath_var_GCJ=no
16860       export_dynamic_flag_spec_GCJ='-Bexport'
16861       ;;
16862
16863     sysv4*MP*)
16864       if test -d /usr/nec; then
16865         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866         hardcode_shlibpath_var_GCJ=no
16867         runpath_var=LD_RUN_PATH
16868         hardcode_runpath_var=yes
16869         ld_shlibs_GCJ=yes
16870       fi
16871       ;;
16872
16873     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16874       no_undefined_flag_GCJ='${wl}-z,text'
16875       archive_cmds_need_lc_GCJ=no
16876       hardcode_shlibpath_var_GCJ=no
16877       runpath_var='LD_RUN_PATH'
16878
16879       if test "$GCC" = yes; then
16880         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16881         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16882       else
16883         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16884         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16885       fi
16886       ;;
16887
16888     sysv5* | sco3.2v5* | sco5v6*)
16889       # Note: We can NOT use -z defs as we might desire, because we do not
16890       # link with -lc, and that would cause any symbols used from libc to
16891       # always be unresolved, which means just about no library would
16892       # ever link correctly.  If we're not using GNU ld we use -z text
16893       # though, which does catch some bad symbols but isn't as heavy-handed
16894       # as -z defs.
16895       no_undefined_flag_GCJ='${wl}-z,text'
16896       allow_undefined_flag_GCJ='${wl}-z,nodefs'
16897       archive_cmds_need_lc_GCJ=no
16898       hardcode_shlibpath_var_GCJ=no
16899       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16900       hardcode_libdir_separator_GCJ=':'
16901       link_all_deplibs_GCJ=yes
16902       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16903       runpath_var='LD_RUN_PATH'
16904
16905       if test "$GCC" = yes; then
16906         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16907         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16908       else
16909         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16910         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16911       fi
16912       ;;
16913
16914     uts4*)
16915       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16916       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16917       hardcode_shlibpath_var_GCJ=no
16918       ;;
16919
16920     *)
16921       ld_shlibs_GCJ=no
16922       ;;
16923     esac
16924   fi
16925
16926 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16927 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16928 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16929
16930 #
16931 # Do we need to explicitly link libc?
16932 #
16933 case "x$archive_cmds_need_lc_GCJ" in
16934 x|xyes)
16935   # Assume -lc should be added
16936   archive_cmds_need_lc_GCJ=yes
16937
16938   if test "$enable_shared" = yes && test "$GCC" = yes; then
16939     case $archive_cmds_GCJ in
16940     *'~'*)
16941       # FIXME: we may have to deal with multi-command sequences.
16942       ;;
16943     '$CC '*)
16944       # Test whether the compiler implicitly links with -lc since on some
16945       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16946       # to ld, don't add -lc before -lgcc.
16947       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16948 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16949       $rm conftest*
16950       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16951
16952       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16953   (eval $ac_compile) 2>&5
16954   ac_status=$?
16955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16956   (exit $ac_status); } 2>conftest.err; then
16957         soname=conftest
16958         lib=conftest
16959         libobjs=conftest.$ac_objext
16960         deplibs=
16961         wl=$lt_prog_compiler_wl_GCJ
16962         pic_flag=$lt_prog_compiler_pic_GCJ
16963         compiler_flags=-v
16964         linker_flags=-v
16965         verstring=
16966         output_objdir=.
16967         libname=conftest
16968         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16969         allow_undefined_flag_GCJ=
16970         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16971   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16972   ac_status=$?
16973   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16974   (exit $ac_status); }
16975         then
16976           archive_cmds_need_lc_GCJ=no
16977         else
16978           archive_cmds_need_lc_GCJ=yes
16979         fi
16980         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16981       else
16982         cat conftest.err 1>&5
16983       fi
16984       $rm conftest*
16985       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16986 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16987       ;;
16988     esac
16989   fi
16990   ;;
16991 esac
16992
16993 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16994 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16995 library_names_spec=
16996 libname_spec='lib$name'
16997 soname_spec=
16998 shrext_cmds=".so"
16999 postinstall_cmds=
17000 postuninstall_cmds=
17001 finish_cmds=
17002 finish_eval=
17003 shlibpath_var=
17004 shlibpath_overrides_runpath=unknown
17005 version_type=none
17006 dynamic_linker="$host_os ld.so"
17007 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17008 if test "$GCC" = yes; then
17009   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17010   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17011     # if the path contains ";" then we assume it to be the separator
17012     # otherwise default to the standard path separator (i.e. ":") - it is
17013     # assumed that no part of a normal pathname contains ";" but that should
17014     # okay in the real world where ";" in dirpaths is itself problematic.
17015     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17016   else
17017     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17018   fi
17019 else
17020   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17021 fi
17022 need_lib_prefix=unknown
17023 hardcode_into_libs=no
17024
17025 # when you set need_version to no, make sure it does not cause -set_version
17026 # flags to be left without arguments
17027 need_version=unknown
17028
17029 case $host_os in
17030 aix3*)
17031   version_type=linux
17032   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17033   shlibpath_var=LIBPATH
17034
17035   # AIX 3 has no versioning support, so we append a major version to the name.
17036   soname_spec='${libname}${release}${shared_ext}$major'
17037   ;;
17038
17039 aix4* | aix5*)
17040   version_type=linux
17041   need_lib_prefix=no
17042   need_version=no
17043   hardcode_into_libs=yes
17044   if test "$host_cpu" = ia64; then
17045     # AIX 5 supports IA64
17046     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17047     shlibpath_var=LD_LIBRARY_PATH
17048   else
17049     # With GCC up to 2.95.x, collect2 would create an import file
17050     # for dependence libraries.  The import file would start with
17051     # the line `#! .'.  This would cause the generated library to
17052     # depend on `.', always an invalid library.  This was fixed in
17053     # development snapshots of GCC prior to 3.0.
17054     case $host_os in
17055       aix4 | aix4.[01] | aix4.[01].*)
17056       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17057            echo ' yes '
17058            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17059         :
17060       else
17061         can_build_shared=no
17062       fi
17063       ;;
17064     esac
17065     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17066     # soname into executable. Probably we can add versioning support to
17067     # collect2, so additional links can be useful in future.
17068     if test "$aix_use_runtimelinking" = yes; then
17069       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17070       # instead of lib<name>.a to let people know that these are not
17071       # typical AIX shared libraries.
17072       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17073     else
17074       # We preserve .a as extension for shared libraries through AIX4.2
17075       # and later when we are not doing run time linking.
17076       library_names_spec='${libname}${release}.a $libname.a'
17077       soname_spec='${libname}${release}${shared_ext}$major'
17078     fi
17079     shlibpath_var=LIBPATH
17080   fi
17081   ;;
17082
17083 amigaos*)
17084   library_names_spec='$libname.ixlibrary $libname.a'
17085   # Create ${libname}_ixlibrary.a entries in /sys/libs.
17086   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'
17087   ;;
17088
17089 beos*)
17090   library_names_spec='${libname}${shared_ext}'
17091   dynamic_linker="$host_os ld.so"
17092   shlibpath_var=LIBRARY_PATH
17093   ;;
17094
17095 bsdi[45]*)
17096   version_type=linux
17097   need_version=no
17098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17099   soname_spec='${libname}${release}${shared_ext}$major'
17100   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17101   shlibpath_var=LD_LIBRARY_PATH
17102   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17103   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17104   # the default ld.so.conf also contains /usr/contrib/lib and
17105   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17106   # libtool to hard-code these into programs
17107   ;;
17108
17109 cygwin* | mingw* | pw32*)
17110   version_type=windows
17111   shrext_cmds=".dll"
17112   need_version=no
17113   need_lib_prefix=no
17114
17115   case $GCC,$host_os in
17116   yes,cygwin* | yes,mingw* | yes,pw32*)
17117     library_names_spec='$libname.dll.a'
17118     # DLL is installed to $(libdir)/../bin by postinstall_cmds
17119     postinstall_cmds='base_file=`basename \${file}`~
17120       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17121       dldir=$destdir/`dirname \$dlpath`~
17122       test -d \$dldir || mkdir -p \$dldir~
17123       $install_prog $dir/$dlname \$dldir/$dlname~
17124       chmod a+x \$dldir/$dlname'
17125     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17126       dlpath=$dir/\$dldll~
17127        $rm \$dlpath'
17128     shlibpath_overrides_runpath=yes
17129
17130     case $host_os in
17131     cygwin*)
17132       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17133       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17134       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17135       ;;
17136     mingw*)
17137       # MinGW DLLs use traditional 'lib' prefix
17138       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17139       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17140       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17141         # It is most probably a Windows format PATH printed by
17142         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17143         # path with ; separators, and with drive letters. We can handle the
17144         # drive letters (cygwin fileutils understands them), so leave them,
17145         # especially as we might pass files found there to a mingw objdump,
17146         # which wouldn't understand a cygwinified path. Ahh.
17147         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17148       else
17149         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17150       fi
17151       ;;
17152     pw32*)
17153       # pw32 DLLs use 'pw' prefix rather than 'lib'
17154       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17155       ;;
17156     esac
17157     ;;
17158
17159   *)
17160     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17161     ;;
17162   esac
17163   dynamic_linker='Win32 ld.exe'
17164   # FIXME: first we should search . and the directory the executable is in
17165   shlibpath_var=PATH
17166   ;;
17167
17168 darwin* | rhapsody*)
17169   dynamic_linker="$host_os dyld"
17170   version_type=darwin
17171   need_lib_prefix=no
17172   need_version=no
17173   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17174   soname_spec='${libname}${release}${major}$shared_ext'
17175   shlibpath_overrides_runpath=yes
17176   shlibpath_var=DYLD_LIBRARY_PATH
17177   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17178   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17179   if test "$GCC" = yes; then
17180     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"`
17181   else
17182     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17183   fi
17184   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17185   ;;
17186
17187 dgux*)
17188   version_type=linux
17189   need_lib_prefix=no
17190   need_version=no
17191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17192   soname_spec='${libname}${release}${shared_ext}$major'
17193   shlibpath_var=LD_LIBRARY_PATH
17194   ;;
17195
17196 freebsd1*)
17197   dynamic_linker=no
17198   ;;
17199
17200 kfreebsd*-gnu)
17201   version_type=linux
17202   need_lib_prefix=no
17203   need_version=no
17204   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17205   soname_spec='${libname}${release}${shared_ext}$major'
17206   shlibpath_var=LD_LIBRARY_PATH
17207   shlibpath_overrides_runpath=no
17208   hardcode_into_libs=yes
17209   dynamic_linker='GNU ld.so'
17210   ;;
17211
17212 freebsd* | dragonfly*)
17213   # DragonFly does not have aout.  When/if they implement a new
17214   # versioning mechanism, adjust this.
17215   if test -x /usr/bin/objformat; then
17216     objformat=`/usr/bin/objformat`
17217   else
17218     case $host_os in
17219     freebsd[123]*) objformat=aout ;;
17220     *) objformat=elf ;;
17221     esac
17222   fi
17223   version_type=freebsd-$objformat
17224   case $version_type in
17225     freebsd-elf*)
17226       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17227       need_version=no
17228       need_lib_prefix=no
17229       ;;
17230     freebsd-*)
17231       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17232       need_version=yes
17233       ;;
17234   esac
17235   shlibpath_var=LD_LIBRARY_PATH
17236   case $host_os in
17237   freebsd2*)
17238     shlibpath_overrides_runpath=yes
17239     ;;
17240   freebsd3.[01]* | freebsdelf3.[01]*)
17241     shlibpath_overrides_runpath=yes
17242     hardcode_into_libs=yes
17243     ;;
17244   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17245   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17246     shlibpath_overrides_runpath=no
17247     hardcode_into_libs=yes
17248     ;;
17249   freebsd*) # from 4.6 on
17250     shlibpath_overrides_runpath=yes
17251     hardcode_into_libs=yes
17252     ;;
17253   esac
17254   ;;
17255
17256 gnu*)
17257   version_type=linux
17258   need_lib_prefix=no
17259   need_version=no
17260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17261   soname_spec='${libname}${release}${shared_ext}$major'
17262   shlibpath_var=LD_LIBRARY_PATH
17263   hardcode_into_libs=yes
17264   ;;
17265
17266 hpux9* | hpux10* | hpux11*)
17267   # Give a soname corresponding to the major version so that dld.sl refuses to
17268   # link against other versions.
17269   version_type=sunos
17270   need_lib_prefix=no
17271   need_version=no
17272   case $host_cpu in
17273   ia64*)
17274     shrext_cmds='.so'
17275     hardcode_into_libs=yes
17276     dynamic_linker="$host_os dld.so"
17277     shlibpath_var=LD_LIBRARY_PATH
17278     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17279     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17280     soname_spec='${libname}${release}${shared_ext}$major'
17281     if test "X$HPUX_IA64_MODE" = X32; then
17282       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17283     else
17284       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17285     fi
17286     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17287     ;;
17288    hppa*64*)
17289      shrext_cmds='.sl'
17290      hardcode_into_libs=yes
17291      dynamic_linker="$host_os dld.sl"
17292      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17293      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17294      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17295      soname_spec='${libname}${release}${shared_ext}$major'
17296      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17297      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17298      ;;
17299    *)
17300     shrext_cmds='.sl'
17301     dynamic_linker="$host_os dld.sl"
17302     shlibpath_var=SHLIB_PATH
17303     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17304     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305     soname_spec='${libname}${release}${shared_ext}$major'
17306     ;;
17307   esac
17308   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17309   postinstall_cmds='chmod 555 $lib'
17310   ;;
17311
17312 interix3*)
17313   version_type=linux
17314   need_lib_prefix=no
17315   need_version=no
17316   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17317   soname_spec='${libname}${release}${shared_ext}$major'
17318   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17319   shlibpath_var=LD_LIBRARY_PATH
17320   shlibpath_overrides_runpath=no
17321   hardcode_into_libs=yes
17322   ;;
17323
17324 irix5* | irix6* | nonstopux*)
17325   case $host_os in
17326     nonstopux*) version_type=nonstopux ;;
17327     *)
17328         if test "$lt_cv_prog_gnu_ld" = yes; then
17329                 version_type=linux
17330         else
17331                 version_type=irix
17332         fi ;;
17333   esac
17334   need_lib_prefix=no
17335   need_version=no
17336   soname_spec='${libname}${release}${shared_ext}$major'
17337   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17338   case $host_os in
17339   irix5* | nonstopux*)
17340     libsuff= shlibsuff=
17341     ;;
17342   *)
17343     case $LD in # libtool.m4 will add one of these switches to LD
17344     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17345       libsuff= shlibsuff= libmagic=32-bit;;
17346     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17347       libsuff=32 shlibsuff=N32 libmagic=N32;;
17348     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17349       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17350     *) libsuff= shlibsuff= libmagic=never-match;;
17351     esac
17352     ;;
17353   esac
17354   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17355   shlibpath_overrides_runpath=no
17356   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17357   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17358   hardcode_into_libs=yes
17359   ;;
17360
17361 # No shared lib support for Linux oldld, aout, or coff.
17362 linux*oldld* | linux*aout* | linux*coff*)
17363   dynamic_linker=no
17364   ;;
17365
17366 # This must be Linux ELF.
17367 linux*)
17368   version_type=linux
17369   need_lib_prefix=no
17370   need_version=no
17371   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17372   soname_spec='${libname}${release}${shared_ext}$major'
17373   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17374   shlibpath_var=LD_LIBRARY_PATH
17375   shlibpath_overrides_runpath=no
17376   # This implies no fast_install, which is unacceptable.
17377   # Some rework will be needed to allow for fast_install
17378   # before this can be enabled.
17379   hardcode_into_libs=yes
17380
17381   # Append ld.so.conf contents to the search path
17382   if test -f /etc/ld.so.conf; then
17383     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' ' '`
17384     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17385   fi
17386
17387   # We used to test for /lib/ld.so.1 and disable shared libraries on
17388   # powerpc, because MkLinux only supported shared libraries with the
17389   # GNU dynamic linker.  Since this was broken with cross compilers,
17390   # most powerpc-linux boxes support dynamic linking these days and
17391   # people can always --disable-shared, the test was removed, and we
17392   # assume the GNU/Linux dynamic linker is in use.
17393   dynamic_linker='GNU/Linux ld.so'
17394   ;;
17395
17396 knetbsd*-gnu)
17397   version_type=linux
17398   need_lib_prefix=no
17399   need_version=no
17400   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17401   soname_spec='${libname}${release}${shared_ext}$major'
17402   shlibpath_var=LD_LIBRARY_PATH
17403   shlibpath_overrides_runpath=no
17404   hardcode_into_libs=yes
17405   dynamic_linker='GNU ld.so'
17406   ;;
17407
17408 netbsd*)
17409   version_type=sunos
17410   need_lib_prefix=no
17411   need_version=no
17412   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17413     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17414     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17415     dynamic_linker='NetBSD (a.out) ld.so'
17416   else
17417     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17418     soname_spec='${libname}${release}${shared_ext}$major'
17419     dynamic_linker='NetBSD ld.elf_so'
17420   fi
17421   shlibpath_var=LD_LIBRARY_PATH
17422   shlibpath_overrides_runpath=yes
17423   hardcode_into_libs=yes
17424   ;;
17425
17426 newsos6)
17427   version_type=linux
17428   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17429   shlibpath_var=LD_LIBRARY_PATH
17430   shlibpath_overrides_runpath=yes
17431   ;;
17432
17433 nto-qnx*)
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=yes
17441   ;;
17442
17443 openbsd*)
17444   version_type=sunos
17445   sys_lib_dlsearch_path_spec="/usr/lib"
17446   need_lib_prefix=no
17447   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17448   case $host_os in
17449     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17450     *)                         need_version=no  ;;
17451   esac
17452   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17453   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17454   shlibpath_var=LD_LIBRARY_PATH
17455   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17456     case $host_os in
17457       openbsd2.[89] | openbsd2.[89].*)
17458         shlibpath_overrides_runpath=no
17459         ;;
17460       *)
17461         shlibpath_overrides_runpath=yes
17462         ;;
17463       esac
17464   else
17465     shlibpath_overrides_runpath=yes
17466   fi
17467   ;;
17468
17469 os2*)
17470   libname_spec='$name'
17471   shrext_cmds=".dll"
17472   need_lib_prefix=no
17473   library_names_spec='$libname${shared_ext} $libname.a'
17474   dynamic_linker='OS/2 ld.exe'
17475   shlibpath_var=LIBPATH
17476   ;;
17477
17478 osf3* | osf4* | osf5*)
17479   version_type=osf
17480   need_lib_prefix=no
17481   need_version=no
17482   soname_spec='${libname}${release}${shared_ext}$major'
17483   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17484   shlibpath_var=LD_LIBRARY_PATH
17485   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17486   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17487   ;;
17488
17489 solaris*)
17490   version_type=linux
17491   need_lib_prefix=no
17492   need_version=no
17493   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17494   soname_spec='${libname}${release}${shared_ext}$major'
17495   shlibpath_var=LD_LIBRARY_PATH
17496   shlibpath_overrides_runpath=yes
17497   hardcode_into_libs=yes
17498   # ldd complains unless libraries are executable
17499   postinstall_cmds='chmod +x $lib'
17500   ;;
17501
17502 sunos4*)
17503   version_type=sunos
17504   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17505   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17506   shlibpath_var=LD_LIBRARY_PATH
17507   shlibpath_overrides_runpath=yes
17508   if test "$with_gnu_ld" = yes; then
17509     need_lib_prefix=no
17510   fi
17511   need_version=yes
17512   ;;
17513
17514 sysv4 | sysv4.3*)
17515   version_type=linux
17516   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17517   soname_spec='${libname}${release}${shared_ext}$major'
17518   shlibpath_var=LD_LIBRARY_PATH
17519   case $host_vendor in
17520     sni)
17521       shlibpath_overrides_runpath=no
17522       need_lib_prefix=no
17523       export_dynamic_flag_spec='${wl}-Blargedynsym'
17524       runpath_var=LD_RUN_PATH
17525       ;;
17526     siemens)
17527       need_lib_prefix=no
17528       ;;
17529     motorola)
17530       need_lib_prefix=no
17531       need_version=no
17532       shlibpath_overrides_runpath=no
17533       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17534       ;;
17535   esac
17536   ;;
17537
17538 sysv4*MP*)
17539   if test -d /usr/nec ;then
17540     version_type=linux
17541     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17542     soname_spec='$libname${shared_ext}.$major'
17543     shlibpath_var=LD_LIBRARY_PATH
17544   fi
17545   ;;
17546
17547 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17548   version_type=freebsd-elf
17549   need_lib_prefix=no
17550   need_version=no
17551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17552   soname_spec='${libname}${release}${shared_ext}$major'
17553   shlibpath_var=LD_LIBRARY_PATH
17554   hardcode_into_libs=yes
17555   if test "$with_gnu_ld" = yes; then
17556     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17557     shlibpath_overrides_runpath=no
17558   else
17559     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17560     shlibpath_overrides_runpath=yes
17561     case $host_os in
17562       sco3.2v5*)
17563         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17564         ;;
17565     esac
17566   fi
17567   sys_lib_dlsearch_path_spec='/usr/lib'
17568   ;;
17569
17570 uts4*)
17571   version_type=linux
17572   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573   soname_spec='${libname}${release}${shared_ext}$major'
17574   shlibpath_var=LD_LIBRARY_PATH
17575   ;;
17576
17577 *)
17578   dynamic_linker=no
17579   ;;
17580 esac
17581 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17582 echo "${ECHO_T}$dynamic_linker" >&6
17583 test "$dynamic_linker" = no && can_build_shared=no
17584
17585 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17586 if test "$GCC" = yes; then
17587   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17588 fi
17589
17590 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17591 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17592 hardcode_action_GCJ=
17593 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17594    test -n "$runpath_var_GCJ" || \
17595    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17596
17597   # We can hardcode non-existant directories.
17598   if test "$hardcode_direct_GCJ" != no &&
17599      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17600      # have to relink, otherwise we might link with an installed library
17601      # when we should be linking with a yet-to-be-installed one
17602      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17603      test "$hardcode_minus_L_GCJ" != no; then
17604     # Linking always hardcodes the temporary library directory.
17605     hardcode_action_GCJ=relink
17606   else
17607     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17608     hardcode_action_GCJ=immediate
17609   fi
17610 else
17611   # We cannot hardcode anything, or else we can only hardcode existing
17612   # directories.
17613   hardcode_action_GCJ=unsupported
17614 fi
17615 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17616 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17617
17618 if test "$hardcode_action_GCJ" = relink; then
17619   # Fast installation is not supported
17620   enable_fast_install=no
17621 elif test "$shlibpath_overrides_runpath" = yes ||
17622      test "$enable_shared" = no; then
17623   # Fast installation is not necessary
17624   enable_fast_install=needless
17625 fi
17626
17627
17628 # The else clause should only fire when bootstrapping the
17629 # libtool distribution, otherwise you forgot to ship ltmain.sh
17630 # with your package, and you will get complaints that there are
17631 # no rules to generate ltmain.sh.
17632 if test -f "$ltmain"; then
17633   # See if we are running on zsh, and set the options which allow our commands through
17634   # without removal of \ escapes.
17635   if test -n "${ZSH_VERSION+set}" ; then
17636     setopt NO_GLOB_SUBST
17637   fi
17638   # Now quote all the things that may contain metacharacters while being
17639   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17640   # variables and quote the copies for generation of the libtool script.
17641   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17642     SED SHELL STRIP \
17643     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17644     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17645     deplibs_check_method reload_flag reload_cmds need_locks \
17646     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17647     lt_cv_sys_global_symbol_to_c_name_address \
17648     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17649     old_postinstall_cmds old_postuninstall_cmds \
17650     compiler_GCJ \
17651     CC_GCJ \
17652     LD_GCJ \
17653     lt_prog_compiler_wl_GCJ \
17654     lt_prog_compiler_pic_GCJ \
17655     lt_prog_compiler_static_GCJ \
17656     lt_prog_compiler_no_builtin_flag_GCJ \
17657     export_dynamic_flag_spec_GCJ \
17658     thread_safe_flag_spec_GCJ \
17659     whole_archive_flag_spec_GCJ \
17660     enable_shared_with_static_runtimes_GCJ \
17661     old_archive_cmds_GCJ \
17662     old_archive_from_new_cmds_GCJ \
17663     predep_objects_GCJ \
17664     postdep_objects_GCJ \
17665     predeps_GCJ \
17666     postdeps_GCJ \
17667     compiler_lib_search_path_GCJ \
17668     archive_cmds_GCJ \
17669     archive_expsym_cmds_GCJ \
17670     postinstall_cmds_GCJ \
17671     postuninstall_cmds_GCJ \
17672     old_archive_from_expsyms_cmds_GCJ \
17673     allow_undefined_flag_GCJ \
17674     no_undefined_flag_GCJ \
17675     export_symbols_cmds_GCJ \
17676     hardcode_libdir_flag_spec_GCJ \
17677     hardcode_libdir_flag_spec_ld_GCJ \
17678     hardcode_libdir_separator_GCJ \
17679     hardcode_automatic_GCJ \
17680     module_cmds_GCJ \
17681     module_expsym_cmds_GCJ \
17682     lt_cv_prog_compiler_c_o_GCJ \
17683     exclude_expsyms_GCJ \
17684     include_expsyms_GCJ; do
17685
17686     case $var in
17687     old_archive_cmds_GCJ | \
17688     old_archive_from_new_cmds_GCJ | \
17689     archive_cmds_GCJ | \
17690     archive_expsym_cmds_GCJ | \
17691     module_cmds_GCJ | \
17692     module_expsym_cmds_GCJ | \
17693     old_archive_from_expsyms_cmds_GCJ | \
17694     export_symbols_cmds_GCJ | \
17695     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17696     postinstall_cmds | postuninstall_cmds | \
17697     old_postinstall_cmds | old_postuninstall_cmds | \
17698     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17699       # Double-quote double-evaled strings.
17700       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17701       ;;
17702     *)
17703       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17704       ;;
17705     esac
17706   done
17707
17708   case $lt_echo in
17709   *'\$0 --fallback-echo"')
17710     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17711     ;;
17712   esac
17713
17714 cfgfile="$ofile"
17715
17716   cat <<__EOF__ >> "$cfgfile"
17717 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17718
17719 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17720
17721 # Shell to use when invoking shell scripts.
17722 SHELL=$lt_SHELL
17723
17724 # Whether or not to build shared libraries.
17725 build_libtool_libs=$enable_shared
17726
17727 # Whether or not to build static libraries.
17728 build_old_libs=$enable_static
17729
17730 # Whether or not to add -lc for building shared libraries.
17731 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17732
17733 # Whether or not to disallow shared libs when runtime libs are static
17734 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17735
17736 # Whether or not to optimize for fast installation.
17737 fast_install=$enable_fast_install
17738
17739 # The host system.
17740 host_alias=$host_alias
17741 host=$host
17742 host_os=$host_os
17743
17744 # The build system.
17745 build_alias=$build_alias
17746 build=$build
17747 build_os=$build_os
17748
17749 # An echo program that does not interpret backslashes.
17750 echo=$lt_echo
17751
17752 # The archiver.
17753 AR=$lt_AR
17754 AR_FLAGS=$lt_AR_FLAGS
17755
17756 # A C compiler.
17757 LTCC=$lt_LTCC
17758
17759 # LTCC compiler flags.
17760 LTCFLAGS=$lt_LTCFLAGS
17761
17762 # A language-specific compiler.
17763 CC=$lt_compiler_GCJ
17764
17765 # Is the compiler the GNU C compiler?
17766 with_gcc=$GCC_GCJ
17767
17768 # An ERE matcher.
17769 EGREP=$lt_EGREP
17770
17771 # The linker used to build libraries.
17772 LD=$lt_LD_GCJ
17773
17774 # Whether we need hard or soft links.
17775 LN_S=$lt_LN_S
17776
17777 # A BSD-compatible nm program.
17778 NM=$lt_NM
17779
17780 # A symbol stripping program
17781 STRIP=$lt_STRIP
17782
17783 # Used to examine libraries when file_magic_cmd begins "file"
17784 MAGIC_CMD=$MAGIC_CMD
17785
17786 # Used on cygwin: DLL creation program.
17787 DLLTOOL="$DLLTOOL"
17788
17789 # Used on cygwin: object dumper.
17790 OBJDUMP="$OBJDUMP"
17791
17792 # Used on cygwin: assembler.
17793 AS="$AS"
17794
17795 # The name of the directory that contains temporary libtool files.
17796 objdir=$objdir
17797
17798 # How to create reloadable object files.
17799 reload_flag=$lt_reload_flag
17800 reload_cmds=$lt_reload_cmds
17801
17802 # How to pass a linker flag through the compiler.
17803 wl=$lt_lt_prog_compiler_wl_GCJ
17804
17805 # Object file suffix (normally "o").
17806 objext="$ac_objext"
17807
17808 # Old archive suffix (normally "a").
17809 libext="$libext"
17810
17811 # Shared library suffix (normally ".so").
17812 shrext_cmds='$shrext_cmds'
17813
17814 # Executable file suffix (normally "").
17815 exeext="$exeext"
17816
17817 # Additional compiler flags for building library objects.
17818 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17819 pic_mode=$pic_mode
17820
17821 # What is the maximum length of a command?
17822 max_cmd_len=$lt_cv_sys_max_cmd_len
17823
17824 # Does compiler simultaneously support -c and -o options?
17825 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17826
17827 # Must we lock files when doing compilation?
17828 need_locks=$lt_need_locks
17829
17830 # Do we need the lib prefix for modules?
17831 need_lib_prefix=$need_lib_prefix
17832
17833 # Do we need a version for libraries?
17834 need_version=$need_version
17835
17836 # Whether dlopen is supported.
17837 dlopen_support=$enable_dlopen
17838
17839 # Whether dlopen of programs is supported.
17840 dlopen_self=$enable_dlopen_self
17841
17842 # Whether dlopen of statically linked programs is supported.
17843 dlopen_self_static=$enable_dlopen_self_static
17844
17845 # Compiler flag to prevent dynamic linking.
17846 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17847
17848 # Compiler flag to turn off builtin functions.
17849 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17850
17851 # Compiler flag to allow reflexive dlopens.
17852 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17853
17854 # Compiler flag to generate shared objects directly from archives.
17855 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17856
17857 # Compiler flag to generate thread-safe objects.
17858 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17859
17860 # Library versioning type.
17861 version_type=$version_type
17862
17863 # Format of library name prefix.
17864 libname_spec=$lt_libname_spec
17865
17866 # List of archive names.  First name is the real one, the rest are links.
17867 # The last name is the one that the linker finds with -lNAME.
17868 library_names_spec=$lt_library_names_spec
17869
17870 # The coded name of the library, if different from the real name.
17871 soname_spec=$lt_soname_spec
17872
17873 # Commands used to build and install an old-style archive.
17874 RANLIB=$lt_RANLIB
17875 old_archive_cmds=$lt_old_archive_cmds_GCJ
17876 old_postinstall_cmds=$lt_old_postinstall_cmds
17877 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17878
17879 # Create an old-style archive from a shared archive.
17880 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17881
17882 # Create a temporary old-style archive to link instead of a shared archive.
17883 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17884
17885 # Commands used to build and install a shared archive.
17886 archive_cmds=$lt_archive_cmds_GCJ
17887 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17888 postinstall_cmds=$lt_postinstall_cmds
17889 postuninstall_cmds=$lt_postuninstall_cmds
17890
17891 # Commands used to build a loadable module (assumed same as above if empty)
17892 module_cmds=$lt_module_cmds_GCJ
17893 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17894
17895 # Commands to strip libraries.
17896 old_striplib=$lt_old_striplib
17897 striplib=$lt_striplib
17898
17899 # Dependencies to place before the objects being linked to create a
17900 # shared library.
17901 predep_objects=$lt_predep_objects_GCJ
17902
17903 # Dependencies to place after the objects being linked to create a
17904 # shared library.
17905 postdep_objects=$lt_postdep_objects_GCJ
17906
17907 # Dependencies to place before the objects being linked to create a
17908 # shared library.
17909 predeps=$lt_predeps_GCJ
17910
17911 # Dependencies to place after the objects being linked to create a
17912 # shared library.
17913 postdeps=$lt_postdeps_GCJ
17914
17915 # The library search path used internally by the compiler when linking
17916 # a shared library.
17917 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
17918
17919 # Method to check whether dependent libraries are shared objects.
17920 deplibs_check_method=$lt_deplibs_check_method
17921
17922 # Command to use when deplibs_check_method == file_magic.
17923 file_magic_cmd=$lt_file_magic_cmd
17924
17925 # Flag that allows shared libraries with undefined symbols to be built.
17926 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
17927
17928 # Flag that forces no undefined symbols.
17929 no_undefined_flag=$lt_no_undefined_flag_GCJ
17930
17931 # Commands used to finish a libtool library installation in a directory.
17932 finish_cmds=$lt_finish_cmds
17933
17934 # Same as above, but a single script fragment to be evaled but not shown.
17935 finish_eval=$lt_finish_eval
17936
17937 # Take the output of nm and produce a listing of raw symbols and C names.
17938 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17939
17940 # Transform the output of nm in a proper C declaration
17941 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17942
17943 # Transform the output of nm in a C name address pair
17944 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17945
17946 # This is the shared library runtime path variable.
17947 runpath_var=$runpath_var
17948
17949 # This is the shared library path variable.
17950 shlibpath_var=$shlibpath_var
17951
17952 # Is shlibpath searched before the hard-coded library search path?
17953 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17954
17955 # How to hardcode a shared library path into an executable.
17956 hardcode_action=$hardcode_action_GCJ
17957
17958 # Whether we should hardcode library paths into libraries.
17959 hardcode_into_libs=$hardcode_into_libs
17960
17961 # Flag to hardcode \$libdir into a binary during linking.
17962 # This must work even if \$libdir does not exist.
17963 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
17964
17965 # If ld is used when linking, flag to hardcode \$libdir into
17966 # a binary during linking. This must work even if \$libdir does
17967 # not exist.
17968 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
17969
17970 # Whether we need a single -rpath flag with a separated argument.
17971 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
17972
17973 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17974 # resulting binary.
17975 hardcode_direct=$hardcode_direct_GCJ
17976
17977 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17978 # resulting binary.
17979 hardcode_minus_L=$hardcode_minus_L_GCJ
17980
17981 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17982 # the resulting binary.
17983 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
17984
17985 # Set to yes if building a shared library automatically hardcodes DIR into the library
17986 # and all subsequent libraries and executables linked against it.
17987 hardcode_automatic=$hardcode_automatic_GCJ
17988
17989 # Variables whose values should be saved in libtool wrapper scripts and
17990 # restored at relink time.
17991 variables_saved_for_relink="$variables_saved_for_relink"
17992
17993 # Whether libtool must link a program against all its dependency libraries.
17994 link_all_deplibs=$link_all_deplibs_GCJ
17995
17996 # Compile-time system search path for libraries
17997 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17998
17999 # Run-time system search path for libraries
18000 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18001
18002 # Fix the shell variable \$srcfile for the compiler.
18003 fix_srcfile_path="$fix_srcfile_path_GCJ"
18004
18005 # Set to yes if exported symbols are required.
18006 always_export_symbols=$always_export_symbols_GCJ
18007
18008 # The commands to list exported symbols.
18009 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18010
18011 # The commands to extract the exported symbol list from a shared archive.
18012 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18013
18014 # Symbols that should not be listed in the preloaded symbols.
18015 exclude_expsyms=$lt_exclude_expsyms_GCJ
18016
18017 # Symbols that must always be exported.
18018 include_expsyms=$lt_include_expsyms_GCJ
18019
18020 # ### END LIBTOOL TAG CONFIG: $tagname
18021
18022 __EOF__
18023
18024
18025 else
18026   # If there is no Makefile yet, we rely on a make rule to execute
18027   # `config.status --recheck' to rerun these tests and create the
18028   # libtool script then.
18029   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18030   if test -f "$ltmain_in"; then
18031     test -f Makefile && make "$ltmain"
18032   fi
18033 fi
18034
18035
18036 ac_ext=c
18037 ac_cpp='$CPP $CPPFLAGS'
18038 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18039 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18040 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18041
18042 CC="$lt_save_CC"
18043
18044         else
18045           tagname=""
18046         fi
18047         ;;
18048
18049       RC)
18050
18051
18052
18053 # Source file extension for RC test sources.
18054 ac_ext=rc
18055
18056 # Object file extension for compiled RC test sources.
18057 objext=o
18058 objext_RC=$objext
18059
18060 # Code to be used in simple compile tests
18061 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18062
18063 # Code to be used in simple link tests
18064 lt_simple_link_test_code="$lt_simple_compile_test_code"
18065
18066 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18067
18068 # If no C compiler was specified, use CC.
18069 LTCC=${LTCC-"$CC"}
18070
18071 # If no C compiler flags were specified, use CFLAGS.
18072 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18073
18074 # Allow CC to be a program name with arguments.
18075 compiler=$CC
18076
18077
18078 # save warnings/boilerplate of simple test code
18079 ac_outfile=conftest.$ac_objext
18080 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18081 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18082 _lt_compiler_boilerplate=`cat conftest.err`
18083 $rm conftest*
18084
18085 ac_outfile=conftest.$ac_objext
18086 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18087 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18088 _lt_linker_boilerplate=`cat conftest.err`
18089 $rm conftest*
18090
18091
18092 # Allow CC to be a program name with arguments.
18093 lt_save_CC="$CC"
18094 CC=${RC-"windres"}
18095 compiler=$CC
18096 compiler_RC=$CC
18097 for cc_temp in $compiler""; do
18098   case $cc_temp in
18099     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18100     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18101     \-*) ;;
18102     *) break;;
18103   esac
18104 done
18105 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18106
18107 lt_cv_prog_compiler_c_o_RC=yes
18108
18109 # The else clause should only fire when bootstrapping the
18110 # libtool distribution, otherwise you forgot to ship ltmain.sh
18111 # with your package, and you will get complaints that there are
18112 # no rules to generate ltmain.sh.
18113 if test -f "$ltmain"; then
18114   # See if we are running on zsh, and set the options which allow our commands through
18115   # without removal of \ escapes.
18116   if test -n "${ZSH_VERSION+set}" ; then
18117     setopt NO_GLOB_SUBST
18118   fi
18119   # Now quote all the things that may contain metacharacters while being
18120   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18121   # variables and quote the copies for generation of the libtool script.
18122   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18123     SED SHELL STRIP \
18124     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18125     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18126     deplibs_check_method reload_flag reload_cmds need_locks \
18127     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18128     lt_cv_sys_global_symbol_to_c_name_address \
18129     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18130     old_postinstall_cmds old_postuninstall_cmds \
18131     compiler_RC \
18132     CC_RC \
18133     LD_RC \
18134     lt_prog_compiler_wl_RC \
18135     lt_prog_compiler_pic_RC \
18136     lt_prog_compiler_static_RC \
18137     lt_prog_compiler_no_builtin_flag_RC \
18138     export_dynamic_flag_spec_RC \
18139     thread_safe_flag_spec_RC \
18140     whole_archive_flag_spec_RC \
18141     enable_shared_with_static_runtimes_RC \
18142     old_archive_cmds_RC \
18143     old_archive_from_new_cmds_RC \
18144     predep_objects_RC \
18145     postdep_objects_RC \
18146     predeps_RC \
18147     postdeps_RC \
18148     compiler_lib_search_path_RC \
18149     archive_cmds_RC \
18150     archive_expsym_cmds_RC \
18151     postinstall_cmds_RC \
18152     postuninstall_cmds_RC \
18153     old_archive_from_expsyms_cmds_RC \
18154     allow_undefined_flag_RC \
18155     no_undefined_flag_RC \
18156     export_symbols_cmds_RC \
18157     hardcode_libdir_flag_spec_RC \
18158     hardcode_libdir_flag_spec_ld_RC \
18159     hardcode_libdir_separator_RC \
18160     hardcode_automatic_RC \
18161     module_cmds_RC \
18162     module_expsym_cmds_RC \
18163     lt_cv_prog_compiler_c_o_RC \
18164     exclude_expsyms_RC \
18165     include_expsyms_RC; do
18166
18167     case $var in
18168     old_archive_cmds_RC | \
18169     old_archive_from_new_cmds_RC | \
18170     archive_cmds_RC | \
18171     archive_expsym_cmds_RC | \
18172     module_cmds_RC | \
18173     module_expsym_cmds_RC | \
18174     old_archive_from_expsyms_cmds_RC | \
18175     export_symbols_cmds_RC | \
18176     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18177     postinstall_cmds | postuninstall_cmds | \
18178     old_postinstall_cmds | old_postuninstall_cmds | \
18179     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18180       # Double-quote double-evaled strings.
18181       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18182       ;;
18183     *)
18184       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18185       ;;
18186     esac
18187   done
18188
18189   case $lt_echo in
18190   *'\$0 --fallback-echo"')
18191     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18192     ;;
18193   esac
18194
18195 cfgfile="$ofile"
18196
18197   cat <<__EOF__ >> "$cfgfile"
18198 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18199
18200 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18201
18202 # Shell to use when invoking shell scripts.
18203 SHELL=$lt_SHELL
18204
18205 # Whether or not to build shared libraries.
18206 build_libtool_libs=$enable_shared
18207
18208 # Whether or not to build static libraries.
18209 build_old_libs=$enable_static
18210
18211 # Whether or not to add -lc for building shared libraries.
18212 build_libtool_need_lc=$archive_cmds_need_lc_RC
18213
18214 # Whether or not to disallow shared libs when runtime libs are static
18215 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18216
18217 # Whether or not to optimize for fast installation.
18218 fast_install=$enable_fast_install
18219
18220 # The host system.
18221 host_alias=$host_alias
18222 host=$host
18223 host_os=$host_os
18224
18225 # The build system.
18226 build_alias=$build_alias
18227 build=$build
18228 build_os=$build_os
18229
18230 # An echo program that does not interpret backslashes.
18231 echo=$lt_echo
18232
18233 # The archiver.
18234 AR=$lt_AR
18235 AR_FLAGS=$lt_AR_FLAGS
18236
18237 # A C compiler.
18238 LTCC=$lt_LTCC
18239
18240 # LTCC compiler flags.
18241 LTCFLAGS=$lt_LTCFLAGS
18242
18243 # A language-specific compiler.
18244 CC=$lt_compiler_RC
18245
18246 # Is the compiler the GNU C compiler?
18247 with_gcc=$GCC_RC
18248
18249 # An ERE matcher.
18250 EGREP=$lt_EGREP
18251
18252 # The linker used to build libraries.
18253 LD=$lt_LD_RC
18254
18255 # Whether we need hard or soft links.
18256 LN_S=$lt_LN_S
18257
18258 # A BSD-compatible nm program.
18259 NM=$lt_NM
18260
18261 # A symbol stripping program
18262 STRIP=$lt_STRIP
18263
18264 # Used to examine libraries when file_magic_cmd begins "file"
18265 MAGIC_CMD=$MAGIC_CMD
18266
18267 # Used on cygwin: DLL creation program.
18268 DLLTOOL="$DLLTOOL"
18269
18270 # Used on cygwin: object dumper.
18271 OBJDUMP="$OBJDUMP"
18272
18273 # Used on cygwin: assembler.
18274 AS="$AS"
18275
18276 # The name of the directory that contains temporary libtool files.
18277 objdir=$objdir
18278
18279 # How to create reloadable object files.
18280 reload_flag=$lt_reload_flag
18281 reload_cmds=$lt_reload_cmds
18282
18283 # How to pass a linker flag through the compiler.
18284 wl=$lt_lt_prog_compiler_wl_RC
18285
18286 # Object file suffix (normally "o").
18287 objext="$ac_objext"
18288
18289 # Old archive suffix (normally "a").
18290 libext="$libext"
18291
18292 # Shared library suffix (normally ".so").
18293 shrext_cmds='$shrext_cmds'
18294
18295 # Executable file suffix (normally "").
18296 exeext="$exeext"
18297
18298 # Additional compiler flags for building library objects.
18299 pic_flag=$lt_lt_prog_compiler_pic_RC
18300 pic_mode=$pic_mode
18301
18302 # What is the maximum length of a command?
18303 max_cmd_len=$lt_cv_sys_max_cmd_len
18304
18305 # Does compiler simultaneously support -c and -o options?
18306 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18307
18308 # Must we lock files when doing compilation?
18309 need_locks=$lt_need_locks
18310
18311 # Do we need the lib prefix for modules?
18312 need_lib_prefix=$need_lib_prefix
18313
18314 # Do we need a version for libraries?
18315 need_version=$need_version
18316
18317 # Whether dlopen is supported.
18318 dlopen_support=$enable_dlopen
18319
18320 # Whether dlopen of programs is supported.
18321 dlopen_self=$enable_dlopen_self
18322
18323 # Whether dlopen of statically linked programs is supported.
18324 dlopen_self_static=$enable_dlopen_self_static
18325
18326 # Compiler flag to prevent dynamic linking.
18327 link_static_flag=$lt_lt_prog_compiler_static_RC
18328
18329 # Compiler flag to turn off builtin functions.
18330 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18331
18332 # Compiler flag to allow reflexive dlopens.
18333 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18334
18335 # Compiler flag to generate shared objects directly from archives.
18336 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18337
18338 # Compiler flag to generate thread-safe objects.
18339 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18340
18341 # Library versioning type.
18342 version_type=$version_type
18343
18344 # Format of library name prefix.
18345 libname_spec=$lt_libname_spec
18346
18347 # List of archive names.  First name is the real one, the rest are links.
18348 # The last name is the one that the linker finds with -lNAME.
18349 library_names_spec=$lt_library_names_spec
18350
18351 # The coded name of the library, if different from the real name.
18352 soname_spec=$lt_soname_spec
18353
18354 # Commands used to build and install an old-style archive.
18355 RANLIB=$lt_RANLIB
18356 old_archive_cmds=$lt_old_archive_cmds_RC
18357 old_postinstall_cmds=$lt_old_postinstall_cmds
18358 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18359
18360 # Create an old-style archive from a shared archive.
18361 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18362
18363 # Create a temporary old-style archive to link instead of a shared archive.
18364 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18365
18366 # Commands used to build and install a shared archive.
18367 archive_cmds=$lt_archive_cmds_RC
18368 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18369 postinstall_cmds=$lt_postinstall_cmds
18370 postuninstall_cmds=$lt_postuninstall_cmds
18371
18372 # Commands used to build a loadable module (assumed same as above if empty)
18373 module_cmds=$lt_module_cmds_RC
18374 module_expsym_cmds=$lt_module_expsym_cmds_RC
18375
18376 # Commands to strip libraries.
18377 old_striplib=$lt_old_striplib
18378 striplib=$lt_striplib
18379
18380 # Dependencies to place before the objects being linked to create a
18381 # shared library.
18382 predep_objects=$lt_predep_objects_RC
18383
18384 # Dependencies to place after the objects being linked to create a
18385 # shared library.
18386 postdep_objects=$lt_postdep_objects_RC
18387
18388 # Dependencies to place before the objects being linked to create a
18389 # shared library.
18390 predeps=$lt_predeps_RC
18391
18392 # Dependencies to place after the objects being linked to create a
18393 # shared library.
18394 postdeps=$lt_postdeps_RC
18395
18396 # The library search path used internally by the compiler when linking
18397 # a shared library.
18398 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18399
18400 # Method to check whether dependent libraries are shared objects.
18401 deplibs_check_method=$lt_deplibs_check_method
18402
18403 # Command to use when deplibs_check_method == file_magic.
18404 file_magic_cmd=$lt_file_magic_cmd
18405
18406 # Flag that allows shared libraries with undefined symbols to be built.
18407 allow_undefined_flag=$lt_allow_undefined_flag_RC
18408
18409 # Flag that forces no undefined symbols.
18410 no_undefined_flag=$lt_no_undefined_flag_RC
18411
18412 # Commands used to finish a libtool library installation in a directory.
18413 finish_cmds=$lt_finish_cmds
18414
18415 # Same as above, but a single script fragment to be evaled but not shown.
18416 finish_eval=$lt_finish_eval
18417
18418 # Take the output of nm and produce a listing of raw symbols and C names.
18419 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18420
18421 # Transform the output of nm in a proper C declaration
18422 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18423
18424 # Transform the output of nm in a C name address pair
18425 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18426
18427 # This is the shared library runtime path variable.
18428 runpath_var=$runpath_var
18429
18430 # This is the shared library path variable.
18431 shlibpath_var=$shlibpath_var
18432
18433 # Is shlibpath searched before the hard-coded library search path?
18434 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18435
18436 # How to hardcode a shared library path into an executable.
18437 hardcode_action=$hardcode_action_RC
18438
18439 # Whether we should hardcode library paths into libraries.
18440 hardcode_into_libs=$hardcode_into_libs
18441
18442 # Flag to hardcode \$libdir into a binary during linking.
18443 # This must work even if \$libdir does not exist.
18444 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18445
18446 # If ld is used when linking, flag to hardcode \$libdir into
18447 # a binary during linking. This must work even if \$libdir does
18448 # not exist.
18449 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18450
18451 # Whether we need a single -rpath flag with a separated argument.
18452 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18453
18454 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18455 # resulting binary.
18456 hardcode_direct=$hardcode_direct_RC
18457
18458 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18459 # resulting binary.
18460 hardcode_minus_L=$hardcode_minus_L_RC
18461
18462 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18463 # the resulting binary.
18464 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18465
18466 # Set to yes if building a shared library automatically hardcodes DIR into the library
18467 # and all subsequent libraries and executables linked against it.
18468 hardcode_automatic=$hardcode_automatic_RC
18469
18470 # Variables whose values should be saved in libtool wrapper scripts and
18471 # restored at relink time.
18472 variables_saved_for_relink="$variables_saved_for_relink"
18473
18474 # Whether libtool must link a program against all its dependency libraries.
18475 link_all_deplibs=$link_all_deplibs_RC
18476
18477 # Compile-time system search path for libraries
18478 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18479
18480 # Run-time system search path for libraries
18481 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18482
18483 # Fix the shell variable \$srcfile for the compiler.
18484 fix_srcfile_path="$fix_srcfile_path_RC"
18485
18486 # Set to yes if exported symbols are required.
18487 always_export_symbols=$always_export_symbols_RC
18488
18489 # The commands to list exported symbols.
18490 export_symbols_cmds=$lt_export_symbols_cmds_RC
18491
18492 # The commands to extract the exported symbol list from a shared archive.
18493 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18494
18495 # Symbols that should not be listed in the preloaded symbols.
18496 exclude_expsyms=$lt_exclude_expsyms_RC
18497
18498 # Symbols that must always be exported.
18499 include_expsyms=$lt_include_expsyms_RC
18500
18501 # ### END LIBTOOL TAG CONFIG: $tagname
18502
18503 __EOF__
18504
18505
18506 else
18507   # If there is no Makefile yet, we rely on a make rule to execute
18508   # `config.status --recheck' to rerun these tests and create the
18509   # libtool script then.
18510   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18511   if test -f "$ltmain_in"; then
18512     test -f Makefile && make "$ltmain"
18513   fi
18514 fi
18515
18516
18517 ac_ext=c
18518 ac_cpp='$CPP $CPPFLAGS'
18519 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18520 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18521 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18522
18523 CC="$lt_save_CC"
18524
18525         ;;
18526
18527       *)
18528         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18529 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18530    { (exit 1); exit 1; }; }
18531         ;;
18532       esac
18533
18534       # Append the new tag name to the list of available tags.
18535       if test -n "$tagname" ; then
18536       available_tags="$available_tags $tagname"
18537     fi
18538     fi
18539   done
18540   IFS="$lt_save_ifs"
18541
18542   # Now substitute the updated list of available tags.
18543   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18544     mv "${ofile}T" "$ofile"
18545     chmod +x "$ofile"
18546   else
18547     rm -f "${ofile}T"
18548     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18549 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18550    { (exit 1); exit 1; }; }
18551   fi
18552 fi
18553
18554
18555
18556 # This can be used to rebuild libtool when needed
18557 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18558
18559 # Always use our own libtool.
18560 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18561
18562 # Prevent multiple expansion
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583 # Check whether --enable-debug or --disable-debug was given.
18584 if test "${enable_debug+set}" = set; then
18585   enableval="$enable_debug"
18586
18587         CXXFLAGS="-g -O0 -Wall"
18588
18589 cat >>confdefs.h <<\_ACEOF
18590 #define WITH_DEBUG
18591 _ACEOF
18592
18593
18594 else
18595
18596         CXXFLAGS="-O0"
18597
18598
18599 fi;
18600
18601
18602 # Check whether --with-libldap or --without-libldap was given.
18603 if test "${with_libldap+set}" = set; then
18604   withval="$with_libldap"
18605
18606         LIBS="-L$with_libldap $LIBS "
18607
18608 else
18609
18610         LIBS="-L/usr/local/lib $LIBS "
18611
18612
18613 fi;
18614
18615
18616 # Check whether --with-ldap-includes or --without-ldap-includes was given.
18617 if test "${with_ldap_includes+set}" = set; then
18618   withval="$with_ldap_includes"
18619
18620         CPPFLAGS="-I$with_ldap_includes $CPPFLAGS "
18621
18622 else
18623
18624         CPPFLAGS="-I/usr/local/include $CPPFLAGS "
18625
18626
18627 fi;
18628
18629 echo "$as_me:$LINENO: checking for main in -lresolv" >&5
18630 echo $ECHO_N "checking for main in -lresolv... $ECHO_C" >&6
18631 if test "${ac_cv_lib_resolv_main+set}" = set; then
18632   echo $ECHO_N "(cached) $ECHO_C" >&6
18633 else
18634   ac_check_lib_save_LIBS=$LIBS
18635 LIBS="-lresolv  $LIBS"
18636 cat >conftest.$ac_ext <<_ACEOF
18637 /* confdefs.h.  */
18638 _ACEOF
18639 cat confdefs.h >>conftest.$ac_ext
18640 cat >>conftest.$ac_ext <<_ACEOF
18641 /* end confdefs.h.  */
18642
18643
18644 int
18645 main ()
18646 {
18647 main ();
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 rm -f conftest.$ac_objext conftest$ac_exeext
18653 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18654   (eval $ac_link) 2>conftest.er1
18655   ac_status=$?
18656   grep -v '^ *+' conftest.er1 >conftest.err
18657   rm -f conftest.er1
18658   cat conftest.err >&5
18659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18660   (exit $ac_status); } &&
18661          { ac_try='test -z "$ac_c_werror_flag"
18662                          || test ! -s conftest.err'
18663   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18664   (eval $ac_try) 2>&5
18665   ac_status=$?
18666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667   (exit $ac_status); }; } &&
18668          { ac_try='test -s conftest$ac_exeext'
18669   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18670   (eval $ac_try) 2>&5
18671   ac_status=$?
18672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673   (exit $ac_status); }; }; then
18674   ac_cv_lib_resolv_main=yes
18675 else
18676   echo "$as_me: failed program was:" >&5
18677 sed 's/^/| /' conftest.$ac_ext >&5
18678
18679 ac_cv_lib_resolv_main=no
18680 fi
18681 rm -f conftest.err conftest.$ac_objext \
18682       conftest$ac_exeext conftest.$ac_ext
18683 LIBS=$ac_check_lib_save_LIBS
18684 fi
18685 echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
18686 echo "${ECHO_T}$ac_cv_lib_resolv_main" >&6
18687 if test $ac_cv_lib_resolv_main = yes; then
18688   cat >>confdefs.h <<_ACEOF
18689 #define HAVE_LIBRESOLV 1
18690 _ACEOF
18691
18692   LIBS="-lresolv $LIBS"
18693
18694 fi
18695
18696 echo "$as_me:$LINENO: checking for ber_strdup in -llber" >&5
18697 echo $ECHO_N "checking for ber_strdup in -llber... $ECHO_C" >&6
18698 if test "${ac_cv_lib_lber_ber_strdup+set}" = set; then
18699   echo $ECHO_N "(cached) $ECHO_C" >&6
18700 else
18701   ac_check_lib_save_LIBS=$LIBS
18702 LIBS="-llber  $LIBS"
18703 cat >conftest.$ac_ext <<_ACEOF
18704 /* confdefs.h.  */
18705 _ACEOF
18706 cat confdefs.h >>conftest.$ac_ext
18707 cat >>conftest.$ac_ext <<_ACEOF
18708 /* end confdefs.h.  */
18709
18710 /* Override any gcc2 internal prototype to avoid an error.  */
18711 #ifdef __cplusplus
18712 extern "C"
18713 #endif
18714 /* We use char because int might match the return type of a gcc2
18715    builtin and then its argument prototype would still apply.  */
18716 char ber_strdup ();
18717 int
18718 main ()
18719 {
18720 ber_strdup ();
18721   ;
18722   return 0;
18723 }
18724 _ACEOF
18725 rm -f conftest.$ac_objext conftest$ac_exeext
18726 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18727   (eval $ac_link) 2>conftest.er1
18728   ac_status=$?
18729   grep -v '^ *+' conftest.er1 >conftest.err
18730   rm -f conftest.er1
18731   cat conftest.err >&5
18732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18733   (exit $ac_status); } &&
18734          { ac_try='test -z "$ac_c_werror_flag"
18735                          || test ! -s conftest.err'
18736   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18737   (eval $ac_try) 2>&5
18738   ac_status=$?
18739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18740   (exit $ac_status); }; } &&
18741          { ac_try='test -s conftest$ac_exeext'
18742   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18743   (eval $ac_try) 2>&5
18744   ac_status=$?
18745   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18746   (exit $ac_status); }; }; then
18747   ac_cv_lib_lber_ber_strdup=yes
18748 else
18749   echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752 ac_cv_lib_lber_ber_strdup=no
18753 fi
18754 rm -f conftest.err conftest.$ac_objext \
18755       conftest$ac_exeext conftest.$ac_ext
18756 LIBS=$ac_check_lib_save_LIBS
18757 fi
18758 echo "$as_me:$LINENO: result: $ac_cv_lib_lber_ber_strdup" >&5
18759 echo "${ECHO_T}$ac_cv_lib_lber_ber_strdup" >&6
18760 if test $ac_cv_lib_lber_ber_strdup = yes; then
18761
18762         :
18763
18764 else
18765
18766         echo "        didn't find ber_strdup in liblber !";
18767         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
18768         echo "        or try the --with-libldap option.";
18769         exit
18770
18771 fi
18772
18773 echo "$as_me:$LINENO: checking for ldap_add_ext in -lldap" >&5
18774 echo $ECHO_N "checking for ldap_add_ext in -lldap... $ECHO_C" >&6
18775 if test "${ac_cv_lib_ldap_ldap_add_ext+set}" = set; then
18776   echo $ECHO_N "(cached) $ECHO_C" >&6
18777 else
18778   ac_check_lib_save_LIBS=$LIBS
18779 LIBS="-lldap
18780     -llber
18781      $LIBS"
18782 cat >conftest.$ac_ext <<_ACEOF
18783 /* confdefs.h.  */
18784 _ACEOF
18785 cat confdefs.h >>conftest.$ac_ext
18786 cat >>conftest.$ac_ext <<_ACEOF
18787 /* end confdefs.h.  */
18788
18789 /* Override any gcc2 internal prototype to avoid an error.  */
18790 #ifdef __cplusplus
18791 extern "C"
18792 #endif
18793 /* We use char because int might match the return type of a gcc2
18794    builtin and then its argument prototype would still apply.  */
18795 char ldap_add_ext ();
18796 int
18797 main ()
18798 {
18799 ldap_add_ext ();
18800   ;
18801   return 0;
18802 }
18803 _ACEOF
18804 rm -f conftest.$ac_objext conftest$ac_exeext
18805 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18806   (eval $ac_link) 2>conftest.er1
18807   ac_status=$?
18808   grep -v '^ *+' conftest.er1 >conftest.err
18809   rm -f conftest.er1
18810   cat conftest.err >&5
18811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18812   (exit $ac_status); } &&
18813          { ac_try='test -z "$ac_c_werror_flag"
18814                          || test ! -s conftest.err'
18815   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18816   (eval $ac_try) 2>&5
18817   ac_status=$?
18818   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18819   (exit $ac_status); }; } &&
18820          { ac_try='test -s conftest$ac_exeext'
18821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18822   (eval $ac_try) 2>&5
18823   ac_status=$?
18824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18825   (exit $ac_status); }; }; then
18826   ac_cv_lib_ldap_ldap_add_ext=yes
18827 else
18828   echo "$as_me: failed program was:" >&5
18829 sed 's/^/| /' conftest.$ac_ext >&5
18830
18831 ac_cv_lib_ldap_ldap_add_ext=no
18832 fi
18833 rm -f conftest.err conftest.$ac_objext \
18834       conftest$ac_exeext conftest.$ac_ext
18835 LIBS=$ac_check_lib_save_LIBS
18836 fi
18837 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_add_ext" >&5
18838 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_add_ext" >&6
18839 if test $ac_cv_lib_ldap_ldap_add_ext = yes; then
18840
18841         :
18842
18843 else
18844
18845         echo "        didn't find ldap_add_ext in libldap !";
18846         echo "        Check for the right version (>= 2.0) of the OpenLDAP libraries";
18847         echo "        or try the --with-libldap option.";
18848         exit
18849
18850 fi
18851
18852 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
18853 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
18854 if test "${ac_cv_header_time+set}" = set; then
18855   echo $ECHO_N "(cached) $ECHO_C" >&6
18856 else
18857   cat >conftest.$ac_ext <<_ACEOF
18858 /* confdefs.h.  */
18859 _ACEOF
18860 cat confdefs.h >>conftest.$ac_ext
18861 cat >>conftest.$ac_ext <<_ACEOF
18862 /* end confdefs.h.  */
18863 #include <sys/types.h>
18864 #include <sys/time.h>
18865 #include <time.h>
18866
18867 int
18868 main ()
18869 {
18870 if ((struct tm *) 0)
18871 return 0;
18872   ;
18873   return 0;
18874 }
18875 _ACEOF
18876 rm -f conftest.$ac_objext
18877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18878   (eval $ac_compile) 2>conftest.er1
18879   ac_status=$?
18880   grep -v '^ *+' conftest.er1 >conftest.err
18881   rm -f conftest.er1
18882   cat conftest.err >&5
18883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884   (exit $ac_status); } &&
18885          { ac_try='test -z "$ac_c_werror_flag"
18886                          || test ! -s conftest.err'
18887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18888   (eval $ac_try) 2>&5
18889   ac_status=$?
18890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891   (exit $ac_status); }; } &&
18892          { ac_try='test -s conftest.$ac_objext'
18893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18894   (eval $ac_try) 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898   ac_cv_header_time=yes
18899 else
18900   echo "$as_me: failed program was:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18902
18903 ac_cv_header_time=no
18904 fi
18905 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18906 fi
18907 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
18908 echo "${ECHO_T}$ac_cv_header_time" >&6
18909 if test $ac_cv_header_time = yes; then
18910
18911 cat >>confdefs.h <<\_ACEOF
18912 #define TIME_WITH_SYS_TIME 1
18913 _ACEOF
18914
18915 fi
18916
18917 if test "${ac_cv_header_ldap_h+set}" = set; then
18918   echo "$as_me:$LINENO: checking for ldap.h" >&5
18919 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
18920 if test "${ac_cv_header_ldap_h+set}" = set; then
18921   echo $ECHO_N "(cached) $ECHO_C" >&6
18922 fi
18923 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
18924 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
18925 else
18926   # Is the header compilable?
18927 echo "$as_me:$LINENO: checking ldap.h usability" >&5
18928 echo $ECHO_N "checking ldap.h usability... $ECHO_C" >&6
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h.  */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h.  */
18935 $ac_includes_default
18936 #include <ldap.h>
18937 _ACEOF
18938 rm -f conftest.$ac_objext
18939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18940   (eval $ac_compile) 2>conftest.er1
18941   ac_status=$?
18942   grep -v '^ *+' conftest.er1 >conftest.err
18943   rm -f conftest.er1
18944   cat conftest.err >&5
18945   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18946   (exit $ac_status); } &&
18947          { ac_try='test -z "$ac_c_werror_flag"
18948                          || test ! -s conftest.err'
18949   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18950   (eval $ac_try) 2>&5
18951   ac_status=$?
18952   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18953   (exit $ac_status); }; } &&
18954          { ac_try='test -s conftest.$ac_objext'
18955   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18956   (eval $ac_try) 2>&5
18957   ac_status=$?
18958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18959   (exit $ac_status); }; }; then
18960   ac_header_compiler=yes
18961 else
18962   echo "$as_me: failed program was:" >&5
18963 sed 's/^/| /' conftest.$ac_ext >&5
18964
18965 ac_header_compiler=no
18966 fi
18967 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
18968 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18969 echo "${ECHO_T}$ac_header_compiler" >&6
18970
18971 # Is the header present?
18972 echo "$as_me:$LINENO: checking ldap.h presence" >&5
18973 echo $ECHO_N "checking ldap.h presence... $ECHO_C" >&6
18974 cat >conftest.$ac_ext <<_ACEOF
18975 /* confdefs.h.  */
18976 _ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h.  */
18980 #include <ldap.h>
18981 _ACEOF
18982 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
18983   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
18984   ac_status=$?
18985   grep -v '^ *+' conftest.er1 >conftest.err
18986   rm -f conftest.er1
18987   cat conftest.err >&5
18988   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18989   (exit $ac_status); } >/dev/null; then
18990   if test -s conftest.err; then
18991     ac_cpp_err=$ac_c_preproc_warn_flag
18992     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18993   else
18994     ac_cpp_err=
18995   fi
18996 else
18997   ac_cpp_err=yes
18998 fi
18999 if test -z "$ac_cpp_err"; then
19000   ac_header_preproc=yes
19001 else
19002   echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005   ac_header_preproc=no
19006 fi
19007 rm -f conftest.err conftest.$ac_ext
19008 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19009 echo "${ECHO_T}$ac_header_preproc" >&6
19010
19011 # So?  What about this header?
19012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19013   yes:no: )
19014     { echo "$as_me:$LINENO: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&5
19015 echo "$as_me: WARNING: ldap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19016     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the compiler's result" >&5
19017 echo "$as_me: WARNING: ldap.h: proceeding with the compiler's result" >&2;}
19018     ac_header_preproc=yes
19019     ;;
19020   no:yes:* )
19021     { echo "$as_me:$LINENO: WARNING: ldap.h: present but cannot be compiled" >&5
19022 echo "$as_me: WARNING: ldap.h: present but cannot be compiled" >&2;}
19023     { echo "$as_me:$LINENO: WARNING: ldap.h:     check for missing prerequisite headers?" >&5
19024 echo "$as_me: WARNING: ldap.h:     check for missing prerequisite headers?" >&2;}
19025     { echo "$as_me:$LINENO: WARNING: ldap.h: see the Autoconf documentation" >&5
19026 echo "$as_me: WARNING: ldap.h: see the Autoconf documentation" >&2;}
19027     { echo "$as_me:$LINENO: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&5
19028 echo "$as_me: WARNING: ldap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19029     { echo "$as_me:$LINENO: WARNING: ldap.h: proceeding with the preprocessor's result" >&5
19030 echo "$as_me: WARNING: ldap.h: proceeding with the preprocessor's result" >&2;}
19031     { echo "$as_me:$LINENO: WARNING: ldap.h: in the future, the compiler will take precedence" >&5
19032 echo "$as_me: WARNING: ldap.h: in the future, the compiler will take precedence" >&2;}
19033     (
19034       cat <<\_ASBOX
19035 ## ------------------------------------------ ##
19036 ## Report this to the AC_PACKAGE_NAME lists.  ##
19037 ## ------------------------------------------ ##
19038 _ASBOX
19039     ) |
19040       sed "s/^/$as_me: WARNING:     /" >&2
19041     ;;
19042 esac
19043 echo "$as_me:$LINENO: checking for ldap.h" >&5
19044 echo $ECHO_N "checking for ldap.h... $ECHO_C" >&6
19045 if test "${ac_cv_header_ldap_h+set}" = set; then
19046   echo $ECHO_N "(cached) $ECHO_C" >&6
19047 else
19048   ac_cv_header_ldap_h=$ac_header_preproc
19049 fi
19050 echo "$as_me:$LINENO: result: $ac_cv_header_ldap_h" >&5
19051 echo "${ECHO_T}$ac_cv_header_ldap_h" >&6
19052
19053 fi
19054
19055
19056 cat >conftest.$ac_ext <<_ACEOF
19057 /* confdefs.h.  */
19058 _ACEOF
19059 cat confdefs.h >>conftest.$ac_ext
19060 cat >>conftest.$ac_ext <<_ACEOF
19061 /* end confdefs.h.  */
19062 #include <ldap.h>
19063
19064 _ACEOF
19065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19066   $EGREP "ldap_add_ext" >/dev/null 2>&1; then
19067
19068         :
19069
19070 else
19071
19072         echo "        didn't find ldap_add_ext in ldap.h!";
19073         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
19074         echo "        or try --with-ldap-includes option.";
19075         exit
19076
19077 fi
19078 rm -f conftest*
19079
19080 if test "${ac_cv_header_lber_h+set}" = set; then
19081   echo "$as_me:$LINENO: checking for lber.h" >&5
19082 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
19083 if test "${ac_cv_header_lber_h+set}" = set; then
19084   echo $ECHO_N "(cached) $ECHO_C" >&6
19085 fi
19086 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
19087 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
19088 else
19089   # Is the header compilable?
19090 echo "$as_me:$LINENO: checking lber.h usability" >&5
19091 echo $ECHO_N "checking lber.h usability... $ECHO_C" >&6
19092 cat >conftest.$ac_ext <<_ACEOF
19093 /* confdefs.h.  */
19094 _ACEOF
19095 cat confdefs.h >>conftest.$ac_ext
19096 cat >>conftest.$ac_ext <<_ACEOF
19097 /* end confdefs.h.  */
19098 $ac_includes_default
19099 #include <lber.h>
19100 _ACEOF
19101 rm -f conftest.$ac_objext
19102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19103   (eval $ac_compile) 2>conftest.er1
19104   ac_status=$?
19105   grep -v '^ *+' conftest.er1 >conftest.err
19106   rm -f conftest.er1
19107   cat conftest.err >&5
19108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19109   (exit $ac_status); } &&
19110          { ac_try='test -z "$ac_c_werror_flag"
19111                          || test ! -s conftest.err'
19112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19113   (eval $ac_try) 2>&5
19114   ac_status=$?
19115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19116   (exit $ac_status); }; } &&
19117          { ac_try='test -s conftest.$ac_objext'
19118   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19119   (eval $ac_try) 2>&5
19120   ac_status=$?
19121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122   (exit $ac_status); }; }; then
19123   ac_header_compiler=yes
19124 else
19125   echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19127
19128 ac_header_compiler=no
19129 fi
19130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19131 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19132 echo "${ECHO_T}$ac_header_compiler" >&6
19133
19134 # Is the header present?
19135 echo "$as_me:$LINENO: checking lber.h presence" >&5
19136 echo $ECHO_N "checking lber.h presence... $ECHO_C" >&6
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h.  */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h.  */
19143 #include <lber.h>
19144 _ACEOF
19145 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19146   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19147   ac_status=$?
19148   grep -v '^ *+' conftest.er1 >conftest.err
19149   rm -f conftest.er1
19150   cat conftest.err >&5
19151   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19152   (exit $ac_status); } >/dev/null; then
19153   if test -s conftest.err; then
19154     ac_cpp_err=$ac_c_preproc_warn_flag
19155     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19156   else
19157     ac_cpp_err=
19158   fi
19159 else
19160   ac_cpp_err=yes
19161 fi
19162 if test -z "$ac_cpp_err"; then
19163   ac_header_preproc=yes
19164 else
19165   echo "$as_me: failed program was:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19167
19168   ac_header_preproc=no
19169 fi
19170 rm -f conftest.err conftest.$ac_ext
19171 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19172 echo "${ECHO_T}$ac_header_preproc" >&6
19173
19174 # So?  What about this header?
19175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19176   yes:no: )
19177     { echo "$as_me:$LINENO: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&5
19178 echo "$as_me: WARNING: lber.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19179     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the compiler's result" >&5
19180 echo "$as_me: WARNING: lber.h: proceeding with the compiler's result" >&2;}
19181     ac_header_preproc=yes
19182     ;;
19183   no:yes:* )
19184     { echo "$as_me:$LINENO: WARNING: lber.h: present but cannot be compiled" >&5
19185 echo "$as_me: WARNING: lber.h: present but cannot be compiled" >&2;}
19186     { echo "$as_me:$LINENO: WARNING: lber.h:     check for missing prerequisite headers?" >&5
19187 echo "$as_me: WARNING: lber.h:     check for missing prerequisite headers?" >&2;}
19188     { echo "$as_me:$LINENO: WARNING: lber.h: see the Autoconf documentation" >&5
19189 echo "$as_me: WARNING: lber.h: see the Autoconf documentation" >&2;}
19190     { echo "$as_me:$LINENO: WARNING: lber.h:     section \"Present But Cannot Be Compiled\"" >&5
19191 echo "$as_me: WARNING: lber.h:     section \"Present But Cannot Be Compiled\"" >&2;}
19192     { echo "$as_me:$LINENO: WARNING: lber.h: proceeding with the preprocessor's result" >&5
19193 echo "$as_me: WARNING: lber.h: proceeding with the preprocessor's result" >&2;}
19194     { echo "$as_me:$LINENO: WARNING: lber.h: in the future, the compiler will take precedence" >&5
19195 echo "$as_me: WARNING: lber.h: in the future, the compiler will take precedence" >&2;}
19196     (
19197       cat <<\_ASBOX
19198 ## ------------------------------------------ ##
19199 ## Report this to the AC_PACKAGE_NAME lists.  ##
19200 ## ------------------------------------------ ##
19201 _ASBOX
19202     ) |
19203       sed "s/^/$as_me: WARNING:     /" >&2
19204     ;;
19205 esac
19206 echo "$as_me:$LINENO: checking for lber.h" >&5
19207 echo $ECHO_N "checking for lber.h... $ECHO_C" >&6
19208 if test "${ac_cv_header_lber_h+set}" = set; then
19209   echo $ECHO_N "(cached) $ECHO_C" >&6
19210 else
19211   ac_cv_header_lber_h=$ac_header_preproc
19212 fi
19213 echo "$as_me:$LINENO: result: $ac_cv_header_lber_h" >&5
19214 echo "${ECHO_T}$ac_cv_header_lber_h" >&6
19215
19216 fi
19217
19218
19219 cat >conftest.$ac_ext <<_ACEOF
19220 /* confdefs.h.  */
19221 _ACEOF
19222 cat confdefs.h >>conftest.$ac_ext
19223 cat >>conftest.$ac_ext <<_ACEOF
19224 /* end confdefs.h.  */
19225 #include <lber.h>
19226
19227 _ACEOF
19228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19229   $EGREP "ber_strdup" >/dev/null 2>&1; then
19230
19231         :
19232
19233 else
19234
19235         echo "        didn't find ber_strdup in lber.h!";
19236         echo "        Check for the right version (>= 2.0) of the OpenLDAP includes";
19237         echo "        or try --with-ldap-includes option.";
19238         exit
19239
19240 fi
19241 rm -f conftest*
19242
19243
19244
19245
19246                               ac_config_files="$ac_config_files Makefile src/Makefile examples/Makefile"
19247 cat >confcache <<\_ACEOF
19248 # This file is a shell script that caches the results of configure
19249 # tests run on this system so they can be shared between configure
19250 # scripts and configure runs, see configure's option --config-cache.
19251 # It is not useful on other systems.  If it contains results you don't
19252 # want to keep, you may remove or edit it.
19253 #
19254 # config.status only pays attention to the cache file if you give it
19255 # the --recheck option to rerun configure.
19256 #
19257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19259 # following values.
19260
19261 _ACEOF
19262
19263 # The following way of writing the cache mishandles newlines in values,
19264 # but we know of no workaround that is simple, portable, and efficient.
19265 # So, don't put newlines in cache variables' values.
19266 # Ultrix sh set writes to stderr and can't be redirected directly,
19267 # and sets the high bit in the cache file unless we assign to the vars.
19268 {
19269   (set) 2>&1 |
19270     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19271     *ac_space=\ *)
19272       # `set' does not quote correctly, so add quotes (double-quote
19273       # substitution turns \\\\ into \\, and sed turns \\ into \).
19274       sed -n \
19275         "s/'/'\\\\''/g;
19276           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19277       ;;
19278     *)
19279       # `set' quotes correctly as required by POSIX, so do not add quotes.
19280       sed -n \
19281         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19282       ;;
19283     esac;
19284 } |
19285   sed '
19286      t clear
19287      : clear
19288      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19289      t end
19290      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19291      : end' >>confcache
19292 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19293   if test -w $cache_file; then
19294     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19295     cat confcache >$cache_file
19296   else
19297     echo "not updating unwritable cache $cache_file"
19298   fi
19299 fi
19300 rm -f confcache
19301
19302 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19303 # Let make expand exec_prefix.
19304 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19305
19306 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19307 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19308 # trailing colons and then remove the whole line if VPATH becomes empty
19309 # (actually we leave an empty line to preserve line numbers).
19310 if test "x$srcdir" = x.; then
19311   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19312 s/:*\$(srcdir):*/:/;
19313 s/:*\${srcdir}:*/:/;
19314 s/:*@srcdir@:*/:/;
19315 s/^\([^=]*=[     ]*\):*/\1/;
19316 s/:*$//;
19317 s/^[^=]*=[       ]*$//;
19318 }'
19319 fi
19320
19321 DEFS=-DHAVE_CONFIG_H
19322
19323 ac_libobjs=
19324 ac_ltlibobjs=
19325 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19326   # 1. Remove the extension, and $U if already installed.
19327   ac_i=`echo "$ac_i" |
19328          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19329   # 2. Add them.
19330   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19331   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19332 done
19333 LIBOBJS=$ac_libobjs
19334
19335 LTLIBOBJS=$ac_ltlibobjs
19336
19337
19338 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19339   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19340 Usually this means the macro was only invoked conditionally." >&5
19341 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19342 Usually this means the macro was only invoked conditionally." >&2;}
19343    { (exit 1); exit 1; }; }
19344 fi
19345 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19346   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19347 Usually this means the macro was only invoked conditionally." >&5
19348 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19349 Usually this means the macro was only invoked conditionally." >&2;}
19350    { (exit 1); exit 1; }; }
19351 fi
19352 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19353   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19354 Usually this means the macro was only invoked conditionally." >&5
19355 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19356 Usually this means the macro was only invoked conditionally." >&2;}
19357    { (exit 1); exit 1; }; }
19358 fi
19359
19360 : ${CONFIG_STATUS=./config.status}
19361 ac_clean_files_save=$ac_clean_files
19362 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19363 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19364 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19365 cat >$CONFIG_STATUS <<_ACEOF
19366 #! $SHELL
19367 # Generated by $as_me.
19368 # Run this file to recreate the current configuration.
19369 # Compiler output produced by configure, useful for debugging
19370 # configure, is in config.log if it exists.
19371
19372 debug=false
19373 ac_cs_recheck=false
19374 ac_cs_silent=false
19375 SHELL=\${CONFIG_SHELL-$SHELL}
19376 _ACEOF
19377
19378 cat >>$CONFIG_STATUS <<\_ACEOF
19379 ## --------------------- ##
19380 ## M4sh Initialization.  ##
19381 ## --------------------- ##
19382
19383 # Be Bourne compatible
19384 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19385   emulate sh
19386   NULLCMD=:
19387   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19388   # is contrary to our usage.  Disable this feature.
19389   alias -g '${1+"$@"}'='"$@"'
19390 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19391   set -o posix
19392 fi
19393 DUALCASE=1; export DUALCASE # for MKS sh
19394
19395 # Support unset when possible.
19396 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19397   as_unset=unset
19398 else
19399   as_unset=false
19400 fi
19401
19402
19403 # Work around bugs in pre-3.0 UWIN ksh.
19404 $as_unset ENV MAIL MAILPATH
19405 PS1='$ '
19406 PS2='> '
19407 PS4='+ '
19408
19409 # NLS nuisances.
19410 for as_var in \
19411   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19412   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19413   LC_TELEPHONE LC_TIME
19414 do
19415   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19416     eval $as_var=C; export $as_var
19417   else
19418     $as_unset $as_var
19419   fi
19420 done
19421
19422 # Required to use basename.
19423 if expr a : '\(a\)' >/dev/null 2>&1; then
19424   as_expr=expr
19425 else
19426   as_expr=false
19427 fi
19428
19429 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19430   as_basename=basename
19431 else
19432   as_basename=false
19433 fi
19434
19435
19436 # Name of the executable.
19437 as_me=`$as_basename "$0" ||
19438 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19439          X"$0" : 'X\(//\)$' \| \
19440          X"$0" : 'X\(/\)$' \| \
19441          .     : '\(.\)' 2>/dev/null ||
19442 echo X/"$0" |
19443     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19444           /^X\/\(\/\/\)$/{ s//\1/; q; }
19445           /^X\/\(\/\).*/{ s//\1/; q; }
19446           s/.*/./; q'`
19447
19448
19449 # PATH needs CR, and LINENO needs CR and PATH.
19450 # Avoid depending upon Character Ranges.
19451 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19452 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19453 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19454 as_cr_digits='0123456789'
19455 as_cr_alnum=$as_cr_Letters$as_cr_digits
19456
19457 # The user is always right.
19458 if test "${PATH_SEPARATOR+set}" != set; then
19459   echo "#! /bin/sh" >conf$$.sh
19460   echo  "exit 0"   >>conf$$.sh
19461   chmod +x conf$$.sh
19462   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19463     PATH_SEPARATOR=';'
19464   else
19465     PATH_SEPARATOR=:
19466   fi
19467   rm -f conf$$.sh
19468 fi
19469
19470
19471   as_lineno_1=$LINENO
19472   as_lineno_2=$LINENO
19473   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19474   test "x$as_lineno_1" != "x$as_lineno_2" &&
19475   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19476   # Find who we are.  Look in the path if we contain no path at all
19477   # relative or not.
19478   case $0 in
19479     *[\\/]* ) as_myself=$0 ;;
19480     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19481 for as_dir in $PATH
19482 do
19483   IFS=$as_save_IFS
19484   test -z "$as_dir" && as_dir=.
19485   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19486 done
19487
19488        ;;
19489   esac
19490   # We did not find ourselves, most probably we were run as `sh COMMAND'
19491   # in which case we are not to be found in the path.
19492   if test "x$as_myself" = x; then
19493     as_myself=$0
19494   fi
19495   if test ! -f "$as_myself"; then
19496     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19497 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19498    { (exit 1); exit 1; }; }
19499   fi
19500   case $CONFIG_SHELL in
19501   '')
19502     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19503 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19504 do
19505   IFS=$as_save_IFS
19506   test -z "$as_dir" && as_dir=.
19507   for as_base in sh bash ksh sh5; do
19508          case $as_dir in
19509          /*)
19510            if ("$as_dir/$as_base" -c '
19511   as_lineno_1=$LINENO
19512   as_lineno_2=$LINENO
19513   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19514   test "x$as_lineno_1" != "x$as_lineno_2" &&
19515   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19516              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19517              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19518              CONFIG_SHELL=$as_dir/$as_base
19519              export CONFIG_SHELL
19520              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19521            fi;;
19522          esac
19523        done
19524 done
19525 ;;
19526   esac
19527
19528   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19529   # uniformly replaced by the line number.  The first 'sed' inserts a
19530   # line-number line before each line; the second 'sed' does the real
19531   # work.  The second script uses 'N' to pair each line-number line
19532   # with the numbered line, and appends trailing '-' during
19533   # substitution so that $LINENO is not a special case at line end.
19534   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19535   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19536   sed '=' <$as_myself |
19537     sed '
19538       N
19539       s,$,-,
19540       : loop
19541       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19542       t loop
19543       s,-$,,
19544       s,^['$as_cr_digits']*\n,,
19545     ' >$as_me.lineno &&
19546   chmod +x $as_me.lineno ||
19547     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19548 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19549    { (exit 1); exit 1; }; }
19550
19551   # Don't try to exec as it changes $[0], causing all sort of problems
19552   # (the dirname of $[0] is not the place where we might find the
19553   # original and so on.  Autoconf is especially sensible to this).
19554   . ./$as_me.lineno
19555   # Exit status is that of the last command.
19556   exit
19557 }
19558
19559
19560 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19561   *c*,-n*) ECHO_N= ECHO_C='
19562 ' ECHO_T='      ' ;;
19563   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19564   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19565 esac
19566
19567 if expr a : '\(a\)' >/dev/null 2>&1; then
19568   as_expr=expr
19569 else
19570   as_expr=false
19571 fi
19572
19573 rm -f conf$$ conf$$.exe conf$$.file
19574 echo >conf$$.file
19575 if ln -s conf$$.file conf$$ 2>/dev/null; then
19576   # We could just check for DJGPP; but this test a) works b) is more generic
19577   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19578   if test -f conf$$.exe; then
19579     # Don't use ln at all; we don't have any links
19580     as_ln_s='cp -p'
19581   else
19582     as_ln_s='ln -s'
19583   fi
19584 elif ln conf$$.file conf$$ 2>/dev/null; then
19585   as_ln_s=ln
19586 else
19587   as_ln_s='cp -p'
19588 fi
19589 rm -f conf$$ conf$$.exe conf$$.file
19590
19591 if mkdir -p . 2>/dev/null; then
19592   as_mkdir_p=:
19593 else
19594   test -d ./-p && rmdir ./-p
19595   as_mkdir_p=false
19596 fi
19597
19598 as_executable_p="test -f"
19599
19600 # Sed expression to map a string onto a valid CPP name.
19601 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19602
19603 # Sed expression to map a string onto a valid variable name.
19604 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19605
19606
19607 # IFS
19608 # We need space, tab and new line, in precisely that order.
19609 as_nl='
19610 '
19611 IFS="   $as_nl"
19612
19613 # CDPATH.
19614 $as_unset CDPATH
19615
19616 exec 6>&1
19617
19618 # Open the log real soon, to keep \$[0] and so on meaningful, and to
19619 # report actual input values of CONFIG_FILES etc. instead of their
19620 # values after options handling.  Logging --version etc. is OK.
19621 exec 5>>config.log
19622 {
19623   echo
19624   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19625 ## Running $as_me. ##
19626 _ASBOX
19627 } >&5
19628 cat >&5 <<_CSEOF
19629
19630 This file was extended by $as_me, which was
19631 generated by GNU Autoconf 2.59.  Invocation command line was
19632
19633   CONFIG_FILES    = $CONFIG_FILES
19634   CONFIG_HEADERS  = $CONFIG_HEADERS
19635   CONFIG_LINKS    = $CONFIG_LINKS
19636   CONFIG_COMMANDS = $CONFIG_COMMANDS
19637   $ $0 $@
19638
19639 _CSEOF
19640 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
19641 echo >&5
19642 _ACEOF
19643
19644 # Files that config.status was made for.
19645 if test -n "$ac_config_files"; then
19646   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
19647 fi
19648
19649 if test -n "$ac_config_headers"; then
19650   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
19651 fi
19652
19653 if test -n "$ac_config_links"; then
19654   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
19655 fi
19656
19657 if test -n "$ac_config_commands"; then
19658   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
19659 fi
19660
19661 cat >>$CONFIG_STATUS <<\_ACEOF
19662
19663 ac_cs_usage="\
19664 \`$as_me' instantiates files from templates according to the
19665 current configuration.
19666
19667 Usage: $0 [OPTIONS] [FILE]...
19668
19669   -h, --help       print this help, then exit
19670   -V, --version    print version number, then exit
19671   -q, --quiet      do not print progress messages
19672   -d, --debug      don't remove temporary files
19673       --recheck    update $as_me by reconfiguring in the same conditions
19674   --file=FILE[:TEMPLATE]
19675                    instantiate the configuration file FILE
19676   --header=FILE[:TEMPLATE]
19677                    instantiate the configuration header FILE
19678
19679 Configuration files:
19680 $config_files
19681
19682 Configuration headers:
19683 $config_headers
19684
19685 Configuration commands:
19686 $config_commands
19687
19688 Report bugs to <bug-autoconf@gnu.org>."
19689 _ACEOF
19690
19691 cat >>$CONFIG_STATUS <<_ACEOF
19692 ac_cs_version="\\
19693 config.status
19694 configured by $0, generated by GNU Autoconf 2.59,
19695   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
19696
19697 Copyright (C) 2003 Free Software Foundation, Inc.
19698 This config.status script is free software; the Free Software Foundation
19699 gives unlimited permission to copy, distribute and modify it."
19700 srcdir=$srcdir
19701 INSTALL="$INSTALL"
19702 _ACEOF
19703
19704 cat >>$CONFIG_STATUS <<\_ACEOF
19705 # If no file are specified by the user, then we need to provide default
19706 # value.  By we need to know if files were specified by the user.
19707 ac_need_defaults=:
19708 while test $# != 0
19709 do
19710   case $1 in
19711   --*=*)
19712     ac_option=`expr "x$1" : 'x\([^=]*\)='`
19713     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
19714     ac_shift=:
19715     ;;
19716   -*)
19717     ac_option=$1
19718     ac_optarg=$2
19719     ac_shift=shift
19720     ;;
19721   *) # This is not an option, so the user has probably given explicit
19722      # arguments.
19723      ac_option=$1
19724      ac_need_defaults=false;;
19725   esac
19726
19727   case $ac_option in
19728   # Handling of the options.
19729 _ACEOF
19730 cat >>$CONFIG_STATUS <<\_ACEOF
19731   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
19732     ac_cs_recheck=: ;;
19733   --version | --vers* | -V )
19734     echo "$ac_cs_version"; exit 0 ;;
19735   --he | --h)
19736     # Conflict between --help and --header
19737     { { echo "$as_me:$LINENO: error: ambiguous option: $1
19738 Try \`$0 --help' for more information." >&5
19739 echo "$as_me: error: ambiguous option: $1
19740 Try \`$0 --help' for more information." >&2;}
19741    { (exit 1); exit 1; }; };;
19742   --help | --hel | -h )
19743     echo "$ac_cs_usage"; exit 0 ;;
19744   --debug | --d* | -d )
19745     debug=: ;;
19746   --file | --fil | --fi | --f )
19747     $ac_shift
19748     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
19749     ac_need_defaults=false;;
19750   --header | --heade | --head | --hea )
19751     $ac_shift
19752     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
19753     ac_need_defaults=false;;
19754   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
19755   | -silent | --silent | --silen | --sile | --sil | --si | --s)
19756     ac_cs_silent=: ;;
19757
19758   # This is an error.
19759   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
19760 Try \`$0 --help' for more information." >&5
19761 echo "$as_me: error: unrecognized option: $1
19762 Try \`$0 --help' for more information." >&2;}
19763    { (exit 1); exit 1; }; } ;;
19764
19765   *) ac_config_targets="$ac_config_targets $1" ;;
19766
19767   esac
19768   shift
19769 done
19770
19771 ac_configure_extra_args=
19772
19773 if $ac_cs_silent; then
19774   exec 6>/dev/null
19775   ac_configure_extra_args="$ac_configure_extra_args --silent"
19776 fi
19777
19778 _ACEOF
19779 cat >>$CONFIG_STATUS <<_ACEOF
19780 if \$ac_cs_recheck; then
19781   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
19782   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19783 fi
19784
19785 _ACEOF
19786
19787 cat >>$CONFIG_STATUS <<_ACEOF
19788 #
19789 # INIT-COMMANDS section.
19790 #
19791
19792 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
19793
19794 _ACEOF
19795
19796
19797
19798 cat >>$CONFIG_STATUS <<\_ACEOF
19799 for ac_config_target in $ac_config_targets
19800 do
19801   case "$ac_config_target" in
19802   # Handling of arguments.
19803   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
19804   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
19805   "examples/Makefile" ) CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
19806   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
19807   "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
19808   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
19809 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
19810    { (exit 1); exit 1; }; };;
19811   esac
19812 done
19813
19814 # If the user did not use the arguments to specify the items to instantiate,
19815 # then the envvar interface is used.  Set only those that are not.
19816 # We use the long form for the default assignment because of an extremely
19817 # bizarre bug on SunOS 4.1.3.
19818 if $ac_need_defaults; then
19819   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
19820   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
19821   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
19822 fi
19823
19824 # Have a temporary directory for convenience.  Make it in the build tree
19825 # simply because there is no reason to put it here, and in addition,
19826 # creating and moving files from /tmp can sometimes cause problems.
19827 # Create a temporary directory, and hook for its removal unless debugging.
19828 $debug ||
19829 {
19830   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
19831   trap '{ (exit 1); exit 1; }' 1 2 13 15
19832 }
19833
19834 # Create a (secure) tmp directory for tmp files.
19835
19836 {
19837   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
19838   test -n "$tmp" && test -d "$tmp"
19839 }  ||
19840 {
19841   tmp=./confstat$$-$RANDOM
19842   (umask 077 && mkdir $tmp)
19843 } ||
19844 {
19845    echo "$me: cannot create a temporary directory in ." >&2
19846    { (exit 1); exit 1; }
19847 }
19848
19849 _ACEOF
19850
19851 cat >>$CONFIG_STATUS <<_ACEOF
19852
19853 #
19854 # CONFIG_FILES section.
19855 #
19856
19857 # No need to generate the scripts if there are no CONFIG_FILES.
19858 # This happens for instance when ./config.status config.h
19859 if test -n "\$CONFIG_FILES"; then
19860   # Protect against being on the right side of a sed subst in config.status.
19861   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
19862    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
19863 s,@SHELL@,$SHELL,;t t
19864 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
19865 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
19866 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
19867 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
19868 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
19869 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
19870 s,@exec_prefix@,$exec_prefix,;t t
19871 s,@prefix@,$prefix,;t t
19872 s,@program_transform_name@,$program_transform_name,;t t
19873 s,@bindir@,$bindir,;t t
19874 s,@sbindir@,$sbindir,;t t
19875 s,@libexecdir@,$libexecdir,;t t
19876 s,@datadir@,$datadir,;t t
19877 s,@sysconfdir@,$sysconfdir,;t t
19878 s,@sharedstatedir@,$sharedstatedir,;t t
19879 s,@localstatedir@,$localstatedir,;t t
19880 s,@libdir@,$libdir,;t t
19881 s,@includedir@,$includedir,;t t
19882 s,@oldincludedir@,$oldincludedir,;t t
19883 s,@infodir@,$infodir,;t t
19884 s,@mandir@,$mandir,;t t
19885 s,@build_alias@,$build_alias,;t t
19886 s,@host_alias@,$host_alias,;t t
19887 s,@target_alias@,$target_alias,;t t
19888 s,@DEFS@,$DEFS,;t t
19889 s,@ECHO_C@,$ECHO_C,;t t
19890 s,@ECHO_N@,$ECHO_N,;t t
19891 s,@ECHO_T@,$ECHO_T,;t t
19892 s,@LIBS@,$LIBS,;t t
19893 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
19894 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
19895 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
19896 s,@CYGPATH_W@,$CYGPATH_W,;t t
19897 s,@PACKAGE@,$PACKAGE,;t t
19898 s,@VERSION@,$VERSION,;t t
19899 s,@ACLOCAL@,$ACLOCAL,;t t
19900 s,@AUTOCONF@,$AUTOCONF,;t t
19901 s,@AUTOMAKE@,$AUTOMAKE,;t t
19902 s,@AUTOHEADER@,$AUTOHEADER,;t t
19903 s,@MAKEINFO@,$MAKEINFO,;t t
19904 s,@install_sh@,$install_sh,;t t
19905 s,@STRIP@,$STRIP,;t t
19906 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
19907 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
19908 s,@mkdir_p@,$mkdir_p,;t t
19909 s,@AWK@,$AWK,;t t
19910 s,@SET_MAKE@,$SET_MAKE,;t t
19911 s,@am__leading_dot@,$am__leading_dot,;t t
19912 s,@AMTAR@,$AMTAR,;t t
19913 s,@am__tar@,$am__tar,;t t
19914 s,@am__untar@,$am__untar,;t t
19915 s,@CXX@,$CXX,;t t
19916 s,@CXXFLAGS@,$CXXFLAGS,;t t
19917 s,@LDFLAGS@,$LDFLAGS,;t t
19918 s,@CPPFLAGS@,$CPPFLAGS,;t t
19919 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
19920 s,@EXEEXT@,$EXEEXT,;t t
19921 s,@OBJEXT@,$OBJEXT,;t t
19922 s,@DEPDIR@,$DEPDIR,;t t
19923 s,@am__include@,$am__include,;t t
19924 s,@am__quote@,$am__quote,;t t
19925 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
19926 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
19927 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
19928 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
19929 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
19930 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
19931 s,@build@,$build,;t t
19932 s,@build_cpu@,$build_cpu,;t t
19933 s,@build_vendor@,$build_vendor,;t t
19934 s,@build_os@,$build_os,;t t
19935 s,@host@,$host,;t t
19936 s,@host_cpu@,$host_cpu,;t t
19937 s,@host_vendor@,$host_vendor,;t t
19938 s,@host_os@,$host_os,;t t
19939 s,@CC@,$CC,;t t
19940 s,@CFLAGS@,$CFLAGS,;t t
19941 s,@ac_ct_CC@,$ac_ct_CC,;t t
19942 s,@CCDEPMODE@,$CCDEPMODE,;t t
19943 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
19944 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
19945 s,@EGREP@,$EGREP,;t t
19946 s,@LN_S@,$LN_S,;t t
19947 s,@ECHO@,$ECHO,;t t
19948 s,@AR@,$AR,;t t
19949 s,@ac_ct_AR@,$ac_ct_AR,;t t
19950 s,@RANLIB@,$RANLIB,;t t
19951 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
19952 s,@CPP@,$CPP,;t t
19953 s,@CXXCPP@,$CXXCPP,;t t
19954 s,@F77@,$F77,;t t
19955 s,@FFLAGS@,$FFLAGS,;t t
19956 s,@ac_ct_F77@,$ac_ct_F77,;t t
19957 s,@LIBTOOL@,$LIBTOOL,;t t
19958 s,@LIBOBJS@,$LIBOBJS,;t t
19959 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
19960 CEOF
19961
19962 _ACEOF
19963
19964   cat >>$CONFIG_STATUS <<\_ACEOF
19965   # Split the substitutions into bite-sized pieces for seds with
19966   # small command number limits, like on Digital OSF/1 and HP-UX.
19967   ac_max_sed_lines=48
19968   ac_sed_frag=1 # Number of current file.
19969   ac_beg=1 # First line for current file.
19970   ac_end=$ac_max_sed_lines # Line after last line for current file.
19971   ac_more_lines=:
19972   ac_sed_cmds=
19973   while $ac_more_lines; do
19974     if test $ac_beg -gt 1; then
19975       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19976     else
19977       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
19978     fi
19979     if test ! -s $tmp/subs.frag; then
19980       ac_more_lines=false
19981     else
19982       # The purpose of the label and of the branching condition is to
19983       # speed up the sed processing (if there are no `@' at all, there
19984       # is no need to browse any of the substitutions).
19985       # These are the two extra sed commands mentioned above.
19986       (echo ':t
19987   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
19988       if test -z "$ac_sed_cmds"; then
19989         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
19990       else
19991         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
19992       fi
19993       ac_sed_frag=`expr $ac_sed_frag + 1`
19994       ac_beg=$ac_end
19995       ac_end=`expr $ac_end + $ac_max_sed_lines`
19996     fi
19997   done
19998   if test -z "$ac_sed_cmds"; then
19999     ac_sed_cmds=cat
20000   fi
20001 fi # test -n "$CONFIG_FILES"
20002
20003 _ACEOF
20004 cat >>$CONFIG_STATUS <<\_ACEOF
20005 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20006   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20007   case $ac_file in
20008   - | *:- | *:-:* ) # input from stdin
20009         cat >$tmp/stdin
20010         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20011         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20012   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20013         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20014   * )   ac_file_in=$ac_file.in ;;
20015   esac
20016
20017   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20018   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20019 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20020          X"$ac_file" : 'X\(//\)[^/]' \| \
20021          X"$ac_file" : 'X\(//\)$' \| \
20022          X"$ac_file" : 'X\(/\)' \| \
20023          .     : '\(.\)' 2>/dev/null ||
20024 echo X"$ac_file" |
20025     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20026           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20027           /^X\(\/\/\)$/{ s//\1/; q; }
20028           /^X\(\/\).*/{ s//\1/; q; }
20029           s/.*/./; q'`
20030   { if $as_mkdir_p; then
20031     mkdir -p "$ac_dir"
20032   else
20033     as_dir="$ac_dir"
20034     as_dirs=
20035     while test ! -d "$as_dir"; do
20036       as_dirs="$as_dir $as_dirs"
20037       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20038 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20039          X"$as_dir" : 'X\(//\)[^/]' \| \
20040          X"$as_dir" : 'X\(//\)$' \| \
20041          X"$as_dir" : 'X\(/\)' \| \
20042          .     : '\(.\)' 2>/dev/null ||
20043 echo X"$as_dir" |
20044     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20045           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20046           /^X\(\/\/\)$/{ s//\1/; q; }
20047           /^X\(\/\).*/{ s//\1/; q; }
20048           s/.*/./; q'`
20049     done
20050     test ! -n "$as_dirs" || mkdir $as_dirs
20051   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20052 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20053    { (exit 1); exit 1; }; }; }
20054
20055   ac_builddir=.
20056
20057 if test "$ac_dir" != .; then
20058   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20059   # A "../" for each directory in $ac_dir_suffix.
20060   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20061 else
20062   ac_dir_suffix= ac_top_builddir=
20063 fi
20064
20065 case $srcdir in
20066   .)  # No --srcdir option.  We are building in place.
20067     ac_srcdir=.
20068     if test -z "$ac_top_builddir"; then
20069        ac_top_srcdir=.
20070     else
20071        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20072     fi ;;
20073   [\\/]* | ?:[\\/]* )  # Absolute path.
20074     ac_srcdir=$srcdir$ac_dir_suffix;
20075     ac_top_srcdir=$srcdir ;;
20076   *) # Relative path.
20077     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20078     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20079 esac
20080
20081 # Do not use `cd foo && pwd` to compute absolute paths, because
20082 # the directories may not exist.
20083 case `pwd` in
20084 .) ac_abs_builddir="$ac_dir";;
20085 *)
20086   case "$ac_dir" in
20087   .) ac_abs_builddir=`pwd`;;
20088   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20089   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20090   esac;;
20091 esac
20092 case $ac_abs_builddir in
20093 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20094 *)
20095   case ${ac_top_builddir}. in
20096   .) ac_abs_top_builddir=$ac_abs_builddir;;
20097   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20098   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20099   esac;;
20100 esac
20101 case $ac_abs_builddir in
20102 .) ac_abs_srcdir=$ac_srcdir;;
20103 *)
20104   case $ac_srcdir in
20105   .) ac_abs_srcdir=$ac_abs_builddir;;
20106   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20107   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20108   esac;;
20109 esac
20110 case $ac_abs_builddir in
20111 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20112 *)
20113   case $ac_top_srcdir in
20114   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20115   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20116   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20117   esac;;
20118 esac
20119
20120
20121   case $INSTALL in
20122   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20123   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20124   esac
20125
20126   if test x"$ac_file" != x-; then
20127     { echo "$as_me:$LINENO: creating $ac_file" >&5
20128 echo "$as_me: creating $ac_file" >&6;}
20129     rm -f "$ac_file"
20130   fi
20131   # Let's still pretend it is `configure' which instantiates (i.e., don't
20132   # use $as_me), people would be surprised to read:
20133   #    /* config.h.  Generated by config.status.  */
20134   if test x"$ac_file" = x-; then
20135     configure_input=
20136   else
20137     configure_input="$ac_file.  "
20138   fi
20139   configure_input=$configure_input"Generated from `echo $ac_file_in |
20140                                      sed 's,.*/,,'` by configure."
20141
20142   # First look for the input files in the build tree, otherwise in the
20143   # src tree.
20144   ac_file_inputs=`IFS=:
20145     for f in $ac_file_in; do
20146       case $f in
20147       -) echo $tmp/stdin ;;
20148       [\\/$]*)
20149          # Absolute (can't be DOS-style, as IFS=:)
20150          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20151 echo "$as_me: error: cannot find input file: $f" >&2;}
20152    { (exit 1); exit 1; }; }
20153          echo "$f";;
20154       *) # Relative
20155          if test -f "$f"; then
20156            # Build tree
20157            echo "$f"
20158          elif test -f "$srcdir/$f"; then
20159            # Source tree
20160            echo "$srcdir/$f"
20161          else
20162            # /dev/null tree
20163            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20164 echo "$as_me: error: cannot find input file: $f" >&2;}
20165    { (exit 1); exit 1; }; }
20166          fi;;
20167       esac
20168     done` || { (exit 1); exit 1; }
20169 _ACEOF
20170 cat >>$CONFIG_STATUS <<_ACEOF
20171   sed "$ac_vpsub
20172 $extrasub
20173 _ACEOF
20174 cat >>$CONFIG_STATUS <<\_ACEOF
20175 :t
20176 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20177 s,@configure_input@,$configure_input,;t t
20178 s,@srcdir@,$ac_srcdir,;t t
20179 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20180 s,@top_srcdir@,$ac_top_srcdir,;t t
20181 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20182 s,@builddir@,$ac_builddir,;t t
20183 s,@abs_builddir@,$ac_abs_builddir,;t t
20184 s,@top_builddir@,$ac_top_builddir,;t t
20185 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20186 s,@INSTALL@,$ac_INSTALL,;t t
20187 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20188   rm -f $tmp/stdin
20189   if test x"$ac_file" != x-; then
20190     mv $tmp/out $ac_file
20191   else
20192     cat $tmp/out
20193     rm -f $tmp/out
20194   fi
20195
20196 done
20197 _ACEOF
20198 cat >>$CONFIG_STATUS <<\_ACEOF
20199
20200 #
20201 # CONFIG_HEADER section.
20202 #
20203
20204 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20205 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20206 #
20207 # ac_d sets the value in "#define NAME VALUE" lines.
20208 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20209 ac_dB='[         ].*$,\1#\2'
20210 ac_dC=' '
20211 ac_dD=',;t'
20212 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20213 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20214 ac_uB='$,\1#\2define\3'
20215 ac_uC=' '
20216 ac_uD=',;t'
20217
20218 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20219   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20220   case $ac_file in
20221   - | *:- | *:-:* ) # input from stdin
20222         cat >$tmp/stdin
20223         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20224         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20225   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20226         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20227   * )   ac_file_in=$ac_file.in ;;
20228   esac
20229
20230   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20231 echo "$as_me: creating $ac_file" >&6;}
20232
20233   # First look for the input files in the build tree, otherwise in the
20234   # src tree.
20235   ac_file_inputs=`IFS=:
20236     for f in $ac_file_in; do
20237       case $f in
20238       -) echo $tmp/stdin ;;
20239       [\\/$]*)
20240          # Absolute (can't be DOS-style, as IFS=:)
20241          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20242 echo "$as_me: error: cannot find input file: $f" >&2;}
20243    { (exit 1); exit 1; }; }
20244          # Do quote $f, to prevent DOS paths from being IFS'd.
20245          echo "$f";;
20246       *) # Relative
20247          if test -f "$f"; then
20248            # Build tree
20249            echo "$f"
20250          elif test -f "$srcdir/$f"; then
20251            # Source tree
20252            echo "$srcdir/$f"
20253          else
20254            # /dev/null tree
20255            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20256 echo "$as_me: error: cannot find input file: $f" >&2;}
20257    { (exit 1); exit 1; }; }
20258          fi;;
20259       esac
20260     done` || { (exit 1); exit 1; }
20261   # Remove the trailing spaces.
20262   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20263
20264 _ACEOF
20265
20266 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20267 # `conftest.undefs', that substitutes the proper values into
20268 # config.h.in to produce config.h.  The first handles `#define'
20269 # templates, and the second `#undef' templates.
20270 # And first: Protect against being on the right side of a sed subst in
20271 # config.status.  Protect against being in an unquoted here document
20272 # in config.status.
20273 rm -f conftest.defines conftest.undefs
20274 # Using a here document instead of a string reduces the quoting nightmare.
20275 # Putting comments in sed scripts is not portable.
20276 #
20277 # `end' is used to avoid that the second main sed command (meant for
20278 # 0-ary CPP macros) applies to n-ary macro definitions.
20279 # See the Autoconf documentation for `clear'.
20280 cat >confdef2sed.sed <<\_ACEOF
20281 s/[\\&,]/\\&/g
20282 s,[\\$`],\\&,g
20283 t clear
20284 : clear
20285 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20286 t end
20287 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20288 : end
20289 _ACEOF
20290 # If some macros were called several times there might be several times
20291 # the same #defines, which is useless.  Nevertheless, we may not want to
20292 # sort them, since we want the *last* AC-DEFINE to be honored.
20293 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20294 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20295 rm -f confdef2sed.sed
20296
20297 # This sed command replaces #undef with comments.  This is necessary, for
20298 # example, in the case of _POSIX_SOURCE, which is predefined and required
20299 # on some systems where configure will not decide to define it.
20300 cat >>conftest.undefs <<\_ACEOF
20301 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20302 _ACEOF
20303
20304 # Break up conftest.defines because some shells have a limit on the size
20305 # of here documents, and old seds have small limits too (100 cmds).
20306 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20307 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20308 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20309 echo '  :' >>$CONFIG_STATUS
20310 rm -f conftest.tail
20311 while grep . conftest.defines >/dev/null
20312 do
20313   # Write a limited-size here document to $tmp/defines.sed.
20314   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20315   # Speed up: don't consider the non `#define' lines.
20316   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20317   # Work around the forget-to-reset-the-flag bug.
20318   echo 't clr' >>$CONFIG_STATUS
20319   echo ': clr' >>$CONFIG_STATUS
20320   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20321   echo 'CEOF
20322   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20323   rm -f $tmp/in
20324   mv $tmp/out $tmp/in
20325 ' >>$CONFIG_STATUS
20326   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20327   rm -f conftest.defines
20328   mv conftest.tail conftest.defines
20329 done
20330 rm -f conftest.defines
20331 echo '  fi # grep' >>$CONFIG_STATUS
20332 echo >>$CONFIG_STATUS
20333
20334 # Break up conftest.undefs because some shells have a limit on the size
20335 # of here documents, and old seds have small limits too (100 cmds).
20336 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20337 rm -f conftest.tail
20338 while grep . conftest.undefs >/dev/null
20339 do
20340   # Write a limited-size here document to $tmp/undefs.sed.
20341   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20342   # Speed up: don't consider the non `#undef'
20343   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20344   # Work around the forget-to-reset-the-flag bug.
20345   echo 't clr' >>$CONFIG_STATUS
20346   echo ': clr' >>$CONFIG_STATUS
20347   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20348   echo 'CEOF
20349   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20350   rm -f $tmp/in
20351   mv $tmp/out $tmp/in
20352 ' >>$CONFIG_STATUS
20353   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20354   rm -f conftest.undefs
20355   mv conftest.tail conftest.undefs
20356 done
20357 rm -f conftest.undefs
20358
20359 cat >>$CONFIG_STATUS <<\_ACEOF
20360   # Let's still pretend it is `configure' which instantiates (i.e., don't
20361   # use $as_me), people would be surprised to read:
20362   #    /* config.h.  Generated by config.status.  */
20363   if test x"$ac_file" = x-; then
20364     echo "/* Generated by configure.  */" >$tmp/config.h
20365   else
20366     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20367   fi
20368   cat $tmp/in >>$tmp/config.h
20369   rm -f $tmp/in
20370   if test x"$ac_file" != x-; then
20371     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20372       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20373 echo "$as_me: $ac_file is unchanged" >&6;}
20374     else
20375       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20377          X"$ac_file" : 'X\(//\)[^/]' \| \
20378          X"$ac_file" : 'X\(//\)$' \| \
20379          X"$ac_file" : 'X\(/\)' \| \
20380          .     : '\(.\)' 2>/dev/null ||
20381 echo X"$ac_file" |
20382     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20383           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20384           /^X\(\/\/\)$/{ s//\1/; q; }
20385           /^X\(\/\).*/{ s//\1/; q; }
20386           s/.*/./; q'`
20387       { if $as_mkdir_p; then
20388     mkdir -p "$ac_dir"
20389   else
20390     as_dir="$ac_dir"
20391     as_dirs=
20392     while test ! -d "$as_dir"; do
20393       as_dirs="$as_dir $as_dirs"
20394       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20395 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20396          X"$as_dir" : 'X\(//\)[^/]' \| \
20397          X"$as_dir" : 'X\(//\)$' \| \
20398          X"$as_dir" : 'X\(/\)' \| \
20399          .     : '\(.\)' 2>/dev/null ||
20400 echo X"$as_dir" |
20401     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20402           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20403           /^X\(\/\/\)$/{ s//\1/; q; }
20404           /^X\(\/\).*/{ s//\1/; q; }
20405           s/.*/./; q'`
20406     done
20407     test ! -n "$as_dirs" || mkdir $as_dirs
20408   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20409 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20410    { (exit 1); exit 1; }; }; }
20411
20412       rm -f $ac_file
20413       mv $tmp/config.h $ac_file
20414     fi
20415   else
20416     cat $tmp/config.h
20417     rm -f $tmp/config.h
20418   fi
20419 # Compute $ac_file's index in $config_headers.
20420 _am_stamp_count=1
20421 for _am_header in $config_headers :; do
20422   case $_am_header in
20423     $ac_file | $ac_file:* )
20424       break ;;
20425     * )
20426       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20427   esac
20428 done
20429 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20430 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20431          X$ac_file : 'X\(//\)[^/]' \| \
20432          X$ac_file : 'X\(//\)$' \| \
20433          X$ac_file : 'X\(/\)' \| \
20434          .     : '\(.\)' 2>/dev/null ||
20435 echo X$ac_file |
20436     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20437           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20438           /^X\(\/\/\)$/{ s//\1/; q; }
20439           /^X\(\/\).*/{ s//\1/; q; }
20440           s/.*/./; q'`/stamp-h$_am_stamp_count
20441 done
20442 _ACEOF
20443 cat >>$CONFIG_STATUS <<\_ACEOF
20444
20445 #
20446 # CONFIG_COMMANDS section.
20447 #
20448 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20449   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20450   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20451   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20452 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20453          X"$ac_dest" : 'X\(//\)[^/]' \| \
20454          X"$ac_dest" : 'X\(//\)$' \| \
20455          X"$ac_dest" : 'X\(/\)' \| \
20456          .     : '\(.\)' 2>/dev/null ||
20457 echo X"$ac_dest" |
20458     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20459           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20460           /^X\(\/\/\)$/{ s//\1/; q; }
20461           /^X\(\/\).*/{ s//\1/; q; }
20462           s/.*/./; q'`
20463   { if $as_mkdir_p; then
20464     mkdir -p "$ac_dir"
20465   else
20466     as_dir="$ac_dir"
20467     as_dirs=
20468     while test ! -d "$as_dir"; do
20469       as_dirs="$as_dir $as_dirs"
20470       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20471 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20472          X"$as_dir" : 'X\(//\)[^/]' \| \
20473          X"$as_dir" : 'X\(//\)$' \| \
20474          X"$as_dir" : 'X\(/\)' \| \
20475          .     : '\(.\)' 2>/dev/null ||
20476 echo X"$as_dir" |
20477     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20478           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20479           /^X\(\/\/\)$/{ s//\1/; q; }
20480           /^X\(\/\).*/{ s//\1/; q; }
20481           s/.*/./; q'`
20482     done
20483     test ! -n "$as_dirs" || mkdir $as_dirs
20484   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20485 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20486    { (exit 1); exit 1; }; }; }
20487
20488   ac_builddir=.
20489
20490 if test "$ac_dir" != .; then
20491   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20492   # A "../" for each directory in $ac_dir_suffix.
20493   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20494 else
20495   ac_dir_suffix= ac_top_builddir=
20496 fi
20497
20498 case $srcdir in
20499   .)  # No --srcdir option.  We are building in place.
20500     ac_srcdir=.
20501     if test -z "$ac_top_builddir"; then
20502        ac_top_srcdir=.
20503     else
20504        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20505     fi ;;
20506   [\\/]* | ?:[\\/]* )  # Absolute path.
20507     ac_srcdir=$srcdir$ac_dir_suffix;
20508     ac_top_srcdir=$srcdir ;;
20509   *) # Relative path.
20510     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20511     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20512 esac
20513
20514 # Do not use `cd foo && pwd` to compute absolute paths, because
20515 # the directories may not exist.
20516 case `pwd` in
20517 .) ac_abs_builddir="$ac_dir";;
20518 *)
20519   case "$ac_dir" in
20520   .) ac_abs_builddir=`pwd`;;
20521   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20522   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20523   esac;;
20524 esac
20525 case $ac_abs_builddir in
20526 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20527 *)
20528   case ${ac_top_builddir}. in
20529   .) ac_abs_top_builddir=$ac_abs_builddir;;
20530   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20531   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20532   esac;;
20533 esac
20534 case $ac_abs_builddir in
20535 .) ac_abs_srcdir=$ac_srcdir;;
20536 *)
20537   case $ac_srcdir in
20538   .) ac_abs_srcdir=$ac_abs_builddir;;
20539   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20540   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20541   esac;;
20542 esac
20543 case $ac_abs_builddir in
20544 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20545 *)
20546   case $ac_top_srcdir in
20547   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20548   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20549   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20550   esac;;
20551 esac
20552
20553
20554   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20555 echo "$as_me: executing $ac_dest commands" >&6;}
20556   case $ac_dest in
20557     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20558   # Strip MF so we end up with the name of the file.
20559   mf=`echo "$mf" | sed -e 's/:.*$//'`
20560   # Check whether this is an Automake generated Makefile or not.
20561   # We used to match only the files named `Makefile.in', but
20562   # some people rename them; so instead we look at the file content.
20563   # Grep'ing the first line is not enough: some people post-process
20564   # each Makefile.in and add a new line on top of each file to say so.
20565   # So let's grep whole file.
20566   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20567     dirpart=`(dirname "$mf") 2>/dev/null ||
20568 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20569          X"$mf" : 'X\(//\)[^/]' \| \
20570          X"$mf" : 'X\(//\)$' \| \
20571          X"$mf" : 'X\(/\)' \| \
20572          .     : '\(.\)' 2>/dev/null ||
20573 echo X"$mf" |
20574     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20575           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20576           /^X\(\/\/\)$/{ s//\1/; q; }
20577           /^X\(\/\).*/{ s//\1/; q; }
20578           s/.*/./; q'`
20579   else
20580     continue
20581   fi
20582   # Extract the definition of DEPDIR, am__include, and am__quote
20583   # from the Makefile without running `make'.
20584   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20585   test -z "$DEPDIR" && continue
20586   am__include=`sed -n 's/^am__include = //p' < "$mf"`
20587   test -z "am__include" && continue
20588   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
20589   # When using ansi2knr, U may be empty or an underscore; expand it
20590   U=`sed -n 's/^U = //p' < "$mf"`
20591   # Find all dependency output files, they are included files with
20592   # $(DEPDIR) in their names.  We invoke sed twice because it is the
20593   # simplest approach to changing $(DEPDIR) to its actual value in the
20594   # expansion.
20595   for file in `sed -n "
20596     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
20597        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
20598     # Make sure the directory exists.
20599     test -f "$dirpart/$file" && continue
20600     fdir=`(dirname "$file") 2>/dev/null ||
20601 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20602          X"$file" : 'X\(//\)[^/]' \| \
20603          X"$file" : 'X\(//\)$' \| \
20604          X"$file" : 'X\(/\)' \| \
20605          .     : '\(.\)' 2>/dev/null ||
20606 echo X"$file" |
20607     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20608           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20609           /^X\(\/\/\)$/{ s//\1/; q; }
20610           /^X\(\/\).*/{ s//\1/; q; }
20611           s/.*/./; q'`
20612     { if $as_mkdir_p; then
20613     mkdir -p $dirpart/$fdir
20614   else
20615     as_dir=$dirpart/$fdir
20616     as_dirs=
20617     while test ! -d "$as_dir"; do
20618       as_dirs="$as_dir $as_dirs"
20619       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20620 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20621          X"$as_dir" : 'X\(//\)[^/]' \| \
20622          X"$as_dir" : 'X\(//\)$' \| \
20623          X"$as_dir" : 'X\(/\)' \| \
20624          .     : '\(.\)' 2>/dev/null ||
20625 echo X"$as_dir" |
20626     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20627           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20628           /^X\(\/\/\)$/{ s//\1/; q; }
20629           /^X\(\/\).*/{ s//\1/; q; }
20630           s/.*/./; q'`
20631     done
20632     test ! -n "$as_dirs" || mkdir $as_dirs
20633   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
20634 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
20635    { (exit 1); exit 1; }; }; }
20636
20637     # echo "creating $dirpart/$file"
20638     echo '# dummy' > "$dirpart/$file"
20639   done
20640 done
20641  ;;
20642   esac
20643 done
20644 _ACEOF
20645
20646 cat >>$CONFIG_STATUS <<\_ACEOF
20647
20648 { (exit 0); exit 0; }
20649 _ACEOF
20650 chmod +x $CONFIG_STATUS
20651 ac_clean_files=$ac_clean_files_save
20652
20653
20654 # configure is writing to config.log, and then calls config.status.
20655 # config.status does its own redirection, appending to config.log.
20656 # Unfortunately, on DOS this fails, as config.log is still kept open
20657 # by configure, so config.status won't be able to write to it; its
20658 # output is simply discarded.  So we exec the FD to /dev/null,
20659 # effectively closing config.log, so it can be properly (re)opened and
20660 # appended to by config.status.  When coming back to configure, we
20661 # need to make the FD available again.
20662 if test "$no_create" != yes; then
20663   ac_cs_success=:
20664   ac_config_status_args=
20665   test "$silent" = yes &&
20666     ac_config_status_args="$ac_config_status_args --quiet"
20667   exec 5>/dev/null
20668   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20669   exec 5>>config.log
20670   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20671   # would make configure fail if this is the last instruction.
20672   $ac_cs_success || { (exit 1); exit 1; }
20673 fi
20674