9b3cd33e0e4aa6efdbf942bae30df6bc8cc6de4e
[platform/upstream/syncevolution.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
274 $*
275 EOF
276   exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289        echo_test_string=`eval $cmd` &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
307
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
320
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
361
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
369
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="src/syncevolution.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 MODIFY_SYNCCOMPARE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CPP EGREP CPPUNIT_CXXFLAGS CPPUNIT_LDFLAGS CPPUNIT_TESTS CORE_LDADD_DEP CLEAN_CLIENT_SRC TRANSPORT_LDFLAGS TRANSPORT_CFLAGS CURL_LDFLAGS FUNAMBOL_CFLAGS FUNAMBOL_LIBS FUNAMBOL FUNAMBOL_SUBDIR FUNAMBOL_DEP FUNAMBOL_LIB FUNAMBOLSRC SYNCSOURCES BACKEND_DEFINES ADDRESSBOOK_CFLAGS ADDRESSBOOK_LIBS PKG_CONFIG ac_pt_PKG_CONFIG EPACKAGE_CFLAGS EPACKAGE_LIBS ECAL_CFLAGS ECAL_LIBS EBOOK_CFLAGS EBOOK_LIBS ENABLE_ECAL_TRUE ENABLE_ECAL_FALSE FILE_CFLAGS FILE_LIBS SQLITE_CFLAGS SQLITE_LIBS BACKEND_CPPFLAGS GLIB_CFLAGS GLIB_LIBS CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ENABLE_MODULES_TRUE ENABLE_MODULES_FALSE SYNCEVOLUTION_LDADD SYNCEVOLUTION_CXXFLAGS LIBOBJS LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510   # If the previous option needs an argument, assign it.
511   if test -n "$ac_prev"; then
512     eval "$ac_prev=\$ac_option"
513     ac_prev=
514     continue
515   fi
516
517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519   # Accept the important Cygnus configure options, so we can diagnose typos.
520
521   case $ac_option in
522
523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
524     ac_prev=bindir ;;
525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526     bindir=$ac_optarg ;;
527
528   -build | --build | --buil | --bui | --bu)
529     ac_prev=build_alias ;;
530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531     build_alias=$ac_optarg ;;
532
533   -cache-file | --cache-file | --cache-fil | --cache-fi \
534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535     ac_prev=cache_file ;;
536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538     cache_file=$ac_optarg ;;
539
540   --config-cache | -C)
541     cache_file=config.cache ;;
542
543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544     ac_prev=datadir ;;
545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546   | --da=*)
547     datadir=$ac_optarg ;;
548
549   -disable-* | --disable-*)
550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551     # Reject names that are not valid shell variable names.
552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554    { (exit 1); exit 1; }; }
555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556     eval "enable_$ac_feature=no" ;;
557
558   -enable-* | --enable-*)
559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560     # Reject names that are not valid shell variable names.
561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563    { (exit 1); exit 1; }; }
564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565     case $ac_option in
566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567       *) ac_optarg=yes ;;
568     esac
569     eval "enable_$ac_feature='$ac_optarg'" ;;
570
571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573   | --exec | --exe | --ex)
574     ac_prev=exec_prefix ;;
575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577   | --exec=* | --exe=* | --ex=*)
578     exec_prefix=$ac_optarg ;;
579
580   -gas | --gas | --ga | --g)
581     # Obsolete; use --with-gas.
582     with_gas=yes ;;
583
584   -help | --help | --hel | --he | -h)
585     ac_init_help=long ;;
586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587     ac_init_help=recursive ;;
588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589     ac_init_help=short ;;
590
591   -host | --host | --hos | --ho)
592     ac_prev=host_alias ;;
593   -host=* | --host=* | --hos=* | --ho=*)
594     host_alias=$ac_optarg ;;
595
596   -includedir | --includedir | --includedi | --included | --include \
597   | --includ | --inclu | --incl | --inc)
598     ac_prev=includedir ;;
599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600   | --includ=* | --inclu=* | --incl=* | --inc=*)
601     includedir=$ac_optarg ;;
602
603   -infodir | --infodir | --infodi | --infod | --info | --inf)
604     ac_prev=infodir ;;
605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606     infodir=$ac_optarg ;;
607
608   -libdir | --libdir | --libdi | --libd)
609     ac_prev=libdir ;;
610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
611     libdir=$ac_optarg ;;
612
613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614   | --libexe | --libex | --libe)
615     ac_prev=libexecdir ;;
616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617   | --libexe=* | --libex=* | --libe=*)
618     libexecdir=$ac_optarg ;;
619
620   -localstatedir | --localstatedir | --localstatedi | --localstated \
621   | --localstate | --localstat | --localsta | --localst \
622   | --locals | --local | --loca | --loc | --lo)
623     ac_prev=localstatedir ;;
624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627     localstatedir=$ac_optarg ;;
628
629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630     ac_prev=mandir ;;
631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632     mandir=$ac_optarg ;;
633
634   -nfp | --nfp | --nf)
635     # Obsolete; use --without-fp.
636     with_fp=no ;;
637
638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639   | --no-cr | --no-c | -n)
640     no_create=yes ;;
641
642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644     no_recursion=yes ;;
645
646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648   | --oldin | --oldi | --old | --ol | --o)
649     ac_prev=oldincludedir ;;
650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653     oldincludedir=$ac_optarg ;;
654
655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656     ac_prev=prefix ;;
657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658     prefix=$ac_optarg ;;
659
660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
661   | --program-pre | --program-pr | --program-p)
662     ac_prev=program_prefix ;;
663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665     program_prefix=$ac_optarg ;;
666
667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
668   | --program-suf | --program-su | --program-s)
669     ac_prev=program_suffix ;;
670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672     program_suffix=$ac_optarg ;;
673
674   -program-transform-name | --program-transform-name \
675   | --program-transform-nam | --program-transform-na \
676   | --program-transform-n | --program-transform- \
677   | --program-transform | --program-transfor \
678   | --program-transfo | --program-transf \
679   | --program-trans | --program-tran \
680   | --progr-tra | --program-tr | --program-t)
681     ac_prev=program_transform_name ;;
682   -program-transform-name=* | --program-transform-name=* \
683   | --program-transform-nam=* | --program-transform-na=* \
684   | --program-transform-n=* | --program-transform-=* \
685   | --program-transform=* | --program-transfor=* \
686   | --program-transfo=* | --program-transf=* \
687   | --program-trans=* | --program-tran=* \
688   | --progr-tra=* | --program-tr=* | --program-t=*)
689     program_transform_name=$ac_optarg ;;
690
691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692   | -silent | --silent | --silen | --sile | --sil)
693     silent=yes ;;
694
695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696     ac_prev=sbindir ;;
697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698   | --sbi=* | --sb=*)
699     sbindir=$ac_optarg ;;
700
701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703   | --sharedst | --shareds | --shared | --share | --shar \
704   | --sha | --sh)
705     ac_prev=sharedstatedir ;;
706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709   | --sha=* | --sh=*)
710     sharedstatedir=$ac_optarg ;;
711
712   -site | --site | --sit)
713     ac_prev=site ;;
714   -site=* | --site=* | --sit=*)
715     site=$ac_optarg ;;
716
717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718     ac_prev=srcdir ;;
719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720     srcdir=$ac_optarg ;;
721
722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723   | --syscon | --sysco | --sysc | --sys | --sy)
724     ac_prev=sysconfdir ;;
725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727     sysconfdir=$ac_optarg ;;
728
729   -target | --target | --targe | --targ | --tar | --ta | --t)
730     ac_prev=target_alias ;;
731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732     target_alias=$ac_optarg ;;
733
734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
735     verbose=yes ;;
736
737   -version | --version | --versio | --versi | --vers | -V)
738     ac_init_version=: ;;
739
740   -with-* | --with-*)
741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742     # Reject names that are not valid shell variable names.
743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744       { echo "$as_me: error: invalid package name: $ac_package" >&2
745    { (exit 1); exit 1; }; }
746     ac_package=`echo $ac_package| sed 's/-/_/g'`
747     case $ac_option in
748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749       *) ac_optarg=yes ;;
750     esac
751     eval "with_$ac_package='$ac_optarg'" ;;
752
753   -without-* | --without-*)
754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755     # Reject names that are not valid shell variable names.
756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757       { echo "$as_me: error: invalid package name: $ac_package" >&2
758    { (exit 1); exit 1; }; }
759     ac_package=`echo $ac_package | sed 's/-/_/g'`
760     eval "with_$ac_package=no" ;;
761
762   --x)
763     # Obsolete; use --with-x.
764     with_x=yes ;;
765
766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767   | --x-incl | --x-inc | --x-in | --x-i)
768     ac_prev=x_includes ;;
769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771     x_includes=$ac_optarg ;;
772
773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775     ac_prev=x_libraries ;;
776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778     x_libraries=$ac_optarg ;;
779
780   -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782    { (exit 1); exit 1; }; }
783     ;;
784
785   *=*)
786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787     # Reject names that are not valid shell variable names.
788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790    { (exit 1); exit 1; }; }
791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792     eval "$ac_envvar='$ac_optarg'"
793     export $ac_envvar ;;
794
795   *)
796     # FIXME: should be removed in autoconf 3.0.
797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801     ;;
802
803   esac
804 done
805
806 if test -n "$ac_prev"; then
807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808   { echo "$as_me: error: missing argument to $ac_option" >&2
809    { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815   eval ac_val=$`echo $ac_var`
816   case $ac_val in
817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819    { (exit 1); exit 1; }; };;
820   esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825               localstatedir libdir includedir oldincludedir infodir mandir
826 do
827   eval ac_val=$`echo $ac_var`
828   case $ac_val in
829     [\\/$]* | ?:[\\/]* ) ;;
830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831    { (exit 1); exit 1; }; };;
832   esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844   if test "x$build_alias" = x; then
845     cross_compiling=maybe
846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847     If a cross compiler is detected then cross compile mode will be used." >&2
848   elif test "x$build_alias" != "x$host_alias"; then
849     cross_compiling=yes
850   fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861   ac_srcdir_defaulted=yes
862   # Try the directory containing this script, then its parent.
863   ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865          X"$0" : 'X\(//\)[^/]' \| \
866          X"$0" : 'X\(//\)$' \| \
867          X"$0" : 'X\(/\)' \| \
868          .     : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872           /^X\(\/\/\)$/{ s//\1/; q; }
873           /^X\(\/\).*/{ s//\1/; q; }
874           s/.*/./; q'`
875   srcdir=$ac_confdir
876   if test ! -r $srcdir/$ac_unique_file; then
877     srcdir=..
878   fi
879 else
880   ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883   if test "$ac_srcdir_defaulted" = yes; then
884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885    { (exit 1); exit 1; }; }
886   else
887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888    { (exit 1); exit 1; }; }
889   fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893    { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_PKG_CONFIG_set=${PKG_CONFIG+set}
928 ac_env_PKG_CONFIG_value=$PKG_CONFIG
929 ac_cv_env_PKG_CONFIG_set=${PKG_CONFIG+set}
930 ac_cv_env_PKG_CONFIG_value=$PKG_CONFIG
931 ac_env_EPACKAGE_CFLAGS_set=${EPACKAGE_CFLAGS+set}
932 ac_env_EPACKAGE_CFLAGS_value=$EPACKAGE_CFLAGS
933 ac_cv_env_EPACKAGE_CFLAGS_set=${EPACKAGE_CFLAGS+set}
934 ac_cv_env_EPACKAGE_CFLAGS_value=$EPACKAGE_CFLAGS
935 ac_env_EPACKAGE_LIBS_set=${EPACKAGE_LIBS+set}
936 ac_env_EPACKAGE_LIBS_value=$EPACKAGE_LIBS
937 ac_cv_env_EPACKAGE_LIBS_set=${EPACKAGE_LIBS+set}
938 ac_cv_env_EPACKAGE_LIBS_value=$EPACKAGE_LIBS
939 ac_env_ECAL_CFLAGS_set=${ECAL_CFLAGS+set}
940 ac_env_ECAL_CFLAGS_value=$ECAL_CFLAGS
941 ac_cv_env_ECAL_CFLAGS_set=${ECAL_CFLAGS+set}
942 ac_cv_env_ECAL_CFLAGS_value=$ECAL_CFLAGS
943 ac_env_ECAL_LIBS_set=${ECAL_LIBS+set}
944 ac_env_ECAL_LIBS_value=$ECAL_LIBS
945 ac_cv_env_ECAL_LIBS_set=${ECAL_LIBS+set}
946 ac_cv_env_ECAL_LIBS_value=$ECAL_LIBS
947 ac_env_EBOOK_CFLAGS_set=${EBOOK_CFLAGS+set}
948 ac_env_EBOOK_CFLAGS_value=$EBOOK_CFLAGS
949 ac_cv_env_EBOOK_CFLAGS_set=${EBOOK_CFLAGS+set}
950 ac_cv_env_EBOOK_CFLAGS_value=$EBOOK_CFLAGS
951 ac_env_EBOOK_LIBS_set=${EBOOK_LIBS+set}
952 ac_env_EBOOK_LIBS_value=$EBOOK_LIBS
953 ac_cv_env_EBOOK_LIBS_set=${EBOOK_LIBS+set}
954 ac_cv_env_EBOOK_LIBS_value=$EBOOK_LIBS
955 ac_env_SQLITE_CFLAGS_set=${SQLITE_CFLAGS+set}
956 ac_env_SQLITE_CFLAGS_value=$SQLITE_CFLAGS
957 ac_cv_env_SQLITE_CFLAGS_set=${SQLITE_CFLAGS+set}
958 ac_cv_env_SQLITE_CFLAGS_value=$SQLITE_CFLAGS
959 ac_env_SQLITE_LIBS_set=${SQLITE_LIBS+set}
960 ac_env_SQLITE_LIBS_value=$SQLITE_LIBS
961 ac_cv_env_SQLITE_LIBS_set=${SQLITE_LIBS+set}
962 ac_cv_env_SQLITE_LIBS_value=$SQLITE_LIBS
963 ac_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
964 ac_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
965 ac_cv_env_GLIB_CFLAGS_set=${GLIB_CFLAGS+set}
966 ac_cv_env_GLIB_CFLAGS_value=$GLIB_CFLAGS
967 ac_env_GLIB_LIBS_set=${GLIB_LIBS+set}
968 ac_env_GLIB_LIBS_value=$GLIB_LIBS
969 ac_cv_env_GLIB_LIBS_set=${GLIB_LIBS+set}
970 ac_cv_env_GLIB_LIBS_value=$GLIB_LIBS
971 ac_env_CXX_set=${CXX+set}
972 ac_env_CXX_value=$CXX
973 ac_cv_env_CXX_set=${CXX+set}
974 ac_cv_env_CXX_value=$CXX
975 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
976 ac_env_CXXFLAGS_value=$CXXFLAGS
977 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
978 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
979 ac_env_CXXCPP_set=${CXXCPP+set}
980 ac_env_CXXCPP_value=$CXXCPP
981 ac_cv_env_CXXCPP_set=${CXXCPP+set}
982 ac_cv_env_CXXCPP_value=$CXXCPP
983 ac_env_F77_set=${F77+set}
984 ac_env_F77_value=$F77
985 ac_cv_env_F77_set=${F77+set}
986 ac_cv_env_F77_value=$F77
987 ac_env_FFLAGS_set=${FFLAGS+set}
988 ac_env_FFLAGS_value=$FFLAGS
989 ac_cv_env_FFLAGS_set=${FFLAGS+set}
990 ac_cv_env_FFLAGS_value=$FFLAGS
991
992 #
993 # Report the --help message.
994 #
995 if test "$ac_init_help" = "long"; then
996   # Omit some internal or obsolete options to make the list less imposing.
997   # This message is too long to be a string in the A/UX 3.1 sh.
998   cat <<_ACEOF
999 \`configure' configures this package to adapt to many kinds of systems.
1000
1001 Usage: $0 [OPTION]... [VAR=VALUE]...
1002
1003 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1004 VAR=VALUE.  See below for descriptions of some of the useful variables.
1005
1006 Defaults for the options are specified in brackets.
1007
1008 Configuration:
1009   -h, --help              display this help and exit
1010       --help=short        display options specific to this package
1011       --help=recursive    display the short help of all the included packages
1012   -V, --version           display version information and exit
1013   -q, --quiet, --silent   do not print \`checking...' messages
1014       --cache-file=FILE   cache test results in FILE [disabled]
1015   -C, --config-cache      alias for \`--cache-file=config.cache'
1016   -n, --no-create         do not create output files
1017       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1018
1019 _ACEOF
1020
1021   cat <<_ACEOF
1022 Installation directories:
1023   --prefix=PREFIX         install architecture-independent files in PREFIX
1024                           [$ac_default_prefix]
1025   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1026                           [PREFIX]
1027
1028 By default, \`make install' will install all the files in
1029 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1030 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1031 for instance \`--prefix=\$HOME'.
1032
1033 For better control, use the options below.
1034
1035 Fine tuning of the installation directories:
1036   --bindir=DIR           user executables [EPREFIX/bin]
1037   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1038   --libexecdir=DIR       program executables [EPREFIX/libexec]
1039   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1040   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1041   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1042   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1043   --libdir=DIR           object code libraries [EPREFIX/lib]
1044   --includedir=DIR       C header files [PREFIX/include]
1045   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1046   --infodir=DIR          info documentation [PREFIX/info]
1047   --mandir=DIR           man documentation [PREFIX/man]
1048 _ACEOF
1049
1050   cat <<\_ACEOF
1051
1052 Program names:
1053   --program-prefix=PREFIX            prepend PREFIX to installed program names
1054   --program-suffix=SUFFIX            append SUFFIX to installed program names
1055   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1056
1057 System types:
1058   --build=BUILD     configure for building on BUILD [guessed]
1059   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1060 _ACEOF
1061 fi
1062
1063 if test -n "$ac_init_help"; then
1064
1065   cat <<\_ACEOF
1066
1067 Optional Features:
1068   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1069   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1070   --enable-shared         build backends as dynamically loadable modules
1071   --enable-static         build backends also as static libraries
1072   --enable-unit-tests     enables tests embedded in the source code of the
1073                           library (changes content of executable)
1074   --enable-integration-tests
1075                           enables tests outside of the library (can be used
1076                           together with normal builds of the library)
1077   --enable-static-cxx     build executables which contain libstdc++ instead of
1078                           requiring suitable libstdc++.so to run
1079   --enable-maemo          enables some hacks which work around problems with
1080                           the Maemo 2.0 until at least 3.0 EDS-Dbus
1081   --disable-dependency-tracking  speeds up one-time build
1082   --enable-dependency-tracking   do not reject slow dependency extractors
1083 --enable-addressbook    enable access to Mac OS X address book (default off)
1084 --disable-ebook         disable access to Evolution addressbooks (default on
1085                           if available)
1086 --disable-ecal          disable access to Evolution calendars and tasks
1087                           (default on if available)
1088 --disable-file          disable file-based backend which stores items in
1089                           separate files in a fixed directory (default on)
1090 --enable-sqlite         enable access to PIM data stored in SQLite files
1091                           (experimental, default off)
1092   --enable-shared[=PKGS]
1093                           build shared libraries [default=yes]
1094   --enable-static[=PKGS]
1095                           build static libraries [default=yes]
1096   --enable-fast-install[=PKGS]
1097                           optimize for fast installation [default=yes]
1098   --disable-libtool-lock  avoid locking (might break parallel builds)
1099
1100 Optional Packages:
1101   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1102   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1103   --with-funambol=<base directory>
1104                           specifies location of Funambol client library
1105   --with-funambol=<base directory>
1106                           alias for --with-funambol
1107   --with-funambol-src=<base directory>
1108                           specifies location of the Funambol
1109                           '3x/client-api/native' source code
1110   --with-sync4j-src=<base directory>
1111                           alias for --with-funambol-src
1112   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1113   --with-pic              try to use only PIC/non-PIC objects [default=use
1114                           both]
1115   --with-tags[=TAGS]
1116                           include additional configurations [automatic]
1117
1118 Some influential environment variables:
1119   CC          C compiler command
1120   CFLAGS      C compiler flags
1121   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1122               nonstandard directory <lib dir>
1123   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1124               headers in a nonstandard directory <include dir>
1125   CPP         C preprocessor
1126   PKG_CONFIG  path to pkg-config utility
1127   EPACKAGE_CFLAGS
1128               C compiler flags for EPACKAGE, overriding pkg-config
1129   EPACKAGE_LIBS
1130               linker flags for EPACKAGE, overriding pkg-config
1131   ECAL_CFLAGS C compiler flags for ECAL, overriding pkg-config
1132   ECAL_LIBS   linker flags for ECAL, overriding pkg-config
1133   EBOOK_CFLAGS
1134               C compiler flags for EBOOK, overriding pkg-config
1135   EBOOK_LIBS  linker flags for EBOOK, overriding pkg-config
1136   SQLITE_CFLAGS
1137               C compiler flags for SQLITE, overriding pkg-config
1138   SQLITE_LIBS linker flags for SQLITE, overriding pkg-config
1139   GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1140   GLIB_LIBS   linker flags for GLIB, overriding pkg-config
1141   CXX         C++ compiler command
1142   CXXFLAGS    C++ compiler flags
1143   CXXCPP      C++ preprocessor
1144   F77         Fortran 77 compiler command
1145   FFLAGS      Fortran 77 compiler flags
1146
1147 Use these variables to override the choices made by `configure' or to help
1148 it to find libraries and programs with nonstandard names/locations.
1149
1150 _ACEOF
1151 fi
1152
1153 if test "$ac_init_help" = "recursive"; then
1154   # If there are subdirs, report their specific --help.
1155   ac_popdir=`pwd`
1156   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1157     test -d $ac_dir || continue
1158     ac_builddir=.
1159
1160 if test "$ac_dir" != .; then
1161   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1162   # A "../" for each directory in $ac_dir_suffix.
1163   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1164 else
1165   ac_dir_suffix= ac_top_builddir=
1166 fi
1167
1168 case $srcdir in
1169   .)  # No --srcdir option.  We are building in place.
1170     ac_srcdir=.
1171     if test -z "$ac_top_builddir"; then
1172        ac_top_srcdir=.
1173     else
1174        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1175     fi ;;
1176   [\\/]* | ?:[\\/]* )  # Absolute path.
1177     ac_srcdir=$srcdir$ac_dir_suffix;
1178     ac_top_srcdir=$srcdir ;;
1179   *) # Relative path.
1180     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1181     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1182 esac
1183
1184 # Do not use `cd foo && pwd` to compute absolute paths, because
1185 # the directories may not exist.
1186 case `pwd` in
1187 .) ac_abs_builddir="$ac_dir";;
1188 *)
1189   case "$ac_dir" in
1190   .) ac_abs_builddir=`pwd`;;
1191   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1192   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1193   esac;;
1194 esac
1195 case $ac_abs_builddir in
1196 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1197 *)
1198   case ${ac_top_builddir}. in
1199   .) ac_abs_top_builddir=$ac_abs_builddir;;
1200   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1201   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1202   esac;;
1203 esac
1204 case $ac_abs_builddir in
1205 .) ac_abs_srcdir=$ac_srcdir;;
1206 *)
1207   case $ac_srcdir in
1208   .) ac_abs_srcdir=$ac_abs_builddir;;
1209   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1210   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1211   esac;;
1212 esac
1213 case $ac_abs_builddir in
1214 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1215 *)
1216   case $ac_top_srcdir in
1217   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1218   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1219   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1220   esac;;
1221 esac
1222
1223     cd $ac_dir
1224     # Check for guested configure; otherwise get Cygnus style configure.
1225     if test -f $ac_srcdir/configure.gnu; then
1226       echo
1227       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1228     elif test -f $ac_srcdir/configure; then
1229       echo
1230       $SHELL $ac_srcdir/configure  --help=recursive
1231     elif test -f $ac_srcdir/configure.ac ||
1232            test -f $ac_srcdir/configure.in; then
1233       echo
1234       $ac_configure --help
1235     else
1236       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1237     fi
1238     cd $ac_popdir
1239   done
1240 fi
1241
1242 test -n "$ac_init_help" && exit 0
1243 if $ac_init_version; then
1244   cat <<\_ACEOF
1245
1246 Copyright (C) 2003 Free Software Foundation, Inc.
1247 This configure script is free software; the Free Software Foundation
1248 gives unlimited permission to copy, distribute and modify it.
1249 _ACEOF
1250   exit 0
1251 fi
1252 exec 5>config.log
1253 cat >&5 <<_ACEOF
1254 This file contains any messages produced by compilers while
1255 running configure, to aid debugging if configure makes a mistake.
1256
1257 It was created by $as_me, which was
1258 generated by GNU Autoconf 2.59.  Invocation command line was
1259
1260   $ $0 $@
1261
1262 _ACEOF
1263 {
1264 cat <<_ASUNAME
1265 ## --------- ##
1266 ## Platform. ##
1267 ## --------- ##
1268
1269 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1270 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1271 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1272 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1273 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1274
1275 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1276 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1277
1278 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1279 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1280 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1281 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1282 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1283 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1284 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1285
1286 _ASUNAME
1287
1288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1289 for as_dir in $PATH
1290 do
1291   IFS=$as_save_IFS
1292   test -z "$as_dir" && as_dir=.
1293   echo "PATH: $as_dir"
1294 done
1295
1296 } >&5
1297
1298 cat >&5 <<_ACEOF
1299
1300
1301 ## ----------- ##
1302 ## Core tests. ##
1303 ## ----------- ##
1304
1305 _ACEOF
1306
1307
1308 # Keep a trace of the command line.
1309 # Strip out --no-create and --no-recursion so they do not pile up.
1310 # Strip out --silent because we don't want to record it for future runs.
1311 # Also quote any args containing shell meta-characters.
1312 # Make two passes to allow for proper duplicate-argument suppression.
1313 ac_configure_args=
1314 ac_configure_args0=
1315 ac_configure_args1=
1316 ac_sep=
1317 ac_must_keep_next=false
1318 for ac_pass in 1 2
1319 do
1320   for ac_arg
1321   do
1322     case $ac_arg in
1323     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1324     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1325     | -silent | --silent | --silen | --sile | --sil)
1326       continue ;;
1327     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1328       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1329     esac
1330     case $ac_pass in
1331     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1332     2)
1333       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1334       if test $ac_must_keep_next = true; then
1335         ac_must_keep_next=false # Got value, back to normal.
1336       else
1337         case $ac_arg in
1338           *=* | --config-cache | -C | -disable-* | --disable-* \
1339           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1340           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1341           | -with-* | --with-* | -without-* | --without-* | --x)
1342             case "$ac_configure_args0 " in
1343               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1344             esac
1345             ;;
1346           -* ) ac_must_keep_next=true ;;
1347         esac
1348       fi
1349       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1350       # Get rid of the leading space.
1351       ac_sep=" "
1352       ;;
1353     esac
1354   done
1355 done
1356 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1357 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1358
1359 # When interrupted or exit'd, cleanup temporary files, and complete
1360 # config.log.  We remove comments because anyway the quotes in there
1361 # would cause problems or look ugly.
1362 # WARNING: Be sure not to use single quotes in there, as some shells,
1363 # such as our DU 5.0 friend, will then `close' the trap.
1364 trap 'exit_status=$?
1365   # Save into config.log some information that might help in debugging.
1366   {
1367     echo
1368
1369     cat <<\_ASBOX
1370 ## ---------------- ##
1371 ## Cache variables. ##
1372 ## ---------------- ##
1373 _ASBOX
1374     echo
1375     # The following way of writing the cache mishandles newlines in values,
1376 {
1377   (set) 2>&1 |
1378     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1379     *ac_space=\ *)
1380       sed -n \
1381         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1382           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1383       ;;
1384     *)
1385       sed -n \
1386         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1387       ;;
1388     esac;
1389 }
1390     echo
1391
1392     cat <<\_ASBOX
1393 ## ----------------- ##
1394 ## Output variables. ##
1395 ## ----------------- ##
1396 _ASBOX
1397     echo
1398     for ac_var in $ac_subst_vars
1399     do
1400       eval ac_val=$`echo $ac_var`
1401       echo "$ac_var='"'"'$ac_val'"'"'"
1402     done | sort
1403     echo
1404
1405     if test -n "$ac_subst_files"; then
1406       cat <<\_ASBOX
1407 ## ------------- ##
1408 ## Output files. ##
1409 ## ------------- ##
1410 _ASBOX
1411       echo
1412       for ac_var in $ac_subst_files
1413       do
1414         eval ac_val=$`echo $ac_var`
1415         echo "$ac_var='"'"'$ac_val'"'"'"
1416       done | sort
1417       echo
1418     fi
1419
1420     if test -s confdefs.h; then
1421       cat <<\_ASBOX
1422 ## ----------- ##
1423 ## confdefs.h. ##
1424 ## ----------- ##
1425 _ASBOX
1426       echo
1427       sed "/^$/d" confdefs.h | sort
1428       echo
1429     fi
1430     test "$ac_signal" != 0 &&
1431       echo "$as_me: caught signal $ac_signal"
1432     echo "$as_me: exit $exit_status"
1433   } >&5
1434   rm -f core *.core &&
1435   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1436     exit $exit_status
1437      ' 0
1438 for ac_signal in 1 2 13 15; do
1439   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1440 done
1441 ac_signal=0
1442
1443 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1444 rm -rf conftest* confdefs.h
1445 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1446 echo >confdefs.h
1447
1448 # Predefined preprocessor variables.
1449
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_NAME "$PACKAGE_NAME"
1452 _ACEOF
1453
1454
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1457 _ACEOF
1458
1459
1460 cat >>confdefs.h <<_ACEOF
1461 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1462 _ACEOF
1463
1464
1465 cat >>confdefs.h <<_ACEOF
1466 #define PACKAGE_STRING "$PACKAGE_STRING"
1467 _ACEOF
1468
1469
1470 cat >>confdefs.h <<_ACEOF
1471 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1472 _ACEOF
1473
1474
1475 # Let the site file select an alternate cache file if it wants to.
1476 # Prefer explicitly selected file to automatically selected ones.
1477 if test -z "$CONFIG_SITE"; then
1478   if test "x$prefix" != xNONE; then
1479     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1480   else
1481     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1482   fi
1483 fi
1484 for ac_site_file in $CONFIG_SITE; do
1485   if test -r "$ac_site_file"; then
1486     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1487 echo "$as_me: loading site script $ac_site_file" >&6;}
1488     sed 's/^/| /' "$ac_site_file" >&5
1489     . "$ac_site_file"
1490   fi
1491 done
1492
1493 if test -r "$cache_file"; then
1494   # Some versions of bash will fail to source /dev/null (special
1495   # files actually), so we avoid doing that.
1496   if test -f "$cache_file"; then
1497     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1498 echo "$as_me: loading cache $cache_file" >&6;}
1499     case $cache_file in
1500       [\\/]* | ?:[\\/]* ) . $cache_file;;
1501       *)                      . ./$cache_file;;
1502     esac
1503   fi
1504 else
1505   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1506 echo "$as_me: creating cache $cache_file" >&6;}
1507   >$cache_file
1508 fi
1509
1510 # Check that the precious variables saved in the cache have kept the same
1511 # value.
1512 ac_cache_corrupted=false
1513 for ac_var in `(set) 2>&1 |
1514                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1515   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1516   eval ac_new_set=\$ac_env_${ac_var}_set
1517   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1518   eval ac_new_val="\$ac_env_${ac_var}_value"
1519   case $ac_old_set,$ac_new_set in
1520     set,)
1521       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1522 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1523       ac_cache_corrupted=: ;;
1524     ,set)
1525       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1526 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1527       ac_cache_corrupted=: ;;
1528     ,);;
1529     *)
1530       if test "x$ac_old_val" != "x$ac_new_val"; then
1531         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1532 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1533         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1534 echo "$as_me:   former value:  $ac_old_val" >&2;}
1535         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1536 echo "$as_me:   current value: $ac_new_val" >&2;}
1537         ac_cache_corrupted=:
1538       fi;;
1539   esac
1540   # Pass precious variables to config.status.
1541   if test "$ac_new_set" = set; then
1542     case $ac_new_val in
1543     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1544       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1545     *) ac_arg=$ac_var=$ac_new_val ;;
1546     esac
1547     case " $ac_configure_args " in
1548       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1549       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1550     esac
1551   fi
1552 done
1553 if $ac_cache_corrupted; then
1554   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1555 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1556   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1557 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1558    { (exit 1); exit 1; }; }
1559 fi
1560
1561 ac_ext=c
1562 ac_cpp='$CPP $CPPFLAGS'
1563 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1564 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1565 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585 am__api_version="1.9"
1586 ac_aux_dir=
1587 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1588   if test -f $ac_dir/install-sh; then
1589     ac_aux_dir=$ac_dir
1590     ac_install_sh="$ac_aux_dir/install-sh -c"
1591     break
1592   elif test -f $ac_dir/install.sh; then
1593     ac_aux_dir=$ac_dir
1594     ac_install_sh="$ac_aux_dir/install.sh -c"
1595     break
1596   elif test -f $ac_dir/shtool; then
1597     ac_aux_dir=$ac_dir
1598     ac_install_sh="$ac_aux_dir/shtool install -c"
1599     break
1600   fi
1601 done
1602 if test -z "$ac_aux_dir"; then
1603   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1604 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1605    { (exit 1); exit 1; }; }
1606 fi
1607 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1608 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1609 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1610
1611 # Find a good install program.  We prefer a C program (faster),
1612 # so one script is as good as another.  But avoid the broken or
1613 # incompatible versions:
1614 # SysV /etc/install, /usr/sbin/install
1615 # SunOS /usr/etc/install
1616 # IRIX /sbin/install
1617 # AIX /bin/install
1618 # AmigaOS /C/install, which installs bootblocks on floppy discs
1619 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1620 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1621 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1622 # OS/2's system install, which has a completely different semantic
1623 # ./install, which can be erroneously created by make from ./install.sh.
1624 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1625 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1626 if test -z "$INSTALL"; then
1627 if test "${ac_cv_path_install+set}" = set; then
1628   echo $ECHO_N "(cached) $ECHO_C" >&6
1629 else
1630   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1631 for as_dir in $PATH
1632 do
1633   IFS=$as_save_IFS
1634   test -z "$as_dir" && as_dir=.
1635   # Account for people who put trailing slashes in PATH elements.
1636 case $as_dir/ in
1637   ./ | .// | /cC/* | \
1638   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1639   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1640   /usr/ucb/* ) ;;
1641   *)
1642     # OSF1 and SCO ODT 3.0 have their own names for install.
1643     # Don't use installbsd from OSF since it installs stuff as root
1644     # by default.
1645     for ac_prog in ginstall scoinst install; do
1646       for ac_exec_ext in '' $ac_executable_extensions; do
1647         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1648           if test $ac_prog = install &&
1649             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1650             # AIX install.  It has an incompatible calling convention.
1651             :
1652           elif test $ac_prog = install &&
1653             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1654             # program-specific install script used by HP pwplus--don't use.
1655             :
1656           else
1657             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1658             break 3
1659           fi
1660         fi
1661       done
1662     done
1663     ;;
1664 esac
1665 done
1666
1667
1668 fi
1669   if test "${ac_cv_path_install+set}" = set; then
1670     INSTALL=$ac_cv_path_install
1671   else
1672     # As a last resort, use the slow shell script.  We don't cache a
1673     # path for INSTALL within a source directory, because that will
1674     # break other packages using the cache if that directory is
1675     # removed, or if the path is relative.
1676     INSTALL=$ac_install_sh
1677   fi
1678 fi
1679 echo "$as_me:$LINENO: result: $INSTALL" >&5
1680 echo "${ECHO_T}$INSTALL" >&6
1681
1682 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1683 # It thinks the first close brace ends the variable substitution.
1684 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1685
1686 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1687
1688 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1689
1690 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1691 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1692 # Just in case
1693 sleep 1
1694 echo timestamp > conftest.file
1695 # Do `set' in a subshell so we don't clobber the current shell's
1696 # arguments.  Must try -L first in case configure is actually a
1697 # symlink; some systems play weird games with the mod time of symlinks
1698 # (eg FreeBSD returns the mod time of the symlink's containing
1699 # directory).
1700 if (
1701    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1702    if test "$*" = "X"; then
1703       # -L didn't work.
1704       set X `ls -t $srcdir/configure conftest.file`
1705    fi
1706    rm -f conftest.file
1707    if test "$*" != "X $srcdir/configure conftest.file" \
1708       && test "$*" != "X conftest.file $srcdir/configure"; then
1709
1710       # If neither matched, then we have a broken ls.  This can happen
1711       # if, for instance, CONFIG_SHELL is bash and it inherits a
1712       # broken ls alias from the environment.  This has actually
1713       # happened.  Such a system could not be considered "sane".
1714       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1715 alias in your environment" >&5
1716 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1717 alias in your environment" >&2;}
1718    { (exit 1); exit 1; }; }
1719    fi
1720
1721    test "$2" = conftest.file
1722    )
1723 then
1724    # Ok.
1725    :
1726 else
1727    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1728 Check your system clock" >&5
1729 echo "$as_me: error: newly created file is older than distributed files!
1730 Check your system clock" >&2;}
1731    { (exit 1); exit 1; }; }
1732 fi
1733 echo "$as_me:$LINENO: result: yes" >&5
1734 echo "${ECHO_T}yes" >&6
1735 test "$program_prefix" != NONE &&
1736   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1737 # Use a double $ so make ignores it.
1738 test "$program_suffix" != NONE &&
1739   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1740 # Double any \ or $.  echo might interpret backslashes.
1741 # By default was `s,x,x', remove it if useless.
1742 cat <<\_ACEOF >conftest.sed
1743 s/[\\$]/&&/g;s/;s,x,x,$//
1744 _ACEOF
1745 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1746 rm conftest.sed
1747
1748 # expand $ac_aux_dir to an absolute path
1749 am_aux_dir=`cd $ac_aux_dir && pwd`
1750
1751 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1752 # Use eval to expand $SHELL
1753 if eval "$MISSING --run true"; then
1754   am_missing_run="$MISSING --run "
1755 else
1756   am_missing_run=
1757   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1758 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1759 fi
1760
1761 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1762   # We used to keeping the `.' as first argument, in order to
1763   # allow $(mkdir_p) to be used without argument.  As in
1764   #   $(mkdir_p) $(somedir)
1765   # where $(somedir) is conditionally defined.  However this is wrong
1766   # for two reasons:
1767   #  1. if the package is installed by a user who cannot write `.'
1768   #     make install will fail,
1769   #  2. the above comment should most certainly read
1770   #     $(mkdir_p) $(DESTDIR)$(somedir)
1771   #     so it does not work when $(somedir) is undefined and
1772   #     $(DESTDIR) is not.
1773   #  To support the latter case, we have to write
1774   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1775   #  so the `.' trick is pointless.
1776   mkdir_p='mkdir -p --'
1777 else
1778   # On NextStep and OpenStep, the `mkdir' command does not
1779   # recognize any option.  It will interpret all options as
1780   # directories to create, and then abort because `.' already
1781   # exists.
1782   for d in ./-p ./--version;
1783   do
1784     test -d $d && rmdir $d
1785   done
1786   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1787   if test -f "$ac_aux_dir/mkinstalldirs"; then
1788     mkdir_p='$(mkinstalldirs)'
1789   else
1790     mkdir_p='$(install_sh) -d'
1791   fi
1792 fi
1793
1794 for ac_prog in gawk mawk nawk awk
1795 do
1796   # Extract the first word of "$ac_prog", so it can be a program name with args.
1797 set dummy $ac_prog; ac_word=$2
1798 echo "$as_me:$LINENO: checking for $ac_word" >&5
1799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1800 if test "${ac_cv_prog_AWK+set}" = set; then
1801   echo $ECHO_N "(cached) $ECHO_C" >&6
1802 else
1803   if test -n "$AWK"; then
1804   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1805 else
1806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1807 for as_dir in $PATH
1808 do
1809   IFS=$as_save_IFS
1810   test -z "$as_dir" && as_dir=.
1811   for ac_exec_ext in '' $ac_executable_extensions; do
1812   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1813     ac_cv_prog_AWK="$ac_prog"
1814     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1815     break 2
1816   fi
1817 done
1818 done
1819
1820 fi
1821 fi
1822 AWK=$ac_cv_prog_AWK
1823 if test -n "$AWK"; then
1824   echo "$as_me:$LINENO: result: $AWK" >&5
1825 echo "${ECHO_T}$AWK" >&6
1826 else
1827   echo "$as_me:$LINENO: result: no" >&5
1828 echo "${ECHO_T}no" >&6
1829 fi
1830
1831   test -n "$AWK" && break
1832 done
1833
1834 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1835 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1836 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1837 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1838   echo $ECHO_N "(cached) $ECHO_C" >&6
1839 else
1840   cat >conftest.make <<\_ACEOF
1841 all:
1842         @echo 'ac_maketemp="$(MAKE)"'
1843 _ACEOF
1844 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1845 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1846 if test -n "$ac_maketemp"; then
1847   eval ac_cv_prog_make_${ac_make}_set=yes
1848 else
1849   eval ac_cv_prog_make_${ac_make}_set=no
1850 fi
1851 rm -f conftest.make
1852 fi
1853 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1854   echo "$as_me:$LINENO: result: yes" >&5
1855 echo "${ECHO_T}yes" >&6
1856   SET_MAKE=
1857 else
1858   echo "$as_me:$LINENO: result: no" >&5
1859 echo "${ECHO_T}no" >&6
1860   SET_MAKE="MAKE=${MAKE-make}"
1861 fi
1862
1863 rm -rf .tst 2>/dev/null
1864 mkdir .tst 2>/dev/null
1865 if test -d .tst; then
1866   am__leading_dot=.
1867 else
1868   am__leading_dot=_
1869 fi
1870 rmdir .tst 2>/dev/null
1871
1872 # test to see if srcdir already configured
1873 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1874    test -f $srcdir/config.status; then
1875   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1876 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1877    { (exit 1); exit 1; }; }
1878 fi
1879
1880 # test whether we have cygpath
1881 if test -z "$CYGPATH_W"; then
1882   if (cygpath --version) >/dev/null 2>/dev/null; then
1883     CYGPATH_W='cygpath -w'
1884   else
1885     CYGPATH_W=echo
1886   fi
1887 fi
1888
1889
1890 # Define the identity of the package.
1891  PACKAGE=syncevolution
1892  VERSION=0.8-beta3
1893
1894
1895 cat >>confdefs.h <<_ACEOF
1896 #define PACKAGE "$PACKAGE"
1897 _ACEOF
1898
1899
1900 cat >>confdefs.h <<_ACEOF
1901 #define VERSION "$VERSION"
1902 _ACEOF
1903
1904 # Some tools Automake needs.
1905
1906 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1907
1908
1909 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1910
1911
1912 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1913
1914
1915 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1916
1917
1918 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1919
1920 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1921
1922 # Installed binaries are usually stripped using `strip' when the user
1923 # run `make install-strip'.  However `strip' might not be the right
1924 # tool to use in cross-compilation environments, therefore Automake
1925 # will honor the `STRIP' environment variable to overrule this program.
1926 if test "$cross_compiling" != no; then
1927   if test -n "$ac_tool_prefix"; then
1928   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1929 set dummy ${ac_tool_prefix}strip; ac_word=$2
1930 echo "$as_me:$LINENO: checking for $ac_word" >&5
1931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1932 if test "${ac_cv_prog_STRIP+set}" = set; then
1933   echo $ECHO_N "(cached) $ECHO_C" >&6
1934 else
1935   if test -n "$STRIP"; then
1936   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1937 else
1938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1939 for as_dir in $PATH
1940 do
1941   IFS=$as_save_IFS
1942   test -z "$as_dir" && as_dir=.
1943   for ac_exec_ext in '' $ac_executable_extensions; do
1944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1945     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1947     break 2
1948   fi
1949 done
1950 done
1951
1952 fi
1953 fi
1954 STRIP=$ac_cv_prog_STRIP
1955 if test -n "$STRIP"; then
1956   echo "$as_me:$LINENO: result: $STRIP" >&5
1957 echo "${ECHO_T}$STRIP" >&6
1958 else
1959   echo "$as_me:$LINENO: result: no" >&5
1960 echo "${ECHO_T}no" >&6
1961 fi
1962
1963 fi
1964 if test -z "$ac_cv_prog_STRIP"; then
1965   ac_ct_STRIP=$STRIP
1966   # Extract the first word of "strip", so it can be a program name with args.
1967 set dummy strip; ac_word=$2
1968 echo "$as_me:$LINENO: checking for $ac_word" >&5
1969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1970 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1971   echo $ECHO_N "(cached) $ECHO_C" >&6
1972 else
1973   if test -n "$ac_ct_STRIP"; then
1974   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1975 else
1976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977 for as_dir in $PATH
1978 do
1979   IFS=$as_save_IFS
1980   test -z "$as_dir" && as_dir=.
1981   for ac_exec_ext in '' $ac_executable_extensions; do
1982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1983     ac_cv_prog_ac_ct_STRIP="strip"
1984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1985     break 2
1986   fi
1987 done
1988 done
1989
1990   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1991 fi
1992 fi
1993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1994 if test -n "$ac_ct_STRIP"; then
1995   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1996 echo "${ECHO_T}$ac_ct_STRIP" >&6
1997 else
1998   echo "$as_me:$LINENO: result: no" >&5
1999 echo "${ECHO_T}no" >&6
2000 fi
2001
2002   STRIP=$ac_ct_STRIP
2003 else
2004   STRIP="$ac_cv_prog_STRIP"
2005 fi
2006
2007 fi
2008 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2009
2010 # We need awk for the "check" target.  The system "awk" is bad on
2011 # some platforms.
2012 # Always define AMTAR for backward compatibility.
2013
2014 AMTAR=${AMTAR-"${am_missing_run}tar"}
2015
2016 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2017
2018
2019
2020
2021
2022           ac_config_headers="$ac_config_headers config.h"
2023
2024
2025
2026
2027 DEVICE_TYPE=desktop
2028
2029 # command used to configure client library, including options
2030 CLIENT_CONFIGURE=$PWD/src/client-api/build/autotools/configure
2031
2032
2033 # Check whether --with-funambol or --without-funambol was given.
2034 if test "${with_funambol+set}" = set; then
2035   withval="$with_funambol"
2036   FUNAMBOL="$withval"
2037 fi;
2038
2039
2040 # Check whether --with-sync4j or --without-sync4j was given.
2041 if test "${with_sync4j+set}" = set; then
2042   withval="$with_sync4j"
2043   FUNAMBOL="$withval"
2044 fi;
2045
2046
2047 # Check whether --with-funambol-src or --without-funambol-src was given.
2048 if test "${with_funambol_src+set}" = set; then
2049   withval="$with_funambol_src"
2050   FUNAMBOLSRC="$withval"
2051 fi;
2052
2053
2054 # Check whether --with-sync4j-src or --without-sync4j-src was given.
2055 if test "${with_sync4j_src+set}" = set; then
2056   withval="$with_sync4j_src"
2057   FUNAMBOLSRC="$withval"
2058 fi;
2059
2060 # Check whether --enable-shared or --disable-shared was given.
2061 if test "${enable_shared+set}" = set; then
2062   enableval="$enable_shared"
2063   enable_shared="$enableval"
2064 else
2065   enable_shared="no"
2066 fi;
2067
2068 # Check whether --enable-static or --disable-static was given.
2069 if test "${enable_static+set}" = set; then
2070   enableval="$enable_static"
2071   enable_static="$enableval"
2072 else
2073   enable_static="no"
2074 fi;
2075
2076 # Check whether --enable-unit-tests or --disable-unit-tests was given.
2077 if test "${enable_unit_tests+set}" = set; then
2078   enableval="$enable_unit_tests"
2079   enable_unit_tests="$enableval"
2080 else
2081   enable_unit_tests="no"
2082 fi;
2083 # Check whether --enable-integration-tests or --disable-integration-tests was given.
2084 if test "${enable_integration_tests+set}" = set; then
2085   enableval="$enable_integration_tests"
2086   enable_integration_tests="$enableval"
2087 else
2088   enable_integration_tests="no"
2089 fi;
2090
2091 # Check whether --enable-static-cxx or --disable-static-cxx was given.
2092 if test "${enable_static_cxx+set}" = set; then
2093   enableval="$enable_static_cxx"
2094   enable_static_cxx="$enableval"
2095 else
2096   enable_static_cxx="no"
2097 fi;
2098
2099 # Maemo hacks:
2100 # - set the (non-standard!) DBUS_DEFAULT_TIMEOUT
2101 # - wrap e_book_from_string() to fix invalid parameter
2102 # - don't use UTF-8 encoding in Perl script
2103 # Check whether --enable-maemo or --disable-maemo was given.
2104 if test "${enable_maemo+set}" = set; then
2105   enableval="$enable_maemo"
2106
2107 cat >>confdefs.h <<\_ACEOF
2108 #define ENABLE_MAEMO 1
2109 _ACEOF
2110
2111                DEVICE_TYPE=Maemo
2112                MODIFY_SYNCCOMPARE='-e "s/use encoding/#use encoding/;" -e "s/:utf8//;"'
2113 fi;
2114
2115
2116 DEPDIR="${am__leading_dot}deps"
2117
2118           ac_config_commands="$ac_config_commands depfiles"
2119
2120
2121 am_make=${MAKE-make}
2122 cat > confinc << 'END'
2123 am__doit:
2124         @echo done
2125 .PHONY: am__doit
2126 END
2127 # If we don't find an include directive, just comment out the code.
2128 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2129 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2130 am__include="#"
2131 am__quote=
2132 _am_result=none
2133 # First try GNU make style include.
2134 echo "include confinc" > confmf
2135 # We grep out `Entering directory' and `Leaving directory'
2136 # messages which can occur if `w' ends up in MAKEFLAGS.
2137 # In particular we don't look at `^make:' because GNU make might
2138 # be invoked under some other name (usually "gmake"), in which
2139 # case it prints its new name instead of `make'.
2140 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2141    am__include=include
2142    am__quote=
2143    _am_result=GNU
2144 fi
2145 # Now try BSD make style include.
2146 if test "$am__include" = "#"; then
2147    echo '.include "confinc"' > confmf
2148    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2149       am__include=.include
2150       am__quote="\""
2151       _am_result=BSD
2152    fi
2153 fi
2154
2155
2156 echo "$as_me:$LINENO: result: $_am_result" >&5
2157 echo "${ECHO_T}$_am_result" >&6
2158 rm -f confinc confmf
2159
2160 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2161 if test "${enable_dependency_tracking+set}" = set; then
2162   enableval="$enable_dependency_tracking"
2163
2164 fi;
2165 if test "x$enable_dependency_tracking" != xno; then
2166   am_depcomp="$ac_aux_dir/depcomp"
2167   AMDEPBACKSLASH='\'
2168 fi
2169
2170
2171 if test "x$enable_dependency_tracking" != xno; then
2172   AMDEP_TRUE=
2173   AMDEP_FALSE='#'
2174 else
2175   AMDEP_TRUE='#'
2176   AMDEP_FALSE=
2177 fi
2178
2179
2180
2181 ac_ext=c
2182 ac_cpp='$CPP $CPPFLAGS'
2183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2186 if test -n "$ac_tool_prefix"; then
2187   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2188 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2189 echo "$as_me:$LINENO: checking for $ac_word" >&5
2190 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2191 if test "${ac_cv_prog_CC+set}" = set; then
2192   echo $ECHO_N "(cached) $ECHO_C" >&6
2193 else
2194   if test -n "$CC"; then
2195   ac_cv_prog_CC="$CC" # Let the user override the test.
2196 else
2197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2198 for as_dir in $PATH
2199 do
2200   IFS=$as_save_IFS
2201   test -z "$as_dir" && as_dir=.
2202   for ac_exec_ext in '' $ac_executable_extensions; do
2203   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2204     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2205     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2206     break 2
2207   fi
2208 done
2209 done
2210
2211 fi
2212 fi
2213 CC=$ac_cv_prog_CC
2214 if test -n "$CC"; then
2215   echo "$as_me:$LINENO: result: $CC" >&5
2216 echo "${ECHO_T}$CC" >&6
2217 else
2218   echo "$as_me:$LINENO: result: no" >&5
2219 echo "${ECHO_T}no" >&6
2220 fi
2221
2222 fi
2223 if test -z "$ac_cv_prog_CC"; then
2224   ac_ct_CC=$CC
2225   # Extract the first word of "gcc", so it can be a program name with args.
2226 set dummy gcc; ac_word=$2
2227 echo "$as_me:$LINENO: checking for $ac_word" >&5
2228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2229 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2230   echo $ECHO_N "(cached) $ECHO_C" >&6
2231 else
2232   if test -n "$ac_ct_CC"; then
2233   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2234 else
2235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2236 for as_dir in $PATH
2237 do
2238   IFS=$as_save_IFS
2239   test -z "$as_dir" && as_dir=.
2240   for ac_exec_ext in '' $ac_executable_extensions; do
2241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2242     ac_cv_prog_ac_ct_CC="gcc"
2243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2244     break 2
2245   fi
2246 done
2247 done
2248
2249 fi
2250 fi
2251 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2252 if test -n "$ac_ct_CC"; then
2253   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2254 echo "${ECHO_T}$ac_ct_CC" >&6
2255 else
2256   echo "$as_me:$LINENO: result: no" >&5
2257 echo "${ECHO_T}no" >&6
2258 fi
2259
2260   CC=$ac_ct_CC
2261 else
2262   CC="$ac_cv_prog_CC"
2263 fi
2264
2265 if test -z "$CC"; then
2266   if test -n "$ac_tool_prefix"; then
2267   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2268 set dummy ${ac_tool_prefix}cc; ac_word=$2
2269 echo "$as_me:$LINENO: checking for $ac_word" >&5
2270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2271 if test "${ac_cv_prog_CC+set}" = set; then
2272   echo $ECHO_N "(cached) $ECHO_C" >&6
2273 else
2274   if test -n "$CC"; then
2275   ac_cv_prog_CC="$CC" # Let the user override the test.
2276 else
2277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2278 for as_dir in $PATH
2279 do
2280   IFS=$as_save_IFS
2281   test -z "$as_dir" && as_dir=.
2282   for ac_exec_ext in '' $ac_executable_extensions; do
2283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2284     ac_cv_prog_CC="${ac_tool_prefix}cc"
2285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2286     break 2
2287   fi
2288 done
2289 done
2290
2291 fi
2292 fi
2293 CC=$ac_cv_prog_CC
2294 if test -n "$CC"; then
2295   echo "$as_me:$LINENO: result: $CC" >&5
2296 echo "${ECHO_T}$CC" >&6
2297 else
2298   echo "$as_me:$LINENO: result: no" >&5
2299 echo "${ECHO_T}no" >&6
2300 fi
2301
2302 fi
2303 if test -z "$ac_cv_prog_CC"; then
2304   ac_ct_CC=$CC
2305   # Extract the first word of "cc", so it can be a program name with args.
2306 set dummy cc; ac_word=$2
2307 echo "$as_me:$LINENO: checking for $ac_word" >&5
2308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2309 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2310   echo $ECHO_N "(cached) $ECHO_C" >&6
2311 else
2312   if test -n "$ac_ct_CC"; then
2313   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2314 else
2315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2316 for as_dir in $PATH
2317 do
2318   IFS=$as_save_IFS
2319   test -z "$as_dir" && as_dir=.
2320   for ac_exec_ext in '' $ac_executable_extensions; do
2321   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2322     ac_cv_prog_ac_ct_CC="cc"
2323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2324     break 2
2325   fi
2326 done
2327 done
2328
2329 fi
2330 fi
2331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2332 if test -n "$ac_ct_CC"; then
2333   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2334 echo "${ECHO_T}$ac_ct_CC" >&6
2335 else
2336   echo "$as_me:$LINENO: result: no" >&5
2337 echo "${ECHO_T}no" >&6
2338 fi
2339
2340   CC=$ac_ct_CC
2341 else
2342   CC="$ac_cv_prog_CC"
2343 fi
2344
2345 fi
2346 if test -z "$CC"; then
2347   # Extract the first word of "cc", so it can be a program name with args.
2348 set dummy cc; ac_word=$2
2349 echo "$as_me:$LINENO: checking for $ac_word" >&5
2350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2351 if test "${ac_cv_prog_CC+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   if test -n "$CC"; then
2355   ac_cv_prog_CC="$CC" # Let the user override the test.
2356 else
2357   ac_prog_rejected=no
2358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2359 for as_dir in $PATH
2360 do
2361   IFS=$as_save_IFS
2362   test -z "$as_dir" && as_dir=.
2363   for ac_exec_ext in '' $ac_executable_extensions; do
2364   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2365     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2366        ac_prog_rejected=yes
2367        continue
2368      fi
2369     ac_cv_prog_CC="cc"
2370     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2371     break 2
2372   fi
2373 done
2374 done
2375
2376 if test $ac_prog_rejected = yes; then
2377   # We found a bogon in the path, so make sure we never use it.
2378   set dummy $ac_cv_prog_CC
2379   shift
2380   if test $# != 0; then
2381     # We chose a different compiler from the bogus one.
2382     # However, it has the same basename, so the bogon will be chosen
2383     # first if we set CC to just the basename; use the full file name.
2384     shift
2385     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2386   fi
2387 fi
2388 fi
2389 fi
2390 CC=$ac_cv_prog_CC
2391 if test -n "$CC"; then
2392   echo "$as_me:$LINENO: result: $CC" >&5
2393 echo "${ECHO_T}$CC" >&6
2394 else
2395   echo "$as_me:$LINENO: result: no" >&5
2396 echo "${ECHO_T}no" >&6
2397 fi
2398
2399 fi
2400 if test -z "$CC"; then
2401   if test -n "$ac_tool_prefix"; then
2402   for ac_prog in cl
2403   do
2404     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2405 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2406 echo "$as_me:$LINENO: checking for $ac_word" >&5
2407 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2408 if test "${ac_cv_prog_CC+set}" = set; then
2409   echo $ECHO_N "(cached) $ECHO_C" >&6
2410 else
2411   if test -n "$CC"; then
2412   ac_cv_prog_CC="$CC" # Let the user override the test.
2413 else
2414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2415 for as_dir in $PATH
2416 do
2417   IFS=$as_save_IFS
2418   test -z "$as_dir" && as_dir=.
2419   for ac_exec_ext in '' $ac_executable_extensions; do
2420   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2421     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2422     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423     break 2
2424   fi
2425 done
2426 done
2427
2428 fi
2429 fi
2430 CC=$ac_cv_prog_CC
2431 if test -n "$CC"; then
2432   echo "$as_me:$LINENO: result: $CC" >&5
2433 echo "${ECHO_T}$CC" >&6
2434 else
2435   echo "$as_me:$LINENO: result: no" >&5
2436 echo "${ECHO_T}no" >&6
2437 fi
2438
2439     test -n "$CC" && break
2440   done
2441 fi
2442 if test -z "$CC"; then
2443   ac_ct_CC=$CC
2444   for ac_prog in cl
2445 do
2446   # Extract the first word of "$ac_prog", so it can be a program name with args.
2447 set dummy $ac_prog; ac_word=$2
2448 echo "$as_me:$LINENO: checking for $ac_word" >&5
2449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2450 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2451   echo $ECHO_N "(cached) $ECHO_C" >&6
2452 else
2453   if test -n "$ac_ct_CC"; then
2454   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2455 else
2456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2457 for as_dir in $PATH
2458 do
2459   IFS=$as_save_IFS
2460   test -z "$as_dir" && as_dir=.
2461   for ac_exec_ext in '' $ac_executable_extensions; do
2462   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2463     ac_cv_prog_ac_ct_CC="$ac_prog"
2464     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2465     break 2
2466   fi
2467 done
2468 done
2469
2470 fi
2471 fi
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6
2476 else
2477   echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6
2479 fi
2480
2481   test -n "$ac_ct_CC" && break
2482 done
2483
2484   CC=$ac_ct_CC
2485 fi
2486
2487 fi
2488
2489
2490 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2491 See \`config.log' for more details." >&5
2492 echo "$as_me: error: no acceptable C compiler found in \$PATH
2493 See \`config.log' for more details." >&2;}
2494    { (exit 1); exit 1; }; }
2495
2496 # Provide some information about the compiler.
2497 echo "$as_me:$LINENO:" \
2498      "checking for C compiler version" >&5
2499 ac_compiler=`set X $ac_compile; echo $2`
2500 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2501   (eval $ac_compiler --version </dev/null >&5) 2>&5
2502   ac_status=$?
2503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2504   (exit $ac_status); }
2505 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2506   (eval $ac_compiler -v </dev/null >&5) 2>&5
2507   ac_status=$?
2508   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509   (exit $ac_status); }
2510 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2511   (eval $ac_compiler -V </dev/null >&5) 2>&5
2512   ac_status=$?
2513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514   (exit $ac_status); }
2515
2516 cat >conftest.$ac_ext <<_ACEOF
2517 /* confdefs.h.  */
2518 _ACEOF
2519 cat confdefs.h >>conftest.$ac_ext
2520 cat >>conftest.$ac_ext <<_ACEOF
2521 /* end confdefs.h.  */
2522
2523 int
2524 main ()
2525 {
2526
2527   ;
2528   return 0;
2529 }
2530 _ACEOF
2531 ac_clean_files_save=$ac_clean_files
2532 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2533 # Try to create an executable without -o first, disregard a.out.
2534 # It will help us diagnose broken compilers, and finding out an intuition
2535 # of exeext.
2536 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2537 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2538 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2539 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2540   (eval $ac_link_default) 2>&5
2541   ac_status=$?
2542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543   (exit $ac_status); }; then
2544   # Find the output, starting from the most likely.  This scheme is
2545 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2546 # resort.
2547
2548 # Be careful to initialize this variable, since it used to be cached.
2549 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2550 ac_cv_exeext=
2551 # b.out is created by i960 compilers.
2552 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2553 do
2554   test -f "$ac_file" || continue
2555   case $ac_file in
2556     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2557         ;;
2558     conftest.$ac_ext )
2559         # This is the source file.
2560         ;;
2561     [ab].out )
2562         # We found the default executable, but exeext='' is most
2563         # certainly right.
2564         break;;
2565     *.* )
2566         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2567         # FIXME: I believe we export ac_cv_exeext for Libtool,
2568         # but it would be cool to find out if it's true.  Does anybody
2569         # maintain Libtool? --akim.
2570         export ac_cv_exeext
2571         break;;
2572     * )
2573         break;;
2574   esac
2575 done
2576 else
2577   echo "$as_me: failed program was:" >&5
2578 sed 's/^/| /' conftest.$ac_ext >&5
2579
2580 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: C compiler cannot create executables
2583 See \`config.log' for more details." >&2;}
2584    { (exit 77); exit 77; }; }
2585 fi
2586
2587 ac_exeext=$ac_cv_exeext
2588 echo "$as_me:$LINENO: result: $ac_file" >&5
2589 echo "${ECHO_T}$ac_file" >&6
2590
2591 # Check the compiler produces executables we can run.  If not, either
2592 # the compiler is broken, or we cross compile.
2593 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2594 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2595 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2596 # If not cross compiling, check that we can run a simple program.
2597 if test "$cross_compiling" != yes; then
2598   if { ac_try='./$ac_file'
2599   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2600   (eval $ac_try) 2>&5
2601   ac_status=$?
2602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2603   (exit $ac_status); }; }; then
2604     cross_compiling=no
2605   else
2606     if test "$cross_compiling" = maybe; then
2607         cross_compiling=yes
2608     else
2609         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2610 If you meant to cross compile, use \`--host'.
2611 See \`config.log' for more details." >&5
2612 echo "$as_me: error: cannot run C compiled programs.
2613 If you meant to cross compile, use \`--host'.
2614 See \`config.log' for more details." >&2;}
2615    { (exit 1); exit 1; }; }
2616     fi
2617   fi
2618 fi
2619 echo "$as_me:$LINENO: result: yes" >&5
2620 echo "${ECHO_T}yes" >&6
2621
2622 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2623 ac_clean_files=$ac_clean_files_save
2624 # Check the compiler produces executables we can run.  If not, either
2625 # the compiler is broken, or we cross compile.
2626 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2627 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2628 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2629 echo "${ECHO_T}$cross_compiling" >&6
2630
2631 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2632 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2633 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2634   (eval $ac_link) 2>&5
2635   ac_status=$?
2636   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2637   (exit $ac_status); }; then
2638   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2639 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2640 # work properly (i.e., refer to `conftest.exe'), while it won't with
2641 # `rm'.
2642 for ac_file in conftest.exe conftest conftest.*; do
2643   test -f "$ac_file" || continue
2644   case $ac_file in
2645     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2646     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2647           export ac_cv_exeext
2648           break;;
2649     * ) break;;
2650   esac
2651 done
2652 else
2653   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2654 See \`config.log' for more details." >&5
2655 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2656 See \`config.log' for more details." >&2;}
2657    { (exit 1); exit 1; }; }
2658 fi
2659
2660 rm -f conftest$ac_cv_exeext
2661 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2662 echo "${ECHO_T}$ac_cv_exeext" >&6
2663
2664 rm -f conftest.$ac_ext
2665 EXEEXT=$ac_cv_exeext
2666 ac_exeext=$EXEEXT
2667 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2668 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2669 if test "${ac_cv_objext+set}" = set; then
2670   echo $ECHO_N "(cached) $ECHO_C" >&6
2671 else
2672   cat >conftest.$ac_ext <<_ACEOF
2673 /* confdefs.h.  */
2674 _ACEOF
2675 cat confdefs.h >>conftest.$ac_ext
2676 cat >>conftest.$ac_ext <<_ACEOF
2677 /* end confdefs.h.  */
2678
2679 int
2680 main ()
2681 {
2682
2683   ;
2684   return 0;
2685 }
2686 _ACEOF
2687 rm -f conftest.o conftest.obj
2688 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2689   (eval $ac_compile) 2>&5
2690   ac_status=$?
2691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692   (exit $ac_status); }; then
2693   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2694   case $ac_file in
2695     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2696     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2697        break;;
2698   esac
2699 done
2700 else
2701   echo "$as_me: failed program was:" >&5
2702 sed 's/^/| /' conftest.$ac_ext >&5
2703
2704 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2705 See \`config.log' for more details." >&5
2706 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2707 See \`config.log' for more details." >&2;}
2708    { (exit 1); exit 1; }; }
2709 fi
2710
2711 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2712 fi
2713 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2714 echo "${ECHO_T}$ac_cv_objext" >&6
2715 OBJEXT=$ac_cv_objext
2716 ac_objext=$OBJEXT
2717 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2718 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2719 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2720   echo $ECHO_N "(cached) $ECHO_C" >&6
2721 else
2722   cat >conftest.$ac_ext <<_ACEOF
2723 /* confdefs.h.  */
2724 _ACEOF
2725 cat confdefs.h >>conftest.$ac_ext
2726 cat >>conftest.$ac_ext <<_ACEOF
2727 /* end confdefs.h.  */
2728
2729 int
2730 main ()
2731 {
2732 #ifndef __GNUC__
2733        choke me
2734 #endif
2735
2736   ;
2737   return 0;
2738 }
2739 _ACEOF
2740 rm -f conftest.$ac_objext
2741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2742   (eval $ac_compile) 2>conftest.er1
2743   ac_status=$?
2744   grep -v '^ *+' conftest.er1 >conftest.err
2745   rm -f conftest.er1
2746   cat conftest.err >&5
2747   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748   (exit $ac_status); } &&
2749          { ac_try='test -z "$ac_c_werror_flag"
2750                          || test ! -s conftest.err'
2751   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2752   (eval $ac_try) 2>&5
2753   ac_status=$?
2754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2755   (exit $ac_status); }; } &&
2756          { ac_try='test -s conftest.$ac_objext'
2757   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2758   (eval $ac_try) 2>&5
2759   ac_status=$?
2760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2761   (exit $ac_status); }; }; then
2762   ac_compiler_gnu=yes
2763 else
2764   echo "$as_me: failed program was:" >&5
2765 sed 's/^/| /' conftest.$ac_ext >&5
2766
2767 ac_compiler_gnu=no
2768 fi
2769 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2770 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2771
2772 fi
2773 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2774 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2775 GCC=`test $ac_compiler_gnu = yes && echo yes`
2776 ac_test_CFLAGS=${CFLAGS+set}
2777 ac_save_CFLAGS=$CFLAGS
2778 CFLAGS="-g"
2779 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2780 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2781 if test "${ac_cv_prog_cc_g+set}" = set; then
2782   echo $ECHO_N "(cached) $ECHO_C" >&6
2783 else
2784   cat >conftest.$ac_ext <<_ACEOF
2785 /* confdefs.h.  */
2786 _ACEOF
2787 cat confdefs.h >>conftest.$ac_ext
2788 cat >>conftest.$ac_ext <<_ACEOF
2789 /* end confdefs.h.  */
2790
2791 int
2792 main ()
2793 {
2794
2795   ;
2796   return 0;
2797 }
2798 _ACEOF
2799 rm -f conftest.$ac_objext
2800 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2801   (eval $ac_compile) 2>conftest.er1
2802   ac_status=$?
2803   grep -v '^ *+' conftest.er1 >conftest.err
2804   rm -f conftest.er1
2805   cat conftest.err >&5
2806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807   (exit $ac_status); } &&
2808          { ac_try='test -z "$ac_c_werror_flag"
2809                          || test ! -s conftest.err'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; } &&
2815          { ac_try='test -s conftest.$ac_objext'
2816   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2817   (eval $ac_try) 2>&5
2818   ac_status=$?
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); }; }; then
2821   ac_cv_prog_cc_g=yes
2822 else
2823   echo "$as_me: failed program was:" >&5
2824 sed 's/^/| /' conftest.$ac_ext >&5
2825
2826 ac_cv_prog_cc_g=no
2827 fi
2828 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2829 fi
2830 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2831 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2832 if test "$ac_test_CFLAGS" = set; then
2833   CFLAGS=$ac_save_CFLAGS
2834 elif test $ac_cv_prog_cc_g = yes; then
2835   if test "$GCC" = yes; then
2836     CFLAGS="-g -O2"
2837   else
2838     CFLAGS="-g"
2839   fi
2840 else
2841   if test "$GCC" = yes; then
2842     CFLAGS="-O2"
2843   else
2844     CFLAGS=
2845   fi
2846 fi
2847 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2848 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2849 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2850   echo $ECHO_N "(cached) $ECHO_C" >&6
2851 else
2852   ac_cv_prog_cc_stdc=no
2853 ac_save_CC=$CC
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h.  */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h.  */
2860 #include <stdarg.h>
2861 #include <stdio.h>
2862 #include <sys/types.h>
2863 #include <sys/stat.h>
2864 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2865 struct buf { int x; };
2866 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2867 static char *e (p, i)
2868      char **p;
2869      int i;
2870 {
2871   return p[i];
2872 }
2873 static char *f (char * (*g) (char **, int), char **p, ...)
2874 {
2875   char *s;
2876   va_list v;
2877   va_start (v,p);
2878   s = g (p, va_arg (v,int));
2879   va_end (v);
2880   return s;
2881 }
2882
2883 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2884    function prototypes and stuff, but not '\xHH' hex character constants.
2885    These don't provoke an error unfortunately, instead are silently treated
2886    as 'x'.  The following induces an error, until -std1 is added to get
2887    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2888    array size at least.  It's necessary to write '\x00'==0 to get something
2889    that's true only with -std1.  */
2890 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2891
2892 int test (int i, double x);
2893 struct s1 {int (*f) (int a);};
2894 struct s2 {int (*f) (double a);};
2895 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2896 int argc;
2897 char **argv;
2898 int
2899 main ()
2900 {
2901 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2902   ;
2903   return 0;
2904 }
2905 _ACEOF
2906 # Don't try gcc -ansi; that turns off useful extensions and
2907 # breaks some systems' header files.
2908 # AIX                   -qlanglvl=ansi
2909 # Ultrix and OSF/1      -std1
2910 # HP-UX 10.20 and later -Ae
2911 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2912 # SVR4                  -Xc -D__EXTENSIONS__
2913 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2914 do
2915   CC="$ac_save_CC $ac_arg"
2916   rm -f conftest.$ac_objext
2917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2918   (eval $ac_compile) 2>conftest.er1
2919   ac_status=$?
2920   grep -v '^ *+' conftest.er1 >conftest.err
2921   rm -f conftest.er1
2922   cat conftest.err >&5
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); } &&
2925          { ac_try='test -z "$ac_c_werror_flag"
2926                          || test ! -s conftest.err'
2927   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2928   (eval $ac_try) 2>&5
2929   ac_status=$?
2930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2931   (exit $ac_status); }; } &&
2932          { ac_try='test -s conftest.$ac_objext'
2933   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2934   (eval $ac_try) 2>&5
2935   ac_status=$?
2936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2937   (exit $ac_status); }; }; then
2938   ac_cv_prog_cc_stdc=$ac_arg
2939 break
2940 else
2941   echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2943
2944 fi
2945 rm -f conftest.err conftest.$ac_objext
2946 done
2947 rm -f conftest.$ac_ext conftest.$ac_objext
2948 CC=$ac_save_CC
2949
2950 fi
2951
2952 case "x$ac_cv_prog_cc_stdc" in
2953   x|xno)
2954     echo "$as_me:$LINENO: result: none needed" >&5
2955 echo "${ECHO_T}none needed" >&6 ;;
2956   *)
2957     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2958 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2959     CC="$CC $ac_cv_prog_cc_stdc" ;;
2960 esac
2961
2962 # Some people use a C++ compiler to compile C.  Since we use `exit',
2963 # in C++ we need to declare it.  In case someone uses the same compiler
2964 # for both compiling C and C++ we need to have the C++ compiler decide
2965 # the declaration of exit, since it's the most demanding environment.
2966 cat >conftest.$ac_ext <<_ACEOF
2967 #ifndef __cplusplus
2968   choke me
2969 #endif
2970 _ACEOF
2971 rm -f conftest.$ac_objext
2972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2973   (eval $ac_compile) 2>conftest.er1
2974   ac_status=$?
2975   grep -v '^ *+' conftest.er1 >conftest.err
2976   rm -f conftest.er1
2977   cat conftest.err >&5
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); } &&
2980          { ac_try='test -z "$ac_c_werror_flag"
2981                          || test ! -s conftest.err'
2982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983   (eval $ac_try) 2>&5
2984   ac_status=$?
2985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986   (exit $ac_status); }; } &&
2987          { ac_try='test -s conftest.$ac_objext'
2988   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2989   (eval $ac_try) 2>&5
2990   ac_status=$?
2991   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992   (exit $ac_status); }; }; then
2993   for ac_declaration in \
2994    '' \
2995    'extern "C" void std::exit (int) throw (); using std::exit;' \
2996    'extern "C" void std::exit (int); using std::exit;' \
2997    'extern "C" void exit (int) throw ();' \
2998    'extern "C" void exit (int);' \
2999    'void exit (int);'
3000 do
3001   cat >conftest.$ac_ext <<_ACEOF
3002 /* confdefs.h.  */
3003 _ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h.  */
3007 $ac_declaration
3008 #include <stdlib.h>
3009 int
3010 main ()
3011 {
3012 exit (42);
3013   ;
3014   return 0;
3015 }
3016 _ACEOF
3017 rm -f conftest.$ac_objext
3018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3019   (eval $ac_compile) 2>conftest.er1
3020   ac_status=$?
3021   grep -v '^ *+' conftest.er1 >conftest.err
3022   rm -f conftest.er1
3023   cat conftest.err >&5
3024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025   (exit $ac_status); } &&
3026          { ac_try='test -z "$ac_c_werror_flag"
3027                          || test ! -s conftest.err'
3028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3029   (eval $ac_try) 2>&5
3030   ac_status=$?
3031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032   (exit $ac_status); }; } &&
3033          { ac_try='test -s conftest.$ac_objext'
3034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3035   (eval $ac_try) 2>&5
3036   ac_status=$?
3037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038   (exit $ac_status); }; }; then
3039   :
3040 else
3041   echo "$as_me: failed program was:" >&5
3042 sed 's/^/| /' conftest.$ac_ext >&5
3043
3044 continue
3045 fi
3046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3047   cat >conftest.$ac_ext <<_ACEOF
3048 /* confdefs.h.  */
3049 _ACEOF
3050 cat confdefs.h >>conftest.$ac_ext
3051 cat >>conftest.$ac_ext <<_ACEOF
3052 /* end confdefs.h.  */
3053 $ac_declaration
3054 int
3055 main ()
3056 {
3057 exit (42);
3058   ;
3059   return 0;
3060 }
3061 _ACEOF
3062 rm -f conftest.$ac_objext
3063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3064   (eval $ac_compile) 2>conftest.er1
3065   ac_status=$?
3066   grep -v '^ *+' conftest.er1 >conftest.err
3067   rm -f conftest.er1
3068   cat conftest.err >&5
3069   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070   (exit $ac_status); } &&
3071          { ac_try='test -z "$ac_c_werror_flag"
3072                          || test ! -s conftest.err'
3073   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3074   (eval $ac_try) 2>&5
3075   ac_status=$?
3076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3077   (exit $ac_status); }; } &&
3078          { ac_try='test -s conftest.$ac_objext'
3079   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3080   (eval $ac_try) 2>&5
3081   ac_status=$?
3082   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083   (exit $ac_status); }; }; then
3084   break
3085 else
3086   echo "$as_me: failed program was:" >&5
3087 sed 's/^/| /' conftest.$ac_ext >&5
3088
3089 fi
3090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3091 done
3092 rm -f conftest*
3093 if test -n "$ac_declaration"; then
3094   echo '#ifdef __cplusplus' >>confdefs.h
3095   echo $ac_declaration      >>confdefs.h
3096   echo '#endif'             >>confdefs.h
3097 fi
3098
3099 else
3100   echo "$as_me: failed program was:" >&5
3101 sed 's/^/| /' conftest.$ac_ext >&5
3102
3103 fi
3104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3105 ac_ext=c
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3110
3111 depcc="$CC"   am_compiler_list=
3112
3113 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3114 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3115 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3116   echo $ECHO_N "(cached) $ECHO_C" >&6
3117 else
3118   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3119   # We make a subdir and do the tests there.  Otherwise we can end up
3120   # making bogus files that we don't know about and never remove.  For
3121   # instance it was reported that on HP-UX the gcc test will end up
3122   # making a dummy file named `D' -- because `-MD' means `put the output
3123   # in D'.
3124   mkdir conftest.dir
3125   # Copy depcomp to subdir because otherwise we won't find it if we're
3126   # using a relative directory.
3127   cp "$am_depcomp" conftest.dir
3128   cd conftest.dir
3129   # We will build objects and dependencies in a subdirectory because
3130   # it helps to detect inapplicable dependency modes.  For instance
3131   # both Tru64's cc and ICC support -MD to output dependencies as a
3132   # side effect of compilation, but ICC will put the dependencies in
3133   # the current directory while Tru64 will put them in the object
3134   # directory.
3135   mkdir sub
3136
3137   am_cv_CC_dependencies_compiler_type=none
3138   if test "$am_compiler_list" = ""; then
3139      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3140   fi
3141   for depmode in $am_compiler_list; do
3142     # Setup a source with many dependencies, because some compilers
3143     # like to wrap large dependency lists on column 80 (with \), and
3144     # we should not choose a depcomp mode which is confused by this.
3145     #
3146     # We need to recreate these files for each test, as the compiler may
3147     # overwrite some of them when testing with obscure command lines.
3148     # This happens at least with the AIX C compiler.
3149     : > sub/conftest.c
3150     for i in 1 2 3 4 5 6; do
3151       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3152       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3153       # Solaris 8's {/usr,}/bin/sh.
3154       touch sub/conftst$i.h
3155     done
3156     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3157
3158     case $depmode in
3159     nosideeffect)
3160       # after this tag, mechanisms are not by side-effect, so they'll
3161       # only be used when explicitly requested
3162       if test "x$enable_dependency_tracking" = xyes; then
3163         continue
3164       else
3165         break
3166       fi
3167       ;;
3168     none) break ;;
3169     esac
3170     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3171     # mode.  It turns out that the SunPro C++ compiler does not properly
3172     # handle `-M -o', and we need to detect this.
3173     if depmode=$depmode \
3174        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3175        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3176        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3177          >/dev/null 2>conftest.err &&
3178        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3179        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3180        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3181       # icc doesn't choke on unknown options, it will just issue warnings
3182       # or remarks (even with -Werror).  So we grep stderr for any message
3183       # that says an option was ignored or not supported.
3184       # When given -MP, icc 7.0 and 7.1 complain thusly:
3185       #   icc: Command line warning: ignoring option '-M'; no argument required
3186       # The diagnosis changed in icc 8.0:
3187       #   icc: Command line remark: option '-MP' not supported
3188       if (grep 'ignoring option' conftest.err ||
3189           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3190         am_cv_CC_dependencies_compiler_type=$depmode
3191         break
3192       fi
3193     fi
3194   done
3195
3196   cd ..
3197   rm -rf conftest.dir
3198 else
3199   am_cv_CC_dependencies_compiler_type=none
3200 fi
3201
3202 fi
3203 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3204 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3205 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3206
3207
3208
3209 if
3210   test "x$enable_dependency_tracking" != xno \
3211   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3212   am__fastdepCC_TRUE=
3213   am__fastdepCC_FALSE='#'
3214 else
3215   am__fastdepCC_TRUE='#'
3216   am__fastdepCC_FALSE=
3217 fi
3218
3219
3220
3221 ac_ext=c
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3226 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3227 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3228 # On Suns, sometimes $CPP names a directory.
3229 if test -n "$CPP" && test -d "$CPP"; then
3230   CPP=
3231 fi
3232 if test -z "$CPP"; then
3233   if test "${ac_cv_prog_CPP+set}" = set; then
3234   echo $ECHO_N "(cached) $ECHO_C" >&6
3235 else
3236       # Double quotes because CPP needs to be expanded
3237     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3238     do
3239       ac_preproc_ok=false
3240 for ac_c_preproc_warn_flag in '' yes
3241 do
3242   # Use a header file that comes with gcc, so configuring glibc
3243   # with a fresh cross-compiler works.
3244   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3245   # <limits.h> exists even on freestanding compilers.
3246   # On the NeXT, cc -E runs the code through the compiler's parser,
3247   # not just through cpp. "Syntax error" is here to catch this case.
3248   cat >conftest.$ac_ext <<_ACEOF
3249 /* confdefs.h.  */
3250 _ACEOF
3251 cat confdefs.h >>conftest.$ac_ext
3252 cat >>conftest.$ac_ext <<_ACEOF
3253 /* end confdefs.h.  */
3254 #ifdef __STDC__
3255 # include <limits.h>
3256 #else
3257 # include <assert.h>
3258 #endif
3259                      Syntax error
3260 _ACEOF
3261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3262   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3263   ac_status=$?
3264   grep -v '^ *+' conftest.er1 >conftest.err
3265   rm -f conftest.er1
3266   cat conftest.err >&5
3267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268   (exit $ac_status); } >/dev/null; then
3269   if test -s conftest.err; then
3270     ac_cpp_err=$ac_c_preproc_warn_flag
3271     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3272   else
3273     ac_cpp_err=
3274   fi
3275 else
3276   ac_cpp_err=yes
3277 fi
3278 if test -z "$ac_cpp_err"; then
3279   :
3280 else
3281   echo "$as_me: failed program was:" >&5
3282 sed 's/^/| /' conftest.$ac_ext >&5
3283
3284   # Broken: fails on valid input.
3285 continue
3286 fi
3287 rm -f conftest.err conftest.$ac_ext
3288
3289   # OK, works on sane cases.  Now check whether non-existent headers
3290   # can be detected and how.
3291   cat >conftest.$ac_ext <<_ACEOF
3292 /* confdefs.h.  */
3293 _ACEOF
3294 cat confdefs.h >>conftest.$ac_ext
3295 cat >>conftest.$ac_ext <<_ACEOF
3296 /* end confdefs.h.  */
3297 #include <ac_nonexistent.h>
3298 _ACEOF
3299 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3300   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3301   ac_status=$?
3302   grep -v '^ *+' conftest.er1 >conftest.err
3303   rm -f conftest.er1
3304   cat conftest.err >&5
3305   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306   (exit $ac_status); } >/dev/null; then
3307   if test -s conftest.err; then
3308     ac_cpp_err=$ac_c_preproc_warn_flag
3309     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3310   else
3311     ac_cpp_err=
3312   fi
3313 else
3314   ac_cpp_err=yes
3315 fi
3316 if test -z "$ac_cpp_err"; then
3317   # Broken: success on invalid input.
3318 continue
3319 else
3320   echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323   # Passes both tests.
3324 ac_preproc_ok=:
3325 break
3326 fi
3327 rm -f conftest.err conftest.$ac_ext
3328
3329 done
3330 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3331 rm -f conftest.err conftest.$ac_ext
3332 if $ac_preproc_ok; then
3333   break
3334 fi
3335
3336     done
3337     ac_cv_prog_CPP=$CPP
3338
3339 fi
3340   CPP=$ac_cv_prog_CPP
3341 else
3342   ac_cv_prog_CPP=$CPP
3343 fi
3344 echo "$as_me:$LINENO: result: $CPP" >&5
3345 echo "${ECHO_T}$CPP" >&6
3346 ac_preproc_ok=false
3347 for ac_c_preproc_warn_flag in '' yes
3348 do
3349   # Use a header file that comes with gcc, so configuring glibc
3350   # with a fresh cross-compiler works.
3351   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3352   # <limits.h> exists even on freestanding compilers.
3353   # On the NeXT, cc -E runs the code through the compiler's parser,
3354   # not just through cpp. "Syntax error" is here to catch this case.
3355   cat >conftest.$ac_ext <<_ACEOF
3356 /* confdefs.h.  */
3357 _ACEOF
3358 cat confdefs.h >>conftest.$ac_ext
3359 cat >>conftest.$ac_ext <<_ACEOF
3360 /* end confdefs.h.  */
3361 #ifdef __STDC__
3362 # include <limits.h>
3363 #else
3364 # include <assert.h>
3365 #endif
3366                      Syntax error
3367 _ACEOF
3368 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3369   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3370   ac_status=$?
3371   grep -v '^ *+' conftest.er1 >conftest.err
3372   rm -f conftest.er1
3373   cat conftest.err >&5
3374   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375   (exit $ac_status); } >/dev/null; then
3376   if test -s conftest.err; then
3377     ac_cpp_err=$ac_c_preproc_warn_flag
3378     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3379   else
3380     ac_cpp_err=
3381   fi
3382 else
3383   ac_cpp_err=yes
3384 fi
3385 if test -z "$ac_cpp_err"; then
3386   :
3387 else
3388   echo "$as_me: failed program was:" >&5
3389 sed 's/^/| /' conftest.$ac_ext >&5
3390
3391   # Broken: fails on valid input.
3392 continue
3393 fi
3394 rm -f conftest.err conftest.$ac_ext
3395
3396   # OK, works on sane cases.  Now check whether non-existent headers
3397   # can be detected and how.
3398   cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h.  */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h.  */
3404 #include <ac_nonexistent.h>
3405 _ACEOF
3406 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3407   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3408   ac_status=$?
3409   grep -v '^ *+' conftest.er1 >conftest.err
3410   rm -f conftest.er1
3411   cat conftest.err >&5
3412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3413   (exit $ac_status); } >/dev/null; then
3414   if test -s conftest.err; then
3415     ac_cpp_err=$ac_c_preproc_warn_flag
3416     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3417   else
3418     ac_cpp_err=
3419   fi
3420 else
3421   ac_cpp_err=yes
3422 fi
3423 if test -z "$ac_cpp_err"; then
3424   # Broken: success on invalid input.
3425 continue
3426 else
3427   echo "$as_me: failed program was:" >&5
3428 sed 's/^/| /' conftest.$ac_ext >&5
3429
3430   # Passes both tests.
3431 ac_preproc_ok=:
3432 break
3433 fi
3434 rm -f conftest.err conftest.$ac_ext
3435
3436 done
3437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438 rm -f conftest.err conftest.$ac_ext
3439 if $ac_preproc_ok; then
3440   :
3441 else
3442   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&2;}
3446    { (exit 1); exit 1; }; }
3447 fi
3448
3449 ac_ext=c
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3454
3455
3456 echo "$as_me:$LINENO: checking for egrep" >&5
3457 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3458 if test "${ac_cv_prog_egrep+set}" = set; then
3459   echo $ECHO_N "(cached) $ECHO_C" >&6
3460 else
3461   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3462     then ac_cv_prog_egrep='grep -E'
3463     else ac_cv_prog_egrep='egrep'
3464     fi
3465 fi
3466 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3467 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3468  EGREP=$ac_cv_prog_egrep
3469
3470
3471 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3472 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3473 if test "${ac_cv_header_stdc+set}" = set; then
3474   echo $ECHO_N "(cached) $ECHO_C" >&6
3475 else
3476   cat >conftest.$ac_ext <<_ACEOF
3477 /* confdefs.h.  */
3478 _ACEOF
3479 cat confdefs.h >>conftest.$ac_ext
3480 cat >>conftest.$ac_ext <<_ACEOF
3481 /* end confdefs.h.  */
3482 #include <stdlib.h>
3483 #include <stdarg.h>
3484 #include <string.h>
3485 #include <float.h>
3486
3487 int
3488 main ()
3489 {
3490
3491   ;
3492   return 0;
3493 }
3494 _ACEOF
3495 rm -f conftest.$ac_objext
3496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3497   (eval $ac_compile) 2>conftest.er1
3498   ac_status=$?
3499   grep -v '^ *+' conftest.er1 >conftest.err
3500   rm -f conftest.er1
3501   cat conftest.err >&5
3502   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503   (exit $ac_status); } &&
3504          { ac_try='test -z "$ac_c_werror_flag"
3505                          || test ! -s conftest.err'
3506   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3507   (eval $ac_try) 2>&5
3508   ac_status=$?
3509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510   (exit $ac_status); }; } &&
3511          { ac_try='test -s conftest.$ac_objext'
3512   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3513   (eval $ac_try) 2>&5
3514   ac_status=$?
3515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516   (exit $ac_status); }; }; then
3517   ac_cv_header_stdc=yes
3518 else
3519   echo "$as_me: failed program was:" >&5
3520 sed 's/^/| /' conftest.$ac_ext >&5
3521
3522 ac_cv_header_stdc=no
3523 fi
3524 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3525
3526 if test $ac_cv_header_stdc = yes; then
3527   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3528   cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h.  */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h.  */
3534 #include <string.h>
3535
3536 _ACEOF
3537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3538   $EGREP "memchr" >/dev/null 2>&1; then
3539   :
3540 else
3541   ac_cv_header_stdc=no
3542 fi
3543 rm -f conftest*
3544
3545 fi
3546
3547 if test $ac_cv_header_stdc = yes; then
3548   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3549   cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h.  */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h.  */
3555 #include <stdlib.h>
3556
3557 _ACEOF
3558 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3559   $EGREP "free" >/dev/null 2>&1; then
3560   :
3561 else
3562   ac_cv_header_stdc=no
3563 fi
3564 rm -f conftest*
3565
3566 fi
3567
3568 if test $ac_cv_header_stdc = yes; then
3569   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3570   if test "$cross_compiling" = yes; then
3571   :
3572 else
3573   cat >conftest.$ac_ext <<_ACEOF
3574 /* confdefs.h.  */
3575 _ACEOF
3576 cat confdefs.h >>conftest.$ac_ext
3577 cat >>conftest.$ac_ext <<_ACEOF
3578 /* end confdefs.h.  */
3579 #include <ctype.h>
3580 #if ((' ' & 0x0FF) == 0x020)
3581 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3582 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3583 #else
3584 # define ISLOWER(c) \
3585                    (('a' <= (c) && (c) <= 'i') \
3586                      || ('j' <= (c) && (c) <= 'r') \
3587                      || ('s' <= (c) && (c) <= 'z'))
3588 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3589 #endif
3590
3591 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3592 int
3593 main ()
3594 {
3595   int i;
3596   for (i = 0; i < 256; i++)
3597     if (XOR (islower (i), ISLOWER (i))
3598         || toupper (i) != TOUPPER (i))
3599       exit(2);
3600   exit (0);
3601 }
3602 _ACEOF
3603 rm -f conftest$ac_exeext
3604 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3605   (eval $ac_link) 2>&5
3606   ac_status=$?
3607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3608   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3610   (eval $ac_try) 2>&5
3611   ac_status=$?
3612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3613   (exit $ac_status); }; }; then
3614   :
3615 else
3616   echo "$as_me: program exited with status $ac_status" >&5
3617 echo "$as_me: failed program was:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3619
3620 ( exit $ac_status )
3621 ac_cv_header_stdc=no
3622 fi
3623 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3624 fi
3625 fi
3626 fi
3627 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3628 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3629 if test $ac_cv_header_stdc = yes; then
3630
3631 cat >>confdefs.h <<\_ACEOF
3632 #define STDC_HEADERS 1
3633 _ACEOF
3634
3635 fi
3636
3637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3648                   inttypes.h stdint.h unistd.h
3649 do
3650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3651 echo "$as_me:$LINENO: checking for $ac_header" >&5
3652 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3653 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3654   echo $ECHO_N "(cached) $ECHO_C" >&6
3655 else
3656   cat >conftest.$ac_ext <<_ACEOF
3657 /* confdefs.h.  */
3658 _ACEOF
3659 cat confdefs.h >>conftest.$ac_ext
3660 cat >>conftest.$ac_ext <<_ACEOF
3661 /* end confdefs.h.  */
3662 $ac_includes_default
3663
3664 #include <$ac_header>
3665 _ACEOF
3666 rm -f conftest.$ac_objext
3667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3668   (eval $ac_compile) 2>conftest.er1
3669   ac_status=$?
3670   grep -v '^ *+' conftest.er1 >conftest.err
3671   rm -f conftest.er1
3672   cat conftest.err >&5
3673   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674   (exit $ac_status); } &&
3675          { ac_try='test -z "$ac_c_werror_flag"
3676                          || test ! -s conftest.err'
3677   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3678   (eval $ac_try) 2>&5
3679   ac_status=$?
3680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3681   (exit $ac_status); }; } &&
3682          { ac_try='test -s conftest.$ac_objext'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; }; then
3688   eval "$as_ac_Header=yes"
3689 else
3690   echo "$as_me: failed program was:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3692
3693 eval "$as_ac_Header=no"
3694 fi
3695 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3696 fi
3697 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3698 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3700   cat >>confdefs.h <<_ACEOF
3701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3702 _ACEOF
3703
3704 fi
3705
3706 done
3707
3708
3709
3710
3711 for ac_header in signal.h dlfcn.h
3712 do
3713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3714 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3715   echo "$as_me:$LINENO: checking for $ac_header" >&5
3716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3717 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3718   echo $ECHO_N "(cached) $ECHO_C" >&6
3719 fi
3720 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3721 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3722 else
3723   # Is the header compilable?
3724 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3725 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3726 cat >conftest.$ac_ext <<_ACEOF
3727 /* confdefs.h.  */
3728 _ACEOF
3729 cat confdefs.h >>conftest.$ac_ext
3730 cat >>conftest.$ac_ext <<_ACEOF
3731 /* end confdefs.h.  */
3732 $ac_includes_default
3733 #include <$ac_header>
3734 _ACEOF
3735 rm -f conftest.$ac_objext
3736 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3737   (eval $ac_compile) 2>conftest.er1
3738   ac_status=$?
3739   grep -v '^ *+' conftest.er1 >conftest.err
3740   rm -f conftest.er1
3741   cat conftest.err >&5
3742   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3743   (exit $ac_status); } &&
3744          { ac_try='test -z "$ac_c_werror_flag"
3745                          || test ! -s conftest.err'
3746   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3747   (eval $ac_try) 2>&5
3748   ac_status=$?
3749   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750   (exit $ac_status); }; } &&
3751          { ac_try='test -s conftest.$ac_objext'
3752   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3753   (eval $ac_try) 2>&5
3754   ac_status=$?
3755   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3756   (exit $ac_status); }; }; then
3757   ac_header_compiler=yes
3758 else
3759   echo "$as_me: failed program was:" >&5
3760 sed 's/^/| /' conftest.$ac_ext >&5
3761
3762 ac_header_compiler=no
3763 fi
3764 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3765 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3766 echo "${ECHO_T}$ac_header_compiler" >&6
3767
3768 # Is the header present?
3769 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3770 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3771 cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h.  */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
3776 /* end confdefs.h.  */
3777 #include <$ac_header>
3778 _ACEOF
3779 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3780   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3781   ac_status=$?
3782   grep -v '^ *+' conftest.er1 >conftest.err
3783   rm -f conftest.er1
3784   cat conftest.err >&5
3785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3786   (exit $ac_status); } >/dev/null; then
3787   if test -s conftest.err; then
3788     ac_cpp_err=$ac_c_preproc_warn_flag
3789     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3790   else
3791     ac_cpp_err=
3792   fi
3793 else
3794   ac_cpp_err=yes
3795 fi
3796 if test -z "$ac_cpp_err"; then
3797   ac_header_preproc=yes
3798 else
3799   echo "$as_me: failed program was:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3801
3802   ac_header_preproc=no
3803 fi
3804 rm -f conftest.err conftest.$ac_ext
3805 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3806 echo "${ECHO_T}$ac_header_preproc" >&6
3807
3808 # So?  What about this header?
3809 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3810   yes:no: )
3811     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3812 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3813     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3814 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3815     ac_header_preproc=yes
3816     ;;
3817   no:yes:* )
3818     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3819 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3820     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3821 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3822     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3823 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3824     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3825 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3826     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3827 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3828     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3829 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3830     (
3831       cat <<\_ASBOX
3832 ## ------------------------------------------ ##
3833 ## Report this to the AC_PACKAGE_NAME lists.  ##
3834 ## ------------------------------------------ ##
3835 _ASBOX
3836     ) |
3837       sed "s/^/$as_me: WARNING:     /" >&2
3838     ;;
3839 esac
3840 echo "$as_me:$LINENO: checking for $ac_header" >&5
3841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3842 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3843   echo $ECHO_N "(cached) $ECHO_C" >&6
3844 else
3845   eval "$as_ac_Header=\$ac_header_preproc"
3846 fi
3847 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3848 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3849
3850 fi
3851 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3852   cat >>confdefs.h <<_ACEOF
3853 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3854 _ACEOF
3855
3856 fi
3857
3858 done
3859
3860
3861 # cppunit needed?
3862 if test $enable_unit_tests == "yes" || test $enable_integration_tests == yes; then
3863         CPPUNIT_CXXFLAGS=`cppunit-config --cflags` || { { echo "$as_me:$LINENO: error: \"cppunit-config --cflags failed - is it installed?\"" >&5
3864 echo "$as_me: error: \"cppunit-config --cflags failed - is it installed?\"" >&2;}
3865    { (exit 1); exit 1; }; }
3866         CPPUNIT_LDFLAGS=`cppunit-config --libs` || { { echo "$as_me:$LINENO: error: \"cppunit-config --libs failed - is it installed?\"" >&5
3867 echo "$as_me: error: \"cppunit-config --libs failed - is it installed?\"" >&2;}
3868    { (exit 1); exit 1; }; }
3869         CPPUNIT_TESTS=client-test
3870 fi
3871
3872
3873
3874
3875 if test $enable_unit_tests == "yes"; then
3876         CLIENT_CONFIGURE="$CLIENT_CONFIGURE --enable-unit-tests"
3877
3878 cat >>confdefs.h <<\_ACEOF
3879 #define ENABLE_UNIT_TESTS 1
3880 _ACEOF
3881
3882 fi
3883 if test $enable_integration_tests == "yes"; then
3884         CLIENT_CONFIGURE="$CLIENT_CONFIGURE --enable-integration-tests"
3885
3886 cat >>confdefs.h <<\_ACEOF
3887 #define ENABLE_INTEGRATION_TESTS 1
3888 _ACEOF
3889
3890 fi
3891
3892 if test $enable_static_cxx == "yes"; then
3893         LIBS="$LIBS -L."
3894         CORE_LDADD_DEP=libstdc++.a
3895 fi
3896
3897
3898 # preserve src/client-api by default
3899 CLEAN_CLIENT_SRC=
3900 FUNAMBOL_LIB=$PWD/src/client-api.build/src/libfunambol.la
3901
3902
3903
3904 case $target in
3905 *apple-darwin*)  use_mac_ta="yes" ;;
3906 *) use_libcurl="yes" ;;
3907 esac
3908
3909 # Check for libcurl now instead of during make.
3910 # Strictly speaking, building libfunambol takes
3911 # care of that, but because we build it in a
3912 # slightly unusual way (build libfunambol.a with
3913 # -fPIC, include just the required object files
3914 # in libsyncevolution) libtool doesn't pick up
3915 # that dependency and we have to add libcurl to
3916 # out link flags ourselves.
3917 echo "$as_me:$LINENO: checking for libcurl" >&5
3918 echo $ECHO_N "checking for libcurl... $ECHO_C" >&6
3919 if TRANSPORT_LDFLAGS=`sh -c 'curl-config --libs' 2>&5` && \
3920     TRANSPORT_CFLAGS=`sh -c 'curl-config --cflags' 2>&5`; then
3921     echo "$as_me:$LINENO: result: found" >&5
3922 echo "${ECHO_T}found" >&6
3923 else
3924     echo "$as_me:$LINENO: result: missing" >&5
3925 echo "${ECHO_T}missing" >&6
3926     # FIXME: hard-coded check for Mac (same as in libfunambol)
3927     case $target in
3928         *apple-darwin*) TRANSPORT_LDFLAGS="-framework CoreServices" ;;
3929         *) { { echo "$as_me:$LINENO: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&5
3930 echo "$as_me: error: libcurl is required, check that its development package is installed and curl-config is in your PATH" >&2;}
3931    { (exit 1); exit 1; }; } ;;
3932     esac
3933 fi
3934
3935
3936
3937 if test "x$use_mac_ta" = "xyes"; then
3938     CURL_LDFLAGS="-framework CoreServices"
3939
3940 fi
3941
3942
3943 if test ! "$FUNAMBOL"; then
3944     if test "$FUNAMBOLSRC"; then
3945         # make a copy of the sources, remove it during maintainer-clean and distclean
3946         CLEAN_CLIENT_SRC=client-api
3947
3948         { echo "$as_me:$LINENO: updating the content of src/client-api from $FUNAMBOLSRC " >&5
3949 echo "$as_me: updating the content of src/client-api from $FUNAMBOLSRC " >&6;}
3950         mkdir -p src/client-api
3951         if cp --help 2>/dev/null | grep >/dev/null -e "--update"; then
3952             # GNU cp
3953             cp_opts="--update --archive"
3954         else
3955             cp_opts="-r"
3956         fi
3957
3958         if cp $cp_opts $FUNAMBOLSRC/* src/client-api; then
3959             ( cd src/client-api/build/autotools && ( test -f configure || sh autogen.sh ) )
3960         else
3961             { { echo "$as_me:$LINENO: error: copying $FUNAMBOLSRC into src/client-api failed " >&5
3962 echo "$as_me: error: copying $FUNAMBOLSRC into src/client-api failed " >&2;}
3963    { (exit 1); exit 1; }; }
3964         fi
3965         find src/client-api/build/autotools/win* -name output | xargs rm -rf
3966         find src/client-api/build/autotools/include/* src/client-api/build/autotools/src/* -type d | xargs rm -rf
3967         find src/client-api -name "*~*" -o -name ".#*" -o -name "*.orig" -o -name "stamp-*" -o -name "*.o" -o -name "*.lo" -o -name .libs -o -name autom4te.cache -o -name config.status | xargs rm -rf
3968     else
3969         if test ! -d src/client-api; then
3970             if test -d $srcdir/src/client-api; then
3971                 mkdir -p src
3972                 case $srcdir in
3973                         /*) ln -s $srcdir/src/client-api src/client-api;;
3974                         *) ln -s $PWD/$srcdir/src/client-api src/client-api;;
3975                 esac
3976             fi
3977         fi
3978     fi
3979
3980     if test -f src/client-api/build/autotools/configure; then
3981         chmod u+x src/client-api/build/autotools/configure src/client-api/build/autotools/config.sub src/client-api/build/autotools/config.guess
3982
3983         # use local copy of the sources, with dependencies
3984         # to trigger building the client library
3985         FUNAMBOL_SUBDIR=$PWD/src/client-api.build
3986         FUNAMBOL_DEP=$PWD/src/client-api.build/src/libfunambol.la
3987
3988         FUNAMBOL_CFLAGS="-I$FUNAMBOL_SUBDIR/include/posix -I$FUNAMBOL_SUBDIR/include/common -I$FUNAMBOL_SUBDIR/include -I$FUNAMBOL_SUBDIR/test"
3989         FUNAMBOL_LIBS="-L$FUNAMBOL_SUBDIR/src -lfunambol"
3990
3991         { echo "$as_me:$LINENO: configuring the client library " >&5
3992 echo "$as_me: configuring the client library " >&6;}
3993         # Passing some specific configure arguments to the client library's
3994         # configure makes sense (e.g., --enable-unit-tests) or is
3995         # required (--disable-dependency-tracking when compiling for
3996         # multiple architectures on Mac OS X).
3997         cxx_lib_args=`for i in --disable-dependency-tracking --enable-unit-tests; do
3998            if echo $ac_configure_args | grep -e $i >/dev/null; then
3999               echo $i;
4000            fi;
4001           done`
4002         if test "$enable_shared" == "yes"; then
4003             # Okay, this is a shortcut: strictly speaking we would have
4004             # to check with autoconf for the right flags...
4005             FUNAMBOL_LIB_SHARED_FLAGS="-DPIC -fPIC"
4006         fi
4007         if (set -x; mkdir -p $FUNAMBOL_SUBDIR && cd $FUNAMBOL_SUBDIR && $CLIENT_CONFIGURE --build=$build_alias --host=$host_alias --target=$target_alias --disable-shared CFLAGS="$CFLAGS $FUNAMBOL_LIB_SHARED_FLAGS" CXXFLAGS="$CXXFLAGS $FUNAMBOL_LIB_SHARED_FLAGS" $cxx_lib_args); then true; else
4008             { { echo "$as_me:$LINENO: error: configuring client library failed " >&5
4009 echo "$as_me: error: configuring client library failed " >&2;}
4010    { (exit 1); exit 1; }; }
4011         fi
4012     else
4013         { { echo "$as_me:$LINENO: error: either --with-funambol or --with-funambol-src have to be used " >&5
4014 echo "$as_me: error: either --with-funambol or --with-funambol-src have to be used " >&2;}
4015    { (exit 1); exit 1; }; }
4016     fi
4017 else
4018     if test -f $FUNAMBOL/include/funambol/common/spds/SyncItem.h; then
4019         FUNAMBOL_CFLAGS="-I$FUNAMBOL/include/funambol/posix -I$FUNAMBOL/include/funambol/common -I$FUNAMBOL/include/funambol"
4020         FUNAMBOL_LIBS="-L$FUNAMBOL/lib -lfunambol"
4021     else
4022         { { echo "$as_me:$LINENO: error: $FUNAMBOL does seem to be valid (e.g. include/funambol/spds/common/SyncItem.h is missing) " >&5
4023 echo "$as_me: error: $FUNAMBOL does seem to be valid (e.g. include/funambol/spds/common/SyncItem.h is missing) " >&2;}
4024    { (exit 1); exit 1; }; }
4025     fi
4026 fi
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036 BACKENDS=""
4037
4038 # AC_ARG_ENABLE_BACKEND(BACKEND, DIR, HELP-STRING, [ACTION-IF-GIVEN],
4039 #                       [ACTION-IF-NOT-GIVEN])
4040 #
4041 # Same as AC_ARG_ENABLE(), but also tells configure that the
4042 # backend exists.
4043 #
4044 # BACKEND = name of modules built in that dir as .la files without the
4045 #           obligatory sync prefix, e.g. "ebook"
4046 # DIR = name of the directory inside src/backends, e.g., "evolution"
4047
4048
4049
4050
4051 # vvvvvvvvvvvvvv src/backends/addressbook/configure-sub.in vvvvvvvvvvvvvv
4052
4053 ADDRESSBOOK_CFLAGS=
4054
4055 ADDRESSBOOK_LIBS="-framework AddressBook -framework CoreFoundation"
4056
4057
4058 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ADDRESSBOOK_CFLAGS"
4059
4060
4061         # Check whether --enable-addressbook or --disable-addressbook was given.
4062 if test "${enable_addressbook+set}" = set; then
4063   enableval="$enable_addressbook"
4064   enable_addressbook="$enableval"
4065 else
4066   enable_addressbook="no"
4067 fi;
4068         BACKENDS="$BACKENDS addressbook"
4069         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo addressbook | tr a-z A-Z`"
4070         for source in addressbook; do
4071             SYNCSOURCES="$SYNCSOURCES backends/addressbook/syncaddressbook.la"
4072         done
4073
4074
4075 if test "$enable_addressbook" = "yes"; then
4076
4077 cat >>confdefs.h <<\_ACEOF
4078 #define ENABLE_ADDRESSBOOK 1
4079 _ACEOF
4080
4081         DEVICE_TYPE=MacOS_X
4082         enable_any="yes"
4083 else
4084         ADDRESSBOOK_LIBS=
4085 fi
4086
4087           ac_config_files="$ac_config_files src/backends/addressbook/Makefile"
4088
4089 # ^^^^^^^^^^^^^^ src/backends/addressbook/configure-sub.in ^^^^^^^^^^^^^^
4090
4091 # vvvvvvvvvvvvvv src/backends/evolution/configure-sub.in vvvvvvvvvvvvvv
4092
4093 pkg_emodules_10="libedataserver-1.0"
4094 pkg_emodules_11="libedataserver-1.1"
4095 pkg_emodules_12="libedataserver-1.2"
4096 pkg_ebook_10="libebook-1.0"
4097 pkg_ebook_11="libebook-1.1"
4098 pkg_ebook_12="libebook-1.2"
4099 pkg_ecal_10="libecal-1.0"
4100 pkg_ecal_11="libecal-1.1"
4101 pkg_ecal_12="libecal-1.2"
4102
4103 anymissing="
4104 Please install the development packages of Evolution and/or
4105 set the PKG_CONFIG_PATH variable so that it points towards
4106 the .pc files of libedataserver, libecal and libebook (the
4107 latter two are optional).
4108
4109 You can check that these packages are available by running
4110 pkg-config --list-all."
4111
4112 evomissing="No compatible evolution-data-server was found.
4113 $anymissing"
4114
4115
4116
4117 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4118         if test -n "$ac_tool_prefix"; then
4119   # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4120 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4121 echo "$as_me:$LINENO: checking for $ac_word" >&5
4122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
4124   echo $ECHO_N "(cached) $ECHO_C" >&6
4125 else
4126   case $PKG_CONFIG in
4127   [\\/]* | ?:[\\/]*)
4128   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4129   ;;
4130   *)
4131   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4132 for as_dir in $PATH
4133 do
4134   IFS=$as_save_IFS
4135   test -z "$as_dir" && as_dir=.
4136   for ac_exec_ext in '' $ac_executable_extensions; do
4137   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4139     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4140     break 2
4141   fi
4142 done
4143 done
4144
4145   ;;
4146 esac
4147 fi
4148 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4149
4150 if test -n "$PKG_CONFIG"; then
4151   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
4152 echo "${ECHO_T}$PKG_CONFIG" >&6
4153 else
4154   echo "$as_me:$LINENO: result: no" >&5
4155 echo "${ECHO_T}no" >&6
4156 fi
4157
4158 fi
4159 if test -z "$ac_cv_path_PKG_CONFIG"; then
4160   ac_pt_PKG_CONFIG=$PKG_CONFIG
4161   # Extract the first word of "pkg-config", so it can be a program name with args.
4162 set dummy pkg-config; ac_word=$2
4163 echo "$as_me:$LINENO: checking for $ac_word" >&5
4164 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4165 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
4166   echo $ECHO_N "(cached) $ECHO_C" >&6
4167 else
4168   case $ac_pt_PKG_CONFIG in
4169   [\\/]* | ?:[\\/]*)
4170   ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4171   ;;
4172   *)
4173   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4174 for as_dir in $PATH
4175 do
4176   IFS=$as_save_IFS
4177   test -z "$as_dir" && as_dir=.
4178   for ac_exec_ext in '' $ac_executable_extensions; do
4179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4180     ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4182     break 2
4183   fi
4184 done
4185 done
4186
4187   ;;
4188 esac
4189 fi
4190 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4191
4192 if test -n "$ac_pt_PKG_CONFIG"; then
4193   echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
4194 echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6
4195 else
4196   echo "$as_me:$LINENO: result: no" >&5
4197 echo "${ECHO_T}no" >&6
4198 fi
4199
4200   PKG_CONFIG=$ac_pt_PKG_CONFIG
4201 else
4202   PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4203 fi
4204
4205 fi
4206 if test -n "$PKG_CONFIG"; then
4207         _pkg_min_version=0.9.0
4208         echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
4209 echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6
4210         if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4211                 echo "$as_me:$LINENO: result: yes" >&5
4212 echo "${ECHO_T}yes" >&6
4213         else
4214                 echo "$as_me:$LINENO: result: no" >&5
4215 echo "${ECHO_T}no" >&6
4216                 PKG_CONFIG=""
4217         fi
4218
4219 fi
4220
4221 pkg_failed=no
4222 echo "$as_me:$LINENO: checking for EPACKAGE" >&5
4223 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6
4224
4225 if test -n "$PKG_CONFIG"; then
4226     if test -n "$EPACKAGE_CFLAGS"; then
4227         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
4228     else
4229         if test -n "$PKG_CONFIG" && \
4230     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
4231   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
4232   ac_status=$?
4233   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4234   (exit $ac_status); }; then
4235   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_12" 2>/dev/null`
4236 else
4237   pkg_failed=yes
4238 fi
4239     fi
4240 else
4241         pkg_failed=untried
4242 fi
4243 if test -n "$PKG_CONFIG"; then
4244     if test -n "$EPACKAGE_LIBS"; then
4245         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
4246     else
4247         if test -n "$PKG_CONFIG" && \
4248     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_12\"") >&5
4249   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_12") 2>&5
4250   ac_status=$?
4251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252   (exit $ac_status); }; then
4253   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_12" 2>/dev/null`
4254 else
4255   pkg_failed=yes
4256 fi
4257     fi
4258 else
4259         pkg_failed=untried
4260 fi
4261
4262
4263
4264 if test $pkg_failed = yes; then
4265
4266 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4267         _pkg_short_errors_supported=yes
4268 else
4269         _pkg_short_errors_supported=no
4270 fi
4271         if test $_pkg_short_errors_supported = yes; then
4272                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_12"`
4273         else
4274                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_12"`
4275         fi
4276         # Put the nasty error message in config.log where it belongs
4277         echo "$EPACKAGE_PKG_ERRORS" >&5
4278
4279         EDSFOUND=no
4280 elif test $pkg_failed = untried; then
4281         EDSFOUND=no
4282 else
4283         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
4284         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
4285         echo "$as_me:$LINENO: result: yes" >&5
4286 echo "${ECHO_T}yes" >&6
4287         EDSFOUND=yes
4288 fi
4289 if test "x${EDSFOUND}" = "xno"; then
4290
4291 pkg_failed=no
4292 echo "$as_me:$LINENO: checking for EPACKAGE" >&5
4293 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6
4294
4295 if test -n "$PKG_CONFIG"; then
4296     if test -n "$EPACKAGE_CFLAGS"; then
4297         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
4298     else
4299         if test -n "$PKG_CONFIG" && \
4300     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
4301   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
4302   ac_status=$?
4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304   (exit $ac_status); }; then
4305   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_11" 2>/dev/null`
4306 else
4307   pkg_failed=yes
4308 fi
4309     fi
4310 else
4311         pkg_failed=untried
4312 fi
4313 if test -n "$PKG_CONFIG"; then
4314     if test -n "$EPACKAGE_LIBS"; then
4315         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
4316     else
4317         if test -n "$PKG_CONFIG" && \
4318     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_11\"") >&5
4319   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_11") 2>&5
4320   ac_status=$?
4321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322   (exit $ac_status); }; then
4323   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_11" 2>/dev/null`
4324 else
4325   pkg_failed=yes
4326 fi
4327     fi
4328 else
4329         pkg_failed=untried
4330 fi
4331
4332
4333
4334 if test $pkg_failed = yes; then
4335
4336 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4337         _pkg_short_errors_supported=yes
4338 else
4339         _pkg_short_errors_supported=no
4340 fi
4341         if test $_pkg_short_errors_supported = yes; then
4342                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_11"`
4343         else
4344                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_11"`
4345         fi
4346         # Put the nasty error message in config.log where it belongs
4347         echo "$EPACKAGE_PKG_ERRORS" >&5
4348
4349         EDSFOUND=no
4350 elif test $pkg_failed = untried; then
4351         EDSFOUND=no
4352 else
4353         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
4354         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
4355         echo "$as_me:$LINENO: result: yes" >&5
4356 echo "${ECHO_T}yes" >&6
4357         EDSFOUND=yes
4358 fi
4359       if test "x${EDSFOUND}" = "xno"; then
4360
4361 pkg_failed=no
4362 echo "$as_me:$LINENO: checking for EPACKAGE" >&5
4363 echo $ECHO_N "checking for EPACKAGE... $ECHO_C" >&6
4364
4365 if test -n "$PKG_CONFIG"; then
4366     if test -n "$EPACKAGE_CFLAGS"; then
4367         pkg_cv_EPACKAGE_CFLAGS="$EPACKAGE_CFLAGS"
4368     else
4369         if test -n "$PKG_CONFIG" && \
4370     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
4371   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
4372   ac_status=$?
4373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374   (exit $ac_status); }; then
4375   pkg_cv_EPACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_emodules_10" 2>/dev/null`
4376 else
4377   pkg_failed=yes
4378 fi
4379     fi
4380 else
4381         pkg_failed=untried
4382 fi
4383 if test -n "$PKG_CONFIG"; then
4384     if test -n "$EPACKAGE_LIBS"; then
4385         pkg_cv_EPACKAGE_LIBS="$EPACKAGE_LIBS"
4386     else
4387         if test -n "$PKG_CONFIG" && \
4388     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_emodules_10\"") >&5
4389   ($PKG_CONFIG --exists --print-errors "$pkg_emodules_10") 2>&5
4390   ac_status=$?
4391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4392   (exit $ac_status); }; then
4393   pkg_cv_EPACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_emodules_10" 2>/dev/null`
4394 else
4395   pkg_failed=yes
4396 fi
4397     fi
4398 else
4399         pkg_failed=untried
4400 fi
4401
4402
4403
4404 if test $pkg_failed = yes; then
4405
4406 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4407         _pkg_short_errors_supported=yes
4408 else
4409         _pkg_short_errors_supported=no
4410 fi
4411         if test $_pkg_short_errors_supported = yes; then
4412                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_emodules_10"`
4413         else
4414                 EPACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_emodules_10"`
4415         fi
4416         # Put the nasty error message in config.log where it belongs
4417         echo "$EPACKAGE_PKG_ERRORS" >&5
4418
4419         EDSFOUND=no
4420 elif test $pkg_failed = untried; then
4421         EDSFOUND=no
4422 else
4423         EPACKAGE_CFLAGS=$pkg_cv_EPACKAGE_CFLAGS
4424         EPACKAGE_LIBS=$pkg_cv_EPACKAGE_LIBS
4425         echo "$as_me:$LINENO: result: yes" >&5
4426 echo "${ECHO_T}yes" >&6
4427         EDSFOUND=yes
4428 fi
4429       fi
4430 fi
4431
4432
4433 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EPACKAGE_CFLAGS"
4434
4435
4436 pkg_failed=no
4437 echo "$as_me:$LINENO: checking for ECAL" >&5
4438 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6
4439
4440 if test -n "$PKG_CONFIG"; then
4441     if test -n "$ECAL_CFLAGS"; then
4442         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
4443     else
4444         if test -n "$PKG_CONFIG" && \
4445     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
4446   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
4447   ac_status=$?
4448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4449   (exit $ac_status); }; then
4450   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_12" 2>/dev/null`
4451 else
4452   pkg_failed=yes
4453 fi
4454     fi
4455 else
4456         pkg_failed=untried
4457 fi
4458 if test -n "$PKG_CONFIG"; then
4459     if test -n "$ECAL_LIBS"; then
4460         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
4461     else
4462         if test -n "$PKG_CONFIG" && \
4463     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_12\"") >&5
4464   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_12") 2>&5
4465   ac_status=$?
4466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467   (exit $ac_status); }; then
4468   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_12" 2>/dev/null`
4469 else
4470   pkg_failed=yes
4471 fi
4472     fi
4473 else
4474         pkg_failed=untried
4475 fi
4476
4477
4478
4479 if test $pkg_failed = yes; then
4480
4481 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4482         _pkg_short_errors_supported=yes
4483 else
4484         _pkg_short_errors_supported=no
4485 fi
4486         if test $_pkg_short_errors_supported = yes; then
4487                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_12"`
4488         else
4489                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_12"`
4490         fi
4491         # Put the nasty error message in config.log where it belongs
4492         echo "$ECAL_PKG_ERRORS" >&5
4493
4494         ECALFOUND=no
4495 elif test $pkg_failed = untried; then
4496         ECALFOUND=no
4497 else
4498         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
4499         ECAL_LIBS=$pkg_cv_ECAL_LIBS
4500         echo "$as_me:$LINENO: result: yes" >&5
4501 echo "${ECHO_T}yes" >&6
4502         ECALFOUND=yes
4503 fi
4504 if test "x${ECALFOUND}" = "xno"; then
4505
4506 pkg_failed=no
4507 echo "$as_me:$LINENO: checking for ECAL" >&5
4508 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6
4509
4510 if test -n "$PKG_CONFIG"; then
4511     if test -n "$ECAL_CFLAGS"; then
4512         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
4513     else
4514         if test -n "$PKG_CONFIG" && \
4515     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
4516   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
4517   ac_status=$?
4518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4519   (exit $ac_status); }; then
4520   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_11" 2>/dev/null`
4521 else
4522   pkg_failed=yes
4523 fi
4524     fi
4525 else
4526         pkg_failed=untried
4527 fi
4528 if test -n "$PKG_CONFIG"; then
4529     if test -n "$ECAL_LIBS"; then
4530         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
4531     else
4532         if test -n "$PKG_CONFIG" && \
4533     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_11\"") >&5
4534   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_11") 2>&5
4535   ac_status=$?
4536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537   (exit $ac_status); }; then
4538   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_11" 2>/dev/null`
4539 else
4540   pkg_failed=yes
4541 fi
4542     fi
4543 else
4544         pkg_failed=untried
4545 fi
4546
4547
4548
4549 if test $pkg_failed = yes; then
4550
4551 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4552         _pkg_short_errors_supported=yes
4553 else
4554         _pkg_short_errors_supported=no
4555 fi
4556         if test $_pkg_short_errors_supported = yes; then
4557                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_11"`
4558         else
4559                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_11"`
4560         fi
4561         # Put the nasty error message in config.log where it belongs
4562         echo "$ECAL_PKG_ERRORS" >&5
4563
4564         ECALFOUND=no
4565 elif test $pkg_failed = untried; then
4566         ECALFOUND=no
4567 else
4568         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
4569         ECAL_LIBS=$pkg_cv_ECAL_LIBS
4570         echo "$as_me:$LINENO: result: yes" >&5
4571 echo "${ECHO_T}yes" >&6
4572         ECALFOUND=yes
4573 fi
4574         if test "x${ECALFOUND}" = "xno"; then
4575
4576 pkg_failed=no
4577 echo "$as_me:$LINENO: checking for ECAL" >&5
4578 echo $ECHO_N "checking for ECAL... $ECHO_C" >&6
4579
4580 if test -n "$PKG_CONFIG"; then
4581     if test -n "$ECAL_CFLAGS"; then
4582         pkg_cv_ECAL_CFLAGS="$ECAL_CFLAGS"
4583     else
4584         if test -n "$PKG_CONFIG" && \
4585     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
4586   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
4587   ac_status=$?
4588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589   (exit $ac_status); }; then
4590   pkg_cv_ECAL_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ecal_10" 2>/dev/null`
4591 else
4592   pkg_failed=yes
4593 fi
4594     fi
4595 else
4596         pkg_failed=untried
4597 fi
4598 if test -n "$PKG_CONFIG"; then
4599     if test -n "$ECAL_LIBS"; then
4600         pkg_cv_ECAL_LIBS="$ECAL_LIBS"
4601     else
4602         if test -n "$PKG_CONFIG" && \
4603     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ecal_10\"") >&5
4604   ($PKG_CONFIG --exists --print-errors "$pkg_ecal_10") 2>&5
4605   ac_status=$?
4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607   (exit $ac_status); }; then
4608   pkg_cv_ECAL_LIBS=`$PKG_CONFIG --libs "$pkg_ecal_10" 2>/dev/null`
4609 else
4610   pkg_failed=yes
4611 fi
4612     fi
4613 else
4614         pkg_failed=untried
4615 fi
4616
4617
4618
4619 if test $pkg_failed = yes; then
4620
4621 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4622         _pkg_short_errors_supported=yes
4623 else
4624         _pkg_short_errors_supported=no
4625 fi
4626         if test $_pkg_short_errors_supported = yes; then
4627                 ECAL_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ecal_10"`
4628         else
4629                 ECAL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ecal_10"`
4630         fi
4631         # Put the nasty error message in config.log where it belongs
4632         echo "$ECAL_PKG_ERRORS" >&5
4633
4634         ECALFOUND=no
4635 elif test $pkg_failed = untried; then
4636         ECALFOUND=no
4637 else
4638         ECAL_CFLAGS=$pkg_cv_ECAL_CFLAGS
4639         ECAL_LIBS=$pkg_cv_ECAL_LIBS
4640         echo "$as_me:$LINENO: result: yes" >&5
4641 echo "${ECHO_T}yes" >&6
4642         ECALFOUND=yes
4643 fi
4644         fi
4645 fi
4646
4647
4648 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $ECAL_CFLAGS"
4649
4650
4651 pkg_failed=no
4652 echo "$as_me:$LINENO: checking for EBOOK" >&5
4653 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6
4654
4655 if test -n "$PKG_CONFIG"; then
4656     if test -n "$EBOOK_CFLAGS"; then
4657         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
4658     else
4659         if test -n "$PKG_CONFIG" && \
4660     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
4661   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
4662   ac_status=$?
4663   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4664   (exit $ac_status); }; then
4665   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_12" 2>/dev/null`
4666 else
4667   pkg_failed=yes
4668 fi
4669     fi
4670 else
4671         pkg_failed=untried
4672 fi
4673 if test -n "$PKG_CONFIG"; then
4674     if test -n "$EBOOK_LIBS"; then
4675         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
4676     else
4677         if test -n "$PKG_CONFIG" && \
4678     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_12\"") >&5
4679   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_12") 2>&5
4680   ac_status=$?
4681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4682   (exit $ac_status); }; then
4683   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_12" 2>/dev/null`
4684 else
4685   pkg_failed=yes
4686 fi
4687     fi
4688 else
4689         pkg_failed=untried
4690 fi
4691
4692
4693
4694 if test $pkg_failed = yes; then
4695
4696 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4697         _pkg_short_errors_supported=yes
4698 else
4699         _pkg_short_errors_supported=no
4700 fi
4701         if test $_pkg_short_errors_supported = yes; then
4702                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_12"`
4703         else
4704                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_12"`
4705         fi
4706         # Put the nasty error message in config.log where it belongs
4707         echo "$EBOOK_PKG_ERRORS" >&5
4708
4709         EBOOKFOUND=no
4710 elif test $pkg_failed = untried; then
4711         EBOOKFOUND=no
4712 else
4713         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
4714         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
4715         echo "$as_me:$LINENO: result: yes" >&5
4716 echo "${ECHO_T}yes" >&6
4717         EBOOKFOUND=yes
4718 fi
4719 if test "x${EBOOKFOUND}" = "xno"; then
4720
4721 pkg_failed=no
4722 echo "$as_me:$LINENO: checking for EBOOK" >&5
4723 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6
4724
4725 if test -n "$PKG_CONFIG"; then
4726     if test -n "$EBOOK_CFLAGS"; then
4727         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
4728     else
4729         if test -n "$PKG_CONFIG" && \
4730     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
4731   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
4732   ac_status=$?
4733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4734   (exit $ac_status); }; then
4735   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_11" 2>/dev/null`
4736 else
4737   pkg_failed=yes
4738 fi
4739     fi
4740 else
4741         pkg_failed=untried
4742 fi
4743 if test -n "$PKG_CONFIG"; then
4744     if test -n "$EBOOK_LIBS"; then
4745         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
4746     else
4747         if test -n "$PKG_CONFIG" && \
4748     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_11\"") >&5
4749   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_11") 2>&5
4750   ac_status=$?
4751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752   (exit $ac_status); }; then
4753   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_11" 2>/dev/null`
4754 else
4755   pkg_failed=yes
4756 fi
4757     fi
4758 else
4759         pkg_failed=untried
4760 fi
4761
4762
4763
4764 if test $pkg_failed = yes; then
4765
4766 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4767         _pkg_short_errors_supported=yes
4768 else
4769         _pkg_short_errors_supported=no
4770 fi
4771         if test $_pkg_short_errors_supported = yes; then
4772                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_11"`
4773         else
4774                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_11"`
4775         fi
4776         # Put the nasty error message in config.log where it belongs
4777         echo "$EBOOK_PKG_ERRORS" >&5
4778
4779         EBOOKFOUND=no
4780 elif test $pkg_failed = untried; then
4781         EBOOKFOUND=no
4782 else
4783         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
4784         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
4785         echo "$as_me:$LINENO: result: yes" >&5
4786 echo "${ECHO_T}yes" >&6
4787         EBOOKFOUND=yes
4788 fi
4789         if test "x${EBOOKFOUND}" = "xno"; then
4790
4791 pkg_failed=no
4792 echo "$as_me:$LINENO: checking for EBOOK" >&5
4793 echo $ECHO_N "checking for EBOOK... $ECHO_C" >&6
4794
4795 if test -n "$PKG_CONFIG"; then
4796     if test -n "$EBOOK_CFLAGS"; then
4797         pkg_cv_EBOOK_CFLAGS="$EBOOK_CFLAGS"
4798     else
4799         if test -n "$PKG_CONFIG" && \
4800     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
4801   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
4802   ac_status=$?
4803   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804   (exit $ac_status); }; then
4805   pkg_cv_EBOOK_CFLAGS=`$PKG_CONFIG --cflags "$pkg_ebook_10" 2>/dev/null`
4806 else
4807   pkg_failed=yes
4808 fi
4809     fi
4810 else
4811         pkg_failed=untried
4812 fi
4813 if test -n "$PKG_CONFIG"; then
4814     if test -n "$EBOOK_LIBS"; then
4815         pkg_cv_EBOOK_LIBS="$EBOOK_LIBS"
4816     else
4817         if test -n "$PKG_CONFIG" && \
4818     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_ebook_10\"") >&5
4819   ($PKG_CONFIG --exists --print-errors "$pkg_ebook_10") 2>&5
4820   ac_status=$?
4821   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4822   (exit $ac_status); }; then
4823   pkg_cv_EBOOK_LIBS=`$PKG_CONFIG --libs "$pkg_ebook_10" 2>/dev/null`
4824 else
4825   pkg_failed=yes
4826 fi
4827     fi
4828 else
4829         pkg_failed=untried
4830 fi
4831
4832
4833
4834 if test $pkg_failed = yes; then
4835
4836 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
4837         _pkg_short_errors_supported=yes
4838 else
4839         _pkg_short_errors_supported=no
4840 fi
4841         if test $_pkg_short_errors_supported = yes; then
4842                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_ebook_10"`
4843         else
4844                 EBOOK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_ebook_10"`
4845         fi
4846         # Put the nasty error message in config.log where it belongs
4847         echo "$EBOOK_PKG_ERRORS" >&5
4848
4849         EBOOKFOUND=no
4850 elif test $pkg_failed = untried; then
4851         EBOOKFOUND=no
4852 else
4853         EBOOK_CFLAGS=$pkg_cv_EBOOK_CFLAGS
4854         EBOOK_LIBS=$pkg_cv_EBOOK_LIBS
4855         echo "$as_me:$LINENO: result: yes" >&5
4856 echo "${ECHO_T}yes" >&6
4857         EBOOKFOUND=yes
4858 fi
4859         fi
4860 fi
4861
4862
4863 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $EBOOK_CFLAGS"
4864
4865
4866         # Check whether --enable-ebook or --disable-ebook was given.
4867 if test "${enable_ebook+set}" = set; then
4868   enableval="$enable_ebook"
4869   enable_ebook="$enableval"
4870 else
4871   enable_ebook=$EBOOKFOUND
4872 fi;
4873         BACKENDS="$BACKENDS ebook"
4874         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ebook | tr a-z A-Z`"
4875         for source in evolution; do
4876             SYNCSOURCES="$SYNCSOURCES backends/evolution/syncebook.la"
4877         done
4878
4879
4880         # Check whether --enable-ecal or --disable-ecal was given.
4881 if test "${enable_ecal+set}" = set; then
4882   enableval="$enable_ecal"
4883   enable_ecal="$enableval"
4884 else
4885   enable_ecal=$ECALFOUND
4886 fi;
4887         BACKENDS="$BACKENDS ecal"
4888         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo ecal | tr a-z A-Z`"
4889         for source in evolution; do
4890             SYNCSOURCES="$SYNCSOURCES backends/evolution/syncecal.la"
4891         done
4892
4893
4894 enable_evo="no"
4895 if test "$enable_ebook" = "yes"; then
4896         test "x${EBOOKFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&5
4897 echo "$as_me: error: --enable-ebook requires pkg-config information for libebook, which was not found" >&2;}
4898    { (exit 1); exit 1; }; }
4899
4900 cat >>confdefs.h <<\_ACEOF
4901 #define ENABLE_EBOOK 1
4902 _ACEOF
4903
4904         enable_evo="yes"
4905 fi
4906
4907
4908
4909 if test "$enable_ecal" == "yes"; then
4910   ENABLE_ECAL_TRUE=
4911   ENABLE_ECAL_FALSE='#'
4912 else
4913   ENABLE_ECAL_TRUE='#'
4914   ENABLE_ECAL_FALSE=
4915 fi
4916
4917 if test "$enable_ecal" = "yes"; then
4918         test "x${ECALFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&5
4919 echo "$as_me: error: --enable-ecal requires pkg-config information for libecal, which was not found\"" >&2;}
4920    { (exit 1); exit 1; }; }
4921
4922 cat >>confdefs.h <<\_ACEOF
4923 #define ENABLE_ECAL 1
4924 _ACEOF
4925
4926         enable_evo="yes"
4927 fi
4928
4929 need_glib="yes"
4930
4931 if test "$enable_evo" = "yes"; then
4932         if test "$EDSFOUND" = "yes"; then
4933
4934 cat >>confdefs.h <<\_ACEOF
4935 #define HAVE_EDS 1
4936 _ACEOF
4937
4938         else
4939                 { { echo "$as_me:$LINENO: error: $evomissing" >&5
4940 echo "$as_me: error: $evomissing" >&2;}
4941    { (exit 1); exit 1; }; }
4942         fi
4943 else
4944         EPACKAGE_CFLAGS=
4945         EPACKAGE_LIBS=
4946 fi
4947           ac_config_files="$ac_config_files src/backends/evolution/Makefile"
4948
4949 # ^^^^^^^^^^^^^^ src/backends/evolution/configure-sub.in ^^^^^^^^^^^^^^
4950
4951 # vvvvvvvvvvvvvv src/backends/file/configure-sub.in vvvvvvvvvvvvvv
4952
4953
4954 FILE_CFLAGS=
4955 FILE_LIBS=
4956
4957
4958
4959 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $FILE_CFLAGS"
4960
4961
4962         # Check whether --enable-file or --disable-file was given.
4963 if test "${enable_file+set}" = set; then
4964   enableval="$enable_file"
4965   enable_file="$enableval"
4966 else
4967   enable_file="yes"
4968
4969 fi;
4970         BACKENDS="$BACKENDS file"
4971         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo file | tr a-z A-Z`"
4972         for source in file; do
4973             SYNCSOURCES="$SYNCSOURCES backends/file/syncfile.la"
4974         done
4975
4976
4977 if test "$enable_file" = "yes"; then
4978
4979 cat >>confdefs.h <<\_ACEOF
4980 #define ENABLE_FILE 1
4981 _ACEOF
4982
4983 fi
4984           ac_config_files="$ac_config_files src/backends/file/Makefile"
4985
4986 # ^^^^^^^^^^^^^^ src/backends/file/configure-sub.in ^^^^^^^^^^^^^^
4987
4988 # vvvvvvvvvvvvvv src/backends/sqlite/configure-sub.in vvvvvvvvvvvvvv
4989
4990
4991 pkg_failed=no
4992 echo "$as_me:$LINENO: checking for SQLITE" >&5
4993 echo $ECHO_N "checking for SQLITE... $ECHO_C" >&6
4994
4995 if test -n "$PKG_CONFIG"; then
4996     if test -n "$SQLITE_CFLAGS"; then
4997         pkg_cv_SQLITE_CFLAGS="$SQLITE_CFLAGS"
4998     else
4999         if test -n "$PKG_CONFIG" && \
5000     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
5001   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
5002   ac_status=$?
5003   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5004   (exit $ac_status); }; then
5005   pkg_cv_SQLITE_CFLAGS=`$PKG_CONFIG --cflags "sqlite3" 2>/dev/null`
5006 else
5007   pkg_failed=yes
5008 fi
5009     fi
5010 else
5011         pkg_failed=untried
5012 fi
5013 if test -n "$PKG_CONFIG"; then
5014     if test -n "$SQLITE_LIBS"; then
5015         pkg_cv_SQLITE_LIBS="$SQLITE_LIBS"
5016     else
5017         if test -n "$PKG_CONFIG" && \
5018     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"sqlite3\"") >&5
5019   ($PKG_CONFIG --exists --print-errors "sqlite3") 2>&5
5020   ac_status=$?
5021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022   (exit $ac_status); }; then
5023   pkg_cv_SQLITE_LIBS=`$PKG_CONFIG --libs "sqlite3" 2>/dev/null`
5024 else
5025   pkg_failed=yes
5026 fi
5027     fi
5028 else
5029         pkg_failed=untried
5030 fi
5031
5032
5033
5034 if test $pkg_failed = yes; then
5035
5036 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5037         _pkg_short_errors_supported=yes
5038 else
5039         _pkg_short_errors_supported=no
5040 fi
5041         if test $_pkg_short_errors_supported = yes; then
5042                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "sqlite3"`
5043         else
5044                 SQLITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "sqlite3"`
5045         fi
5046         # Put the nasty error message in config.log where it belongs
5047         echo "$SQLITE_PKG_ERRORS" >&5
5048
5049         SQLITEFOUND=no
5050 elif test $pkg_failed = untried; then
5051         SQLITEFOUND=no
5052 else
5053         SQLITE_CFLAGS=$pkg_cv_SQLITE_CFLAGS
5054         SQLITE_LIBS=$pkg_cv_SQLITE_LIBS
5055         echo "$as_me:$LINENO: result: yes" >&5
5056 echo "${ECHO_T}yes" >&6
5057         SQLITEFOUND=yes
5058 fi
5059
5060
5061 BACKEND_CPPFLAGS="$BACKEND_CPPFLAGS $SQLITE_CFLAGS"
5062
5063
5064         # Check whether --enable-sqlite or --disable-sqlite was given.
5065 if test "${enable_sqlite+set}" = set; then
5066   enableval="$enable_sqlite"
5067   enable_sqlite="$enableval"
5068 else
5069   enable_sqlite="no"
5070 fi;
5071         BACKENDS="$BACKENDS sqlite"
5072         BACKEND_DEFINES="$BACKEND_DEFINES ENABLE_`echo sqlite | tr a-z A-Z`"
5073         for source in sqlite; do
5074             SYNCSOURCES="$SYNCSOURCES backends/sqlite/syncsqlite.la"
5075         done
5076
5077
5078 if test "$enable_sqlite" = "yes"; then
5079         test "x${SQLITEFOUND}" == "xyes" || { { echo "$as_me:$LINENO: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&5
5080 echo "$as_me: error: --enable-sqlite requires pkg-config information for sqlite3, which was not found" >&2;}
5081    { (exit 1); exit 1; }; }
5082
5083 cat >>confdefs.h <<\_ACEOF
5084 #define ENABLE_SQLITE 1
5085 _ACEOF
5086
5087 else
5088         # avoid linking against it if not needed
5089         SQLITE_CFLAGS=
5090         SQLITE_LIBS=
5091 fi
5092           ac_config_files="$ac_config_files src/backends/sqlite/Makefile"
5093
5094 # ^^^^^^^^^^^^^^ src/backends/sqlite/configure-sub.in ^^^^^^^^^^^^^^
5095
5096
5097
5098
5099 enable_any="no"
5100 backend_is_enabled () {
5101     eval echo \${enable_${1}}
5102 }
5103 for backend in $BACKENDS; do
5104     if test `backend_is_enabled $backend` == "yes"; then
5105        enable_any="yes"
5106        SYNCEVOLUTION_MODULES="$SYNCEVOLUTION_MODULES src/backends/sync${backend}.la"
5107     fi
5108 done
5109
5110 if test "$enable_any" = "no"; then
5111         { { echo "$as_me:$LINENO: error: no backend enabled - refusing to continue: $anymissing" >&5
5112 echo "$as_me: error: no backend enabled - refusing to continue: $anymissing" >&2;}
5113    { (exit 1); exit 1; }; }
5114 fi
5115
5116
5117 pkg_failed=no
5118 echo "$as_me:$LINENO: checking for GLIB" >&5
5119 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
5120
5121 if test -n "$PKG_CONFIG"; then
5122     if test -n "$GLIB_CFLAGS"; then
5123         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
5124     else
5125         if test -n "$PKG_CONFIG" && \
5126     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
5127   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
5128   ac_status=$?
5129   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130   (exit $ac_status); }; then
5131   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib-2.0"" 2>/dev/null`
5132 else
5133   pkg_failed=yes
5134 fi
5135     fi
5136 else
5137         pkg_failed=untried
5138 fi
5139 if test -n "$PKG_CONFIG"; then
5140     if test -n "$GLIB_LIBS"; then
5141         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
5142     else
5143         if test -n "$PKG_CONFIG" && \
5144     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib-2.0\"\"") >&5
5145   ($PKG_CONFIG --exists --print-errors ""glib-2.0"") 2>&5
5146   ac_status=$?
5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148   (exit $ac_status); }; then
5149   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib-2.0"" 2>/dev/null`
5150 else
5151   pkg_failed=yes
5152 fi
5153     fi
5154 else
5155         pkg_failed=untried
5156 fi
5157
5158
5159
5160 if test $pkg_failed = yes; then
5161
5162 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5163         _pkg_short_errors_supported=yes
5164 else
5165         _pkg_short_errors_supported=no
5166 fi
5167         if test $_pkg_short_errors_supported = yes; then
5168                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib-2.0""`
5169         else
5170                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib-2.0""`
5171         fi
5172         # Put the nasty error message in config.log where it belongs
5173         echo "$GLIB_PKG_ERRORS" >&5
5174
5175         GLIBFOUND=no
5176 elif test $pkg_failed = untried; then
5177         GLIBFOUND=no
5178 else
5179         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
5180         GLIB_LIBS=$pkg_cv_GLIB_LIBS
5181         echo "$as_me:$LINENO: result: yes" >&5
5182 echo "${ECHO_T}yes" >&6
5183         GLIBFOUND=yes
5184 fi
5185 if test "x${GLIBFOUND}" = "xno"; then
5186
5187 pkg_failed=no
5188 echo "$as_me:$LINENO: checking for GLIB" >&5
5189 echo $ECHO_N "checking for GLIB... $ECHO_C" >&6
5190
5191 if test -n "$PKG_CONFIG"; then
5192     if test -n "$GLIB_CFLAGS"; then
5193         pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
5194     else
5195         if test -n "$PKG_CONFIG" && \
5196     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib\"\"") >&5
5197   ($PKG_CONFIG --exists --print-errors ""glib"") 2>&5
5198   ac_status=$?
5199   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5200   (exit $ac_status); }; then
5201   pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags ""glib"" 2>/dev/null`
5202 else
5203   pkg_failed=yes
5204 fi
5205     fi
5206 else
5207         pkg_failed=untried
5208 fi
5209 if test -n "$PKG_CONFIG"; then
5210     if test -n "$GLIB_LIBS"; then
5211         pkg_cv_GLIB_LIBS="$GLIB_LIBS"
5212     else
5213         if test -n "$PKG_CONFIG" && \
5214     { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\"glib\"\"") >&5
5215   ($PKG_CONFIG --exists --print-errors ""glib"") 2>&5
5216   ac_status=$?
5217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5218   (exit $ac_status); }; then
5219   pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs ""glib"" 2>/dev/null`
5220 else
5221   pkg_failed=yes
5222 fi
5223     fi
5224 else
5225         pkg_failed=untried
5226 fi
5227
5228
5229
5230 if test $pkg_failed = yes; then
5231
5232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5233         _pkg_short_errors_supported=yes
5234 else
5235         _pkg_short_errors_supported=no
5236 fi
5237         if test $_pkg_short_errors_supported = yes; then
5238                 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors ""glib""`
5239         else
5240                 GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors ""glib""`
5241         fi
5242         # Put the nasty error message in config.log where it belongs
5243         echo "$GLIB_PKG_ERRORS" >&5
5244
5245         GLIBFOUND=no
5246 elif test $pkg_failed = untried; then
5247         GLIBFOUND=no
5248 else
5249         GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
5250         GLIB_LIBS=$pkg_cv_GLIB_LIBS
5251         echo "$as_me:$LINENO: result: yes" >&5
5252 echo "${ECHO_T}yes" >&6
5253         GLIBFOUND=yes
5254 fi
5255 fi
5256
5257
5258
5259 ac_ext=cc
5260 ac_cpp='$CXXCPP $CPPFLAGS'
5261 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5262 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5263 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5264 if test -n "$ac_tool_prefix"; then
5265   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5266   do
5267     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5268 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5269 echo "$as_me:$LINENO: checking for $ac_word" >&5
5270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5271 if test "${ac_cv_prog_CXX+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   if test -n "$CXX"; then
5275   ac_cv_prog_CXX="$CXX" # Let the user override the test.
5276 else
5277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5278 for as_dir in $PATH
5279 do
5280   IFS=$as_save_IFS
5281   test -z "$as_dir" && as_dir=.
5282   for ac_exec_ext in '' $ac_executable_extensions; do
5283   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5284     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5285     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5286     break 2
5287   fi
5288 done
5289 done
5290
5291 fi
5292 fi
5293 CXX=$ac_cv_prog_CXX
5294 if test -n "$CXX"; then
5295   echo "$as_me:$LINENO: result: $CXX" >&5
5296 echo "${ECHO_T}$CXX" >&6
5297 else
5298   echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6
5300 fi
5301
5302     test -n "$CXX" && break
5303   done
5304 fi
5305 if test -z "$CXX"; then
5306   ac_ct_CXX=$CXX
5307   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
5308 do
5309   # Extract the first word of "$ac_prog", so it can be a program name with args.
5310 set dummy $ac_prog; ac_word=$2
5311 echo "$as_me:$LINENO: checking for $ac_word" >&5
5312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5313 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5314   echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316   if test -n "$ac_ct_CXX"; then
5317   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5318 else
5319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5320 for as_dir in $PATH
5321 do
5322   IFS=$as_save_IFS
5323   test -z "$as_dir" && as_dir=.
5324   for ac_exec_ext in '' $ac_executable_extensions; do
5325   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5326     ac_cv_prog_ac_ct_CXX="$ac_prog"
5327     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5328     break 2
5329   fi
5330 done
5331 done
5332
5333 fi
5334 fi
5335 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5336 if test -n "$ac_ct_CXX"; then
5337   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5338 echo "${ECHO_T}$ac_ct_CXX" >&6
5339 else
5340   echo "$as_me:$LINENO: result: no" >&5
5341 echo "${ECHO_T}no" >&6
5342 fi
5343
5344   test -n "$ac_ct_CXX" && break
5345 done
5346 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
5347
5348   CXX=$ac_ct_CXX
5349 fi
5350
5351
5352 # Provide some information about the compiler.
5353 echo "$as_me:$LINENO:" \
5354      "checking for C++ compiler version" >&5
5355 ac_compiler=`set X $ac_compile; echo $2`
5356 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5357   (eval $ac_compiler --version </dev/null >&5) 2>&5
5358   ac_status=$?
5359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5360   (exit $ac_status); }
5361 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5362   (eval $ac_compiler -v </dev/null >&5) 2>&5
5363   ac_status=$?
5364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365   (exit $ac_status); }
5366 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5367   (eval $ac_compiler -V </dev/null >&5) 2>&5
5368   ac_status=$?
5369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370   (exit $ac_status); }
5371
5372 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5373 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
5374 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5375   echo $ECHO_N "(cached) $ECHO_C" >&6
5376 else
5377   cat >conftest.$ac_ext <<_ACEOF
5378 /* confdefs.h.  */
5379 _ACEOF
5380 cat confdefs.h >>conftest.$ac_ext
5381 cat >>conftest.$ac_ext <<_ACEOF
5382 /* end confdefs.h.  */
5383
5384 int
5385 main ()
5386 {
5387 #ifndef __GNUC__
5388        choke me
5389 #endif
5390
5391   ;
5392   return 0;
5393 }
5394 _ACEOF
5395 rm -f conftest.$ac_objext
5396 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5397   (eval $ac_compile) 2>conftest.er1
5398   ac_status=$?
5399   grep -v '^ *+' conftest.er1 >conftest.err
5400   rm -f conftest.er1
5401   cat conftest.err >&5
5402   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403   (exit $ac_status); } &&
5404          { ac_try='test -z "$ac_cxx_werror_flag"
5405                          || test ! -s conftest.err'
5406   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5407   (eval $ac_try) 2>&5
5408   ac_status=$?
5409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5410   (exit $ac_status); }; } &&
5411          { ac_try='test -s conftest.$ac_objext'
5412   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5413   (eval $ac_try) 2>&5
5414   ac_status=$?
5415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5416   (exit $ac_status); }; }; then
5417   ac_compiler_gnu=yes
5418 else
5419   echo "$as_me: failed program was:" >&5
5420 sed 's/^/| /' conftest.$ac_ext >&5
5421
5422 ac_compiler_gnu=no
5423 fi
5424 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5425 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5426
5427 fi
5428 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5429 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
5430 GXX=`test $ac_compiler_gnu = yes && echo yes`
5431 ac_test_CXXFLAGS=${CXXFLAGS+set}
5432 ac_save_CXXFLAGS=$CXXFLAGS
5433 CXXFLAGS="-g"
5434 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5435 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
5436 if test "${ac_cv_prog_cxx_g+set}" = set; then
5437   echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439   cat >conftest.$ac_ext <<_ACEOF
5440 /* confdefs.h.  */
5441 _ACEOF
5442 cat confdefs.h >>conftest.$ac_ext
5443 cat >>conftest.$ac_ext <<_ACEOF
5444 /* end confdefs.h.  */
5445
5446 int
5447 main ()
5448 {
5449
5450   ;
5451   return 0;
5452 }
5453 _ACEOF
5454 rm -f conftest.$ac_objext
5455 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5456   (eval $ac_compile) 2>conftest.er1
5457   ac_status=$?
5458   grep -v '^ *+' conftest.er1 >conftest.err
5459   rm -f conftest.er1
5460   cat conftest.err >&5
5461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5462   (exit $ac_status); } &&
5463          { ac_try='test -z "$ac_cxx_werror_flag"
5464                          || test ! -s conftest.err'
5465   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5466   (eval $ac_try) 2>&5
5467   ac_status=$?
5468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5469   (exit $ac_status); }; } &&
5470          { ac_try='test -s conftest.$ac_objext'
5471   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5472   (eval $ac_try) 2>&5
5473   ac_status=$?
5474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475   (exit $ac_status); }; }; then
5476   ac_cv_prog_cxx_g=yes
5477 else
5478   echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.$ac_ext >&5
5480
5481 ac_cv_prog_cxx_g=no
5482 fi
5483 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5484 fi
5485 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5486 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
5487 if test "$ac_test_CXXFLAGS" = set; then
5488   CXXFLAGS=$ac_save_CXXFLAGS
5489 elif test $ac_cv_prog_cxx_g = yes; then
5490   if test "$GXX" = yes; then
5491     CXXFLAGS="-g -O2"
5492   else
5493     CXXFLAGS="-g"
5494   fi
5495 else
5496   if test "$GXX" = yes; then
5497     CXXFLAGS="-O2"
5498   else
5499     CXXFLAGS=
5500   fi
5501 fi
5502 for ac_declaration in \
5503    '' \
5504    'extern "C" void std::exit (int) throw (); using std::exit;' \
5505    'extern "C" void std::exit (int); using std::exit;' \
5506    'extern "C" void exit (int) throw ();' \
5507    'extern "C" void exit (int);' \
5508    'void exit (int);'
5509 do
5510   cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h.  */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h.  */
5516 $ac_declaration
5517 #include <stdlib.h>
5518 int
5519 main ()
5520 {
5521 exit (42);
5522   ;
5523   return 0;
5524 }
5525 _ACEOF
5526 rm -f conftest.$ac_objext
5527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5528   (eval $ac_compile) 2>conftest.er1
5529   ac_status=$?
5530   grep -v '^ *+' conftest.er1 >conftest.err
5531   rm -f conftest.er1
5532   cat conftest.err >&5
5533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5534   (exit $ac_status); } &&
5535          { ac_try='test -z "$ac_cxx_werror_flag"
5536                          || test ! -s conftest.err'
5537   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5538   (eval $ac_try) 2>&5
5539   ac_status=$?
5540   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5541   (exit $ac_status); }; } &&
5542          { ac_try='test -s conftest.$ac_objext'
5543   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5544   (eval $ac_try) 2>&5
5545   ac_status=$?
5546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547   (exit $ac_status); }; }; then
5548   :
5549 else
5550   echo "$as_me: failed program was:" >&5
5551 sed 's/^/| /' conftest.$ac_ext >&5
5552
5553 continue
5554 fi
5555 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5556   cat >conftest.$ac_ext <<_ACEOF
5557 /* confdefs.h.  */
5558 _ACEOF
5559 cat confdefs.h >>conftest.$ac_ext
5560 cat >>conftest.$ac_ext <<_ACEOF
5561 /* end confdefs.h.  */
5562 $ac_declaration
5563 int
5564 main ()
5565 {
5566 exit (42);
5567   ;
5568   return 0;
5569 }
5570 _ACEOF
5571 rm -f conftest.$ac_objext
5572 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5573   (eval $ac_compile) 2>conftest.er1
5574   ac_status=$?
5575   grep -v '^ *+' conftest.er1 >conftest.err
5576   rm -f conftest.er1
5577   cat conftest.err >&5
5578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579   (exit $ac_status); } &&
5580          { ac_try='test -z "$ac_cxx_werror_flag"
5581                          || test ! -s conftest.err'
5582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5583   (eval $ac_try) 2>&5
5584   ac_status=$?
5585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586   (exit $ac_status); }; } &&
5587          { ac_try='test -s conftest.$ac_objext'
5588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589   (eval $ac_try) 2>&5
5590   ac_status=$?
5591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592   (exit $ac_status); }; }; then
5593   break
5594 else
5595   echo "$as_me: failed program was:" >&5
5596 sed 's/^/| /' conftest.$ac_ext >&5
5597
5598 fi
5599 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5600 done
5601 rm -f conftest*
5602 if test -n "$ac_declaration"; then
5603   echo '#ifdef __cplusplus' >>confdefs.h
5604   echo $ac_declaration      >>confdefs.h
5605   echo '#endif'             >>confdefs.h
5606 fi
5607
5608 ac_ext=c
5609 ac_cpp='$CPP $CPPFLAGS'
5610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5613
5614 depcc="$CXX"  am_compiler_list=
5615
5616 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5617 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
5618 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5619   echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5622   # We make a subdir and do the tests there.  Otherwise we can end up
5623   # making bogus files that we don't know about and never remove.  For
5624   # instance it was reported that on HP-UX the gcc test will end up
5625   # making a dummy file named `D' -- because `-MD' means `put the output
5626   # in D'.
5627   mkdir conftest.dir
5628   # Copy depcomp to subdir because otherwise we won't find it if we're
5629   # using a relative directory.
5630   cp "$am_depcomp" conftest.dir
5631   cd conftest.dir
5632   # We will build objects and dependencies in a subdirectory because
5633   # it helps to detect inapplicable dependency modes.  For instance
5634   # both Tru64's cc and ICC support -MD to output dependencies as a
5635   # side effect of compilation, but ICC will put the dependencies in
5636   # the current directory while Tru64 will put them in the object
5637   # directory.
5638   mkdir sub
5639
5640   am_cv_CXX_dependencies_compiler_type=none
5641   if test "$am_compiler_list" = ""; then
5642      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5643   fi
5644   for depmode in $am_compiler_list; do
5645     # Setup a source with many dependencies, because some compilers
5646     # like to wrap large dependency lists on column 80 (with \), and
5647     # we should not choose a depcomp mode which is confused by this.
5648     #
5649     # We need to recreate these files for each test, as the compiler may
5650     # overwrite some of them when testing with obscure command lines.
5651     # This happens at least with the AIX C compiler.
5652     : > sub/conftest.c
5653     for i in 1 2 3 4 5 6; do
5654       echo '#include "conftst'$i'.h"' >> sub/conftest.c
5655       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5656       # Solaris 8's {/usr,}/bin/sh.
5657       touch sub/conftst$i.h
5658     done
5659     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5660
5661     case $depmode in
5662     nosideeffect)
5663       # after this tag, mechanisms are not by side-effect, so they'll
5664       # only be used when explicitly requested
5665       if test "x$enable_dependency_tracking" = xyes; then
5666         continue
5667       else
5668         break
5669       fi
5670       ;;
5671     none) break ;;
5672     esac
5673     # We check with `-c' and `-o' for the sake of the "dashmstdout"
5674     # mode.  It turns out that the SunPro C++ compiler does not properly
5675     # handle `-M -o', and we need to detect this.
5676     if depmode=$depmode \
5677        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5678        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5679        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5680          >/dev/null 2>conftest.err &&
5681        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5682        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5683        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5684       # icc doesn't choke on unknown options, it will just issue warnings
5685       # or remarks (even with -Werror).  So we grep stderr for any message
5686       # that says an option was ignored or not supported.
5687       # When given -MP, icc 7.0 and 7.1 complain thusly:
5688       #   icc: Command line warning: ignoring option '-M'; no argument required
5689       # The diagnosis changed in icc 8.0:
5690       #   icc: Command line remark: option '-MP' not supported
5691       if (grep 'ignoring option' conftest.err ||
5692           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5693         am_cv_CXX_dependencies_compiler_type=$depmode
5694         break
5695       fi
5696     fi
5697   done
5698
5699   cd ..
5700   rm -rf conftest.dir
5701 else
5702   am_cv_CXX_dependencies_compiler_type=none
5703 fi
5704
5705 fi
5706 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5707 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
5708 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5709
5710
5711
5712 if
5713   test "x$enable_dependency_tracking" != xno \
5714   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5715   am__fastdepCXX_TRUE=
5716   am__fastdepCXX_FALSE='#'
5717 else
5718   am__fastdepCXX_TRUE='#'
5719   am__fastdepCXX_FALSE=
5720 fi
5721
5722
5723 # Check whether --enable-shared or --disable-shared was given.
5724 if test "${enable_shared+set}" = set; then
5725   enableval="$enable_shared"
5726   p=${PACKAGE-default}
5727     case $enableval in
5728     yes) enable_shared=yes ;;
5729     no) enable_shared=no ;;
5730     *)
5731       enable_shared=no
5732       # Look at the argument we got.  We use all the common list separators.
5733       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5734       for pkg in $enableval; do
5735         IFS="$lt_save_ifs"
5736         if test "X$pkg" = "X$p"; then
5737           enable_shared=yes
5738         fi
5739       done
5740       IFS="$lt_save_ifs"
5741       ;;
5742     esac
5743 else
5744   enable_shared=yes
5745 fi;
5746
5747 # Check whether --enable-static or --disable-static was given.
5748 if test "${enable_static+set}" = set; then
5749   enableval="$enable_static"
5750   p=${PACKAGE-default}
5751     case $enableval in
5752     yes) enable_static=yes ;;
5753     no) enable_static=no ;;
5754     *)
5755      enable_static=no
5756       # Look at the argument we got.  We use all the common list separators.
5757       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5758       for pkg in $enableval; do
5759         IFS="$lt_save_ifs"
5760         if test "X$pkg" = "X$p"; then
5761           enable_static=yes
5762         fi
5763       done
5764       IFS="$lt_save_ifs"
5765       ;;
5766     esac
5767 else
5768   enable_static=yes
5769 fi;
5770
5771 # Check whether --enable-fast-install or --disable-fast-install was given.
5772 if test "${enable_fast_install+set}" = set; then
5773   enableval="$enable_fast_install"
5774   p=${PACKAGE-default}
5775     case $enableval in
5776     yes) enable_fast_install=yes ;;
5777     no) enable_fast_install=no ;;
5778     *)
5779       enable_fast_install=no
5780       # Look at the argument we got.  We use all the common list separators.
5781       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5782       for pkg in $enableval; do
5783         IFS="$lt_save_ifs"
5784         if test "X$pkg" = "X$p"; then
5785           enable_fast_install=yes
5786         fi
5787       done
5788       IFS="$lt_save_ifs"
5789       ;;
5790     esac
5791 else
5792   enable_fast_install=yes
5793 fi;
5794
5795 # Make sure we can run config.sub.
5796 $ac_config_sub sun4 >/dev/null 2>&1 ||
5797   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
5798 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
5799    { (exit 1); exit 1; }; }
5800
5801 echo "$as_me:$LINENO: checking build system type" >&5
5802 echo $ECHO_N "checking build system type... $ECHO_C" >&6
5803 if test "${ac_cv_build+set}" = set; then
5804   echo $ECHO_N "(cached) $ECHO_C" >&6
5805 else
5806   ac_cv_build_alias=$build_alias
5807 test -z "$ac_cv_build_alias" &&
5808   ac_cv_build_alias=`$ac_config_guess`
5809 test -z "$ac_cv_build_alias" &&
5810   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
5811 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
5812    { (exit 1); exit 1; }; }
5813 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
5814   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
5815 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
5816    { (exit 1); exit 1; }; }
5817
5818 fi
5819 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
5820 echo "${ECHO_T}$ac_cv_build" >&6
5821 build=$ac_cv_build
5822 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5823 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5824 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5825
5826
5827 echo "$as_me:$LINENO: checking host system type" >&5
5828 echo $ECHO_N "checking host system type... $ECHO_C" >&6
5829 if test "${ac_cv_host+set}" = set; then
5830   echo $ECHO_N "(cached) $ECHO_C" >&6
5831 else
5832   ac_cv_host_alias=$host_alias
5833 test -z "$ac_cv_host_alias" &&
5834   ac_cv_host_alias=$ac_cv_build_alias
5835 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
5836   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
5837 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
5838    { (exit 1); exit 1; }; }
5839
5840 fi
5841 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
5842 echo "${ECHO_T}$ac_cv_host" >&6
5843 host=$ac_cv_host
5844 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
5845 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
5846 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
5847
5848
5849 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5850 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5851 if test "${lt_cv_path_SED+set}" = set; then
5852   echo $ECHO_N "(cached) $ECHO_C" >&6
5853 else
5854   # Loop through the user's path and test for sed and gsed.
5855 # Then use that list of sed's as ones to test for truncation.
5856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 for as_dir in $PATH
5858 do
5859   IFS=$as_save_IFS
5860   test -z "$as_dir" && as_dir=.
5861   for lt_ac_prog in sed gsed; do
5862     for ac_exec_ext in '' $ac_executable_extensions; do
5863       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5864         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5865       fi
5866     done
5867   done
5868 done
5869 lt_ac_max=0
5870 lt_ac_count=0
5871 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5872 # along with /bin/sed that truncates output.
5873 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5874   test ! -f $lt_ac_sed && continue
5875   cat /dev/null > conftest.in
5876   lt_ac_count=0
5877   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5878   # Check for GNU sed and select it if it is found.
5879   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5880     lt_cv_path_SED=$lt_ac_sed
5881     break
5882   fi
5883   while true; do
5884     cat conftest.in conftest.in >conftest.tmp
5885     mv conftest.tmp conftest.in
5886     cp conftest.in conftest.nl
5887     echo >>conftest.nl
5888     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5889     cmp -s conftest.out conftest.nl || break
5890     # 10000 chars as input seems more than enough
5891     test $lt_ac_count -gt 10 && break
5892     lt_ac_count=`expr $lt_ac_count + 1`
5893     if test $lt_ac_count -gt $lt_ac_max; then
5894       lt_ac_max=$lt_ac_count
5895       lt_cv_path_SED=$lt_ac_sed
5896     fi
5897   done
5898 done
5899
5900 fi
5901
5902 SED=$lt_cv_path_SED
5903 echo "$as_me:$LINENO: result: $SED" >&5
5904 echo "${ECHO_T}$SED" >&6
5905
5906
5907 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5908 if test "${with_gnu_ld+set}" = set; then
5909   withval="$with_gnu_ld"
5910   test "$withval" = no || with_gnu_ld=yes
5911 else
5912   with_gnu_ld=no
5913 fi;
5914 ac_prog=ld
5915 if test "$GCC" = yes; then
5916   # Check if gcc -print-prog-name=ld gives a path.
5917   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5918 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5919   case $host in
5920   *-*-mingw*)
5921     # gcc leaves a trailing carriage return which upsets mingw
5922     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5923   *)
5924     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5925   esac
5926   case $ac_prog in
5927     # Accept absolute paths.
5928     [\\/]* | ?:[\\/]*)
5929       re_direlt='/[^/][^/]*/\.\./'
5930       # Canonicalize the pathname of ld
5931       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5932       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5933         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5934       done
5935       test -z "$LD" && LD="$ac_prog"
5936       ;;
5937   "")
5938     # If it fails, then pretend we aren't using GCC.
5939     ac_prog=ld
5940     ;;
5941   *)
5942     # If it is relative, then search for the first ld in PATH.
5943     with_gnu_ld=unknown
5944     ;;
5945   esac
5946 elif test "$with_gnu_ld" = yes; then
5947   echo "$as_me:$LINENO: checking for GNU ld" >&5
5948 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5949 else
5950   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5951 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5952 fi
5953 if test "${lt_cv_path_LD+set}" = set; then
5954   echo $ECHO_N "(cached) $ECHO_C" >&6
5955 else
5956   if test -z "$LD"; then
5957   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5958   for ac_dir in $PATH; do
5959     IFS="$lt_save_ifs"
5960     test -z "$ac_dir" && ac_dir=.
5961     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5962       lt_cv_path_LD="$ac_dir/$ac_prog"
5963       # Check to see if the program is GNU ld.  I'd rather use --version,
5964       # but apparently some variants of GNU ld only accept -v.
5965       # Break only if it was the GNU/non-GNU ld that we prefer.
5966       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5967       *GNU* | *'with BFD'*)
5968         test "$with_gnu_ld" != no && break
5969         ;;
5970       *)
5971         test "$with_gnu_ld" != yes && break
5972         ;;
5973       esac
5974     fi
5975   done
5976   IFS="$lt_save_ifs"
5977 else
5978   lt_cv_path_LD="$LD" # Let the user override the test with a path.
5979 fi
5980 fi
5981
5982 LD="$lt_cv_path_LD"
5983 if test -n "$LD"; then
5984   echo "$as_me:$LINENO: result: $LD" >&5
5985 echo "${ECHO_T}$LD" >&6
5986 else
5987   echo "$as_me:$LINENO: result: no" >&5
5988 echo "${ECHO_T}no" >&6
5989 fi
5990 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5991 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5992    { (exit 1); exit 1; }; }
5993 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5994 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5995 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5996   echo $ECHO_N "(cached) $ECHO_C" >&6
5997 else
5998   # I'd rather use --version here, but apparently some GNU lds only accept -v.
5999 case `$LD -v 2>&1 </dev/null` in
6000 *GNU* | *'with BFD'*)
6001   lt_cv_prog_gnu_ld=yes
6002   ;;
6003 *)
6004   lt_cv_prog_gnu_ld=no
6005   ;;
6006 esac
6007 fi
6008 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
6009 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
6010 with_gnu_ld=$lt_cv_prog_gnu_ld
6011
6012
6013 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
6014 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
6015 if test "${lt_cv_ld_reload_flag+set}" = set; then
6016   echo $ECHO_N "(cached) $ECHO_C" >&6
6017 else
6018   lt_cv_ld_reload_flag='-r'
6019 fi
6020 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
6021 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
6022 reload_flag=$lt_cv_ld_reload_flag
6023 case $reload_flag in
6024 "" | " "*) ;;
6025 *) reload_flag=" $reload_flag" ;;
6026 esac
6027 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6028 case $host_os in
6029   darwin*)
6030     if test "$GCC" = yes; then
6031       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6032     else
6033       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6034     fi
6035     ;;
6036 esac
6037
6038 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6039 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
6040 if test "${lt_cv_path_NM+set}" = set; then
6041   echo $ECHO_N "(cached) $ECHO_C" >&6
6042 else
6043   if test -n "$NM"; then
6044   # Let the user override the test.
6045   lt_cv_path_NM="$NM"
6046 else
6047   lt_nm_to_check="${ac_tool_prefix}nm"
6048   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6049     lt_nm_to_check="$lt_nm_to_check nm"
6050   fi
6051   for lt_tmp_nm in $lt_nm_to_check; do
6052     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6053     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6054       IFS="$lt_save_ifs"
6055       test -z "$ac_dir" && ac_dir=.
6056       tmp_nm="$ac_dir/$lt_tmp_nm"
6057       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6058         # Check to see if the nm accepts a BSD-compat flag.
6059         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6060         #   nm: unknown option "B" ignored
6061         # Tru64's nm complains that /dev/null is an invalid object file
6062         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6063         */dev/null* | *'Invalid file or object type'*)
6064           lt_cv_path_NM="$tmp_nm -B"
6065           break
6066           ;;
6067         *)
6068           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6069           */dev/null*)
6070             lt_cv_path_NM="$tmp_nm -p"
6071             break
6072             ;;
6073           *)
6074             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6075             continue # so that we can try to find one that supports BSD flags
6076             ;;
6077           esac
6078           ;;
6079         esac
6080       fi
6081     done
6082     IFS="$lt_save_ifs"
6083   done
6084   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6085 fi
6086 fi
6087 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6088 echo "${ECHO_T}$lt_cv_path_NM" >&6
6089 NM="$lt_cv_path_NM"
6090
6091 echo "$as_me:$LINENO: checking whether ln -s works" >&5
6092 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
6093 LN_S=$as_ln_s
6094 if test "$LN_S" = "ln -s"; then
6095   echo "$as_me:$LINENO: result: yes" >&5
6096 echo "${ECHO_T}yes" >&6
6097 else
6098   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6099 echo "${ECHO_T}no, using $LN_S" >&6
6100 fi
6101
6102 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
6103 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
6104 if test "${lt_cv_deplibs_check_method+set}" = set; then
6105   echo $ECHO_N "(cached) $ECHO_C" >&6
6106 else
6107   lt_cv_file_magic_cmd='$MAGIC_CMD'
6108 lt_cv_file_magic_test_file=
6109 lt_cv_deplibs_check_method='unknown'
6110 # Need to set the preceding variable on all platforms that support
6111 # interlibrary dependencies.
6112 # 'none' -- dependencies not supported.
6113 # `unknown' -- same as none, but documents that we really don't know.
6114 # 'pass_all' -- all dependencies passed with no checks.
6115 # 'test_compile' -- check by making test program.
6116 # 'file_magic [[regex]]' -- check by looking for files in library path
6117 # which responds to the $file_magic_cmd with a given extended regex.
6118 # If you have `file' or equivalent on your system and you're not sure
6119 # whether `pass_all' will *always* work, you probably want this one.
6120
6121 case $host_os in
6122 aix4* | aix5*)
6123   lt_cv_deplibs_check_method=pass_all
6124   ;;
6125
6126 beos*)
6127   lt_cv_deplibs_check_method=pass_all
6128   ;;
6129
6130 bsdi[45]*)
6131   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6132   lt_cv_file_magic_cmd='/usr/bin/file -L'
6133   lt_cv_file_magic_test_file=/shlib/libc.so
6134   ;;
6135
6136 cygwin*)
6137   # func_win32_libid is a shell function defined in ltmain.sh
6138   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6139   lt_cv_file_magic_cmd='func_win32_libid'
6140   ;;
6141
6142 mingw* | pw32*)
6143   # Base MSYS/MinGW do not provide the 'file' command needed by
6144   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
6145   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6146   lt_cv_file_magic_cmd='$OBJDUMP -f'
6147   ;;
6148
6149 darwin* | rhapsody*)
6150   lt_cv_deplibs_check_method=pass_all
6151   ;;
6152
6153 freebsd* | kfreebsd*-gnu | dragonfly*)
6154   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6155     case $host_cpu in
6156     i*86 )
6157       # Not sure whether the presence of OpenBSD here was a mistake.
6158       # Let's accept both of them until this is cleared up.
6159       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6160       lt_cv_file_magic_cmd=/usr/bin/file
6161       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6162       ;;
6163     esac
6164   else
6165     lt_cv_deplibs_check_method=pass_all
6166   fi
6167   ;;
6168
6169 gnu*)
6170   lt_cv_deplibs_check_method=pass_all
6171   ;;
6172
6173 hpux10.20* | hpux11*)
6174   lt_cv_file_magic_cmd=/usr/bin/file
6175   case $host_cpu in
6176   ia64*)
6177     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6178     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6179     ;;
6180   hppa*64*)
6181     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]'
6182     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6183     ;;
6184   *)
6185     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6186     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6187     ;;
6188   esac
6189   ;;
6190
6191 interix3*)
6192   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6193   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6194   ;;
6195
6196 irix5* | irix6* | nonstopux*)
6197   case $LD in
6198   *-32|*"-32 ") libmagic=32-bit;;
6199   *-n32|*"-n32 ") libmagic=N32;;
6200   *-64|*"-64 ") libmagic=64-bit;;
6201   *) libmagic=never-match;;
6202   esac
6203   lt_cv_deplibs_check_method=pass_all
6204   ;;
6205
6206 # This must be Linux ELF.
6207 linux*)
6208   lt_cv_deplibs_check_method=pass_all
6209   ;;
6210
6211 netbsd*)
6212   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6213     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6214   else
6215     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6216   fi
6217   ;;
6218
6219 newos6*)
6220   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6221   lt_cv_file_magic_cmd=/usr/bin/file
6222   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6223   ;;
6224
6225 nto-qnx*)
6226   lt_cv_deplibs_check_method=unknown
6227   ;;
6228
6229 openbsd*)
6230   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6231     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6232   else
6233     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6234   fi
6235   ;;
6236
6237 osf3* | osf4* | osf5*)
6238   lt_cv_deplibs_check_method=pass_all
6239   ;;
6240
6241 solaris*)
6242   lt_cv_deplibs_check_method=pass_all
6243   ;;
6244
6245 sysv4 | sysv4.3*)
6246   case $host_vendor in
6247   motorola)
6248     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]'
6249     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6250     ;;
6251   ncr)
6252     lt_cv_deplibs_check_method=pass_all
6253     ;;
6254   sequent)
6255     lt_cv_file_magic_cmd='/bin/file'
6256     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6257     ;;
6258   sni)
6259     lt_cv_file_magic_cmd='/bin/file'
6260     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6261     lt_cv_file_magic_test_file=/lib/libc.so
6262     ;;
6263   siemens)
6264     lt_cv_deplibs_check_method=pass_all
6265     ;;
6266   pc)
6267     lt_cv_deplibs_check_method=pass_all
6268     ;;
6269   esac
6270   ;;
6271
6272 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6273   lt_cv_deplibs_check_method=pass_all
6274   ;;
6275 esac
6276
6277 fi
6278 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6279 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6280 file_magic_cmd=$lt_cv_file_magic_cmd
6281 deplibs_check_method=$lt_cv_deplibs_check_method
6282 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6283
6284
6285
6286
6287 # If no C compiler was specified, use CC.
6288 LTCC=${LTCC-"$CC"}
6289
6290 # If no C compiler flags were specified, use CFLAGS.
6291 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6292
6293 # Allow CC to be a program name with arguments.
6294 compiler=$CC
6295
6296 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6297 if test "${enable_libtool_lock+set}" = set; then
6298   enableval="$enable_libtool_lock"
6299
6300 fi;
6301 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6302
6303 # Some flags need to be propagated to the compiler or linker for good
6304 # libtool support.
6305 case $host in
6306 ia64-*-hpux*)
6307   # Find out which ABI we are using.
6308   echo 'int i;' > conftest.$ac_ext
6309   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6310   (eval $ac_compile) 2>&5
6311   ac_status=$?
6312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6313   (exit $ac_status); }; then
6314     case `/usr/bin/file conftest.$ac_objext` in
6315     *ELF-32*)
6316       HPUX_IA64_MODE="32"
6317       ;;
6318     *ELF-64*)
6319       HPUX_IA64_MODE="64"
6320       ;;
6321     esac
6322   fi
6323   rm -rf conftest*
6324   ;;
6325 *-*-irix6*)
6326   # Find out which ABI we are using.
6327   echo '#line 6327 "configure"' > conftest.$ac_ext
6328   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6329   (eval $ac_compile) 2>&5
6330   ac_status=$?
6331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6332   (exit $ac_status); }; then
6333    if test "$lt_cv_prog_gnu_ld" = yes; then
6334     case `/usr/bin/file conftest.$ac_objext` in
6335     *32-bit*)
6336       LD="${LD-ld} -melf32bsmip"
6337       ;;
6338     *N32*)
6339       LD="${LD-ld} -melf32bmipn32"
6340       ;;
6341     *64-bit*)
6342       LD="${LD-ld} -melf64bmip"
6343       ;;
6344     esac
6345    else
6346     case `/usr/bin/file conftest.$ac_objext` in
6347     *32-bit*)
6348       LD="${LD-ld} -32"
6349       ;;
6350     *N32*)
6351       LD="${LD-ld} -n32"
6352       ;;
6353     *64-bit*)
6354       LD="${LD-ld} -64"
6355       ;;
6356     esac
6357    fi
6358   fi
6359   rm -rf conftest*
6360   ;;
6361
6362 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6363   # Find out which ABI we are using.
6364   echo 'int i;' > conftest.$ac_ext
6365   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6366   (eval $ac_compile) 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }; then
6370     case `/usr/bin/file conftest.o` in
6371     *32-bit*)
6372       case $host in
6373         x86_64-*linux*)
6374           LD="${LD-ld} -m elf_i386"
6375           ;;
6376         ppc64-*linux*|powerpc64-*linux*)
6377           LD="${LD-ld} -m elf32ppclinux"
6378           ;;
6379         s390x-*linux*)
6380           LD="${LD-ld} -m elf_s390"
6381           ;;
6382         sparc64-*linux*)
6383           LD="${LD-ld} -m elf32_sparc"
6384           ;;
6385       esac
6386       ;;
6387     *64-bit*)
6388       case $host in
6389         x86_64-*linux*)
6390           LD="${LD-ld} -m elf_x86_64"
6391           ;;
6392         ppc*-*linux*|powerpc*-*linux*)
6393           LD="${LD-ld} -m elf64ppc"
6394           ;;
6395         s390*-*linux*)
6396           LD="${LD-ld} -m elf64_s390"
6397           ;;
6398         sparc*-*linux*)
6399           LD="${LD-ld} -m elf64_sparc"
6400           ;;
6401       esac
6402       ;;
6403     esac
6404   fi
6405   rm -rf conftest*
6406   ;;
6407
6408 *-*-sco3.2v5*)
6409   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6410   SAVE_CFLAGS="$CFLAGS"
6411   CFLAGS="$CFLAGS -belf"
6412   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6413 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6414 if test "${lt_cv_cc_needs_belf+set}" = set; then
6415   echo $ECHO_N "(cached) $ECHO_C" >&6
6416 else
6417   ac_ext=c
6418 ac_cpp='$CPP $CPPFLAGS'
6419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6422
6423      cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h.  */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h.  */
6429
6430 int
6431 main ()
6432 {
6433
6434   ;
6435   return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext conftest$ac_exeext
6439 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6440   (eval $ac_link) 2>conftest.er1
6441   ac_status=$?
6442   grep -v '^ *+' conftest.er1 >conftest.err
6443   rm -f conftest.er1
6444   cat conftest.err >&5
6445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6446   (exit $ac_status); } &&
6447          { ac_try='test -z "$ac_c_werror_flag"
6448                          || test ! -s conftest.err'
6449   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6450   (eval $ac_try) 2>&5
6451   ac_status=$?
6452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453   (exit $ac_status); }; } &&
6454          { ac_try='test -s conftest$ac_exeext'
6455   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6456   (eval $ac_try) 2>&5
6457   ac_status=$?
6458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459   (exit $ac_status); }; }; then
6460   lt_cv_cc_needs_belf=yes
6461 else
6462   echo "$as_me: failed program was:" >&5
6463 sed 's/^/| /' conftest.$ac_ext >&5
6464
6465 lt_cv_cc_needs_belf=no
6466 fi
6467 rm -f conftest.err conftest.$ac_objext \
6468       conftest$ac_exeext conftest.$ac_ext
6469      ac_ext=c
6470 ac_cpp='$CPP $CPPFLAGS'
6471 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6472 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6473 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6474
6475 fi
6476 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6477 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6478   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6479     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6480     CFLAGS="$SAVE_CFLAGS"
6481   fi
6482   ;;
6483 sparc*-*solaris*)
6484   # Find out which ABI we are using.
6485   echo 'int i;' > conftest.$ac_ext
6486   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6487   (eval $ac_compile) 2>&5
6488   ac_status=$?
6489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490   (exit $ac_status); }; then
6491     case `/usr/bin/file conftest.o` in
6492     *64-bit*)
6493       case $lt_cv_prog_gnu_ld in
6494       yes*) LD="${LD-ld} -m elf64_sparc" ;;
6495       *)    LD="${LD-ld} -64" ;;
6496       esac
6497       ;;
6498     esac
6499   fi
6500   rm -rf conftest*
6501   ;;
6502
6503
6504 esac
6505
6506 need_locks="$enable_libtool_lock"
6507
6508
6509
6510 for ac_header in dlfcn.h
6511 do
6512 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6513 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6514   echo "$as_me:$LINENO: checking for $ac_header" >&5
6515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6516 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6517   echo $ECHO_N "(cached) $ECHO_C" >&6
6518 fi
6519 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6520 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6521 else
6522   # Is the header compilable?
6523 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h.  */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h.  */
6531 $ac_includes_default
6532 #include <$ac_header>
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6536   (eval $ac_compile) 2>conftest.er1
6537   ac_status=$?
6538   grep -v '^ *+' conftest.er1 >conftest.err
6539   rm -f conftest.er1
6540   cat conftest.err >&5
6541   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542   (exit $ac_status); } &&
6543          { ac_try='test -z "$ac_c_werror_flag"
6544                          || test ! -s conftest.err'
6545   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6546   (eval $ac_try) 2>&5
6547   ac_status=$?
6548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6549   (exit $ac_status); }; } &&
6550          { ac_try='test -s conftest.$ac_objext'
6551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6552   (eval $ac_try) 2>&5
6553   ac_status=$?
6554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6555   (exit $ac_status); }; }; then
6556   ac_header_compiler=yes
6557 else
6558   echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 ac_header_compiler=no
6562 fi
6563 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6564 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6565 echo "${ECHO_T}$ac_header_compiler" >&6
6566
6567 # Is the header present?
6568 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6569 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6570 cat >conftest.$ac_ext <<_ACEOF
6571 /* confdefs.h.  */
6572 _ACEOF
6573 cat confdefs.h >>conftest.$ac_ext
6574 cat >>conftest.$ac_ext <<_ACEOF
6575 /* end confdefs.h.  */
6576 #include <$ac_header>
6577 _ACEOF
6578 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6579   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6580   ac_status=$?
6581   grep -v '^ *+' conftest.er1 >conftest.err
6582   rm -f conftest.er1
6583   cat conftest.err >&5
6584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585   (exit $ac_status); } >/dev/null; then
6586   if test -s conftest.err; then
6587     ac_cpp_err=$ac_c_preproc_warn_flag
6588     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6589   else
6590     ac_cpp_err=
6591   fi
6592 else
6593   ac_cpp_err=yes
6594 fi
6595 if test -z "$ac_cpp_err"; then
6596   ac_header_preproc=yes
6597 else
6598   echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601   ac_header_preproc=no
6602 fi
6603 rm -f conftest.err conftest.$ac_ext
6604 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6605 echo "${ECHO_T}$ac_header_preproc" >&6
6606
6607 # So?  What about this header?
6608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6609   yes:no: )
6610     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6612     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6614     ac_header_preproc=yes
6615     ;;
6616   no:yes:* )
6617     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6619     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
6620 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
6621     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6623     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
6624 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
6625     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6627     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6629     (
6630       cat <<\_ASBOX
6631 ## ------------------------------------------ ##
6632 ## Report this to the AC_PACKAGE_NAME lists.  ##
6633 ## ------------------------------------------ ##
6634 _ASBOX
6635     ) |
6636       sed "s/^/$as_me: WARNING:     /" >&2
6637     ;;
6638 esac
6639 echo "$as_me:$LINENO: checking for $ac_header" >&5
6640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6641 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6642   echo $ECHO_N "(cached) $ECHO_C" >&6
6643 else
6644   eval "$as_ac_Header=\$ac_header_preproc"
6645 fi
6646 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6647 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6648
6649 fi
6650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6651   cat >>confdefs.h <<_ACEOF
6652 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6653 _ACEOF
6654
6655 fi
6656
6657 done
6658
6659
6660
6661 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6662     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6663     (test "X$CXX" != "Xg++"))) ; then
6664   ac_ext=cc
6665 ac_cpp='$CXXCPP $CPPFLAGS'
6666 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6667 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6668 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6669 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6670 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6671 if test -z "$CXXCPP"; then
6672   if test "${ac_cv_prog_CXXCPP+set}" = set; then
6673   echo $ECHO_N "(cached) $ECHO_C" >&6
6674 else
6675       # Double quotes because CXXCPP needs to be expanded
6676     for CXXCPP in "$CXX -E" "/lib/cpp"
6677     do
6678       ac_preproc_ok=false
6679 for ac_cxx_preproc_warn_flag in '' yes
6680 do
6681   # Use a header file that comes with gcc, so configuring glibc
6682   # with a fresh cross-compiler works.
6683   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6684   # <limits.h> exists even on freestanding compilers.
6685   # On the NeXT, cc -E runs the code through the compiler's parser,
6686   # not just through cpp. "Syntax error" is here to catch this case.
6687   cat >conftest.$ac_ext <<_ACEOF
6688 /* confdefs.h.  */
6689 _ACEOF
6690 cat confdefs.h >>conftest.$ac_ext
6691 cat >>conftest.$ac_ext <<_ACEOF
6692 /* end confdefs.h.  */
6693 #ifdef __STDC__
6694 # include <limits.h>
6695 #else
6696 # include <assert.h>
6697 #endif
6698                      Syntax error
6699 _ACEOF
6700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6701   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6702   ac_status=$?
6703   grep -v '^ *+' conftest.er1 >conftest.err
6704   rm -f conftest.er1
6705   cat conftest.err >&5
6706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707   (exit $ac_status); } >/dev/null; then
6708   if test -s conftest.err; then
6709     ac_cpp_err=$ac_cxx_preproc_warn_flag
6710     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6711   else
6712     ac_cpp_err=
6713   fi
6714 else
6715   ac_cpp_err=yes
6716 fi
6717 if test -z "$ac_cpp_err"; then
6718   :
6719 else
6720   echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6722
6723   # Broken: fails on valid input.
6724 continue
6725 fi
6726 rm -f conftest.err conftest.$ac_ext
6727
6728   # OK, works on sane cases.  Now check whether non-existent headers
6729   # can be detected and how.
6730   cat >conftest.$ac_ext <<_ACEOF
6731 /* confdefs.h.  */
6732 _ACEOF
6733 cat confdefs.h >>conftest.$ac_ext
6734 cat >>conftest.$ac_ext <<_ACEOF
6735 /* end confdefs.h.  */
6736 #include <ac_nonexistent.h>
6737 _ACEOF
6738 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6739   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6740   ac_status=$?
6741   grep -v '^ *+' conftest.er1 >conftest.err
6742   rm -f conftest.er1
6743   cat conftest.err >&5
6744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745   (exit $ac_status); } >/dev/null; then
6746   if test -s conftest.err; then
6747     ac_cpp_err=$ac_cxx_preproc_warn_flag
6748     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6749   else
6750     ac_cpp_err=
6751   fi
6752 else
6753   ac_cpp_err=yes
6754 fi
6755 if test -z "$ac_cpp_err"; then
6756   # Broken: success on invalid input.
6757 continue
6758 else
6759   echo "$as_me: failed program was:" >&5
6760 sed 's/^/| /' conftest.$ac_ext >&5
6761
6762   # Passes both tests.
6763 ac_preproc_ok=:
6764 break
6765 fi
6766 rm -f conftest.err conftest.$ac_ext
6767
6768 done
6769 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6770 rm -f conftest.err conftest.$ac_ext
6771 if $ac_preproc_ok; then
6772   break
6773 fi
6774
6775     done
6776     ac_cv_prog_CXXCPP=$CXXCPP
6777
6778 fi
6779   CXXCPP=$ac_cv_prog_CXXCPP
6780 else
6781   ac_cv_prog_CXXCPP=$CXXCPP
6782 fi
6783 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6784 echo "${ECHO_T}$CXXCPP" >&6
6785 ac_preproc_ok=false
6786 for ac_cxx_preproc_warn_flag in '' yes
6787 do
6788   # Use a header file that comes with gcc, so configuring glibc
6789   # with a fresh cross-compiler works.
6790   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6791   # <limits.h> exists even on freestanding compilers.
6792   # On the NeXT, cc -E runs the code through the compiler's parser,
6793   # not just through cpp. "Syntax error" is here to catch this case.
6794   cat >conftest.$ac_ext <<_ACEOF
6795 /* confdefs.h.  */
6796 _ACEOF
6797 cat confdefs.h >>conftest.$ac_ext
6798 cat >>conftest.$ac_ext <<_ACEOF
6799 /* end confdefs.h.  */
6800 #ifdef __STDC__
6801 # include <limits.h>
6802 #else
6803 # include <assert.h>
6804 #endif
6805                      Syntax error
6806 _ACEOF
6807 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6808   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6809   ac_status=$?
6810   grep -v '^ *+' conftest.er1 >conftest.err
6811   rm -f conftest.er1
6812   cat conftest.err >&5
6813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6814   (exit $ac_status); } >/dev/null; then
6815   if test -s conftest.err; then
6816     ac_cpp_err=$ac_cxx_preproc_warn_flag
6817     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6818   else
6819     ac_cpp_err=
6820   fi
6821 else
6822   ac_cpp_err=yes
6823 fi
6824 if test -z "$ac_cpp_err"; then
6825   :
6826 else
6827   echo "$as_me: failed program was:" >&5
6828 sed 's/^/| /' conftest.$ac_ext >&5
6829
6830   # Broken: fails on valid input.
6831 continue
6832 fi
6833 rm -f conftest.err conftest.$ac_ext
6834
6835   # OK, works on sane cases.  Now check whether non-existent headers
6836   # can be detected and how.
6837   cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h.  */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h.  */
6843 #include <ac_nonexistent.h>
6844 _ACEOF
6845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6846   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6847   ac_status=$?
6848   grep -v '^ *+' conftest.er1 >conftest.err
6849   rm -f conftest.er1
6850   cat conftest.err >&5
6851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6852   (exit $ac_status); } >/dev/null; then
6853   if test -s conftest.err; then
6854     ac_cpp_err=$ac_cxx_preproc_warn_flag
6855     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6856   else
6857     ac_cpp_err=
6858   fi
6859 else
6860   ac_cpp_err=yes
6861 fi
6862 if test -z "$ac_cpp_err"; then
6863   # Broken: success on invalid input.
6864 continue
6865 else
6866   echo "$as_me: failed program was:" >&5
6867 sed 's/^/| /' conftest.$ac_ext >&5
6868
6869   # Passes both tests.
6870 ac_preproc_ok=:
6871 break
6872 fi
6873 rm -f conftest.err conftest.$ac_ext
6874
6875 done
6876 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6877 rm -f conftest.err conftest.$ac_ext
6878 if $ac_preproc_ok; then
6879   :
6880 else
6881   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6882 See \`config.log' for more details." >&5
6883 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6884 See \`config.log' for more details." >&2;}
6885    { (exit 1); exit 1; }; }
6886 fi
6887
6888 ac_ext=cc
6889 ac_cpp='$CXXCPP $CPPFLAGS'
6890 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6891 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6892 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6893
6894 fi
6895
6896
6897 ac_ext=f
6898 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6899 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6900 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6901 if test -n "$ac_tool_prefix"; then
6902   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6903   do
6904     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6905 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6906 echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6908 if test "${ac_cv_prog_F77+set}" = set; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   if test -n "$F77"; then
6912   ac_cv_prog_F77="$F77" # Let the user override the test.
6913 else
6914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6915 for as_dir in $PATH
6916 do
6917   IFS=$as_save_IFS
6918   test -z "$as_dir" && as_dir=.
6919   for ac_exec_ext in '' $ac_executable_extensions; do
6920   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6921     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6922     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6923     break 2
6924   fi
6925 done
6926 done
6927
6928 fi
6929 fi
6930 F77=$ac_cv_prog_F77
6931 if test -n "$F77"; then
6932   echo "$as_me:$LINENO: result: $F77" >&5
6933 echo "${ECHO_T}$F77" >&6
6934 else
6935   echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6
6937 fi
6938
6939     test -n "$F77" && break
6940   done
6941 fi
6942 if test -z "$F77"; then
6943   ac_ct_F77=$F77
6944   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
6945 do
6946   # Extract the first word of "$ac_prog", so it can be a program name with args.
6947 set dummy $ac_prog; ac_word=$2
6948 echo "$as_me:$LINENO: checking for $ac_word" >&5
6949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6950 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6951   echo $ECHO_N "(cached) $ECHO_C" >&6
6952 else
6953   if test -n "$ac_ct_F77"; then
6954   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6955 else
6956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6957 for as_dir in $PATH
6958 do
6959   IFS=$as_save_IFS
6960   test -z "$as_dir" && as_dir=.
6961   for ac_exec_ext in '' $ac_executable_extensions; do
6962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6963     ac_cv_prog_ac_ct_F77="$ac_prog"
6964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6965     break 2
6966   fi
6967 done
6968 done
6969
6970 fi
6971 fi
6972 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6973 if test -n "$ac_ct_F77"; then
6974   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6975 echo "${ECHO_T}$ac_ct_F77" >&6
6976 else
6977   echo "$as_me:$LINENO: result: no" >&5
6978 echo "${ECHO_T}no" >&6
6979 fi
6980
6981   test -n "$ac_ct_F77" && break
6982 done
6983
6984   F77=$ac_ct_F77
6985 fi
6986
6987
6988 # Provide some information about the compiler.
6989 echo "$as_me:6989:" \
6990      "checking for Fortran 77 compiler version" >&5
6991 ac_compiler=`set X $ac_compile; echo $2`
6992 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6993   (eval $ac_compiler --version </dev/null >&5) 2>&5
6994   ac_status=$?
6995   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996   (exit $ac_status); }
6997 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6998   (eval $ac_compiler -v </dev/null >&5) 2>&5
6999   ac_status=$?
7000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7001   (exit $ac_status); }
7002 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7003   (eval $ac_compiler -V </dev/null >&5) 2>&5
7004   ac_status=$?
7005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006   (exit $ac_status); }
7007 rm -f a.out
7008
7009 # If we don't use `.F' as extension, the preprocessor is not run on the
7010 # input file.  (Note that this only needs to work for GNU compilers.)
7011 ac_save_ext=$ac_ext
7012 ac_ext=F
7013 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7014 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7015 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7016   echo $ECHO_N "(cached) $ECHO_C" >&6
7017 else
7018   cat >conftest.$ac_ext <<_ACEOF
7019       program main
7020 #ifndef __GNUC__
7021        choke me
7022 #endif
7023
7024       end
7025 _ACEOF
7026 rm -f conftest.$ac_objext
7027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7028   (eval $ac_compile) 2>conftest.er1
7029   ac_status=$?
7030   grep -v '^ *+' conftest.er1 >conftest.err
7031   rm -f conftest.er1
7032   cat conftest.err >&5
7033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7034   (exit $ac_status); } &&
7035          { ac_try='test -z "$ac_f77_werror_flag"
7036                          || test ! -s conftest.err'
7037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7038   (eval $ac_try) 2>&5
7039   ac_status=$?
7040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041   (exit $ac_status); }; } &&
7042          { ac_try='test -s conftest.$ac_objext'
7043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7044   (eval $ac_try) 2>&5
7045   ac_status=$?
7046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7047   (exit $ac_status); }; }; then
7048   ac_compiler_gnu=yes
7049 else
7050   echo "$as_me: failed program was:" >&5
7051 sed 's/^/| /' conftest.$ac_ext >&5
7052
7053 ac_compiler_gnu=no
7054 fi
7055 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7056 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7057
7058 fi
7059 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7060 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7061 ac_ext=$ac_save_ext
7062 ac_test_FFLAGS=${FFLAGS+set}
7063 ac_save_FFLAGS=$FFLAGS
7064 FFLAGS=
7065 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7066 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7067 if test "${ac_cv_prog_f77_g+set}" = set; then
7068   echo $ECHO_N "(cached) $ECHO_C" >&6
7069 else
7070   FFLAGS=-g
7071 cat >conftest.$ac_ext <<_ACEOF
7072       program main
7073
7074       end
7075 _ACEOF
7076 rm -f conftest.$ac_objext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7078   (eval $ac_compile) 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_f77_werror_flag"
7086                          || test ! -s conftest.err'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest.$ac_objext'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098   ac_cv_prog_f77_g=yes
7099 else
7100   echo "$as_me: failed program was:" >&5
7101 sed 's/^/| /' conftest.$ac_ext >&5
7102
7103 ac_cv_prog_f77_g=no
7104 fi
7105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7106
7107 fi
7108 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7109 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7110 if test "$ac_test_FFLAGS" = set; then
7111   FFLAGS=$ac_save_FFLAGS
7112 elif test $ac_cv_prog_f77_g = yes; then
7113   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7114     FFLAGS="-g -O2"
7115   else
7116     FFLAGS="-g"
7117   fi
7118 else
7119   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7120     FFLAGS="-O2"
7121   else
7122     FFLAGS=
7123   fi
7124 fi
7125
7126 G77=`test $ac_compiler_gnu = yes && echo yes`
7127 ac_ext=c
7128 ac_cpp='$CPP $CPPFLAGS'
7129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7132
7133
7134
7135 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7136
7137 # find the maximum length of command line arguments
7138 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7139 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7140 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7141   echo $ECHO_N "(cached) $ECHO_C" >&6
7142 else
7143     i=0
7144   teststring="ABCD"
7145
7146   case $build_os in
7147   msdosdjgpp*)
7148     # On DJGPP, this test can blow up pretty badly due to problems in libc
7149     # (any single argument exceeding 2000 bytes causes a buffer overrun
7150     # during glob expansion).  Even if it were fixed, the result of this
7151     # check would be larger than it should be.
7152     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
7153     ;;
7154
7155   gnu*)
7156     # Under GNU Hurd, this test is not required because there is
7157     # no limit to the length of command line arguments.
7158     # Libtool will interpret -1 as no limit whatsoever
7159     lt_cv_sys_max_cmd_len=-1;
7160     ;;
7161
7162   cygwin* | mingw*)
7163     # On Win9x/ME, this test blows up -- it succeeds, but takes
7164     # about 5 minutes as the teststring grows exponentially.
7165     # Worse, since 9x/ME are not pre-emptively multitasking,
7166     # you end up with a "frozen" computer, even though with patience
7167     # the test eventually succeeds (with a max line length of 256k).
7168     # Instead, let's just punt: use the minimum linelength reported by
7169     # all of the supported platforms: 8192 (on NT/2K/XP).
7170     lt_cv_sys_max_cmd_len=8192;
7171     ;;
7172
7173   amigaos*)
7174     # On AmigaOS with pdksh, this test takes hours, literally.
7175     # So we just punt and use a minimum line length of 8192.
7176     lt_cv_sys_max_cmd_len=8192;
7177     ;;
7178
7179   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7180     # This has been around since 386BSD, at least.  Likely further.
7181     if test -x /sbin/sysctl; then
7182       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7183     elif test -x /usr/sbin/sysctl; then
7184       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7185     else
7186       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
7187     fi
7188     # And add a safety zone
7189     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7190     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7191     ;;
7192
7193   interix*)
7194     # We know the value 262144 and hardcode it with a safety zone (like BSD)
7195     lt_cv_sys_max_cmd_len=196608
7196     ;;
7197
7198   osf*)
7199     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7200     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7201     # nice to cause kernel panics so lets avoid the loop below.
7202     # First set a reasonable default.
7203     lt_cv_sys_max_cmd_len=16384
7204     #
7205     if test -x /sbin/sysconfig; then
7206       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7207         *1*) lt_cv_sys_max_cmd_len=-1 ;;
7208       esac
7209     fi
7210     ;;
7211   sco3.2v5*)
7212     lt_cv_sys_max_cmd_len=102400
7213     ;;
7214   sysv5* | sco5v6* | sysv4.2uw2*)
7215     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7216     if test -n "$kargmax"; then
7217       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
7218     else
7219       lt_cv_sys_max_cmd_len=32768
7220     fi
7221     ;;
7222   *)
7223     # If test is not a shell built-in, we'll probably end up computing a
7224     # maximum length that is only half of the actual maximum length, but
7225     # we can't tell.
7226     SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7227     while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7228                = "XX$teststring") >/dev/null 2>&1 &&
7229             new_result=`expr "X$teststring" : ".*" 2>&1` &&
7230             lt_cv_sys_max_cmd_len=$new_result &&
7231             test $i != 17 # 1/2 MB should be enough
7232     do
7233       i=`expr $i + 1`
7234       teststring=$teststring$teststring
7235     done
7236     teststring=
7237     # Add a significant safety factor because C++ compilers can tack on massive
7238     # amounts of additional arguments before passing them to the linker.
7239     # It appears as though 1/2 is a usable value.
7240     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7241     ;;
7242   esac
7243
7244 fi
7245
7246 if test -n $lt_cv_sys_max_cmd_len ; then
7247   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7248 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7249 else
7250   echo "$as_me:$LINENO: result: none" >&5
7251 echo "${ECHO_T}none" >&6
7252 fi
7253
7254
7255
7256
7257 # Check for command to grab the raw symbol name followed by C symbol from nm.
7258 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7259 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7260 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7261   echo $ECHO_N "(cached) $ECHO_C" >&6
7262 else
7263
7264 # These are sane defaults that work on at least a few old systems.
7265 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7266
7267 # Character class describing NM global symbol codes.
7268 symcode='[BCDEGRST]'
7269
7270 # Regexp to match symbols that can be accessed directly from C.
7271 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7272
7273 # Transform an extracted symbol line into a proper C declaration
7274 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7275
7276 # Transform an extracted symbol line into symbol name and symbol address
7277 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'"
7278
7279 # Define system-specific variables.
7280 case $host_os in
7281 aix*)
7282   symcode='[BCDT]'
7283   ;;
7284 cygwin* | mingw* | pw32*)
7285   symcode='[ABCDGISTW]'
7286   ;;
7287 hpux*) # Its linker distinguishes data from code symbols
7288   if test "$host_cpu" = ia64; then
7289     symcode='[ABCDEGRST]'
7290   fi
7291   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7292   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'"
7293   ;;
7294 linux*)
7295   if test "$host_cpu" = ia64; then
7296     symcode='[ABCDGIRSTW]'
7297     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7298     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'"
7299   fi
7300   ;;
7301 irix* | nonstopux*)
7302   symcode='[BCDEGRST]'
7303   ;;
7304 osf*)
7305   symcode='[BCDEGQRST]'
7306   ;;
7307 solaris*)
7308   symcode='[BDRT]'
7309   ;;
7310 sco3.2v5*)
7311   symcode='[DT]'
7312   ;;
7313 sysv4.2uw2*)
7314   symcode='[DT]'
7315   ;;
7316 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7317   symcode='[ABDT]'
7318   ;;
7319 sysv4)
7320   symcode='[DFNSTU]'
7321   ;;
7322 esac
7323
7324 # Handle CRLF in mingw tool chain
7325 opt_cr=
7326 case $build_os in
7327 mingw*)
7328   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7329   ;;
7330 esac
7331
7332 # If we're using GNU nm, then use its standard symbol codes.
7333 case `$NM -V 2>&1` in
7334 *GNU* | *'with BFD'*)
7335   symcode='[ABCDGIRSTW]' ;;
7336 esac
7337
7338 # Try without a prefix undercore, then with it.
7339 for ac_symprfx in "" "_"; do
7340
7341   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7342   symxfrm="\\1 $ac_symprfx\\2 \\2"
7343
7344   # Write the raw and C identifiers.
7345   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7346
7347   # Check to see that the pipe works correctly.
7348   pipe_works=no
7349
7350   rm -f conftest*
7351   cat > conftest.$ac_ext <<EOF
7352 #ifdef __cplusplus
7353 extern "C" {
7354 #endif
7355 char nm_test_var;
7356 void nm_test_func(){}
7357 #ifdef __cplusplus
7358 }
7359 #endif
7360 int main(){nm_test_var='a';nm_test_func();return(0);}
7361 EOF
7362
7363   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7364   (eval $ac_compile) 2>&5
7365   ac_status=$?
7366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7367   (exit $ac_status); }; then
7368     # Now try to grab the symbols.
7369     nlist=conftest.nm
7370     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7371   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7372   ac_status=$?
7373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7374   (exit $ac_status); } && test -s "$nlist"; then
7375       # Try sorting and uniquifying the output.
7376       if sort "$nlist" | uniq > "$nlist"T; then
7377         mv -f "$nlist"T "$nlist"
7378       else
7379         rm -f "$nlist"T
7380       fi
7381
7382       # Make sure that we snagged all the symbols we need.
7383       if grep ' nm_test_var$' "$nlist" >/dev/null; then
7384         if grep ' nm_test_func$' "$nlist" >/dev/null; then
7385           cat <<EOF > conftest.$ac_ext
7386 #ifdef __cplusplus
7387 extern "C" {
7388 #endif
7389
7390 EOF
7391           # Now generate the symbol file.
7392           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7393
7394           cat <<EOF >> conftest.$ac_ext
7395 #if defined (__STDC__) && __STDC__
7396 # define lt_ptr_t void *
7397 #else
7398 # define lt_ptr_t char *
7399 # define const
7400 #endif
7401
7402 /* The mapping between symbol names and symbols. */
7403 const struct {
7404   const char *name;
7405   lt_ptr_t address;
7406 }
7407 lt_preloaded_symbols[] =
7408 {
7409 EOF
7410           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7411           cat <<\EOF >> conftest.$ac_ext
7412   {0, (lt_ptr_t) 0}
7413 };
7414
7415 #ifdef __cplusplus
7416 }
7417 #endif
7418 EOF
7419           # Now try linking the two files.
7420           mv conftest.$ac_objext conftstm.$ac_objext
7421           lt_save_LIBS="$LIBS"
7422           lt_save_CFLAGS="$CFLAGS"
7423           LIBS="conftstm.$ac_objext"
7424           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7425           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7426   (eval $ac_link) 2>&5
7427   ac_status=$?
7428   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429   (exit $ac_status); } && test -s conftest${ac_exeext}; then
7430             pipe_works=yes
7431           fi
7432           LIBS="$lt_save_LIBS"
7433           CFLAGS="$lt_save_CFLAGS"
7434         else
7435           echo "cannot find nm_test_func in $nlist" >&5
7436         fi
7437       else
7438         echo "cannot find nm_test_var in $nlist" >&5
7439       fi
7440     else
7441       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7442     fi
7443   else
7444     echo "$progname: failed program was:" >&5
7445     cat conftest.$ac_ext >&5
7446   fi
7447   rm -f conftest* conftst*
7448
7449   # Do not use the global_symbol_pipe unless it works.
7450   if test "$pipe_works" = yes; then
7451     break
7452   else
7453     lt_cv_sys_global_symbol_pipe=
7454   fi
7455 done
7456
7457 fi
7458
7459 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7460   lt_cv_sys_global_symbol_to_cdecl=
7461 fi
7462 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7463   echo "$as_me:$LINENO: result: failed" >&5
7464 echo "${ECHO_T}failed" >&6
7465 else
7466   echo "$as_me:$LINENO: result: ok" >&5
7467 echo "${ECHO_T}ok" >&6
7468 fi
7469
7470 echo "$as_me:$LINENO: checking for objdir" >&5
7471 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7472 if test "${lt_cv_objdir+set}" = set; then
7473   echo $ECHO_N "(cached) $ECHO_C" >&6
7474 else
7475   rm -f .libs 2>/dev/null
7476 mkdir .libs 2>/dev/null
7477 if test -d .libs; then
7478   lt_cv_objdir=.libs
7479 else
7480   # MS-DOS does not allow filenames that begin with a dot.
7481   lt_cv_objdir=_libs
7482 fi
7483 rmdir .libs 2>/dev/null
7484 fi
7485 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7486 echo "${ECHO_T}$lt_cv_objdir" >&6
7487 objdir=$lt_cv_objdir
7488
7489
7490
7491
7492
7493 case $host_os in
7494 aix3*)
7495   # AIX sometimes has problems with the GCC collect2 program.  For some
7496   # reason, if we set the COLLECT_NAMES environment variable, the problems
7497   # vanish in a puff of smoke.
7498   if test "X${COLLECT_NAMES+set}" != Xset; then
7499     COLLECT_NAMES=
7500     export COLLECT_NAMES
7501   fi
7502   ;;
7503 esac
7504
7505 # Sed substitution that helps us do robust quoting.  It backslashifies
7506 # metacharacters that are still active within double-quoted strings.
7507 Xsed='sed -e 1s/^X//'
7508 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7509
7510 # Same as above, but do not quote variable references.
7511 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7512
7513 # Sed substitution to delay expansion of an escaped shell variable in a
7514 # double_quote_subst'ed string.
7515 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7516
7517 # Sed substitution to avoid accidental globbing in evaled expressions
7518 no_glob_subst='s/\*/\\\*/g'
7519
7520 # Constants:
7521 rm="rm -f"
7522
7523 # Global variables:
7524 default_ofile=libtool
7525 can_build_shared=yes
7526
7527 # All known linkers require a `.a' archive for static linking (except MSVC,
7528 # which needs '.lib').
7529 libext=a
7530 ltmain="$ac_aux_dir/ltmain.sh"
7531 ofile="$default_ofile"
7532 with_gnu_ld="$lt_cv_prog_gnu_ld"
7533
7534 if test -n "$ac_tool_prefix"; then
7535   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7536 set dummy ${ac_tool_prefix}ar; ac_word=$2
7537 echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7539 if test "${ac_cv_prog_AR+set}" = set; then
7540   echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542   if test -n "$AR"; then
7543   ac_cv_prog_AR="$AR" # Let the user override the test.
7544 else
7545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7546 for as_dir in $PATH
7547 do
7548   IFS=$as_save_IFS
7549   test -z "$as_dir" && as_dir=.
7550   for ac_exec_ext in '' $ac_executable_extensions; do
7551   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7552     ac_cv_prog_AR="${ac_tool_prefix}ar"
7553     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554     break 2
7555   fi
7556 done
7557 done
7558
7559 fi
7560 fi
7561 AR=$ac_cv_prog_AR
7562 if test -n "$AR"; then
7563   echo "$as_me:$LINENO: result: $AR" >&5
7564 echo "${ECHO_T}$AR" >&6
7565 else
7566   echo "$as_me:$LINENO: result: no" >&5
7567 echo "${ECHO_T}no" >&6
7568 fi
7569
7570 fi
7571 if test -z "$ac_cv_prog_AR"; then
7572   ac_ct_AR=$AR
7573   # Extract the first word of "ar", so it can be a program name with args.
7574 set dummy ar; ac_word=$2
7575 echo "$as_me:$LINENO: checking for $ac_word" >&5
7576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7577 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7578   echo $ECHO_N "(cached) $ECHO_C" >&6
7579 else
7580   if test -n "$ac_ct_AR"; then
7581   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7582 else
7583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7584 for as_dir in $PATH
7585 do
7586   IFS=$as_save_IFS
7587   test -z "$as_dir" && as_dir=.
7588   for ac_exec_ext in '' $ac_executable_extensions; do
7589   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7590     ac_cv_prog_ac_ct_AR="ar"
7591     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7592     break 2
7593   fi
7594 done
7595 done
7596
7597   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7598 fi
7599 fi
7600 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7601 if test -n "$ac_ct_AR"; then
7602   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7603 echo "${ECHO_T}$ac_ct_AR" >&6
7604 else
7605   echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6
7607 fi
7608
7609   AR=$ac_ct_AR
7610 else
7611   AR="$ac_cv_prog_AR"
7612 fi
7613
7614 if test -n "$ac_tool_prefix"; then
7615   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7616 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7617 echo "$as_me:$LINENO: checking for $ac_word" >&5
7618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7619 if test "${ac_cv_prog_RANLIB+set}" = set; then
7620   echo $ECHO_N "(cached) $ECHO_C" >&6
7621 else
7622   if test -n "$RANLIB"; then
7623   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7624 else
7625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7626 for as_dir in $PATH
7627 do
7628   IFS=$as_save_IFS
7629   test -z "$as_dir" && as_dir=.
7630   for ac_exec_ext in '' $ac_executable_extensions; do
7631   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7632     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7633     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634     break 2
7635   fi
7636 done
7637 done
7638
7639 fi
7640 fi
7641 RANLIB=$ac_cv_prog_RANLIB
7642 if test -n "$RANLIB"; then
7643   echo "$as_me:$LINENO: result: $RANLIB" >&5
7644 echo "${ECHO_T}$RANLIB" >&6
7645 else
7646   echo "$as_me:$LINENO: result: no" >&5
7647 echo "${ECHO_T}no" >&6
7648 fi
7649
7650 fi
7651 if test -z "$ac_cv_prog_RANLIB"; then
7652   ac_ct_RANLIB=$RANLIB
7653   # Extract the first word of "ranlib", so it can be a program name with args.
7654 set dummy ranlib; ac_word=$2
7655 echo "$as_me:$LINENO: checking for $ac_word" >&5
7656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7657 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7658   echo $ECHO_N "(cached) $ECHO_C" >&6
7659 else
7660   if test -n "$ac_ct_RANLIB"; then
7661   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7662 else
7663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 for as_dir in $PATH
7665 do
7666   IFS=$as_save_IFS
7667   test -z "$as_dir" && as_dir=.
7668   for ac_exec_ext in '' $ac_executable_extensions; do
7669   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7670     ac_cv_prog_ac_ct_RANLIB="ranlib"
7671     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7672     break 2
7673   fi
7674 done
7675 done
7676
7677   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7678 fi
7679 fi
7680 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7681 if test -n "$ac_ct_RANLIB"; then
7682   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7683 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7684 else
7685   echo "$as_me:$LINENO: result: no" >&5
7686 echo "${ECHO_T}no" >&6
7687 fi
7688
7689   RANLIB=$ac_ct_RANLIB
7690 else
7691   RANLIB="$ac_cv_prog_RANLIB"
7692 fi
7693
7694 if test -n "$ac_tool_prefix"; then
7695   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7696 set dummy ${ac_tool_prefix}strip; ac_word=$2
7697 echo "$as_me:$LINENO: checking for $ac_word" >&5
7698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7699 if test "${ac_cv_prog_STRIP+set}" = set; then
7700   echo $ECHO_N "(cached) $ECHO_C" >&6
7701 else
7702   if test -n "$STRIP"; then
7703   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7704 else
7705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7706 for as_dir in $PATH
7707 do
7708   IFS=$as_save_IFS
7709   test -z "$as_dir" && as_dir=.
7710   for ac_exec_ext in '' $ac_executable_extensions; do
7711   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7712     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7713     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7714     break 2
7715   fi
7716 done
7717 done
7718
7719 fi
7720 fi
7721 STRIP=$ac_cv_prog_STRIP
7722 if test -n "$STRIP"; then
7723   echo "$as_me:$LINENO: result: $STRIP" >&5
7724 echo "${ECHO_T}$STRIP" >&6
7725 else
7726   echo "$as_me:$LINENO: result: no" >&5
7727 echo "${ECHO_T}no" >&6
7728 fi
7729
7730 fi
7731 if test -z "$ac_cv_prog_STRIP"; then
7732   ac_ct_STRIP=$STRIP
7733   # Extract the first word of "strip", so it can be a program name with args.
7734 set dummy strip; ac_word=$2
7735 echo "$as_me:$LINENO: checking for $ac_word" >&5
7736 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7737 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7738   echo $ECHO_N "(cached) $ECHO_C" >&6
7739 else
7740   if test -n "$ac_ct_STRIP"; then
7741   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7742 else
7743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7744 for as_dir in $PATH
7745 do
7746   IFS=$as_save_IFS
7747   test -z "$as_dir" && as_dir=.
7748   for ac_exec_ext in '' $ac_executable_extensions; do
7749   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7750     ac_cv_prog_ac_ct_STRIP="strip"
7751     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7752     break 2
7753   fi
7754 done
7755 done
7756
7757   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7758 fi
7759 fi
7760 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7761 if test -n "$ac_ct_STRIP"; then
7762   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7763 echo "${ECHO_T}$ac_ct_STRIP" >&6
7764 else
7765   echo "$as_me:$LINENO: result: no" >&5
7766 echo "${ECHO_T}no" >&6
7767 fi
7768
7769   STRIP=$ac_ct_STRIP
7770 else
7771   STRIP="$ac_cv_prog_STRIP"
7772 fi
7773
7774
7775 old_CC="$CC"
7776 old_CFLAGS="$CFLAGS"
7777
7778 # Set sane defaults for various variables
7779 test -z "$AR" && AR=ar
7780 test -z "$AR_FLAGS" && AR_FLAGS=cru
7781 test -z "$AS" && AS=as
7782 test -z "$CC" && CC=cc
7783 test -z "$LTCC" && LTCC=$CC
7784 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7785 test -z "$DLLTOOL" && DLLTOOL=dlltool
7786 test -z "$LD" && LD=ld
7787 test -z "$LN_S" && LN_S="ln -s"
7788 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7789 test -z "$NM" && NM=nm
7790 test -z "$SED" && SED=sed
7791 test -z "$OBJDUMP" && OBJDUMP=objdump
7792 test -z "$RANLIB" && RANLIB=:
7793 test -z "$STRIP" && STRIP=:
7794 test -z "$ac_objext" && ac_objext=o
7795
7796 # Determine commands to create old-style static archives.
7797 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7798 old_postinstall_cmds='chmod 644 $oldlib'
7799 old_postuninstall_cmds=
7800
7801 if test -n "$RANLIB"; then
7802   case $host_os in
7803   openbsd*)
7804     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7805     ;;
7806   *)
7807     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7808     ;;
7809   esac
7810   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7811 fi
7812
7813 for cc_temp in $compiler""; do
7814   case $cc_temp in
7815     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7816     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7817     \-*) ;;
7818     *) break;;
7819   esac
7820 done
7821 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7822
7823
7824 # Only perform the check for file, if the check method requires it
7825 case $deplibs_check_method in
7826 file_magic*)
7827   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7828     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7829 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
7830 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7831   echo $ECHO_N "(cached) $ECHO_C" >&6
7832 else
7833   case $MAGIC_CMD in
7834 [\\/*] |  ?:[\\/]*)
7835   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7836   ;;
7837 *)
7838   lt_save_MAGIC_CMD="$MAGIC_CMD"
7839   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7840   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7841   for ac_dir in $ac_dummy; do
7842     IFS="$lt_save_ifs"
7843     test -z "$ac_dir" && ac_dir=.
7844     if test -f $ac_dir/${ac_tool_prefix}file; then
7845       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7846       if test -n "$file_magic_test_file"; then
7847         case $deplibs_check_method in
7848         "file_magic "*)
7849           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7850           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7851           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7852             $EGREP "$file_magic_regex" > /dev/null; then
7853             :
7854           else
7855             cat <<EOF 1>&2
7856
7857 *** Warning: the command libtool uses to detect shared libraries,
7858 *** $file_magic_cmd, produces output that libtool cannot recognize.
7859 *** The result is that libtool may fail to recognize shared libraries
7860 *** as such.  This will affect the creation of libtool libraries that
7861 *** depend on shared libraries, but programs linked with such libtool
7862 *** libraries will work regardless of this problem.  Nevertheless, you
7863 *** may want to report the problem to your system manager and/or to
7864 *** bug-libtool@gnu.org
7865
7866 EOF
7867           fi ;;
7868         esac
7869       fi
7870       break
7871     fi
7872   done
7873   IFS="$lt_save_ifs"
7874   MAGIC_CMD="$lt_save_MAGIC_CMD"
7875   ;;
7876 esac
7877 fi
7878
7879 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7880 if test -n "$MAGIC_CMD"; then
7881   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7882 echo "${ECHO_T}$MAGIC_CMD" >&6
7883 else
7884   echo "$as_me:$LINENO: result: no" >&5
7885 echo "${ECHO_T}no" >&6
7886 fi
7887
7888 if test -z "$lt_cv_path_MAGIC_CMD"; then
7889   if test -n "$ac_tool_prefix"; then
7890     echo "$as_me:$LINENO: checking for file" >&5
7891 echo $ECHO_N "checking for file... $ECHO_C" >&6
7892 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7893   echo $ECHO_N "(cached) $ECHO_C" >&6
7894 else
7895   case $MAGIC_CMD in
7896 [\\/*] |  ?:[\\/]*)
7897   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7898   ;;
7899 *)
7900   lt_save_MAGIC_CMD="$MAGIC_CMD"
7901   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7902   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7903   for ac_dir in $ac_dummy; do
7904     IFS="$lt_save_ifs"
7905     test -z "$ac_dir" && ac_dir=.
7906     if test -f $ac_dir/file; then
7907       lt_cv_path_MAGIC_CMD="$ac_dir/file"
7908       if test -n "$file_magic_test_file"; then
7909         case $deplibs_check_method in
7910         "file_magic "*)
7911           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7912           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7913           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7914             $EGREP "$file_magic_regex" > /dev/null; then
7915             :
7916           else
7917             cat <<EOF 1>&2
7918
7919 *** Warning: the command libtool uses to detect shared libraries,
7920 *** $file_magic_cmd, produces output that libtool cannot recognize.
7921 *** The result is that libtool may fail to recognize shared libraries
7922 *** as such.  This will affect the creation of libtool libraries that
7923 *** depend on shared libraries, but programs linked with such libtool
7924 *** libraries will work regardless of this problem.  Nevertheless, you
7925 *** may want to report the problem to your system manager and/or to
7926 *** bug-libtool@gnu.org
7927
7928 EOF
7929           fi ;;
7930         esac
7931       fi
7932       break
7933     fi
7934   done
7935   IFS="$lt_save_ifs"
7936   MAGIC_CMD="$lt_save_MAGIC_CMD"
7937   ;;
7938 esac
7939 fi
7940
7941 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7942 if test -n "$MAGIC_CMD"; then
7943   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7944 echo "${ECHO_T}$MAGIC_CMD" >&6
7945 else
7946   echo "$as_me:$LINENO: result: no" >&5
7947 echo "${ECHO_T}no" >&6
7948 fi
7949
7950   else
7951     MAGIC_CMD=:
7952   fi
7953 fi
7954
7955   fi
7956   ;;
7957 esac
7958
7959 enable_dlopen=yes
7960 enable_win32_dll=no
7961
7962 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
7963 if test "${enable_libtool_lock+set}" = set; then
7964   enableval="$enable_libtool_lock"
7965
7966 fi;
7967 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7968
7969
7970 # Check whether --with-pic or --without-pic was given.
7971 if test "${with_pic+set}" = set; then
7972   withval="$with_pic"
7973   pic_mode="$withval"
7974 else
7975   pic_mode=default
7976 fi;
7977 test -z "$pic_mode" && pic_mode=default
7978
7979 # Use C for the default configuration in the libtool script
7980 tagname=
7981 lt_save_CC="$CC"
7982 ac_ext=c
7983 ac_cpp='$CPP $CPPFLAGS'
7984 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7985 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7986 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7987
7988
7989 # Source file extension for C test sources.
7990 ac_ext=c
7991
7992 # Object file extension for compiled C test sources.
7993 objext=o
7994 objext=$objext
7995
7996 # Code to be used in simple compile tests
7997 lt_simple_compile_test_code="int some_variable = 0;\n"
7998
7999 # Code to be used in simple link tests
8000 lt_simple_link_test_code='int main(){return(0);}\n'
8001
8002
8003 # If no C compiler was specified, use CC.
8004 LTCC=${LTCC-"$CC"}
8005
8006 # If no C compiler flags were specified, use CFLAGS.
8007 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8008
8009 # Allow CC to be a program name with arguments.
8010 compiler=$CC
8011
8012
8013 # save warnings/boilerplate of simple test code
8014 ac_outfile=conftest.$ac_objext
8015 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
8016 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8017 _lt_compiler_boilerplate=`cat conftest.err`
8018 $rm conftest*
8019
8020 ac_outfile=conftest.$ac_objext
8021 printf "$lt_simple_link_test_code" >conftest.$ac_ext
8022 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8023 _lt_linker_boilerplate=`cat conftest.err`
8024 $rm conftest*
8025
8026
8027
8028 lt_prog_compiler_no_builtin_flag=
8029
8030 if test "$GCC" = yes; then
8031   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8032
8033
8034 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8035 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8036 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8037   echo $ECHO_N "(cached) $ECHO_C" >&6
8038 else
8039   lt_cv_prog_compiler_rtti_exceptions=no
8040   ac_outfile=conftest.$ac_objext
8041    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8042    lt_compiler_flag="-fno-rtti -fno-exceptions"
8043    # Insert the option either (1) after the last *FLAGS variable, or
8044    # (2) before a word containing "conftest.", or (3) at the end.
8045    # Note that $ac_compile itself does not contain backslashes and begins
8046    # with a dollar sign (not a hyphen), so the echo should work correctly.
8047    # The option is referenced via a variable to avoid confusing sed.
8048    lt_compile=`echo "$ac_compile" | $SED \
8049    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8050    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8051    -e 's:$: $lt_compiler_flag:'`
8052    (eval echo "\"\$as_me:8052: $lt_compile\"" >&5)
8053    (eval "$lt_compile" 2>conftest.err)
8054    ac_status=$?
8055    cat conftest.err >&5
8056    echo "$as_me:8056: \$? = $ac_status" >&5
8057    if (exit $ac_status) && test -s "$ac_outfile"; then
8058      # The compiler can only warn and ignore the option if not recognized
8059      # So say no if there are warnings other than the usual output.
8060      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8061      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8062      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8063        lt_cv_prog_compiler_rtti_exceptions=yes
8064      fi
8065    fi
8066    $rm conftest*
8067
8068 fi
8069 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8070 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8071
8072 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8073     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8074 else
8075     :
8076 fi
8077
8078 fi
8079
8080 lt_prog_compiler_wl=
8081 lt_prog_compiler_pic=
8082 lt_prog_compiler_static=
8083
8084 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8085 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8086
8087   if test "$GCC" = yes; then
8088     lt_prog_compiler_wl='-Wl,'
8089     lt_prog_compiler_static='-static'
8090
8091     case $host_os in
8092       aix*)
8093       # All AIX code is PIC.
8094       if test "$host_cpu" = ia64; then
8095         # AIX 5 now supports IA64 processor
8096         lt_prog_compiler_static='-Bstatic'
8097       fi
8098       ;;
8099
8100     amigaos*)
8101       # FIXME: we need at least 68020 code to build shared libraries, but
8102       # adding the `-m68020' flag to GCC prevents building anything better,
8103       # like `-m68040'.
8104       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8105       ;;
8106
8107     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8108       # PIC is the default for these OSes.
8109       ;;
8110
8111     mingw* | pw32* | os2*)
8112       # This hack is so that the source file can tell whether it is being
8113       # built for inclusion in a dll (and should export symbols for example).
8114       lt_prog_compiler_pic='-DDLL_EXPORT'
8115       ;;
8116
8117     darwin* | rhapsody*)
8118       # PIC is the default on this platform
8119       # Common symbols not allowed in MH_DYLIB files
8120       lt_prog_compiler_pic='-fno-common'
8121       ;;
8122
8123     interix3*)
8124       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8125       # Instead, we relocate shared libraries at runtime.
8126       ;;
8127
8128     msdosdjgpp*)
8129       # Just because we use GCC doesn't mean we suddenly get shared libraries
8130       # on systems that don't support them.
8131       lt_prog_compiler_can_build_shared=no
8132       enable_shared=no
8133       ;;
8134
8135     sysv4*MP*)
8136       if test -d /usr/nec; then
8137         lt_prog_compiler_pic=-Kconform_pic
8138       fi
8139       ;;
8140
8141     hpux*)
8142       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8143       # not for PA HP-UX.
8144       case $host_cpu in
8145       hppa*64*|ia64*)
8146         # +Z the default
8147         ;;
8148       *)
8149         lt_prog_compiler_pic='-fPIC'
8150         ;;
8151       esac
8152       ;;
8153
8154     *)
8155       lt_prog_compiler_pic='-fPIC'
8156       ;;
8157     esac
8158   else
8159     # PORTME Check for flag to pass linker flags through the system compiler.
8160     case $host_os in
8161     aix*)
8162       lt_prog_compiler_wl='-Wl,'
8163       if test "$host_cpu" = ia64; then
8164         # AIX 5 now supports IA64 processor
8165         lt_prog_compiler_static='-Bstatic'
8166       else
8167         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8168       fi
8169       ;;
8170       darwin*)
8171         # PIC is the default on this platform
8172         # Common symbols not allowed in MH_DYLIB files
8173        case $cc_basename in
8174          xlc*)
8175          lt_prog_compiler_pic='-qnocommon'
8176          lt_prog_compiler_wl='-Wl,'
8177          ;;
8178        esac
8179        ;;
8180
8181     mingw* | pw32* | os2*)
8182       # This hack is so that the source file can tell whether it is being
8183       # built for inclusion in a dll (and should export symbols for example).
8184       lt_prog_compiler_pic='-DDLL_EXPORT'
8185       ;;
8186
8187     hpux9* | hpux10* | hpux11*)
8188       lt_prog_compiler_wl='-Wl,'
8189       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8190       # not for PA HP-UX.
8191       case $host_cpu in
8192       hppa*64*|ia64*)
8193         # +Z the default
8194         ;;
8195       *)
8196         lt_prog_compiler_pic='+Z'
8197         ;;
8198       esac
8199       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8200       lt_prog_compiler_static='${wl}-a ${wl}archive'
8201       ;;
8202
8203     irix5* | irix6* | nonstopux*)
8204       lt_prog_compiler_wl='-Wl,'
8205       # PIC (with -KPIC) is the default.
8206       lt_prog_compiler_static='-non_shared'
8207       ;;
8208
8209     newsos6)
8210       lt_prog_compiler_pic='-KPIC'
8211       lt_prog_compiler_static='-Bstatic'
8212       ;;
8213
8214     linux*)
8215       case $cc_basename in
8216       icc* | ecc*)
8217         lt_prog_compiler_wl='-Wl,'
8218         lt_prog_compiler_pic='-KPIC'
8219         lt_prog_compiler_static='-static'
8220         ;;
8221       pgcc* | pgf77* | pgf90* | pgf95*)
8222         # Portland Group compilers (*not* the Pentium gcc compiler,
8223         # which looks to be a dead project)
8224         lt_prog_compiler_wl='-Wl,'
8225         lt_prog_compiler_pic='-fpic'
8226         lt_prog_compiler_static='-Bstatic'
8227         ;;
8228       ccc*)
8229         lt_prog_compiler_wl='-Wl,'
8230         # All Alpha code is PIC.
8231         lt_prog_compiler_static='-non_shared'
8232         ;;
8233       esac
8234       ;;
8235
8236     osf3* | osf4* | osf5*)
8237       lt_prog_compiler_wl='-Wl,'
8238       # All OSF/1 code is PIC.
8239       lt_prog_compiler_static='-non_shared'
8240       ;;
8241
8242     solaris*)
8243       lt_prog_compiler_pic='-KPIC'
8244       lt_prog_compiler_static='-Bstatic'
8245       case $cc_basename in
8246       f77* | f90* | f95*)
8247         lt_prog_compiler_wl='-Qoption ld ';;
8248       *)
8249         lt_prog_compiler_wl='-Wl,';;
8250       esac
8251       ;;
8252
8253     sunos4*)
8254       lt_prog_compiler_wl='-Qoption ld '
8255       lt_prog_compiler_pic='-PIC'
8256       lt_prog_compiler_static='-Bstatic'
8257       ;;
8258
8259     sysv4 | sysv4.2uw2* | sysv4.3*)
8260       lt_prog_compiler_wl='-Wl,'
8261       lt_prog_compiler_pic='-KPIC'
8262       lt_prog_compiler_static='-Bstatic'
8263       ;;
8264
8265     sysv4*MP*)
8266       if test -d /usr/nec ;then
8267         lt_prog_compiler_pic='-Kconform_pic'
8268         lt_prog_compiler_static='-Bstatic'
8269       fi
8270       ;;
8271
8272     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8273       lt_prog_compiler_wl='-Wl,'
8274       lt_prog_compiler_pic='-KPIC'
8275       lt_prog_compiler_static='-Bstatic'
8276       ;;
8277
8278     unicos*)
8279       lt_prog_compiler_wl='-Wl,'
8280       lt_prog_compiler_can_build_shared=no
8281       ;;
8282
8283     uts4*)
8284       lt_prog_compiler_pic='-pic'
8285       lt_prog_compiler_static='-Bstatic'
8286       ;;
8287
8288     *)
8289       lt_prog_compiler_can_build_shared=no
8290       ;;
8291     esac
8292   fi
8293
8294 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8295 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8296
8297 #
8298 # Check to make sure the PIC flag actually works.
8299 #
8300 if test -n "$lt_prog_compiler_pic"; then
8301
8302 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8303 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8304 if test "${lt_prog_compiler_pic_works+set}" = set; then
8305   echo $ECHO_N "(cached) $ECHO_C" >&6
8306 else
8307   lt_prog_compiler_pic_works=no
8308   ac_outfile=conftest.$ac_objext
8309    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8310    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8311    # Insert the option either (1) after the last *FLAGS variable, or
8312    # (2) before a word containing "conftest.", or (3) at the end.
8313    # Note that $ac_compile itself does not contain backslashes and begins
8314    # with a dollar sign (not a hyphen), so the echo should work correctly.
8315    # The option is referenced via a variable to avoid confusing sed.
8316    lt_compile=`echo "$ac_compile" | $SED \
8317    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8318    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8319    -e 's:$: $lt_compiler_flag:'`
8320    (eval echo "\"\$as_me:8320: $lt_compile\"" >&5)
8321    (eval "$lt_compile" 2>conftest.err)
8322    ac_status=$?
8323    cat conftest.err >&5
8324    echo "$as_me:8324: \$? = $ac_status" >&5
8325    if (exit $ac_status) && test -s "$ac_outfile"; then
8326      # The compiler can only warn and ignore the option if not recognized
8327      # So say no if there are warnings other than the usual output.
8328      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
8329      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8330      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8331        lt_prog_compiler_pic_works=yes
8332      fi
8333    fi
8334    $rm conftest*
8335
8336 fi
8337 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8338 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8339
8340 if test x"$lt_prog_compiler_pic_works" = xyes; then
8341     case $lt_prog_compiler_pic in
8342      "" | " "*) ;;
8343      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8344      esac
8345 else
8346     lt_prog_compiler_pic=
8347      lt_prog_compiler_can_build_shared=no
8348 fi
8349
8350 fi
8351 case $host_os in
8352   # For platforms which do not support PIC, -DPIC is meaningless:
8353   *djgpp*)
8354     lt_prog_compiler_pic=
8355     ;;
8356   *)
8357     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8358     ;;
8359 esac
8360
8361 #
8362 # Check to make sure the static flag actually works.
8363 #
8364 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8365 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8366 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
8367 if test "${lt_prog_compiler_static_works+set}" = set; then
8368   echo $ECHO_N "(cached) $ECHO_C" >&6
8369 else
8370   lt_prog_compiler_static_works=no
8371    save_LDFLAGS="$LDFLAGS"
8372    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8373    printf "$lt_simple_link_test_code" > conftest.$ac_ext
8374    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8375      # The linker can only warn and ignore the option if not recognized
8376      # So say no if there are warnings
8377      if test -s conftest.err; then
8378        # Append any errors to the config.log.
8379        cat conftest.err 1>&5
8380        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
8381        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8382        if diff conftest.exp conftest.er2 >/dev/null; then
8383          lt_prog_compiler_static_works=yes
8384        fi
8385      else
8386        lt_prog_compiler_static_works=yes
8387      fi
8388    fi
8389    $rm conftest*
8390    LDFLAGS="$save_LDFLAGS"
8391
8392 fi
8393 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8394 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8395
8396 if test x"$lt_prog_compiler_static_works" = xyes; then
8397     :
8398 else
8399     lt_prog_compiler_static=
8400 fi
8401
8402
8403 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8404 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8405 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8406   echo $ECHO_N "(cached) $ECHO_C" >&6
8407 else
8408   lt_cv_prog_compiler_c_o=no
8409    $rm -r conftest 2>/dev/null
8410    mkdir conftest
8411    cd conftest
8412    mkdir out
8413    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8414
8415    lt_compiler_flag="-o out/conftest2.$ac_objext"
8416    # Insert the option either (1) after the last *FLAGS variable, or
8417    # (2) before a word containing "conftest.", or (3) at the end.
8418    # Note that $ac_compile itself does not contain backslashes and begins
8419    # with a dollar sign (not a hyphen), so the echo should work correctly.
8420    lt_compile=`echo "$ac_compile" | $SED \
8421    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8422    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8423    -e 's:$: $lt_compiler_flag:'`
8424    (eval echo "\"\$as_me:8424: $lt_compile\"" >&5)
8425    (eval "$lt_compile" 2>out/conftest.err)
8426    ac_status=$?
8427    cat out/conftest.err >&5
8428    echo "$as_me:8428: \$? = $ac_status" >&5
8429    if (exit $ac_status) && test -s out/conftest2.$ac_objext
8430    then
8431      # The compiler can only warn and ignore the option if not recognized
8432      # So say no if there are warnings
8433      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8434      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8435      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8436        lt_cv_prog_compiler_c_o=yes
8437      fi
8438    fi
8439    chmod u+w . 2>&5
8440    $rm conftest*
8441    # SGI C++ compiler will create directory out/ii_files/ for
8442    # template instantiation
8443    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8444    $rm out/* && rmdir out
8445    cd ..
8446    rmdir conftest
8447    $rm conftest*
8448
8449 fi
8450 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8451 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8452
8453
8454 hard_links="nottested"
8455 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8456   # do not overwrite the value of need_locks provided by the user
8457   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8458 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8459   hard_links=yes
8460   $rm conftest*
8461   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8462   touch conftest.a
8463   ln conftest.a conftest.b 2>&5 || hard_links=no
8464   ln conftest.a conftest.b 2>/dev/null && hard_links=no
8465   echo "$as_me:$LINENO: result: $hard_links" >&5
8466 echo "${ECHO_T}$hard_links" >&6
8467   if test "$hard_links" = no; then
8468     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8469 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8470     need_locks=warn
8471   fi
8472 else
8473   need_locks=no
8474 fi
8475
8476 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8477 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8478
8479   runpath_var=
8480   allow_undefined_flag=
8481   enable_shared_with_static_runtimes=no
8482   archive_cmds=
8483   archive_expsym_cmds=
8484   old_archive_From_new_cmds=
8485   old_archive_from_expsyms_cmds=
8486   export_dynamic_flag_spec=
8487   whole_archive_flag_spec=
8488   thread_safe_flag_spec=
8489   hardcode_libdir_flag_spec=
8490   hardcode_libdir_flag_spec_ld=
8491   hardcode_libdir_separator=
8492   hardcode_direct=no
8493   hardcode_minus_L=no
8494   hardcode_shlibpath_var=unsupported
8495   link_all_deplibs=unknown
8496   hardcode_automatic=no
8497   module_cmds=
8498   module_expsym_cmds=
8499   always_export_symbols=no
8500   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8501   # include_expsyms should be a list of space-separated symbols to be *always*
8502   # included in the symbol list
8503   include_expsyms=
8504   # exclude_expsyms can be an extended regexp of symbols to exclude
8505   # it will be wrapped by ` (' and `)$', so one must not match beginning or
8506   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8507   # as well as any symbol that contains `d'.
8508   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8509   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8510   # platforms (ab)use it in PIC code, but their linkers get confused if
8511   # the symbol is explicitly referenced.  Since portable code cannot
8512   # rely on this symbol name, it's probably fine to never include it in
8513   # preloaded symbol tables.
8514   extract_expsyms_cmds=
8515   # Just being paranoid about ensuring that cc_basename is set.
8516   for cc_temp in $compiler""; do
8517   case $cc_temp in
8518     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8519     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8520     \-*) ;;
8521     *) break;;
8522   esac
8523 done
8524 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8525
8526   case $host_os in
8527   cygwin* | mingw* | pw32*)
8528     # FIXME: the MSVC++ port hasn't been tested in a loooong time
8529     # When not using gcc, we currently assume that we are using
8530     # Microsoft Visual C++.
8531     if test "$GCC" != yes; then
8532       with_gnu_ld=no
8533     fi
8534     ;;
8535   interix*)
8536     # we just hope/assume this is gcc and not c89 (= MSVC++)
8537     with_gnu_ld=yes
8538     ;;
8539   openbsd*)
8540     with_gnu_ld=no
8541     ;;
8542   esac
8543
8544   ld_shlibs=yes
8545   if test "$with_gnu_ld" = yes; then
8546     # If archive_cmds runs LD, not CC, wlarc should be empty
8547     wlarc='${wl}'
8548
8549     # Set some defaults for GNU ld with shared library support. These
8550     # are reset later if shared libraries are not supported. Putting them
8551     # here allows them to be overridden if necessary.
8552     runpath_var=LD_RUN_PATH
8553     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8554     export_dynamic_flag_spec='${wl}--export-dynamic'
8555     # ancient GNU ld didn't support --whole-archive et. al.
8556     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8557         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8558       else
8559         whole_archive_flag_spec=
8560     fi
8561     supports_anon_versioning=no
8562     case `$LD -v 2>/dev/null` in
8563       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8564       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8565       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8566       *\ 2.11.*) ;; # other 2.11 versions
8567       *) supports_anon_versioning=yes ;;
8568     esac
8569
8570     # See if GNU ld supports shared libraries.
8571     case $host_os in
8572     aix3* | aix4* | aix5*)
8573       # On AIX/PPC, the GNU linker is very broken
8574       if test "$host_cpu" != ia64; then
8575         ld_shlibs=no
8576         cat <<EOF 1>&2
8577
8578 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8579 *** to be unable to reliably create shared libraries on AIX.
8580 *** Therefore, libtool is disabling shared libraries support.  If you
8581 *** really care for shared libraries, you may want to modify your PATH
8582 *** so that a non-GNU linker is found, and then restart.
8583
8584 EOF
8585       fi
8586       ;;
8587
8588     amigaos*)
8589       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)'
8590       hardcode_libdir_flag_spec='-L$libdir'
8591       hardcode_minus_L=yes
8592
8593       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8594       # that the semantics of dynamic libraries on AmigaOS, at least up
8595       # to version 4, is to share data among multiple programs linked
8596       # with the same dynamic library.  Since this doesn't match the
8597       # behavior of shared libraries on other platforms, we can't use
8598       # them.
8599       ld_shlibs=no
8600       ;;
8601
8602     beos*)
8603       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8604         allow_undefined_flag=unsupported
8605         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8606         # support --undefined.  This deserves some investigation.  FIXME
8607         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8608       else
8609         ld_shlibs=no
8610       fi
8611       ;;
8612
8613     cygwin* | mingw* | pw32*)
8614       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8615       # as there is no search path for DLLs.
8616       hardcode_libdir_flag_spec='-L$libdir'
8617       allow_undefined_flag=unsupported
8618       always_export_symbols=no
8619       enable_shared_with_static_runtimes=yes
8620       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8621
8622       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8623         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8624         # If the export-symbols file already is a .def file (1st line
8625         # is EXPORTS), use it as is; otherwise, prepend...
8626         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8627           cp $export_symbols $output_objdir/$soname.def;
8628         else
8629           echo EXPORTS > $output_objdir/$soname.def;
8630           cat $export_symbols >> $output_objdir/$soname.def;
8631         fi~
8632         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8633       else
8634         ld_shlibs=no
8635       fi
8636       ;;
8637
8638     interix3*)
8639       hardcode_direct=no
8640       hardcode_shlibpath_var=no
8641       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8642       export_dynamic_flag_spec='${wl}-E'
8643       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8644       # Instead, shared libraries are loaded at an image base (0x10000000 by
8645       # default) and relocated if they conflict, which is a slow very memory
8646       # consuming and fragmenting process.  To avoid this, we pick a random,
8647       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8648       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
8649       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8650       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'
8651       ;;
8652
8653     linux*)
8654       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8655         tmp_addflag=
8656         case $cc_basename,$host_cpu in
8657         pgcc*)                          # Portland Group C compiler
8658           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'
8659           tmp_addflag=' $pic_flag'
8660           ;;
8661         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
8662           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'
8663           tmp_addflag=' $pic_flag -Mnomain' ;;
8664         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
8665           tmp_addflag=' -i_dynamic' ;;
8666         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
8667           tmp_addflag=' -i_dynamic -nofor_main' ;;
8668         ifc* | ifort*)                  # Intel Fortran compiler
8669           tmp_addflag=' -nofor_main' ;;
8670         esac
8671         archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8672
8673         if test $supports_anon_versioning = yes; then
8674           archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8675   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8676   $echo "local: *; };" >> $output_objdir/$libname.ver~
8677           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8678         fi
8679       else
8680         ld_shlibs=no
8681       fi
8682       ;;
8683
8684     netbsd*)
8685       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8686         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8687         wlarc=
8688       else
8689         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8690         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8691       fi
8692       ;;
8693
8694     solaris*)
8695       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8696         ld_shlibs=no
8697         cat <<EOF 1>&2
8698
8699 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8700 *** create shared libraries on Solaris systems.  Therefore, libtool
8701 *** is disabling shared libraries support.  We urge you to upgrade GNU
8702 *** binutils to release 2.9.1 or newer.  Another option is to modify
8703 *** your PATH or compiler configuration so that the native linker is
8704 *** used, and then restart.
8705
8706 EOF
8707       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8708         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8709         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8710       else
8711         ld_shlibs=no
8712       fi
8713       ;;
8714
8715     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8716       case `$LD -v 2>&1` in
8717         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8718         ld_shlibs=no
8719         cat <<_LT_EOF 1>&2
8720
8721 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8722 *** reliably create shared libraries on SCO systems.  Therefore, libtool
8723 *** is disabling shared libraries support.  We urge you to upgrade GNU
8724 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
8725 *** your PATH or compiler configuration so that the native linker is
8726 *** used, and then restart.
8727
8728 _LT_EOF
8729         ;;
8730         *)
8731           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8732             hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8733             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8734             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8735           else
8736             ld_shlibs=no
8737           fi
8738         ;;
8739       esac
8740       ;;
8741
8742     sunos4*)
8743       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8744       wlarc=
8745       hardcode_direct=yes
8746       hardcode_shlibpath_var=no
8747       ;;
8748
8749     *)
8750       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8751         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8752         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8753       else
8754         ld_shlibs=no
8755       fi
8756       ;;
8757     esac
8758
8759     if test "$ld_shlibs" = no; then
8760       runpath_var=
8761       hardcode_libdir_flag_spec=
8762       export_dynamic_flag_spec=
8763       whole_archive_flag_spec=
8764     fi
8765   else
8766     # PORTME fill in a description of your system's linker (not GNU ld)
8767     case $host_os in
8768     aix3*)
8769       allow_undefined_flag=unsupported
8770       always_export_symbols=yes
8771       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'
8772       # Note: this linker hardcodes the directories in LIBPATH if there
8773       # are no directories specified by -L.
8774       hardcode_minus_L=yes
8775       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8776         # Neither direct hardcoding nor static linking is supported with a
8777         # broken collect2.
8778         hardcode_direct=unsupported
8779       fi
8780       ;;
8781
8782     aix4* | aix5*)
8783       if test "$host_cpu" = ia64; then
8784         # On IA64, the linker does run time linking by default, so we don't
8785         # have to do anything special.
8786         aix_use_runtimelinking=no
8787         exp_sym_flag='-Bexport'
8788         no_entry_flag=""
8789       else
8790         # If we're using GNU nm, then we don't want the "-C" option.
8791         # -C means demangle to AIX nm, but means don't demangle with GNU nm
8792         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8793           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'
8794         else
8795           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'
8796         fi
8797         aix_use_runtimelinking=no
8798
8799         # Test if we are trying to use run time linking or normal
8800         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8801         # need to do runtime linking.
8802         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8803           for ld_flag in $LDFLAGS; do
8804           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8805             aix_use_runtimelinking=yes
8806             break
8807           fi
8808           done
8809           ;;
8810         esac
8811
8812         exp_sym_flag='-bexport'
8813         no_entry_flag='-bnoentry'
8814       fi
8815
8816       # When large executables or shared objects are built, AIX ld can
8817       # have problems creating the table of contents.  If linking a library
8818       # or program results in "error TOC overflow" add -mminimal-toc to
8819       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
8820       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8821
8822       archive_cmds=''
8823       hardcode_direct=yes
8824       hardcode_libdir_separator=':'
8825       link_all_deplibs=yes
8826
8827       if test "$GCC" = yes; then
8828         case $host_os in aix4.[012]|aix4.[012].*)
8829         # We only want to do this on AIX 4.2 and lower, the check
8830         # below for broken collect2 doesn't work under 4.3+
8831           collect2name=`${CC} -print-prog-name=collect2`
8832           if test -f "$collect2name" && \
8833            strings "$collect2name" | grep resolve_lib_name >/dev/null
8834           then
8835           # We have reworked collect2
8836           hardcode_direct=yes
8837           else
8838           # We have old collect2
8839           hardcode_direct=unsupported
8840           # It fails to find uninstalled libraries when the uninstalled
8841           # path is not listed in the libpath.  Setting hardcode_minus_L
8842           # to unsupported forces relinking
8843           hardcode_minus_L=yes
8844           hardcode_libdir_flag_spec='-L$libdir'
8845           hardcode_libdir_separator=
8846           fi
8847           ;;
8848         esac
8849         shared_flag='-shared'
8850         if test "$aix_use_runtimelinking" = yes; then
8851           shared_flag="$shared_flag "'${wl}-G'
8852         fi
8853       else
8854         # not using gcc
8855         if test "$host_cpu" = ia64; then
8856         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8857         # chokes on -Wl,-G. The following line is correct:
8858           shared_flag='-G'
8859         else
8860           if test "$aix_use_runtimelinking" = yes; then
8861             shared_flag='${wl}-G'
8862           else
8863             shared_flag='${wl}-bM:SRE'
8864           fi
8865         fi
8866       fi
8867
8868       # It seems that -bexpall does not export symbols beginning with
8869       # underscore (_), so it is better to generate a list of symbols to export.
8870       always_export_symbols=yes
8871       if test "$aix_use_runtimelinking" = yes; then
8872         # Warning - without using the other runtime loading flags (-brtl),
8873         # -berok will link without error, but may produce a broken library.
8874         allow_undefined_flag='-berok'
8875        # Determine the default libpath from the value encoded in an empty executable.
8876        cat >conftest.$ac_ext <<_ACEOF
8877 /* confdefs.h.  */
8878 _ACEOF
8879 cat confdefs.h >>conftest.$ac_ext
8880 cat >>conftest.$ac_ext <<_ACEOF
8881 /* end confdefs.h.  */
8882
8883 int
8884 main ()
8885 {
8886
8887   ;
8888   return 0;
8889 }
8890 _ACEOF
8891 rm -f conftest.$ac_objext conftest$ac_exeext
8892 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8893   (eval $ac_link) 2>conftest.er1
8894   ac_status=$?
8895   grep -v '^ *+' conftest.er1 >conftest.err
8896   rm -f conftest.er1
8897   cat conftest.err >&5
8898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8899   (exit $ac_status); } &&
8900          { ac_try='test -z "$ac_c_werror_flag"
8901                          || test ! -s conftest.err'
8902   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8903   (eval $ac_try) 2>&5
8904   ac_status=$?
8905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8906   (exit $ac_status); }; } &&
8907          { ac_try='test -s conftest$ac_exeext'
8908   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8909   (eval $ac_try) 2>&5
8910   ac_status=$?
8911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912   (exit $ac_status); }; }; then
8913
8914 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8915 }'`
8916 # Check for a 64-bit object if we didn't find anything.
8917 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; }
8918 }'`; fi
8919 else
8920   echo "$as_me: failed program was:" >&5
8921 sed 's/^/| /' conftest.$ac_ext >&5
8922
8923 fi
8924 rm -f conftest.err conftest.$ac_objext \
8925       conftest$ac_exeext conftest.$ac_ext
8926 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8927
8928        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8929         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"
8930        else
8931         if test "$host_cpu" = ia64; then
8932           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8933           allow_undefined_flag="-z nodefs"
8934           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"
8935         else
8936          # Determine the default libpath from the value encoded in an empty executable.
8937          cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h.  */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h.  */
8943
8944 int
8945 main ()
8946 {
8947
8948   ;
8949   return 0;
8950 }
8951 _ACEOF
8952 rm -f conftest.$ac_objext conftest$ac_exeext
8953 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8954   (eval $ac_link) 2>conftest.er1
8955   ac_status=$?
8956   grep -v '^ *+' conftest.er1 >conftest.err
8957   rm -f conftest.er1
8958   cat conftest.err >&5
8959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960   (exit $ac_status); } &&
8961          { ac_try='test -z "$ac_c_werror_flag"
8962                          || test ! -s conftest.err'
8963   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8964   (eval $ac_try) 2>&5
8965   ac_status=$?
8966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967   (exit $ac_status); }; } &&
8968          { ac_try='test -s conftest$ac_exeext'
8969   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970   (eval $ac_try) 2>&5
8971   ac_status=$?
8972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973   (exit $ac_status); }; }; then
8974
8975 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
8976 }'`
8977 # Check for a 64-bit object if we didn't find anything.
8978 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; }
8979 }'`; fi
8980 else
8981   echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 fi
8985 rm -f conftest.err conftest.$ac_objext \
8986       conftest$ac_exeext conftest.$ac_ext
8987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8988
8989          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8990           # Warning - without using the other run time loading flags,
8991           # -berok will link without error, but may produce a broken library.
8992           no_undefined_flag=' ${wl}-bernotok'
8993           allow_undefined_flag=' ${wl}-berok'
8994           # Exported symbols can be pulled into shared objects from archives
8995           whole_archive_flag_spec='$convenience'
8996           archive_cmds_need_lc=yes
8997           # This is similar to how AIX traditionally builds its shared libraries.
8998           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'
8999         fi
9000       fi
9001       ;;
9002
9003     amigaos*)
9004       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)'
9005       hardcode_libdir_flag_spec='-L$libdir'
9006       hardcode_minus_L=yes
9007       # see comment about different semantics on the GNU ld section
9008       ld_shlibs=no
9009       ;;
9010
9011     bsdi[45]*)
9012       export_dynamic_flag_spec=-rdynamic
9013       ;;
9014
9015     cygwin* | mingw* | pw32*)
9016       # When not using gcc, we currently assume that we are using
9017       # Microsoft Visual C++.
9018       # hardcode_libdir_flag_spec is actually meaningless, as there is
9019       # no search path for DLLs.
9020       hardcode_libdir_flag_spec=' '
9021       allow_undefined_flag=unsupported
9022       # Tell ltmain to make .lib files, not .a files.
9023       libext=lib
9024       # Tell ltmain to make .dll files, not .so files.
9025       shrext_cmds=".dll"
9026       # FIXME: Setting linknames here is a bad hack.
9027       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9028       # The linker will automatically build a .lib file if we build a DLL.
9029       old_archive_From_new_cmds='true'
9030       # FIXME: Should let the user specify the lib program.
9031       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9032       fix_srcfile_path='`cygpath -w "$srcfile"`'
9033       enable_shared_with_static_runtimes=yes
9034       ;;
9035
9036     darwin* | rhapsody*)
9037       case $host_os in
9038         rhapsody* | darwin1.[012])
9039          allow_undefined_flag='${wl}-undefined ${wl}suppress'
9040          ;;
9041        *) # Darwin 1.3 on
9042          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9043            allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9044          else
9045            case ${MACOSX_DEPLOYMENT_TARGET} in
9046              10.[012])
9047                allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9048                ;;
9049              10.*)
9050                allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
9051                ;;
9052            esac
9053          fi
9054          ;;
9055       esac
9056       archive_cmds_need_lc=no
9057       hardcode_direct=no
9058       hardcode_automatic=yes
9059       hardcode_shlibpath_var=unsupported
9060       whole_archive_flag_spec=''
9061       link_all_deplibs=yes
9062     if test "$GCC" = yes ; then
9063         output_verbose_link_cmd='echo'
9064         archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9065       module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9066       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9067       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}'
9068       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}'
9069     else
9070       case $cc_basename in
9071         xlc*)
9072          output_verbose_link_cmd='echo'
9073          archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
9074          module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9075           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
9076          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}'
9077           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}'
9078           ;;
9079        *)
9080          ld_shlibs=no
9081           ;;
9082       esac
9083     fi
9084       ;;
9085
9086     dgux*)
9087       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9088       hardcode_libdir_flag_spec='-L$libdir'
9089       hardcode_shlibpath_var=no
9090       ;;
9091
9092     freebsd1*)
9093       ld_shlibs=no
9094       ;;
9095
9096     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9097     # support.  Future versions do this automatically, but an explicit c++rt0.o
9098     # does not break anything, and helps significantly (at the cost of a little
9099     # extra space).
9100     freebsd2.2*)
9101       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9102       hardcode_libdir_flag_spec='-R$libdir'
9103       hardcode_direct=yes
9104       hardcode_shlibpath_var=no
9105       ;;
9106
9107     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9108     freebsd2*)
9109       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9110       hardcode_direct=yes
9111       hardcode_minus_L=yes
9112       hardcode_shlibpath_var=no
9113       ;;
9114
9115     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9116     freebsd* | kfreebsd*-gnu | dragonfly*)
9117       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9118       hardcode_libdir_flag_spec='-R$libdir'
9119       hardcode_direct=yes
9120       hardcode_shlibpath_var=no
9121       ;;
9122
9123     hpux9*)
9124       if test "$GCC" = yes; then
9125         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'
9126       else
9127         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'
9128       fi
9129       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9130       hardcode_libdir_separator=:
9131       hardcode_direct=yes
9132
9133       # hardcode_minus_L: Not really in the search PATH,
9134       # but as the default location of the library.
9135       hardcode_minus_L=yes
9136       export_dynamic_flag_spec='${wl}-E'
9137       ;;
9138
9139     hpux10*)
9140       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9141         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9142       else
9143         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9144       fi
9145       if test "$with_gnu_ld" = no; then
9146         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9147         hardcode_libdir_separator=:
9148
9149         hardcode_direct=yes
9150         export_dynamic_flag_spec='${wl}-E'
9151
9152         # hardcode_minus_L: Not really in the search PATH,
9153         # but as the default location of the library.
9154         hardcode_minus_L=yes
9155       fi
9156       ;;
9157
9158     hpux11*)
9159       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9160         case $host_cpu in
9161         hppa*64*)
9162           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9163           ;;
9164         ia64*)
9165           archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9166           ;;
9167         *)
9168           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9169           ;;
9170         esac
9171       else
9172         case $host_cpu in
9173         hppa*64*)
9174           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9175           ;;
9176         ia64*)
9177           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9178           ;;
9179         *)
9180           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9181           ;;
9182         esac
9183       fi
9184       if test "$with_gnu_ld" = no; then
9185         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9186         hardcode_libdir_separator=:
9187
9188         case $host_cpu in
9189         hppa*64*|ia64*)
9190           hardcode_libdir_flag_spec_ld='+b $libdir'
9191           hardcode_direct=no
9192           hardcode_shlibpath_var=no
9193           ;;
9194         *)
9195           hardcode_direct=yes
9196           export_dynamic_flag_spec='${wl}-E'
9197
9198           # hardcode_minus_L: Not really in the search PATH,
9199           # but as the default location of the library.
9200           hardcode_minus_L=yes
9201           ;;
9202         esac
9203       fi
9204       ;;
9205
9206     irix5* | irix6* | nonstopux*)
9207       if test "$GCC" = yes; then
9208         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'
9209       else
9210         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'
9211         hardcode_libdir_flag_spec_ld='-rpath $libdir'
9212       fi
9213       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9214       hardcode_libdir_separator=:
9215       link_all_deplibs=yes
9216       ;;
9217
9218     netbsd*)
9219       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9220         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9221       else
9222         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9223       fi
9224       hardcode_libdir_flag_spec='-R$libdir'
9225       hardcode_direct=yes
9226       hardcode_shlibpath_var=no
9227       ;;
9228
9229     newsos6)
9230       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9231       hardcode_direct=yes
9232       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9233       hardcode_libdir_separator=:
9234       hardcode_shlibpath_var=no
9235       ;;
9236
9237     openbsd*)
9238       hardcode_direct=yes
9239       hardcode_shlibpath_var=no
9240       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9241         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9242         archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9243         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9244         export_dynamic_flag_spec='${wl}-E'
9245       else
9246        case $host_os in
9247          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9248            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9249            hardcode_libdir_flag_spec='-R$libdir'
9250            ;;
9251          *)
9252            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9253            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9254            ;;
9255        esac
9256       fi
9257       ;;
9258
9259     os2*)
9260       hardcode_libdir_flag_spec='-L$libdir'
9261       hardcode_minus_L=yes
9262       allow_undefined_flag=unsupported
9263       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'
9264       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9265       ;;
9266
9267     osf3*)
9268       if test "$GCC" = yes; then
9269         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9270         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'
9271       else
9272         allow_undefined_flag=' -expect_unresolved \*'
9273         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'
9274       fi
9275       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9276       hardcode_libdir_separator=:
9277       ;;
9278
9279     osf4* | osf5*)      # as osf3* with the addition of -msym flag
9280       if test "$GCC" = yes; then
9281         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9282         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'
9283         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9284       else
9285         allow_undefined_flag=' -expect_unresolved \*'
9286         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'
9287         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9288         $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'
9289
9290         # Both c and cxx compiler support -rpath directly
9291         hardcode_libdir_flag_spec='-rpath $libdir'
9292       fi
9293       hardcode_libdir_separator=:
9294       ;;
9295
9296     solaris*)
9297       no_undefined_flag=' -z text'
9298       if test "$GCC" = yes; then
9299         wlarc='${wl}'
9300         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9301         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9302           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9303       else
9304         wlarc=''
9305         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9306         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9307         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9308       fi
9309       hardcode_libdir_flag_spec='-R$libdir'
9310       hardcode_shlibpath_var=no
9311       case $host_os in
9312       solaris2.[0-5] | solaris2.[0-5].*) ;;
9313       *)
9314         # The compiler driver will combine linker options so we
9315         # cannot just pass the convience library names through
9316         # without $wl, iff we do not link with $LD.
9317         # Luckily, gcc supports the same syntax we need for Sun Studio.
9318         # Supported since Solaris 2.6 (maybe 2.5.1?)
9319         case $wlarc in
9320         '')
9321           whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9322         *)
9323           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' ;;
9324         esac ;;
9325       esac
9326       link_all_deplibs=yes
9327       ;;
9328
9329     sunos4*)
9330       if test "x$host_vendor" = xsequent; then
9331         # Use $CC to link under sequent, because it throws in some extra .o
9332         # files that make .init and .fini sections work.
9333         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9334       else
9335         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9336       fi
9337       hardcode_libdir_flag_spec='-L$libdir'
9338       hardcode_direct=yes
9339       hardcode_minus_L=yes
9340       hardcode_shlibpath_var=no
9341       ;;
9342
9343     sysv4)
9344       case $host_vendor in
9345         sni)
9346           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9347           hardcode_direct=yes # is this really true???
9348         ;;
9349         siemens)
9350           ## LD is ld it makes a PLAMLIB
9351           ## CC just makes a GrossModule.
9352           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9353           reload_cmds='$CC -r -o $output$reload_objs'
9354           hardcode_direct=no
9355         ;;
9356         motorola)
9357           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9358           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9359         ;;
9360       esac
9361       runpath_var='LD_RUN_PATH'
9362       hardcode_shlibpath_var=no
9363       ;;
9364
9365     sysv4.3*)
9366       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9367       hardcode_shlibpath_var=no
9368       export_dynamic_flag_spec='-Bexport'
9369       ;;
9370
9371     sysv4*MP*)
9372       if test -d /usr/nec; then
9373         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9374         hardcode_shlibpath_var=no
9375         runpath_var=LD_RUN_PATH
9376         hardcode_runpath_var=yes
9377         ld_shlibs=yes
9378       fi
9379       ;;
9380
9381     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
9382       no_undefined_flag='${wl}-z,text'
9383       archive_cmds_need_lc=no
9384       hardcode_shlibpath_var=no
9385       runpath_var='LD_RUN_PATH'
9386
9387       if test "$GCC" = yes; then
9388         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9389         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9390       else
9391         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9392         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9393       fi
9394       ;;
9395
9396     sysv5* | sco3.2v5* | sco5v6*)
9397       # Note: We can NOT use -z defs as we might desire, because we do not
9398       # link with -lc, and that would cause any symbols used from libc to
9399       # always be unresolved, which means just about no library would
9400       # ever link correctly.  If we're not using GNU ld we use -z text
9401       # though, which does catch some bad symbols but isn't as heavy-handed
9402       # as -z defs.
9403       no_undefined_flag='${wl}-z,text'
9404       allow_undefined_flag='${wl}-z,nodefs'
9405       archive_cmds_need_lc=no
9406       hardcode_shlibpath_var=no
9407       hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
9408       hardcode_libdir_separator=':'
9409       link_all_deplibs=yes
9410       export_dynamic_flag_spec='${wl}-Bexport'
9411       runpath_var='LD_RUN_PATH'
9412
9413       if test "$GCC" = yes; then
9414         archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9415         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9416       else
9417         archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9418         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
9419       fi
9420       ;;
9421
9422     uts4*)
9423       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9424       hardcode_libdir_flag_spec='-L$libdir'
9425       hardcode_shlibpath_var=no
9426       ;;
9427
9428     *)
9429       ld_shlibs=no
9430       ;;
9431     esac
9432   fi
9433
9434 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9435 echo "${ECHO_T}$ld_shlibs" >&6
9436 test "$ld_shlibs" = no && can_build_shared=no
9437
9438 #
9439 # Do we need to explicitly link libc?
9440 #
9441 case "x$archive_cmds_need_lc" in
9442 x|xyes)
9443   # Assume -lc should be added
9444   archive_cmds_need_lc=yes
9445
9446   if test "$enable_shared" = yes && test "$GCC" = yes; then
9447     case $archive_cmds in
9448     *'~'*)
9449       # FIXME: we may have to deal with multi-command sequences.
9450       ;;
9451     '$CC '*)
9452       # Test whether the compiler implicitly links with -lc since on some
9453       # systems, -lgcc has to come before -lc. If gcc already passes -lc
9454       # to ld, don't add -lc before -lgcc.
9455       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9456 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9457       $rm conftest*
9458       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9459
9460       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9461   (eval $ac_compile) 2>&5
9462   ac_status=$?
9463   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9464   (exit $ac_status); } 2>conftest.err; then
9465         soname=conftest
9466         lib=conftest
9467         libobjs=conftest.$ac_objext
9468         deplibs=
9469         wl=$lt_prog_compiler_wl
9470         pic_flag=$lt_prog_compiler_pic
9471         compiler_flags=-v
9472         linker_flags=-v
9473         verstring=
9474         output_objdir=.
9475         libname=conftest
9476         lt_save_allow_undefined_flag=$allow_undefined_flag
9477         allow_undefined_flag=
9478         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9479   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9480   ac_status=$?
9481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482   (exit $ac_status); }
9483         then
9484           archive_cmds_need_lc=no
9485         else
9486           archive_cmds_need_lc=yes
9487         fi
9488         allow_undefined_flag=$lt_save_allow_undefined_flag
9489       else
9490         cat conftest.err 1>&5
9491       fi
9492       $rm conftest*
9493       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9494 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9495       ;;
9496     esac
9497   fi
9498   ;;
9499 esac
9500
9501 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9502 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9503 library_names_spec=
9504 libname_spec='lib$name'
9505 soname_spec=
9506 shrext_cmds=".so"
9507 postinstall_cmds=
9508 postuninstall_cmds=
9509 finish_cmds=
9510 finish_eval=
9511 shlibpath_var=
9512 shlibpath_overrides_runpath=unknown
9513 version_type=none
9514 dynamic_linker="$host_os ld.so"
9515 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9516 if test "$GCC" = yes; then
9517   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9518   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9519     # if the path contains ";" then we assume it to be the separator
9520     # otherwise default to the standard path separator (i.e. ":") - it is
9521     # assumed that no part of a normal pathname contains ";" but that should
9522     # okay in the real world where ";" in dirpaths is itself problematic.
9523     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9524   else
9525     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9526   fi
9527 else
9528   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9529 fi
9530 need_lib_prefix=unknown
9531 hardcode_into_libs=no
9532
9533 # when you set need_version to no, make sure it does not cause -set_version
9534 # flags to be left without arguments
9535 need_version=unknown
9536
9537 case $host_os in
9538 aix3*)
9539   version_type=linux
9540   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9541   shlibpath_var=LIBPATH
9542
9543   # AIX 3 has no versioning support, so we append a major version to the name.
9544   soname_spec='${libname}${release}${shared_ext}$major'
9545   ;;
9546
9547 aix4* | aix5*)
9548   version_type=linux
9549   need_lib_prefix=no
9550   need_version=no
9551   hardcode_into_libs=yes
9552   if test "$host_cpu" = ia64; then
9553     # AIX 5 supports IA64
9554     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9555     shlibpath_var=LD_LIBRARY_PATH
9556   else
9557     # With GCC up to 2.95.x, collect2 would create an import file
9558     # for dependence libraries.  The import file would start with
9559     # the line `#! .'.  This would cause the generated library to
9560     # depend on `.', always an invalid library.  This was fixed in
9561     # development snapshots of GCC prior to 3.0.
9562     case $host_os in
9563       aix4 | aix4.[01] | aix4.[01].*)
9564       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9565            echo ' yes '
9566            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9567         :
9568       else
9569         can_build_shared=no
9570       fi
9571       ;;
9572     esac
9573     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9574     # soname into executable. Probably we can add versioning support to
9575     # collect2, so additional links can be useful in future.
9576     if test "$aix_use_runtimelinking" = yes; then
9577       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9578       # instead of lib<name>.a to let people know that these are not
9579       # typical AIX shared libraries.
9580       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9581     else
9582       # We preserve .a as extension for shared libraries through AIX4.2
9583       # and later when we are not doing run time linking.
9584       library_names_spec='${libname}${release}.a $libname.a'
9585       soname_spec='${libname}${release}${shared_ext}$major'
9586     fi
9587     shlibpath_var=LIBPATH
9588   fi
9589   ;;
9590
9591 amigaos*)
9592   library_names_spec='$libname.ixlibrary $libname.a'
9593   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9594   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'
9595   ;;
9596
9597 beos*)
9598   library_names_spec='${libname}${shared_ext}'
9599   dynamic_linker="$host_os ld.so"
9600   shlibpath_var=LIBRARY_PATH
9601   ;;
9602
9603 bsdi[45]*)
9604   version_type=linux
9605   need_version=no
9606   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9607   soname_spec='${libname}${release}${shared_ext}$major'
9608   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9609   shlibpath_var=LD_LIBRARY_PATH
9610   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9611   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9612   # the default ld.so.conf also contains /usr/contrib/lib and
9613   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9614   # libtool to hard-code these into programs
9615   ;;
9616
9617 cygwin* | mingw* | pw32*)
9618   version_type=windows
9619   shrext_cmds=".dll"
9620   need_version=no
9621   need_lib_prefix=no
9622
9623   case $GCC,$host_os in
9624   yes,cygwin* | yes,mingw* | yes,pw32*)
9625     library_names_spec='$libname.dll.a'
9626     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9627     postinstall_cmds='base_file=`basename \${file}`~
9628       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9629       dldir=$destdir/`dirname \$dlpath`~
9630       test -d \$dldir || mkdir -p \$dldir~
9631       $install_prog $dir/$dlname \$dldir/$dlname~
9632       chmod a+x \$dldir/$dlname'
9633     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9634       dlpath=$dir/\$dldll~
9635        $rm \$dlpath'
9636     shlibpath_overrides_runpath=yes
9637
9638     case $host_os in
9639     cygwin*)
9640       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9641       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9642       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9643       ;;
9644     mingw*)
9645       # MinGW DLLs use traditional 'lib' prefix
9646       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9647       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9648       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9649         # It is most probably a Windows format PATH printed by
9650         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9651         # path with ; separators, and with drive letters. We can handle the
9652         # drive letters (cygwin fileutils understands them), so leave them,
9653         # especially as we might pass files found there to a mingw objdump,
9654         # which wouldn't understand a cygwinified path. Ahh.
9655         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9656       else
9657         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9658       fi
9659       ;;
9660     pw32*)
9661       # pw32 DLLs use 'pw' prefix rather than 'lib'
9662       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9663       ;;
9664     esac
9665     ;;
9666
9667   *)
9668     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9669     ;;
9670   esac
9671   dynamic_linker='Win32 ld.exe'
9672   # FIXME: first we should search . and the directory the executable is in
9673   shlibpath_var=PATH
9674   ;;
9675
9676 darwin* | rhapsody*)
9677   dynamic_linker="$host_os dyld"
9678   version_type=darwin
9679   need_lib_prefix=no
9680   need_version=no
9681   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9682   soname_spec='${libname}${release}${major}$shared_ext'
9683   shlibpath_overrides_runpath=yes
9684   shlibpath_var=DYLD_LIBRARY_PATH
9685   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9686   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9687   if test "$GCC" = yes; then
9688     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"`
9689   else
9690     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9691   fi
9692   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9693   ;;
9694
9695 dgux*)
9696   version_type=linux
9697   need_lib_prefix=no
9698   need_version=no
9699   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9700   soname_spec='${libname}${release}${shared_ext}$major'
9701   shlibpath_var=LD_LIBRARY_PATH
9702   ;;
9703
9704 freebsd1*)
9705   dynamic_linker=no
9706   ;;
9707
9708 kfreebsd*-gnu)
9709   version_type=linux
9710   need_lib_prefix=no
9711   need_version=no
9712   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9713   soname_spec='${libname}${release}${shared_ext}$major'
9714   shlibpath_var=LD_LIBRARY_PATH
9715   shlibpath_overrides_runpath=no
9716   hardcode_into_libs=yes
9717   dynamic_linker='GNU ld.so'
9718   ;;
9719
9720 freebsd* | dragonfly*)
9721   # DragonFly does not have aout.  When/if they implement a new
9722   # versioning mechanism, adjust this.
9723   if test -x /usr/bin/objformat; then
9724     objformat=`/usr/bin/objformat`
9725   else
9726     case $host_os in
9727     freebsd[123]*) objformat=aout ;;
9728     *) objformat=elf ;;
9729     esac
9730   fi
9731   version_type=freebsd-$objformat
9732   case $version_type in
9733     freebsd-elf*)
9734       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9735       need_version=no
9736       need_lib_prefix=no
9737       ;;
9738     freebsd-*)
9739       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9740       need_version=yes
9741       ;;
9742   esac
9743   shlibpath_var=LD_LIBRARY_PATH
9744   case $host_os in
9745   freebsd2*)
9746     shlibpath_overrides_runpath=yes
9747     ;;
9748   freebsd3.[01]* | freebsdelf3.[01]*)
9749     shlibpath_overrides_runpath=yes
9750     hardcode_into_libs=yes
9751     ;;
9752   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9753   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9754     shlibpath_overrides_runpath=no
9755     hardcode_into_libs=yes
9756     ;;
9757   freebsd*) # from 4.6 on
9758     shlibpath_overrides_runpath=yes
9759     hardcode_into_libs=yes
9760     ;;
9761   esac
9762   ;;
9763
9764 gnu*)
9765   version_type=linux
9766   need_lib_prefix=no
9767   need_version=no
9768   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9769   soname_spec='${libname}${release}${shared_ext}$major'
9770   shlibpath_var=LD_LIBRARY_PATH
9771   hardcode_into_libs=yes
9772   ;;
9773
9774 hpux9* | hpux10* | hpux11*)
9775   # Give a soname corresponding to the major version so that dld.sl refuses to
9776   # link against other versions.
9777   version_type=sunos
9778   need_lib_prefix=no
9779   need_version=no
9780   case $host_cpu in
9781   ia64*)
9782     shrext_cmds='.so'
9783     hardcode_into_libs=yes
9784     dynamic_linker="$host_os dld.so"
9785     shlibpath_var=LD_LIBRARY_PATH
9786     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9788     soname_spec='${libname}${release}${shared_ext}$major'
9789     if test "X$HPUX_IA64_MODE" = X32; then
9790       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9791     else
9792       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9793     fi
9794     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9795     ;;
9796    hppa*64*)
9797      shrext_cmds='.sl'
9798      hardcode_into_libs=yes
9799      dynamic_linker="$host_os dld.sl"
9800      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9801      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9802      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9803      soname_spec='${libname}${release}${shared_ext}$major'
9804      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9805      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9806      ;;
9807    *)
9808     shrext_cmds='.sl'
9809     dynamic_linker="$host_os dld.sl"
9810     shlibpath_var=SHLIB_PATH
9811     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9812     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9813     soname_spec='${libname}${release}${shared_ext}$major'
9814     ;;
9815   esac
9816   # HP-UX runs *really* slowly unless shared libraries are mode 555.
9817   postinstall_cmds='chmod 555 $lib'
9818   ;;
9819
9820 interix3*)
9821   version_type=linux
9822   need_lib_prefix=no
9823   need_version=no
9824   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9825   soname_spec='${libname}${release}${shared_ext}$major'
9826   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9827   shlibpath_var=LD_LIBRARY_PATH
9828   shlibpath_overrides_runpath=no
9829   hardcode_into_libs=yes
9830   ;;
9831
9832 irix5* | irix6* | nonstopux*)
9833   case $host_os in
9834     nonstopux*) version_type=nonstopux ;;
9835     *)
9836         if test "$lt_cv_prog_gnu_ld" = yes; then
9837                 version_type=linux
9838         else
9839                 version_type=irix
9840         fi ;;
9841   esac
9842   need_lib_prefix=no
9843   need_version=no
9844   soname_spec='${libname}${release}${shared_ext}$major'
9845   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9846   case $host_os in
9847   irix5* | nonstopux*)
9848     libsuff= shlibsuff=
9849     ;;
9850   *)
9851     case $LD in # libtool.m4 will add one of these switches to LD
9852     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9853       libsuff= shlibsuff= libmagic=32-bit;;
9854     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9855       libsuff=32 shlibsuff=N32 libmagic=N32;;
9856     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9857       libsuff=64 shlibsuff=64 libmagic=64-bit;;
9858     *) libsuff= shlibsuff= libmagic=never-match;;
9859     esac
9860     ;;
9861   esac
9862   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9863   shlibpath_overrides_runpath=no
9864   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9865   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9866   hardcode_into_libs=yes
9867   ;;
9868
9869 # No shared lib support for Linux oldld, aout, or coff.
9870 linux*oldld* | linux*aout* | linux*coff*)
9871   dynamic_linker=no
9872   ;;
9873
9874 # This must be Linux ELF.
9875 linux*)
9876   version_type=linux
9877   need_lib_prefix=no
9878   need_version=no
9879   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9880   soname_spec='${libname}${release}${shared_ext}$major'
9881   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9882   shlibpath_var=LD_LIBRARY_PATH
9883   shlibpath_overrides_runpath=no
9884   # This implies no fast_install, which is unacceptable.
9885   # Some rework will be needed to allow for fast_install
9886   # before this can be enabled.
9887   hardcode_into_libs=yes
9888
9889   # find out which ABI we are using
9890   libsuff=
9891   case "$host_cpu" in
9892   x86_64*|s390x*|powerpc64*)
9893     echo '#line 9893 "configure"' > conftest.$ac_ext
9894     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9895   (eval $ac_compile) 2>&5
9896   ac_status=$?
9897   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898   (exit $ac_status); }; then
9899       case `/usr/bin/file conftest.$ac_objext` in
9900       *64-bit*)
9901         libsuff=64
9902         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
9903         ;;
9904       esac
9905     fi
9906     rm -rf conftest*
9907     ;;
9908   esac
9909
9910   # Append ld.so.conf contents to the search path
9911   if test -f /etc/ld.so.conf; then
9912     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' ' '`
9913     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
9914   fi
9915
9916   # We used to test for /lib/ld.so.1 and disable shared libraries on
9917   # powerpc, because MkLinux only supported shared libraries with the
9918   # GNU dynamic linker.  Since this was broken with cross compilers,
9919   # most powerpc-linux boxes support dynamic linking these days and
9920   # people can always --disable-shared, the test was removed, and we
9921   # assume the GNU/Linux dynamic linker is in use.
9922   dynamic_linker='GNU/Linux ld.so'
9923   ;;
9924
9925 knetbsd*-gnu)
9926   version_type=linux
9927   need_lib_prefix=no
9928   need_version=no
9929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9930   soname_spec='${libname}${release}${shared_ext}$major'
9931   shlibpath_var=LD_LIBRARY_PATH
9932   shlibpath_overrides_runpath=no
9933   hardcode_into_libs=yes
9934   dynamic_linker='GNU ld.so'
9935   ;;
9936
9937 netbsd*)
9938   version_type=sunos
9939   need_lib_prefix=no
9940   need_version=no
9941   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9942     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9943     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9944     dynamic_linker='NetBSD (a.out) ld.so'
9945   else
9946     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9947     soname_spec='${libname}${release}${shared_ext}$major'
9948     dynamic_linker='NetBSD ld.elf_so'
9949   fi
9950   shlibpath_var=LD_LIBRARY_PATH
9951   shlibpath_overrides_runpath=yes
9952   hardcode_into_libs=yes
9953   ;;
9954
9955 newsos6)
9956   version_type=linux
9957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9958   shlibpath_var=LD_LIBRARY_PATH
9959   shlibpath_overrides_runpath=yes
9960   ;;
9961
9962 nto-qnx*)
9963   version_type=linux
9964   need_lib_prefix=no
9965   need_version=no
9966   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9967   soname_spec='${libname}${release}${shared_ext}$major'
9968   shlibpath_var=LD_LIBRARY_PATH
9969   shlibpath_overrides_runpath=yes
9970   ;;
9971
9972 openbsd*)
9973   version_type=sunos
9974   sys_lib_dlsearch_path_spec="/usr/lib"
9975   need_lib_prefix=no
9976   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9977   case $host_os in
9978     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9979     *)                         need_version=no  ;;
9980   esac
9981   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9982   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9983   shlibpath_var=LD_LIBRARY_PATH
9984   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9985     case $host_os in
9986       openbsd2.[89] | openbsd2.[89].*)
9987         shlibpath_overrides_runpath=no
9988         ;;
9989       *)
9990         shlibpath_overrides_runpath=yes
9991         ;;
9992       esac
9993   else
9994     shlibpath_overrides_runpath=yes
9995   fi
9996   ;;
9997
9998 os2*)
9999   libname_spec='$name'
10000   shrext_cmds=".dll"
10001   need_lib_prefix=no
10002   library_names_spec='$libname${shared_ext} $libname.a'
10003   dynamic_linker='OS/2 ld.exe'
10004   shlibpath_var=LIBPATH
10005   ;;
10006
10007 osf3* | osf4* | osf5*)
10008   version_type=osf
10009   need_lib_prefix=no
10010   need_version=no
10011   soname_spec='${libname}${release}${shared_ext}$major'
10012   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013   shlibpath_var=LD_LIBRARY_PATH
10014   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10015   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10016   ;;
10017
10018 solaris*)
10019   version_type=linux
10020   need_lib_prefix=no
10021   need_version=no
10022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10023   soname_spec='${libname}${release}${shared_ext}$major'
10024   shlibpath_var=LD_LIBRARY_PATH
10025   shlibpath_overrides_runpath=yes
10026   hardcode_into_libs=yes
10027   # ldd complains unless libraries are executable
10028   postinstall_cmds='chmod +x $lib'
10029   ;;
10030
10031 sunos4*)
10032   version_type=sunos
10033   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10034   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10035   shlibpath_var=LD_LIBRARY_PATH
10036   shlibpath_overrides_runpath=yes
10037   if test "$with_gnu_ld" = yes; then
10038     need_lib_prefix=no
10039   fi
10040   need_version=yes
10041   ;;
10042
10043 sysv4 | sysv4.3*)
10044   version_type=linux
10045   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10046   soname_spec='${libname}${release}${shared_ext}$major'
10047   shlibpath_var=LD_LIBRARY_PATH
10048   case $host_vendor in
10049     sni)
10050       shlibpath_overrides_runpath=no
10051       need_lib_prefix=no
10052       export_dynamic_flag_spec='${wl}-Blargedynsym'
10053       runpath_var=LD_RUN_PATH
10054       ;;
10055     siemens)
10056       need_lib_prefix=no
10057       ;;
10058     motorola)
10059       need_lib_prefix=no
10060       need_version=no
10061       shlibpath_overrides_runpath=no
10062       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10063       ;;
10064   esac
10065   ;;
10066
10067 sysv4*MP*)
10068   if test -d /usr/nec ;then
10069     version_type=linux
10070     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10071     soname_spec='$libname${shared_ext}.$major'
10072     shlibpath_var=LD_LIBRARY_PATH
10073   fi
10074   ;;
10075
10076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10077   version_type=freebsd-elf
10078   need_lib_prefix=no
10079   need_version=no
10080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10081   soname_spec='${libname}${release}${shared_ext}$major'
10082   shlibpath_var=LD_LIBRARY_PATH
10083   hardcode_into_libs=yes
10084   if test "$with_gnu_ld" = yes; then
10085     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10086     shlibpath_overrides_runpath=no
10087   else
10088     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10089     shlibpath_overrides_runpath=yes
10090     case $host_os in
10091       sco3.2v5*)
10092         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10093         ;;
10094     esac
10095   fi
10096   sys_lib_dlsearch_path_spec='/usr/lib'
10097   ;;
10098
10099 uts4*)
10100   version_type=linux
10101   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10102   soname_spec='${libname}${release}${shared_ext}$major'
10103   shlibpath_var=LD_LIBRARY_PATH
10104   ;;
10105
10106 *)
10107   dynamic_linker=no
10108   ;;
10109 esac
10110 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10111 echo "${ECHO_T}$dynamic_linker" >&6
10112 test "$dynamic_linker" = no && can_build_shared=no
10113
10114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10115 if test "$GCC" = yes; then
10116   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10117 fi
10118
10119 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10120 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10121 hardcode_action=
10122 if test -n "$hardcode_libdir_flag_spec" || \
10123    test -n "$runpath_var" || \
10124    test "X$hardcode_automatic" = "Xyes" ; then
10125
10126   # We can hardcode non-existant directories.
10127   if test "$hardcode_direct" != no &&
10128      # If the only mechanism to avoid hardcoding is shlibpath_var, we
10129      # have to relink, otherwise we might link with an installed library
10130      # when we should be linking with a yet-to-be-installed one
10131      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10132      test "$hardcode_minus_L" != no; then
10133     # Linking always hardcodes the temporary library directory.
10134     hardcode_action=relink
10135   else
10136     # We can link without hardcoding, and we can hardcode nonexisting dirs.
10137     hardcode_action=immediate
10138   fi
10139 else
10140   # We cannot hardcode anything, or else we can only hardcode existing
10141   # directories.
10142   hardcode_action=unsupported
10143 fi
10144 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10145 echo "${ECHO_T}$hardcode_action" >&6
10146
10147 if test "$hardcode_action" = relink; then
10148   # Fast installation is not supported
10149   enable_fast_install=no
10150 elif test "$shlibpath_overrides_runpath" = yes ||
10151      test "$enable_shared" = no; then
10152   # Fast installation is not necessary
10153   enable_fast_install=needless
10154 fi
10155
10156 striplib=
10157 old_striplib=
10158 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10159 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10160 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10161   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10162   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10163   echo "$as_me:$LINENO: result: yes" >&5
10164 echo "${ECHO_T}yes" >&6
10165 else
10166 # FIXME - insert some real tests, host_os isn't really good enough
10167   case $host_os in
10168    darwin*)
10169        if test -n "$STRIP" ; then
10170          striplib="$STRIP -x"
10171          echo "$as_me:$LINENO: result: yes" >&5
10172 echo "${ECHO_T}yes" >&6
10173        else
10174   echo "$as_me:$LINENO: result: no" >&5
10175 echo "${ECHO_T}no" >&6
10176 fi
10177        ;;
10178    *)
10179   echo "$as_me:$LINENO: result: no" >&5
10180 echo "${ECHO_T}no" >&6
10181     ;;
10182   esac
10183 fi
10184
10185 if test "x$enable_dlopen" != xyes; then
10186   enable_dlopen=unknown
10187   enable_dlopen_self=unknown
10188   enable_dlopen_self_static=unknown
10189 else
10190   lt_cv_dlopen=no
10191   lt_cv_dlopen_libs=
10192
10193   case $host_os in
10194   beos*)
10195     lt_cv_dlopen="load_add_on"
10196     lt_cv_dlopen_libs=
10197     lt_cv_dlopen_self=yes
10198     ;;
10199
10200   mingw* | pw32*)
10201     lt_cv_dlopen="LoadLibrary"
10202     lt_cv_dlopen_libs=
10203    ;;
10204
10205   cygwin*)
10206     lt_cv_dlopen="dlopen"
10207     lt_cv_dlopen_libs=
10208    ;;
10209
10210   darwin*)
10211   # if libdl is installed we need to link against it
10212     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10213 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10214 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10215   echo $ECHO_N "(cached) $ECHO_C" >&6
10216 else
10217   ac_check_lib_save_LIBS=$LIBS
10218 LIBS="-ldl  $LIBS"
10219 cat >conftest.$ac_ext <<_ACEOF
10220 /* confdefs.h.  */
10221 _ACEOF
10222 cat confdefs.h >>conftest.$ac_ext
10223 cat >>conftest.$ac_ext <<_ACEOF
10224 /* end confdefs.h.  */
10225
10226 /* Override any gcc2 internal prototype to avoid an error.  */
10227 #ifdef __cplusplus
10228 extern "C"
10229 #endif
10230 /* We use char because int might match the return type of a gcc2
10231    builtin and then its argument prototype would still apply.  */
10232 char dlopen ();
10233 int
10234 main ()
10235 {
10236 dlopen ();
10237   ;
10238   return 0;
10239 }
10240 _ACEOF
10241 rm -f conftest.$ac_objext conftest$ac_exeext
10242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10243   (eval $ac_link) 2>conftest.er1
10244   ac_status=$?
10245   grep -v '^ *+' conftest.er1 >conftest.err
10246   rm -f conftest.er1
10247   cat conftest.err >&5
10248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249   (exit $ac_status); } &&
10250          { ac_try='test -z "$ac_c_werror_flag"
10251                          || test ! -s conftest.err'
10252   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10253   (eval $ac_try) 2>&5
10254   ac_status=$?
10255   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10256   (exit $ac_status); }; } &&
10257          { ac_try='test -s conftest$ac_exeext'
10258   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10259   (eval $ac_try) 2>&5
10260   ac_status=$?
10261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10262   (exit $ac_status); }; }; then
10263   ac_cv_lib_dl_dlopen=yes
10264 else
10265   echo "$as_me: failed program was:" >&5
10266 sed 's/^/| /' conftest.$ac_ext >&5
10267
10268 ac_cv_lib_dl_dlopen=no
10269 fi
10270 rm -f conftest.err conftest.$ac_objext \
10271       conftest$ac_exeext conftest.$ac_ext
10272 LIBS=$ac_check_lib_save_LIBS
10273 fi
10274 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10275 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10276 if test $ac_cv_lib_dl_dlopen = yes; then
10277   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10278 else
10279
10280     lt_cv_dlopen="dyld"
10281     lt_cv_dlopen_libs=
10282     lt_cv_dlopen_self=yes
10283
10284 fi
10285
10286    ;;
10287
10288   *)
10289     echo "$as_me:$LINENO: checking for shl_load" >&5
10290 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10291 if test "${ac_cv_func_shl_load+set}" = set; then
10292   echo $ECHO_N "(cached) $ECHO_C" >&6
10293 else
10294   cat >conftest.$ac_ext <<_ACEOF
10295 /* confdefs.h.  */
10296 _ACEOF
10297 cat confdefs.h >>conftest.$ac_ext
10298 cat >>conftest.$ac_ext <<_ACEOF
10299 /* end confdefs.h.  */
10300 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10301    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10302 #define shl_load innocuous_shl_load
10303
10304 /* System header to define __stub macros and hopefully few prototypes,
10305     which can conflict with char shl_load (); below.
10306     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10307     <limits.h> exists even on freestanding compilers.  */
10308
10309 #ifdef __STDC__
10310 # include <limits.h>
10311 #else
10312 # include <assert.h>
10313 #endif
10314
10315 #undef shl_load
10316
10317 /* Override any gcc2 internal prototype to avoid an error.  */
10318 #ifdef __cplusplus
10319 extern "C"
10320 {
10321 #endif
10322 /* We use char because int might match the return type of a gcc2
10323    builtin and then its argument prototype would still apply.  */
10324 char shl_load ();
10325 /* The GNU C library defines this for functions which it implements
10326     to always fail with ENOSYS.  Some functions are actually named
10327     something starting with __ and the normal name is an alias.  */
10328 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10329 choke me
10330 #else
10331 char (*f) () = shl_load;
10332 #endif
10333 #ifdef __cplusplus
10334 }
10335 #endif
10336
10337 int
10338 main ()
10339 {
10340 return f != shl_load;
10341   ;
10342   return 0;
10343 }
10344 _ACEOF
10345 rm -f conftest.$ac_objext conftest$ac_exeext
10346 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10347   (eval $ac_link) 2>conftest.er1
10348   ac_status=$?
10349   grep -v '^ *+' conftest.er1 >conftest.err
10350   rm -f conftest.er1
10351   cat conftest.err >&5
10352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353   (exit $ac_status); } &&
10354          { ac_try='test -z "$ac_c_werror_flag"
10355                          || test ! -s conftest.err'
10356   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10357   (eval $ac_try) 2>&5
10358   ac_status=$?
10359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360   (exit $ac_status); }; } &&
10361          { ac_try='test -s conftest$ac_exeext'
10362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10363   (eval $ac_try) 2>&5
10364   ac_status=$?
10365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366   (exit $ac_status); }; }; then
10367   ac_cv_func_shl_load=yes
10368 else
10369   echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.$ac_ext >&5
10371
10372 ac_cv_func_shl_load=no
10373 fi
10374 rm -f conftest.err conftest.$ac_objext \
10375       conftest$ac_exeext conftest.$ac_ext
10376 fi
10377 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10378 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10379 if test $ac_cv_func_shl_load = yes; then
10380   lt_cv_dlopen="shl_load"
10381 else
10382   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10383 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10384 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10385   echo $ECHO_N "(cached) $ECHO_C" >&6
10386 else
10387   ac_check_lib_save_LIBS=$LIBS
10388 LIBS="-ldld  $LIBS"
10389 cat >conftest.$ac_ext <<_ACEOF
10390 /* confdefs.h.  */
10391 _ACEOF
10392 cat confdefs.h >>conftest.$ac_ext
10393 cat >>conftest.$ac_ext <<_ACEOF
10394 /* end confdefs.h.  */
10395
10396 /* Override any gcc2 internal prototype to avoid an error.  */
10397 #ifdef __cplusplus
10398 extern "C"
10399 #endif
10400 /* We use char because int might match the return type of a gcc2
10401    builtin and then its argument prototype would still apply.  */
10402 char shl_load ();
10403 int
10404 main ()
10405 {
10406 shl_load ();
10407   ;
10408   return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10413   (eval $ac_link) 2>conftest.er1
10414   ac_status=$?
10415   grep -v '^ *+' conftest.er1 >conftest.err
10416   rm -f conftest.er1
10417   cat conftest.err >&5
10418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419   (exit $ac_status); } &&
10420          { ac_try='test -z "$ac_c_werror_flag"
10421                          || test ! -s conftest.err'
10422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10423   (eval $ac_try) 2>&5
10424   ac_status=$?
10425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426   (exit $ac_status); }; } &&
10427          { ac_try='test -s conftest$ac_exeext'
10428   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10429   (eval $ac_try) 2>&5
10430   ac_status=$?
10431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10432   (exit $ac_status); }; }; then
10433   ac_cv_lib_dld_shl_load=yes
10434 else
10435   echo "$as_me: failed program was:" >&5
10436 sed 's/^/| /' conftest.$ac_ext >&5
10437
10438 ac_cv_lib_dld_shl_load=no
10439 fi
10440 rm -f conftest.err conftest.$ac_objext \
10441       conftest$ac_exeext conftest.$ac_ext
10442 LIBS=$ac_check_lib_save_LIBS
10443 fi
10444 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10445 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10446 if test $ac_cv_lib_dld_shl_load = yes; then
10447   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10448 else
10449   echo "$as_me:$LINENO: checking for dlopen" >&5
10450 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10451 if test "${ac_cv_func_dlopen+set}" = set; then
10452   echo $ECHO_N "(cached) $ECHO_C" >&6
10453 else
10454   cat >conftest.$ac_ext <<_ACEOF
10455 /* confdefs.h.  */
10456 _ACEOF
10457 cat confdefs.h >>conftest.$ac_ext
10458 cat >>conftest.$ac_ext <<_ACEOF
10459 /* end confdefs.h.  */
10460 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10461    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10462 #define dlopen innocuous_dlopen
10463
10464 /* System header to define __stub macros and hopefully few prototypes,
10465     which can conflict with char dlopen (); below.
10466     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10467     <limits.h> exists even on freestanding compilers.  */
10468
10469 #ifdef __STDC__
10470 # include <limits.h>
10471 #else
10472 # include <assert.h>
10473 #endif
10474
10475 #undef dlopen
10476
10477 /* Override any gcc2 internal prototype to avoid an error.  */
10478 #ifdef __cplusplus
10479 extern "C"
10480 {
10481 #endif
10482 /* We use char because int might match the return type of a gcc2
10483    builtin and then its argument prototype would still apply.  */
10484 char dlopen ();
10485 /* The GNU C library defines this for functions which it implements
10486     to always fail with ENOSYS.  Some functions are actually named
10487     something starting with __ and the normal name is an alias.  */
10488 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10489 choke me
10490 #else
10491 char (*f) () = dlopen;
10492 #endif
10493 #ifdef __cplusplus
10494 }
10495 #endif
10496
10497 int
10498 main ()
10499 {
10500 return f != dlopen;
10501   ;
10502   return 0;
10503 }
10504 _ACEOF
10505 rm -f conftest.$ac_objext conftest$ac_exeext
10506 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10507   (eval $ac_link) 2>conftest.er1
10508   ac_status=$?
10509   grep -v '^ *+' conftest.er1 >conftest.err
10510   rm -f conftest.er1
10511   cat conftest.err >&5
10512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513   (exit $ac_status); } &&
10514          { ac_try='test -z "$ac_c_werror_flag"
10515                          || test ! -s conftest.err'
10516   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10517   (eval $ac_try) 2>&5
10518   ac_status=$?
10519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520   (exit $ac_status); }; } &&
10521          { ac_try='test -s conftest$ac_exeext'
10522   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10523   (eval $ac_try) 2>&5
10524   ac_status=$?
10525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526   (exit $ac_status); }; }; then
10527   ac_cv_func_dlopen=yes
10528 else
10529   echo "$as_me: failed program was:" >&5
10530 sed 's/^/| /' conftest.$ac_ext >&5
10531
10532 ac_cv_func_dlopen=no
10533 fi
10534 rm -f conftest.err conftest.$ac_objext \
10535       conftest$ac_exeext conftest.$ac_ext
10536 fi
10537 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10538 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10539 if test $ac_cv_func_dlopen = yes; then
10540   lt_cv_dlopen="dlopen"
10541 else
10542   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10543 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10544 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10545   echo $ECHO_N "(cached) $ECHO_C" >&6
10546 else
10547   ac_check_lib_save_LIBS=$LIBS
10548 LIBS="-ldl  $LIBS"
10549 cat >conftest.$ac_ext <<_ACEOF
10550 /* confdefs.h.  */
10551 _ACEOF
10552 cat confdefs.h >>conftest.$ac_ext
10553 cat >>conftest.$ac_ext <<_ACEOF
10554 /* end confdefs.h.  */
10555
10556 /* Override any gcc2 internal prototype to avoid an error.  */
10557 #ifdef __cplusplus
10558 extern "C"
10559 #endif
10560 /* We use char because int might match the return type of a gcc2
10561    builtin and then its argument prototype would still apply.  */
10562 char dlopen ();
10563 int
10564 main ()
10565 {
10566 dlopen ();
10567   ;
10568   return 0;
10569 }
10570 _ACEOF
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10573   (eval $ac_link) 2>conftest.er1
10574   ac_status=$?
10575   grep -v '^ *+' conftest.er1 >conftest.err
10576   rm -f conftest.er1
10577   cat conftest.err >&5
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } &&
10580          { ac_try='test -z "$ac_c_werror_flag"
10581                          || test ! -s conftest.err'
10582   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10583   (eval $ac_try) 2>&5
10584   ac_status=$?
10585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10586   (exit $ac_status); }; } &&
10587          { ac_try='test -s conftest$ac_exeext'
10588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589   (eval $ac_try) 2>&5
10590   ac_status=$?
10591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592   (exit $ac_status); }; }; then
10593   ac_cv_lib_dl_dlopen=yes
10594 else
10595   echo "$as_me: failed program was:" >&5
10596 sed 's/^/| /' conftest.$ac_ext >&5
10597
10598 ac_cv_lib_dl_dlopen=no
10599 fi
10600 rm -f conftest.err conftest.$ac_objext \
10601       conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10603 fi
10604 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10605 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10606 if test $ac_cv_lib_dl_dlopen = yes; then
10607   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10608 else
10609   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10610 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10611 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10612   echo $ECHO_N "(cached) $ECHO_C" >&6
10613 else
10614   ac_check_lib_save_LIBS=$LIBS
10615 LIBS="-lsvld  $LIBS"
10616 cat >conftest.$ac_ext <<_ACEOF
10617 /* confdefs.h.  */
10618 _ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h.  */
10622
10623 /* Override any gcc2 internal prototype to avoid an error.  */
10624 #ifdef __cplusplus
10625 extern "C"
10626 #endif
10627 /* We use char because int might match the return type of a gcc2
10628    builtin and then its argument prototype would still apply.  */
10629 char dlopen ();
10630 int
10631 main ()
10632 {
10633 dlopen ();
10634   ;
10635   return 0;
10636 }
10637 _ACEOF
10638 rm -f conftest.$ac_objext conftest$ac_exeext
10639 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10640   (eval $ac_link) 2>conftest.er1
10641   ac_status=$?
10642   grep -v '^ *+' conftest.er1 >conftest.err
10643   rm -f conftest.er1
10644   cat conftest.err >&5
10645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646   (exit $ac_status); } &&
10647          { ac_try='test -z "$ac_c_werror_flag"
10648                          || test ! -s conftest.err'
10649   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10650   (eval $ac_try) 2>&5
10651   ac_status=$?
10652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653   (exit $ac_status); }; } &&
10654          { ac_try='test -s conftest$ac_exeext'
10655   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10656   (eval $ac_try) 2>&5
10657   ac_status=$?
10658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10659   (exit $ac_status); }; }; then
10660   ac_cv_lib_svld_dlopen=yes
10661 else
10662   echo "$as_me: failed program was:" >&5
10663 sed 's/^/| /' conftest.$ac_ext >&5
10664
10665 ac_cv_lib_svld_dlopen=no
10666 fi
10667 rm -f conftest.err conftest.$ac_objext \
10668       conftest$ac_exeext conftest.$ac_ext
10669 LIBS=$ac_check_lib_save_LIBS
10670 fi
10671 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10672 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10673 if test $ac_cv_lib_svld_dlopen = yes; then
10674   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10675 else
10676   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10677 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10678 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10679   echo $ECHO_N "(cached) $ECHO_C" >&6
10680 else
10681   ac_check_lib_save_LIBS=$LIBS
10682 LIBS="-ldld  $LIBS"
10683 cat >conftest.$ac_ext <<_ACEOF
10684 /* confdefs.h.  */
10685 _ACEOF
10686 cat confdefs.h >>conftest.$ac_ext
10687 cat >>conftest.$ac_ext <<_ACEOF
10688 /* end confdefs.h.  */
10689
10690 /* Override any gcc2 internal prototype to avoid an error.  */
10691 #ifdef __cplusplus
10692 extern "C"
10693 #endif
10694 /* We use char because int might match the return type of a gcc2
10695    builtin and then its argument prototype would still apply.  */
10696 char dld_link ();
10697 int
10698 main ()
10699 {
10700 dld_link ();
10701   ;
10702   return 0;
10703 }
10704 _ACEOF
10705 rm -f conftest.$ac_objext conftest$ac_exeext
10706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10707   (eval $ac_link) 2>conftest.er1
10708   ac_status=$?
10709   grep -v '^ *+' conftest.er1 >conftest.err
10710   rm -f conftest.er1
10711   cat conftest.err >&5
10712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713   (exit $ac_status); } &&
10714          { ac_try='test -z "$ac_c_werror_flag"
10715                          || test ! -s conftest.err'
10716   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10717   (eval $ac_try) 2>&5
10718   ac_status=$?
10719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720   (exit $ac_status); }; } &&
10721          { ac_try='test -s conftest$ac_exeext'
10722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723   (eval $ac_try) 2>&5
10724   ac_status=$?
10725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726   (exit $ac_status); }; }; then
10727   ac_cv_lib_dld_dld_link=yes
10728 else
10729   echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.$ac_ext >&5
10731
10732 ac_cv_lib_dld_dld_link=no
10733 fi
10734 rm -f conftest.err conftest.$ac_objext \
10735       conftest$ac_exeext conftest.$ac_ext
10736 LIBS=$ac_check_lib_save_LIBS
10737 fi
10738 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10739 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10740 if test $ac_cv_lib_dld_dld_link = yes; then
10741   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10742 fi
10743
10744
10745 fi
10746
10747
10748 fi
10749
10750
10751 fi
10752
10753
10754 fi
10755
10756
10757 fi
10758
10759     ;;
10760   esac
10761
10762   if test "x$lt_cv_dlopen" != xno; then
10763     enable_dlopen=yes
10764   else
10765     enable_dlopen=no
10766   fi
10767
10768   case $lt_cv_dlopen in
10769   dlopen)
10770     save_CPPFLAGS="$CPPFLAGS"
10771     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10772
10773     save_LDFLAGS="$LDFLAGS"
10774     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10775
10776     save_LIBS="$LIBS"
10777     LIBS="$lt_cv_dlopen_libs $LIBS"
10778
10779     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10780 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10781 if test "${lt_cv_dlopen_self+set}" = set; then
10782   echo $ECHO_N "(cached) $ECHO_C" >&6
10783 else
10784           if test "$cross_compiling" = yes; then :
10785   lt_cv_dlopen_self=cross
10786 else
10787   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10788   lt_status=$lt_dlunknown
10789   cat > conftest.$ac_ext <<EOF
10790 #line 10790 "configure"
10791 #include "confdefs.h"
10792
10793 #if HAVE_DLFCN_H
10794 #include <dlfcn.h>
10795 #endif
10796
10797 #include <stdio.h>
10798
10799 #ifdef RTLD_GLOBAL
10800 #  define LT_DLGLOBAL           RTLD_GLOBAL
10801 #else
10802 #  ifdef DL_GLOBAL
10803 #    define LT_DLGLOBAL         DL_GLOBAL
10804 #  else
10805 #    define LT_DLGLOBAL         0
10806 #  endif
10807 #endif
10808
10809 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10810    find out it does not work in some platform. */
10811 #ifndef LT_DLLAZY_OR_NOW
10812 #  ifdef RTLD_LAZY
10813 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10814 #  else
10815 #    ifdef DL_LAZY
10816 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10817 #    else
10818 #      ifdef RTLD_NOW
10819 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10820 #      else
10821 #        ifdef DL_NOW
10822 #          define LT_DLLAZY_OR_NOW      DL_NOW
10823 #        else
10824 #          define LT_DLLAZY_OR_NOW      0
10825 #        endif
10826 #      endif
10827 #    endif
10828 #  endif
10829 #endif
10830
10831 #ifdef __cplusplus
10832 extern "C" void exit (int);
10833 #endif
10834
10835 void fnord() { int i=42;}
10836 int main ()
10837 {
10838   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10839   int status = $lt_dlunknown;
10840
10841   if (self)
10842     {
10843       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10844       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10845       /* dlclose (self); */
10846     }
10847   else
10848     puts (dlerror ());
10849
10850     exit (status);
10851 }
10852 EOF
10853   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10854   (eval $ac_link) 2>&5
10855   ac_status=$?
10856   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10858     (./conftest; exit; ) >&5 2>/dev/null
10859     lt_status=$?
10860     case x$lt_status in
10861       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10862       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10863       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10864     esac
10865   else :
10866     # compilation failed
10867     lt_cv_dlopen_self=no
10868   fi
10869 fi
10870 rm -fr conftest*
10871
10872
10873 fi
10874 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10875 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10876
10877     if test "x$lt_cv_dlopen_self" = xyes; then
10878       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10879       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10880 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10881 if test "${lt_cv_dlopen_self_static+set}" = set; then
10882   echo $ECHO_N "(cached) $ECHO_C" >&6
10883 else
10884           if test "$cross_compiling" = yes; then :
10885   lt_cv_dlopen_self_static=cross
10886 else
10887   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10888   lt_status=$lt_dlunknown
10889   cat > conftest.$ac_ext <<EOF
10890 #line 10890 "configure"
10891 #include "confdefs.h"
10892
10893 #if HAVE_DLFCN_H
10894 #include <dlfcn.h>
10895 #endif
10896
10897 #include <stdio.h>
10898
10899 #ifdef RTLD_GLOBAL
10900 #  define LT_DLGLOBAL           RTLD_GLOBAL
10901 #else
10902 #  ifdef DL_GLOBAL
10903 #    define LT_DLGLOBAL         DL_GLOBAL
10904 #  else
10905 #    define LT_DLGLOBAL         0
10906 #  endif
10907 #endif
10908
10909 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10910    find out it does not work in some platform. */
10911 #ifndef LT_DLLAZY_OR_NOW
10912 #  ifdef RTLD_LAZY
10913 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
10914 #  else
10915 #    ifdef DL_LAZY
10916 #      define LT_DLLAZY_OR_NOW          DL_LAZY
10917 #    else
10918 #      ifdef RTLD_NOW
10919 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
10920 #      else
10921 #        ifdef DL_NOW
10922 #          define LT_DLLAZY_OR_NOW      DL_NOW
10923 #        else
10924 #          define LT_DLLAZY_OR_NOW      0
10925 #        endif
10926 #      endif
10927 #    endif
10928 #  endif
10929 #endif
10930
10931 #ifdef __cplusplus
10932 extern "C" void exit (int);
10933 #endif
10934
10935 void fnord() { int i=42;}
10936 int main ()
10937 {
10938   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10939   int status = $lt_dlunknown;
10940
10941   if (self)
10942     {
10943       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
10944       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10945       /* dlclose (self); */
10946     }
10947   else
10948     puts (dlerror ());
10949
10950     exit (status);
10951 }
10952 EOF
10953   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10954   (eval $ac_link) 2>&5
10955   ac_status=$?
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10958     (./conftest; exit; ) >&5 2>/dev/null
10959     lt_status=$?
10960     case x$lt_status in
10961       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10962       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10963       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10964     esac
10965   else :
10966     # compilation failed
10967     lt_cv_dlopen_self_static=no
10968   fi
10969 fi
10970 rm -fr conftest*
10971
10972
10973 fi
10974 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10975 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10976     fi
10977
10978     CPPFLAGS="$save_CPPFLAGS"
10979     LDFLAGS="$save_LDFLAGS"
10980     LIBS="$save_LIBS"
10981     ;;
10982   esac
10983
10984   case $lt_cv_dlopen_self in
10985   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10986   *) enable_dlopen_self=unknown ;;
10987   esac
10988
10989   case $lt_cv_dlopen_self_static in
10990   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10991   *) enable_dlopen_self_static=unknown ;;
10992   esac
10993 fi
10994
10995
10996 # Report which library types will actually be built
10997 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10998 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10999 echo "$as_me:$LINENO: result: $can_build_shared" >&5
11000 echo "${ECHO_T}$can_build_shared" >&6
11001
11002 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
11003 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
11004 test "$can_build_shared" = "no" && enable_shared=no
11005
11006 # On AIX, shared libraries and static libraries use the same namespace, and
11007 # are all built from PIC.
11008 case $host_os in
11009 aix3*)
11010   test "$enable_shared" = yes && enable_static=no
11011   if test -n "$RANLIB"; then
11012     archive_cmds="$archive_cmds~\$RANLIB \$lib"
11013     postinstall_cmds='$RANLIB $lib'
11014   fi
11015   ;;
11016
11017 aix4* | aix5*)
11018   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11019     test "$enable_shared" = yes && enable_static=no
11020   fi
11021     ;;
11022 esac
11023 echo "$as_me:$LINENO: result: $enable_shared" >&5
11024 echo "${ECHO_T}$enable_shared" >&6
11025
11026 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11027 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11028 # Make sure either enable_shared or enable_static is yes.
11029 test "$enable_shared" = yes || enable_static=yes
11030 echo "$as_me:$LINENO: result: $enable_static" >&5
11031 echo "${ECHO_T}$enable_static" >&6
11032
11033 # The else clause should only fire when bootstrapping the
11034 # libtool distribution, otherwise you forgot to ship ltmain.sh
11035 # with your package, and you will get complaints that there are
11036 # no rules to generate ltmain.sh.
11037 if test -f "$ltmain"; then
11038   # See if we are running on zsh, and set the options which allow our commands through
11039   # without removal of \ escapes.
11040   if test -n "${ZSH_VERSION+set}" ; then
11041     setopt NO_GLOB_SUBST
11042   fi
11043   # Now quote all the things that may contain metacharacters while being
11044   # careful not to overquote the AC_SUBSTed values.  We take copies of the
11045   # variables and quote the copies for generation of the libtool script.
11046   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
11047     SED SHELL STRIP \
11048     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11049     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11050     deplibs_check_method reload_flag reload_cmds need_locks \
11051     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11052     lt_cv_sys_global_symbol_to_c_name_address \
11053     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11054     old_postinstall_cmds old_postuninstall_cmds \
11055     compiler \
11056     CC \
11057     LD \
11058     lt_prog_compiler_wl \
11059     lt_prog_compiler_pic \
11060     lt_prog_compiler_static \
11061     lt_prog_compiler_no_builtin_flag \
11062     export_dynamic_flag_spec \
11063     thread_safe_flag_spec \
11064     whole_archive_flag_spec \
11065     enable_shared_with_static_runtimes \
11066     old_archive_cmds \
11067     old_archive_from_new_cmds \
11068     predep_objects \
11069     postdep_objects \
11070     predeps \
11071     postdeps \
11072     compiler_lib_search_path \
11073     archive_cmds \
11074     archive_expsym_cmds \
11075     postinstall_cmds \
11076     postuninstall_cmds \
11077     old_archive_from_expsyms_cmds \
11078     allow_undefined_flag \
11079     no_undefined_flag \
11080     export_symbols_cmds \
11081     hardcode_libdir_flag_spec \
11082     hardcode_libdir_flag_spec_ld \
11083     hardcode_libdir_separator \
11084     hardcode_automatic \
11085     module_cmds \
11086     module_expsym_cmds \
11087     lt_cv_prog_compiler_c_o \
11088     exclude_expsyms \
11089     include_expsyms; do
11090
11091     case $var in
11092     old_archive_cmds | \
11093     old_archive_from_new_cmds | \
11094     archive_cmds | \
11095     archive_expsym_cmds | \
11096     module_cmds | \
11097     module_expsym_cmds | \
11098     old_archive_from_expsyms_cmds | \
11099     export_symbols_cmds | \
11100     extract_expsyms_cmds | reload_cmds | finish_cmds | \
11101     postinstall_cmds | postuninstall_cmds | \
11102     old_postinstall_cmds | old_postuninstall_cmds | \
11103     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11104       # Double-quote double-evaled strings.
11105       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11106       ;;
11107     *)
11108       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11109       ;;
11110     esac
11111   done
11112
11113   case $lt_echo in
11114   *'\$0 --fallback-echo"')
11115     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11116     ;;
11117   esac
11118
11119 cfgfile="${ofile}T"
11120   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11121   $rm -f "$cfgfile"
11122   { echo "$as_me:$LINENO: creating $ofile" >&5
11123 echo "$as_me: creating $ofile" >&6;}
11124
11125   cat <<__EOF__ >> "$cfgfile"
11126 #! $SHELL
11127
11128 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11129 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11130 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11131 #
11132 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11133 # Free Software Foundation, Inc.
11134 #
11135 # This file is part of GNU Libtool:
11136 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
11137 #
11138 # This program is free software; you can redistribute it and/or modify
11139 # it under the terms of the GNU General Public License as published by
11140 # the Free Software Foundation; either version 2 of the License, or
11141 # (at your option) any later version.
11142 #
11143 # This program is distributed in the hope that it will be useful, but
11144 # WITHOUT ANY WARRANTY; without even the implied warranty of
11145 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11146 # General Public License for more details.
11147 #
11148 # You should have received a copy of the GNU General Public License
11149 # along with this program; if not, write to the Free Software
11150 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
11151 #
11152 # As a special exception to the GNU General Public License, if you
11153 # distribute this file as part of a program that contains a
11154 # configuration script generated by Autoconf, you may include it under
11155 # the same distribution terms that you use for the rest of that program.
11156
11157 # A sed program that does not truncate output.
11158 SED=$lt_SED
11159
11160 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11161 Xsed="$SED -e 1s/^X//"
11162
11163 # The HP-UX ksh and POSIX shell print the target directory to stdout
11164 # if CDPATH is set.
11165 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
11166
11167 # The names of the tagged configurations supported by this script.
11168 available_tags=
11169
11170 # ### BEGIN LIBTOOL CONFIG
11171
11172 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11173
11174 # Shell to use when invoking shell scripts.
11175 SHELL=$lt_SHELL
11176
11177 # Whether or not to build shared libraries.
11178 build_libtool_libs=$enable_shared
11179
11180 # Whether or not to build static libraries.
11181 build_old_libs=$enable_static
11182
11183 # Whether or not to add -lc for building shared libraries.
11184 build_libtool_need_lc=$archive_cmds_need_lc
11185
11186 # Whether or not to disallow shared libs when runtime libs are static
11187 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11188
11189 # Whether or not to optimize for fast installation.
11190 fast_install=$enable_fast_install
11191
11192 # The host system.
11193 host_alias=$host_alias
11194 host=$host
11195 host_os=$host_os
11196
11197 # The build system.
11198 build_alias=$build_alias
11199 build=$build
11200 build_os=$build_os
11201
11202 # An echo program that does not interpret backslashes.
11203 echo=$lt_echo
11204
11205 # The archiver.
11206 AR=$lt_AR
11207 AR_FLAGS=$lt_AR_FLAGS
11208
11209 # A C compiler.
11210 LTCC=$lt_LTCC
11211
11212 # LTCC compiler flags.
11213 LTCFLAGS=$lt_LTCFLAGS
11214
11215 # A language-specific compiler.
11216 CC=$lt_compiler
11217
11218 # Is the compiler the GNU C compiler?
11219 with_gcc=$GCC
11220
11221 # An ERE matcher.
11222 EGREP=$lt_EGREP
11223
11224 # The linker used to build libraries.
11225 LD=$lt_LD
11226
11227 # Whether we need hard or soft links.
11228 LN_S=$lt_LN_S
11229
11230 # A BSD-compatible nm program.
11231 NM=$lt_NM
11232
11233 # A symbol stripping program
11234 STRIP=$lt_STRIP
11235
11236 # Used to examine libraries when file_magic_cmd begins "file"
11237 MAGIC_CMD=$MAGIC_CMD
11238
11239 # Used on cygwin: DLL creation program.
11240 DLLTOOL="$DLLTOOL"
11241
11242 # Used on cygwin: object dumper.
11243 OBJDUMP="$OBJDUMP"
11244
11245 # Used on cygwin: assembler.
11246 AS="$AS"
11247
11248 # The name of the directory that contains temporary libtool files.
11249 objdir=$objdir
11250
11251 # How to create reloadable object files.
11252 reload_flag=$lt_reload_flag
11253 reload_cmds=$lt_reload_cmds
11254
11255 # How to pass a linker flag through the compiler.
11256 wl=$lt_lt_prog_compiler_wl
11257
11258 # Object file suffix (normally "o").
11259 objext="$ac_objext"
11260
11261 # Old archive suffix (normally "a").
11262 libext="$libext"
11263
11264 # Shared library suffix (normally ".so").
11265 shrext_cmds='$shrext_cmds'
11266
11267 # Executable file suffix (normally "").
11268 exeext="$exeext"
11269
11270 # Additional compiler flags for building library objects.
11271 pic_flag=$lt_lt_prog_compiler_pic
11272 pic_mode=$pic_mode
11273
11274 # What is the maximum length of a command?
11275 max_cmd_len=$lt_cv_sys_max_cmd_len
11276
11277 # Does compiler simultaneously support -c and -o options?
11278 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11279
11280 # Must we lock files when doing compilation?
11281 need_locks=$lt_need_locks
11282
11283 # Do we need the lib prefix for modules?
11284 need_lib_prefix=$need_lib_prefix
11285
11286 # Do we need a version for libraries?
11287 need_version=$need_version
11288
11289 # Whether dlopen is supported.
11290 dlopen_support=$enable_dlopen
11291
11292 # Whether dlopen of programs is supported.
11293 dlopen_self=$enable_dlopen_self
11294
11295 # Whether dlopen of statically linked programs is supported.
11296 dlopen_self_static=$enable_dlopen_self_static
11297
11298 # Compiler flag to prevent dynamic linking.
11299 link_static_flag=$lt_lt_prog_compiler_static
11300
11301 # Compiler flag to turn off builtin functions.
11302 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11303
11304 # Compiler flag to allow reflexive dlopens.
11305 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11306
11307 # Compiler flag to generate shared objects directly from archives.
11308 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11309
11310 # Compiler flag to generate thread-safe objects.
11311 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11312
11313 # Library versioning type.
11314 version_type=$version_type
11315
11316 # Format of library name prefix.
11317 libname_spec=$lt_libname_spec
11318
11319 # List of archive names.  First name is the real one, the rest are links.
11320 # The last name is the one that the linker finds with -lNAME.
11321 library_names_spec=$lt_library_names_spec
11322
11323 # The coded name of the library, if different from the real name.
11324 soname_spec=$lt_soname_spec
11325
11326 # Commands used to build and install an old-style archive.
11327 RANLIB=$lt_RANLIB
11328 old_archive_cmds=$lt_old_archive_cmds
11329 old_postinstall_cmds=$lt_old_postinstall_cmds
11330 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11331
11332 # Create an old-style archive from a shared archive.
11333 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11334
11335 # Create a temporary old-style archive to link instead of a shared archive.
11336 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11337
11338 # Commands used to build and install a shared archive.
11339 archive_cmds=$lt_archive_cmds
11340 archive_expsym_cmds=$lt_archive_expsym_cmds
11341 postinstall_cmds=$lt_postinstall_cmds
11342 postuninstall_cmds=$lt_postuninstall_cmds
11343
11344 # Commands used to build a loadable module (assumed same as above if empty)
11345 module_cmds=$lt_module_cmds
11346 module_expsym_cmds=$lt_module_expsym_cmds
11347
11348 # Commands to strip libraries.
11349 old_striplib=$lt_old_striplib
11350 striplib=$lt_striplib
11351
11352 # Dependencies to place before the objects being linked to create a
11353 # shared library.
11354 predep_objects=$lt_predep_objects
11355
11356 # Dependencies to place after the objects being linked to create a
11357 # shared library.
11358 postdep_objects=$lt_postdep_objects
11359
11360 # Dependencies to place before the objects being linked to create a
11361 # shared library.
11362 predeps=$lt_predeps
11363
11364 # Dependencies to place after the objects being linked to create a
11365 # shared library.
11366 postdeps=$lt_postdeps
11367
11368 # The library search path used internally by the compiler when linking
11369 # a shared library.
11370 compiler_lib_search_path=$lt_compiler_lib_search_path
11371
11372 # Method to check whether dependent libraries are shared objects.
11373 deplibs_check_method=$lt_deplibs_check_method
11374
11375 # Command to use when deplibs_check_method == file_magic.
11376 file_magic_cmd=$lt_file_magic_cmd
11377
11378 # Flag that allows shared libraries with undefined symbols to be built.
11379 allow_undefined_flag=$lt_allow_undefined_flag
11380
11381 # Flag that forces no undefined symbols.
11382 no_undefined_flag=$lt_no_undefined_flag
11383
11384 # Commands used to finish a libtool library installation in a directory.
11385 finish_cmds=$lt_finish_cmds
11386
11387 # Same as above, but a single script fragment to be evaled but not shown.
11388 finish_eval=$lt_finish_eval
11389
11390 # Take the output of nm and produce a listing of raw symbols and C names.
11391 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11392
11393 # Transform the output of nm in a proper C declaration
11394 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11395
11396 # Transform the output of nm in a C name address pair
11397 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11398
11399 # This is the shared library runtime path variable.
11400 runpath_var=$runpath_var
11401
11402 # This is the shared library path variable.
11403 shlibpath_var=$shlibpath_var
11404
11405 # Is shlibpath searched before the hard-coded library search path?
11406 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11407
11408 # How to hardcode a shared library path into an executable.
11409 hardcode_action=$hardcode_action
11410
11411 # Whether we should hardcode library paths into libraries.
11412 hardcode_into_libs=$hardcode_into_libs
11413
11414 # Flag to hardcode \$libdir into a binary during linking.
11415 # This must work even if \$libdir does not exist.
11416 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11417
11418 # If ld is used when linking, flag to hardcode \$libdir into
11419 # a binary during linking. This must work even if \$libdir does
11420 # not exist.
11421 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11422
11423 # Whether we need a single -rpath flag with a separated argument.
11424 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11425
11426 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11427 # resulting binary.
11428 hardcode_direct=$hardcode_direct
11429
11430 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11431 # resulting binary.
11432 hardcode_minus_L=$hardcode_minus_L
11433
11434 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11435 # the resulting binary.
11436 hardcode_shlibpath_var=$hardcode_shlibpath_var
11437
11438 # Set to yes if building a shared library automatically hardcodes DIR into the library
11439 # and all subsequent libraries and executables linked against it.
11440 hardcode_automatic=$hardcode_automatic
11441
11442 # Variables whose values should be saved in libtool wrapper scripts and
11443 # restored at relink time.
11444 variables_saved_for_relink="$variables_saved_for_relink"
11445
11446 # Whether libtool must link a program against all its dependency libraries.
11447 link_all_deplibs=$link_all_deplibs
11448
11449 # Compile-time system search path for libraries
11450 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11451
11452 # Run-time system search path for libraries
11453 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11454
11455 # Fix the shell variable \$srcfile for the compiler.
11456 fix_srcfile_path="$fix_srcfile_path"
11457
11458 # Set to yes if exported symbols are required.
11459 always_export_symbols=$always_export_symbols
11460
11461 # The commands to list exported symbols.
11462 export_symbols_cmds=$lt_export_symbols_cmds
11463
11464 # The commands to extract the exported symbol list from a shared archive.
11465 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11466
11467 # Symbols that should not be listed in the preloaded symbols.
11468 exclude_expsyms=$lt_exclude_expsyms
11469
11470 # Symbols that must always be exported.
11471 include_expsyms=$lt_include_expsyms
11472
11473 # ### END LIBTOOL CONFIG
11474
11475 __EOF__
11476
11477
11478   case $host_os in
11479   aix3*)
11480     cat <<\EOF >> "$cfgfile"
11481
11482 # AIX sometimes has problems with the GCC collect2 program.  For some
11483 # reason, if we set the COLLECT_NAMES environment variable, the problems
11484 # vanish in a puff of smoke.
11485 if test "X${COLLECT_NAMES+set}" != Xset; then
11486   COLLECT_NAMES=
11487   export COLLECT_NAMES
11488 fi
11489 EOF
11490     ;;
11491   esac
11492
11493   # We use sed instead of cat because bash on DJGPP gets confused if
11494   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
11495   # text mode, it properly converts lines to CR/LF.  This bash problem
11496   # is reportedly fixed, but why not run on old versions too?
11497   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11498
11499   mv -f "$cfgfile" "$ofile" || \
11500     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11501   chmod +x "$ofile"
11502
11503 else
11504   # If there is no Makefile yet, we rely on a make rule to execute
11505   # `config.status --recheck' to rerun these tests and create the
11506   # libtool script then.
11507   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11508   if test -f "$ltmain_in"; then
11509     test -f Makefile && make "$ltmain"
11510   fi
11511 fi
11512
11513
11514 ac_ext=c
11515 ac_cpp='$CPP $CPPFLAGS'
11516 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11517 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11518 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11519
11520 CC="$lt_save_CC"
11521
11522
11523 # Check whether --with-tags or --without-tags was given.
11524 if test "${with_tags+set}" = set; then
11525   withval="$with_tags"
11526   tagnames="$withval"
11527 fi;
11528
11529 if test -f "$ltmain" && test -n "$tagnames"; then
11530   if test ! -f "${ofile}"; then
11531     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11532 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11533   fi
11534
11535   if test -z "$LTCC"; then
11536     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11537     if test -z "$LTCC"; then
11538       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11539 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11540     else
11541       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11542 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11543     fi
11544   fi
11545   if test -z "$LTCFLAGS"; then
11546     eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11547   fi
11548
11549   # Extract list of available tagged configurations in $ofile.
11550   # Note that this assumes the entire list is on one line.
11551   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11552
11553   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11554   for tagname in $tagnames; do
11555     IFS="$lt_save_ifs"
11556     # Check whether tagname contains only valid characters
11557     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11558     "") ;;
11559     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11560 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11561    { (exit 1); exit 1; }; }
11562         ;;
11563     esac
11564
11565     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11566     then
11567       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11568 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11569    { (exit 1); exit 1; }; }
11570     fi
11571
11572     # Update the list of available tags.
11573     if test -n "$tagname"; then
11574       echo appending configuration tag \"$tagname\" to $ofile
11575
11576       case $tagname in
11577       CXX)
11578         if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11579             ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11580             (test "X$CXX" != "Xg++"))) ; then
11581           ac_ext=cc
11582 ac_cpp='$CXXCPP $CPPFLAGS'
11583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11586
11587
11588
11589
11590 archive_cmds_need_lc_CXX=no
11591 allow_undefined_flag_CXX=
11592 always_export_symbols_CXX=no
11593 archive_expsym_cmds_CXX=
11594 export_dynamic_flag_spec_CXX=
11595 hardcode_direct_CXX=no
11596 hardcode_libdir_flag_spec_CXX=
11597 hardcode_libdir_flag_spec_ld_CXX=
11598 hardcode_libdir_separator_CXX=
11599 hardcode_minus_L_CXX=no
11600 hardcode_shlibpath_var_CXX=unsupported
11601 hardcode_automatic_CXX=no
11602 module_cmds_CXX=
11603 module_expsym_cmds_CXX=
11604 link_all_deplibs_CXX=unknown
11605 old_archive_cmds_CXX=$old_archive_cmds
11606 no_undefined_flag_CXX=
11607 whole_archive_flag_spec_CXX=
11608 enable_shared_with_static_runtimes_CXX=no
11609
11610 # Dependencies to place before and after the object being linked:
11611 predep_objects_CXX=
11612 postdep_objects_CXX=
11613 predeps_CXX=
11614 postdeps_CXX=
11615 compiler_lib_search_path_CXX=
11616
11617 # Source file extension for C++ test sources.
11618 ac_ext=cpp
11619
11620 # Object file extension for compiled C++ test sources.
11621 objext=o
11622 objext_CXX=$objext
11623
11624 # Code to be used in simple compile tests
11625 lt_simple_compile_test_code="int some_variable = 0;\n"
11626
11627 # Code to be used in simple link tests
11628 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
11629
11630 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11631
11632 # If no C compiler was specified, use CC.
11633 LTCC=${LTCC-"$CC"}
11634
11635 # If no C compiler flags were specified, use CFLAGS.
11636 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11637
11638 # Allow CC to be a program name with arguments.
11639 compiler=$CC
11640
11641
11642 # save warnings/boilerplate of simple test code
11643 ac_outfile=conftest.$ac_objext
11644 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
11645 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11646 _lt_compiler_boilerplate=`cat conftest.err`
11647 $rm conftest*
11648
11649 ac_outfile=conftest.$ac_objext
11650 printf "$lt_simple_link_test_code" >conftest.$ac_ext
11651 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11652 _lt_linker_boilerplate=`cat conftest.err`
11653 $rm conftest*
11654
11655
11656 # Allow CC to be a program name with arguments.
11657 lt_save_CC=$CC
11658 lt_save_LD=$LD
11659 lt_save_GCC=$GCC
11660 GCC=$GXX
11661 lt_save_with_gnu_ld=$with_gnu_ld
11662 lt_save_path_LD=$lt_cv_path_LD
11663 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11664   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11665 else
11666   $as_unset lt_cv_prog_gnu_ld
11667 fi
11668 if test -n "${lt_cv_path_LDCXX+set}"; then
11669   lt_cv_path_LD=$lt_cv_path_LDCXX
11670 else
11671   $as_unset lt_cv_path_LD
11672 fi
11673 test -z "${LDCXX+set}" || LD=$LDCXX
11674 CC=${CXX-"c++"}
11675 compiler=$CC
11676 compiler_CXX=$CC
11677 for cc_temp in $compiler""; do
11678   case $cc_temp in
11679     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11680     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11681     \-*) ;;
11682     *) break;;
11683   esac
11684 done
11685 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11686
11687
11688 # We don't want -fno-exception wen compiling C++ code, so set the
11689 # no_builtin_flag separately
11690 if test "$GXX" = yes; then
11691   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11692 else
11693   lt_prog_compiler_no_builtin_flag_CXX=
11694 fi
11695
11696 if test "$GXX" = yes; then
11697   # Set up default GNU C++ configuration
11698
11699
11700 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11701 if test "${with_gnu_ld+set}" = set; then
11702   withval="$with_gnu_ld"
11703   test "$withval" = no || with_gnu_ld=yes
11704 else
11705   with_gnu_ld=no
11706 fi;
11707 ac_prog=ld
11708 if test "$GCC" = yes; then
11709   # Check if gcc -print-prog-name=ld gives a path.
11710   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11711 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11712   case $host in
11713   *-*-mingw*)
11714     # gcc leaves a trailing carriage return which upsets mingw
11715     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11716   *)
11717     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11718   esac
11719   case $ac_prog in
11720     # Accept absolute paths.
11721     [\\/]* | ?:[\\/]*)
11722       re_direlt='/[^/][^/]*/\.\./'
11723       # Canonicalize the pathname of ld
11724       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11725       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11726         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11727       done
11728       test -z "$LD" && LD="$ac_prog"
11729       ;;
11730   "")
11731     # If it fails, then pretend we aren't using GCC.
11732     ac_prog=ld
11733     ;;
11734   *)
11735     # If it is relative, then search for the first ld in PATH.
11736     with_gnu_ld=unknown
11737     ;;
11738   esac
11739 elif test "$with_gnu_ld" = yes; then
11740   echo "$as_me:$LINENO: checking for GNU ld" >&5
11741 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11742 else
11743   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11744 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11745 fi
11746 if test "${lt_cv_path_LD+set}" = set; then
11747   echo $ECHO_N "(cached) $ECHO_C" >&6
11748 else
11749   if test -z "$LD"; then
11750   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11751   for ac_dir in $PATH; do
11752     IFS="$lt_save_ifs"
11753     test -z "$ac_dir" && ac_dir=.
11754     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11755       lt_cv_path_LD="$ac_dir/$ac_prog"
11756       # Check to see if the program is GNU ld.  I'd rather use --version,
11757       # but apparently some variants of GNU ld only accept -v.
11758       # Break only if it was the GNU/non-GNU ld that we prefer.
11759       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11760       *GNU* | *'with BFD'*)
11761         test "$with_gnu_ld" != no && break
11762         ;;
11763       *)
11764         test "$with_gnu_ld" != yes && break
11765         ;;
11766       esac
11767     fi
11768   done
11769   IFS="$lt_save_ifs"
11770 else
11771   lt_cv_path_LD="$LD" # Let the user override the test with a path.
11772 fi
11773 fi
11774
11775 LD="$lt_cv_path_LD"
11776 if test -n "$LD"; then
11777   echo "$as_me:$LINENO: result: $LD" >&5
11778 echo "${ECHO_T}$LD" >&6
11779 else
11780   echo "$as_me:$LINENO: result: no" >&5
11781 echo "${ECHO_T}no" >&6
11782 fi
11783 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11784 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11785    { (exit 1); exit 1; }; }
11786 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11787 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11788 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11789   echo $ECHO_N "(cached) $ECHO_C" >&6
11790 else
11791   # I'd rather use --version here, but apparently some GNU lds only accept -v.
11792 case `$LD -v 2>&1 </dev/null` in
11793 *GNU* | *'with BFD'*)
11794   lt_cv_prog_gnu_ld=yes
11795   ;;
11796 *)
11797   lt_cv_prog_gnu_ld=no
11798   ;;
11799 esac
11800 fi
11801 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11802 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11803 with_gnu_ld=$lt_cv_prog_gnu_ld
11804
11805
11806
11807   # Check if GNU C++ uses GNU ld as the underlying linker, since the
11808   # archiving commands below assume that GNU ld is being used.
11809   if test "$with_gnu_ld" = yes; then
11810     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11811     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'
11812
11813     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11814     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11815
11816     # If archive_cmds runs LD, not CC, wlarc should be empty
11817     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11818     #     investigate it a little bit more. (MM)
11819     wlarc='${wl}'
11820
11821     # ancient GNU ld didn't support --whole-archive et. al.
11822     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11823         grep 'no-whole-archive' > /dev/null; then
11824       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11825     else
11826       whole_archive_flag_spec_CXX=
11827     fi
11828   else
11829     with_gnu_ld=no
11830     wlarc=
11831
11832     # A generic and very simple default shared library creation
11833     # command for GNU C++ for the case where it uses the native
11834     # linker, instead of GNU ld.  If possible, this setting should
11835     # overridden to take advantage of the native linker features on
11836     # the platform it is being used on.
11837     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11838   fi
11839
11840   # Commands to make compiler produce verbose output that lists
11841   # what "hidden" libraries, object files and flags are used when
11842   # linking a shared library.
11843   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11844
11845 else
11846   GXX=no
11847   with_gnu_ld=no
11848   wlarc=
11849 fi
11850
11851 # PORTME: fill in a description of your system's C++ link characteristics
11852 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11853 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11854 ld_shlibs_CXX=yes
11855 case $host_os in
11856   aix3*)
11857     # FIXME: insert proper C++ library support
11858     ld_shlibs_CXX=no
11859     ;;
11860   aix4* | aix5*)
11861     if test "$host_cpu" = ia64; then
11862       # On IA64, the linker does run time linking by default, so we don't
11863       # have to do anything special.
11864       aix_use_runtimelinking=no
11865       exp_sym_flag='-Bexport'
11866       no_entry_flag=""
11867     else
11868       aix_use_runtimelinking=no
11869
11870       # Test if we are trying to use run time linking or normal
11871       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11872       # need to do runtime linking.
11873       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11874         for ld_flag in $LDFLAGS; do
11875           case $ld_flag in
11876           *-brtl*)
11877             aix_use_runtimelinking=yes
11878             break
11879             ;;
11880           esac
11881         done
11882         ;;
11883       esac
11884
11885       exp_sym_flag='-bexport'
11886       no_entry_flag='-bnoentry'
11887     fi
11888
11889     # When large executables or shared objects are built, AIX ld can
11890     # have problems creating the table of contents.  If linking a library
11891     # or program results in "error TOC overflow" add -mminimal-toc to
11892     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
11893     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11894
11895     archive_cmds_CXX=''
11896     hardcode_direct_CXX=yes
11897     hardcode_libdir_separator_CXX=':'
11898     link_all_deplibs_CXX=yes
11899
11900     if test "$GXX" = yes; then
11901       case $host_os in aix4.[012]|aix4.[012].*)
11902       # We only want to do this on AIX 4.2 and lower, the check
11903       # below for broken collect2 doesn't work under 4.3+
11904         collect2name=`${CC} -print-prog-name=collect2`
11905         if test -f "$collect2name" && \
11906            strings "$collect2name" | grep resolve_lib_name >/dev/null
11907         then
11908           # We have reworked collect2
11909           hardcode_direct_CXX=yes
11910         else
11911           # We have old collect2
11912           hardcode_direct_CXX=unsupported
11913           # It fails to find uninstalled libraries when the uninstalled
11914           # path is not listed in the libpath.  Setting hardcode_minus_L
11915           # to unsupported forces relinking
11916           hardcode_minus_L_CXX=yes
11917           hardcode_libdir_flag_spec_CXX='-L$libdir'
11918           hardcode_libdir_separator_CXX=
11919         fi
11920         ;;
11921       esac
11922       shared_flag='-shared'
11923       if test "$aix_use_runtimelinking" = yes; then
11924         shared_flag="$shared_flag "'${wl}-G'
11925       fi
11926     else
11927       # not using gcc
11928       if test "$host_cpu" = ia64; then
11929         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11930         # chokes on -Wl,-G. The following line is correct:
11931         shared_flag='-G'
11932       else
11933         if test "$aix_use_runtimelinking" = yes; then
11934           shared_flag='${wl}-G'
11935         else
11936           shared_flag='${wl}-bM:SRE'
11937         fi
11938       fi
11939     fi
11940
11941     # It seems that -bexpall does not export symbols beginning with
11942     # underscore (_), so it is better to generate a list of symbols to export.
11943     always_export_symbols_CXX=yes
11944     if test "$aix_use_runtimelinking" = yes; then
11945       # Warning - without using the other runtime loading flags (-brtl),
11946       # -berok will link without error, but may produce a broken library.
11947       allow_undefined_flag_CXX='-berok'
11948       # Determine the default libpath from the value encoded in an empty executable.
11949       cat >conftest.$ac_ext <<_ACEOF
11950 /* confdefs.h.  */
11951 _ACEOF
11952 cat confdefs.h >>conftest.$ac_ext
11953 cat >>conftest.$ac_ext <<_ACEOF
11954 /* end confdefs.h.  */
11955
11956 int
11957 main ()
11958 {
11959
11960   ;
11961   return 0;
11962 }
11963 _ACEOF
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11966   (eval $ac_link) 2>conftest.er1
11967   ac_status=$?
11968   grep -v '^ *+' conftest.er1 >conftest.err
11969   rm -f conftest.er1
11970   cat conftest.err >&5
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); } &&
11973          { ac_try='test -z "$ac_cxx_werror_flag"
11974                          || test ! -s conftest.err'
11975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11976   (eval $ac_try) 2>&5
11977   ac_status=$?
11978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979   (exit $ac_status); }; } &&
11980          { ac_try='test -s conftest$ac_exeext'
11981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11982   (eval $ac_try) 2>&5
11983   ac_status=$?
11984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11985   (exit $ac_status); }; }; then
11986
11987 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
11988 }'`
11989 # Check for a 64-bit object if we didn't find anything.
11990 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; }
11991 }'`; fi
11992 else
11993   echo "$as_me: failed program was:" >&5
11994 sed 's/^/| /' conftest.$ac_ext >&5
11995
11996 fi
11997 rm -f conftest.err conftest.$ac_objext \
11998       conftest$ac_exeext conftest.$ac_ext
11999 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12000
12001       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12002
12003       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"
12004      else
12005       if test "$host_cpu" = ia64; then
12006         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12007         allow_undefined_flag_CXX="-z nodefs"
12008         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"
12009       else
12010         # Determine the default libpath from the value encoded in an empty executable.
12011         cat >conftest.$ac_ext <<_ACEOF
12012 /* confdefs.h.  */
12013 _ACEOF
12014 cat confdefs.h >>conftest.$ac_ext
12015 cat >>conftest.$ac_ext <<_ACEOF
12016 /* end confdefs.h.  */
12017
12018 int
12019 main ()
12020 {
12021
12022   ;
12023   return 0;
12024 }
12025 _ACEOF
12026 rm -f conftest.$ac_objext conftest$ac_exeext
12027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12028   (eval $ac_link) 2>conftest.er1
12029   ac_status=$?
12030   grep -v '^ *+' conftest.er1 >conftest.err
12031   rm -f conftest.er1
12032   cat conftest.err >&5
12033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12034   (exit $ac_status); } &&
12035          { ac_try='test -z "$ac_cxx_werror_flag"
12036                          || test ! -s conftest.err'
12037   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12038   (eval $ac_try) 2>&5
12039   ac_status=$?
12040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041   (exit $ac_status); }; } &&
12042          { ac_try='test -s conftest$ac_exeext'
12043   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12044   (eval $ac_try) 2>&5
12045   ac_status=$?
12046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12047   (exit $ac_status); }; }; then
12048
12049 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
12050 }'`
12051 # Check for a 64-bit object if we didn't find anything.
12052 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; }
12053 }'`; fi
12054 else
12055   echo "$as_me: failed program was:" >&5
12056 sed 's/^/| /' conftest.$ac_ext >&5
12057
12058 fi
12059 rm -f conftest.err conftest.$ac_objext \
12060       conftest$ac_exeext conftest.$ac_ext
12061 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12062
12063         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12064         # Warning - without using the other run time loading flags,
12065         # -berok will link without error, but may produce a broken library.
12066         no_undefined_flag_CXX=' ${wl}-bernotok'
12067         allow_undefined_flag_CXX=' ${wl}-berok'
12068         # Exported symbols can be pulled into shared objects from archives
12069         whole_archive_flag_spec_CXX='$convenience'
12070         archive_cmds_need_lc_CXX=yes
12071         # This is similar to how AIX traditionally builds its shared libraries.
12072         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'
12073       fi
12074     fi
12075     ;;
12076
12077   beos*)
12078     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12079       allow_undefined_flag_CXX=unsupported
12080       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12081       # support --undefined.  This deserves some investigation.  FIXME
12082       archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12083     else
12084       ld_shlibs_CXX=no
12085     fi
12086     ;;
12087
12088   chorus*)
12089     case $cc_basename in
12090       *)
12091         # FIXME: insert proper C++ library support
12092         ld_shlibs_CXX=no
12093         ;;
12094     esac
12095     ;;
12096
12097   cygwin* | mingw* | pw32*)
12098     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12099     # as there is no search path for DLLs.
12100     hardcode_libdir_flag_spec_CXX='-L$libdir'
12101     allow_undefined_flag_CXX=unsupported
12102     always_export_symbols_CXX=no
12103     enable_shared_with_static_runtimes_CXX=yes
12104
12105     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12106       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'
12107       # If the export-symbols file already is a .def file (1st line
12108       # is EXPORTS), use it as is; otherwise, prepend...
12109       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12110         cp $export_symbols $output_objdir/$soname.def;
12111       else
12112         echo EXPORTS > $output_objdir/$soname.def;
12113         cat $export_symbols >> $output_objdir/$soname.def;
12114       fi~
12115       $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'
12116     else
12117       ld_shlibs_CXX=no
12118     fi
12119   ;;
12120       darwin* | rhapsody*)
12121         case $host_os in
12122         rhapsody* | darwin1.[012])
12123          allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
12124          ;;
12125        *) # Darwin 1.3 on
12126          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12127            allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12128          else
12129            case ${MACOSX_DEPLOYMENT_TARGET} in
12130              10.[012])
12131                allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
12132                ;;
12133              10.*)
12134                allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
12135                ;;
12136            esac
12137          fi
12138          ;;
12139         esac
12140       archive_cmds_need_lc_CXX=no
12141       hardcode_direct_CXX=no
12142       hardcode_automatic_CXX=yes
12143       hardcode_shlibpath_var_CXX=unsupported
12144       whole_archive_flag_spec_CXX=''
12145       link_all_deplibs_CXX=yes
12146
12147     if test "$GXX" = yes ; then
12148       lt_int_apple_cc_single_mod=no
12149       output_verbose_link_cmd='echo'
12150       if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
12151        lt_int_apple_cc_single_mod=yes
12152       fi
12153       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12154        archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12155       else
12156           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'
12157         fi
12158         module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12159         # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12160           if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12161             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}'
12162           else
12163             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}'
12164           fi
12165             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}'
12166       else
12167       case $cc_basename in
12168         xlc*)
12169          output_verbose_link_cmd='echo'
12170           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'
12171           module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12172           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
12173           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}'
12174           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}'
12175           ;;
12176        *)
12177          ld_shlibs_CXX=no
12178           ;;
12179       esac
12180       fi
12181         ;;
12182
12183   dgux*)
12184     case $cc_basename in
12185       ec++*)
12186         # FIXME: insert proper C++ library support
12187         ld_shlibs_CXX=no
12188         ;;
12189       ghcx*)
12190         # Green Hills C++ Compiler
12191         # FIXME: insert proper C++ library support
12192         ld_shlibs_CXX=no
12193         ;;
12194       *)
12195         # FIXME: insert proper C++ library support
12196         ld_shlibs_CXX=no
12197         ;;
12198     esac
12199     ;;
12200   freebsd[12]*)
12201     # C++ shared libraries reported to be fairly broken before switch to ELF
12202     ld_shlibs_CXX=no
12203     ;;
12204   freebsd-elf*)
12205     archive_cmds_need_lc_CXX=no
12206     ;;
12207   freebsd* | kfreebsd*-gnu | dragonfly*)
12208     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12209     # conventions
12210     ld_shlibs_CXX=yes
12211     ;;
12212   gnu*)
12213     ;;
12214   hpux9*)
12215     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12216     hardcode_libdir_separator_CXX=:
12217     export_dynamic_flag_spec_CXX='${wl}-E'
12218     hardcode_direct_CXX=yes
12219     hardcode_minus_L_CXX=yes # Not in the search PATH,
12220                                 # but as the default
12221                                 # location of the library.
12222
12223     case $cc_basename in
12224     CC*)
12225       # FIXME: insert proper C++ library support
12226       ld_shlibs_CXX=no
12227       ;;
12228     aCC*)
12229       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'
12230       # Commands to make compiler produce verbose output that lists
12231       # what "hidden" libraries, object files and flags are used when
12232       # linking a shared library.
12233       #
12234       # There doesn't appear to be a way to prevent this compiler from
12235       # explicitly linking system object files so we need to strip them
12236       # from the output so that they don't get included in the library
12237       # dependencies.
12238       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'
12239       ;;
12240     *)
12241       if test "$GXX" = yes; then
12242         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'
12243       else
12244         # FIXME: insert proper C++ library support
12245         ld_shlibs_CXX=no
12246       fi
12247       ;;
12248     esac
12249     ;;
12250   hpux10*|hpux11*)
12251     if test $with_gnu_ld = no; then
12252       hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12253       hardcode_libdir_separator_CXX=:
12254
12255       case $host_cpu in
12256       hppa*64*|ia64*)
12257         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12258         ;;
12259       *)
12260         export_dynamic_flag_spec_CXX='${wl}-E'
12261         ;;
12262       esac
12263     fi
12264     case $host_cpu in
12265     hppa*64*|ia64*)
12266       hardcode_direct_CXX=no
12267       hardcode_shlibpath_var_CXX=no
12268       ;;
12269     *)
12270       hardcode_direct_CXX=yes
12271       hardcode_minus_L_CXX=yes # Not in the search PATH,
12272                                               # but as the default
12273                                               # location of the library.
12274       ;;
12275     esac
12276
12277     case $cc_basename in
12278       CC*)
12279         # FIXME: insert proper C++ library support
12280         ld_shlibs_CXX=no
12281         ;;
12282       aCC*)
12283         case $host_cpu in
12284         hppa*64*)
12285           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12286           ;;
12287         ia64*)
12288           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12289           ;;
12290         *)
12291           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12292           ;;
12293         esac
12294         # Commands to make compiler produce verbose output that lists
12295         # what "hidden" libraries, object files and flags are used when
12296         # linking a shared library.
12297         #
12298         # There doesn't appear to be a way to prevent this compiler from
12299         # explicitly linking system object files so we need to strip them
12300         # from the output so that they don't get included in the library
12301         # dependencies.
12302         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'
12303         ;;
12304       *)
12305         if test "$GXX" = yes; then
12306           if test $with_gnu_ld = no; then
12307             case $host_cpu in
12308             hppa*64*)
12309               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12310               ;;
12311             ia64*)
12312               archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12313               ;;
12314             *)
12315               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'
12316               ;;
12317             esac
12318           fi
12319         else
12320           # FIXME: insert proper C++ library support
12321           ld_shlibs_CXX=no
12322         fi
12323         ;;
12324     esac
12325     ;;
12326   interix3*)
12327     hardcode_direct_CXX=no
12328     hardcode_shlibpath_var_CXX=no
12329     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12330     export_dynamic_flag_spec_CXX='${wl}-E'
12331     # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12332     # Instead, shared libraries are loaded at an image base (0x10000000 by
12333     # default) and relocated if they conflict, which is a slow very memory
12334     # consuming and fragmenting process.  To avoid this, we pick a random,
12335     # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12336     # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12337     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'
12338     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'
12339     ;;
12340   irix5* | irix6*)
12341     case $cc_basename in
12342       CC*)
12343         # SGI C++
12344         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'
12345
12346         # Archives containing C++ object files must be created using
12347         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12348         # necessary to make sure instantiated templates are included
12349         # in the archive.
12350         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12351         ;;
12352       *)
12353         if test "$GXX" = yes; then
12354           if test "$with_gnu_ld" = no; then
12355             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'
12356           else
12357             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'
12358           fi
12359         fi
12360         link_all_deplibs_CXX=yes
12361         ;;
12362     esac
12363     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12364     hardcode_libdir_separator_CXX=:
12365     ;;
12366   linux*)
12367     case $cc_basename in
12368       KCC*)
12369         # Kuck and Associates, Inc. (KAI) C++ Compiler
12370
12371         # KCC will only create a shared library if the output file
12372         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12373         # to its proper name (with version) after linking.
12374         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'
12375         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'
12376         # Commands to make compiler produce verbose output that lists
12377         # what "hidden" libraries, object files and flags are used when
12378         # linking a shared library.
12379         #
12380         # There doesn't appear to be a way to prevent this compiler from
12381         # explicitly linking system object files so we need to strip them
12382         # from the output so that they don't get included in the library
12383         # dependencies.
12384         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'
12385
12386         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12387         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12388
12389         # Archives containing C++ object files must be created using
12390         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12391         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12392         ;;
12393       icpc*)
12394         # Intel C++
12395         with_gnu_ld=yes
12396         # version 8.0 and above of icpc choke on multiply defined symbols
12397         # if we add $predep_objects and $postdep_objects, however 7.1 and
12398         # earlier do not add the objects themselves.
12399         case `$CC -V 2>&1` in
12400         *"Version 7."*)
12401           archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12402           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'
12403           ;;
12404         *)  # Version 8.0 or newer
12405           tmp_idyn=
12406           case $host_cpu in
12407             ia64*) tmp_idyn=' -i_dynamic';;
12408           esac
12409           archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12410           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'
12411           ;;
12412         esac
12413         archive_cmds_need_lc_CXX=no
12414         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12415         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12416         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12417         ;;
12418       pgCC*)
12419         # Portland Group C++ compiler
12420         archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12421         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'
12422
12423         hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12424         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12425         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'
12426         ;;
12427       cxx*)
12428         # Compaq C++
12429         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12430         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'
12431
12432         runpath_var=LD_RUN_PATH
12433         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12434         hardcode_libdir_separator_CXX=:
12435
12436         # Commands to make compiler produce verbose output that lists
12437         # what "hidden" libraries, object files and flags are used when
12438         # linking a shared library.
12439         #
12440         # There doesn't appear to be a way to prevent this compiler from
12441         # explicitly linking system object files so we need to strip them
12442         # from the output so that they don't get included in the library
12443         # dependencies.
12444         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'
12445         ;;
12446     esac
12447     ;;
12448   lynxos*)
12449     # FIXME: insert proper C++ library support
12450     ld_shlibs_CXX=no
12451     ;;
12452   m88k*)
12453     # FIXME: insert proper C++ library support
12454     ld_shlibs_CXX=no
12455     ;;
12456   mvs*)
12457     case $cc_basename in
12458       cxx*)
12459         # FIXME: insert proper C++ library support
12460         ld_shlibs_CXX=no
12461         ;;
12462       *)
12463         # FIXME: insert proper C++ library support
12464         ld_shlibs_CXX=no
12465         ;;
12466     esac
12467     ;;
12468   netbsd*)
12469     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12470       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12471       wlarc=
12472       hardcode_libdir_flag_spec_CXX='-R$libdir'
12473       hardcode_direct_CXX=yes
12474       hardcode_shlibpath_var_CXX=no
12475     fi
12476     # Workaround some broken pre-1.5 toolchains
12477     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12478     ;;
12479   openbsd2*)
12480     # C++ shared libraries are fairly broken
12481     ld_shlibs_CXX=no
12482     ;;
12483   openbsd*)
12484     hardcode_direct_CXX=yes
12485     hardcode_shlibpath_var_CXX=no
12486     archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12487     hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12488     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12489       archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12490       export_dynamic_flag_spec_CXX='${wl}-E'
12491       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12492     fi
12493     output_verbose_link_cmd='echo'
12494     ;;
12495   osf3*)
12496     case $cc_basename in
12497       KCC*)
12498         # Kuck and Associates, Inc. (KAI) C++ Compiler
12499
12500         # KCC will only create a shared library if the output file
12501         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12502         # to its proper name (with version) after linking.
12503         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'
12504
12505         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12506         hardcode_libdir_separator_CXX=:
12507
12508         # Archives containing C++ object files must be created using
12509         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12510         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12511
12512         ;;
12513       RCC*)
12514         # Rational C++ 2.4.1
12515         # FIXME: insert proper C++ library support
12516         ld_shlibs_CXX=no
12517         ;;
12518       cxx*)
12519         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12520         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'
12521
12522         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12523         hardcode_libdir_separator_CXX=:
12524
12525         # Commands to make compiler produce verbose output that lists
12526         # what "hidden" libraries, object files and flags are used when
12527         # linking a shared library.
12528         #
12529         # There doesn't appear to be a way to prevent this compiler from
12530         # explicitly linking system object files so we need to strip them
12531         # from the output so that they don't get included in the library
12532         # dependencies.
12533         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'
12534         ;;
12535       *)
12536         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12537           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12538           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'
12539
12540           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12541           hardcode_libdir_separator_CXX=:
12542
12543           # Commands to make compiler produce verbose output that lists
12544           # what "hidden" libraries, object files and flags are used when
12545           # linking a shared library.
12546           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12547
12548         else
12549           # FIXME: insert proper C++ library support
12550           ld_shlibs_CXX=no
12551         fi
12552         ;;
12553     esac
12554     ;;
12555   osf4* | osf5*)
12556     case $cc_basename in
12557       KCC*)
12558         # Kuck and Associates, Inc. (KAI) C++ Compiler
12559
12560         # KCC will only create a shared library if the output file
12561         # ends with ".so" (or ".sl" for HP-UX), so rename the library
12562         # to its proper name (with version) after linking.
12563         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'
12564
12565         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12566         hardcode_libdir_separator_CXX=:
12567
12568         # Archives containing C++ object files must be created using
12569         # the KAI C++ compiler.
12570         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12571         ;;
12572       RCC*)
12573         # Rational C++ 2.4.1
12574         # FIXME: insert proper C++ library support
12575         ld_shlibs_CXX=no
12576         ;;
12577       cxx*)
12578         allow_undefined_flag_CXX=' -expect_unresolved \*'
12579         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'
12580         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12581           echo "-hidden">> $lib.exp~
12582           $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~
12583           $rm $lib.exp'
12584
12585         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12586         hardcode_libdir_separator_CXX=:
12587
12588         # Commands to make compiler produce verbose output that lists
12589         # what "hidden" libraries, object files and flags are used when
12590         # linking a shared library.
12591         #
12592         # There doesn't appear to be a way to prevent this compiler from
12593         # explicitly linking system object files so we need to strip them
12594         # from the output so that they don't get included in the library
12595         # dependencies.
12596         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'
12597         ;;
12598       *)
12599         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12600           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12601          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'
12602
12603           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12604           hardcode_libdir_separator_CXX=:
12605
12606           # Commands to make compiler produce verbose output that lists
12607           # what "hidden" libraries, object files and flags are used when
12608           # linking a shared library.
12609           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12610
12611         else
12612           # FIXME: insert proper C++ library support
12613           ld_shlibs_CXX=no
12614         fi
12615         ;;
12616     esac
12617     ;;
12618   psos*)
12619     # FIXME: insert proper C++ library support
12620     ld_shlibs_CXX=no
12621     ;;
12622   sunos4*)
12623     case $cc_basename in
12624       CC*)
12625         # Sun C++ 4.x
12626         # FIXME: insert proper C++ library support
12627         ld_shlibs_CXX=no
12628         ;;
12629       lcc*)
12630         # Lucid
12631         # FIXME: insert proper C++ library support
12632         ld_shlibs_CXX=no
12633         ;;
12634       *)
12635         # FIXME: insert proper C++ library support
12636         ld_shlibs_CXX=no
12637         ;;
12638     esac
12639     ;;
12640   solaris*)
12641     case $cc_basename in
12642       CC*)
12643         # Sun C++ 4.2, 5.x and Centerline C++
12644         archive_cmds_need_lc_CXX=yes
12645         no_undefined_flag_CXX=' -zdefs'
12646         archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12647         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12648         $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'
12649
12650         hardcode_libdir_flag_spec_CXX='-R$libdir'
12651         hardcode_shlibpath_var_CXX=no
12652         case $host_os in
12653           solaris2.[0-5] | solaris2.[0-5].*) ;;
12654           *)
12655             # The C++ compiler is used as linker so we must use $wl
12656             # flag to pass the commands to the underlying system
12657             # linker. We must also pass each convience library through
12658             # to the system linker between allextract/defaultextract.
12659             # The C++ compiler will combine linker options so we
12660             # cannot just pass the convience library names through
12661             # without $wl.
12662             # Supported since Solaris 2.6 (maybe 2.5.1?)
12663             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'
12664             ;;
12665         esac
12666         link_all_deplibs_CXX=yes
12667
12668         output_verbose_link_cmd='echo'
12669
12670         # Archives containing C++ object files must be created using
12671         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12672         # necessary to make sure instantiated templates are included
12673         # in the archive.
12674         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12675         ;;
12676       gcx*)
12677         # Green Hills C++ Compiler
12678         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12679
12680         # The C++ compiler must be used to create the archive.
12681         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12682         ;;
12683       *)
12684         # GNU C++ compiler with Solaris linker
12685         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12686           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12687           if $CC --version | grep -v '^2\.7' > /dev/null; then
12688             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12689             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12690                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12691
12692             # Commands to make compiler produce verbose output that lists
12693             # what "hidden" libraries, object files and flags are used when
12694             # linking a shared library.
12695             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12696           else
12697             # g++ 2.7 appears to require `-G' NOT `-shared' on this
12698             # platform.
12699             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12700             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12701                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12702
12703             # Commands to make compiler produce verbose output that lists
12704             # what "hidden" libraries, object files and flags are used when
12705             # linking a shared library.
12706             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12707           fi
12708
12709           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12710         fi
12711         ;;
12712     esac
12713     ;;
12714   sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12715     no_undefined_flag_CXX='${wl}-z,text'
12716     archive_cmds_need_lc_CXX=no
12717     hardcode_shlibpath_var_CXX=no
12718     runpath_var='LD_RUN_PATH'
12719
12720     case $cc_basename in
12721       CC*)
12722         archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12723         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12724         ;;
12725       *)
12726         archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12727         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12728         ;;
12729     esac
12730     ;;
12731   sysv5* | sco3.2v5* | sco5v6*)
12732     # Note: We can NOT use -z defs as we might desire, because we do not
12733     # link with -lc, and that would cause any symbols used from libc to
12734     # always be unresolved, which means just about no library would
12735     # ever link correctly.  If we're not using GNU ld we use -z text
12736     # though, which does catch some bad symbols but isn't as heavy-handed
12737     # as -z defs.
12738     # For security reasons, it is highly recommended that you always
12739     # use absolute paths for naming shared libraries, and exclude the
12740     # DT_RUNPATH tag from executables and libraries.  But doing so
12741     # requires that you compile everything twice, which is a pain.
12742     # So that behaviour is only enabled if SCOABSPATH is set to a
12743     # non-empty value in the environment.  Most likely only useful for
12744     # creating official distributions of packages.
12745     # This is a hack until libtool officially supports absolute path
12746     # names for shared libraries.
12747     no_undefined_flag_CXX='${wl}-z,text'
12748     allow_undefined_flag_CXX='${wl}-z,nodefs'
12749     archive_cmds_need_lc_CXX=no
12750     hardcode_shlibpath_var_CXX=no
12751     hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12752     hardcode_libdir_separator_CXX=':'
12753     link_all_deplibs_CXX=yes
12754     export_dynamic_flag_spec_CXX='${wl}-Bexport'
12755     runpath_var='LD_RUN_PATH'
12756
12757     case $cc_basename in
12758       CC*)
12759         archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12760         archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12761         ;;
12762       *)
12763         archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12764         archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12765         ;;
12766     esac
12767     ;;
12768   tandem*)
12769     case $cc_basename in
12770       NCC*)
12771         # NonStop-UX NCC 3.20
12772         # FIXME: insert proper C++ library support
12773         ld_shlibs_CXX=no
12774         ;;
12775       *)
12776         # FIXME: insert proper C++ library support
12777         ld_shlibs_CXX=no
12778         ;;
12779     esac
12780     ;;
12781   vxworks*)
12782     # FIXME: insert proper C++ library support
12783     ld_shlibs_CXX=no
12784     ;;
12785   *)
12786     # FIXME: insert proper C++ library support
12787     ld_shlibs_CXX=no
12788     ;;
12789 esac
12790 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12791 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12792 test "$ld_shlibs_CXX" = no && can_build_shared=no
12793
12794 GCC_CXX="$GXX"
12795 LD_CXX="$LD"
12796
12797
12798 cat > conftest.$ac_ext <<EOF
12799 class Foo
12800 {
12801 public:
12802   Foo (void) { a = 0; }
12803 private:
12804   int a;
12805 };
12806 EOF
12807
12808 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12809   (eval $ac_compile) 2>&5
12810   ac_status=$?
12811   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812   (exit $ac_status); }; then
12813   # Parse the compiler output and extract the necessary
12814   # objects, libraries and library flags.
12815
12816   # Sentinel used to keep track of whether or not we are before
12817   # the conftest object file.
12818   pre_test_object_deps_done=no
12819
12820   # The `*' in the case matches for architectures that use `case' in
12821   # $output_verbose_cmd can trigger glob expansion during the loop
12822   # eval without this substitution.
12823   output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12824
12825   for p in `eval $output_verbose_link_cmd`; do
12826     case $p in
12827
12828     -L* | -R* | -l*)
12829        # Some compilers place space between "-{L,R}" and the path.
12830        # Remove the space.
12831        if test $p = "-L" \
12832           || test $p = "-R"; then
12833          prev=$p
12834          continue
12835        else
12836          prev=
12837        fi
12838
12839        if test "$pre_test_object_deps_done" = no; then
12840          case $p in
12841          -L* | -R*)
12842            # Internal compiler library paths should come after those
12843            # provided the user.  The postdeps already come after the
12844            # user supplied libs so there is no need to process them.
12845            if test -z "$compiler_lib_search_path_CXX"; then
12846              compiler_lib_search_path_CXX="${prev}${p}"
12847            else
12848              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12849            fi
12850            ;;
12851          # The "-l" case would never come before the object being
12852          # linked, so don't bother handling this case.
12853          esac
12854        else
12855          if test -z "$postdeps_CXX"; then
12856            postdeps_CXX="${prev}${p}"
12857          else
12858            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12859          fi
12860        fi
12861        ;;
12862
12863     *.$objext)
12864        # This assumes that the test object file only shows up
12865        # once in the compiler output.
12866        if test "$p" = "conftest.$objext"; then
12867          pre_test_object_deps_done=yes
12868          continue
12869        fi
12870
12871        if test "$pre_test_object_deps_done" = no; then
12872          if test -z "$predep_objects_CXX"; then
12873            predep_objects_CXX="$p"
12874          else
12875            predep_objects_CXX="$predep_objects_CXX $p"
12876          fi
12877        else
12878          if test -z "$postdep_objects_CXX"; then
12879            postdep_objects_CXX="$p"
12880          else
12881            postdep_objects_CXX="$postdep_objects_CXX $p"
12882          fi
12883        fi
12884        ;;
12885
12886     *) ;; # Ignore the rest.
12887
12888     esac
12889   done
12890
12891   # Clean up.
12892   rm -f a.out a.exe
12893 else
12894   echo "libtool.m4: error: problem compiling CXX test program"
12895 fi
12896
12897 $rm -f confest.$objext
12898
12899 # PORTME: override above test on systems where it is broken
12900 case $host_os in
12901 interix3*)
12902   # Interix 3.5 installs completely hosed .la files for C++, so rather than
12903   # hack all around it, let's just trust "g++" to DTRT.
12904   predep_objects_CXX=
12905   postdep_objects_CXX=
12906   postdeps_CXX=
12907   ;;
12908
12909 solaris*)
12910   case $cc_basename in
12911   CC*)
12912     # Adding this requires a known-good setup of shared libraries for
12913     # Sun compiler versions before 5.6, else PIC objects from an old
12914     # archive will be linked into the output, leading to subtle bugs.
12915     postdeps_CXX='-lCstd -lCrun'
12916     ;;
12917   esac
12918   ;;
12919 esac
12920
12921
12922 case " $postdeps_CXX " in
12923 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12924 esac
12925
12926 lt_prog_compiler_wl_CXX=
12927 lt_prog_compiler_pic_CXX=
12928 lt_prog_compiler_static_CXX=
12929
12930 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12931 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12932
12933   # C++ specific cases for pic, static, wl, etc.
12934   if test "$GXX" = yes; then
12935     lt_prog_compiler_wl_CXX='-Wl,'
12936     lt_prog_compiler_static_CXX='-static'
12937
12938     case $host_os in
12939     aix*)
12940       # All AIX code is PIC.
12941       if test "$host_cpu" = ia64; then
12942         # AIX 5 now supports IA64 processor
12943         lt_prog_compiler_static_CXX='-Bstatic'
12944       fi
12945       ;;
12946     amigaos*)
12947       # FIXME: we need at least 68020 code to build shared libraries, but
12948       # adding the `-m68020' flag to GCC prevents building anything better,
12949       # like `-m68040'.
12950       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12951       ;;
12952     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12953       # PIC is the default for these OSes.
12954       ;;
12955     mingw* | os2* | pw32*)
12956       # This hack is so that the source file can tell whether it is being
12957       # built for inclusion in a dll (and should export symbols for example).
12958       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12959       ;;
12960     darwin* | rhapsody*)
12961       # PIC is the default on this platform
12962       # Common symbols not allowed in MH_DYLIB files
12963       lt_prog_compiler_pic_CXX='-fno-common'
12964       ;;
12965     *djgpp*)
12966       # DJGPP does not support shared libraries at all
12967       lt_prog_compiler_pic_CXX=
12968       ;;
12969     interix3*)
12970       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12971       # Instead, we relocate shared libraries at runtime.
12972       ;;
12973     sysv4*MP*)
12974       if test -d /usr/nec; then
12975         lt_prog_compiler_pic_CXX=-Kconform_pic
12976       fi
12977       ;;
12978     hpux*)
12979       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12980       # not for PA HP-UX.
12981       case $host_cpu in
12982       hppa*64*|ia64*)
12983         ;;
12984       *)
12985         lt_prog_compiler_pic_CXX='-fPIC'
12986         ;;
12987       esac
12988       ;;
12989     *)
12990       lt_prog_compiler_pic_CXX='-fPIC'
12991       ;;
12992     esac
12993   else
12994     case $host_os in
12995       aix4* | aix5*)
12996         # All AIX code is PIC.
12997         if test "$host_cpu" = ia64; then
12998           # AIX 5 now supports IA64 processor
12999           lt_prog_compiler_static_CXX='-Bstatic'
13000         else
13001           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13002         fi
13003         ;;
13004       chorus*)
13005         case $cc_basename in
13006         cxch68*)
13007           # Green Hills C++ Compiler
13008           # _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"
13009           ;;
13010         esac
13011         ;;
13012        darwin*)
13013          # PIC is the default on this platform
13014          # Common symbols not allowed in MH_DYLIB files
13015          case $cc_basename in
13016            xlc*)
13017            lt_prog_compiler_pic_CXX='-qnocommon'
13018            lt_prog_compiler_wl_CXX='-Wl,'
13019            ;;
13020          esac
13021        ;;
13022       dgux*)
13023         case $cc_basename in
13024           ec++*)
13025             lt_prog_compiler_pic_CXX='-KPIC'
13026             ;;
13027           ghcx*)
13028             # Green Hills C++ Compiler
13029             lt_prog_compiler_pic_CXX='-pic'
13030             ;;
13031           *)
13032             ;;
13033         esac
13034         ;;
13035       freebsd* | kfreebsd*-gnu | dragonfly*)
13036         # FreeBSD uses GNU C++
13037         ;;
13038       hpux9* | hpux10* | hpux11*)
13039         case $cc_basename in
13040           CC*)
13041             lt_prog_compiler_wl_CXX='-Wl,'
13042             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13043             if test "$host_cpu" != ia64; then
13044               lt_prog_compiler_pic_CXX='+Z'
13045             fi
13046             ;;
13047           aCC*)
13048             lt_prog_compiler_wl_CXX='-Wl,'
13049             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13050             case $host_cpu in
13051             hppa*64*|ia64*)
13052               # +Z the default
13053               ;;
13054             *)
13055               lt_prog_compiler_pic_CXX='+Z'
13056               ;;
13057             esac
13058             ;;
13059           *)
13060             ;;
13061         esac
13062         ;;
13063       interix*)
13064         # This is c89, which is MS Visual C++ (no shared libs)
13065         # Anyone wants to do a port?
13066         ;;
13067       irix5* | irix6* | nonstopux*)
13068         case $cc_basename in
13069           CC*)
13070             lt_prog_compiler_wl_CXX='-Wl,'
13071             lt_prog_compiler_static_CXX='-non_shared'
13072             # CC pic flag -KPIC is the default.
13073             ;;
13074           *)
13075             ;;
13076         esac
13077         ;;
13078       linux*)
13079         case $cc_basename in
13080           KCC*)
13081             # KAI C++ Compiler
13082             lt_prog_compiler_wl_CXX='--backend -Wl,'
13083             lt_prog_compiler_pic_CXX='-fPIC'
13084             ;;
13085           icpc* | ecpc*)
13086             # Intel C++
13087             lt_prog_compiler_wl_CXX='-Wl,'
13088             lt_prog_compiler_pic_CXX='-KPIC'
13089             lt_prog_compiler_static_CXX='-static'
13090             ;;
13091           pgCC*)
13092             # Portland Group C++ compiler.
13093             lt_prog_compiler_wl_CXX='-Wl,'
13094             lt_prog_compiler_pic_CXX='-fpic'
13095             lt_prog_compiler_static_CXX='-Bstatic'
13096             ;;
13097           cxx*)
13098             # Compaq C++
13099             # Make sure the PIC flag is empty.  It appears that all Alpha
13100             # Linux and Compaq Tru64 Unix objects are PIC.
13101             lt_prog_compiler_pic_CXX=
13102             lt_prog_compiler_static_CXX='-non_shared'
13103             ;;
13104           *)
13105             ;;
13106         esac
13107         ;;
13108       lynxos*)
13109         ;;
13110       m88k*)
13111         ;;
13112       mvs*)
13113         case $cc_basename in
13114           cxx*)
13115             lt_prog_compiler_pic_CXX='-W c,exportall'
13116             ;;
13117           *)
13118             ;;
13119         esac
13120         ;;
13121       netbsd*)
13122         ;;
13123       osf3* | osf4* | osf5*)
13124         case $cc_basename in
13125           KCC*)
13126             lt_prog_compiler_wl_CXX='--backend -Wl,'
13127             ;;
13128           RCC*)
13129             # Rational C++ 2.4.1
13130             lt_prog_compiler_pic_CXX='-pic'
13131             ;;
13132           cxx*)
13133             # Digital/Compaq C++
13134             lt_prog_compiler_wl_CXX='-Wl,'
13135             # Make sure the PIC flag is empty.  It appears that all Alpha
13136             # Linux and Compaq Tru64 Unix objects are PIC.
13137             lt_prog_compiler_pic_CXX=
13138             lt_prog_compiler_static_CXX='-non_shared'
13139             ;;
13140           *)
13141             ;;
13142         esac
13143         ;;
13144       psos*)
13145         ;;
13146       solaris*)
13147         case $cc_basename in
13148           CC*)
13149             # Sun C++ 4.2, 5.x and Centerline C++
13150             lt_prog_compiler_pic_CXX='-KPIC'
13151             lt_prog_compiler_static_CXX='-Bstatic'
13152             lt_prog_compiler_wl_CXX='-Qoption ld '
13153             ;;
13154           gcx*)
13155             # Green Hills C++ Compiler
13156             lt_prog_compiler_pic_CXX='-PIC'
13157             ;;
13158           *)
13159             ;;
13160         esac
13161         ;;
13162       sunos4*)
13163         case $cc_basename in
13164           CC*)
13165             # Sun C++ 4.x
13166             lt_prog_compiler_pic_CXX='-pic'
13167             lt_prog_compiler_static_CXX='-Bstatic'
13168             ;;
13169           lcc*)
13170             # Lucid
13171             lt_prog_compiler_pic_CXX='-pic'
13172             ;;
13173           *)
13174             ;;
13175         esac
13176         ;;
13177       tandem*)
13178         case $cc_basename in
13179           NCC*)
13180             # NonStop-UX NCC 3.20
13181             lt_prog_compiler_pic_CXX='-KPIC'
13182             ;;
13183           *)
13184             ;;
13185         esac
13186         ;;
13187       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13188         case $cc_basename in
13189           CC*)
13190             lt_prog_compiler_wl_CXX='-Wl,'
13191             lt_prog_compiler_pic_CXX='-KPIC'
13192             lt_prog_compiler_static_CXX='-Bstatic'
13193             ;;
13194         esac
13195         ;;
13196       vxworks*)
13197         ;;
13198       *)
13199         lt_prog_compiler_can_build_shared_CXX=no
13200         ;;
13201     esac
13202   fi
13203
13204 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13205 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13206
13207 #
13208 # Check to make sure the PIC flag actually works.
13209 #
13210 if test -n "$lt_prog_compiler_pic_CXX"; then
13211
13212 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13213 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13214 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13215   echo $ECHO_N "(cached) $ECHO_C" >&6
13216 else
13217   lt_prog_compiler_pic_works_CXX=no
13218   ac_outfile=conftest.$ac_objext
13219    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13220    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13221    # Insert the option either (1) after the last *FLAGS variable, or
13222    # (2) before a word containing "conftest.", or (3) at the end.
13223    # Note that $ac_compile itself does not contain backslashes and begins
13224    # with a dollar sign (not a hyphen), so the echo should work correctly.
13225    # The option is referenced via a variable to avoid confusing sed.
13226    lt_compile=`echo "$ac_compile" | $SED \
13227    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13228    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13229    -e 's:$: $lt_compiler_flag:'`
13230    (eval echo "\"\$as_me:13230: $lt_compile\"" >&5)
13231    (eval "$lt_compile" 2>conftest.err)
13232    ac_status=$?
13233    cat conftest.err >&5
13234    echo "$as_me:13234: \$? = $ac_status" >&5
13235    if (exit $ac_status) && test -s "$ac_outfile"; then
13236      # The compiler can only warn and ignore the option if not recognized
13237      # So say no if there are warnings other than the usual output.
13238      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13239      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13240      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13241        lt_prog_compiler_pic_works_CXX=yes
13242      fi
13243    fi
13244    $rm conftest*
13245
13246 fi
13247 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13248 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13249
13250 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13251     case $lt_prog_compiler_pic_CXX in
13252      "" | " "*) ;;
13253      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13254      esac
13255 else
13256     lt_prog_compiler_pic_CXX=
13257      lt_prog_compiler_can_build_shared_CXX=no
13258 fi
13259
13260 fi
13261 case $host_os in
13262   # For platforms which do not support PIC, -DPIC is meaningless:
13263   *djgpp*)
13264     lt_prog_compiler_pic_CXX=
13265     ;;
13266   *)
13267     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13268     ;;
13269 esac
13270
13271 #
13272 # Check to make sure the static flag actually works.
13273 #
13274 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13275 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13276 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13277 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
13278   echo $ECHO_N "(cached) $ECHO_C" >&6
13279 else
13280   lt_prog_compiler_static_works_CXX=no
13281    save_LDFLAGS="$LDFLAGS"
13282    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13283    printf "$lt_simple_link_test_code" > conftest.$ac_ext
13284    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13285      # The linker can only warn and ignore the option if not recognized
13286      # So say no if there are warnings
13287      if test -s conftest.err; then
13288        # Append any errors to the config.log.
13289        cat conftest.err 1>&5
13290        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13291        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13292        if diff conftest.exp conftest.er2 >/dev/null; then
13293          lt_prog_compiler_static_works_CXX=yes
13294        fi
13295      else
13296        lt_prog_compiler_static_works_CXX=yes
13297      fi
13298    fi
13299    $rm conftest*
13300    LDFLAGS="$save_LDFLAGS"
13301
13302 fi
13303 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
13304 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
13305
13306 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
13307     :
13308 else
13309     lt_prog_compiler_static_CXX=
13310 fi
13311
13312
13313 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13314 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13315 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13316   echo $ECHO_N "(cached) $ECHO_C" >&6
13317 else
13318   lt_cv_prog_compiler_c_o_CXX=no
13319    $rm -r conftest 2>/dev/null
13320    mkdir conftest
13321    cd conftest
13322    mkdir out
13323    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13324
13325    lt_compiler_flag="-o out/conftest2.$ac_objext"
13326    # Insert the option either (1) after the last *FLAGS variable, or
13327    # (2) before a word containing "conftest.", or (3) at the end.
13328    # Note that $ac_compile itself does not contain backslashes and begins
13329    # with a dollar sign (not a hyphen), so the echo should work correctly.
13330    lt_compile=`echo "$ac_compile" | $SED \
13331    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13332    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13333    -e 's:$: $lt_compiler_flag:'`
13334    (eval echo "\"\$as_me:13334: $lt_compile\"" >&5)
13335    (eval "$lt_compile" 2>out/conftest.err)
13336    ac_status=$?
13337    cat out/conftest.err >&5
13338    echo "$as_me:13338: \$? = $ac_status" >&5
13339    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13340    then
13341      # The compiler can only warn and ignore the option if not recognized
13342      # So say no if there are warnings
13343      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13344      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13345      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13346        lt_cv_prog_compiler_c_o_CXX=yes
13347      fi
13348    fi
13349    chmod u+w . 2>&5
13350    $rm conftest*
13351    # SGI C++ compiler will create directory out/ii_files/ for
13352    # template instantiation
13353    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13354    $rm out/* && rmdir out
13355    cd ..
13356    rmdir conftest
13357    $rm conftest*
13358
13359 fi
13360 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13361 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13362
13363
13364 hard_links="nottested"
13365 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13366   # do not overwrite the value of need_locks provided by the user
13367   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13368 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13369   hard_links=yes
13370   $rm conftest*
13371   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13372   touch conftest.a
13373   ln conftest.a conftest.b 2>&5 || hard_links=no
13374   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13375   echo "$as_me:$LINENO: result: $hard_links" >&5
13376 echo "${ECHO_T}$hard_links" >&6
13377   if test "$hard_links" = no; then
13378     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13379 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13380     need_locks=warn
13381   fi
13382 else
13383   need_locks=no
13384 fi
13385
13386 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13387 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13388
13389   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13390   case $host_os in
13391   aix4* | aix5*)
13392     # If we're using GNU nm, then we don't want the "-C" option.
13393     # -C means demangle to AIX nm, but means don't demangle with GNU nm
13394     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13395       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'
13396     else
13397       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'
13398     fi
13399     ;;
13400   pw32*)
13401     export_symbols_cmds_CXX="$ltdll_cmds"
13402   ;;
13403   cygwin* | mingw*)
13404     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'
13405   ;;
13406   *)
13407     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13408   ;;
13409   esac
13410
13411 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13412 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13413 test "$ld_shlibs_CXX" = no && can_build_shared=no
13414
13415 #
13416 # Do we need to explicitly link libc?
13417 #
13418 case "x$archive_cmds_need_lc_CXX" in
13419 x|xyes)
13420   # Assume -lc should be added
13421   archive_cmds_need_lc_CXX=yes
13422
13423   if test "$enable_shared" = yes && test "$GCC" = yes; then
13424     case $archive_cmds_CXX in
13425     *'~'*)
13426       # FIXME: we may have to deal with multi-command sequences.
13427       ;;
13428     '$CC '*)
13429       # Test whether the compiler implicitly links with -lc since on some
13430       # systems, -lgcc has to come before -lc. If gcc already passes -lc
13431       # to ld, don't add -lc before -lgcc.
13432       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13433 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13434       $rm conftest*
13435       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13436
13437       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13438   (eval $ac_compile) 2>&5
13439   ac_status=$?
13440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441   (exit $ac_status); } 2>conftest.err; then
13442         soname=conftest
13443         lib=conftest
13444         libobjs=conftest.$ac_objext
13445         deplibs=
13446         wl=$lt_prog_compiler_wl_CXX
13447         pic_flag=$lt_prog_compiler_pic_CXX
13448         compiler_flags=-v
13449         linker_flags=-v
13450         verstring=
13451         output_objdir=.
13452         libname=conftest
13453         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13454         allow_undefined_flag_CXX=
13455         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13456   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13457   ac_status=$?
13458   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13459   (exit $ac_status); }
13460         then
13461           archive_cmds_need_lc_CXX=no
13462         else
13463           archive_cmds_need_lc_CXX=yes
13464         fi
13465         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13466       else
13467         cat conftest.err 1>&5
13468       fi
13469       $rm conftest*
13470       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13471 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13472       ;;
13473     esac
13474   fi
13475   ;;
13476 esac
13477
13478 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13479 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13480 library_names_spec=
13481 libname_spec='lib$name'
13482 soname_spec=
13483 shrext_cmds=".so"
13484 postinstall_cmds=
13485 postuninstall_cmds=
13486 finish_cmds=
13487 finish_eval=
13488 shlibpath_var=
13489 shlibpath_overrides_runpath=unknown
13490 version_type=none
13491 dynamic_linker="$host_os ld.so"
13492 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13493 if test "$GCC" = yes; then
13494   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13495   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13496     # if the path contains ";" then we assume it to be the separator
13497     # otherwise default to the standard path separator (i.e. ":") - it is
13498     # assumed that no part of a normal pathname contains ";" but that should
13499     # okay in the real world where ";" in dirpaths is itself problematic.
13500     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13501   else
13502     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13503   fi
13504 else
13505   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13506 fi
13507 need_lib_prefix=unknown
13508 hardcode_into_libs=no
13509
13510 # when you set need_version to no, make sure it does not cause -set_version
13511 # flags to be left without arguments
13512 need_version=unknown
13513
13514 case $host_os in
13515 aix3*)
13516   version_type=linux
13517   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13518   shlibpath_var=LIBPATH
13519
13520   # AIX 3 has no versioning support, so we append a major version to the name.
13521   soname_spec='${libname}${release}${shared_ext}$major'
13522   ;;
13523
13524 aix4* | aix5*)
13525   version_type=linux
13526   need_lib_prefix=no
13527   need_version=no
13528   hardcode_into_libs=yes
13529   if test "$host_cpu" = ia64; then
13530     # AIX 5 supports IA64
13531     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13532     shlibpath_var=LD_LIBRARY_PATH
13533   else
13534     # With GCC up to 2.95.x, collect2 would create an import file
13535     # for dependence libraries.  The import file would start with
13536     # the line `#! .'.  This would cause the generated library to
13537     # depend on `.', always an invalid library.  This was fixed in
13538     # development snapshots of GCC prior to 3.0.
13539     case $host_os in
13540       aix4 | aix4.[01] | aix4.[01].*)
13541       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13542            echo ' yes '
13543            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13544         :
13545       else
13546         can_build_shared=no
13547       fi
13548       ;;
13549     esac
13550     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13551     # soname into executable. Probably we can add versioning support to
13552     # collect2, so additional links can be useful in future.
13553     if test "$aix_use_runtimelinking" = yes; then
13554       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13555       # instead of lib<name>.a to let people know that these are not
13556       # typical AIX shared libraries.
13557       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13558     else
13559       # We preserve .a as extension for shared libraries through AIX4.2
13560       # and later when we are not doing run time linking.
13561       library_names_spec='${libname}${release}.a $libname.a'
13562       soname_spec='${libname}${release}${shared_ext}$major'
13563     fi
13564     shlibpath_var=LIBPATH
13565   fi
13566   ;;
13567
13568 amigaos*)
13569   library_names_spec='$libname.ixlibrary $libname.a'
13570   # Create ${libname}_ixlibrary.a entries in /sys/libs.
13571   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'
13572   ;;
13573
13574 beos*)
13575   library_names_spec='${libname}${shared_ext}'
13576   dynamic_linker="$host_os ld.so"
13577   shlibpath_var=LIBRARY_PATH
13578   ;;
13579
13580 bsdi[45]*)
13581   version_type=linux
13582   need_version=no
13583   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13584   soname_spec='${libname}${release}${shared_ext}$major'
13585   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13586   shlibpath_var=LD_LIBRARY_PATH
13587   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13588   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13589   # the default ld.so.conf also contains /usr/contrib/lib and
13590   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13591   # libtool to hard-code these into programs
13592   ;;
13593
13594 cygwin* | mingw* | pw32*)
13595   version_type=windows
13596   shrext_cmds=".dll"
13597   need_version=no
13598   need_lib_prefix=no
13599
13600   case $GCC,$host_os in
13601   yes,cygwin* | yes,mingw* | yes,pw32*)
13602     library_names_spec='$libname.dll.a'
13603     # DLL is installed to $(libdir)/../bin by postinstall_cmds
13604     postinstall_cmds='base_file=`basename \${file}`~
13605       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13606       dldir=$destdir/`dirname \$dlpath`~
13607       test -d \$dldir || mkdir -p \$dldir~
13608       $install_prog $dir/$dlname \$dldir/$dlname~
13609       chmod a+x \$dldir/$dlname'
13610     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13611       dlpath=$dir/\$dldll~
13612        $rm \$dlpath'
13613     shlibpath_overrides_runpath=yes
13614
13615     case $host_os in
13616     cygwin*)
13617       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13618       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13619       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13620       ;;
13621     mingw*)
13622       # MinGW DLLs use traditional 'lib' prefix
13623       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13624       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13625       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13626         # It is most probably a Windows format PATH printed by
13627         # mingw gcc, but we are running on Cygwin. Gcc prints its search
13628         # path with ; separators, and with drive letters. We can handle the
13629         # drive letters (cygwin fileutils understands them), so leave them,
13630         # especially as we might pass files found there to a mingw objdump,
13631         # which wouldn't understand a cygwinified path. Ahh.
13632         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13633       else
13634         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
13635       fi
13636       ;;
13637     pw32*)
13638       # pw32 DLLs use 'pw' prefix rather than 'lib'
13639       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13640       ;;
13641     esac
13642     ;;
13643
13644   *)
13645     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13646     ;;
13647   esac
13648   dynamic_linker='Win32 ld.exe'
13649   # FIXME: first we should search . and the directory the executable is in
13650   shlibpath_var=PATH
13651   ;;
13652
13653 darwin* | rhapsody*)
13654   dynamic_linker="$host_os dyld"
13655   version_type=darwin
13656   need_lib_prefix=no
13657   need_version=no
13658   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13659   soname_spec='${libname}${release}${major}$shared_ext'
13660   shlibpath_overrides_runpath=yes
13661   shlibpath_var=DYLD_LIBRARY_PATH
13662   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13663   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13664   if test "$GCC" = yes; then
13665     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"`
13666   else
13667     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13668   fi
13669   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13670   ;;
13671
13672 dgux*)
13673   version_type=linux
13674   need_lib_prefix=no
13675   need_version=no
13676   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13677   soname_spec='${libname}${release}${shared_ext}$major'
13678   shlibpath_var=LD_LIBRARY_PATH
13679   ;;
13680
13681 freebsd1*)
13682   dynamic_linker=no
13683   ;;
13684
13685 kfreebsd*-gnu)
13686   version_type=linux
13687   need_lib_prefix=no
13688   need_version=no
13689   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13690   soname_spec='${libname}${release}${shared_ext}$major'
13691   shlibpath_var=LD_LIBRARY_PATH
13692   shlibpath_overrides_runpath=no
13693   hardcode_into_libs=yes
13694   dynamic_linker='GNU ld.so'
13695   ;;
13696
13697 freebsd* | dragonfly*)
13698   # DragonFly does not have aout.  When/if they implement a new
13699   # versioning mechanism, adjust this.
13700   if test -x /usr/bin/objformat; then
13701     objformat=`/usr/bin/objformat`
13702   else
13703     case $host_os in
13704     freebsd[123]*) objformat=aout ;;
13705     *) objformat=elf ;;
13706     esac
13707   fi
13708   version_type=freebsd-$objformat
13709   case $version_type in
13710     freebsd-elf*)
13711       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13712       need_version=no
13713       need_lib_prefix=no
13714       ;;
13715     freebsd-*)
13716       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13717       need_version=yes
13718       ;;
13719   esac
13720   shlibpath_var=LD_LIBRARY_PATH
13721   case $host_os in
13722   freebsd2*)
13723     shlibpath_overrides_runpath=yes
13724     ;;
13725   freebsd3.[01]* | freebsdelf3.[01]*)
13726     shlibpath_overrides_runpath=yes
13727     hardcode_into_libs=yes
13728     ;;
13729   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13730   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13731     shlibpath_overrides_runpath=no
13732     hardcode_into_libs=yes
13733     ;;
13734   freebsd*) # from 4.6 on
13735     shlibpath_overrides_runpath=yes
13736     hardcode_into_libs=yes
13737     ;;
13738   esac
13739   ;;
13740
13741 gnu*)
13742   version_type=linux
13743   need_lib_prefix=no
13744   need_version=no
13745   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13746   soname_spec='${libname}${release}${shared_ext}$major'
13747   shlibpath_var=LD_LIBRARY_PATH
13748   hardcode_into_libs=yes
13749   ;;
13750
13751 hpux9* | hpux10* | hpux11*)
13752   # Give a soname corresponding to the major version so that dld.sl refuses to
13753   # link against other versions.
13754   version_type=sunos
13755   need_lib_prefix=no
13756   need_version=no
13757   case $host_cpu in
13758   ia64*)
13759     shrext_cmds='.so'
13760     hardcode_into_libs=yes
13761     dynamic_linker="$host_os dld.so"
13762     shlibpath_var=LD_LIBRARY_PATH
13763     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13764     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13765     soname_spec='${libname}${release}${shared_ext}$major'
13766     if test "X$HPUX_IA64_MODE" = X32; then
13767       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13768     else
13769       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13770     fi
13771     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13772     ;;
13773    hppa*64*)
13774      shrext_cmds='.sl'
13775      hardcode_into_libs=yes
13776      dynamic_linker="$host_os dld.sl"
13777      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13778      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13779      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780      soname_spec='${libname}${release}${shared_ext}$major'
13781      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13782      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13783      ;;
13784    *)
13785     shrext_cmds='.sl'
13786     dynamic_linker="$host_os dld.sl"
13787     shlibpath_var=SHLIB_PATH
13788     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13789     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13790     soname_spec='${libname}${release}${shared_ext}$major'
13791     ;;
13792   esac
13793   # HP-UX runs *really* slowly unless shared libraries are mode 555.
13794   postinstall_cmds='chmod 555 $lib'
13795   ;;
13796
13797 interix3*)
13798   version_type=linux
13799   need_lib_prefix=no
13800   need_version=no
13801   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13802   soname_spec='${libname}${release}${shared_ext}$major'
13803   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13804   shlibpath_var=LD_LIBRARY_PATH
13805   shlibpath_overrides_runpath=no
13806   hardcode_into_libs=yes
13807   ;;
13808
13809 irix5* | irix6* | nonstopux*)
13810   case $host_os in
13811     nonstopux*) version_type=nonstopux ;;
13812     *)
13813         if test "$lt_cv_prog_gnu_ld" = yes; then
13814                 version_type=linux
13815         else
13816                 version_type=irix
13817         fi ;;
13818   esac
13819   need_lib_prefix=no
13820   need_version=no
13821   soname_spec='${libname}${release}${shared_ext}$major'
13822   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13823   case $host_os in
13824   irix5* | nonstopux*)
13825     libsuff= shlibsuff=
13826     ;;
13827   *)
13828     case $LD in # libtool.m4 will add one of these switches to LD
13829     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13830       libsuff= shlibsuff= libmagic=32-bit;;
13831     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13832       libsuff=32 shlibsuff=N32 libmagic=N32;;
13833     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13834       libsuff=64 shlibsuff=64 libmagic=64-bit;;
13835     *) libsuff= shlibsuff= libmagic=never-match;;
13836     esac
13837     ;;
13838   esac
13839   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13840   shlibpath_overrides_runpath=no
13841   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13842   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13843   hardcode_into_libs=yes
13844   ;;
13845
13846 # No shared lib support for Linux oldld, aout, or coff.
13847 linux*oldld* | linux*aout* | linux*coff*)
13848   dynamic_linker=no
13849   ;;
13850
13851 # This must be Linux ELF.
13852 linux*)
13853   version_type=linux
13854   need_lib_prefix=no
13855   need_version=no
13856   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13857   soname_spec='${libname}${release}${shared_ext}$major'
13858   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13859   shlibpath_var=LD_LIBRARY_PATH
13860   shlibpath_overrides_runpath=no
13861   # This implies no fast_install, which is unacceptable.
13862   # Some rework will be needed to allow for fast_install
13863   # before this can be enabled.
13864   hardcode_into_libs=yes
13865
13866   # find out which ABI we are using
13867   libsuff=
13868   case "$host_cpu" in
13869   x86_64*|s390x*|powerpc64*)
13870     echo '#line 13870 "configure"' > conftest.$ac_ext
13871     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13872   (eval $ac_compile) 2>&5
13873   ac_status=$?
13874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875   (exit $ac_status); }; then
13876       case `/usr/bin/file conftest.$ac_objext` in
13877       *64-bit*)
13878         libsuff=64
13879         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
13880         ;;
13881       esac
13882     fi
13883     rm -rf conftest*
13884     ;;
13885   esac
13886
13887   # Append ld.so.conf contents to the search path
13888   if test -f /etc/ld.so.conf; then
13889     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' ' '`
13890     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
13891   fi
13892
13893   # We used to test for /lib/ld.so.1 and disable shared libraries on
13894   # powerpc, because MkLinux only supported shared libraries with the
13895   # GNU dynamic linker.  Since this was broken with cross compilers,
13896   # most powerpc-linux boxes support dynamic linking these days and
13897   # people can always --disable-shared, the test was removed, and we
13898   # assume the GNU/Linux dynamic linker is in use.
13899   dynamic_linker='GNU/Linux ld.so'
13900   ;;
13901
13902 knetbsd*-gnu)
13903   version_type=linux
13904   need_lib_prefix=no
13905   need_version=no
13906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13907   soname_spec='${libname}${release}${shared_ext}$major'
13908   shlibpath_var=LD_LIBRARY_PATH
13909   shlibpath_overrides_runpath=no
13910   hardcode_into_libs=yes
13911   dynamic_linker='GNU ld.so'
13912   ;;
13913
13914 netbsd*)
13915   version_type=sunos
13916   need_lib_prefix=no
13917   need_version=no
13918   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13919     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13920     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13921     dynamic_linker='NetBSD (a.out) ld.so'
13922   else
13923     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13924     soname_spec='${libname}${release}${shared_ext}$major'
13925     dynamic_linker='NetBSD ld.elf_so'
13926   fi
13927   shlibpath_var=LD_LIBRARY_PATH
13928   shlibpath_overrides_runpath=yes
13929   hardcode_into_libs=yes
13930   ;;
13931
13932 newsos6)
13933   version_type=linux
13934   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13935   shlibpath_var=LD_LIBRARY_PATH
13936   shlibpath_overrides_runpath=yes
13937   ;;
13938
13939 nto-qnx*)
13940   version_type=linux
13941   need_lib_prefix=no
13942   need_version=no
13943   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13944   soname_spec='${libname}${release}${shared_ext}$major'
13945   shlibpath_var=LD_LIBRARY_PATH
13946   shlibpath_overrides_runpath=yes
13947   ;;
13948
13949 openbsd*)
13950   version_type=sunos
13951   sys_lib_dlsearch_path_spec="/usr/lib"
13952   need_lib_prefix=no
13953   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13954   case $host_os in
13955     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13956     *)                         need_version=no  ;;
13957   esac
13958   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13959   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13960   shlibpath_var=LD_LIBRARY_PATH
13961   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13962     case $host_os in
13963       openbsd2.[89] | openbsd2.[89].*)
13964         shlibpath_overrides_runpath=no
13965         ;;
13966       *)
13967         shlibpath_overrides_runpath=yes
13968         ;;
13969       esac
13970   else
13971     shlibpath_overrides_runpath=yes
13972   fi
13973   ;;
13974
13975 os2*)
13976   libname_spec='$name'
13977   shrext_cmds=".dll"
13978   need_lib_prefix=no
13979   library_names_spec='$libname${shared_ext} $libname.a'
13980   dynamic_linker='OS/2 ld.exe'
13981   shlibpath_var=LIBPATH
13982   ;;
13983
13984 osf3* | osf4* | osf5*)
13985   version_type=osf
13986   need_lib_prefix=no
13987   need_version=no
13988   soname_spec='${libname}${release}${shared_ext}$major'
13989   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13990   shlibpath_var=LD_LIBRARY_PATH
13991   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13992   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13993   ;;
13994
13995 solaris*)
13996   version_type=linux
13997   need_lib_prefix=no
13998   need_version=no
13999   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14000   soname_spec='${libname}${release}${shared_ext}$major'
14001   shlibpath_var=LD_LIBRARY_PATH
14002   shlibpath_overrides_runpath=yes
14003   hardcode_into_libs=yes
14004   # ldd complains unless libraries are executable
14005   postinstall_cmds='chmod +x $lib'
14006   ;;
14007
14008 sunos4*)
14009   version_type=sunos
14010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14011   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14012   shlibpath_var=LD_LIBRARY_PATH
14013   shlibpath_overrides_runpath=yes
14014   if test "$with_gnu_ld" = yes; then
14015     need_lib_prefix=no
14016   fi
14017   need_version=yes
14018   ;;
14019
14020 sysv4 | sysv4.3*)
14021   version_type=linux
14022   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14023   soname_spec='${libname}${release}${shared_ext}$major'
14024   shlibpath_var=LD_LIBRARY_PATH
14025   case $host_vendor in
14026     sni)
14027       shlibpath_overrides_runpath=no
14028       need_lib_prefix=no
14029       export_dynamic_flag_spec='${wl}-Blargedynsym'
14030       runpath_var=LD_RUN_PATH
14031       ;;
14032     siemens)
14033       need_lib_prefix=no
14034       ;;
14035     motorola)
14036       need_lib_prefix=no
14037       need_version=no
14038       shlibpath_overrides_runpath=no
14039       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14040       ;;
14041   esac
14042   ;;
14043
14044 sysv4*MP*)
14045   if test -d /usr/nec ;then
14046     version_type=linux
14047     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14048     soname_spec='$libname${shared_ext}.$major'
14049     shlibpath_var=LD_LIBRARY_PATH
14050   fi
14051   ;;
14052
14053 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14054   version_type=freebsd-elf
14055   need_lib_prefix=no
14056   need_version=no
14057   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14058   soname_spec='${libname}${release}${shared_ext}$major'
14059   shlibpath_var=LD_LIBRARY_PATH
14060   hardcode_into_libs=yes
14061   if test "$with_gnu_ld" = yes; then
14062     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14063     shlibpath_overrides_runpath=no
14064   else
14065     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14066     shlibpath_overrides_runpath=yes
14067     case $host_os in
14068       sco3.2v5*)
14069         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14070         ;;
14071     esac
14072   fi
14073   sys_lib_dlsearch_path_spec='/usr/lib'
14074   ;;
14075
14076 uts4*)
14077   version_type=linux
14078   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079   soname_spec='${libname}${release}${shared_ext}$major'
14080   shlibpath_var=LD_LIBRARY_PATH
14081   ;;
14082
14083 *)
14084   dynamic_linker=no
14085   ;;
14086 esac
14087 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14088 echo "${ECHO_T}$dynamic_linker" >&6
14089 test "$dynamic_linker" = no && can_build_shared=no
14090
14091 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14092 if test "$GCC" = yes; then
14093   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14094 fi
14095
14096 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14097 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14098 hardcode_action_CXX=
14099 if test -n "$hardcode_libdir_flag_spec_CXX" || \
14100    test -n "$runpath_var_CXX" || \
14101    test "X$hardcode_automatic_CXX" = "Xyes" ; then
14102
14103   # We can hardcode non-existant directories.
14104   if test "$hardcode_direct_CXX" != no &&
14105      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14106      # have to relink, otherwise we might link with an installed library
14107      # when we should be linking with a yet-to-be-installed one
14108      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14109      test "$hardcode_minus_L_CXX" != no; then
14110     # Linking always hardcodes the temporary library directory.
14111     hardcode_action_CXX=relink
14112   else
14113     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14114     hardcode_action_CXX=immediate
14115   fi
14116 else
14117   # We cannot hardcode anything, or else we can only hardcode existing
14118   # directories.
14119   hardcode_action_CXX=unsupported
14120 fi
14121 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
14122 echo "${ECHO_T}$hardcode_action_CXX" >&6
14123
14124 if test "$hardcode_action_CXX" = relink; then
14125   # Fast installation is not supported
14126   enable_fast_install=no
14127 elif test "$shlibpath_overrides_runpath" = yes ||
14128      test "$enable_shared" = no; then
14129   # Fast installation is not necessary
14130   enable_fast_install=needless
14131 fi
14132
14133
14134 # The else clause should only fire when bootstrapping the
14135 # libtool distribution, otherwise you forgot to ship ltmain.sh
14136 # with your package, and you will get complaints that there are
14137 # no rules to generate ltmain.sh.
14138 if test -f "$ltmain"; then
14139   # See if we are running on zsh, and set the options which allow our commands through
14140   # without removal of \ escapes.
14141   if test -n "${ZSH_VERSION+set}" ; then
14142     setopt NO_GLOB_SUBST
14143   fi
14144   # Now quote all the things that may contain metacharacters while being
14145   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14146   # variables and quote the copies for generation of the libtool script.
14147   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
14148     SED SHELL STRIP \
14149     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14150     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14151     deplibs_check_method reload_flag reload_cmds need_locks \
14152     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14153     lt_cv_sys_global_symbol_to_c_name_address \
14154     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14155     old_postinstall_cmds old_postuninstall_cmds \
14156     compiler_CXX \
14157     CC_CXX \
14158     LD_CXX \
14159     lt_prog_compiler_wl_CXX \
14160     lt_prog_compiler_pic_CXX \
14161     lt_prog_compiler_static_CXX \
14162     lt_prog_compiler_no_builtin_flag_CXX \
14163     export_dynamic_flag_spec_CXX \
14164     thread_safe_flag_spec_CXX \
14165     whole_archive_flag_spec_CXX \
14166     enable_shared_with_static_runtimes_CXX \
14167     old_archive_cmds_CXX \
14168     old_archive_from_new_cmds_CXX \
14169     predep_objects_CXX \
14170     postdep_objects_CXX \
14171     predeps_CXX \
14172     postdeps_CXX \
14173     compiler_lib_search_path_CXX \
14174     archive_cmds_CXX \
14175     archive_expsym_cmds_CXX \
14176     postinstall_cmds_CXX \
14177     postuninstall_cmds_CXX \
14178     old_archive_from_expsyms_cmds_CXX \
14179     allow_undefined_flag_CXX \
14180     no_undefined_flag_CXX \
14181     export_symbols_cmds_CXX \
14182     hardcode_libdir_flag_spec_CXX \
14183     hardcode_libdir_flag_spec_ld_CXX \
14184     hardcode_libdir_separator_CXX \
14185     hardcode_automatic_CXX \
14186     module_cmds_CXX \
14187     module_expsym_cmds_CXX \
14188     lt_cv_prog_compiler_c_o_CXX \
14189     exclude_expsyms_CXX \
14190     include_expsyms_CXX; do
14191
14192     case $var in
14193     old_archive_cmds_CXX | \
14194     old_archive_from_new_cmds_CXX | \
14195     archive_cmds_CXX | \
14196     archive_expsym_cmds_CXX | \
14197     module_cmds_CXX | \
14198     module_expsym_cmds_CXX | \
14199     old_archive_from_expsyms_cmds_CXX | \
14200     export_symbols_cmds_CXX | \
14201     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14202     postinstall_cmds | postuninstall_cmds | \
14203     old_postinstall_cmds | old_postuninstall_cmds | \
14204     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14205       # Double-quote double-evaled strings.
14206       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14207       ;;
14208     *)
14209       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14210       ;;
14211     esac
14212   done
14213
14214   case $lt_echo in
14215   *'\$0 --fallback-echo"')
14216     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14217     ;;
14218   esac
14219
14220 cfgfile="$ofile"
14221
14222   cat <<__EOF__ >> "$cfgfile"
14223 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14224
14225 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14226
14227 # Shell to use when invoking shell scripts.
14228 SHELL=$lt_SHELL
14229
14230 # Whether or not to build shared libraries.
14231 build_libtool_libs=$enable_shared
14232
14233 # Whether or not to build static libraries.
14234 build_old_libs=$enable_static
14235
14236 # Whether or not to add -lc for building shared libraries.
14237 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14238
14239 # Whether or not to disallow shared libs when runtime libs are static
14240 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14241
14242 # Whether or not to optimize for fast installation.
14243 fast_install=$enable_fast_install
14244
14245 # The host system.
14246 host_alias=$host_alias
14247 host=$host
14248 host_os=$host_os
14249
14250 # The build system.
14251 build_alias=$build_alias
14252 build=$build
14253 build_os=$build_os
14254
14255 # An echo program that does not interpret backslashes.
14256 echo=$lt_echo
14257
14258 # The archiver.
14259 AR=$lt_AR
14260 AR_FLAGS=$lt_AR_FLAGS
14261
14262 # A C compiler.
14263 LTCC=$lt_LTCC
14264
14265 # LTCC compiler flags.
14266 LTCFLAGS=$lt_LTCFLAGS
14267
14268 # A language-specific compiler.
14269 CC=$lt_compiler_CXX
14270
14271 # Is the compiler the GNU C compiler?
14272 with_gcc=$GCC_CXX
14273
14274 # An ERE matcher.
14275 EGREP=$lt_EGREP
14276
14277 # The linker used to build libraries.
14278 LD=$lt_LD_CXX
14279
14280 # Whether we need hard or soft links.
14281 LN_S=$lt_LN_S
14282
14283 # A BSD-compatible nm program.
14284 NM=$lt_NM
14285
14286 # A symbol stripping program
14287 STRIP=$lt_STRIP
14288
14289 # Used to examine libraries when file_magic_cmd begins "file"
14290 MAGIC_CMD=$MAGIC_CMD
14291
14292 # Used on cygwin: DLL creation program.
14293 DLLTOOL="$DLLTOOL"
14294
14295 # Used on cygwin: object dumper.
14296 OBJDUMP="$OBJDUMP"
14297
14298 # Used on cygwin: assembler.
14299 AS="$AS"
14300
14301 # The name of the directory that contains temporary libtool files.
14302 objdir=$objdir
14303
14304 # How to create reloadable object files.
14305 reload_flag=$lt_reload_flag
14306 reload_cmds=$lt_reload_cmds
14307
14308 # How to pass a linker flag through the compiler.
14309 wl=$lt_lt_prog_compiler_wl_CXX
14310
14311 # Object file suffix (normally "o").
14312 objext="$ac_objext"
14313
14314 # Old archive suffix (normally "a").
14315 libext="$libext"
14316
14317 # Shared library suffix (normally ".so").
14318 shrext_cmds='$shrext_cmds'
14319
14320 # Executable file suffix (normally "").
14321 exeext="$exeext"
14322
14323 # Additional compiler flags for building library objects.
14324 pic_flag=$lt_lt_prog_compiler_pic_CXX
14325 pic_mode=$pic_mode
14326
14327 # What is the maximum length of a command?
14328 max_cmd_len=$lt_cv_sys_max_cmd_len
14329
14330 # Does compiler simultaneously support -c and -o options?
14331 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14332
14333 # Must we lock files when doing compilation?
14334 need_locks=$lt_need_locks
14335
14336 # Do we need the lib prefix for modules?
14337 need_lib_prefix=$need_lib_prefix
14338
14339 # Do we need a version for libraries?
14340 need_version=$need_version
14341
14342 # Whether dlopen is supported.
14343 dlopen_support=$enable_dlopen
14344
14345 # Whether dlopen of programs is supported.
14346 dlopen_self=$enable_dlopen_self
14347
14348 # Whether dlopen of statically linked programs is supported.
14349 dlopen_self_static=$enable_dlopen_self_static
14350
14351 # Compiler flag to prevent dynamic linking.
14352 link_static_flag=$lt_lt_prog_compiler_static_CXX
14353
14354 # Compiler flag to turn off builtin functions.
14355 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14356
14357 # Compiler flag to allow reflexive dlopens.
14358 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14359
14360 # Compiler flag to generate shared objects directly from archives.
14361 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14362
14363 # Compiler flag to generate thread-safe objects.
14364 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14365
14366 # Library versioning type.
14367 version_type=$version_type
14368
14369 # Format of library name prefix.
14370 libname_spec=$lt_libname_spec
14371
14372 # List of archive names.  First name is the real one, the rest are links.
14373 # The last name is the one that the linker finds with -lNAME.
14374 library_names_spec=$lt_library_names_spec
14375
14376 # The coded name of the library, if different from the real name.
14377 soname_spec=$lt_soname_spec
14378
14379 # Commands used to build and install an old-style archive.
14380 RANLIB=$lt_RANLIB
14381 old_archive_cmds=$lt_old_archive_cmds_CXX
14382 old_postinstall_cmds=$lt_old_postinstall_cmds
14383 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14384
14385 # Create an old-style archive from a shared archive.
14386 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14387
14388 # Create a temporary old-style archive to link instead of a shared archive.
14389 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14390
14391 # Commands used to build and install a shared archive.
14392 archive_cmds=$lt_archive_cmds_CXX
14393 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14394 postinstall_cmds=$lt_postinstall_cmds
14395 postuninstall_cmds=$lt_postuninstall_cmds
14396
14397 # Commands used to build a loadable module (assumed same as above if empty)
14398 module_cmds=$lt_module_cmds_CXX
14399 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14400
14401 # Commands to strip libraries.
14402 old_striplib=$lt_old_striplib
14403 striplib=$lt_striplib
14404
14405 # Dependencies to place before the objects being linked to create a
14406 # shared library.
14407 predep_objects=$lt_predep_objects_CXX
14408
14409 # Dependencies to place after the objects being linked to create a
14410 # shared library.
14411 postdep_objects=$lt_postdep_objects_CXX
14412
14413 # Dependencies to place before the objects being linked to create a
14414 # shared library.
14415 predeps=$lt_predeps_CXX
14416
14417 # Dependencies to place after the objects being linked to create a
14418 # shared library.
14419 postdeps=$lt_postdeps_CXX
14420
14421 # The library search path used internally by the compiler when linking
14422 # a shared library.
14423 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14424
14425 # Method to check whether dependent libraries are shared objects.
14426 deplibs_check_method=$lt_deplibs_check_method
14427
14428 # Command to use when deplibs_check_method == file_magic.
14429 file_magic_cmd=$lt_file_magic_cmd
14430
14431 # Flag that allows shared libraries with undefined symbols to be built.
14432 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14433
14434 # Flag that forces no undefined symbols.
14435 no_undefined_flag=$lt_no_undefined_flag_CXX
14436
14437 # Commands used to finish a libtool library installation in a directory.
14438 finish_cmds=$lt_finish_cmds
14439
14440 # Same as above, but a single script fragment to be evaled but not shown.
14441 finish_eval=$lt_finish_eval
14442
14443 # Take the output of nm and produce a listing of raw symbols and C names.
14444 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14445
14446 # Transform the output of nm in a proper C declaration
14447 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14448
14449 # Transform the output of nm in a C name address pair
14450 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14451
14452 # This is the shared library runtime path variable.
14453 runpath_var=$runpath_var
14454
14455 # This is the shared library path variable.
14456 shlibpath_var=$shlibpath_var
14457
14458 # Is shlibpath searched before the hard-coded library search path?
14459 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14460
14461 # How to hardcode a shared library path into an executable.
14462 hardcode_action=$hardcode_action_CXX
14463
14464 # Whether we should hardcode library paths into libraries.
14465 hardcode_into_libs=$hardcode_into_libs
14466
14467 # Flag to hardcode \$libdir into a binary during linking.
14468 # This must work even if \$libdir does not exist.
14469 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14470
14471 # If ld is used when linking, flag to hardcode \$libdir into
14472 # a binary during linking. This must work even if \$libdir does
14473 # not exist.
14474 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14475
14476 # Whether we need a single -rpath flag with a separated argument.
14477 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14478
14479 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14480 # resulting binary.
14481 hardcode_direct=$hardcode_direct_CXX
14482
14483 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14484 # resulting binary.
14485 hardcode_minus_L=$hardcode_minus_L_CXX
14486
14487 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14488 # the resulting binary.
14489 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14490
14491 # Set to yes if building a shared library automatically hardcodes DIR into the library
14492 # and all subsequent libraries and executables linked against it.
14493 hardcode_automatic=$hardcode_automatic_CXX
14494
14495 # Variables whose values should be saved in libtool wrapper scripts and
14496 # restored at relink time.
14497 variables_saved_for_relink="$variables_saved_for_relink"
14498
14499 # Whether libtool must link a program against all its dependency libraries.
14500 link_all_deplibs=$link_all_deplibs_CXX
14501
14502 # Compile-time system search path for libraries
14503 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14504
14505 # Run-time system search path for libraries
14506 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14507
14508 # Fix the shell variable \$srcfile for the compiler.
14509 fix_srcfile_path="$fix_srcfile_path_CXX"
14510
14511 # Set to yes if exported symbols are required.
14512 always_export_symbols=$always_export_symbols_CXX
14513
14514 # The commands to list exported symbols.
14515 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14516
14517 # The commands to extract the exported symbol list from a shared archive.
14518 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14519
14520 # Symbols that should not be listed in the preloaded symbols.
14521 exclude_expsyms=$lt_exclude_expsyms_CXX
14522
14523 # Symbols that must always be exported.
14524 include_expsyms=$lt_include_expsyms_CXX
14525
14526 # ### END LIBTOOL TAG CONFIG: $tagname
14527
14528 __EOF__
14529
14530
14531 else
14532   # If there is no Makefile yet, we rely on a make rule to execute
14533   # `config.status --recheck' to rerun these tests and create the
14534   # libtool script then.
14535   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14536   if test -f "$ltmain_in"; then
14537     test -f Makefile && make "$ltmain"
14538   fi
14539 fi
14540
14541
14542 ac_ext=c
14543 ac_cpp='$CPP $CPPFLAGS'
14544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14547
14548 CC=$lt_save_CC
14549 LDCXX=$LD
14550 LD=$lt_save_LD
14551 GCC=$lt_save_GCC
14552 with_gnu_ldcxx=$with_gnu_ld
14553 with_gnu_ld=$lt_save_with_gnu_ld
14554 lt_cv_path_LDCXX=$lt_cv_path_LD
14555 lt_cv_path_LD=$lt_save_path_LD
14556 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14557 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14558
14559         else
14560           tagname=""
14561         fi
14562         ;;
14563
14564       F77)
14565         if test -n "$F77" && test "X$F77" != "Xno"; then
14566
14567 ac_ext=f
14568 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14569 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14570 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14571
14572
14573 archive_cmds_need_lc_F77=no
14574 allow_undefined_flag_F77=
14575 always_export_symbols_F77=no
14576 archive_expsym_cmds_F77=
14577 export_dynamic_flag_spec_F77=
14578 hardcode_direct_F77=no
14579 hardcode_libdir_flag_spec_F77=
14580 hardcode_libdir_flag_spec_ld_F77=
14581 hardcode_libdir_separator_F77=
14582 hardcode_minus_L_F77=no
14583 hardcode_automatic_F77=no
14584 module_cmds_F77=
14585 module_expsym_cmds_F77=
14586 link_all_deplibs_F77=unknown
14587 old_archive_cmds_F77=$old_archive_cmds
14588 no_undefined_flag_F77=
14589 whole_archive_flag_spec_F77=
14590 enable_shared_with_static_runtimes_F77=no
14591
14592 # Source file extension for f77 test sources.
14593 ac_ext=f
14594
14595 # Object file extension for compiled f77 test sources.
14596 objext=o
14597 objext_F77=$objext
14598
14599 # Code to be used in simple compile tests
14600 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
14601
14602 # Code to be used in simple link tests
14603 lt_simple_link_test_code="      program t\n      end\n"
14604
14605 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14606
14607 # If no C compiler was specified, use CC.
14608 LTCC=${LTCC-"$CC"}
14609
14610 # If no C compiler flags were specified, use CFLAGS.
14611 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14612
14613 # Allow CC to be a program name with arguments.
14614 compiler=$CC
14615
14616
14617 # save warnings/boilerplate of simple test code
14618 ac_outfile=conftest.$ac_objext
14619 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
14620 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14621 _lt_compiler_boilerplate=`cat conftest.err`
14622 $rm conftest*
14623
14624 ac_outfile=conftest.$ac_objext
14625 printf "$lt_simple_link_test_code" >conftest.$ac_ext
14626 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14627 _lt_linker_boilerplate=`cat conftest.err`
14628 $rm conftest*
14629
14630
14631 # Allow CC to be a program name with arguments.
14632 lt_save_CC="$CC"
14633 CC=${F77-"f77"}
14634 compiler=$CC
14635 compiler_F77=$CC
14636 for cc_temp in $compiler""; do
14637   case $cc_temp in
14638     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14639     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14640     \-*) ;;
14641     *) break;;
14642   esac
14643 done
14644 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14645
14646
14647 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14648 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14649 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14650 echo "${ECHO_T}$can_build_shared" >&6
14651
14652 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14653 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14654 test "$can_build_shared" = "no" && enable_shared=no
14655
14656 # On AIX, shared libraries and static libraries use the same namespace, and
14657 # are all built from PIC.
14658 case $host_os in
14659 aix3*)
14660   test "$enable_shared" = yes && enable_static=no
14661   if test -n "$RANLIB"; then
14662     archive_cmds="$archive_cmds~\$RANLIB \$lib"
14663     postinstall_cmds='$RANLIB $lib'
14664   fi
14665   ;;
14666 aix4* | aix5*)
14667   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14668     test "$enable_shared" = yes && enable_static=no
14669   fi
14670   ;;
14671 esac
14672 echo "$as_me:$LINENO: result: $enable_shared" >&5
14673 echo "${ECHO_T}$enable_shared" >&6
14674
14675 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14676 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14677 # Make sure either enable_shared or enable_static is yes.
14678 test "$enable_shared" = yes || enable_static=yes
14679 echo "$as_me:$LINENO: result: $enable_static" >&5
14680 echo "${ECHO_T}$enable_static" >&6
14681
14682 GCC_F77="$G77"
14683 LD_F77="$LD"
14684
14685 lt_prog_compiler_wl_F77=
14686 lt_prog_compiler_pic_F77=
14687 lt_prog_compiler_static_F77=
14688
14689 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14690 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
14691
14692   if test "$GCC" = yes; then
14693     lt_prog_compiler_wl_F77='-Wl,'
14694     lt_prog_compiler_static_F77='-static'
14695
14696     case $host_os in
14697       aix*)
14698       # All AIX code is PIC.
14699       if test "$host_cpu" = ia64; then
14700         # AIX 5 now supports IA64 processor
14701         lt_prog_compiler_static_F77='-Bstatic'
14702       fi
14703       ;;
14704
14705     amigaos*)
14706       # FIXME: we need at least 68020 code to build shared libraries, but
14707       # adding the `-m68020' flag to GCC prevents building anything better,
14708       # like `-m68040'.
14709       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14710       ;;
14711
14712     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14713       # PIC is the default for these OSes.
14714       ;;
14715
14716     mingw* | pw32* | os2*)
14717       # This hack is so that the source file can tell whether it is being
14718       # built for inclusion in a dll (and should export symbols for example).
14719       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14720       ;;
14721
14722     darwin* | rhapsody*)
14723       # PIC is the default on this platform
14724       # Common symbols not allowed in MH_DYLIB files
14725       lt_prog_compiler_pic_F77='-fno-common'
14726       ;;
14727
14728     interix3*)
14729       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14730       # Instead, we relocate shared libraries at runtime.
14731       ;;
14732
14733     msdosdjgpp*)
14734       # Just because we use GCC doesn't mean we suddenly get shared libraries
14735       # on systems that don't support them.
14736       lt_prog_compiler_can_build_shared_F77=no
14737       enable_shared=no
14738       ;;
14739
14740     sysv4*MP*)
14741       if test -d /usr/nec; then
14742         lt_prog_compiler_pic_F77=-Kconform_pic
14743       fi
14744       ;;
14745
14746     hpux*)
14747       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14748       # not for PA HP-UX.
14749       case $host_cpu in
14750       hppa*64*|ia64*)
14751         # +Z the default
14752         ;;
14753       *)
14754         lt_prog_compiler_pic_F77='-fPIC'
14755         ;;
14756       esac
14757       ;;
14758
14759     *)
14760       lt_prog_compiler_pic_F77='-fPIC'
14761       ;;
14762     esac
14763   else
14764     # PORTME Check for flag to pass linker flags through the system compiler.
14765     case $host_os in
14766     aix*)
14767       lt_prog_compiler_wl_F77='-Wl,'
14768       if test "$host_cpu" = ia64; then
14769         # AIX 5 now supports IA64 processor
14770         lt_prog_compiler_static_F77='-Bstatic'
14771       else
14772         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14773       fi
14774       ;;
14775       darwin*)
14776         # PIC is the default on this platform
14777         # Common symbols not allowed in MH_DYLIB files
14778        case $cc_basename in
14779          xlc*)
14780          lt_prog_compiler_pic_F77='-qnocommon'
14781          lt_prog_compiler_wl_F77='-Wl,'
14782          ;;
14783        esac
14784        ;;
14785
14786     mingw* | pw32* | os2*)
14787       # This hack is so that the source file can tell whether it is being
14788       # built for inclusion in a dll (and should export symbols for example).
14789       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14790       ;;
14791
14792     hpux9* | hpux10* | hpux11*)
14793       lt_prog_compiler_wl_F77='-Wl,'
14794       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14795       # not for PA HP-UX.
14796       case $host_cpu in
14797       hppa*64*|ia64*)
14798         # +Z the default
14799         ;;
14800       *)
14801         lt_prog_compiler_pic_F77='+Z'
14802         ;;
14803       esac
14804       # Is there a better lt_prog_compiler_static that works with the bundled CC?
14805       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14806       ;;
14807
14808     irix5* | irix6* | nonstopux*)
14809       lt_prog_compiler_wl_F77='-Wl,'
14810       # PIC (with -KPIC) is the default.
14811       lt_prog_compiler_static_F77='-non_shared'
14812       ;;
14813
14814     newsos6)
14815       lt_prog_compiler_pic_F77='-KPIC'
14816       lt_prog_compiler_static_F77='-Bstatic'
14817       ;;
14818
14819     linux*)
14820       case $cc_basename in
14821       icc* | ecc*)
14822         lt_prog_compiler_wl_F77='-Wl,'
14823         lt_prog_compiler_pic_F77='-KPIC'
14824         lt_prog_compiler_static_F77='-static'
14825         ;;
14826       pgcc* | pgf77* | pgf90* | pgf95*)
14827         # Portland Group compilers (*not* the Pentium gcc compiler,
14828         # which looks to be a dead project)
14829         lt_prog_compiler_wl_F77='-Wl,'
14830         lt_prog_compiler_pic_F77='-fpic'
14831         lt_prog_compiler_static_F77='-Bstatic'
14832         ;;
14833       ccc*)
14834         lt_prog_compiler_wl_F77='-Wl,'
14835         # All Alpha code is PIC.
14836         lt_prog_compiler_static_F77='-non_shared'
14837         ;;
14838       esac
14839       ;;
14840
14841     osf3* | osf4* | osf5*)
14842       lt_prog_compiler_wl_F77='-Wl,'
14843       # All OSF/1 code is PIC.
14844       lt_prog_compiler_static_F77='-non_shared'
14845       ;;
14846
14847     solaris*)
14848       lt_prog_compiler_pic_F77='-KPIC'
14849       lt_prog_compiler_static_F77='-Bstatic'
14850       case $cc_basename in
14851       f77* | f90* | f95*)
14852         lt_prog_compiler_wl_F77='-Qoption ld ';;
14853       *)
14854         lt_prog_compiler_wl_F77='-Wl,';;
14855       esac
14856       ;;
14857
14858     sunos4*)
14859       lt_prog_compiler_wl_F77='-Qoption ld '
14860       lt_prog_compiler_pic_F77='-PIC'
14861       lt_prog_compiler_static_F77='-Bstatic'
14862       ;;
14863
14864     sysv4 | sysv4.2uw2* | sysv4.3*)
14865       lt_prog_compiler_wl_F77='-Wl,'
14866       lt_prog_compiler_pic_F77='-KPIC'
14867       lt_prog_compiler_static_F77='-Bstatic'
14868       ;;
14869
14870     sysv4*MP*)
14871       if test -d /usr/nec ;then
14872         lt_prog_compiler_pic_F77='-Kconform_pic'
14873         lt_prog_compiler_static_F77='-Bstatic'
14874       fi
14875       ;;
14876
14877     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14878       lt_prog_compiler_wl_F77='-Wl,'
14879       lt_prog_compiler_pic_F77='-KPIC'
14880       lt_prog_compiler_static_F77='-Bstatic'
14881       ;;
14882
14883     unicos*)
14884       lt_prog_compiler_wl_F77='-Wl,'
14885       lt_prog_compiler_can_build_shared_F77=no
14886       ;;
14887
14888     uts4*)
14889       lt_prog_compiler_pic_F77='-pic'
14890       lt_prog_compiler_static_F77='-Bstatic'
14891       ;;
14892
14893     *)
14894       lt_prog_compiler_can_build_shared_F77=no
14895       ;;
14896     esac
14897   fi
14898
14899 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14900 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
14901
14902 #
14903 # Check to make sure the PIC flag actually works.
14904 #
14905 if test -n "$lt_prog_compiler_pic_F77"; then
14906
14907 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14908 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
14909 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
14910   echo $ECHO_N "(cached) $ECHO_C" >&6
14911 else
14912   lt_prog_compiler_pic_works_F77=no
14913   ac_outfile=conftest.$ac_objext
14914    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14915    lt_compiler_flag="$lt_prog_compiler_pic_F77"
14916    # Insert the option either (1) after the last *FLAGS variable, or
14917    # (2) before a word containing "conftest.", or (3) at the end.
14918    # Note that $ac_compile itself does not contain backslashes and begins
14919    # with a dollar sign (not a hyphen), so the echo should work correctly.
14920    # The option is referenced via a variable to avoid confusing sed.
14921    lt_compile=`echo "$ac_compile" | $SED \
14922    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14923    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14924    -e 's:$: $lt_compiler_flag:'`
14925    (eval echo "\"\$as_me:14925: $lt_compile\"" >&5)
14926    (eval "$lt_compile" 2>conftest.err)
14927    ac_status=$?
14928    cat conftest.err >&5
14929    echo "$as_me:14929: \$? = $ac_status" >&5
14930    if (exit $ac_status) && test -s "$ac_outfile"; then
14931      # The compiler can only warn and ignore the option if not recognized
14932      # So say no if there are warnings other than the usual output.
14933      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14934      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14935      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14936        lt_prog_compiler_pic_works_F77=yes
14937      fi
14938    fi
14939    $rm conftest*
14940
14941 fi
14942 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
14943 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
14944
14945 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14946     case $lt_prog_compiler_pic_F77 in
14947      "" | " "*) ;;
14948      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14949      esac
14950 else
14951     lt_prog_compiler_pic_F77=
14952      lt_prog_compiler_can_build_shared_F77=no
14953 fi
14954
14955 fi
14956 case $host_os in
14957   # For platforms which do not support PIC, -DPIC is meaningless:
14958   *djgpp*)
14959     lt_prog_compiler_pic_F77=
14960     ;;
14961   *)
14962     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14963     ;;
14964 esac
14965
14966 #
14967 # Check to make sure the static flag actually works.
14968 #
14969 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14970 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14971 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
14972 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
14973   echo $ECHO_N "(cached) $ECHO_C" >&6
14974 else
14975   lt_prog_compiler_static_works_F77=no
14976    save_LDFLAGS="$LDFLAGS"
14977    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14978    printf "$lt_simple_link_test_code" > conftest.$ac_ext
14979    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14980      # The linker can only warn and ignore the option if not recognized
14981      # So say no if there are warnings
14982      if test -s conftest.err; then
14983        # Append any errors to the config.log.
14984        cat conftest.err 1>&5
14985        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14986        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14987        if diff conftest.exp conftest.er2 >/dev/null; then
14988          lt_prog_compiler_static_works_F77=yes
14989        fi
14990      else
14991        lt_prog_compiler_static_works_F77=yes
14992      fi
14993    fi
14994    $rm conftest*
14995    LDFLAGS="$save_LDFLAGS"
14996
14997 fi
14998 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
14999 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
15000
15001 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
15002     :
15003 else
15004     lt_prog_compiler_static_F77=
15005 fi
15006
15007
15008 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15009 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15010 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15011   echo $ECHO_N "(cached) $ECHO_C" >&6
15012 else
15013   lt_cv_prog_compiler_c_o_F77=no
15014    $rm -r conftest 2>/dev/null
15015    mkdir conftest
15016    cd conftest
15017    mkdir out
15018    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15019
15020    lt_compiler_flag="-o out/conftest2.$ac_objext"
15021    # Insert the option either (1) after the last *FLAGS variable, or
15022    # (2) before a word containing "conftest.", or (3) at the end.
15023    # Note that $ac_compile itself does not contain backslashes and begins
15024    # with a dollar sign (not a hyphen), so the echo should work correctly.
15025    lt_compile=`echo "$ac_compile" | $SED \
15026    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15027    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15028    -e 's:$: $lt_compiler_flag:'`
15029    (eval echo "\"\$as_me:15029: $lt_compile\"" >&5)
15030    (eval "$lt_compile" 2>out/conftest.err)
15031    ac_status=$?
15032    cat out/conftest.err >&5
15033    echo "$as_me:15033: \$? = $ac_status" >&5
15034    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15035    then
15036      # The compiler can only warn and ignore the option if not recognized
15037      # So say no if there are warnings
15038      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15039      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15040      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15041        lt_cv_prog_compiler_c_o_F77=yes
15042      fi
15043    fi
15044    chmod u+w . 2>&5
15045    $rm conftest*
15046    # SGI C++ compiler will create directory out/ii_files/ for
15047    # template instantiation
15048    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15049    $rm out/* && rmdir out
15050    cd ..
15051    rmdir conftest
15052    $rm conftest*
15053
15054 fi
15055 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15056 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15057
15058
15059 hard_links="nottested"
15060 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15061   # do not overwrite the value of need_locks provided by the user
15062   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15063 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15064   hard_links=yes
15065   $rm conftest*
15066   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15067   touch conftest.a
15068   ln conftest.a conftest.b 2>&5 || hard_links=no
15069   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15070   echo "$as_me:$LINENO: result: $hard_links" >&5
15071 echo "${ECHO_T}$hard_links" >&6
15072   if test "$hard_links" = no; then
15073     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15074 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15075     need_locks=warn
15076   fi
15077 else
15078   need_locks=no
15079 fi
15080
15081 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15082 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15083
15084   runpath_var=
15085   allow_undefined_flag_F77=
15086   enable_shared_with_static_runtimes_F77=no
15087   archive_cmds_F77=
15088   archive_expsym_cmds_F77=
15089   old_archive_From_new_cmds_F77=
15090   old_archive_from_expsyms_cmds_F77=
15091   export_dynamic_flag_spec_F77=
15092   whole_archive_flag_spec_F77=
15093   thread_safe_flag_spec_F77=
15094   hardcode_libdir_flag_spec_F77=
15095   hardcode_libdir_flag_spec_ld_F77=
15096   hardcode_libdir_separator_F77=
15097   hardcode_direct_F77=no
15098   hardcode_minus_L_F77=no
15099   hardcode_shlibpath_var_F77=unsupported
15100   link_all_deplibs_F77=unknown
15101   hardcode_automatic_F77=no
15102   module_cmds_F77=
15103   module_expsym_cmds_F77=
15104   always_export_symbols_F77=no
15105   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15106   # include_expsyms should be a list of space-separated symbols to be *always*
15107   # included in the symbol list
15108   include_expsyms_F77=
15109   # exclude_expsyms can be an extended regexp of symbols to exclude
15110   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15111   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15112   # as well as any symbol that contains `d'.
15113   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15114   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15115   # platforms (ab)use it in PIC code, but their linkers get confused if
15116   # the symbol is explicitly referenced.  Since portable code cannot
15117   # rely on this symbol name, it's probably fine to never include it in
15118   # preloaded symbol tables.
15119   extract_expsyms_cmds=
15120   # Just being paranoid about ensuring that cc_basename is set.
15121   for cc_temp in $compiler""; do
15122   case $cc_temp in
15123     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15124     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15125     \-*) ;;
15126     *) break;;
15127   esac
15128 done
15129 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15130
15131   case $host_os in
15132   cygwin* | mingw* | pw32*)
15133     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15134     # When not using gcc, we currently assume that we are using
15135     # Microsoft Visual C++.
15136     if test "$GCC" != yes; then
15137       with_gnu_ld=no
15138     fi
15139     ;;
15140   interix*)
15141     # we just hope/assume this is gcc and not c89 (= MSVC++)
15142     with_gnu_ld=yes
15143     ;;
15144   openbsd*)
15145     with_gnu_ld=no
15146     ;;
15147   esac
15148
15149   ld_shlibs_F77=yes
15150   if test "$with_gnu_ld" = yes; then
15151     # If archive_cmds runs LD, not CC, wlarc should be empty
15152     wlarc='${wl}'
15153
15154     # Set some defaults for GNU ld with shared library support. These
15155     # are reset later if shared libraries are not supported. Putting them
15156     # here allows them to be overridden if necessary.
15157     runpath_var=LD_RUN_PATH
15158     hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15159     export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15160     # ancient GNU ld didn't support --whole-archive et. al.
15161     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15162         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15163       else
15164         whole_archive_flag_spec_F77=
15165     fi
15166     supports_anon_versioning=no
15167     case `$LD -v 2>/dev/null` in
15168       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15169       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15170       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15171       *\ 2.11.*) ;; # other 2.11 versions
15172       *) supports_anon_versioning=yes ;;
15173     esac
15174
15175     # See if GNU ld supports shared libraries.
15176     case $host_os in
15177     aix3* | aix4* | aix5*)
15178       # On AIX/PPC, the GNU linker is very broken
15179       if test "$host_cpu" != ia64; then
15180         ld_shlibs_F77=no
15181         cat <<EOF 1>&2
15182
15183 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15184 *** to be unable to reliably create shared libraries on AIX.
15185 *** Therefore, libtool is disabling shared libraries support.  If you
15186 *** really care for shared libraries, you may want to modify your PATH
15187 *** so that a non-GNU linker is found, and then restart.
15188
15189 EOF
15190       fi
15191       ;;
15192
15193     amigaos*)
15194       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)'
15195       hardcode_libdir_flag_spec_F77='-L$libdir'
15196       hardcode_minus_L_F77=yes
15197
15198       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15199       # that the semantics of dynamic libraries on AmigaOS, at least up
15200       # to version 4, is to share data among multiple programs linked
15201       # with the same dynamic library.  Since this doesn't match the
15202       # behavior of shared libraries on other platforms, we can't use
15203       # them.
15204       ld_shlibs_F77=no
15205       ;;
15206
15207     beos*)
15208       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15209         allow_undefined_flag_F77=unsupported
15210         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15211         # support --undefined.  This deserves some investigation.  FIXME
15212         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15213       else
15214         ld_shlibs_F77=no
15215       fi
15216       ;;
15217
15218     cygwin* | mingw* | pw32*)
15219       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15220       # as there is no search path for DLLs.
15221       hardcode_libdir_flag_spec_F77='-L$libdir'
15222       allow_undefined_flag_F77=unsupported
15223       always_export_symbols_F77=no
15224       enable_shared_with_static_runtimes_F77=yes
15225       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15226
15227       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15228         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15229         # If the export-symbols file already is a .def file (1st line
15230         # is EXPORTS), use it as is; otherwise, prepend...
15231         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15232           cp $export_symbols $output_objdir/$soname.def;
15233         else
15234           echo EXPORTS > $output_objdir/$soname.def;
15235           cat $export_symbols >> $output_objdir/$soname.def;
15236         fi~
15237         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15238       else
15239         ld_shlibs_F77=no
15240       fi
15241       ;;
15242
15243     interix3*)
15244       hardcode_direct_F77=no
15245       hardcode_shlibpath_var_F77=no
15246       hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15247       export_dynamic_flag_spec_F77='${wl}-E'
15248       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15249       # Instead, shared libraries are loaded at an image base (0x10000000 by
15250       # default) and relocated if they conflict, which is a slow very memory
15251       # consuming and fragmenting process.  To avoid this, we pick a random,
15252       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15253       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
15254       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'
15255       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'
15256       ;;
15257
15258     linux*)
15259       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15260         tmp_addflag=
15261         case $cc_basename,$host_cpu in
15262         pgcc*)                          # Portland Group C compiler
15263           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'
15264           tmp_addflag=' $pic_flag'
15265           ;;
15266         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
15267           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'
15268           tmp_addflag=' $pic_flag -Mnomain' ;;
15269         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
15270           tmp_addflag=' -i_dynamic' ;;
15271         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
15272           tmp_addflag=' -i_dynamic -nofor_main' ;;
15273         ifc* | ifort*)                  # Intel Fortran compiler
15274           tmp_addflag=' -nofor_main' ;;
15275         esac
15276         archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15277
15278         if test $supports_anon_versioning = yes; then
15279           archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15280   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15281   $echo "local: *; };" >> $output_objdir/$libname.ver~
15282           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15283         fi
15284       else
15285         ld_shlibs_F77=no
15286       fi
15287       ;;
15288
15289     netbsd*)
15290       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15291         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15292         wlarc=
15293       else
15294         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15295         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15296       fi
15297       ;;
15298
15299     solaris*)
15300       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15301         ld_shlibs_F77=no
15302         cat <<EOF 1>&2
15303
15304 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15305 *** create shared libraries on Solaris systems.  Therefore, libtool
15306 *** is disabling shared libraries support.  We urge you to upgrade GNU
15307 *** binutils to release 2.9.1 or newer.  Another option is to modify
15308 *** your PATH or compiler configuration so that the native linker is
15309 *** used, and then restart.
15310
15311 EOF
15312       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15313         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15314         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15315       else
15316         ld_shlibs_F77=no
15317       fi
15318       ;;
15319
15320     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
15321       case `$LD -v 2>&1` in
15322         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
15323         ld_shlibs_F77=no
15324         cat <<_LT_EOF 1>&2
15325
15326 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
15327 *** reliably create shared libraries on SCO systems.  Therefore, libtool
15328 *** is disabling shared libraries support.  We urge you to upgrade GNU
15329 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
15330 *** your PATH or compiler configuration so that the native linker is
15331 *** used, and then restart.
15332
15333 _LT_EOF
15334         ;;
15335         *)
15336           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15337             hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15338             archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15339             archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15340           else
15341             ld_shlibs_F77=no
15342           fi
15343         ;;
15344       esac
15345       ;;
15346
15347     sunos4*)
15348       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15349       wlarc=
15350       hardcode_direct_F77=yes
15351       hardcode_shlibpath_var_F77=no
15352       ;;
15353
15354     *)
15355       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15356         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15357         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15358       else
15359         ld_shlibs_F77=no
15360       fi
15361       ;;
15362     esac
15363
15364     if test "$ld_shlibs_F77" = no; then
15365       runpath_var=
15366       hardcode_libdir_flag_spec_F77=
15367       export_dynamic_flag_spec_F77=
15368       whole_archive_flag_spec_F77=
15369     fi
15370   else
15371     # PORTME fill in a description of your system's linker (not GNU ld)
15372     case $host_os in
15373     aix3*)
15374       allow_undefined_flag_F77=unsupported
15375       always_export_symbols_F77=yes
15376       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'
15377       # Note: this linker hardcodes the directories in LIBPATH if there
15378       # are no directories specified by -L.
15379       hardcode_minus_L_F77=yes
15380       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15381         # Neither direct hardcoding nor static linking is supported with a
15382         # broken collect2.
15383         hardcode_direct_F77=unsupported
15384       fi
15385       ;;
15386
15387     aix4* | aix5*)
15388       if test "$host_cpu" = ia64; then
15389         # On IA64, the linker does run time linking by default, so we don't
15390         # have to do anything special.
15391         aix_use_runtimelinking=no
15392         exp_sym_flag='-Bexport'
15393         no_entry_flag=""
15394       else
15395         # If we're using GNU nm, then we don't want the "-C" option.
15396         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15397         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15398           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'
15399         else
15400           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'
15401         fi
15402         aix_use_runtimelinking=no
15403
15404         # Test if we are trying to use run time linking or normal
15405         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15406         # need to do runtime linking.
15407         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15408           for ld_flag in $LDFLAGS; do
15409           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15410             aix_use_runtimelinking=yes
15411             break
15412           fi
15413           done
15414           ;;
15415         esac
15416
15417         exp_sym_flag='-bexport'
15418         no_entry_flag='-bnoentry'
15419       fi
15420
15421       # When large executables or shared objects are built, AIX ld can
15422       # have problems creating the table of contents.  If linking a library
15423       # or program results in "error TOC overflow" add -mminimal-toc to
15424       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15425       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15426
15427       archive_cmds_F77=''
15428       hardcode_direct_F77=yes
15429       hardcode_libdir_separator_F77=':'
15430       link_all_deplibs_F77=yes
15431
15432       if test "$GCC" = yes; then
15433         case $host_os in aix4.[012]|aix4.[012].*)
15434         # We only want to do this on AIX 4.2 and lower, the check
15435         # below for broken collect2 doesn't work under 4.3+
15436           collect2name=`${CC} -print-prog-name=collect2`
15437           if test -f "$collect2name" && \
15438            strings "$collect2name" | grep resolve_lib_name >/dev/null
15439           then
15440           # We have reworked collect2
15441           hardcode_direct_F77=yes
15442           else
15443           # We have old collect2
15444           hardcode_direct_F77=unsupported
15445           # It fails to find uninstalled libraries when the uninstalled
15446           # path is not listed in the libpath.  Setting hardcode_minus_L
15447           # to unsupported forces relinking
15448           hardcode_minus_L_F77=yes
15449           hardcode_libdir_flag_spec_F77='-L$libdir'
15450           hardcode_libdir_separator_F77=
15451           fi
15452           ;;
15453         esac
15454         shared_flag='-shared'
15455         if test "$aix_use_runtimelinking" = yes; then
15456           shared_flag="$shared_flag "'${wl}-G'
15457         fi
15458       else
15459         # not using gcc
15460         if test "$host_cpu" = ia64; then
15461         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15462         # chokes on -Wl,-G. The following line is correct:
15463           shared_flag='-G'
15464         else
15465           if test "$aix_use_runtimelinking" = yes; then
15466             shared_flag='${wl}-G'
15467           else
15468             shared_flag='${wl}-bM:SRE'
15469           fi
15470         fi
15471       fi
15472
15473       # It seems that -bexpall does not export symbols beginning with
15474       # underscore (_), so it is better to generate a list of symbols to export.
15475       always_export_symbols_F77=yes
15476       if test "$aix_use_runtimelinking" = yes; then
15477         # Warning - without using the other runtime loading flags (-brtl),
15478         # -berok will link without error, but may produce a broken library.
15479         allow_undefined_flag_F77='-berok'
15480        # Determine the default libpath from the value encoded in an empty executable.
15481        cat >conftest.$ac_ext <<_ACEOF
15482       program main
15483
15484       end
15485 _ACEOF
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15488   (eval $ac_link) 2>conftest.er1
15489   ac_status=$?
15490   grep -v '^ *+' conftest.er1 >conftest.err
15491   rm -f conftest.er1
15492   cat conftest.err >&5
15493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494   (exit $ac_status); } &&
15495          { ac_try='test -z "$ac_f77_werror_flag"
15496                          || test ! -s conftest.err'
15497   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15498   (eval $ac_try) 2>&5
15499   ac_status=$?
15500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15501   (exit $ac_status); }; } &&
15502          { ac_try='test -s conftest$ac_exeext'
15503   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15504   (eval $ac_try) 2>&5
15505   ac_status=$?
15506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15507   (exit $ac_status); }; }; then
15508
15509 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15510 }'`
15511 # Check for a 64-bit object if we didn't find anything.
15512 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; }
15513 }'`; fi
15514 else
15515   echo "$as_me: failed program was:" >&5
15516 sed 's/^/| /' conftest.$ac_ext >&5
15517
15518 fi
15519 rm -f conftest.err conftest.$ac_objext \
15520       conftest$ac_exeext conftest.$ac_ext
15521 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15522
15523        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15524         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"
15525        else
15526         if test "$host_cpu" = ia64; then
15527           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15528           allow_undefined_flag_F77="-z nodefs"
15529           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"
15530         else
15531          # Determine the default libpath from the value encoded in an empty executable.
15532          cat >conftest.$ac_ext <<_ACEOF
15533       program main
15534
15535       end
15536 _ACEOF
15537 rm -f conftest.$ac_objext conftest$ac_exeext
15538 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15539   (eval $ac_link) 2>conftest.er1
15540   ac_status=$?
15541   grep -v '^ *+' conftest.er1 >conftest.err
15542   rm -f conftest.er1
15543   cat conftest.err >&5
15544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545   (exit $ac_status); } &&
15546          { ac_try='test -z "$ac_f77_werror_flag"
15547                          || test ! -s conftest.err'
15548   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15549   (eval $ac_try) 2>&5
15550   ac_status=$?
15551   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15552   (exit $ac_status); }; } &&
15553          { ac_try='test -s conftest$ac_exeext'
15554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15555   (eval $ac_try) 2>&5
15556   ac_status=$?
15557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558   (exit $ac_status); }; }; then
15559
15560 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15561 }'`
15562 # Check for a 64-bit object if we didn't find anything.
15563 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; }
15564 }'`; fi
15565 else
15566   echo "$as_me: failed program was:" >&5
15567 sed 's/^/| /' conftest.$ac_ext >&5
15568
15569 fi
15570 rm -f conftest.err conftest.$ac_objext \
15571       conftest$ac_exeext conftest.$ac_ext
15572 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15573
15574          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15575           # Warning - without using the other run time loading flags,
15576           # -berok will link without error, but may produce a broken library.
15577           no_undefined_flag_F77=' ${wl}-bernotok'
15578           allow_undefined_flag_F77=' ${wl}-berok'
15579           # Exported symbols can be pulled into shared objects from archives
15580           whole_archive_flag_spec_F77='$convenience'
15581           archive_cmds_need_lc_F77=yes
15582           # This is similar to how AIX traditionally builds its shared libraries.
15583           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'
15584         fi
15585       fi
15586       ;;
15587
15588     amigaos*)
15589       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)'
15590       hardcode_libdir_flag_spec_F77='-L$libdir'
15591       hardcode_minus_L_F77=yes
15592       # see comment about different semantics on the GNU ld section
15593       ld_shlibs_F77=no
15594       ;;
15595
15596     bsdi[45]*)
15597       export_dynamic_flag_spec_F77=-rdynamic
15598       ;;
15599
15600     cygwin* | mingw* | pw32*)
15601       # When not using gcc, we currently assume that we are using
15602       # Microsoft Visual C++.
15603       # hardcode_libdir_flag_spec is actually meaningless, as there is
15604       # no search path for DLLs.
15605       hardcode_libdir_flag_spec_F77=' '
15606       allow_undefined_flag_F77=unsupported
15607       # Tell ltmain to make .lib files, not .a files.
15608       libext=lib
15609       # Tell ltmain to make .dll files, not .so files.
15610       shrext_cmds=".dll"
15611       # FIXME: Setting linknames here is a bad hack.
15612       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15613       # The linker will automatically build a .lib file if we build a DLL.
15614       old_archive_From_new_cmds_F77='true'
15615       # FIXME: Should let the user specify the lib program.
15616       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15617       fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15618       enable_shared_with_static_runtimes_F77=yes
15619       ;;
15620
15621     darwin* | rhapsody*)
15622       case $host_os in
15623         rhapsody* | darwin1.[012])
15624          allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15625          ;;
15626        *) # Darwin 1.3 on
15627          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15628            allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15629          else
15630            case ${MACOSX_DEPLOYMENT_TARGET} in
15631              10.[012])
15632                allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15633                ;;
15634              10.*)
15635                allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15636                ;;
15637            esac
15638          fi
15639          ;;
15640       esac
15641       archive_cmds_need_lc_F77=no
15642       hardcode_direct_F77=no
15643       hardcode_automatic_F77=yes
15644       hardcode_shlibpath_var_F77=unsupported
15645       whole_archive_flag_spec_F77=''
15646       link_all_deplibs_F77=yes
15647     if test "$GCC" = yes ; then
15648         output_verbose_link_cmd='echo'
15649         archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15650       module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15651       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15652       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}'
15653       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}'
15654     else
15655       case $cc_basename in
15656         xlc*)
15657          output_verbose_link_cmd='echo'
15658          archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
15659          module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15660           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15661          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}'
15662           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}'
15663           ;;
15664        *)
15665          ld_shlibs_F77=no
15666           ;;
15667       esac
15668     fi
15669       ;;
15670
15671     dgux*)
15672       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673       hardcode_libdir_flag_spec_F77='-L$libdir'
15674       hardcode_shlibpath_var_F77=no
15675       ;;
15676
15677     freebsd1*)
15678       ld_shlibs_F77=no
15679       ;;
15680
15681     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15682     # support.  Future versions do this automatically, but an explicit c++rt0.o
15683     # does not break anything, and helps significantly (at the cost of a little
15684     # extra space).
15685     freebsd2.2*)
15686       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15687       hardcode_libdir_flag_spec_F77='-R$libdir'
15688       hardcode_direct_F77=yes
15689       hardcode_shlibpath_var_F77=no
15690       ;;
15691
15692     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15693     freebsd2*)
15694       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15695       hardcode_direct_F77=yes
15696       hardcode_minus_L_F77=yes
15697       hardcode_shlibpath_var_F77=no
15698       ;;
15699
15700     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15701     freebsd* | kfreebsd*-gnu | dragonfly*)
15702       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15703       hardcode_libdir_flag_spec_F77='-R$libdir'
15704       hardcode_direct_F77=yes
15705       hardcode_shlibpath_var_F77=no
15706       ;;
15707
15708     hpux9*)
15709       if test "$GCC" = yes; then
15710         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'
15711       else
15712         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'
15713       fi
15714       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15715       hardcode_libdir_separator_F77=:
15716       hardcode_direct_F77=yes
15717
15718       # hardcode_minus_L: Not really in the search PATH,
15719       # but as the default location of the library.
15720       hardcode_minus_L_F77=yes
15721       export_dynamic_flag_spec_F77='${wl}-E'
15722       ;;
15723
15724     hpux10*)
15725       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15726         archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15727       else
15728         archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15729       fi
15730       if test "$with_gnu_ld" = no; then
15731         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15732         hardcode_libdir_separator_F77=:
15733
15734         hardcode_direct_F77=yes
15735         export_dynamic_flag_spec_F77='${wl}-E'
15736
15737         # hardcode_minus_L: Not really in the search PATH,
15738         # but as the default location of the library.
15739         hardcode_minus_L_F77=yes
15740       fi
15741       ;;
15742
15743     hpux11*)
15744       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15745         case $host_cpu in
15746         hppa*64*)
15747           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15748           ;;
15749         ia64*)
15750           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15751           ;;
15752         *)
15753           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15754           ;;
15755         esac
15756       else
15757         case $host_cpu in
15758         hppa*64*)
15759           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15760           ;;
15761         ia64*)
15762           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15763           ;;
15764         *)
15765           archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15766           ;;
15767         esac
15768       fi
15769       if test "$with_gnu_ld" = no; then
15770         hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15771         hardcode_libdir_separator_F77=:
15772
15773         case $host_cpu in
15774         hppa*64*|ia64*)
15775           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15776           hardcode_direct_F77=no
15777           hardcode_shlibpath_var_F77=no
15778           ;;
15779         *)
15780           hardcode_direct_F77=yes
15781           export_dynamic_flag_spec_F77='${wl}-E'
15782
15783           # hardcode_minus_L: Not really in the search PATH,
15784           # but as the default location of the library.
15785           hardcode_minus_L_F77=yes
15786           ;;
15787         esac
15788       fi
15789       ;;
15790
15791     irix5* | irix6* | nonstopux*)
15792       if test "$GCC" = yes; then
15793         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'
15794       else
15795         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'
15796         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15797       fi
15798       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15799       hardcode_libdir_separator_F77=:
15800       link_all_deplibs_F77=yes
15801       ;;
15802
15803     netbsd*)
15804       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15805         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
15806       else
15807         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
15808       fi
15809       hardcode_libdir_flag_spec_F77='-R$libdir'
15810       hardcode_direct_F77=yes
15811       hardcode_shlibpath_var_F77=no
15812       ;;
15813
15814     newsos6)
15815       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15816       hardcode_direct_F77=yes
15817       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15818       hardcode_libdir_separator_F77=:
15819       hardcode_shlibpath_var_F77=no
15820       ;;
15821
15822     openbsd*)
15823       hardcode_direct_F77=yes
15824       hardcode_shlibpath_var_F77=no
15825       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15826         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15827         archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15828         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15829         export_dynamic_flag_spec_F77='${wl}-E'
15830       else
15831        case $host_os in
15832          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15833            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15834            hardcode_libdir_flag_spec_F77='-R$libdir'
15835            ;;
15836          *)
15837            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15838            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15839            ;;
15840        esac
15841       fi
15842       ;;
15843
15844     os2*)
15845       hardcode_libdir_flag_spec_F77='-L$libdir'
15846       hardcode_minus_L_F77=yes
15847       allow_undefined_flag_F77=unsupported
15848       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'
15849       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15850       ;;
15851
15852     osf3*)
15853       if test "$GCC" = yes; then
15854         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15855         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'
15856       else
15857         allow_undefined_flag_F77=' -expect_unresolved \*'
15858         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'
15859       fi
15860       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15861       hardcode_libdir_separator_F77=:
15862       ;;
15863
15864     osf4* | osf5*)      # as osf3* with the addition of -msym flag
15865       if test "$GCC" = yes; then
15866         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15867         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'
15868         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15869       else
15870         allow_undefined_flag_F77=' -expect_unresolved \*'
15871         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'
15872         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~
15873         $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'
15874
15875         # Both c and cxx compiler support -rpath directly
15876         hardcode_libdir_flag_spec_F77='-rpath $libdir'
15877       fi
15878       hardcode_libdir_separator_F77=:
15879       ;;
15880
15881     solaris*)
15882       no_undefined_flag_F77=' -z text'
15883       if test "$GCC" = yes; then
15884         wlarc='${wl}'
15885         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15886         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15887           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15888       else
15889         wlarc=''
15890         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15891         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15892         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15893       fi
15894       hardcode_libdir_flag_spec_F77='-R$libdir'
15895       hardcode_shlibpath_var_F77=no
15896       case $host_os in
15897       solaris2.[0-5] | solaris2.[0-5].*) ;;
15898       *)
15899         # The compiler driver will combine linker options so we
15900         # cannot just pass the convience library names through
15901         # without $wl, iff we do not link with $LD.
15902         # Luckily, gcc supports the same syntax we need for Sun Studio.
15903         # Supported since Solaris 2.6 (maybe 2.5.1?)
15904         case $wlarc in
15905         '')
15906           whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
15907         *)
15908           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' ;;
15909         esac ;;
15910       esac
15911       link_all_deplibs_F77=yes
15912       ;;
15913
15914     sunos4*)
15915       if test "x$host_vendor" = xsequent; then
15916         # Use $CC to link under sequent, because it throws in some extra .o
15917         # files that make .init and .fini sections work.
15918         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15919       else
15920         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15921       fi
15922       hardcode_libdir_flag_spec_F77='-L$libdir'
15923       hardcode_direct_F77=yes
15924       hardcode_minus_L_F77=yes
15925       hardcode_shlibpath_var_F77=no
15926       ;;
15927
15928     sysv4)
15929       case $host_vendor in
15930         sni)
15931           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15932           hardcode_direct_F77=yes # is this really true???
15933         ;;
15934         siemens)
15935           ## LD is ld it makes a PLAMLIB
15936           ## CC just makes a GrossModule.
15937           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15938           reload_cmds_F77='$CC -r -o $output$reload_objs'
15939           hardcode_direct_F77=no
15940         ;;
15941         motorola)
15942           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15943           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15944         ;;
15945       esac
15946       runpath_var='LD_RUN_PATH'
15947       hardcode_shlibpath_var_F77=no
15948       ;;
15949
15950     sysv4.3*)
15951       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15952       hardcode_shlibpath_var_F77=no
15953       export_dynamic_flag_spec_F77='-Bexport'
15954       ;;
15955
15956     sysv4*MP*)
15957       if test -d /usr/nec; then
15958         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15959         hardcode_shlibpath_var_F77=no
15960         runpath_var=LD_RUN_PATH
15961         hardcode_runpath_var=yes
15962         ld_shlibs_F77=yes
15963       fi
15964       ;;
15965
15966     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15967       no_undefined_flag_F77='${wl}-z,text'
15968       archive_cmds_need_lc_F77=no
15969       hardcode_shlibpath_var_F77=no
15970       runpath_var='LD_RUN_PATH'
15971
15972       if test "$GCC" = yes; then
15973         archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15974         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15975       else
15976         archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15977         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15978       fi
15979       ;;
15980
15981     sysv5* | sco3.2v5* | sco5v6*)
15982       # Note: We can NOT use -z defs as we might desire, because we do not
15983       # link with -lc, and that would cause any symbols used from libc to
15984       # always be unresolved, which means just about no library would
15985       # ever link correctly.  If we're not using GNU ld we use -z text
15986       # though, which does catch some bad symbols but isn't as heavy-handed
15987       # as -z defs.
15988       no_undefined_flag_F77='${wl}-z,text'
15989       allow_undefined_flag_F77='${wl}-z,nodefs'
15990       archive_cmds_need_lc_F77=no
15991       hardcode_shlibpath_var_F77=no
15992       hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15993       hardcode_libdir_separator_F77=':'
15994       link_all_deplibs_F77=yes
15995       export_dynamic_flag_spec_F77='${wl}-Bexport'
15996       runpath_var='LD_RUN_PATH'
15997
15998       if test "$GCC" = yes; then
15999         archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16000         archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16001       else
16002         archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16003         archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16004       fi
16005       ;;
16006
16007     uts4*)
16008       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16009       hardcode_libdir_flag_spec_F77='-L$libdir'
16010       hardcode_shlibpath_var_F77=no
16011       ;;
16012
16013     *)
16014       ld_shlibs_F77=no
16015       ;;
16016     esac
16017   fi
16018
16019 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16020 echo "${ECHO_T}$ld_shlibs_F77" >&6
16021 test "$ld_shlibs_F77" = no && can_build_shared=no
16022
16023 #
16024 # Do we need to explicitly link libc?
16025 #
16026 case "x$archive_cmds_need_lc_F77" in
16027 x|xyes)
16028   # Assume -lc should be added
16029   archive_cmds_need_lc_F77=yes
16030
16031   if test "$enable_shared" = yes && test "$GCC" = yes; then
16032     case $archive_cmds_F77 in
16033     *'~'*)
16034       # FIXME: we may have to deal with multi-command sequences.
16035       ;;
16036     '$CC '*)
16037       # Test whether the compiler implicitly links with -lc since on some
16038       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16039       # to ld, don't add -lc before -lgcc.
16040       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16041 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16042       $rm conftest*
16043       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16044
16045       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16046   (eval $ac_compile) 2>&5
16047   ac_status=$?
16048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049   (exit $ac_status); } 2>conftest.err; then
16050         soname=conftest
16051         lib=conftest
16052         libobjs=conftest.$ac_objext
16053         deplibs=
16054         wl=$lt_prog_compiler_wl_F77
16055         pic_flag=$lt_prog_compiler_pic_F77
16056         compiler_flags=-v
16057         linker_flags=-v
16058         verstring=
16059         output_objdir=.
16060         libname=conftest
16061         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16062         allow_undefined_flag_F77=
16063         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16064   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16065   ac_status=$?
16066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067   (exit $ac_status); }
16068         then
16069           archive_cmds_need_lc_F77=no
16070         else
16071           archive_cmds_need_lc_F77=yes
16072         fi
16073         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16074       else
16075         cat conftest.err 1>&5
16076       fi
16077       $rm conftest*
16078       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16079 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16080       ;;
16081     esac
16082   fi
16083   ;;
16084 esac
16085
16086 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16087 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16088 library_names_spec=
16089 libname_spec='lib$name'
16090 soname_spec=
16091 shrext_cmds=".so"
16092 postinstall_cmds=
16093 postuninstall_cmds=
16094 finish_cmds=
16095 finish_eval=
16096 shlibpath_var=
16097 shlibpath_overrides_runpath=unknown
16098 version_type=none
16099 dynamic_linker="$host_os ld.so"
16100 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16101 if test "$GCC" = yes; then
16102   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16103   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16104     # if the path contains ";" then we assume it to be the separator
16105     # otherwise default to the standard path separator (i.e. ":") - it is
16106     # assumed that no part of a normal pathname contains ";" but that should
16107     # okay in the real world where ";" in dirpaths is itself problematic.
16108     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16109   else
16110     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16111   fi
16112 else
16113   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16114 fi
16115 need_lib_prefix=unknown
16116 hardcode_into_libs=no
16117
16118 # when you set need_version to no, make sure it does not cause -set_version
16119 # flags to be left without arguments
16120 need_version=unknown
16121
16122 case $host_os in
16123 aix3*)
16124   version_type=linux
16125   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16126   shlibpath_var=LIBPATH
16127
16128   # AIX 3 has no versioning support, so we append a major version to the name.
16129   soname_spec='${libname}${release}${shared_ext}$major'
16130   ;;
16131
16132 aix4* | aix5*)
16133   version_type=linux
16134   need_lib_prefix=no
16135   need_version=no
16136   hardcode_into_libs=yes
16137   if test "$host_cpu" = ia64; then
16138     # AIX 5 supports IA64
16139     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16140     shlibpath_var=LD_LIBRARY_PATH
16141   else
16142     # With GCC up to 2.95.x, collect2 would create an import file
16143     # for dependence libraries.  The import file would start with
16144     # the line `#! .'.  This would cause the generated library to
16145     # depend on `.', always an invalid library.  This was fixed in
16146     # development snapshots of GCC prior to 3.0.
16147     case $host_os in
16148       aix4 | aix4.[01] | aix4.[01].*)
16149       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16150            echo ' yes '
16151            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16152         :
16153       else
16154         can_build_shared=no
16155       fi
16156       ;;
16157     esac
16158     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16159     # soname into executable. Probably we can add versioning support to
16160     # collect2, so additional links can be useful in future.
16161     if test "$aix_use_runtimelinking" = yes; then
16162       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16163       # instead of lib<name>.a to let people know that these are not
16164       # typical AIX shared libraries.
16165       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16166     else
16167       # We preserve .a as extension for shared libraries through AIX4.2
16168       # and later when we are not doing run time linking.
16169       library_names_spec='${libname}${release}.a $libname.a'
16170       soname_spec='${libname}${release}${shared_ext}$major'
16171     fi
16172     shlibpath_var=LIBPATH
16173   fi
16174   ;;
16175
16176 amigaos*)
16177   library_names_spec='$libname.ixlibrary $libname.a'
16178   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16179   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'
16180   ;;
16181
16182 beos*)
16183   library_names_spec='${libname}${shared_ext}'
16184   dynamic_linker="$host_os ld.so"
16185   shlibpath_var=LIBRARY_PATH
16186   ;;
16187
16188 bsdi[45]*)
16189   version_type=linux
16190   need_version=no
16191   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16192   soname_spec='${libname}${release}${shared_ext}$major'
16193   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16194   shlibpath_var=LD_LIBRARY_PATH
16195   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16196   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16197   # the default ld.so.conf also contains /usr/contrib/lib and
16198   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16199   # libtool to hard-code these into programs
16200   ;;
16201
16202 cygwin* | mingw* | pw32*)
16203   version_type=windows
16204   shrext_cmds=".dll"
16205   need_version=no
16206   need_lib_prefix=no
16207
16208   case $GCC,$host_os in
16209   yes,cygwin* | yes,mingw* | yes,pw32*)
16210     library_names_spec='$libname.dll.a'
16211     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16212     postinstall_cmds='base_file=`basename \${file}`~
16213       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16214       dldir=$destdir/`dirname \$dlpath`~
16215       test -d \$dldir || mkdir -p \$dldir~
16216       $install_prog $dir/$dlname \$dldir/$dlname~
16217       chmod a+x \$dldir/$dlname'
16218     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16219       dlpath=$dir/\$dldll~
16220        $rm \$dlpath'
16221     shlibpath_overrides_runpath=yes
16222
16223     case $host_os in
16224     cygwin*)
16225       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16226       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16227       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16228       ;;
16229     mingw*)
16230       # MinGW DLLs use traditional 'lib' prefix
16231       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16232       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16233       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16234         # It is most probably a Windows format PATH printed by
16235         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16236         # path with ; separators, and with drive letters. We can handle the
16237         # drive letters (cygwin fileutils understands them), so leave them,
16238         # especially as we might pass files found there to a mingw objdump,
16239         # which wouldn't understand a cygwinified path. Ahh.
16240         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16241       else
16242         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16243       fi
16244       ;;
16245     pw32*)
16246       # pw32 DLLs use 'pw' prefix rather than 'lib'
16247       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16248       ;;
16249     esac
16250     ;;
16251
16252   *)
16253     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16254     ;;
16255   esac
16256   dynamic_linker='Win32 ld.exe'
16257   # FIXME: first we should search . and the directory the executable is in
16258   shlibpath_var=PATH
16259   ;;
16260
16261 darwin* | rhapsody*)
16262   dynamic_linker="$host_os dyld"
16263   version_type=darwin
16264   need_lib_prefix=no
16265   need_version=no
16266   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16267   soname_spec='${libname}${release}${major}$shared_ext'
16268   shlibpath_overrides_runpath=yes
16269   shlibpath_var=DYLD_LIBRARY_PATH
16270   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16271   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16272   if test "$GCC" = yes; then
16273     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"`
16274   else
16275     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16276   fi
16277   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16278   ;;
16279
16280 dgux*)
16281   version_type=linux
16282   need_lib_prefix=no
16283   need_version=no
16284   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16285   soname_spec='${libname}${release}${shared_ext}$major'
16286   shlibpath_var=LD_LIBRARY_PATH
16287   ;;
16288
16289 freebsd1*)
16290   dynamic_linker=no
16291   ;;
16292
16293 kfreebsd*-gnu)
16294   version_type=linux
16295   need_lib_prefix=no
16296   need_version=no
16297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16298   soname_spec='${libname}${release}${shared_ext}$major'
16299   shlibpath_var=LD_LIBRARY_PATH
16300   shlibpath_overrides_runpath=no
16301   hardcode_into_libs=yes
16302   dynamic_linker='GNU ld.so'
16303   ;;
16304
16305 freebsd* | dragonfly*)
16306   # DragonFly does not have aout.  When/if they implement a new
16307   # versioning mechanism, adjust this.
16308   if test -x /usr/bin/objformat; then
16309     objformat=`/usr/bin/objformat`
16310   else
16311     case $host_os in
16312     freebsd[123]*) objformat=aout ;;
16313     *) objformat=elf ;;
16314     esac
16315   fi
16316   version_type=freebsd-$objformat
16317   case $version_type in
16318     freebsd-elf*)
16319       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16320       need_version=no
16321       need_lib_prefix=no
16322       ;;
16323     freebsd-*)
16324       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16325       need_version=yes
16326       ;;
16327   esac
16328   shlibpath_var=LD_LIBRARY_PATH
16329   case $host_os in
16330   freebsd2*)
16331     shlibpath_overrides_runpath=yes
16332     ;;
16333   freebsd3.[01]* | freebsdelf3.[01]*)
16334     shlibpath_overrides_runpath=yes
16335     hardcode_into_libs=yes
16336     ;;
16337   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16338   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16339     shlibpath_overrides_runpath=no
16340     hardcode_into_libs=yes
16341     ;;
16342   freebsd*) # from 4.6 on
16343     shlibpath_overrides_runpath=yes
16344     hardcode_into_libs=yes
16345     ;;
16346   esac
16347   ;;
16348
16349 gnu*)
16350   version_type=linux
16351   need_lib_prefix=no
16352   need_version=no
16353   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16354   soname_spec='${libname}${release}${shared_ext}$major'
16355   shlibpath_var=LD_LIBRARY_PATH
16356   hardcode_into_libs=yes
16357   ;;
16358
16359 hpux9* | hpux10* | hpux11*)
16360   # Give a soname corresponding to the major version so that dld.sl refuses to
16361   # link against other versions.
16362   version_type=sunos
16363   need_lib_prefix=no
16364   need_version=no
16365   case $host_cpu in
16366   ia64*)
16367     shrext_cmds='.so'
16368     hardcode_into_libs=yes
16369     dynamic_linker="$host_os dld.so"
16370     shlibpath_var=LD_LIBRARY_PATH
16371     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16372     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16373     soname_spec='${libname}${release}${shared_ext}$major'
16374     if test "X$HPUX_IA64_MODE" = X32; then
16375       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16376     else
16377       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16378     fi
16379     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16380     ;;
16381    hppa*64*)
16382      shrext_cmds='.sl'
16383      hardcode_into_libs=yes
16384      dynamic_linker="$host_os dld.sl"
16385      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16386      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16387      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16388      soname_spec='${libname}${release}${shared_ext}$major'
16389      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16390      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16391      ;;
16392    *)
16393     shrext_cmds='.sl'
16394     dynamic_linker="$host_os dld.sl"
16395     shlibpath_var=SHLIB_PATH
16396     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16397     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16398     soname_spec='${libname}${release}${shared_ext}$major'
16399     ;;
16400   esac
16401   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16402   postinstall_cmds='chmod 555 $lib'
16403   ;;
16404
16405 interix3*)
16406   version_type=linux
16407   need_lib_prefix=no
16408   need_version=no
16409   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16410   soname_spec='${libname}${release}${shared_ext}$major'
16411   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16412   shlibpath_var=LD_LIBRARY_PATH
16413   shlibpath_overrides_runpath=no
16414   hardcode_into_libs=yes
16415   ;;
16416
16417 irix5* | irix6* | nonstopux*)
16418   case $host_os in
16419     nonstopux*) version_type=nonstopux ;;
16420     *)
16421         if test "$lt_cv_prog_gnu_ld" = yes; then
16422                 version_type=linux
16423         else
16424                 version_type=irix
16425         fi ;;
16426   esac
16427   need_lib_prefix=no
16428   need_version=no
16429   soname_spec='${libname}${release}${shared_ext}$major'
16430   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16431   case $host_os in
16432   irix5* | nonstopux*)
16433     libsuff= shlibsuff=
16434     ;;
16435   *)
16436     case $LD in # libtool.m4 will add one of these switches to LD
16437     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16438       libsuff= shlibsuff= libmagic=32-bit;;
16439     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16440       libsuff=32 shlibsuff=N32 libmagic=N32;;
16441     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16442       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16443     *) libsuff= shlibsuff= libmagic=never-match;;
16444     esac
16445     ;;
16446   esac
16447   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16448   shlibpath_overrides_runpath=no
16449   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16450   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16451   hardcode_into_libs=yes
16452   ;;
16453
16454 # No shared lib support for Linux oldld, aout, or coff.
16455 linux*oldld* | linux*aout* | linux*coff*)
16456   dynamic_linker=no
16457   ;;
16458
16459 # This must be Linux ELF.
16460 linux*)
16461   version_type=linux
16462   need_lib_prefix=no
16463   need_version=no
16464   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465   soname_spec='${libname}${release}${shared_ext}$major'
16466   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16467   shlibpath_var=LD_LIBRARY_PATH
16468   shlibpath_overrides_runpath=no
16469   # This implies no fast_install, which is unacceptable.
16470   # Some rework will be needed to allow for fast_install
16471   # before this can be enabled.
16472   hardcode_into_libs=yes
16473
16474   # find out which ABI we are using
16475   libsuff=
16476   case "$host_cpu" in
16477   x86_64*|s390x*|powerpc64*)
16478     echo '#line 16478 "configure"' > conftest.$ac_ext
16479     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16480   (eval $ac_compile) 2>&5
16481   ac_status=$?
16482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16483   (exit $ac_status); }; then
16484       case `/usr/bin/file conftest.$ac_objext` in
16485       *64-bit*)
16486         libsuff=64
16487         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16488         ;;
16489       esac
16490     fi
16491     rm -rf conftest*
16492     ;;
16493   esac
16494
16495   # Append ld.so.conf contents to the search path
16496   if test -f /etc/ld.so.conf; then
16497     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' ' '`
16498     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
16499   fi
16500
16501   # We used to test for /lib/ld.so.1 and disable shared libraries on
16502   # powerpc, because MkLinux only supported shared libraries with the
16503   # GNU dynamic linker.  Since this was broken with cross compilers,
16504   # most powerpc-linux boxes support dynamic linking these days and
16505   # people can always --disable-shared, the test was removed, and we
16506   # assume the GNU/Linux dynamic linker is in use.
16507   dynamic_linker='GNU/Linux ld.so'
16508   ;;
16509
16510 knetbsd*-gnu)
16511   version_type=linux
16512   need_lib_prefix=no
16513   need_version=no
16514   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16515   soname_spec='${libname}${release}${shared_ext}$major'
16516   shlibpath_var=LD_LIBRARY_PATH
16517   shlibpath_overrides_runpath=no
16518   hardcode_into_libs=yes
16519   dynamic_linker='GNU ld.so'
16520   ;;
16521
16522 netbsd*)
16523   version_type=sunos
16524   need_lib_prefix=no
16525   need_version=no
16526   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16527     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16528     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16529     dynamic_linker='NetBSD (a.out) ld.so'
16530   else
16531     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16532     soname_spec='${libname}${release}${shared_ext}$major'
16533     dynamic_linker='NetBSD ld.elf_so'
16534   fi
16535   shlibpath_var=LD_LIBRARY_PATH
16536   shlibpath_overrides_runpath=yes
16537   hardcode_into_libs=yes
16538   ;;
16539
16540 newsos6)
16541   version_type=linux
16542   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16543   shlibpath_var=LD_LIBRARY_PATH
16544   shlibpath_overrides_runpath=yes
16545   ;;
16546
16547 nto-qnx*)
16548   version_type=linux
16549   need_lib_prefix=no
16550   need_version=no
16551   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16552   soname_spec='${libname}${release}${shared_ext}$major'
16553   shlibpath_var=LD_LIBRARY_PATH
16554   shlibpath_overrides_runpath=yes
16555   ;;
16556
16557 openbsd*)
16558   version_type=sunos
16559   sys_lib_dlsearch_path_spec="/usr/lib"
16560   need_lib_prefix=no
16561   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16562   case $host_os in
16563     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16564     *)                         need_version=no  ;;
16565   esac
16566   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16567   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16568   shlibpath_var=LD_LIBRARY_PATH
16569   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16570     case $host_os in
16571       openbsd2.[89] | openbsd2.[89].*)
16572         shlibpath_overrides_runpath=no
16573         ;;
16574       *)
16575         shlibpath_overrides_runpath=yes
16576         ;;
16577       esac
16578   else
16579     shlibpath_overrides_runpath=yes
16580   fi
16581   ;;
16582
16583 os2*)
16584   libname_spec='$name'
16585   shrext_cmds=".dll"
16586   need_lib_prefix=no
16587   library_names_spec='$libname${shared_ext} $libname.a'
16588   dynamic_linker='OS/2 ld.exe'
16589   shlibpath_var=LIBPATH
16590   ;;
16591
16592 osf3* | osf4* | osf5*)
16593   version_type=osf
16594   need_lib_prefix=no
16595   need_version=no
16596   soname_spec='${libname}${release}${shared_ext}$major'
16597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16598   shlibpath_var=LD_LIBRARY_PATH
16599   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16600   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16601   ;;
16602
16603 solaris*)
16604   version_type=linux
16605   need_lib_prefix=no
16606   need_version=no
16607   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16608   soname_spec='${libname}${release}${shared_ext}$major'
16609   shlibpath_var=LD_LIBRARY_PATH
16610   shlibpath_overrides_runpath=yes
16611   hardcode_into_libs=yes
16612   # ldd complains unless libraries are executable
16613   postinstall_cmds='chmod +x $lib'
16614   ;;
16615
16616 sunos4*)
16617   version_type=sunos
16618   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16619   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16620   shlibpath_var=LD_LIBRARY_PATH
16621   shlibpath_overrides_runpath=yes
16622   if test "$with_gnu_ld" = yes; then
16623     need_lib_prefix=no
16624   fi
16625   need_version=yes
16626   ;;
16627
16628 sysv4 | sysv4.3*)
16629   version_type=linux
16630   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16631   soname_spec='${libname}${release}${shared_ext}$major'
16632   shlibpath_var=LD_LIBRARY_PATH
16633   case $host_vendor in
16634     sni)
16635       shlibpath_overrides_runpath=no
16636       need_lib_prefix=no
16637       export_dynamic_flag_spec='${wl}-Blargedynsym'
16638       runpath_var=LD_RUN_PATH
16639       ;;
16640     siemens)
16641       need_lib_prefix=no
16642       ;;
16643     motorola)
16644       need_lib_prefix=no
16645       need_version=no
16646       shlibpath_overrides_runpath=no
16647       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16648       ;;
16649   esac
16650   ;;
16651
16652 sysv4*MP*)
16653   if test -d /usr/nec ;then
16654     version_type=linux
16655     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16656     soname_spec='$libname${shared_ext}.$major'
16657     shlibpath_var=LD_LIBRARY_PATH
16658   fi
16659   ;;
16660
16661 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16662   version_type=freebsd-elf
16663   need_lib_prefix=no
16664   need_version=no
16665   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16666   soname_spec='${libname}${release}${shared_ext}$major'
16667   shlibpath_var=LD_LIBRARY_PATH
16668   hardcode_into_libs=yes
16669   if test "$with_gnu_ld" = yes; then
16670     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16671     shlibpath_overrides_runpath=no
16672   else
16673     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16674     shlibpath_overrides_runpath=yes
16675     case $host_os in
16676       sco3.2v5*)
16677         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16678         ;;
16679     esac
16680   fi
16681   sys_lib_dlsearch_path_spec='/usr/lib'
16682   ;;
16683
16684 uts4*)
16685   version_type=linux
16686   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16687   soname_spec='${libname}${release}${shared_ext}$major'
16688   shlibpath_var=LD_LIBRARY_PATH
16689   ;;
16690
16691 *)
16692   dynamic_linker=no
16693   ;;
16694 esac
16695 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16696 echo "${ECHO_T}$dynamic_linker" >&6
16697 test "$dynamic_linker" = no && can_build_shared=no
16698
16699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16700 if test "$GCC" = yes; then
16701   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16702 fi
16703
16704 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16705 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16706 hardcode_action_F77=
16707 if test -n "$hardcode_libdir_flag_spec_F77" || \
16708    test -n "$runpath_var_F77" || \
16709    test "X$hardcode_automatic_F77" = "Xyes" ; then
16710
16711   # We can hardcode non-existant directories.
16712   if test "$hardcode_direct_F77" != no &&
16713      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16714      # have to relink, otherwise we might link with an installed library
16715      # when we should be linking with a yet-to-be-installed one
16716      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16717      test "$hardcode_minus_L_F77" != no; then
16718     # Linking always hardcodes the temporary library directory.
16719     hardcode_action_F77=relink
16720   else
16721     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16722     hardcode_action_F77=immediate
16723   fi
16724 else
16725   # We cannot hardcode anything, or else we can only hardcode existing
16726   # directories.
16727   hardcode_action_F77=unsupported
16728 fi
16729 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16730 echo "${ECHO_T}$hardcode_action_F77" >&6
16731
16732 if test "$hardcode_action_F77" = relink; then
16733   # Fast installation is not supported
16734   enable_fast_install=no
16735 elif test "$shlibpath_overrides_runpath" = yes ||
16736      test "$enable_shared" = no; then
16737   # Fast installation is not necessary
16738   enable_fast_install=needless
16739 fi
16740
16741
16742 # The else clause should only fire when bootstrapping the
16743 # libtool distribution, otherwise you forgot to ship ltmain.sh
16744 # with your package, and you will get complaints that there are
16745 # no rules to generate ltmain.sh.
16746 if test -f "$ltmain"; then
16747   # See if we are running on zsh, and set the options which allow our commands through
16748   # without removal of \ escapes.
16749   if test -n "${ZSH_VERSION+set}" ; then
16750     setopt NO_GLOB_SUBST
16751   fi
16752   # Now quote all the things that may contain metacharacters while being
16753   # careful not to overquote the AC_SUBSTed values.  We take copies of the
16754   # variables and quote the copies for generation of the libtool script.
16755   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16756     SED SHELL STRIP \
16757     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16758     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16759     deplibs_check_method reload_flag reload_cmds need_locks \
16760     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16761     lt_cv_sys_global_symbol_to_c_name_address \
16762     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16763     old_postinstall_cmds old_postuninstall_cmds \
16764     compiler_F77 \
16765     CC_F77 \
16766     LD_F77 \
16767     lt_prog_compiler_wl_F77 \
16768     lt_prog_compiler_pic_F77 \
16769     lt_prog_compiler_static_F77 \
16770     lt_prog_compiler_no_builtin_flag_F77 \
16771     export_dynamic_flag_spec_F77 \
16772     thread_safe_flag_spec_F77 \
16773     whole_archive_flag_spec_F77 \
16774     enable_shared_with_static_runtimes_F77 \
16775     old_archive_cmds_F77 \
16776     old_archive_from_new_cmds_F77 \
16777     predep_objects_F77 \
16778     postdep_objects_F77 \
16779     predeps_F77 \
16780     postdeps_F77 \
16781     compiler_lib_search_path_F77 \
16782     archive_cmds_F77 \
16783     archive_expsym_cmds_F77 \
16784     postinstall_cmds_F77 \
16785     postuninstall_cmds_F77 \
16786     old_archive_from_expsyms_cmds_F77 \
16787     allow_undefined_flag_F77 \
16788     no_undefined_flag_F77 \
16789     export_symbols_cmds_F77 \
16790     hardcode_libdir_flag_spec_F77 \
16791     hardcode_libdir_flag_spec_ld_F77 \
16792     hardcode_libdir_separator_F77 \
16793     hardcode_automatic_F77 \
16794     module_cmds_F77 \
16795     module_expsym_cmds_F77 \
16796     lt_cv_prog_compiler_c_o_F77 \
16797     exclude_expsyms_F77 \
16798     include_expsyms_F77; do
16799
16800     case $var in
16801     old_archive_cmds_F77 | \
16802     old_archive_from_new_cmds_F77 | \
16803     archive_cmds_F77 | \
16804     archive_expsym_cmds_F77 | \
16805     module_cmds_F77 | \
16806     module_expsym_cmds_F77 | \
16807     old_archive_from_expsyms_cmds_F77 | \
16808     export_symbols_cmds_F77 | \
16809     extract_expsyms_cmds | reload_cmds | finish_cmds | \
16810     postinstall_cmds | postuninstall_cmds | \
16811     old_postinstall_cmds | old_postuninstall_cmds | \
16812     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16813       # Double-quote double-evaled strings.
16814       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16815       ;;
16816     *)
16817       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16818       ;;
16819     esac
16820   done
16821
16822   case $lt_echo in
16823   *'\$0 --fallback-echo"')
16824     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16825     ;;
16826   esac
16827
16828 cfgfile="$ofile"
16829
16830   cat <<__EOF__ >> "$cfgfile"
16831 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16832
16833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16834
16835 # Shell to use when invoking shell scripts.
16836 SHELL=$lt_SHELL
16837
16838 # Whether or not to build shared libraries.
16839 build_libtool_libs=$enable_shared
16840
16841 # Whether or not to build static libraries.
16842 build_old_libs=$enable_static
16843
16844 # Whether or not to add -lc for building shared libraries.
16845 build_libtool_need_lc=$archive_cmds_need_lc_F77
16846
16847 # Whether or not to disallow shared libs when runtime libs are static
16848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16849
16850 # Whether or not to optimize for fast installation.
16851 fast_install=$enable_fast_install
16852
16853 # The host system.
16854 host_alias=$host_alias
16855 host=$host
16856 host_os=$host_os
16857
16858 # The build system.
16859 build_alias=$build_alias
16860 build=$build
16861 build_os=$build_os
16862
16863 # An echo program that does not interpret backslashes.
16864 echo=$lt_echo
16865
16866 # The archiver.
16867 AR=$lt_AR
16868 AR_FLAGS=$lt_AR_FLAGS
16869
16870 # A C compiler.
16871 LTCC=$lt_LTCC
16872
16873 # LTCC compiler flags.
16874 LTCFLAGS=$lt_LTCFLAGS
16875
16876 # A language-specific compiler.
16877 CC=$lt_compiler_F77
16878
16879 # Is the compiler the GNU C compiler?
16880 with_gcc=$GCC_F77
16881
16882 # An ERE matcher.
16883 EGREP=$lt_EGREP
16884
16885 # The linker used to build libraries.
16886 LD=$lt_LD_F77
16887
16888 # Whether we need hard or soft links.
16889 LN_S=$lt_LN_S
16890
16891 # A BSD-compatible nm program.
16892 NM=$lt_NM
16893
16894 # A symbol stripping program
16895 STRIP=$lt_STRIP
16896
16897 # Used to examine libraries when file_magic_cmd begins "file"
16898 MAGIC_CMD=$MAGIC_CMD
16899
16900 # Used on cygwin: DLL creation program.
16901 DLLTOOL="$DLLTOOL"
16902
16903 # Used on cygwin: object dumper.
16904 OBJDUMP="$OBJDUMP"
16905
16906 # Used on cygwin: assembler.
16907 AS="$AS"
16908
16909 # The name of the directory that contains temporary libtool files.
16910 objdir=$objdir
16911
16912 # How to create reloadable object files.
16913 reload_flag=$lt_reload_flag
16914 reload_cmds=$lt_reload_cmds
16915
16916 # How to pass a linker flag through the compiler.
16917 wl=$lt_lt_prog_compiler_wl_F77
16918
16919 # Object file suffix (normally "o").
16920 objext="$ac_objext"
16921
16922 # Old archive suffix (normally "a").
16923 libext="$libext"
16924
16925 # Shared library suffix (normally ".so").
16926 shrext_cmds='$shrext_cmds'
16927
16928 # Executable file suffix (normally "").
16929 exeext="$exeext"
16930
16931 # Additional compiler flags for building library objects.
16932 pic_flag=$lt_lt_prog_compiler_pic_F77
16933 pic_mode=$pic_mode
16934
16935 # What is the maximum length of a command?
16936 max_cmd_len=$lt_cv_sys_max_cmd_len
16937
16938 # Does compiler simultaneously support -c and -o options?
16939 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16940
16941 # Must we lock files when doing compilation?
16942 need_locks=$lt_need_locks
16943
16944 # Do we need the lib prefix for modules?
16945 need_lib_prefix=$need_lib_prefix
16946
16947 # Do we need a version for libraries?
16948 need_version=$need_version
16949
16950 # Whether dlopen is supported.
16951 dlopen_support=$enable_dlopen
16952
16953 # Whether dlopen of programs is supported.
16954 dlopen_self=$enable_dlopen_self
16955
16956 # Whether dlopen of statically linked programs is supported.
16957 dlopen_self_static=$enable_dlopen_self_static
16958
16959 # Compiler flag to prevent dynamic linking.
16960 link_static_flag=$lt_lt_prog_compiler_static_F77
16961
16962 # Compiler flag to turn off builtin functions.
16963 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16964
16965 # Compiler flag to allow reflexive dlopens.
16966 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16967
16968 # Compiler flag to generate shared objects directly from archives.
16969 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16970
16971 # Compiler flag to generate thread-safe objects.
16972 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16973
16974 # Library versioning type.
16975 version_type=$version_type
16976
16977 # Format of library name prefix.
16978 libname_spec=$lt_libname_spec
16979
16980 # List of archive names.  First name is the real one, the rest are links.
16981 # The last name is the one that the linker finds with -lNAME.
16982 library_names_spec=$lt_library_names_spec
16983
16984 # The coded name of the library, if different from the real name.
16985 soname_spec=$lt_soname_spec
16986
16987 # Commands used to build and install an old-style archive.
16988 RANLIB=$lt_RANLIB
16989 old_archive_cmds=$lt_old_archive_cmds_F77
16990 old_postinstall_cmds=$lt_old_postinstall_cmds
16991 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16992
16993 # Create an old-style archive from a shared archive.
16994 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16995
16996 # Create a temporary old-style archive to link instead of a shared archive.
16997 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16998
16999 # Commands used to build and install a shared archive.
17000 archive_cmds=$lt_archive_cmds_F77
17001 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17002 postinstall_cmds=$lt_postinstall_cmds
17003 postuninstall_cmds=$lt_postuninstall_cmds
17004
17005 # Commands used to build a loadable module (assumed same as above if empty)
17006 module_cmds=$lt_module_cmds_F77
17007 module_expsym_cmds=$lt_module_expsym_cmds_F77
17008
17009 # Commands to strip libraries.
17010 old_striplib=$lt_old_striplib
17011 striplib=$lt_striplib
17012
17013 # Dependencies to place before the objects being linked to create a
17014 # shared library.
17015 predep_objects=$lt_predep_objects_F77
17016
17017 # Dependencies to place after the objects being linked to create a
17018 # shared library.
17019 postdep_objects=$lt_postdep_objects_F77
17020
17021 # Dependencies to place before the objects being linked to create a
17022 # shared library.
17023 predeps=$lt_predeps_F77
17024
17025 # Dependencies to place after the objects being linked to create a
17026 # shared library.
17027 postdeps=$lt_postdeps_F77
17028
17029 # The library search path used internally by the compiler when linking
17030 # a shared library.
17031 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17032
17033 # Method to check whether dependent libraries are shared objects.
17034 deplibs_check_method=$lt_deplibs_check_method
17035
17036 # Command to use when deplibs_check_method == file_magic.
17037 file_magic_cmd=$lt_file_magic_cmd
17038
17039 # Flag that allows shared libraries with undefined symbols to be built.
17040 allow_undefined_flag=$lt_allow_undefined_flag_F77
17041
17042 # Flag that forces no undefined symbols.
17043 no_undefined_flag=$lt_no_undefined_flag_F77
17044
17045 # Commands used to finish a libtool library installation in a directory.
17046 finish_cmds=$lt_finish_cmds
17047
17048 # Same as above, but a single script fragment to be evaled but not shown.
17049 finish_eval=$lt_finish_eval
17050
17051 # Take the output of nm and produce a listing of raw symbols and C names.
17052 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17053
17054 # Transform the output of nm in a proper C declaration
17055 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17056
17057 # Transform the output of nm in a C name address pair
17058 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17059
17060 # This is the shared library runtime path variable.
17061 runpath_var=$runpath_var
17062
17063 # This is the shared library path variable.
17064 shlibpath_var=$shlibpath_var
17065
17066 # Is shlibpath searched before the hard-coded library search path?
17067 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17068
17069 # How to hardcode a shared library path into an executable.
17070 hardcode_action=$hardcode_action_F77
17071
17072 # Whether we should hardcode library paths into libraries.
17073 hardcode_into_libs=$hardcode_into_libs
17074
17075 # Flag to hardcode \$libdir into a binary during linking.
17076 # This must work even if \$libdir does not exist.
17077 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17078
17079 # If ld is used when linking, flag to hardcode \$libdir into
17080 # a binary during linking. This must work even if \$libdir does
17081 # not exist.
17082 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17083
17084 # Whether we need a single -rpath flag with a separated argument.
17085 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17086
17087 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17088 # resulting binary.
17089 hardcode_direct=$hardcode_direct_F77
17090
17091 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17092 # resulting binary.
17093 hardcode_minus_L=$hardcode_minus_L_F77
17094
17095 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17096 # the resulting binary.
17097 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17098
17099 # Set to yes if building a shared library automatically hardcodes DIR into the library
17100 # and all subsequent libraries and executables linked against it.
17101 hardcode_automatic=$hardcode_automatic_F77
17102
17103 # Variables whose values should be saved in libtool wrapper scripts and
17104 # restored at relink time.
17105 variables_saved_for_relink="$variables_saved_for_relink"
17106
17107 # Whether libtool must link a program against all its dependency libraries.
17108 link_all_deplibs=$link_all_deplibs_F77
17109
17110 # Compile-time system search path for libraries
17111 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17112
17113 # Run-time system search path for libraries
17114 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17115
17116 # Fix the shell variable \$srcfile for the compiler.
17117 fix_srcfile_path="$fix_srcfile_path_F77"
17118
17119 # Set to yes if exported symbols are required.
17120 always_export_symbols=$always_export_symbols_F77
17121
17122 # The commands to list exported symbols.
17123 export_symbols_cmds=$lt_export_symbols_cmds_F77
17124
17125 # The commands to extract the exported symbol list from a shared archive.
17126 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17127
17128 # Symbols that should not be listed in the preloaded symbols.
17129 exclude_expsyms=$lt_exclude_expsyms_F77
17130
17131 # Symbols that must always be exported.
17132 include_expsyms=$lt_include_expsyms_F77
17133
17134 # ### END LIBTOOL TAG CONFIG: $tagname
17135
17136 __EOF__
17137
17138
17139 else
17140   # If there is no Makefile yet, we rely on a make rule to execute
17141   # `config.status --recheck' to rerun these tests and create the
17142   # libtool script then.
17143   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17144   if test -f "$ltmain_in"; then
17145     test -f Makefile && make "$ltmain"
17146   fi
17147 fi
17148
17149
17150 ac_ext=c
17151 ac_cpp='$CPP $CPPFLAGS'
17152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17155
17156 CC="$lt_save_CC"
17157
17158         else
17159           tagname=""
17160         fi
17161         ;;
17162
17163       GCJ)
17164         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17165
17166
17167
17168 # Source file extension for Java test sources.
17169 ac_ext=java
17170
17171 # Object file extension for compiled Java test sources.
17172 objext=o
17173 objext_GCJ=$objext
17174
17175 # Code to be used in simple compile tests
17176 lt_simple_compile_test_code="class foo {}\n"
17177
17178 # Code to be used in simple link tests
17179 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
17180
17181 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17182
17183 # If no C compiler was specified, use CC.
17184 LTCC=${LTCC-"$CC"}
17185
17186 # If no C compiler flags were specified, use CFLAGS.
17187 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17188
17189 # Allow CC to be a program name with arguments.
17190 compiler=$CC
17191
17192
17193 # save warnings/boilerplate of simple test code
17194 ac_outfile=conftest.$ac_objext
17195 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
17196 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17197 _lt_compiler_boilerplate=`cat conftest.err`
17198 $rm conftest*
17199
17200 ac_outfile=conftest.$ac_objext
17201 printf "$lt_simple_link_test_code" >conftest.$ac_ext
17202 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17203 _lt_linker_boilerplate=`cat conftest.err`
17204 $rm conftest*
17205
17206
17207 # Allow CC to be a program name with arguments.
17208 lt_save_CC="$CC"
17209 CC=${GCJ-"gcj"}
17210 compiler=$CC
17211 compiler_GCJ=$CC
17212 for cc_temp in $compiler""; do
17213   case $cc_temp in
17214     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17215     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17216     \-*) ;;
17217     *) break;;
17218   esac
17219 done
17220 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17221
17222
17223 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17224 archive_cmds_need_lc_GCJ=no
17225
17226 old_archive_cmds_GCJ=$old_archive_cmds
17227
17228
17229 lt_prog_compiler_no_builtin_flag_GCJ=
17230
17231 if test "$GCC" = yes; then
17232   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17233
17234
17235 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17236 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17237 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17238   echo $ECHO_N "(cached) $ECHO_C" >&6
17239 else
17240   lt_cv_prog_compiler_rtti_exceptions=no
17241   ac_outfile=conftest.$ac_objext
17242    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17243    lt_compiler_flag="-fno-rtti -fno-exceptions"
17244    # Insert the option either (1) after the last *FLAGS variable, or
17245    # (2) before a word containing "conftest.", or (3) at the end.
17246    # Note that $ac_compile itself does not contain backslashes and begins
17247    # with a dollar sign (not a hyphen), so the echo should work correctly.
17248    # The option is referenced via a variable to avoid confusing sed.
17249    lt_compile=`echo "$ac_compile" | $SED \
17250    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17251    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17252    -e 's:$: $lt_compiler_flag:'`
17253    (eval echo "\"\$as_me:17253: $lt_compile\"" >&5)
17254    (eval "$lt_compile" 2>conftest.err)
17255    ac_status=$?
17256    cat conftest.err >&5
17257    echo "$as_me:17257: \$? = $ac_status" >&5
17258    if (exit $ac_status) && test -s "$ac_outfile"; then
17259      # The compiler can only warn and ignore the option if not recognized
17260      # So say no if there are warnings other than the usual output.
17261      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17262      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17263      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17264        lt_cv_prog_compiler_rtti_exceptions=yes
17265      fi
17266    fi
17267    $rm conftest*
17268
17269 fi
17270 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17271 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17272
17273 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17274     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17275 else
17276     :
17277 fi
17278
17279 fi
17280
17281 lt_prog_compiler_wl_GCJ=
17282 lt_prog_compiler_pic_GCJ=
17283 lt_prog_compiler_static_GCJ=
17284
17285 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17286 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17287
17288   if test "$GCC" = yes; then
17289     lt_prog_compiler_wl_GCJ='-Wl,'
17290     lt_prog_compiler_static_GCJ='-static'
17291
17292     case $host_os in
17293       aix*)
17294       # All AIX code is PIC.
17295       if test "$host_cpu" = ia64; then
17296         # AIX 5 now supports IA64 processor
17297         lt_prog_compiler_static_GCJ='-Bstatic'
17298       fi
17299       ;;
17300
17301     amigaos*)
17302       # FIXME: we need at least 68020 code to build shared libraries, but
17303       # adding the `-m68020' flag to GCC prevents building anything better,
17304       # like `-m68040'.
17305       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17306       ;;
17307
17308     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17309       # PIC is the default for these OSes.
17310       ;;
17311
17312     mingw* | pw32* | os2*)
17313       # This hack is so that the source file can tell whether it is being
17314       # built for inclusion in a dll (and should export symbols for example).
17315       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17316       ;;
17317
17318     darwin* | rhapsody*)
17319       # PIC is the default on this platform
17320       # Common symbols not allowed in MH_DYLIB files
17321       lt_prog_compiler_pic_GCJ='-fno-common'
17322       ;;
17323
17324     interix3*)
17325       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17326       # Instead, we relocate shared libraries at runtime.
17327       ;;
17328
17329     msdosdjgpp*)
17330       # Just because we use GCC doesn't mean we suddenly get shared libraries
17331       # on systems that don't support them.
17332       lt_prog_compiler_can_build_shared_GCJ=no
17333       enable_shared=no
17334       ;;
17335
17336     sysv4*MP*)
17337       if test -d /usr/nec; then
17338         lt_prog_compiler_pic_GCJ=-Kconform_pic
17339       fi
17340       ;;
17341
17342     hpux*)
17343       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17344       # not for PA HP-UX.
17345       case $host_cpu in
17346       hppa*64*|ia64*)
17347         # +Z the default
17348         ;;
17349       *)
17350         lt_prog_compiler_pic_GCJ='-fPIC'
17351         ;;
17352       esac
17353       ;;
17354
17355     *)
17356       lt_prog_compiler_pic_GCJ='-fPIC'
17357       ;;
17358     esac
17359   else
17360     # PORTME Check for flag to pass linker flags through the system compiler.
17361     case $host_os in
17362     aix*)
17363       lt_prog_compiler_wl_GCJ='-Wl,'
17364       if test "$host_cpu" = ia64; then
17365         # AIX 5 now supports IA64 processor
17366         lt_prog_compiler_static_GCJ='-Bstatic'
17367       else
17368         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17369       fi
17370       ;;
17371       darwin*)
17372         # PIC is the default on this platform
17373         # Common symbols not allowed in MH_DYLIB files
17374        case $cc_basename in
17375          xlc*)
17376          lt_prog_compiler_pic_GCJ='-qnocommon'
17377          lt_prog_compiler_wl_GCJ='-Wl,'
17378          ;;
17379        esac
17380        ;;
17381
17382     mingw* | pw32* | os2*)
17383       # This hack is so that the source file can tell whether it is being
17384       # built for inclusion in a dll (and should export symbols for example).
17385       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17386       ;;
17387
17388     hpux9* | hpux10* | hpux11*)
17389       lt_prog_compiler_wl_GCJ='-Wl,'
17390       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17391       # not for PA HP-UX.
17392       case $host_cpu in
17393       hppa*64*|ia64*)
17394         # +Z the default
17395         ;;
17396       *)
17397         lt_prog_compiler_pic_GCJ='+Z'
17398         ;;
17399       esac
17400       # Is there a better lt_prog_compiler_static that works with the bundled CC?
17401       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17402       ;;
17403
17404     irix5* | irix6* | nonstopux*)
17405       lt_prog_compiler_wl_GCJ='-Wl,'
17406       # PIC (with -KPIC) is the default.
17407       lt_prog_compiler_static_GCJ='-non_shared'
17408       ;;
17409
17410     newsos6)
17411       lt_prog_compiler_pic_GCJ='-KPIC'
17412       lt_prog_compiler_static_GCJ='-Bstatic'
17413       ;;
17414
17415     linux*)
17416       case $cc_basename in
17417       icc* | ecc*)
17418         lt_prog_compiler_wl_GCJ='-Wl,'
17419         lt_prog_compiler_pic_GCJ='-KPIC'
17420         lt_prog_compiler_static_GCJ='-static'
17421         ;;
17422       pgcc* | pgf77* | pgf90* | pgf95*)
17423         # Portland Group compilers (*not* the Pentium gcc compiler,
17424         # which looks to be a dead project)
17425         lt_prog_compiler_wl_GCJ='-Wl,'
17426         lt_prog_compiler_pic_GCJ='-fpic'
17427         lt_prog_compiler_static_GCJ='-Bstatic'
17428         ;;
17429       ccc*)
17430         lt_prog_compiler_wl_GCJ='-Wl,'
17431         # All Alpha code is PIC.
17432         lt_prog_compiler_static_GCJ='-non_shared'
17433         ;;
17434       esac
17435       ;;
17436
17437     osf3* | osf4* | osf5*)
17438       lt_prog_compiler_wl_GCJ='-Wl,'
17439       # All OSF/1 code is PIC.
17440       lt_prog_compiler_static_GCJ='-non_shared'
17441       ;;
17442
17443     solaris*)
17444       lt_prog_compiler_pic_GCJ='-KPIC'
17445       lt_prog_compiler_static_GCJ='-Bstatic'
17446       case $cc_basename in
17447       f77* | f90* | f95*)
17448         lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17449       *)
17450         lt_prog_compiler_wl_GCJ='-Wl,';;
17451       esac
17452       ;;
17453
17454     sunos4*)
17455       lt_prog_compiler_wl_GCJ='-Qoption ld '
17456       lt_prog_compiler_pic_GCJ='-PIC'
17457       lt_prog_compiler_static_GCJ='-Bstatic'
17458       ;;
17459
17460     sysv4 | sysv4.2uw2* | sysv4.3*)
17461       lt_prog_compiler_wl_GCJ='-Wl,'
17462       lt_prog_compiler_pic_GCJ='-KPIC'
17463       lt_prog_compiler_static_GCJ='-Bstatic'
17464       ;;
17465
17466     sysv4*MP*)
17467       if test -d /usr/nec ;then
17468         lt_prog_compiler_pic_GCJ='-Kconform_pic'
17469         lt_prog_compiler_static_GCJ='-Bstatic'
17470       fi
17471       ;;
17472
17473     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17474       lt_prog_compiler_wl_GCJ='-Wl,'
17475       lt_prog_compiler_pic_GCJ='-KPIC'
17476       lt_prog_compiler_static_GCJ='-Bstatic'
17477       ;;
17478
17479     unicos*)
17480       lt_prog_compiler_wl_GCJ='-Wl,'
17481       lt_prog_compiler_can_build_shared_GCJ=no
17482       ;;
17483
17484     uts4*)
17485       lt_prog_compiler_pic_GCJ='-pic'
17486       lt_prog_compiler_static_GCJ='-Bstatic'
17487       ;;
17488
17489     *)
17490       lt_prog_compiler_can_build_shared_GCJ=no
17491       ;;
17492     esac
17493   fi
17494
17495 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17496 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17497
17498 #
17499 # Check to make sure the PIC flag actually works.
17500 #
17501 if test -n "$lt_prog_compiler_pic_GCJ"; then
17502
17503 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17504 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17505 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17506   echo $ECHO_N "(cached) $ECHO_C" >&6
17507 else
17508   lt_prog_compiler_pic_works_GCJ=no
17509   ac_outfile=conftest.$ac_objext
17510    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17511    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17512    # Insert the option either (1) after the last *FLAGS variable, or
17513    # (2) before a word containing "conftest.", or (3) at the end.
17514    # Note that $ac_compile itself does not contain backslashes and begins
17515    # with a dollar sign (not a hyphen), so the echo should work correctly.
17516    # The option is referenced via a variable to avoid confusing sed.
17517    lt_compile=`echo "$ac_compile" | $SED \
17518    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17519    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17520    -e 's:$: $lt_compiler_flag:'`
17521    (eval echo "\"\$as_me:17521: $lt_compile\"" >&5)
17522    (eval "$lt_compile" 2>conftest.err)
17523    ac_status=$?
17524    cat conftest.err >&5
17525    echo "$as_me:17525: \$? = $ac_status" >&5
17526    if (exit $ac_status) && test -s "$ac_outfile"; then
17527      # The compiler can only warn and ignore the option if not recognized
17528      # So say no if there are warnings other than the usual output.
17529      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17530      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17531      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17532        lt_prog_compiler_pic_works_GCJ=yes
17533      fi
17534    fi
17535    $rm conftest*
17536
17537 fi
17538 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17539 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17540
17541 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17542     case $lt_prog_compiler_pic_GCJ in
17543      "" | " "*) ;;
17544      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17545      esac
17546 else
17547     lt_prog_compiler_pic_GCJ=
17548      lt_prog_compiler_can_build_shared_GCJ=no
17549 fi
17550
17551 fi
17552 case $host_os in
17553   # For platforms which do not support PIC, -DPIC is meaningless:
17554   *djgpp*)
17555     lt_prog_compiler_pic_GCJ=
17556     ;;
17557   *)
17558     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17559     ;;
17560 esac
17561
17562 #
17563 # Check to make sure the static flag actually works.
17564 #
17565 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17566 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17567 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17568 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
17569   echo $ECHO_N "(cached) $ECHO_C" >&6
17570 else
17571   lt_prog_compiler_static_works_GCJ=no
17572    save_LDFLAGS="$LDFLAGS"
17573    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17574    printf "$lt_simple_link_test_code" > conftest.$ac_ext
17575    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17576      # The linker can only warn and ignore the option if not recognized
17577      # So say no if there are warnings
17578      if test -s conftest.err; then
17579        # Append any errors to the config.log.
17580        cat conftest.err 1>&5
17581        $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17582        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17583        if diff conftest.exp conftest.er2 >/dev/null; then
17584          lt_prog_compiler_static_works_GCJ=yes
17585        fi
17586      else
17587        lt_prog_compiler_static_works_GCJ=yes
17588      fi
17589    fi
17590    $rm conftest*
17591    LDFLAGS="$save_LDFLAGS"
17592
17593 fi
17594 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
17595 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
17596
17597 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
17598     :
17599 else
17600     lt_prog_compiler_static_GCJ=
17601 fi
17602
17603
17604 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17605 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17606 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17607   echo $ECHO_N "(cached) $ECHO_C" >&6
17608 else
17609   lt_cv_prog_compiler_c_o_GCJ=no
17610    $rm -r conftest 2>/dev/null
17611    mkdir conftest
17612    cd conftest
17613    mkdir out
17614    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17615
17616    lt_compiler_flag="-o out/conftest2.$ac_objext"
17617    # Insert the option either (1) after the last *FLAGS variable, or
17618    # (2) before a word containing "conftest.", or (3) at the end.
17619    # Note that $ac_compile itself does not contain backslashes and begins
17620    # with a dollar sign (not a hyphen), so the echo should work correctly.
17621    lt_compile=`echo "$ac_compile" | $SED \
17622    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17623    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17624    -e 's:$: $lt_compiler_flag:'`
17625    (eval echo "\"\$as_me:17625: $lt_compile\"" >&5)
17626    (eval "$lt_compile" 2>out/conftest.err)
17627    ac_status=$?
17628    cat out/conftest.err >&5
17629    echo "$as_me:17629: \$? = $ac_status" >&5
17630    if (exit $ac_status) && test -s out/conftest2.$ac_objext
17631    then
17632      # The compiler can only warn and ignore the option if not recognized
17633      # So say no if there are warnings
17634      $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17635      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17636      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17637        lt_cv_prog_compiler_c_o_GCJ=yes
17638      fi
17639    fi
17640    chmod u+w . 2>&5
17641    $rm conftest*
17642    # SGI C++ compiler will create directory out/ii_files/ for
17643    # template instantiation
17644    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17645    $rm out/* && rmdir out
17646    cd ..
17647    rmdir conftest
17648    $rm conftest*
17649
17650 fi
17651 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17652 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17653
17654
17655 hard_links="nottested"
17656 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17657   # do not overwrite the value of need_locks provided by the user
17658   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17659 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17660   hard_links=yes
17661   $rm conftest*
17662   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17663   touch conftest.a
17664   ln conftest.a conftest.b 2>&5 || hard_links=no
17665   ln conftest.a conftest.b 2>/dev/null && hard_links=no
17666   echo "$as_me:$LINENO: result: $hard_links" >&5
17667 echo "${ECHO_T}$hard_links" >&6
17668   if test "$hard_links" = no; then
17669     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17670 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17671     need_locks=warn
17672   fi
17673 else
17674   need_locks=no
17675 fi
17676
17677 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17678 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17679
17680   runpath_var=
17681   allow_undefined_flag_GCJ=
17682   enable_shared_with_static_runtimes_GCJ=no
17683   archive_cmds_GCJ=
17684   archive_expsym_cmds_GCJ=
17685   old_archive_From_new_cmds_GCJ=
17686   old_archive_from_expsyms_cmds_GCJ=
17687   export_dynamic_flag_spec_GCJ=
17688   whole_archive_flag_spec_GCJ=
17689   thread_safe_flag_spec_GCJ=
17690   hardcode_libdir_flag_spec_GCJ=
17691   hardcode_libdir_flag_spec_ld_GCJ=
17692   hardcode_libdir_separator_GCJ=
17693   hardcode_direct_GCJ=no
17694   hardcode_minus_L_GCJ=no
17695   hardcode_shlibpath_var_GCJ=unsupported
17696   link_all_deplibs_GCJ=unknown
17697   hardcode_automatic_GCJ=no
17698   module_cmds_GCJ=
17699   module_expsym_cmds_GCJ=
17700   always_export_symbols_GCJ=no
17701   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17702   # include_expsyms should be a list of space-separated symbols to be *always*
17703   # included in the symbol list
17704   include_expsyms_GCJ=
17705   # exclude_expsyms can be an extended regexp of symbols to exclude
17706   # it will be wrapped by ` (' and `)$', so one must not match beginning or
17707   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17708   # as well as any symbol that contains `d'.
17709   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17710   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17711   # platforms (ab)use it in PIC code, but their linkers get confused if
17712   # the symbol is explicitly referenced.  Since portable code cannot
17713   # rely on this symbol name, it's probably fine to never include it in
17714   # preloaded symbol tables.
17715   extract_expsyms_cmds=
17716   # Just being paranoid about ensuring that cc_basename is set.
17717   for cc_temp in $compiler""; do
17718   case $cc_temp in
17719     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17720     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17721     \-*) ;;
17722     *) break;;
17723   esac
17724 done
17725 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17726
17727   case $host_os in
17728   cygwin* | mingw* | pw32*)
17729     # FIXME: the MSVC++ port hasn't been tested in a loooong time
17730     # When not using gcc, we currently assume that we are using
17731     # Microsoft Visual C++.
17732     if test "$GCC" != yes; then
17733       with_gnu_ld=no
17734     fi
17735     ;;
17736   interix*)
17737     # we just hope/assume this is gcc and not c89 (= MSVC++)
17738     with_gnu_ld=yes
17739     ;;
17740   openbsd*)
17741     with_gnu_ld=no
17742     ;;
17743   esac
17744
17745   ld_shlibs_GCJ=yes
17746   if test "$with_gnu_ld" = yes; then
17747     # If archive_cmds runs LD, not CC, wlarc should be empty
17748     wlarc='${wl}'
17749
17750     # Set some defaults for GNU ld with shared library support. These
17751     # are reset later if shared libraries are not supported. Putting them
17752     # here allows them to be overridden if necessary.
17753     runpath_var=LD_RUN_PATH
17754     hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17755     export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17756     # ancient GNU ld didn't support --whole-archive et. al.
17757     if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17758         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17759       else
17760         whole_archive_flag_spec_GCJ=
17761     fi
17762     supports_anon_versioning=no
17763     case `$LD -v 2>/dev/null` in
17764       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17765       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17766       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17767       *\ 2.11.*) ;; # other 2.11 versions
17768       *) supports_anon_versioning=yes ;;
17769     esac
17770
17771     # See if GNU ld supports shared libraries.
17772     case $host_os in
17773     aix3* | aix4* | aix5*)
17774       # On AIX/PPC, the GNU linker is very broken
17775       if test "$host_cpu" != ia64; then
17776         ld_shlibs_GCJ=no
17777         cat <<EOF 1>&2
17778
17779 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17780 *** to be unable to reliably create shared libraries on AIX.
17781 *** Therefore, libtool is disabling shared libraries support.  If you
17782 *** really care for shared libraries, you may want to modify your PATH
17783 *** so that a non-GNU linker is found, and then restart.
17784
17785 EOF
17786       fi
17787       ;;
17788
17789     amigaos*)
17790       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)'
17791       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17792       hardcode_minus_L_GCJ=yes
17793
17794       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
17795       # that the semantics of dynamic libraries on AmigaOS, at least up
17796       # to version 4, is to share data among multiple programs linked
17797       # with the same dynamic library.  Since this doesn't match the
17798       # behavior of shared libraries on other platforms, we can't use
17799       # them.
17800       ld_shlibs_GCJ=no
17801       ;;
17802
17803     beos*)
17804       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17805         allow_undefined_flag_GCJ=unsupported
17806         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
17807         # support --undefined.  This deserves some investigation.  FIXME
17808         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17809       else
17810         ld_shlibs_GCJ=no
17811       fi
17812       ;;
17813
17814     cygwin* | mingw* | pw32*)
17815       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17816       # as there is no search path for DLLs.
17817       hardcode_libdir_flag_spec_GCJ='-L$libdir'
17818       allow_undefined_flag_GCJ=unsupported
17819       always_export_symbols_GCJ=no
17820       enable_shared_with_static_runtimes_GCJ=yes
17821       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17822
17823       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17824         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17825         # If the export-symbols file already is a .def file (1st line
17826         # is EXPORTS), use it as is; otherwise, prepend...
17827         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17828           cp $export_symbols $output_objdir/$soname.def;
17829         else
17830           echo EXPORTS > $output_objdir/$soname.def;
17831           cat $export_symbols >> $output_objdir/$soname.def;
17832         fi~
17833         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17834       else
17835         ld_shlibs_GCJ=no
17836       fi
17837       ;;
17838
17839     interix3*)
17840       hardcode_direct_GCJ=no
17841       hardcode_shlibpath_var_GCJ=no
17842       hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17843       export_dynamic_flag_spec_GCJ='${wl}-E'
17844       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17845       # Instead, shared libraries are loaded at an image base (0x10000000 by
17846       # default) and relocated if they conflict, which is a slow very memory
17847       # consuming and fragmenting process.  To avoid this, we pick a random,
17848       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17849       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
17850       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'
17851       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'
17852       ;;
17853
17854     linux*)
17855       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17856         tmp_addflag=
17857         case $cc_basename,$host_cpu in
17858         pgcc*)                          # Portland Group C compiler
17859           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'
17860           tmp_addflag=' $pic_flag'
17861           ;;
17862         pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
17863           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'
17864           tmp_addflag=' $pic_flag -Mnomain' ;;
17865         ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
17866           tmp_addflag=' -i_dynamic' ;;
17867         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
17868           tmp_addflag=' -i_dynamic -nofor_main' ;;
17869         ifc* | ifort*)                  # Intel Fortran compiler
17870           tmp_addflag=' -nofor_main' ;;
17871         esac
17872         archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17873
17874         if test $supports_anon_versioning = yes; then
17875           archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17876   cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17877   $echo "local: *; };" >> $output_objdir/$libname.ver~
17878           $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17879         fi
17880       else
17881         ld_shlibs_GCJ=no
17882       fi
17883       ;;
17884
17885     netbsd*)
17886       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17887         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17888         wlarc=
17889       else
17890         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17891         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17892       fi
17893       ;;
17894
17895     solaris*)
17896       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17897         ld_shlibs_GCJ=no
17898         cat <<EOF 1>&2
17899
17900 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17901 *** create shared libraries on Solaris systems.  Therefore, libtool
17902 *** is disabling shared libraries support.  We urge you to upgrade GNU
17903 *** binutils to release 2.9.1 or newer.  Another option is to modify
17904 *** your PATH or compiler configuration so that the native linker is
17905 *** used, and then restart.
17906
17907 EOF
17908       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17909         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17910         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17911       else
17912         ld_shlibs_GCJ=no
17913       fi
17914       ;;
17915
17916     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17917       case `$LD -v 2>&1` in
17918         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17919         ld_shlibs_GCJ=no
17920         cat <<_LT_EOF 1>&2
17921
17922 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17923 *** reliably create shared libraries on SCO systems.  Therefore, libtool
17924 *** is disabling shared libraries support.  We urge you to upgrade GNU
17925 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
17926 *** your PATH or compiler configuration so that the native linker is
17927 *** used, and then restart.
17928
17929 _LT_EOF
17930         ;;
17931         *)
17932           if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17933             hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17934             archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17935             archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17936           else
17937             ld_shlibs_GCJ=no
17938           fi
17939         ;;
17940       esac
17941       ;;
17942
17943     sunos4*)
17944       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17945       wlarc=
17946       hardcode_direct_GCJ=yes
17947       hardcode_shlibpath_var_GCJ=no
17948       ;;
17949
17950     *)
17951       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17952         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17953         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17954       else
17955         ld_shlibs_GCJ=no
17956       fi
17957       ;;
17958     esac
17959
17960     if test "$ld_shlibs_GCJ" = no; then
17961       runpath_var=
17962       hardcode_libdir_flag_spec_GCJ=
17963       export_dynamic_flag_spec_GCJ=
17964       whole_archive_flag_spec_GCJ=
17965     fi
17966   else
17967     # PORTME fill in a description of your system's linker (not GNU ld)
17968     case $host_os in
17969     aix3*)
17970       allow_undefined_flag_GCJ=unsupported
17971       always_export_symbols_GCJ=yes
17972       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'
17973       # Note: this linker hardcodes the directories in LIBPATH if there
17974       # are no directories specified by -L.
17975       hardcode_minus_L_GCJ=yes
17976       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17977         # Neither direct hardcoding nor static linking is supported with a
17978         # broken collect2.
17979         hardcode_direct_GCJ=unsupported
17980       fi
17981       ;;
17982
17983     aix4* | aix5*)
17984       if test "$host_cpu" = ia64; then
17985         # On IA64, the linker does run time linking by default, so we don't
17986         # have to do anything special.
17987         aix_use_runtimelinking=no
17988         exp_sym_flag='-Bexport'
17989         no_entry_flag=""
17990       else
17991         # If we're using GNU nm, then we don't want the "-C" option.
17992         # -C means demangle to AIX nm, but means don't demangle with GNU nm
17993         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17994           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'
17995         else
17996           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'
17997         fi
17998         aix_use_runtimelinking=no
17999
18000         # Test if we are trying to use run time linking or normal
18001         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18002         # need to do runtime linking.
18003         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18004           for ld_flag in $LDFLAGS; do
18005           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18006             aix_use_runtimelinking=yes
18007             break
18008           fi
18009           done
18010           ;;
18011         esac
18012
18013         exp_sym_flag='-bexport'
18014         no_entry_flag='-bnoentry'
18015       fi
18016
18017       # When large executables or shared objects are built, AIX ld can
18018       # have problems creating the table of contents.  If linking a library
18019       # or program results in "error TOC overflow" add -mminimal-toc to
18020       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
18021       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18022
18023       archive_cmds_GCJ=''
18024       hardcode_direct_GCJ=yes
18025       hardcode_libdir_separator_GCJ=':'
18026       link_all_deplibs_GCJ=yes
18027
18028       if test "$GCC" = yes; then
18029         case $host_os in aix4.[012]|aix4.[012].*)
18030         # We only want to do this on AIX 4.2 and lower, the check
18031         # below for broken collect2 doesn't work under 4.3+
18032           collect2name=`${CC} -print-prog-name=collect2`
18033           if test -f "$collect2name" && \
18034            strings "$collect2name" | grep resolve_lib_name >/dev/null
18035           then
18036           # We have reworked collect2
18037           hardcode_direct_GCJ=yes
18038           else
18039           # We have old collect2
18040           hardcode_direct_GCJ=unsupported
18041           # It fails to find uninstalled libraries when the uninstalled
18042           # path is not listed in the libpath.  Setting hardcode_minus_L
18043           # to unsupported forces relinking
18044           hardcode_minus_L_GCJ=yes
18045           hardcode_libdir_flag_spec_GCJ='-L$libdir'
18046           hardcode_libdir_separator_GCJ=
18047           fi
18048           ;;
18049         esac
18050         shared_flag='-shared'
18051         if test "$aix_use_runtimelinking" = yes; then
18052           shared_flag="$shared_flag "'${wl}-G'
18053         fi
18054       else
18055         # not using gcc
18056         if test "$host_cpu" = ia64; then
18057         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18058         # chokes on -Wl,-G. The following line is correct:
18059           shared_flag='-G'
18060         else
18061           if test "$aix_use_runtimelinking" = yes; then
18062             shared_flag='${wl}-G'
18063           else
18064             shared_flag='${wl}-bM:SRE'
18065           fi
18066         fi
18067       fi
18068
18069       # It seems that -bexpall does not export symbols beginning with
18070       # underscore (_), so it is better to generate a list of symbols to export.
18071       always_export_symbols_GCJ=yes
18072       if test "$aix_use_runtimelinking" = yes; then
18073         # Warning - without using the other runtime loading flags (-brtl),
18074         # -berok will link without error, but may produce a broken library.
18075         allow_undefined_flag_GCJ='-berok'
18076        # Determine the default libpath from the value encoded in an empty executable.
18077        cat >conftest.$ac_ext <<_ACEOF
18078 /* confdefs.h.  */
18079 _ACEOF
18080 cat confdefs.h >>conftest.$ac_ext
18081 cat >>conftest.$ac_ext <<_ACEOF
18082 /* end confdefs.h.  */
18083
18084 int
18085 main ()
18086 {
18087
18088   ;
18089   return 0;
18090 }
18091 _ACEOF
18092 rm -f conftest.$ac_objext conftest$ac_exeext
18093 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18094   (eval $ac_link) 2>conftest.er1
18095   ac_status=$?
18096   grep -v '^ *+' conftest.er1 >conftest.err
18097   rm -f conftest.er1
18098   cat conftest.err >&5
18099   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18100   (exit $ac_status); } &&
18101          { ac_try='test -z "$ac_c_werror_flag"
18102                          || test ! -s conftest.err'
18103   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18104   (eval $ac_try) 2>&5
18105   ac_status=$?
18106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107   (exit $ac_status); }; } &&
18108          { ac_try='test -s conftest$ac_exeext'
18109   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18110   (eval $ac_try) 2>&5
18111   ac_status=$?
18112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113   (exit $ac_status); }; }; then
18114
18115 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18116 }'`
18117 # Check for a 64-bit object if we didn't find anything.
18118 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; }
18119 }'`; fi
18120 else
18121   echo "$as_me: failed program was:" >&5
18122 sed 's/^/| /' conftest.$ac_ext >&5
18123
18124 fi
18125 rm -f conftest.err conftest.$ac_objext \
18126       conftest$ac_exeext conftest.$ac_ext
18127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18128
18129        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18130         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"
18131        else
18132         if test "$host_cpu" = ia64; then
18133           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18134           allow_undefined_flag_GCJ="-z nodefs"
18135           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"
18136         else
18137          # Determine the default libpath from the value encoded in an empty executable.
18138          cat >conftest.$ac_ext <<_ACEOF
18139 /* confdefs.h.  */
18140 _ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h.  */
18144
18145 int
18146 main ()
18147 {
18148
18149   ;
18150   return 0;
18151 }
18152 _ACEOF
18153 rm -f conftest.$ac_objext conftest$ac_exeext
18154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18155   (eval $ac_link) 2>conftest.er1
18156   ac_status=$?
18157   grep -v '^ *+' conftest.er1 >conftest.err
18158   rm -f conftest.er1
18159   cat conftest.err >&5
18160   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161   (exit $ac_status); } &&
18162          { ac_try='test -z "$ac_c_werror_flag"
18163                          || test ! -s conftest.err'
18164   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18165   (eval $ac_try) 2>&5
18166   ac_status=$?
18167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18168   (exit $ac_status); }; } &&
18169          { ac_try='test -s conftest$ac_exeext'
18170   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18171   (eval $ac_try) 2>&5
18172   ac_status=$?
18173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174   (exit $ac_status); }; }; then
18175
18176 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
18177 }'`
18178 # Check for a 64-bit object if we didn't find anything.
18179 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; }
18180 }'`; fi
18181 else
18182   echo "$as_me: failed program was:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18184
18185 fi
18186 rm -f conftest.err conftest.$ac_objext \
18187       conftest$ac_exeext conftest.$ac_ext
18188 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18189
18190          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18191           # Warning - without using the other run time loading flags,
18192           # -berok will link without error, but may produce a broken library.
18193           no_undefined_flag_GCJ=' ${wl}-bernotok'
18194           allow_undefined_flag_GCJ=' ${wl}-berok'
18195           # Exported symbols can be pulled into shared objects from archives
18196           whole_archive_flag_spec_GCJ='$convenience'
18197           archive_cmds_need_lc_GCJ=yes
18198           # This is similar to how AIX traditionally builds its shared libraries.
18199           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'
18200         fi
18201       fi
18202       ;;
18203
18204     amigaos*)
18205       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)'
18206       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18207       hardcode_minus_L_GCJ=yes
18208       # see comment about different semantics on the GNU ld section
18209       ld_shlibs_GCJ=no
18210       ;;
18211
18212     bsdi[45]*)
18213       export_dynamic_flag_spec_GCJ=-rdynamic
18214       ;;
18215
18216     cygwin* | mingw* | pw32*)
18217       # When not using gcc, we currently assume that we are using
18218       # Microsoft Visual C++.
18219       # hardcode_libdir_flag_spec is actually meaningless, as there is
18220       # no search path for DLLs.
18221       hardcode_libdir_flag_spec_GCJ=' '
18222       allow_undefined_flag_GCJ=unsupported
18223       # Tell ltmain to make .lib files, not .a files.
18224       libext=lib
18225       # Tell ltmain to make .dll files, not .so files.
18226       shrext_cmds=".dll"
18227       # FIXME: Setting linknames here is a bad hack.
18228       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18229       # The linker will automatically build a .lib file if we build a DLL.
18230       old_archive_From_new_cmds_GCJ='true'
18231       # FIXME: Should let the user specify the lib program.
18232       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18233       fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
18234       enable_shared_with_static_runtimes_GCJ=yes
18235       ;;
18236
18237     darwin* | rhapsody*)
18238       case $host_os in
18239         rhapsody* | darwin1.[012])
18240          allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
18241          ;;
18242        *) # Darwin 1.3 on
18243          if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18244            allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18245          else
18246            case ${MACOSX_DEPLOYMENT_TARGET} in
18247              10.[012])
18248                allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
18249                ;;
18250              10.*)
18251                allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
18252                ;;
18253            esac
18254          fi
18255          ;;
18256       esac
18257       archive_cmds_need_lc_GCJ=no
18258       hardcode_direct_GCJ=no
18259       hardcode_automatic_GCJ=yes
18260       hardcode_shlibpath_var_GCJ=unsupported
18261       whole_archive_flag_spec_GCJ=''
18262       link_all_deplibs_GCJ=yes
18263     if test "$GCC" = yes ; then
18264         output_verbose_link_cmd='echo'
18265         archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18266       module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18267       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18268       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}'
18269       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}'
18270     else
18271       case $cc_basename in
18272         xlc*)
18273          output_verbose_link_cmd='echo'
18274          archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
18275          module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18276           # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
18277          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}'
18278           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}'
18279           ;;
18280        *)
18281          ld_shlibs_GCJ=no
18282           ;;
18283       esac
18284     fi
18285       ;;
18286
18287     dgux*)
18288       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18289       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18290       hardcode_shlibpath_var_GCJ=no
18291       ;;
18292
18293     freebsd1*)
18294       ld_shlibs_GCJ=no
18295       ;;
18296
18297     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18298     # support.  Future versions do this automatically, but an explicit c++rt0.o
18299     # does not break anything, and helps significantly (at the cost of a little
18300     # extra space).
18301     freebsd2.2*)
18302       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18303       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18304       hardcode_direct_GCJ=yes
18305       hardcode_shlibpath_var_GCJ=no
18306       ;;
18307
18308     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18309     freebsd2*)
18310       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18311       hardcode_direct_GCJ=yes
18312       hardcode_minus_L_GCJ=yes
18313       hardcode_shlibpath_var_GCJ=no
18314       ;;
18315
18316     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18317     freebsd* | kfreebsd*-gnu | dragonfly*)
18318       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18319       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18320       hardcode_direct_GCJ=yes
18321       hardcode_shlibpath_var_GCJ=no
18322       ;;
18323
18324     hpux9*)
18325       if test "$GCC" = yes; then
18326         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'
18327       else
18328         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'
18329       fi
18330       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18331       hardcode_libdir_separator_GCJ=:
18332       hardcode_direct_GCJ=yes
18333
18334       # hardcode_minus_L: Not really in the search PATH,
18335       # but as the default location of the library.
18336       hardcode_minus_L_GCJ=yes
18337       export_dynamic_flag_spec_GCJ='${wl}-E'
18338       ;;
18339
18340     hpux10*)
18341       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18342         archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18343       else
18344         archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18345       fi
18346       if test "$with_gnu_ld" = no; then
18347         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18348         hardcode_libdir_separator_GCJ=:
18349
18350         hardcode_direct_GCJ=yes
18351         export_dynamic_flag_spec_GCJ='${wl}-E'
18352
18353         # hardcode_minus_L: Not really in the search PATH,
18354         # but as the default location of the library.
18355         hardcode_minus_L_GCJ=yes
18356       fi
18357       ;;
18358
18359     hpux11*)
18360       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18361         case $host_cpu in
18362         hppa*64*)
18363           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18364           ;;
18365         ia64*)
18366           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18367           ;;
18368         *)
18369           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18370           ;;
18371         esac
18372       else
18373         case $host_cpu in
18374         hppa*64*)
18375           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18376           ;;
18377         ia64*)
18378           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18379           ;;
18380         *)
18381           archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18382           ;;
18383         esac
18384       fi
18385       if test "$with_gnu_ld" = no; then
18386         hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18387         hardcode_libdir_separator_GCJ=:
18388
18389         case $host_cpu in
18390         hppa*64*|ia64*)
18391           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18392           hardcode_direct_GCJ=no
18393           hardcode_shlibpath_var_GCJ=no
18394           ;;
18395         *)
18396           hardcode_direct_GCJ=yes
18397           export_dynamic_flag_spec_GCJ='${wl}-E'
18398
18399           # hardcode_minus_L: Not really in the search PATH,
18400           # but as the default location of the library.
18401           hardcode_minus_L_GCJ=yes
18402           ;;
18403         esac
18404       fi
18405       ;;
18406
18407     irix5* | irix6* | nonstopux*)
18408       if test "$GCC" = yes; then
18409         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'
18410       else
18411         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'
18412         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18413       fi
18414       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18415       hardcode_libdir_separator_GCJ=:
18416       link_all_deplibs_GCJ=yes
18417       ;;
18418
18419     netbsd*)
18420       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18421         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
18422       else
18423         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
18424       fi
18425       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18426       hardcode_direct_GCJ=yes
18427       hardcode_shlibpath_var_GCJ=no
18428       ;;
18429
18430     newsos6)
18431       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18432       hardcode_direct_GCJ=yes
18433       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18434       hardcode_libdir_separator_GCJ=:
18435       hardcode_shlibpath_var_GCJ=no
18436       ;;
18437
18438     openbsd*)
18439       hardcode_direct_GCJ=yes
18440       hardcode_shlibpath_var_GCJ=no
18441       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18442         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18443         archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18444         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18445         export_dynamic_flag_spec_GCJ='${wl}-E'
18446       else
18447        case $host_os in
18448          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18449            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18450            hardcode_libdir_flag_spec_GCJ='-R$libdir'
18451            ;;
18452          *)
18453            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18454            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18455            ;;
18456        esac
18457       fi
18458       ;;
18459
18460     os2*)
18461       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18462       hardcode_minus_L_GCJ=yes
18463       allow_undefined_flag_GCJ=unsupported
18464       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'
18465       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18466       ;;
18467
18468     osf3*)
18469       if test "$GCC" = yes; then
18470         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18471         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'
18472       else
18473         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18474         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'
18475       fi
18476       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18477       hardcode_libdir_separator_GCJ=:
18478       ;;
18479
18480     osf4* | osf5*)      # as osf3* with the addition of -msym flag
18481       if test "$GCC" = yes; then
18482         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18483         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'
18484         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18485       else
18486         allow_undefined_flag_GCJ=' -expect_unresolved \*'
18487         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'
18488         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~
18489         $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'
18490
18491         # Both c and cxx compiler support -rpath directly
18492         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18493       fi
18494       hardcode_libdir_separator_GCJ=:
18495       ;;
18496
18497     solaris*)
18498       no_undefined_flag_GCJ=' -z text'
18499       if test "$GCC" = yes; then
18500         wlarc='${wl}'
18501         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18502         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18503           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18504       else
18505         wlarc=''
18506         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18507         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18508         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18509       fi
18510       hardcode_libdir_flag_spec_GCJ='-R$libdir'
18511       hardcode_shlibpath_var_GCJ=no
18512       case $host_os in
18513       solaris2.[0-5] | solaris2.[0-5].*) ;;
18514       *)
18515         # The compiler driver will combine linker options so we
18516         # cannot just pass the convience library names through
18517         # without $wl, iff we do not link with $LD.
18518         # Luckily, gcc supports the same syntax we need for Sun Studio.
18519         # Supported since Solaris 2.6 (maybe 2.5.1?)
18520         case $wlarc in
18521         '')
18522           whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18523         *)
18524           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' ;;
18525         esac ;;
18526       esac
18527       link_all_deplibs_GCJ=yes
18528       ;;
18529
18530     sunos4*)
18531       if test "x$host_vendor" = xsequent; then
18532         # Use $CC to link under sequent, because it throws in some extra .o
18533         # files that make .init and .fini sections work.
18534         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18535       else
18536         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18537       fi
18538       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18539       hardcode_direct_GCJ=yes
18540       hardcode_minus_L_GCJ=yes
18541       hardcode_shlibpath_var_GCJ=no
18542       ;;
18543
18544     sysv4)
18545       case $host_vendor in
18546         sni)
18547           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18548           hardcode_direct_GCJ=yes # is this really true???
18549         ;;
18550         siemens)
18551           ## LD is ld it makes a PLAMLIB
18552           ## CC just makes a GrossModule.
18553           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18554           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18555           hardcode_direct_GCJ=no
18556         ;;
18557         motorola)
18558           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18559           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18560         ;;
18561       esac
18562       runpath_var='LD_RUN_PATH'
18563       hardcode_shlibpath_var_GCJ=no
18564       ;;
18565
18566     sysv4.3*)
18567       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18568       hardcode_shlibpath_var_GCJ=no
18569       export_dynamic_flag_spec_GCJ='-Bexport'
18570       ;;
18571
18572     sysv4*MP*)
18573       if test -d /usr/nec; then
18574         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18575         hardcode_shlibpath_var_GCJ=no
18576         runpath_var=LD_RUN_PATH
18577         hardcode_runpath_var=yes
18578         ld_shlibs_GCJ=yes
18579       fi
18580       ;;
18581
18582     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
18583       no_undefined_flag_GCJ='${wl}-z,text'
18584       archive_cmds_need_lc_GCJ=no
18585       hardcode_shlibpath_var_GCJ=no
18586       runpath_var='LD_RUN_PATH'
18587
18588       if test "$GCC" = yes; then
18589         archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18590         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18591       else
18592         archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18593         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18594       fi
18595       ;;
18596
18597     sysv5* | sco3.2v5* | sco5v6*)
18598       # Note: We can NOT use -z defs as we might desire, because we do not
18599       # link with -lc, and that would cause any symbols used from libc to
18600       # always be unresolved, which means just about no library would
18601       # ever link correctly.  If we're not using GNU ld we use -z text
18602       # though, which does catch some bad symbols but isn't as heavy-handed
18603       # as -z defs.
18604       no_undefined_flag_GCJ='${wl}-z,text'
18605       allow_undefined_flag_GCJ='${wl}-z,nodefs'
18606       archive_cmds_need_lc_GCJ=no
18607       hardcode_shlibpath_var_GCJ=no
18608       hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18609       hardcode_libdir_separator_GCJ=':'
18610       link_all_deplibs_GCJ=yes
18611       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18612       runpath_var='LD_RUN_PATH'
18613
18614       if test "$GCC" = yes; then
18615         archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18616         archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18617       else
18618         archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18619         archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18620       fi
18621       ;;
18622
18623     uts4*)
18624       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18625       hardcode_libdir_flag_spec_GCJ='-L$libdir'
18626       hardcode_shlibpath_var_GCJ=no
18627       ;;
18628
18629     *)
18630       ld_shlibs_GCJ=no
18631       ;;
18632     esac
18633   fi
18634
18635 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18636 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18637 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18638
18639 #
18640 # Do we need to explicitly link libc?
18641 #
18642 case "x$archive_cmds_need_lc_GCJ" in
18643 x|xyes)
18644   # Assume -lc should be added
18645   archive_cmds_need_lc_GCJ=yes
18646
18647   if test "$enable_shared" = yes && test "$GCC" = yes; then
18648     case $archive_cmds_GCJ in
18649     *'~'*)
18650       # FIXME: we may have to deal with multi-command sequences.
18651       ;;
18652     '$CC '*)
18653       # Test whether the compiler implicitly links with -lc since on some
18654       # systems, -lgcc has to come before -lc. If gcc already passes -lc
18655       # to ld, don't add -lc before -lgcc.
18656       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18657 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18658       $rm conftest*
18659       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18660
18661       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18662   (eval $ac_compile) 2>&5
18663   ac_status=$?
18664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18665   (exit $ac_status); } 2>conftest.err; then
18666         soname=conftest
18667         lib=conftest
18668         libobjs=conftest.$ac_objext
18669         deplibs=
18670         wl=$lt_prog_compiler_wl_GCJ
18671         pic_flag=$lt_prog_compiler_pic_GCJ
18672         compiler_flags=-v
18673         linker_flags=-v
18674         verstring=
18675         output_objdir=.
18676         libname=conftest
18677         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18678         allow_undefined_flag_GCJ=
18679         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18680   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18681   ac_status=$?
18682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18683   (exit $ac_status); }
18684         then
18685           archive_cmds_need_lc_GCJ=no
18686         else
18687           archive_cmds_need_lc_GCJ=yes
18688         fi
18689         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18690       else
18691         cat conftest.err 1>&5
18692       fi
18693       $rm conftest*
18694       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18695 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18696       ;;
18697     esac
18698   fi
18699   ;;
18700 esac
18701
18702 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18703 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18704 library_names_spec=
18705 libname_spec='lib$name'
18706 soname_spec=
18707 shrext_cmds=".so"
18708 postinstall_cmds=
18709 postuninstall_cmds=
18710 finish_cmds=
18711 finish_eval=
18712 shlibpath_var=
18713 shlibpath_overrides_runpath=unknown
18714 version_type=none
18715 dynamic_linker="$host_os ld.so"
18716 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18717 if test "$GCC" = yes; then
18718   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18719   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18720     # if the path contains ";" then we assume it to be the separator
18721     # otherwise default to the standard path separator (i.e. ":") - it is
18722     # assumed that no part of a normal pathname contains ";" but that should
18723     # okay in the real world where ";" in dirpaths is itself problematic.
18724     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18725   else
18726     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18727   fi
18728 else
18729   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18730 fi
18731 need_lib_prefix=unknown
18732 hardcode_into_libs=no
18733
18734 # when you set need_version to no, make sure it does not cause -set_version
18735 # flags to be left without arguments
18736 need_version=unknown
18737
18738 case $host_os in
18739 aix3*)
18740   version_type=linux
18741   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18742   shlibpath_var=LIBPATH
18743
18744   # AIX 3 has no versioning support, so we append a major version to the name.
18745   soname_spec='${libname}${release}${shared_ext}$major'
18746   ;;
18747
18748 aix4* | aix5*)
18749   version_type=linux
18750   need_lib_prefix=no
18751   need_version=no
18752   hardcode_into_libs=yes
18753   if test "$host_cpu" = ia64; then
18754     # AIX 5 supports IA64
18755     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18756     shlibpath_var=LD_LIBRARY_PATH
18757   else
18758     # With GCC up to 2.95.x, collect2 would create an import file
18759     # for dependence libraries.  The import file would start with
18760     # the line `#! .'.  This would cause the generated library to
18761     # depend on `.', always an invalid library.  This was fixed in
18762     # development snapshots of GCC prior to 3.0.
18763     case $host_os in
18764       aix4 | aix4.[01] | aix4.[01].*)
18765       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18766            echo ' yes '
18767            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18768         :
18769       else
18770         can_build_shared=no
18771       fi
18772       ;;
18773     esac
18774     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18775     # soname into executable. Probably we can add versioning support to
18776     # collect2, so additional links can be useful in future.
18777     if test "$aix_use_runtimelinking" = yes; then
18778       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18779       # instead of lib<name>.a to let people know that these are not
18780       # typical AIX shared libraries.
18781       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18782     else
18783       # We preserve .a as extension for shared libraries through AIX4.2
18784       # and later when we are not doing run time linking.
18785       library_names_spec='${libname}${release}.a $libname.a'
18786       soname_spec='${libname}${release}${shared_ext}$major'
18787     fi
18788     shlibpath_var=LIBPATH
18789   fi
18790   ;;
18791
18792 amigaos*)
18793   library_names_spec='$libname.ixlibrary $libname.a'
18794   # Create ${libname}_ixlibrary.a entries in /sys/libs.
18795   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'
18796   ;;
18797
18798 beos*)
18799   library_names_spec='${libname}${shared_ext}'
18800   dynamic_linker="$host_os ld.so"
18801   shlibpath_var=LIBRARY_PATH
18802   ;;
18803
18804 bsdi[45]*)
18805   version_type=linux
18806   need_version=no
18807   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18808   soname_spec='${libname}${release}${shared_ext}$major'
18809   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18810   shlibpath_var=LD_LIBRARY_PATH
18811   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18812   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18813   # the default ld.so.conf also contains /usr/contrib/lib and
18814   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18815   # libtool to hard-code these into programs
18816   ;;
18817
18818 cygwin* | mingw* | pw32*)
18819   version_type=windows
18820   shrext_cmds=".dll"
18821   need_version=no
18822   need_lib_prefix=no
18823
18824   case $GCC,$host_os in
18825   yes,cygwin* | yes,mingw* | yes,pw32*)
18826     library_names_spec='$libname.dll.a'
18827     # DLL is installed to $(libdir)/../bin by postinstall_cmds
18828     postinstall_cmds='base_file=`basename \${file}`~
18829       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18830       dldir=$destdir/`dirname \$dlpath`~
18831       test -d \$dldir || mkdir -p \$dldir~
18832       $install_prog $dir/$dlname \$dldir/$dlname~
18833       chmod a+x \$dldir/$dlname'
18834     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18835       dlpath=$dir/\$dldll~
18836        $rm \$dlpath'
18837     shlibpath_overrides_runpath=yes
18838
18839     case $host_os in
18840     cygwin*)
18841       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18842       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18843       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18844       ;;
18845     mingw*)
18846       # MinGW DLLs use traditional 'lib' prefix
18847       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18848       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18849       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18850         # It is most probably a Windows format PATH printed by
18851         # mingw gcc, but we are running on Cygwin. Gcc prints its search
18852         # path with ; separators, and with drive letters. We can handle the
18853         # drive letters (cygwin fileutils understands them), so leave them,
18854         # especially as we might pass files found there to a mingw objdump,
18855         # which wouldn't understand a cygwinified path. Ahh.
18856         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18857       else
18858         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
18859       fi
18860       ;;
18861     pw32*)
18862       # pw32 DLLs use 'pw' prefix rather than 'lib'
18863       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18864       ;;
18865     esac
18866     ;;
18867
18868   *)
18869     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18870     ;;
18871   esac
18872   dynamic_linker='Win32 ld.exe'
18873   # FIXME: first we should search . and the directory the executable is in
18874   shlibpath_var=PATH
18875   ;;
18876
18877 darwin* | rhapsody*)
18878   dynamic_linker="$host_os dyld"
18879   version_type=darwin
18880   need_lib_prefix=no
18881   need_version=no
18882   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18883   soname_spec='${libname}${release}${major}$shared_ext'
18884   shlibpath_overrides_runpath=yes
18885   shlibpath_var=DYLD_LIBRARY_PATH
18886   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18887   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18888   if test "$GCC" = yes; then
18889     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"`
18890   else
18891     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18892   fi
18893   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18894   ;;
18895
18896 dgux*)
18897   version_type=linux
18898   need_lib_prefix=no
18899   need_version=no
18900   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18901   soname_spec='${libname}${release}${shared_ext}$major'
18902   shlibpath_var=LD_LIBRARY_PATH
18903   ;;
18904
18905 freebsd1*)
18906   dynamic_linker=no
18907   ;;
18908
18909 kfreebsd*-gnu)
18910   version_type=linux
18911   need_lib_prefix=no
18912   need_version=no
18913   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18914   soname_spec='${libname}${release}${shared_ext}$major'
18915   shlibpath_var=LD_LIBRARY_PATH
18916   shlibpath_overrides_runpath=no
18917   hardcode_into_libs=yes
18918   dynamic_linker='GNU ld.so'
18919   ;;
18920
18921 freebsd* | dragonfly*)
18922   # DragonFly does not have aout.  When/if they implement a new
18923   # versioning mechanism, adjust this.
18924   if test -x /usr/bin/objformat; then
18925     objformat=`/usr/bin/objformat`
18926   else
18927     case $host_os in
18928     freebsd[123]*) objformat=aout ;;
18929     *) objformat=elf ;;
18930     esac
18931   fi
18932   version_type=freebsd-$objformat
18933   case $version_type in
18934     freebsd-elf*)
18935       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18936       need_version=no
18937       need_lib_prefix=no
18938       ;;
18939     freebsd-*)
18940       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18941       need_version=yes
18942       ;;
18943   esac
18944   shlibpath_var=LD_LIBRARY_PATH
18945   case $host_os in
18946   freebsd2*)
18947     shlibpath_overrides_runpath=yes
18948     ;;
18949   freebsd3.[01]* | freebsdelf3.[01]*)
18950     shlibpath_overrides_runpath=yes
18951     hardcode_into_libs=yes
18952     ;;
18953   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18954   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18955     shlibpath_overrides_runpath=no
18956     hardcode_into_libs=yes
18957     ;;
18958   freebsd*) # from 4.6 on
18959     shlibpath_overrides_runpath=yes
18960     hardcode_into_libs=yes
18961     ;;
18962   esac
18963   ;;
18964
18965 gnu*)
18966   version_type=linux
18967   need_lib_prefix=no
18968   need_version=no
18969   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18970   soname_spec='${libname}${release}${shared_ext}$major'
18971   shlibpath_var=LD_LIBRARY_PATH
18972   hardcode_into_libs=yes
18973   ;;
18974
18975 hpux9* | hpux10* | hpux11*)
18976   # Give a soname corresponding to the major version so that dld.sl refuses to
18977   # link against other versions.
18978   version_type=sunos
18979   need_lib_prefix=no
18980   need_version=no
18981   case $host_cpu in
18982   ia64*)
18983     shrext_cmds='.so'
18984     hardcode_into_libs=yes
18985     dynamic_linker="$host_os dld.so"
18986     shlibpath_var=LD_LIBRARY_PATH
18987     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18988     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18989     soname_spec='${libname}${release}${shared_ext}$major'
18990     if test "X$HPUX_IA64_MODE" = X32; then
18991       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18992     else
18993       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18994     fi
18995     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18996     ;;
18997    hppa*64*)
18998      shrext_cmds='.sl'
18999      hardcode_into_libs=yes
19000      dynamic_linker="$host_os dld.sl"
19001      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19002      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19003      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19004      soname_spec='${libname}${release}${shared_ext}$major'
19005      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19006      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19007      ;;
19008    *)
19009     shrext_cmds='.sl'
19010     dynamic_linker="$host_os dld.sl"
19011     shlibpath_var=SHLIB_PATH
19012     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19013     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19014     soname_spec='${libname}${release}${shared_ext}$major'
19015     ;;
19016   esac
19017   # HP-UX runs *really* slowly unless shared libraries are mode 555.
19018   postinstall_cmds='chmod 555 $lib'
19019   ;;
19020
19021 interix3*)
19022   version_type=linux
19023   need_lib_prefix=no
19024   need_version=no
19025   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19026   soname_spec='${libname}${release}${shared_ext}$major'
19027   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19028   shlibpath_var=LD_LIBRARY_PATH
19029   shlibpath_overrides_runpath=no
19030   hardcode_into_libs=yes
19031   ;;
19032
19033 irix5* | irix6* | nonstopux*)
19034   case $host_os in
19035     nonstopux*) version_type=nonstopux ;;
19036     *)
19037         if test "$lt_cv_prog_gnu_ld" = yes; then
19038                 version_type=linux
19039         else
19040                 version_type=irix
19041         fi ;;
19042   esac
19043   need_lib_prefix=no
19044   need_version=no
19045   soname_spec='${libname}${release}${shared_ext}$major'
19046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19047   case $host_os in
19048   irix5* | nonstopux*)
19049     libsuff= shlibsuff=
19050     ;;
19051   *)
19052     case $LD in # libtool.m4 will add one of these switches to LD
19053     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19054       libsuff= shlibsuff= libmagic=32-bit;;
19055     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19056       libsuff=32 shlibsuff=N32 libmagic=N32;;
19057     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19058       libsuff=64 shlibsuff=64 libmagic=64-bit;;
19059     *) libsuff= shlibsuff= libmagic=never-match;;
19060     esac
19061     ;;
19062   esac
19063   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19064   shlibpath_overrides_runpath=no
19065   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19066   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19067   hardcode_into_libs=yes
19068   ;;
19069
19070 # No shared lib support for Linux oldld, aout, or coff.
19071 linux*oldld* | linux*aout* | linux*coff*)
19072   dynamic_linker=no
19073   ;;
19074
19075 # This must be Linux ELF.
19076 linux*)
19077   version_type=linux
19078   need_lib_prefix=no
19079   need_version=no
19080   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19081   soname_spec='${libname}${release}${shared_ext}$major'
19082   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19083   shlibpath_var=LD_LIBRARY_PATH
19084   shlibpath_overrides_runpath=no
19085   # This implies no fast_install, which is unacceptable.
19086   # Some rework will be needed to allow for fast_install
19087   # before this can be enabled.
19088   hardcode_into_libs=yes
19089
19090   # find out which ABI we are using
19091   libsuff=
19092   case "$host_cpu" in
19093   x86_64*|s390x*|powerpc64*)
19094     echo '#line 19094 "configure"' > conftest.$ac_ext
19095     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19096   (eval $ac_compile) 2>&5
19097   ac_status=$?
19098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099   (exit $ac_status); }; then
19100       case `/usr/bin/file conftest.$ac_objext` in
19101       *64-bit*)
19102         libsuff=64
19103         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
19104         ;;
19105       esac
19106     fi
19107     rm -rf conftest*
19108     ;;
19109   esac
19110
19111   # Append ld.so.conf contents to the search path
19112   if test -f /etc/ld.so.conf; then
19113     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' ' '`
19114     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
19115   fi
19116
19117   # We used to test for /lib/ld.so.1 and disable shared libraries on
19118   # powerpc, because MkLinux only supported shared libraries with the
19119   # GNU dynamic linker.  Since this was broken with cross compilers,
19120   # most powerpc-linux boxes support dynamic linking these days and
19121   # people can always --disable-shared, the test was removed, and we
19122   # assume the GNU/Linux dynamic linker is in use.
19123   dynamic_linker='GNU/Linux ld.so'
19124   ;;
19125
19126 knetbsd*-gnu)
19127   version_type=linux
19128   need_lib_prefix=no
19129   need_version=no
19130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19131   soname_spec='${libname}${release}${shared_ext}$major'
19132   shlibpath_var=LD_LIBRARY_PATH
19133   shlibpath_overrides_runpath=no
19134   hardcode_into_libs=yes
19135   dynamic_linker='GNU ld.so'
19136   ;;
19137
19138 netbsd*)
19139   version_type=sunos
19140   need_lib_prefix=no
19141   need_version=no
19142   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19143     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19144     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19145     dynamic_linker='NetBSD (a.out) ld.so'
19146   else
19147     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19148     soname_spec='${libname}${release}${shared_ext}$major'
19149     dynamic_linker='NetBSD ld.elf_so'
19150   fi
19151   shlibpath_var=LD_LIBRARY_PATH
19152   shlibpath_overrides_runpath=yes
19153   hardcode_into_libs=yes
19154   ;;
19155
19156 newsos6)
19157   version_type=linux
19158   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19159   shlibpath_var=LD_LIBRARY_PATH
19160   shlibpath_overrides_runpath=yes
19161   ;;
19162
19163 nto-qnx*)
19164   version_type=linux
19165   need_lib_prefix=no
19166   need_version=no
19167   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19168   soname_spec='${libname}${release}${shared_ext}$major'
19169   shlibpath_var=LD_LIBRARY_PATH
19170   shlibpath_overrides_runpath=yes
19171   ;;
19172
19173 openbsd*)
19174   version_type=sunos
19175   sys_lib_dlsearch_path_spec="/usr/lib"
19176   need_lib_prefix=no
19177   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19178   case $host_os in
19179     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19180     *)                         need_version=no  ;;
19181   esac
19182   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19183   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19184   shlibpath_var=LD_LIBRARY_PATH
19185   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19186     case $host_os in
19187       openbsd2.[89] | openbsd2.[89].*)
19188         shlibpath_overrides_runpath=no
19189         ;;
19190       *)
19191         shlibpath_overrides_runpath=yes
19192         ;;
19193       esac
19194   else
19195     shlibpath_overrides_runpath=yes
19196   fi
19197   ;;
19198
19199 os2*)
19200   libname_spec='$name'
19201   shrext_cmds=".dll"
19202   need_lib_prefix=no
19203   library_names_spec='$libname${shared_ext} $libname.a'
19204   dynamic_linker='OS/2 ld.exe'
19205   shlibpath_var=LIBPATH
19206   ;;
19207
19208 osf3* | osf4* | osf5*)
19209   version_type=osf
19210   need_lib_prefix=no
19211   need_version=no
19212   soname_spec='${libname}${release}${shared_ext}$major'
19213   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19214   shlibpath_var=LD_LIBRARY_PATH
19215   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19216   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19217   ;;
19218
19219 solaris*)
19220   version_type=linux
19221   need_lib_prefix=no
19222   need_version=no
19223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19224   soname_spec='${libname}${release}${shared_ext}$major'
19225   shlibpath_var=LD_LIBRARY_PATH
19226   shlibpath_overrides_runpath=yes
19227   hardcode_into_libs=yes
19228   # ldd complains unless libraries are executable
19229   postinstall_cmds='chmod +x $lib'
19230   ;;
19231
19232 sunos4*)
19233   version_type=sunos
19234   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19235   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19236   shlibpath_var=LD_LIBRARY_PATH
19237   shlibpath_overrides_runpath=yes
19238   if test "$with_gnu_ld" = yes; then
19239     need_lib_prefix=no
19240   fi
19241   need_version=yes
19242   ;;
19243
19244 sysv4 | sysv4.3*)
19245   version_type=linux
19246   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19247   soname_spec='${libname}${release}${shared_ext}$major'
19248   shlibpath_var=LD_LIBRARY_PATH
19249   case $host_vendor in
19250     sni)
19251       shlibpath_overrides_runpath=no
19252       need_lib_prefix=no
19253       export_dynamic_flag_spec='${wl}-Blargedynsym'
19254       runpath_var=LD_RUN_PATH
19255       ;;
19256     siemens)
19257       need_lib_prefix=no
19258       ;;
19259     motorola)
19260       need_lib_prefix=no
19261       need_version=no
19262       shlibpath_overrides_runpath=no
19263       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19264       ;;
19265   esac
19266   ;;
19267
19268 sysv4*MP*)
19269   if test -d /usr/nec ;then
19270     version_type=linux
19271     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19272     soname_spec='$libname${shared_ext}.$major'
19273     shlibpath_var=LD_LIBRARY_PATH
19274   fi
19275   ;;
19276
19277 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19278   version_type=freebsd-elf
19279   need_lib_prefix=no
19280   need_version=no
19281   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19282   soname_spec='${libname}${release}${shared_ext}$major'
19283   shlibpath_var=LD_LIBRARY_PATH
19284   hardcode_into_libs=yes
19285   if test "$with_gnu_ld" = yes; then
19286     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19287     shlibpath_overrides_runpath=no
19288   else
19289     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19290     shlibpath_overrides_runpath=yes
19291     case $host_os in
19292       sco3.2v5*)
19293         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19294         ;;
19295     esac
19296   fi
19297   sys_lib_dlsearch_path_spec='/usr/lib'
19298   ;;
19299
19300 uts4*)
19301   version_type=linux
19302   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19303   soname_spec='${libname}${release}${shared_ext}$major'
19304   shlibpath_var=LD_LIBRARY_PATH
19305   ;;
19306
19307 *)
19308   dynamic_linker=no
19309   ;;
19310 esac
19311 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19312 echo "${ECHO_T}$dynamic_linker" >&6
19313 test "$dynamic_linker" = no && can_build_shared=no
19314
19315 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19316 if test "$GCC" = yes; then
19317   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19318 fi
19319
19320 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19321 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19322 hardcode_action_GCJ=
19323 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19324    test -n "$runpath_var_GCJ" || \
19325    test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19326
19327   # We can hardcode non-existant directories.
19328   if test "$hardcode_direct_GCJ" != no &&
19329      # If the only mechanism to avoid hardcoding is shlibpath_var, we
19330      # have to relink, otherwise we might link with an installed library
19331      # when we should be linking with a yet-to-be-installed one
19332      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19333      test "$hardcode_minus_L_GCJ" != no; then
19334     # Linking always hardcodes the temporary library directory.
19335     hardcode_action_GCJ=relink
19336   else
19337     # We can link without hardcoding, and we can hardcode nonexisting dirs.
19338     hardcode_action_GCJ=immediate
19339   fi
19340 else
19341   # We cannot hardcode anything, or else we can only hardcode existing
19342   # directories.
19343   hardcode_action_GCJ=unsupported
19344 fi
19345 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19346 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19347
19348 if test "$hardcode_action_GCJ" = relink; then
19349   # Fast installation is not supported
19350   enable_fast_install=no
19351 elif test "$shlibpath_overrides_runpath" = yes ||
19352      test "$enable_shared" = no; then
19353   # Fast installation is not necessary
19354   enable_fast_install=needless
19355 fi
19356
19357
19358 # The else clause should only fire when bootstrapping the
19359 # libtool distribution, otherwise you forgot to ship ltmain.sh
19360 # with your package, and you will get complaints that there are
19361 # no rules to generate ltmain.sh.
19362 if test -f "$ltmain"; then
19363   # See if we are running on zsh, and set the options which allow our commands through
19364   # without removal of \ escapes.
19365   if test -n "${ZSH_VERSION+set}" ; then
19366     setopt NO_GLOB_SUBST
19367   fi
19368   # Now quote all the things that may contain metacharacters while being
19369   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19370   # variables and quote the copies for generation of the libtool script.
19371   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19372     SED SHELL STRIP \
19373     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19374     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19375     deplibs_check_method reload_flag reload_cmds need_locks \
19376     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19377     lt_cv_sys_global_symbol_to_c_name_address \
19378     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19379     old_postinstall_cmds old_postuninstall_cmds \
19380     compiler_GCJ \
19381     CC_GCJ \
19382     LD_GCJ \
19383     lt_prog_compiler_wl_GCJ \
19384     lt_prog_compiler_pic_GCJ \
19385     lt_prog_compiler_static_GCJ \
19386     lt_prog_compiler_no_builtin_flag_GCJ \
19387     export_dynamic_flag_spec_GCJ \
19388     thread_safe_flag_spec_GCJ \
19389     whole_archive_flag_spec_GCJ \
19390     enable_shared_with_static_runtimes_GCJ \
19391     old_archive_cmds_GCJ \
19392     old_archive_from_new_cmds_GCJ \
19393     predep_objects_GCJ \
19394     postdep_objects_GCJ \
19395     predeps_GCJ \
19396     postdeps_GCJ \
19397     compiler_lib_search_path_GCJ \
19398     archive_cmds_GCJ \
19399     archive_expsym_cmds_GCJ \
19400     postinstall_cmds_GCJ \
19401     postuninstall_cmds_GCJ \
19402     old_archive_from_expsyms_cmds_GCJ \
19403     allow_undefined_flag_GCJ \
19404     no_undefined_flag_GCJ \
19405     export_symbols_cmds_GCJ \
19406     hardcode_libdir_flag_spec_GCJ \
19407     hardcode_libdir_flag_spec_ld_GCJ \
19408     hardcode_libdir_separator_GCJ \
19409     hardcode_automatic_GCJ \
19410     module_cmds_GCJ \
19411     module_expsym_cmds_GCJ \
19412     lt_cv_prog_compiler_c_o_GCJ \
19413     exclude_expsyms_GCJ \
19414     include_expsyms_GCJ; do
19415
19416     case $var in
19417     old_archive_cmds_GCJ | \
19418     old_archive_from_new_cmds_GCJ | \
19419     archive_cmds_GCJ | \
19420     archive_expsym_cmds_GCJ | \
19421     module_cmds_GCJ | \
19422     module_expsym_cmds_GCJ | \
19423     old_archive_from_expsyms_cmds_GCJ | \
19424     export_symbols_cmds_GCJ | \
19425     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19426     postinstall_cmds | postuninstall_cmds | \
19427     old_postinstall_cmds | old_postuninstall_cmds | \
19428     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19429       # Double-quote double-evaled strings.
19430       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19431       ;;
19432     *)
19433       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19434       ;;
19435     esac
19436   done
19437
19438   case $lt_echo in
19439   *'\$0 --fallback-echo"')
19440     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19441     ;;
19442   esac
19443
19444 cfgfile="$ofile"
19445
19446   cat <<__EOF__ >> "$cfgfile"
19447 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19448
19449 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19450
19451 # Shell to use when invoking shell scripts.
19452 SHELL=$lt_SHELL
19453
19454 # Whether or not to build shared libraries.
19455 build_libtool_libs=$enable_shared
19456
19457 # Whether or not to build static libraries.
19458 build_old_libs=$enable_static
19459
19460 # Whether or not to add -lc for building shared libraries.
19461 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19462
19463 # Whether or not to disallow shared libs when runtime libs are static
19464 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19465
19466 # Whether or not to optimize for fast installation.
19467 fast_install=$enable_fast_install
19468
19469 # The host system.
19470 host_alias=$host_alias
19471 host=$host
19472 host_os=$host_os
19473
19474 # The build system.
19475 build_alias=$build_alias
19476 build=$build
19477 build_os=$build_os
19478
19479 # An echo program that does not interpret backslashes.
19480 echo=$lt_echo
19481
19482 # The archiver.
19483 AR=$lt_AR
19484 AR_FLAGS=$lt_AR_FLAGS
19485
19486 # A C compiler.
19487 LTCC=$lt_LTCC
19488
19489 # LTCC compiler flags.
19490 LTCFLAGS=$lt_LTCFLAGS
19491
19492 # A language-specific compiler.
19493 CC=$lt_compiler_GCJ
19494
19495 # Is the compiler the GNU C compiler?
19496 with_gcc=$GCC_GCJ
19497
19498 # An ERE matcher.
19499 EGREP=$lt_EGREP
19500
19501 # The linker used to build libraries.
19502 LD=$lt_LD_GCJ
19503
19504 # Whether we need hard or soft links.
19505 LN_S=$lt_LN_S
19506
19507 # A BSD-compatible nm program.
19508 NM=$lt_NM
19509
19510 # A symbol stripping program
19511 STRIP=$lt_STRIP
19512
19513 # Used to examine libraries when file_magic_cmd begins "file"
19514 MAGIC_CMD=$MAGIC_CMD
19515
19516 # Used on cygwin: DLL creation program.
19517 DLLTOOL="$DLLTOOL"
19518
19519 # Used on cygwin: object dumper.
19520 OBJDUMP="$OBJDUMP"
19521
19522 # Used on cygwin: assembler.
19523 AS="$AS"
19524
19525 # The name of the directory that contains temporary libtool files.
19526 objdir=$objdir
19527
19528 # How to create reloadable object files.
19529 reload_flag=$lt_reload_flag
19530 reload_cmds=$lt_reload_cmds
19531
19532 # How to pass a linker flag through the compiler.
19533 wl=$lt_lt_prog_compiler_wl_GCJ
19534
19535 # Object file suffix (normally "o").
19536 objext="$ac_objext"
19537
19538 # Old archive suffix (normally "a").
19539 libext="$libext"
19540
19541 # Shared library suffix (normally ".so").
19542 shrext_cmds='$shrext_cmds'
19543
19544 # Executable file suffix (normally "").
19545 exeext="$exeext"
19546
19547 # Additional compiler flags for building library objects.
19548 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19549 pic_mode=$pic_mode
19550
19551 # What is the maximum length of a command?
19552 max_cmd_len=$lt_cv_sys_max_cmd_len
19553
19554 # Does compiler simultaneously support -c and -o options?
19555 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19556
19557 # Must we lock files when doing compilation?
19558 need_locks=$lt_need_locks
19559
19560 # Do we need the lib prefix for modules?
19561 need_lib_prefix=$need_lib_prefix
19562
19563 # Do we need a version for libraries?
19564 need_version=$need_version
19565
19566 # Whether dlopen is supported.
19567 dlopen_support=$enable_dlopen
19568
19569 # Whether dlopen of programs is supported.
19570 dlopen_self=$enable_dlopen_self
19571
19572 # Whether dlopen of statically linked programs is supported.
19573 dlopen_self_static=$enable_dlopen_self_static
19574
19575 # Compiler flag to prevent dynamic linking.
19576 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19577
19578 # Compiler flag to turn off builtin functions.
19579 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19580
19581 # Compiler flag to allow reflexive dlopens.
19582 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19583
19584 # Compiler flag to generate shared objects directly from archives.
19585 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19586
19587 # Compiler flag to generate thread-safe objects.
19588 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19589
19590 # Library versioning type.
19591 version_type=$version_type
19592
19593 # Format of library name prefix.
19594 libname_spec=$lt_libname_spec
19595
19596 # List of archive names.  First name is the real one, the rest are links.
19597 # The last name is the one that the linker finds with -lNAME.
19598 library_names_spec=$lt_library_names_spec
19599
19600 # The coded name of the library, if different from the real name.
19601 soname_spec=$lt_soname_spec
19602
19603 # Commands used to build and install an old-style archive.
19604 RANLIB=$lt_RANLIB
19605 old_archive_cmds=$lt_old_archive_cmds_GCJ
19606 old_postinstall_cmds=$lt_old_postinstall_cmds
19607 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19608
19609 # Create an old-style archive from a shared archive.
19610 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19611
19612 # Create a temporary old-style archive to link instead of a shared archive.
19613 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19614
19615 # Commands used to build and install a shared archive.
19616 archive_cmds=$lt_archive_cmds_GCJ
19617 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19618 postinstall_cmds=$lt_postinstall_cmds
19619 postuninstall_cmds=$lt_postuninstall_cmds
19620
19621 # Commands used to build a loadable module (assumed same as above if empty)
19622 module_cmds=$lt_module_cmds_GCJ
19623 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19624
19625 # Commands to strip libraries.
19626 old_striplib=$lt_old_striplib
19627 striplib=$lt_striplib
19628
19629 # Dependencies to place before the objects being linked to create a
19630 # shared library.
19631 predep_objects=$lt_predep_objects_GCJ
19632
19633 # Dependencies to place after the objects being linked to create a
19634 # shared library.
19635 postdep_objects=$lt_postdep_objects_GCJ
19636
19637 # Dependencies to place before the objects being linked to create a
19638 # shared library.
19639 predeps=$lt_predeps_GCJ
19640
19641 # Dependencies to place after the objects being linked to create a
19642 # shared library.
19643 postdeps=$lt_postdeps_GCJ
19644
19645 # The library search path used internally by the compiler when linking
19646 # a shared library.
19647 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19648
19649 # Method to check whether dependent libraries are shared objects.
19650 deplibs_check_method=$lt_deplibs_check_method
19651
19652 # Command to use when deplibs_check_method == file_magic.
19653 file_magic_cmd=$lt_file_magic_cmd
19654
19655 # Flag that allows shared libraries with undefined symbols to be built.
19656 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19657
19658 # Flag that forces no undefined symbols.
19659 no_undefined_flag=$lt_no_undefined_flag_GCJ
19660
19661 # Commands used to finish a libtool library installation in a directory.
19662 finish_cmds=$lt_finish_cmds
19663
19664 # Same as above, but a single script fragment to be evaled but not shown.
19665 finish_eval=$lt_finish_eval
19666
19667 # Take the output of nm and produce a listing of raw symbols and C names.
19668 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19669
19670 # Transform the output of nm in a proper C declaration
19671 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19672
19673 # Transform the output of nm in a C name address pair
19674 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19675
19676 # This is the shared library runtime path variable.
19677 runpath_var=$runpath_var
19678
19679 # This is the shared library path variable.
19680 shlibpath_var=$shlibpath_var
19681
19682 # Is shlibpath searched before the hard-coded library search path?
19683 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19684
19685 # How to hardcode a shared library path into an executable.
19686 hardcode_action=$hardcode_action_GCJ
19687
19688 # Whether we should hardcode library paths into libraries.
19689 hardcode_into_libs=$hardcode_into_libs
19690
19691 # Flag to hardcode \$libdir into a binary during linking.
19692 # This must work even if \$libdir does not exist.
19693 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19694
19695 # If ld is used when linking, flag to hardcode \$libdir into
19696 # a binary during linking. This must work even if \$libdir does
19697 # not exist.
19698 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19699
19700 # Whether we need a single -rpath flag with a separated argument.
19701 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19702
19703 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19704 # resulting binary.
19705 hardcode_direct=$hardcode_direct_GCJ
19706
19707 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19708 # resulting binary.
19709 hardcode_minus_L=$hardcode_minus_L_GCJ
19710
19711 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19712 # the resulting binary.
19713 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19714
19715 # Set to yes if building a shared library automatically hardcodes DIR into the library
19716 # and all subsequent libraries and executables linked against it.
19717 hardcode_automatic=$hardcode_automatic_GCJ
19718
19719 # Variables whose values should be saved in libtool wrapper scripts and
19720 # restored at relink time.
19721 variables_saved_for_relink="$variables_saved_for_relink"
19722
19723 # Whether libtool must link a program against all its dependency libraries.
19724 link_all_deplibs=$link_all_deplibs_GCJ
19725
19726 # Compile-time system search path for libraries
19727 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19728
19729 # Run-time system search path for libraries
19730 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19731
19732 # Fix the shell variable \$srcfile for the compiler.
19733 fix_srcfile_path="$fix_srcfile_path_GCJ"
19734
19735 # Set to yes if exported symbols are required.
19736 always_export_symbols=$always_export_symbols_GCJ
19737
19738 # The commands to list exported symbols.
19739 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19740
19741 # The commands to extract the exported symbol list from a shared archive.
19742 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19743
19744 # Symbols that should not be listed in the preloaded symbols.
19745 exclude_expsyms=$lt_exclude_expsyms_GCJ
19746
19747 # Symbols that must always be exported.
19748 include_expsyms=$lt_include_expsyms_GCJ
19749
19750 # ### END LIBTOOL TAG CONFIG: $tagname
19751
19752 __EOF__
19753
19754
19755 else
19756   # If there is no Makefile yet, we rely on a make rule to execute
19757   # `config.status --recheck' to rerun these tests and create the
19758   # libtool script then.
19759   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19760   if test -f "$ltmain_in"; then
19761     test -f Makefile && make "$ltmain"
19762   fi
19763 fi
19764
19765
19766 ac_ext=c
19767 ac_cpp='$CPP $CPPFLAGS'
19768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19771
19772 CC="$lt_save_CC"
19773
19774         else
19775           tagname=""
19776         fi
19777         ;;
19778
19779       RC)
19780
19781
19782
19783 # Source file extension for RC test sources.
19784 ac_ext=rc
19785
19786 # Object file extension for compiled RC test sources.
19787 objext=o
19788 objext_RC=$objext
19789
19790 # Code to be used in simple compile tests
19791 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
19792
19793 # Code to be used in simple link tests
19794 lt_simple_link_test_code="$lt_simple_compile_test_code"
19795
19796 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19797
19798 # If no C compiler was specified, use CC.
19799 LTCC=${LTCC-"$CC"}
19800
19801 # If no C compiler flags were specified, use CFLAGS.
19802 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19803
19804 # Allow CC to be a program name with arguments.
19805 compiler=$CC
19806
19807
19808 # save warnings/boilerplate of simple test code
19809 ac_outfile=conftest.$ac_objext
19810 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
19811 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19812 _lt_compiler_boilerplate=`cat conftest.err`
19813 $rm conftest*
19814
19815 ac_outfile=conftest.$ac_objext
19816 printf "$lt_simple_link_test_code" >conftest.$ac_ext
19817 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19818 _lt_linker_boilerplate=`cat conftest.err`
19819 $rm conftest*
19820
19821
19822 # Allow CC to be a program name with arguments.
19823 lt_save_CC="$CC"
19824 CC=${RC-"windres"}
19825 compiler=$CC
19826 compiler_RC=$CC
19827 for cc_temp in $compiler""; do
19828   case $cc_temp in
19829     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19830     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19831     \-*) ;;
19832     *) break;;
19833   esac
19834 done
19835 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19836
19837 lt_cv_prog_compiler_c_o_RC=yes
19838
19839 # The else clause should only fire when bootstrapping the
19840 # libtool distribution, otherwise you forgot to ship ltmain.sh
19841 # with your package, and you will get complaints that there are
19842 # no rules to generate ltmain.sh.
19843 if test -f "$ltmain"; then
19844   # See if we are running on zsh, and set the options which allow our commands through
19845   # without removal of \ escapes.
19846   if test -n "${ZSH_VERSION+set}" ; then
19847     setopt NO_GLOB_SUBST
19848   fi
19849   # Now quote all the things that may contain metacharacters while being
19850   # careful not to overquote the AC_SUBSTed values.  We take copies of the
19851   # variables and quote the copies for generation of the libtool script.
19852   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19853     SED SHELL STRIP \
19854     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19855     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19856     deplibs_check_method reload_flag reload_cmds need_locks \
19857     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19858     lt_cv_sys_global_symbol_to_c_name_address \
19859     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19860     old_postinstall_cmds old_postuninstall_cmds \
19861     compiler_RC \
19862     CC_RC \
19863     LD_RC \
19864     lt_prog_compiler_wl_RC \
19865     lt_prog_compiler_pic_RC \
19866     lt_prog_compiler_static_RC \
19867     lt_prog_compiler_no_builtin_flag_RC \
19868     export_dynamic_flag_spec_RC \
19869     thread_safe_flag_spec_RC \
19870     whole_archive_flag_spec_RC \
19871     enable_shared_with_static_runtimes_RC \
19872     old_archive_cmds_RC \
19873     old_archive_from_new_cmds_RC \
19874     predep_objects_RC \
19875     postdep_objects_RC \
19876     predeps_RC \
19877     postdeps_RC \
19878     compiler_lib_search_path_RC \
19879     archive_cmds_RC \
19880     archive_expsym_cmds_RC \
19881     postinstall_cmds_RC \
19882     postuninstall_cmds_RC \
19883     old_archive_from_expsyms_cmds_RC \
19884     allow_undefined_flag_RC \
19885     no_undefined_flag_RC \
19886     export_symbols_cmds_RC \
19887     hardcode_libdir_flag_spec_RC \
19888     hardcode_libdir_flag_spec_ld_RC \
19889     hardcode_libdir_separator_RC \
19890     hardcode_automatic_RC \
19891     module_cmds_RC \
19892     module_expsym_cmds_RC \
19893     lt_cv_prog_compiler_c_o_RC \
19894     exclude_expsyms_RC \
19895     include_expsyms_RC; do
19896
19897     case $var in
19898     old_archive_cmds_RC | \
19899     old_archive_from_new_cmds_RC | \
19900     archive_cmds_RC | \
19901     archive_expsym_cmds_RC | \
19902     module_cmds_RC | \
19903     module_expsym_cmds_RC | \
19904     old_archive_from_expsyms_cmds_RC | \
19905     export_symbols_cmds_RC | \
19906     extract_expsyms_cmds | reload_cmds | finish_cmds | \
19907     postinstall_cmds | postuninstall_cmds | \
19908     old_postinstall_cmds | old_postuninstall_cmds | \
19909     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19910       # Double-quote double-evaled strings.
19911       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19912       ;;
19913     *)
19914       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19915       ;;
19916     esac
19917   done
19918
19919   case $lt_echo in
19920   *'\$0 --fallback-echo"')
19921     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19922     ;;
19923   esac
19924
19925 cfgfile="$ofile"
19926
19927   cat <<__EOF__ >> "$cfgfile"
19928 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19929
19930 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19931
19932 # Shell to use when invoking shell scripts.
19933 SHELL=$lt_SHELL
19934
19935 # Whether or not to build shared libraries.
19936 build_libtool_libs=$enable_shared
19937
19938 # Whether or not to build static libraries.
19939 build_old_libs=$enable_static
19940
19941 # Whether or not to add -lc for building shared libraries.
19942 build_libtool_need_lc=$archive_cmds_need_lc_RC
19943
19944 # Whether or not to disallow shared libs when runtime libs are static
19945 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19946
19947 # Whether or not to optimize for fast installation.
19948 fast_install=$enable_fast_install
19949
19950 # The host system.
19951 host_alias=$host_alias
19952 host=$host
19953 host_os=$host_os
19954
19955 # The build system.
19956 build_alias=$build_alias
19957 build=$build
19958 build_os=$build_os
19959
19960 # An echo program that does not interpret backslashes.
19961 echo=$lt_echo
19962
19963 # The archiver.
19964 AR=$lt_AR
19965 AR_FLAGS=$lt_AR_FLAGS
19966
19967 # A C compiler.
19968 LTCC=$lt_LTCC
19969
19970 # LTCC compiler flags.
19971 LTCFLAGS=$lt_LTCFLAGS
19972
19973 # A language-specific compiler.
19974 CC=$lt_compiler_RC
19975
19976 # Is the compiler the GNU C compiler?
19977 with_gcc=$GCC_RC
19978
19979 # An ERE matcher.
19980 EGREP=$lt_EGREP
19981
19982 # The linker used to build libraries.
19983 LD=$lt_LD_RC
19984
19985 # Whether we need hard or soft links.
19986 LN_S=$lt_LN_S
19987
19988 # A BSD-compatible nm program.
19989 NM=$lt_NM
19990
19991 # A symbol stripping program
19992 STRIP=$lt_STRIP
19993
19994 # Used to examine libraries when file_magic_cmd begins "file"
19995 MAGIC_CMD=$MAGIC_CMD
19996
19997 # Used on cygwin: DLL creation program.
19998 DLLTOOL="$DLLTOOL"
19999
20000 # Used on cygwin: object dumper.
20001 OBJDUMP="$OBJDUMP"
20002
20003 # Used on cygwin: assembler.
20004 AS="$AS"
20005
20006 # The name of the directory that contains temporary libtool files.
20007 objdir=$objdir
20008
20009 # How to create reloadable object files.
20010 reload_flag=$lt_reload_flag
20011 reload_cmds=$lt_reload_cmds
20012
20013 # How to pass a linker flag through the compiler.
20014 wl=$lt_lt_prog_compiler_wl_RC
20015
20016 # Object file suffix (normally "o").
20017 objext="$ac_objext"
20018
20019 # Old archive suffix (normally "a").
20020 libext="$libext"
20021
20022 # Shared library suffix (normally ".so").
20023 shrext_cmds='$shrext_cmds'
20024
20025 # Executable file suffix (normally "").
20026 exeext="$exeext"
20027
20028 # Additional compiler flags for building library objects.
20029 pic_flag=$lt_lt_prog_compiler_pic_RC
20030 pic_mode=$pic_mode
20031
20032 # What is the maximum length of a command?
20033 max_cmd_len=$lt_cv_sys_max_cmd_len
20034
20035 # Does compiler simultaneously support -c and -o options?
20036 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20037
20038 # Must we lock files when doing compilation?
20039 need_locks=$lt_need_locks
20040
20041 # Do we need the lib prefix for modules?
20042 need_lib_prefix=$need_lib_prefix
20043
20044 # Do we need a version for libraries?
20045 need_version=$need_version
20046
20047 # Whether dlopen is supported.
20048 dlopen_support=$enable_dlopen
20049
20050 # Whether dlopen of programs is supported.
20051 dlopen_self=$enable_dlopen_self
20052
20053 # Whether dlopen of statically linked programs is supported.
20054 dlopen_self_static=$enable_dlopen_self_static
20055
20056 # Compiler flag to prevent dynamic linking.
20057 link_static_flag=$lt_lt_prog_compiler_static_RC
20058
20059 # Compiler flag to turn off builtin functions.
20060 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20061
20062 # Compiler flag to allow reflexive dlopens.
20063 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20064
20065 # Compiler flag to generate shared objects directly from archives.
20066 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20067
20068 # Compiler flag to generate thread-safe objects.
20069 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20070
20071 # Library versioning type.
20072 version_type=$version_type
20073
20074 # Format of library name prefix.
20075 libname_spec=$lt_libname_spec
20076
20077 # List of archive names.  First name is the real one, the rest are links.
20078 # The last name is the one that the linker finds with -lNAME.
20079 library_names_spec=$lt_library_names_spec
20080
20081 # The coded name of the library, if different from the real name.
20082 soname_spec=$lt_soname_spec
20083
20084 # Commands used to build and install an old-style archive.
20085 RANLIB=$lt_RANLIB
20086 old_archive_cmds=$lt_old_archive_cmds_RC
20087 old_postinstall_cmds=$lt_old_postinstall_cmds
20088 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20089
20090 # Create an old-style archive from a shared archive.
20091 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20092
20093 # Create a temporary old-style archive to link instead of a shared archive.
20094 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20095
20096 # Commands used to build and install a shared archive.
20097 archive_cmds=$lt_archive_cmds_RC
20098 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20099 postinstall_cmds=$lt_postinstall_cmds
20100 postuninstall_cmds=$lt_postuninstall_cmds
20101
20102 # Commands used to build a loadable module (assumed same as above if empty)
20103 module_cmds=$lt_module_cmds_RC
20104 module_expsym_cmds=$lt_module_expsym_cmds_RC
20105
20106 # Commands to strip libraries.
20107 old_striplib=$lt_old_striplib
20108 striplib=$lt_striplib
20109
20110 # Dependencies to place before the objects being linked to create a
20111 # shared library.
20112 predep_objects=$lt_predep_objects_RC
20113
20114 # Dependencies to place after the objects being linked to create a
20115 # shared library.
20116 postdep_objects=$lt_postdep_objects_RC
20117
20118 # Dependencies to place before the objects being linked to create a
20119 # shared library.
20120 predeps=$lt_predeps_RC
20121
20122 # Dependencies to place after the objects being linked to create a
20123 # shared library.
20124 postdeps=$lt_postdeps_RC
20125
20126 # The library search path used internally by the compiler when linking
20127 # a shared library.
20128 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20129
20130 # Method to check whether dependent libraries are shared objects.
20131 deplibs_check_method=$lt_deplibs_check_method
20132
20133 # Command to use when deplibs_check_method == file_magic.
20134 file_magic_cmd=$lt_file_magic_cmd
20135
20136 # Flag that allows shared libraries with undefined symbols to be built.
20137 allow_undefined_flag=$lt_allow_undefined_flag_RC
20138
20139 # Flag that forces no undefined symbols.
20140 no_undefined_flag=$lt_no_undefined_flag_RC
20141
20142 # Commands used to finish a libtool library installation in a directory.
20143 finish_cmds=$lt_finish_cmds
20144
20145 # Same as above, but a single script fragment to be evaled but not shown.
20146 finish_eval=$lt_finish_eval
20147
20148 # Take the output of nm and produce a listing of raw symbols and C names.
20149 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20150
20151 # Transform the output of nm in a proper C declaration
20152 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20153
20154 # Transform the output of nm in a C name address pair
20155 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20156
20157 # This is the shared library runtime path variable.
20158 runpath_var=$runpath_var
20159
20160 # This is the shared library path variable.
20161 shlibpath_var=$shlibpath_var
20162
20163 # Is shlibpath searched before the hard-coded library search path?
20164 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20165
20166 # How to hardcode a shared library path into an executable.
20167 hardcode_action=$hardcode_action_RC
20168
20169 # Whether we should hardcode library paths into libraries.
20170 hardcode_into_libs=$hardcode_into_libs
20171
20172 # Flag to hardcode \$libdir into a binary during linking.
20173 # This must work even if \$libdir does not exist.
20174 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20175
20176 # If ld is used when linking, flag to hardcode \$libdir into
20177 # a binary during linking. This must work even if \$libdir does
20178 # not exist.
20179 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20180
20181 # Whether we need a single -rpath flag with a separated argument.
20182 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20183
20184 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20185 # resulting binary.
20186 hardcode_direct=$hardcode_direct_RC
20187
20188 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20189 # resulting binary.
20190 hardcode_minus_L=$hardcode_minus_L_RC
20191
20192 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20193 # the resulting binary.
20194 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20195
20196 # Set to yes if building a shared library automatically hardcodes DIR into the library
20197 # and all subsequent libraries and executables linked against it.
20198 hardcode_automatic=$hardcode_automatic_RC
20199
20200 # Variables whose values should be saved in libtool wrapper scripts and
20201 # restored at relink time.
20202 variables_saved_for_relink="$variables_saved_for_relink"
20203
20204 # Whether libtool must link a program against all its dependency libraries.
20205 link_all_deplibs=$link_all_deplibs_RC
20206
20207 # Compile-time system search path for libraries
20208 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20209
20210 # Run-time system search path for libraries
20211 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20212
20213 # Fix the shell variable \$srcfile for the compiler.
20214 fix_srcfile_path="$fix_srcfile_path_RC"
20215
20216 # Set to yes if exported symbols are required.
20217 always_export_symbols=$always_export_symbols_RC
20218
20219 # The commands to list exported symbols.
20220 export_symbols_cmds=$lt_export_symbols_cmds_RC
20221
20222 # The commands to extract the exported symbol list from a shared archive.
20223 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20224
20225 # Symbols that should not be listed in the preloaded symbols.
20226 exclude_expsyms=$lt_exclude_expsyms_RC
20227
20228 # Symbols that must always be exported.
20229 include_expsyms=$lt_include_expsyms_RC
20230
20231 # ### END LIBTOOL TAG CONFIG: $tagname
20232
20233 __EOF__
20234
20235
20236 else
20237   # If there is no Makefile yet, we rely on a make rule to execute
20238   # `config.status --recheck' to rerun these tests and create the
20239   # libtool script then.
20240   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20241   if test -f "$ltmain_in"; then
20242     test -f Makefile && make "$ltmain"
20243   fi
20244 fi
20245
20246
20247 ac_ext=c
20248 ac_cpp='$CPP $CPPFLAGS'
20249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20252
20253 CC="$lt_save_CC"
20254
20255         ;;
20256
20257       *)
20258         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
20259 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
20260    { (exit 1); exit 1; }; }
20261         ;;
20262       esac
20263
20264       # Append the new tag name to the list of available tags.
20265       if test -n "$tagname" ; then
20266       available_tags="$available_tags $tagname"
20267     fi
20268     fi
20269   done
20270   IFS="$lt_save_ifs"
20271
20272   # Now substitute the updated list of available tags.
20273   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
20274     mv "${ofile}T" "$ofile"
20275     chmod +x "$ofile"
20276   else
20277     rm -f "${ofile}T"
20278     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
20279 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
20280    { (exit 1); exit 1; }; }
20281   fi
20282 fi
20283
20284
20285
20286 # This can be used to rebuild libtool when needed
20287 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
20288
20289 # Always use our own libtool.
20290 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
20291
20292 # Prevent multiple expansion
20293
20294
20295
20296
20297
20298
20299
20300
20301
20302
20303
20304
20305
20306
20307
20308
20309
20310
20311
20312
20313 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
20314 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
20315 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
20316 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
20317   echo $ECHO_N "(cached) $ECHO_C" >&6
20318 else
20319   cat >conftest.make <<\_ACEOF
20320 all:
20321         @echo 'ac_maketemp="$(MAKE)"'
20322 _ACEOF
20323 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
20324 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
20325 if test -n "$ac_maketemp"; then
20326   eval ac_cv_prog_make_${ac_make}_set=yes
20327 else
20328   eval ac_cv_prog_make_${ac_make}_set=no
20329 fi
20330 rm -f conftest.make
20331 fi
20332 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
20333   echo "$as_me:$LINENO: result: yes" >&5
20334 echo "${ECHO_T}yes" >&6
20335   SET_MAKE=
20336 else
20337   echo "$as_me:$LINENO: result: no" >&5
20338 echo "${ECHO_T}no" >&6
20339   SET_MAKE="MAKE=${MAKE-make}"
20340 fi
20341
20342
20343 if test "$need_glib" != "yes"; then
20344         GLIB_CFLAGS=
20345         GLIB_LIBS=
20346 else
20347         if  test "x${GLIBFOUND}" = "xyes"; then
20348
20349 cat >>confdefs.h <<\_ACEOF
20350 #define HAVE_GLIB 1
20351 _ACEOF
20352
20353         fi
20354 fi
20355
20356
20357
20358 if test "$enable_shared" == "yes"; then
20359   ENABLE_MODULES_TRUE=
20360   ENABLE_MODULES_FALSE='#'
20361 else
20362   ENABLE_MODULES_TRUE='#'
20363   ENABLE_MODULES_FALSE=
20364 fi
20365
20366 if test "$enable_shared" == "yes"; then
20367
20368 cat >>confdefs.h <<\_ACEOF
20369 #define ENABLE_MODULES 1
20370 _ACEOF
20371
20372 fi
20373
20374
20375
20376
20377 if test "$host" == "arm-apple-darwin"; then
20378
20379 cat >>confdefs.h <<\_ACEOF
20380 #define IPHONE 1
20381 _ACEOF
20382
20383    DEVICE_TYPE=iPhone
20384 fi
20385
20386
20387 cat >>confdefs.h <<_ACEOF
20388 #define DEVICE_TYPE "$DEVICE_TYPE"
20389 _ACEOF
20390
20391
20392
20393
20394
20395 for ac_header in stdarg.h valgrind/valgrind.h execinfo.h
20396 do
20397 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20399   echo "$as_me:$LINENO: checking for $ac_header" >&5
20400 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20401 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20402   echo $ECHO_N "(cached) $ECHO_C" >&6
20403 fi
20404 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20405 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20406 else
20407   # Is the header compilable?
20408 echo "$as_me:$LINENO: checking $ac_header usability" >&5
20409 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
20410 cat >conftest.$ac_ext <<_ACEOF
20411 /* confdefs.h.  */
20412 _ACEOF
20413 cat confdefs.h >>conftest.$ac_ext
20414 cat >>conftest.$ac_ext <<_ACEOF
20415 /* end confdefs.h.  */
20416 $ac_includes_default
20417 #include <$ac_header>
20418 _ACEOF
20419 rm -f conftest.$ac_objext
20420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20421   (eval $ac_compile) 2>conftest.er1
20422   ac_status=$?
20423   grep -v '^ *+' conftest.er1 >conftest.err
20424   rm -f conftest.er1
20425   cat conftest.err >&5
20426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427   (exit $ac_status); } &&
20428          { ac_try='test -z "$ac_c_werror_flag"
20429                          || test ! -s conftest.err'
20430   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20431   (eval $ac_try) 2>&5
20432   ac_status=$?
20433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20434   (exit $ac_status); }; } &&
20435          { ac_try='test -s conftest.$ac_objext'
20436   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20437   (eval $ac_try) 2>&5
20438   ac_status=$?
20439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440   (exit $ac_status); }; }; then
20441   ac_header_compiler=yes
20442 else
20443   echo "$as_me: failed program was:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20445
20446 ac_header_compiler=no
20447 fi
20448 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20449 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20450 echo "${ECHO_T}$ac_header_compiler" >&6
20451
20452 # Is the header present?
20453 echo "$as_me:$LINENO: checking $ac_header presence" >&5
20454 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
20455 cat >conftest.$ac_ext <<_ACEOF
20456 /* confdefs.h.  */
20457 _ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h.  */
20461 #include <$ac_header>
20462 _ACEOF
20463 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
20464   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
20465   ac_status=$?
20466   grep -v '^ *+' conftest.er1 >conftest.err
20467   rm -f conftest.er1
20468   cat conftest.err >&5
20469   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20470   (exit $ac_status); } >/dev/null; then
20471   if test -s conftest.err; then
20472     ac_cpp_err=$ac_c_preproc_warn_flag
20473     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20474   else
20475     ac_cpp_err=
20476   fi
20477 else
20478   ac_cpp_err=yes
20479 fi
20480 if test -z "$ac_cpp_err"; then
20481   ac_header_preproc=yes
20482 else
20483   echo "$as_me: failed program was:" >&5
20484 sed 's/^/| /' conftest.$ac_ext >&5
20485
20486   ac_header_preproc=no
20487 fi
20488 rm -f conftest.err conftest.$ac_ext
20489 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20490 echo "${ECHO_T}$ac_header_preproc" >&6
20491
20492 # So?  What about this header?
20493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20494   yes:no: )
20495     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20497     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20499     ac_header_preproc=yes
20500     ;;
20501   no:yes:* )
20502     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20504     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
20505 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
20506     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20508     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
20509 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
20510     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20512     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20514     (
20515       cat <<\_ASBOX
20516 ## ------------------------------------------ ##
20517 ## Report this to the AC_PACKAGE_NAME lists.  ##
20518 ## ------------------------------------------ ##
20519 _ASBOX
20520     ) |
20521       sed "s/^/$as_me: WARNING:     /" >&2
20522     ;;
20523 esac
20524 echo "$as_me:$LINENO: checking for $ac_header" >&5
20525 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
20526 if eval "test \"\${$as_ac_Header+set}\" = set"; then
20527   echo $ECHO_N "(cached) $ECHO_C" >&6
20528 else
20529   eval "$as_ac_Header=\$ac_header_preproc"
20530 fi
20531 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
20532 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
20533
20534 fi
20535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20536   cat >>confdefs.h <<_ACEOF
20537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20538 _ACEOF
20539
20540 fi
20541
20542 done
20543
20544
20545 echo
20546 echo CONFIGURATION SUMMARY
20547 for backend in $BACKENDS; do
20548     eval echo $backend: \${enable_${backend}}
20549 done
20550 echo
20551
20552                                         ac_config_files="$ac_config_files Makefile src/Makefile src/core/Makefile test/Makefile"
20553
20554 cat >confcache <<\_ACEOF
20555 # This file is a shell script that caches the results of configure
20556 # tests run on this system so they can be shared between configure
20557 # scripts and configure runs, see configure's option --config-cache.
20558 # It is not useful on other systems.  If it contains results you don't
20559 # want to keep, you may remove or edit it.
20560 #
20561 # config.status only pays attention to the cache file if you give it
20562 # the --recheck option to rerun configure.
20563 #
20564 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20565 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20566 # following values.
20567
20568 _ACEOF
20569
20570 # The following way of writing the cache mishandles newlines in values,
20571 # but we know of no workaround that is simple, portable, and efficient.
20572 # So, don't put newlines in cache variables' values.
20573 # Ultrix sh set writes to stderr and can't be redirected directly,
20574 # and sets the high bit in the cache file unless we assign to the vars.
20575 {
20576   (set) 2>&1 |
20577     case `(ac_space=' '; set | grep ac_space) 2>&1` in
20578     *ac_space=\ *)
20579       # `set' does not quote correctly, so add quotes (double-quote
20580       # substitution turns \\\\ into \\, and sed turns \\ into \).
20581       sed -n \
20582         "s/'/'\\\\''/g;
20583           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20584       ;;
20585     *)
20586       # `set' quotes correctly as required by POSIX, so do not add quotes.
20587       sed -n \
20588         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
20589       ;;
20590     esac;
20591 } |
20592   sed '
20593      t clear
20594      : clear
20595      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20596      t end
20597      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20598      : end' >>confcache
20599 if diff $cache_file confcache >/dev/null 2>&1; then :; else
20600   if test -w $cache_file; then
20601     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
20602     cat confcache >$cache_file
20603   else
20604     echo "not updating unwritable cache $cache_file"
20605   fi
20606 fi
20607 rm -f confcache
20608
20609 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20610 # Let make expand exec_prefix.
20611 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20612
20613 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20614 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20615 # trailing colons and then remove the whole line if VPATH becomes empty
20616 # (actually we leave an empty line to preserve line numbers).
20617 if test "x$srcdir" = x.; then
20618   ac_vpsub='/^[  ]*VPATH[        ]*=/{
20619 s/:*\$(srcdir):*/:/;
20620 s/:*\${srcdir}:*/:/;
20621 s/:*@srcdir@:*/:/;
20622 s/^\([^=]*=[     ]*\):*/\1/;
20623 s/:*$//;
20624 s/^[^=]*=[       ]*$//;
20625 }'
20626 fi
20627
20628 DEFS=-DHAVE_CONFIG_H
20629
20630 ac_libobjs=
20631 ac_ltlibobjs=
20632 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20633   # 1. Remove the extension, and $U if already installed.
20634   ac_i=`echo "$ac_i" |
20635          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
20636   # 2. Add them.
20637   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
20638   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
20639 done
20640 LIBOBJS=$ac_libobjs
20641
20642 LTLIBOBJS=$ac_ltlibobjs
20643
20644
20645 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20646   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20647 Usually this means the macro was only invoked conditionally." >&5
20648 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20649 Usually this means the macro was only invoked conditionally." >&2;}
20650    { (exit 1); exit 1; }; }
20651 fi
20652 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20653   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20654 Usually this means the macro was only invoked conditionally." >&5
20655 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20656 Usually this means the macro was only invoked conditionally." >&2;}
20657    { (exit 1); exit 1; }; }
20658 fi
20659 if test -z "${ENABLE_ECAL_TRUE}" && test -z "${ENABLE_ECAL_FALSE}"; then
20660   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_ECAL\" was never defined.
20661 Usually this means the macro was only invoked conditionally." >&5
20662 echo "$as_me: error: conditional \"ENABLE_ECAL\" was never defined.
20663 Usually this means the macro was only invoked conditionally." >&2;}
20664    { (exit 1); exit 1; }; }
20665 fi
20666 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20667   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20668 Usually this means the macro was only invoked conditionally." >&5
20669 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20670 Usually this means the macro was only invoked conditionally." >&2;}
20671    { (exit 1); exit 1; }; }
20672 fi
20673 if test -z "${ENABLE_MODULES_TRUE}" && test -z "${ENABLE_MODULES_FALSE}"; then
20674   { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MODULES\" was never defined.
20675 Usually this means the macro was only invoked conditionally." >&5
20676 echo "$as_me: error: conditional \"ENABLE_MODULES\" was never defined.
20677 Usually this means the macro was only invoked conditionally." >&2;}
20678    { (exit 1); exit 1; }; }
20679 fi
20680
20681 : ${CONFIG_STATUS=./config.status}
20682 ac_clean_files_save=$ac_clean_files
20683 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20684 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20685 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20686 cat >$CONFIG_STATUS <<_ACEOF
20687 #! $SHELL
20688 # Generated by $as_me.
20689 # Run this file to recreate the current configuration.
20690 # Compiler output produced by configure, useful for debugging
20691 # configure, is in config.log if it exists.
20692
20693 debug=false
20694 ac_cs_recheck=false
20695 ac_cs_silent=false
20696 SHELL=\${CONFIG_SHELL-$SHELL}
20697 _ACEOF
20698
20699 cat >>$CONFIG_STATUS <<\_ACEOF
20700 ## --------------------- ##
20701 ## M4sh Initialization.  ##
20702 ## --------------------- ##
20703
20704 # Be Bourne compatible
20705 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20706   emulate sh
20707   NULLCMD=:
20708   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20709   # is contrary to our usage.  Disable this feature.
20710   alias -g '${1+"$@"}'='"$@"'
20711 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20712   set -o posix
20713 fi
20714 DUALCASE=1; export DUALCASE # for MKS sh
20715
20716 # Support unset when possible.
20717 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20718   as_unset=unset
20719 else
20720   as_unset=false
20721 fi
20722
20723
20724 # Work around bugs in pre-3.0 UWIN ksh.
20725 $as_unset ENV MAIL MAILPATH
20726 PS1='$ '
20727 PS2='> '
20728 PS4='+ '
20729
20730 # NLS nuisances.
20731 for as_var in \
20732   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20733   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20734   LC_TELEPHONE LC_TIME
20735 do
20736   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20737     eval $as_var=C; export $as_var
20738   else
20739     $as_unset $as_var
20740   fi
20741 done
20742
20743 # Required to use basename.
20744 if expr a : '\(a\)' >/dev/null 2>&1; then
20745   as_expr=expr
20746 else
20747   as_expr=false
20748 fi
20749
20750 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
20751   as_basename=basename
20752 else
20753   as_basename=false
20754 fi
20755
20756
20757 # Name of the executable.
20758 as_me=`$as_basename "$0" ||
20759 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20760          X"$0" : 'X\(//\)$' \| \
20761          X"$0" : 'X\(/\)$' \| \
20762          .     : '\(.\)' 2>/dev/null ||
20763 echo X/"$0" |
20764     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
20765           /^X\/\(\/\/\)$/{ s//\1/; q; }
20766           /^X\/\(\/\).*/{ s//\1/; q; }
20767           s/.*/./; q'`
20768
20769
20770 # PATH needs CR, and LINENO needs CR and PATH.
20771 # Avoid depending upon Character Ranges.
20772 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20773 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20774 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20775 as_cr_digits='0123456789'
20776 as_cr_alnum=$as_cr_Letters$as_cr_digits
20777
20778 # The user is always right.
20779 if test "${PATH_SEPARATOR+set}" != set; then
20780   echo "#! /bin/sh" >conf$$.sh
20781   echo  "exit 0"   >>conf$$.sh
20782   chmod +x conf$$.sh
20783   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20784     PATH_SEPARATOR=';'
20785   else
20786     PATH_SEPARATOR=:
20787   fi
20788   rm -f conf$$.sh
20789 fi
20790
20791
20792   as_lineno_1=$LINENO
20793   as_lineno_2=$LINENO
20794   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20795   test "x$as_lineno_1" != "x$as_lineno_2" &&
20796   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
20797   # Find who we are.  Look in the path if we contain no path at all
20798   # relative or not.
20799   case $0 in
20800     *[\\/]* ) as_myself=$0 ;;
20801     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20802 for as_dir in $PATH
20803 do
20804   IFS=$as_save_IFS
20805   test -z "$as_dir" && as_dir=.
20806   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20807 done
20808
20809        ;;
20810   esac
20811   # We did not find ourselves, most probably we were run as `sh COMMAND'
20812   # in which case we are not to be found in the path.
20813   if test "x$as_myself" = x; then
20814     as_myself=$0
20815   fi
20816   if test ! -f "$as_myself"; then
20817     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
20818 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
20819    { (exit 1); exit 1; }; }
20820   fi
20821   case $CONFIG_SHELL in
20822   '')
20823     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20824 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
20825 do
20826   IFS=$as_save_IFS
20827   test -z "$as_dir" && as_dir=.
20828   for as_base in sh bash ksh sh5; do
20829          case $as_dir in
20830          /*)
20831            if ("$as_dir/$as_base" -c '
20832   as_lineno_1=$LINENO
20833   as_lineno_2=$LINENO
20834   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
20835   test "x$as_lineno_1" != "x$as_lineno_2" &&
20836   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
20837              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
20838              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
20839              CONFIG_SHELL=$as_dir/$as_base
20840              export CONFIG_SHELL
20841              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20842            fi;;
20843          esac
20844        done
20845 done
20846 ;;
20847   esac
20848
20849   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20850   # uniformly replaced by the line number.  The first 'sed' inserts a
20851   # line-number line before each line; the second 'sed' does the real
20852   # work.  The second script uses 'N' to pair each line-number line
20853   # with the numbered line, and appends trailing '-' during
20854   # substitution so that $LINENO is not a special case at line end.
20855   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20856   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20857   sed '=' <$as_myself |
20858     sed '
20859       N
20860       s,$,-,
20861       : loop
20862       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20863       t loop
20864       s,-$,,
20865       s,^['$as_cr_digits']*\n,,
20866     ' >$as_me.lineno &&
20867   chmod +x $as_me.lineno ||
20868     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20869 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20870    { (exit 1); exit 1; }; }
20871
20872   # Don't try to exec as it changes $[0], causing all sort of problems
20873   # (the dirname of $[0] is not the place where we might find the
20874   # original and so on.  Autoconf is especially sensible to this).
20875   . ./$as_me.lineno
20876   # Exit status is that of the last command.
20877   exit
20878 }
20879
20880
20881 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20882   *c*,-n*) ECHO_N= ECHO_C='
20883 ' ECHO_T='      ' ;;
20884   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20885   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20886 esac
20887
20888 if expr a : '\(a\)' >/dev/null 2>&1; then
20889   as_expr=expr
20890 else
20891   as_expr=false
20892 fi
20893
20894 rm -f conf$$ conf$$.exe conf$$.file
20895 echo >conf$$.file
20896 if ln -s conf$$.file conf$$ 2>/dev/null; then
20897   # We could just check for DJGPP; but this test a) works b) is more generic
20898   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20899   if test -f conf$$.exe; then
20900     # Don't use ln at all; we don't have any links
20901     as_ln_s='cp -p'
20902   else
20903     as_ln_s='ln -s'
20904   fi
20905 elif ln conf$$.file conf$$ 2>/dev/null; then
20906   as_ln_s=ln
20907 else
20908   as_ln_s='cp -p'
20909 fi
20910 rm -f conf$$ conf$$.exe conf$$.file
20911
20912 if mkdir -p . 2>/dev/null; then
20913   as_mkdir_p=:
20914 else
20915   test -d ./-p && rmdir ./-p
20916   as_mkdir_p=false
20917 fi
20918
20919 as_executable_p="test -f"
20920
20921 # Sed expression to map a string onto a valid CPP name.
20922 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20923
20924 # Sed expression to map a string onto a valid variable name.
20925 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20926
20927
20928 # IFS
20929 # We need space, tab and new line, in precisely that order.
20930 as_nl='
20931 '
20932 IFS="   $as_nl"
20933
20934 # CDPATH.
20935 $as_unset CDPATH
20936
20937 exec 6>&1
20938
20939 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20940 # report actual input values of CONFIG_FILES etc. instead of their
20941 # values after options handling.  Logging --version etc. is OK.
20942 exec 5>>config.log
20943 {
20944   echo
20945   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20946 ## Running $as_me. ##
20947 _ASBOX
20948 } >&5
20949 cat >&5 <<_CSEOF
20950
20951 This file was extended by $as_me, which was
20952 generated by GNU Autoconf 2.59.  Invocation command line was
20953
20954   CONFIG_FILES    = $CONFIG_FILES
20955   CONFIG_HEADERS  = $CONFIG_HEADERS
20956   CONFIG_LINKS    = $CONFIG_LINKS
20957   CONFIG_COMMANDS = $CONFIG_COMMANDS
20958   $ $0 $@
20959
20960 _CSEOF
20961 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20962 echo >&5
20963 _ACEOF
20964
20965 # Files that config.status was made for.
20966 if test -n "$ac_config_files"; then
20967   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20968 fi
20969
20970 if test -n "$ac_config_headers"; then
20971   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20972 fi
20973
20974 if test -n "$ac_config_links"; then
20975   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20976 fi
20977
20978 if test -n "$ac_config_commands"; then
20979   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20980 fi
20981
20982 cat >>$CONFIG_STATUS <<\_ACEOF
20983
20984 ac_cs_usage="\
20985 \`$as_me' instantiates files from templates according to the
20986 current configuration.
20987
20988 Usage: $0 [OPTIONS] [FILE]...
20989
20990   -h, --help       print this help, then exit
20991   -V, --version    print version number, then exit
20992   -q, --quiet      do not print progress messages
20993   -d, --debug      don't remove temporary files
20994       --recheck    update $as_me by reconfiguring in the same conditions
20995   --file=FILE[:TEMPLATE]
20996                    instantiate the configuration file FILE
20997   --header=FILE[:TEMPLATE]
20998                    instantiate the configuration header FILE
20999
21000 Configuration files:
21001 $config_files
21002
21003 Configuration headers:
21004 $config_headers
21005
21006 Configuration commands:
21007 $config_commands
21008
21009 Report bugs to <bug-autoconf@gnu.org>."
21010 _ACEOF
21011
21012 cat >>$CONFIG_STATUS <<_ACEOF
21013 ac_cs_version="\\
21014 config.status
21015 configured by $0, generated by GNU Autoconf 2.59,
21016   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
21017
21018 Copyright (C) 2003 Free Software Foundation, Inc.
21019 This config.status script is free software; the Free Software Foundation
21020 gives unlimited permission to copy, distribute and modify it."
21021 srcdir=$srcdir
21022 INSTALL="$INSTALL"
21023 _ACEOF
21024
21025 cat >>$CONFIG_STATUS <<\_ACEOF
21026 # If no file are specified by the user, then we need to provide default
21027 # value.  By we need to know if files were specified by the user.
21028 ac_need_defaults=:
21029 while test $# != 0
21030 do
21031   case $1 in
21032   --*=*)
21033     ac_option=`expr "x$1" : 'x\([^=]*\)='`
21034     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
21035     ac_shift=:
21036     ;;
21037   -*)
21038     ac_option=$1
21039     ac_optarg=$2
21040     ac_shift=shift
21041     ;;
21042   *) # This is not an option, so the user has probably given explicit
21043      # arguments.
21044      ac_option=$1
21045      ac_need_defaults=false;;
21046   esac
21047
21048   case $ac_option in
21049   # Handling of the options.
21050 _ACEOF
21051 cat >>$CONFIG_STATUS <<\_ACEOF
21052   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21053     ac_cs_recheck=: ;;
21054   --version | --vers* | -V )
21055     echo "$ac_cs_version"; exit 0 ;;
21056   --he | --h)
21057     # Conflict between --help and --header
21058     { { echo "$as_me:$LINENO: error: ambiguous option: $1
21059 Try \`$0 --help' for more information." >&5
21060 echo "$as_me: error: ambiguous option: $1
21061 Try \`$0 --help' for more information." >&2;}
21062    { (exit 1); exit 1; }; };;
21063   --help | --hel | -h )
21064     echo "$ac_cs_usage"; exit 0 ;;
21065   --debug | --d* | -d )
21066     debug=: ;;
21067   --file | --fil | --fi | --f )
21068     $ac_shift
21069     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21070     ac_need_defaults=false;;
21071   --header | --heade | --head | --hea )
21072     $ac_shift
21073     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21074     ac_need_defaults=false;;
21075   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21076   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21077     ac_cs_silent=: ;;
21078
21079   # This is an error.
21080   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
21081 Try \`$0 --help' for more information." >&5
21082 echo "$as_me: error: unrecognized option: $1
21083 Try \`$0 --help' for more information." >&2;}
21084    { (exit 1); exit 1; }; } ;;
21085
21086   *) ac_config_targets="$ac_config_targets $1" ;;
21087
21088   esac
21089   shift
21090 done
21091
21092 ac_configure_extra_args=
21093
21094 if $ac_cs_silent; then
21095   exec 6>/dev/null
21096   ac_configure_extra_args="$ac_configure_extra_args --silent"
21097 fi
21098
21099 _ACEOF
21100 cat >>$CONFIG_STATUS <<_ACEOF
21101 if \$ac_cs_recheck; then
21102   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21103   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21104 fi
21105
21106 _ACEOF
21107
21108 cat >>$CONFIG_STATUS <<_ACEOF
21109 #
21110 # INIT-COMMANDS section.
21111 #
21112
21113 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21114
21115 _ACEOF
21116
21117
21118
21119 cat >>$CONFIG_STATUS <<\_ACEOF
21120 for ac_config_target in $ac_config_targets
21121 do
21122   case "$ac_config_target" in
21123   # Handling of arguments.
21124   "src/backends/addressbook/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/backends/addressbook/Makefile" ;;
21125   "src/backends/evolution/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/backends/evolution/Makefile" ;;
21126   "src/backends/file/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/backends/file/Makefile" ;;
21127   "src/backends/sqlite/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/backends/sqlite/Makefile" ;;
21128   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21129   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21130   "src/core/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/core/Makefile" ;;
21131   "test/Makefile" ) CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21132   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21133   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21134   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21135 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21136    { (exit 1); exit 1; }; };;
21137   esac
21138 done
21139
21140 # If the user did not use the arguments to specify the items to instantiate,
21141 # then the envvar interface is used.  Set only those that are not.
21142 # We use the long form for the default assignment because of an extremely
21143 # bizarre bug on SunOS 4.1.3.
21144 if $ac_need_defaults; then
21145   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21146   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21147   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21148 fi
21149
21150 # Have a temporary directory for convenience.  Make it in the build tree
21151 # simply because there is no reason to put it here, and in addition,
21152 # creating and moving files from /tmp can sometimes cause problems.
21153 # Create a temporary directory, and hook for its removal unless debugging.
21154 $debug ||
21155 {
21156   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
21157   trap '{ (exit 1); exit 1; }' 1 2 13 15
21158 }
21159
21160 # Create a (secure) tmp directory for tmp files.
21161
21162 {
21163   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
21164   test -n "$tmp" && test -d "$tmp"
21165 }  ||
21166 {
21167   tmp=./confstat$$-$RANDOM
21168   (umask 077 && mkdir $tmp)
21169 } ||
21170 {
21171    echo "$me: cannot create a temporary directory in ." >&2
21172    { (exit 1); exit 1; }
21173 }
21174
21175 _ACEOF
21176
21177 cat >>$CONFIG_STATUS <<_ACEOF
21178
21179 #
21180 # CONFIG_FILES section.
21181 #
21182
21183 # No need to generate the scripts if there are no CONFIG_FILES.
21184 # This happens for instance when ./config.status config.h
21185 if test -n "\$CONFIG_FILES"; then
21186   # Protect against being on the right side of a sed subst in config.status.
21187   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
21188    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
21189 s,@SHELL@,$SHELL,;t t
21190 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
21191 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
21192 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
21193 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
21194 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
21195 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
21196 s,@exec_prefix@,$exec_prefix,;t t
21197 s,@prefix@,$prefix,;t t
21198 s,@program_transform_name@,$program_transform_name,;t t
21199 s,@bindir@,$bindir,;t t
21200 s,@sbindir@,$sbindir,;t t
21201 s,@libexecdir@,$libexecdir,;t t
21202 s,@datadir@,$datadir,;t t
21203 s,@sysconfdir@,$sysconfdir,;t t
21204 s,@sharedstatedir@,$sharedstatedir,;t t
21205 s,@localstatedir@,$localstatedir,;t t
21206 s,@libdir@,$libdir,;t t
21207 s,@includedir@,$includedir,;t t
21208 s,@oldincludedir@,$oldincludedir,;t t
21209 s,@infodir@,$infodir,;t t
21210 s,@mandir@,$mandir,;t t
21211 s,@build_alias@,$build_alias,;t t
21212 s,@host_alias@,$host_alias,;t t
21213 s,@target_alias@,$target_alias,;t t
21214 s,@DEFS@,$DEFS,;t t
21215 s,@ECHO_C@,$ECHO_C,;t t
21216 s,@ECHO_N@,$ECHO_N,;t t
21217 s,@ECHO_T@,$ECHO_T,;t t
21218 s,@LIBS@,$LIBS,;t t
21219 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
21220 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
21221 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
21222 s,@CYGPATH_W@,$CYGPATH_W,;t t
21223 s,@PACKAGE@,$PACKAGE,;t t
21224 s,@VERSION@,$VERSION,;t t
21225 s,@ACLOCAL@,$ACLOCAL,;t t
21226 s,@AUTOCONF@,$AUTOCONF,;t t
21227 s,@AUTOMAKE@,$AUTOMAKE,;t t
21228 s,@AUTOHEADER@,$AUTOHEADER,;t t
21229 s,@MAKEINFO@,$MAKEINFO,;t t
21230 s,@install_sh@,$install_sh,;t t
21231 s,@STRIP@,$STRIP,;t t
21232 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
21233 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
21234 s,@mkdir_p@,$mkdir_p,;t t
21235 s,@AWK@,$AWK,;t t
21236 s,@SET_MAKE@,$SET_MAKE,;t t
21237 s,@am__leading_dot@,$am__leading_dot,;t t
21238 s,@AMTAR@,$AMTAR,;t t
21239 s,@am__tar@,$am__tar,;t t
21240 s,@am__untar@,$am__untar,;t t
21241 s,@MODIFY_SYNCCOMPARE@,$MODIFY_SYNCCOMPARE,;t t
21242 s,@CC@,$CC,;t t
21243 s,@CFLAGS@,$CFLAGS,;t t
21244 s,@LDFLAGS@,$LDFLAGS,;t t
21245 s,@CPPFLAGS@,$CPPFLAGS,;t t
21246 s,@ac_ct_CC@,$ac_ct_CC,;t t
21247 s,@EXEEXT@,$EXEEXT,;t t
21248 s,@OBJEXT@,$OBJEXT,;t t
21249 s,@DEPDIR@,$DEPDIR,;t t
21250 s,@am__include@,$am__include,;t t
21251 s,@am__quote@,$am__quote,;t t
21252 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
21253 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
21254 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
21255 s,@CCDEPMODE@,$CCDEPMODE,;t t
21256 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
21257 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
21258 s,@CPP@,$CPP,;t t
21259 s,@EGREP@,$EGREP,;t t
21260 s,@CPPUNIT_CXXFLAGS@,$CPPUNIT_CXXFLAGS,;t t
21261 s,@CPPUNIT_LDFLAGS@,$CPPUNIT_LDFLAGS,;t t
21262 s,@CPPUNIT_TESTS@,$CPPUNIT_TESTS,;t t
21263 s,@CORE_LDADD_DEP@,$CORE_LDADD_DEP,;t t
21264 s,@CLEAN_CLIENT_SRC@,$CLEAN_CLIENT_SRC,;t t
21265 s,@TRANSPORT_LDFLAGS@,$TRANSPORT_LDFLAGS,;t t
21266 s,@TRANSPORT_CFLAGS@,$TRANSPORT_CFLAGS,;t t
21267 s,@CURL_LDFLAGS@,$CURL_LDFLAGS,;t t
21268 s,@FUNAMBOL_CFLAGS@,$FUNAMBOL_CFLAGS,;t t
21269 s,@FUNAMBOL_LIBS@,$FUNAMBOL_LIBS,;t t
21270 s,@FUNAMBOL@,$FUNAMBOL,;t t
21271 s,@FUNAMBOL_SUBDIR@,$FUNAMBOL_SUBDIR,;t t
21272 s,@FUNAMBOL_DEP@,$FUNAMBOL_DEP,;t t
21273 s,@FUNAMBOL_LIB@,$FUNAMBOL_LIB,;t t
21274 s,@FUNAMBOLSRC@,$FUNAMBOLSRC,;t t
21275 s,@SYNCSOURCES@,$SYNCSOURCES,;t t
21276 s,@BACKEND_DEFINES@,$BACKEND_DEFINES,;t t
21277 s,@ADDRESSBOOK_CFLAGS@,$ADDRESSBOOK_CFLAGS,;t t
21278 s,@ADDRESSBOOK_LIBS@,$ADDRESSBOOK_LIBS,;t t
21279 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
21280 s,@ac_pt_PKG_CONFIG@,$ac_pt_PKG_CONFIG,;t t
21281 s,@EPACKAGE_CFLAGS@,$EPACKAGE_CFLAGS,;t t
21282 s,@EPACKAGE_LIBS@,$EPACKAGE_LIBS,;t t
21283 s,@ECAL_CFLAGS@,$ECAL_CFLAGS,;t t
21284 s,@ECAL_LIBS@,$ECAL_LIBS,;t t
21285 s,@EBOOK_CFLAGS@,$EBOOK_CFLAGS,;t t
21286 s,@EBOOK_LIBS@,$EBOOK_LIBS,;t t
21287 s,@ENABLE_ECAL_TRUE@,$ENABLE_ECAL_TRUE,;t t
21288 s,@ENABLE_ECAL_FALSE@,$ENABLE_ECAL_FALSE,;t t
21289 s,@FILE_CFLAGS@,$FILE_CFLAGS,;t t
21290 s,@FILE_LIBS@,$FILE_LIBS,;t t
21291 s,@SQLITE_CFLAGS@,$SQLITE_CFLAGS,;t t
21292 s,@SQLITE_LIBS@,$SQLITE_LIBS,;t t
21293 s,@BACKEND_CPPFLAGS@,$BACKEND_CPPFLAGS,;t t
21294 s,@GLIB_CFLAGS@,$GLIB_CFLAGS,;t t
21295 s,@GLIB_LIBS@,$GLIB_LIBS,;t t
21296 s,@CXX@,$CXX,;t t
21297 s,@CXXFLAGS@,$CXXFLAGS,;t t
21298 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
21299 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
21300 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
21301 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
21302 s,@build@,$build,;t t
21303 s,@build_cpu@,$build_cpu,;t t
21304 s,@build_vendor@,$build_vendor,;t t
21305 s,@build_os@,$build_os,;t t
21306 s,@host@,$host,;t t
21307 s,@host_cpu@,$host_cpu,;t t
21308 s,@host_vendor@,$host_vendor,;t t
21309 s,@host_os@,$host_os,;t t
21310 s,@LN_S@,$LN_S,;t t
21311 s,@ECHO@,$ECHO,;t t
21312 s,@AR@,$AR,;t t
21313 s,@ac_ct_AR@,$ac_ct_AR,;t t
21314 s,@RANLIB@,$RANLIB,;t t
21315 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
21316 s,@CXXCPP@,$CXXCPP,;t t
21317 s,@F77@,$F77,;t t
21318 s,@FFLAGS@,$FFLAGS,;t t
21319 s,@ac_ct_F77@,$ac_ct_F77,;t t
21320 s,@LIBTOOL@,$LIBTOOL,;t t
21321 s,@ENABLE_MODULES_TRUE@,$ENABLE_MODULES_TRUE,;t t
21322 s,@ENABLE_MODULES_FALSE@,$ENABLE_MODULES_FALSE,;t t
21323 s,@SYNCEVOLUTION_LDADD@,$SYNCEVOLUTION_LDADD,;t t
21324 s,@SYNCEVOLUTION_CXXFLAGS@,$SYNCEVOLUTION_CXXFLAGS,;t t
21325 s,@LIBOBJS@,$LIBOBJS,;t t
21326 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
21327 CEOF
21328
21329 _ACEOF
21330
21331   cat >>$CONFIG_STATUS <<\_ACEOF
21332   # Split the substitutions into bite-sized pieces for seds with
21333   # small command number limits, like on Digital OSF/1 and HP-UX.
21334   ac_max_sed_lines=48
21335   ac_sed_frag=1 # Number of current file.
21336   ac_beg=1 # First line for current file.
21337   ac_end=$ac_max_sed_lines # Line after last line for current file.
21338   ac_more_lines=:
21339   ac_sed_cmds=
21340   while $ac_more_lines; do
21341     if test $ac_beg -gt 1; then
21342       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21343     else
21344       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
21345     fi
21346     if test ! -s $tmp/subs.frag; then
21347       ac_more_lines=false
21348     else
21349       # The purpose of the label and of the branching condition is to
21350       # speed up the sed processing (if there are no `@' at all, there
21351       # is no need to browse any of the substitutions).
21352       # These are the two extra sed commands mentioned above.
21353       (echo ':t
21354   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
21355       if test -z "$ac_sed_cmds"; then
21356         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
21357       else
21358         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
21359       fi
21360       ac_sed_frag=`expr $ac_sed_frag + 1`
21361       ac_beg=$ac_end
21362       ac_end=`expr $ac_end + $ac_max_sed_lines`
21363     fi
21364   done
21365   if test -z "$ac_sed_cmds"; then
21366     ac_sed_cmds=cat
21367   fi
21368 fi # test -n "$CONFIG_FILES"
21369
21370 _ACEOF
21371 cat >>$CONFIG_STATUS <<\_ACEOF
21372 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
21373   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21374   case $ac_file in
21375   - | *:- | *:-:* ) # input from stdin
21376         cat >$tmp/stdin
21377         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21378         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21379   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21380         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21381   * )   ac_file_in=$ac_file.in ;;
21382   esac
21383
21384   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
21385   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21386 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21387          X"$ac_file" : 'X\(//\)[^/]' \| \
21388          X"$ac_file" : 'X\(//\)$' \| \
21389          X"$ac_file" : 'X\(/\)' \| \
21390          .     : '\(.\)' 2>/dev/null ||
21391 echo X"$ac_file" |
21392     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21393           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21394           /^X\(\/\/\)$/{ s//\1/; q; }
21395           /^X\(\/\).*/{ s//\1/; q; }
21396           s/.*/./; q'`
21397   { if $as_mkdir_p; then
21398     mkdir -p "$ac_dir"
21399   else
21400     as_dir="$ac_dir"
21401     as_dirs=
21402     while test ! -d "$as_dir"; do
21403       as_dirs="$as_dir $as_dirs"
21404       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21405 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21406          X"$as_dir" : 'X\(//\)[^/]' \| \
21407          X"$as_dir" : 'X\(//\)$' \| \
21408          X"$as_dir" : 'X\(/\)' \| \
21409          .     : '\(.\)' 2>/dev/null ||
21410 echo X"$as_dir" |
21411     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21412           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21413           /^X\(\/\/\)$/{ s//\1/; q; }
21414           /^X\(\/\).*/{ s//\1/; q; }
21415           s/.*/./; q'`
21416     done
21417     test ! -n "$as_dirs" || mkdir $as_dirs
21418   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21419 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21420    { (exit 1); exit 1; }; }; }
21421
21422   ac_builddir=.
21423
21424 if test "$ac_dir" != .; then
21425   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21426   # A "../" for each directory in $ac_dir_suffix.
21427   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21428 else
21429   ac_dir_suffix= ac_top_builddir=
21430 fi
21431
21432 case $srcdir in
21433   .)  # No --srcdir option.  We are building in place.
21434     ac_srcdir=.
21435     if test -z "$ac_top_builddir"; then
21436        ac_top_srcdir=.
21437     else
21438        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21439     fi ;;
21440   [\\/]* | ?:[\\/]* )  # Absolute path.
21441     ac_srcdir=$srcdir$ac_dir_suffix;
21442     ac_top_srcdir=$srcdir ;;
21443   *) # Relative path.
21444     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21445     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21446 esac
21447
21448 # Do not use `cd foo && pwd` to compute absolute paths, because
21449 # the directories may not exist.
21450 case `pwd` in
21451 .) ac_abs_builddir="$ac_dir";;
21452 *)
21453   case "$ac_dir" in
21454   .) ac_abs_builddir=`pwd`;;
21455   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21456   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21457   esac;;
21458 esac
21459 case $ac_abs_builddir in
21460 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21461 *)
21462   case ${ac_top_builddir}. in
21463   .) ac_abs_top_builddir=$ac_abs_builddir;;
21464   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21465   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21466   esac;;
21467 esac
21468 case $ac_abs_builddir in
21469 .) ac_abs_srcdir=$ac_srcdir;;
21470 *)
21471   case $ac_srcdir in
21472   .) ac_abs_srcdir=$ac_abs_builddir;;
21473   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21474   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21475   esac;;
21476 esac
21477 case $ac_abs_builddir in
21478 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21479 *)
21480   case $ac_top_srcdir in
21481   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21482   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21483   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21484   esac;;
21485 esac
21486
21487
21488   case $INSTALL in
21489   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21490   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
21491   esac
21492
21493   if test x"$ac_file" != x-; then
21494     { echo "$as_me:$LINENO: creating $ac_file" >&5
21495 echo "$as_me: creating $ac_file" >&6;}
21496     rm -f "$ac_file"
21497   fi
21498   # Let's still pretend it is `configure' which instantiates (i.e., don't
21499   # use $as_me), people would be surprised to read:
21500   #    /* config.h.  Generated by config.status.  */
21501   if test x"$ac_file" = x-; then
21502     configure_input=
21503   else
21504     configure_input="$ac_file.  "
21505   fi
21506   configure_input=$configure_input"Generated from `echo $ac_file_in |
21507                                      sed 's,.*/,,'` by configure."
21508
21509   # First look for the input files in the build tree, otherwise in the
21510   # src tree.
21511   ac_file_inputs=`IFS=:
21512     for f in $ac_file_in; do
21513       case $f in
21514       -) echo $tmp/stdin ;;
21515       [\\/$]*)
21516          # Absolute (can't be DOS-style, as IFS=:)
21517          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21518 echo "$as_me: error: cannot find input file: $f" >&2;}
21519    { (exit 1); exit 1; }; }
21520          echo "$f";;
21521       *) # Relative
21522          if test -f "$f"; then
21523            # Build tree
21524            echo "$f"
21525          elif test -f "$srcdir/$f"; then
21526            # Source tree
21527            echo "$srcdir/$f"
21528          else
21529            # /dev/null tree
21530            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21531 echo "$as_me: error: cannot find input file: $f" >&2;}
21532    { (exit 1); exit 1; }; }
21533          fi;;
21534       esac
21535     done` || { (exit 1); exit 1; }
21536 _ACEOF
21537 cat >>$CONFIG_STATUS <<_ACEOF
21538   sed "$ac_vpsub
21539 $extrasub
21540 _ACEOF
21541 cat >>$CONFIG_STATUS <<\_ACEOF
21542 :t
21543 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21544 s,@configure_input@,$configure_input,;t t
21545 s,@srcdir@,$ac_srcdir,;t t
21546 s,@abs_srcdir@,$ac_abs_srcdir,;t t
21547 s,@top_srcdir@,$ac_top_srcdir,;t t
21548 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
21549 s,@builddir@,$ac_builddir,;t t
21550 s,@abs_builddir@,$ac_abs_builddir,;t t
21551 s,@top_builddir@,$ac_top_builddir,;t t
21552 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
21553 s,@INSTALL@,$ac_INSTALL,;t t
21554 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
21555   rm -f $tmp/stdin
21556   if test x"$ac_file" != x-; then
21557     mv $tmp/out $ac_file
21558   else
21559     cat $tmp/out
21560     rm -f $tmp/out
21561   fi
21562
21563 done
21564 _ACEOF
21565 cat >>$CONFIG_STATUS <<\_ACEOF
21566
21567 #
21568 # CONFIG_HEADER section.
21569 #
21570
21571 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
21572 # NAME is the cpp macro being defined and VALUE is the value it is being given.
21573 #
21574 # ac_d sets the value in "#define NAME VALUE" lines.
21575 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
21576 ac_dB='[         ].*$,\1#\2'
21577 ac_dC=' '
21578 ac_dD=',;t'
21579 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
21580 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
21581 ac_uB='$,\1#\2define\3'
21582 ac_uC=' '
21583 ac_uD=',;t'
21584
21585 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
21586   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
21587   case $ac_file in
21588   - | *:- | *:-:* ) # input from stdin
21589         cat >$tmp/stdin
21590         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21591         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21592   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
21593         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
21594   * )   ac_file_in=$ac_file.in ;;
21595   esac
21596
21597   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
21598 echo "$as_me: creating $ac_file" >&6;}
21599
21600   # First look for the input files in the build tree, otherwise in the
21601   # src tree.
21602   ac_file_inputs=`IFS=:
21603     for f in $ac_file_in; do
21604       case $f in
21605       -) echo $tmp/stdin ;;
21606       [\\/$]*)
21607          # Absolute (can't be DOS-style, as IFS=:)
21608          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21609 echo "$as_me: error: cannot find input file: $f" >&2;}
21610    { (exit 1); exit 1; }; }
21611          # Do quote $f, to prevent DOS paths from being IFS'd.
21612          echo "$f";;
21613       *) # Relative
21614          if test -f "$f"; then
21615            # Build tree
21616            echo "$f"
21617          elif test -f "$srcdir/$f"; then
21618            # Source tree
21619            echo "$srcdir/$f"
21620          else
21621            # /dev/null tree
21622            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
21623 echo "$as_me: error: cannot find input file: $f" >&2;}
21624    { (exit 1); exit 1; }; }
21625          fi;;
21626       esac
21627     done` || { (exit 1); exit 1; }
21628   # Remove the trailing spaces.
21629   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
21630
21631 _ACEOF
21632
21633 # Transform confdefs.h into two sed scripts, `conftest.defines' and
21634 # `conftest.undefs', that substitutes the proper values into
21635 # config.h.in to produce config.h.  The first handles `#define'
21636 # templates, and the second `#undef' templates.
21637 # And first: Protect against being on the right side of a sed subst in
21638 # config.status.  Protect against being in an unquoted here document
21639 # in config.status.
21640 rm -f conftest.defines conftest.undefs
21641 # Using a here document instead of a string reduces the quoting nightmare.
21642 # Putting comments in sed scripts is not portable.
21643 #
21644 # `end' is used to avoid that the second main sed command (meant for
21645 # 0-ary CPP macros) applies to n-ary macro definitions.
21646 # See the Autoconf documentation for `clear'.
21647 cat >confdef2sed.sed <<\_ACEOF
21648 s/[\\&,]/\\&/g
21649 s,[\\$`],\\&,g
21650 t clear
21651 : clear
21652 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
21653 t end
21654 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
21655 : end
21656 _ACEOF
21657 # If some macros were called several times there might be several times
21658 # the same #defines, which is useless.  Nevertheless, we may not want to
21659 # sort them, since we want the *last* AC-DEFINE to be honored.
21660 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
21661 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
21662 rm -f confdef2sed.sed
21663
21664 # This sed command replaces #undef with comments.  This is necessary, for
21665 # example, in the case of _POSIX_SOURCE, which is predefined and required
21666 # on some systems where configure will not decide to define it.
21667 cat >>conftest.undefs <<\_ACEOF
21668 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
21669 _ACEOF
21670
21671 # Break up conftest.defines because some shells have a limit on the size
21672 # of here documents, and old seds have small limits too (100 cmds).
21673 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
21674 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
21675 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
21676 echo '  :' >>$CONFIG_STATUS
21677 rm -f conftest.tail
21678 while grep . conftest.defines >/dev/null
21679 do
21680   # Write a limited-size here document to $tmp/defines.sed.
21681   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
21682   # Speed up: don't consider the non `#define' lines.
21683   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
21684   # Work around the forget-to-reset-the-flag bug.
21685   echo 't clr' >>$CONFIG_STATUS
21686   echo ': clr' >>$CONFIG_STATUS
21687   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
21688   echo 'CEOF
21689   sed -f $tmp/defines.sed $tmp/in >$tmp/out
21690   rm -f $tmp/in
21691   mv $tmp/out $tmp/in
21692 ' >>$CONFIG_STATUS
21693   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
21694   rm -f conftest.defines
21695   mv conftest.tail conftest.defines
21696 done
21697 rm -f conftest.defines
21698 echo '  fi # grep' >>$CONFIG_STATUS
21699 echo >>$CONFIG_STATUS
21700
21701 # Break up conftest.undefs because some shells have a limit on the size
21702 # of here documents, and old seds have small limits too (100 cmds).
21703 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
21704 rm -f conftest.tail
21705 while grep . conftest.undefs >/dev/null
21706 do
21707   # Write a limited-size here document to $tmp/undefs.sed.
21708   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
21709   # Speed up: don't consider the non `#undef'
21710   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
21711   # Work around the forget-to-reset-the-flag bug.
21712   echo 't clr' >>$CONFIG_STATUS
21713   echo ': clr' >>$CONFIG_STATUS
21714   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
21715   echo 'CEOF
21716   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
21717   rm -f $tmp/in
21718   mv $tmp/out $tmp/in
21719 ' >>$CONFIG_STATUS
21720   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
21721   rm -f conftest.undefs
21722   mv conftest.tail conftest.undefs
21723 done
21724 rm -f conftest.undefs
21725
21726 cat >>$CONFIG_STATUS <<\_ACEOF
21727   # Let's still pretend it is `configure' which instantiates (i.e., don't
21728   # use $as_me), people would be surprised to read:
21729   #    /* config.h.  Generated by config.status.  */
21730   if test x"$ac_file" = x-; then
21731     echo "/* Generated by configure.  */" >$tmp/config.h
21732   else
21733     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
21734   fi
21735   cat $tmp/in >>$tmp/config.h
21736   rm -f $tmp/in
21737   if test x"$ac_file" != x-; then
21738     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
21739       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21740 echo "$as_me: $ac_file is unchanged" >&6;}
21741     else
21742       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
21743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21744          X"$ac_file" : 'X\(//\)[^/]' \| \
21745          X"$ac_file" : 'X\(//\)$' \| \
21746          X"$ac_file" : 'X\(/\)' \| \
21747          .     : '\(.\)' 2>/dev/null ||
21748 echo X"$ac_file" |
21749     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21750           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21751           /^X\(\/\/\)$/{ s//\1/; q; }
21752           /^X\(\/\).*/{ s//\1/; q; }
21753           s/.*/./; q'`
21754       { if $as_mkdir_p; then
21755     mkdir -p "$ac_dir"
21756   else
21757     as_dir="$ac_dir"
21758     as_dirs=
21759     while test ! -d "$as_dir"; do
21760       as_dirs="$as_dir $as_dirs"
21761       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21762 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21763          X"$as_dir" : 'X\(//\)[^/]' \| \
21764          X"$as_dir" : 'X\(//\)$' \| \
21765          X"$as_dir" : 'X\(/\)' \| \
21766          .     : '\(.\)' 2>/dev/null ||
21767 echo X"$as_dir" |
21768     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21769           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21770           /^X\(\/\/\)$/{ s//\1/; q; }
21771           /^X\(\/\).*/{ s//\1/; q; }
21772           s/.*/./; q'`
21773     done
21774     test ! -n "$as_dirs" || mkdir $as_dirs
21775   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21776 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21777    { (exit 1); exit 1; }; }; }
21778
21779       rm -f $ac_file
21780       mv $tmp/config.h $ac_file
21781     fi
21782   else
21783     cat $tmp/config.h
21784     rm -f $tmp/config.h
21785   fi
21786 # Compute $ac_file's index in $config_headers.
21787 _am_stamp_count=1
21788 for _am_header in $config_headers :; do
21789   case $_am_header in
21790     $ac_file | $ac_file:* )
21791       break ;;
21792     * )
21793       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21794   esac
21795 done
21796 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
21797 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21798          X$ac_file : 'X\(//\)[^/]' \| \
21799          X$ac_file : 'X\(//\)$' \| \
21800          X$ac_file : 'X\(/\)' \| \
21801          .     : '\(.\)' 2>/dev/null ||
21802 echo X$ac_file |
21803     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21804           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21805           /^X\(\/\/\)$/{ s//\1/; q; }
21806           /^X\(\/\).*/{ s//\1/; q; }
21807           s/.*/./; q'`/stamp-h$_am_stamp_count
21808 done
21809 _ACEOF
21810 cat >>$CONFIG_STATUS <<\_ACEOF
21811
21812 #
21813 # CONFIG_COMMANDS section.
21814 #
21815 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
21816   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
21817   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
21818   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
21819 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21820          X"$ac_dest" : 'X\(//\)[^/]' \| \
21821          X"$ac_dest" : 'X\(//\)$' \| \
21822          X"$ac_dest" : 'X\(/\)' \| \
21823          .     : '\(.\)' 2>/dev/null ||
21824 echo X"$ac_dest" |
21825     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21826           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21827           /^X\(\/\/\)$/{ s//\1/; q; }
21828           /^X\(\/\).*/{ s//\1/; q; }
21829           s/.*/./; q'`
21830   { if $as_mkdir_p; then
21831     mkdir -p "$ac_dir"
21832   else
21833     as_dir="$ac_dir"
21834     as_dirs=
21835     while test ! -d "$as_dir"; do
21836       as_dirs="$as_dir $as_dirs"
21837       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21838 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21839          X"$as_dir" : 'X\(//\)[^/]' \| \
21840          X"$as_dir" : 'X\(//\)$' \| \
21841          X"$as_dir" : 'X\(/\)' \| \
21842          .     : '\(.\)' 2>/dev/null ||
21843 echo X"$as_dir" |
21844     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21845           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21846           /^X\(\/\/\)$/{ s//\1/; q; }
21847           /^X\(\/\).*/{ s//\1/; q; }
21848           s/.*/./; q'`
21849     done
21850     test ! -n "$as_dirs" || mkdir $as_dirs
21851   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
21852 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
21853    { (exit 1); exit 1; }; }; }
21854
21855   ac_builddir=.
21856
21857 if test "$ac_dir" != .; then
21858   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21859   # A "../" for each directory in $ac_dir_suffix.
21860   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
21861 else
21862   ac_dir_suffix= ac_top_builddir=
21863 fi
21864
21865 case $srcdir in
21866   .)  # No --srcdir option.  We are building in place.
21867     ac_srcdir=.
21868     if test -z "$ac_top_builddir"; then
21869        ac_top_srcdir=.
21870     else
21871        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
21872     fi ;;
21873   [\\/]* | ?:[\\/]* )  # Absolute path.
21874     ac_srcdir=$srcdir$ac_dir_suffix;
21875     ac_top_srcdir=$srcdir ;;
21876   *) # Relative path.
21877     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
21878     ac_top_srcdir=$ac_top_builddir$srcdir ;;
21879 esac
21880
21881 # Do not use `cd foo && pwd` to compute absolute paths, because
21882 # the directories may not exist.
21883 case `pwd` in
21884 .) ac_abs_builddir="$ac_dir";;
21885 *)
21886   case "$ac_dir" in
21887   .) ac_abs_builddir=`pwd`;;
21888   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
21889   *) ac_abs_builddir=`pwd`/"$ac_dir";;
21890   esac;;
21891 esac
21892 case $ac_abs_builddir in
21893 .) ac_abs_top_builddir=${ac_top_builddir}.;;
21894 *)
21895   case ${ac_top_builddir}. in
21896   .) ac_abs_top_builddir=$ac_abs_builddir;;
21897   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
21898   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
21899   esac;;
21900 esac
21901 case $ac_abs_builddir in
21902 .) ac_abs_srcdir=$ac_srcdir;;
21903 *)
21904   case $ac_srcdir in
21905   .) ac_abs_srcdir=$ac_abs_builddir;;
21906   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
21907   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
21908   esac;;
21909 esac
21910 case $ac_abs_builddir in
21911 .) ac_abs_top_srcdir=$ac_top_srcdir;;
21912 *)
21913   case $ac_top_srcdir in
21914   .) ac_abs_top_srcdir=$ac_abs_builddir;;
21915   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
21916   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
21917   esac;;
21918 esac
21919
21920
21921   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
21922 echo "$as_me: executing $ac_dest commands" >&6;}
21923   case $ac_dest in
21924     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21925   # Strip MF so we end up with the name of the file.
21926   mf=`echo "$mf" | sed -e 's/:.*$//'`
21927   # Check whether this is an Automake generated Makefile or not.
21928   # We used to match only the files named `Makefile.in', but
21929   # some people rename them; so instead we look at the file content.
21930   # Grep'ing the first line is not enough: some people post-process
21931   # each Makefile.in and add a new line on top of each file to say so.
21932   # So let's grep whole file.
21933   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
21934     dirpart=`(dirname "$mf") 2>/dev/null ||
21935 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21936          X"$mf" : 'X\(//\)[^/]' \| \
21937          X"$mf" : 'X\(//\)$' \| \
21938          X"$mf" : 'X\(/\)' \| \
21939          .     : '\(.\)' 2>/dev/null ||
21940 echo X"$mf" |
21941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21942           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21943           /^X\(\/\/\)$/{ s//\1/; q; }
21944           /^X\(\/\).*/{ s//\1/; q; }
21945           s/.*/./; q'`
21946   else
21947     continue
21948   fi
21949   # Extract the definition of DEPDIR, am__include, and am__quote
21950   # from the Makefile without running `make'.
21951   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21952   test -z "$DEPDIR" && continue
21953   am__include=`sed -n 's/^am__include = //p' < "$mf"`
21954   test -z "am__include" && continue
21955   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21956   # When using ansi2knr, U may be empty or an underscore; expand it
21957   U=`sed -n 's/^U = //p' < "$mf"`
21958   # Find all dependency output files, they are included files with
21959   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21960   # simplest approach to changing $(DEPDIR) to its actual value in the
21961   # expansion.
21962   for file in `sed -n "
21963     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21964        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21965     # Make sure the directory exists.
21966     test -f "$dirpart/$file" && continue
21967     fdir=`(dirname "$file") 2>/dev/null ||
21968 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21969          X"$file" : 'X\(//\)[^/]' \| \
21970          X"$file" : 'X\(//\)$' \| \
21971          X"$file" : 'X\(/\)' \| \
21972          .     : '\(.\)' 2>/dev/null ||
21973 echo X"$file" |
21974     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21975           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21976           /^X\(\/\/\)$/{ s//\1/; q; }
21977           /^X\(\/\).*/{ s//\1/; q; }
21978           s/.*/./; q'`
21979     { if $as_mkdir_p; then
21980     mkdir -p $dirpart/$fdir
21981   else
21982     as_dir=$dirpart/$fdir
21983     as_dirs=
21984     while test ! -d "$as_dir"; do
21985       as_dirs="$as_dir $as_dirs"
21986       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21988          X"$as_dir" : 'X\(//\)[^/]' \| \
21989          X"$as_dir" : 'X\(//\)$' \| \
21990          X"$as_dir" : 'X\(/\)' \| \
21991          .     : '\(.\)' 2>/dev/null ||
21992 echo X"$as_dir" |
21993     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21994           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21995           /^X\(\/\/\)$/{ s//\1/; q; }
21996           /^X\(\/\).*/{ s//\1/; q; }
21997           s/.*/./; q'`
21998     done
21999     test ! -n "$as_dirs" || mkdir $as_dirs
22000   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
22001 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
22002    { (exit 1); exit 1; }; }; }
22003
22004     # echo "creating $dirpart/$file"
22005     echo '# dummy' > "$dirpart/$file"
22006   done
22007 done
22008  ;;
22009   esac
22010 done
22011 _ACEOF
22012
22013 cat >>$CONFIG_STATUS <<\_ACEOF
22014
22015 { (exit 0); exit 0; }
22016 _ACEOF
22017 chmod +x $CONFIG_STATUS
22018 ac_clean_files=$ac_clean_files_save
22019
22020
22021 # configure is writing to config.log, and then calls config.status.
22022 # config.status does its own redirection, appending to config.log.
22023 # Unfortunately, on DOS this fails, as config.log is still kept open
22024 # by configure, so config.status won't be able to write to it; its
22025 # output is simply discarded.  So we exec the FD to /dev/null,
22026 # effectively closing config.log, so it can be properly (re)opened and
22027 # appended to by config.status.  When coming back to configure, we
22028 # need to make the FD available again.
22029 if test "$no_create" != yes; then
22030   ac_cs_success=:
22031   ac_config_status_args=
22032   test "$silent" = yes &&
22033     ac_config_status_args="$ac_config_status_args --quiet"
22034   exec 5>/dev/null
22035   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22036   exec 5>>config.log
22037   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22038   # would make configure fail if this is the last instruction.
22039   $ac_cs_success || { (exit 1); exit 1; }
22040 fi
22041
22042