http://prdownloads.sourceforge.net/lufs/lufs-0.9.7.tar.gz?download
[lufs.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.57.
4 #
5 # Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
6 # Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization.  ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15   emulate sh
16   NULLCMD=:
17   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18   # is contrary to our usage.  Disable this feature.
19   alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21   set -o posix
22 fi
23
24 # Support unset when possible.
25 if (FOO=FOO; unset FOO) >/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 -n "`(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   as_mkdir_p=false
222 fi
223
224 as_executable_p="test -f"
225
226 # Sed expression to map a string onto a valid CPP name.
227 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
228
229 # Sed expression to map a string onto a valid variable name.
230 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
231
232
233 # IFS
234 # We need space, tab and new line, in precisely that order.
235 as_nl='
236 '
237 IFS="   $as_nl"
238
239 # CDPATH.
240 $as_unset CDPATH
241
242
243
244 # Check that we are running under the correct shell.
245 SHELL=${CONFIG_SHELL-/bin/sh}
246
247 case X$ECHO in
248 X*--fallback-echo)
249   # Remove one level of quotation (which was required for Make).
250   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
251   ;;
252 esac
253
254 echo=${ECHO-echo}
255 if test "X$1" = X--no-reexec; then
256   # Discard the --no-reexec flag, and continue.
257   shift
258 elif test "X$1" = X--fallback-echo; then
259   # Avoid inline document here, it may be left over
260   :
261 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
262   # Yippee, $echo works!
263   :
264 else
265   # Restart under the correct shell.
266   exec $SHELL "$0" --no-reexec ${1+"$@"}
267 fi
268
269 if test "X$1" = X--fallback-echo; then
270   # used as fallback echo
271   shift
272   cat <<EOF
273 $*
274 EOF
275   exit 0
276 fi
277
278 # The HP-UX ksh and POSIX shell print the target directory to stdout
279 # if CDPATH is set.
280 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
281
282 if test -z "$ECHO"; then
283 if test "X${echo_test_string+set}" != Xset; then
284 # find a string as large as possible, as long as the shell can cope with it
285   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
286     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
287     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
288        echo_test_string="`eval $cmd`" &&
289        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
290     then
291       break
292     fi
293   done
294 fi
295
296 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
297    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
298    test "X$echo_testing_string" = "X$echo_test_string"; then
299   :
300 else
301   # The Solaris, AIX, and Digital Unix default echo programs unquote
302   # backslashes.  This makes it impossible to quote backslashes using
303   #   echo "$something" | sed 's/\\/\\\\/g'
304   #
305   # So, first we look for a working echo in the user's PATH.
306
307   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
308   for dir in $PATH /usr/ucb; do
309     IFS="$lt_save_ifs"
310     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
311        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
312        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
313        test "X$echo_testing_string" = "X$echo_test_string"; then
314       echo="$dir/echo"
315       break
316     fi
317   done
318   IFS="$lt_save_ifs"
319
320   if test "X$echo" = Xecho; then
321     # We didn't find a better echo, so look for alternatives.
322     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
323        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
324        test "X$echo_testing_string" = "X$echo_test_string"; then
325       # This shell has a builtin print -r that does the trick.
326       echo='print -r'
327     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
328          test "X$CONFIG_SHELL" != X/bin/ksh; then
329       # If we have ksh, try running configure again with it.
330       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
331       export ORIGINAL_CONFIG_SHELL
332       CONFIG_SHELL=/bin/ksh
333       export CONFIG_SHELL
334       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
335     else
336       # Try using printf.
337       echo='printf %s\n'
338       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
339          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
340          test "X$echo_testing_string" = "X$echo_test_string"; then
341         # Cool, printf works
342         :
343       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
344            test "X$echo_testing_string" = 'X\t' &&
345            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
346            test "X$echo_testing_string" = "X$echo_test_string"; then
347         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
348         export CONFIG_SHELL
349         SHELL="$CONFIG_SHELL"
350         export SHELL
351         echo="$CONFIG_SHELL $0 --fallback-echo"
352       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353            test "X$echo_testing_string" = 'X\t' &&
354            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355            test "X$echo_testing_string" = "X$echo_test_string"; then
356         echo="$CONFIG_SHELL $0 --fallback-echo"
357       else
358         # maybe with a smaller string...
359         prev=:
360
361         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
362           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
363           then
364             break
365           fi
366           prev="$cmd"
367         done
368
369         if test "$prev" != 'sed 50q "$0"'; then
370           echo_test_string=`eval $prev`
371           export echo_test_string
372           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
373         else
374           # Oops.  We lost completely, so just stick with echo.
375           echo=echo
376         fi
377       fi
378     fi
379   fi
380 fi
381 fi
382
383 # Copy echo and quote the copy suitably for passing to libtool from
384 # the Makefile, instead of quoting the original, which is used later.
385 ECHO=$echo
386 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
387    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
388 fi
389
390
391
392
393 tagnames=`echo "$tagnames,CXX" | sed 's/^,//'`
394
395 tagnames=`echo "$tagnames,F77" | sed 's/^,//'`
396
397 # Name of the host.
398 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
399 # so uname gets run too.
400 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
401
402 exec 6>&1
403
404 #
405 # Initializations.
406 #
407 ac_default_prefix=/usr/local
408 ac_config_libobj_dir=.
409 cross_compiling=no
410 subdirs=
411 MFLAGS=
412 MAKEFLAGS=
413 SHELL=${CONFIG_SHELL-/bin/sh}
414
415 # Maximum number of lines to put in a shell here document.
416 # This variable seems obsolete.  It should probably be removed, and
417 # only ac_max_sed_lines should be used.
418 : ${ac_max_here_lines=38}
419
420 # Identity of this package.
421 PACKAGE_NAME=
422 PACKAGE_TARNAME=
423 PACKAGE_VERSION=
424 PACKAGE_STRING=
425 PACKAGE_BUGREPORT=
426
427 ac_unique_file="AUTHORS"
428 # Factoring default headers for most tests.
429 ac_includes_default="\
430 #include <stdio.h>
431 #if HAVE_SYS_TYPES_H
432 # include <sys/types.h>
433 #endif
434 #if HAVE_SYS_STAT_H
435 # include <sys/stat.h>
436 #endif
437 #if STDC_HEADERS
438 # include <stdlib.h>
439 # include <stddef.h>
440 #else
441 # if HAVE_STDLIB_H
442 #  include <stdlib.h>
443 # endif
444 #endif
445 #if HAVE_STRING_H
446 # if !STDC_HEADERS && HAVE_MEMORY_H
447 #  include <memory.h>
448 # endif
449 # include <string.h>
450 #endif
451 #if HAVE_STRINGS_H
452 # include <strings.h>
453 #endif
454 #if HAVE_INTTYPES_H
455 # include <inttypes.h>
456 #else
457 # if HAVE_STDINT_H
458 #  include <stdint.h>
459 # endif
460 #endif
461 #if HAVE_UNISTD_H
462 # include <unistd.h>
463 #endif"
464
465 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM AWK SET_MAKE am__leading_dot MODV_FLAGS KERNEL_DIR MODULES_DIR KERNEL_HDR OS_DIR DEBUG_FLAGS KDEBUG_FLAGS AUTOFS_INSTALL LUFS_SUID 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE LN_S EGREP ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL SSHPROG GCONF GVFSCONF GVFS_LDADD GVFS_CFLAGS define_has_libchipcard LIBCHIPCARD_LIB LIBCHIPCARD_INCLUDES opt_fs all_includes all_libraries LIBOBJS LTLIBOBJS'
466 ac_subst_files=''
467
468 # Initialize some variables set by options.
469 ac_init_help=
470 ac_init_version=false
471 # The variables have the same names as the options, with
472 # dashes changed to underlines.
473 cache_file=/dev/null
474 exec_prefix=NONE
475 no_create=
476 no_recursion=
477 prefix=NONE
478 program_prefix=NONE
479 program_suffix=NONE
480 program_transform_name=s,x,x,
481 silent=
482 site=
483 srcdir=
484 verbose=
485 x_includes=NONE
486 x_libraries=NONE
487
488 # Installation directory options.
489 # These are left unexpanded so users can "make install exec_prefix=/foo"
490 # and all the variables that are supposed to be based on exec_prefix
491 # by default will actually change.
492 # Use braces instead of parens because sh, perl, etc. also accept them.
493 bindir='${exec_prefix}/bin'
494 sbindir='${exec_prefix}/sbin'
495 libexecdir='${exec_prefix}/libexec'
496 datadir='${prefix}/share'
497 sysconfdir='${prefix}/etc'
498 sharedstatedir='${prefix}/com'
499 localstatedir='${prefix}/var'
500 libdir='${exec_prefix}/lib'
501 includedir='${prefix}/include'
502 oldincludedir='/usr/include'
503 infodir='${prefix}/info'
504 mandir='${prefix}/man'
505
506 ac_prev=
507 for ac_option
508 do
509   # If the previous option needs an argument, assign it.
510   if test -n "$ac_prev"; then
511     eval "$ac_prev=\$ac_option"
512     ac_prev=
513     continue
514   fi
515
516   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
517
518   # Accept the important Cygnus configure options, so we can diagnose typos.
519
520   case $ac_option in
521
522   -bindir | --bindir | --bindi | --bind | --bin | --bi)
523     ac_prev=bindir ;;
524   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525     bindir=$ac_optarg ;;
526
527   -build | --build | --buil | --bui | --bu)
528     ac_prev=build_alias ;;
529   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530     build_alias=$ac_optarg ;;
531
532   -cache-file | --cache-file | --cache-fil | --cache-fi \
533   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
534     ac_prev=cache_file ;;
535   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
536   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
537     cache_file=$ac_optarg ;;
538
539   --config-cache | -C)
540     cache_file=config.cache ;;
541
542   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
543     ac_prev=datadir ;;
544   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
545   | --da=*)
546     datadir=$ac_optarg ;;
547
548   -disable-* | --disable-*)
549     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
550     # Reject names that are not valid shell variable names.
551     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
552       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
553    { (exit 1); exit 1; }; }
554     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
555     eval "enable_$ac_feature=no" ;;
556
557   -enable-* | --enable-*)
558     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
559     # Reject names that are not valid shell variable names.
560     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
562    { (exit 1); exit 1; }; }
563     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
564     case $ac_option in
565       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566       *) ac_optarg=yes ;;
567     esac
568     eval "enable_$ac_feature='$ac_optarg'" ;;
569
570   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
571   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
572   | --exec | --exe | --ex)
573     ac_prev=exec_prefix ;;
574   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
575   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
576   | --exec=* | --exe=* | --ex=*)
577     exec_prefix=$ac_optarg ;;
578
579   -gas | --gas | --ga | --g)
580     # Obsolete; use --with-gas.
581     with_gas=yes ;;
582
583   -help | --help | --hel | --he | -h)
584     ac_init_help=long ;;
585   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
586     ac_init_help=recursive ;;
587   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
588     ac_init_help=short ;;
589
590   -host | --host | --hos | --ho)
591     ac_prev=host_alias ;;
592   -host=* | --host=* | --hos=* | --ho=*)
593     host_alias=$ac_optarg ;;
594
595   -includedir | --includedir | --includedi | --included | --include \
596   | --includ | --inclu | --incl | --inc)
597     ac_prev=includedir ;;
598   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
599   | --includ=* | --inclu=* | --incl=* | --inc=*)
600     includedir=$ac_optarg ;;
601
602   -infodir | --infodir | --infodi | --infod | --info | --inf)
603     ac_prev=infodir ;;
604   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605     infodir=$ac_optarg ;;
606
607   -libdir | --libdir | --libdi | --libd)
608     ac_prev=libdir ;;
609   -libdir=* | --libdir=* | --libdi=* | --libd=*)
610     libdir=$ac_optarg ;;
611
612   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
613   | --libexe | --libex | --libe)
614     ac_prev=libexecdir ;;
615   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
616   | --libexe=* | --libex=* | --libe=*)
617     libexecdir=$ac_optarg ;;
618
619   -localstatedir | --localstatedir | --localstatedi | --localstated \
620   | --localstate | --localstat | --localsta | --localst \
621   | --locals | --local | --loca | --loc | --lo)
622     ac_prev=localstatedir ;;
623   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
624   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
625   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
626     localstatedir=$ac_optarg ;;
627
628   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629     ac_prev=mandir ;;
630   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631     mandir=$ac_optarg ;;
632
633   -nfp | --nfp | --nf)
634     # Obsolete; use --without-fp.
635     with_fp=no ;;
636
637   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638   | --no-cr | --no-c | -n)
639     no_create=yes ;;
640
641   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
642   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
643     no_recursion=yes ;;
644
645   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
646   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
647   | --oldin | --oldi | --old | --ol | --o)
648     ac_prev=oldincludedir ;;
649   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
650   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
651   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
652     oldincludedir=$ac_optarg ;;
653
654   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655     ac_prev=prefix ;;
656   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657     prefix=$ac_optarg ;;
658
659   -program-prefix | --program-prefix | --program-prefi | --program-pref \
660   | --program-pre | --program-pr | --program-p)
661     ac_prev=program_prefix ;;
662   -program-prefix=* | --program-prefix=* | --program-prefi=* \
663   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
664     program_prefix=$ac_optarg ;;
665
666   -program-suffix | --program-suffix | --program-suffi | --program-suff \
667   | --program-suf | --program-su | --program-s)
668     ac_prev=program_suffix ;;
669   -program-suffix=* | --program-suffix=* | --program-suffi=* \
670   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
671     program_suffix=$ac_optarg ;;
672
673   -program-transform-name | --program-transform-name \
674   | --program-transform-nam | --program-transform-na \
675   | --program-transform-n | --program-transform- \
676   | --program-transform | --program-transfor \
677   | --program-transfo | --program-transf \
678   | --program-trans | --program-tran \
679   | --progr-tra | --program-tr | --program-t)
680     ac_prev=program_transform_name ;;
681   -program-transform-name=* | --program-transform-name=* \
682   | --program-transform-nam=* | --program-transform-na=* \
683   | --program-transform-n=* | --program-transform-=* \
684   | --program-transform=* | --program-transfor=* \
685   | --program-transfo=* | --program-transf=* \
686   | --program-trans=* | --program-tran=* \
687   | --progr-tra=* | --program-tr=* | --program-t=*)
688     program_transform_name=$ac_optarg ;;
689
690   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691   | -silent | --silent | --silen | --sile | --sil)
692     silent=yes ;;
693
694   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
695     ac_prev=sbindir ;;
696   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
697   | --sbi=* | --sb=*)
698     sbindir=$ac_optarg ;;
699
700   -sharedstatedir | --sharedstatedir | --sharedstatedi \
701   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
702   | --sharedst | --shareds | --shared | --share | --shar \
703   | --sha | --sh)
704     ac_prev=sharedstatedir ;;
705   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
706   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
707   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
708   | --sha=* | --sh=*)
709     sharedstatedir=$ac_optarg ;;
710
711   -site | --site | --sit)
712     ac_prev=site ;;
713   -site=* | --site=* | --sit=*)
714     site=$ac_optarg ;;
715
716   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717     ac_prev=srcdir ;;
718   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719     srcdir=$ac_optarg ;;
720
721   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
722   | --syscon | --sysco | --sysc | --sys | --sy)
723     ac_prev=sysconfdir ;;
724   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
725   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
726     sysconfdir=$ac_optarg ;;
727
728   -target | --target | --targe | --targ | --tar | --ta | --t)
729     ac_prev=target_alias ;;
730   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
731     target_alias=$ac_optarg ;;
732
733   -v | -verbose | --verbose | --verbos | --verbo | --verb)
734     verbose=yes ;;
735
736   -version | --version | --versio | --versi | --vers | -V)
737     ac_init_version=: ;;
738
739   -with-* | --with-*)
740     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
741     # Reject names that are not valid shell variable names.
742     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
743       { echo "$as_me: error: invalid package name: $ac_package" >&2
744    { (exit 1); exit 1; }; }
745     ac_package=`echo $ac_package| sed 's/-/_/g'`
746     case $ac_option in
747       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
748       *) ac_optarg=yes ;;
749     esac
750     eval "with_$ac_package='$ac_optarg'" ;;
751
752   -without-* | --without-*)
753     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
754     # Reject names that are not valid shell variable names.
755     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
756       { echo "$as_me: error: invalid package name: $ac_package" >&2
757    { (exit 1); exit 1; }; }
758     ac_package=`echo $ac_package | sed 's/-/_/g'`
759     eval "with_$ac_package=no" ;;
760
761   --x)
762     # Obsolete; use --with-x.
763     with_x=yes ;;
764
765   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
766   | --x-incl | --x-inc | --x-in | --x-i)
767     ac_prev=x_includes ;;
768   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
769   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
770     x_includes=$ac_optarg ;;
771
772   -x-libraries | --x-libraries | --x-librarie | --x-librari \
773   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
774     ac_prev=x_libraries ;;
775   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
776   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
777     x_libraries=$ac_optarg ;;
778
779   -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781    { (exit 1); exit 1; }; }
782     ;;
783
784   *=*)
785     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
786     # Reject names that are not valid shell variable names.
787     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
788       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
789    { (exit 1); exit 1; }; }
790     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
791     eval "$ac_envvar='$ac_optarg'"
792     export $ac_envvar ;;
793
794   *)
795     # FIXME: should be removed in autoconf 3.0.
796     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
797     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
798       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
799     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
800     ;;
801
802   esac
803 done
804
805 if test -n "$ac_prev"; then
806   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
807   { echo "$as_me: error: missing argument to $ac_option" >&2
808    { (exit 1); exit 1; }; }
809 fi
810
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
813 do
814   eval ac_val=$`echo $ac_var`
815   case $ac_val in
816     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
817     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
818    { (exit 1); exit 1; }; };;
819   esac
820 done
821
822 # Be sure to have absolute paths.
823 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
824               localstatedir libdir includedir oldincludedir infodir mandir
825 do
826   eval ac_val=$`echo $ac_var`
827   case $ac_val in
828     [\\/$]* | ?:[\\/]* ) ;;
829     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
830    { (exit 1); exit 1; }; };;
831   esac
832 done
833
834 # There might be people who depend on the old broken behavior: `$host'
835 # used to hold the argument of --host etc.
836 # FIXME: To remove some day.
837 build=$build_alias
838 host=$host_alias
839 target=$target_alias
840
841 # FIXME: To remove some day.
842 if test "x$host_alias" != x; then
843   if test "x$build_alias" = x; then
844     cross_compiling=maybe
845     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
846     If a cross compiler is detected then cross compile mode will be used." >&2
847   elif test "x$build_alias" != "x$host_alias"; then
848     cross_compiling=yes
849   fi
850 fi
851
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
854
855 test "$silent" = yes && exec 6>/dev/null
856
857
858 # Find the source files, if location was not specified.
859 if test -z "$srcdir"; then
860   ac_srcdir_defaulted=yes
861   # Try the directory containing this script, then its parent.
862   ac_confdir=`(dirname "$0") 2>/dev/null ||
863 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
864          X"$0" : 'X\(//\)[^/]' \| \
865          X"$0" : 'X\(//\)$' \| \
866          X"$0" : 'X\(/\)' \| \
867          .     : '\(.\)' 2>/dev/null ||
868 echo X"$0" |
869     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
870           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
871           /^X\(\/\/\)$/{ s//\1/; q; }
872           /^X\(\/\).*/{ s//\1/; q; }
873           s/.*/./; q'`
874   srcdir=$ac_confdir
875   if test ! -r $srcdir/$ac_unique_file; then
876     srcdir=..
877   fi
878 else
879   ac_srcdir_defaulted=no
880 fi
881 if test ! -r $srcdir/$ac_unique_file; then
882   if test "$ac_srcdir_defaulted" = yes; then
883     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
884    { (exit 1); exit 1; }; }
885   else
886     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
887    { (exit 1); exit 1; }; }
888   fi
889 fi
890 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
891   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
892    { (exit 1); exit 1; }; }
893 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
894 ac_env_build_alias_set=${build_alias+set}
895 ac_env_build_alias_value=$build_alias
896 ac_cv_env_build_alias_set=${build_alias+set}
897 ac_cv_env_build_alias_value=$build_alias
898 ac_env_host_alias_set=${host_alias+set}
899 ac_env_host_alias_value=$host_alias
900 ac_cv_env_host_alias_set=${host_alias+set}
901 ac_cv_env_host_alias_value=$host_alias
902 ac_env_target_alias_set=${target_alias+set}
903 ac_env_target_alias_value=$target_alias
904 ac_cv_env_target_alias_set=${target_alias+set}
905 ac_cv_env_target_alias_value=$target_alias
906 ac_env_CC_set=${CC+set}
907 ac_env_CC_value=$CC
908 ac_cv_env_CC_set=${CC+set}
909 ac_cv_env_CC_value=$CC
910 ac_env_CFLAGS_set=${CFLAGS+set}
911 ac_env_CFLAGS_value=$CFLAGS
912 ac_cv_env_CFLAGS_set=${CFLAGS+set}
913 ac_cv_env_CFLAGS_value=$CFLAGS
914 ac_env_LDFLAGS_set=${LDFLAGS+set}
915 ac_env_LDFLAGS_value=$LDFLAGS
916 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
917 ac_cv_env_LDFLAGS_value=$LDFLAGS
918 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
919 ac_env_CPPFLAGS_value=$CPPFLAGS
920 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
921 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
922 ac_env_CPP_set=${CPP+set}
923 ac_env_CPP_value=$CPP
924 ac_cv_env_CPP_set=${CPP+set}
925 ac_cv_env_CPP_value=$CPP
926 ac_env_CXX_set=${CXX+set}
927 ac_env_CXX_value=$CXX
928 ac_cv_env_CXX_set=${CXX+set}
929 ac_cv_env_CXX_value=$CXX
930 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
931 ac_env_CXXFLAGS_value=$CXXFLAGS
932 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
933 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
934 ac_env_CXXCPP_set=${CXXCPP+set}
935 ac_env_CXXCPP_value=$CXXCPP
936 ac_cv_env_CXXCPP_set=${CXXCPP+set}
937 ac_cv_env_CXXCPP_value=$CXXCPP
938 ac_env_F77_set=${F77+set}
939 ac_env_F77_value=$F77
940 ac_cv_env_F77_set=${F77+set}
941 ac_cv_env_F77_value=$F77
942 ac_env_FFLAGS_set=${FFLAGS+set}
943 ac_env_FFLAGS_value=$FFLAGS
944 ac_cv_env_FFLAGS_set=${FFLAGS+set}
945 ac_cv_env_FFLAGS_value=$FFLAGS
946
947 #
948 # Report the --help message.
949 #
950 if test "$ac_init_help" = "long"; then
951   # Omit some internal or obsolete options to make the list less imposing.
952   # This message is too long to be a string in the A/UX 3.1 sh.
953   cat <<_ACEOF
954 \`configure' configures this package to adapt to many kinds of systems.
955
956 Usage: $0 [OPTION]... [VAR=VALUE]...
957
958 To assign environment variables (e.g., CC, CFLAGS...), specify them as
959 VAR=VALUE.  See below for descriptions of some of the useful variables.
960
961 Defaults for the options are specified in brackets.
962
963 Configuration:
964   -h, --help              display this help and exit
965       --help=short        display options specific to this package
966       --help=recursive    display the short help of all the included packages
967   -V, --version           display version information and exit
968   -q, --quiet, --silent   do not print \`checking...' messages
969       --cache-file=FILE   cache test results in FILE [disabled]
970   -C, --config-cache      alias for \`--cache-file=config.cache'
971   -n, --no-create         do not create output files
972       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
973
974 _ACEOF
975
976   cat <<_ACEOF
977 Installation directories:
978   --prefix=PREFIX         install architecture-independent files in PREFIX
979                           [$ac_default_prefix]
980   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
981                           [PREFIX]
982
983 By default, \`make install' will install all the files in
984 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
985 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
986 for instance \`--prefix=\$HOME'.
987
988 For better control, use the options below.
989
990 Fine tuning of the installation directories:
991   --bindir=DIR           user executables [EPREFIX/bin]
992   --sbindir=DIR          system admin executables [EPREFIX/sbin]
993   --libexecdir=DIR       program executables [EPREFIX/libexec]
994   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
995   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
996   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
997   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
998   --libdir=DIR           object code libraries [EPREFIX/lib]
999   --includedir=DIR       C header files [PREFIX/include]
1000   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1001   --infodir=DIR          info documentation [PREFIX/info]
1002   --mandir=DIR           man documentation [PREFIX/man]
1003 _ACEOF
1004
1005   cat <<\_ACEOF
1006
1007 Program names:
1008   --program-prefix=PREFIX            prepend PREFIX to installed program names
1009   --program-suffix=SUFFIX            append SUFFIX to installed program names
1010   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1011
1012 System types:
1013   --build=BUILD     configure for building on BUILD [guessed]
1014   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1015   --target=TARGET   configure for building compilers for TARGET [HOST]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021   cat <<\_ACEOF
1022
1023 Optional Features:
1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1026   --enable-kernel-support enable building of the kernel module (default=yes)
1027   --enable-modversions    enable modeversions support (default=auto-detect)
1028   --enable-debug          enable debug messages to stdout (default=no)
1029   --enable-kdebug         enable kernel module debug messages (default=no)
1030   --enable-autofs-install enable installing of autofs configuration (default=no)
1031   --enable-suid           make lufsmnt and lufsumount suid root (default=yes)
1032   --enable-static[=PKGS]
1033                           build static libraries [default=no]
1034   --disable-dependency-tracking Speeds up one-time builds
1035   --enable-dependency-tracking  Do not reject slow dependency extractors
1036   --enable-shared[=PKGS]
1037                           build shared libraries [default=yes]
1038   --enable-fast-install[=PKGS]
1039                           optimize for fast installation [default=yes]
1040   --disable-libtool-lock  avoid locking (might break parallel builds)
1041   --enable-wavfs          build wavfs support (default=no)
1042   --enable-cefs           build cefs support (default=no)
1043   --enable-cardfs         build cardfs support (default=no)
1044
1045 Optional Packages:
1046   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1047   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1048   --with-kernel=VERSION   specify a kernel version to compile for
1049   --with-kheaders=DIR     specify the location of the kernel headers
1050   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1051   --with-pic              try to use only PIC/non-PIC objects [default=use
1052                           both]
1053   --with-tags[=TAGS]
1054                           include additional configurations [automatic]
1055   --with-ssh=PATH         specify the path to the ssh executable
1056   --with-chipcard-dir=DIR uses libchipcard from given dir
1057
1058 Some influential environment variables:
1059   CC          C compiler command
1060   CFLAGS      C compiler flags
1061   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1062               nonstandard directory <lib dir>
1063   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1064               headers in a nonstandard directory <include dir>
1065   CPP         C preprocessor
1066   CXX         C++ compiler command
1067   CXXFLAGS    C++ compiler flags
1068   CXXCPP      C++ preprocessor
1069   F77         Fortran 77 compiler command
1070   FFLAGS      Fortran 77 compiler flags
1071
1072 Use these variables to override the choices made by `configure' or to help
1073 it to find libraries and programs with nonstandard names/locations.
1074
1075 _ACEOF
1076 fi
1077
1078 if test "$ac_init_help" = "recursive"; then
1079   # If there are subdirs, report their specific --help.
1080   ac_popdir=`pwd`
1081   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1082     test -d $ac_dir || continue
1083     ac_builddir=.
1084
1085 if test "$ac_dir" != .; then
1086   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1087   # A "../" for each directory in $ac_dir_suffix.
1088   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1089 else
1090   ac_dir_suffix= ac_top_builddir=
1091 fi
1092
1093 case $srcdir in
1094   .)  # No --srcdir option.  We are building in place.
1095     ac_srcdir=.
1096     if test -z "$ac_top_builddir"; then
1097        ac_top_srcdir=.
1098     else
1099        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1100     fi ;;
1101   [\\/]* | ?:[\\/]* )  # Absolute path.
1102     ac_srcdir=$srcdir$ac_dir_suffix;
1103     ac_top_srcdir=$srcdir ;;
1104   *) # Relative path.
1105     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1106     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1107 esac
1108 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
1109 # absolute.
1110 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
1111 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
1112 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
1113 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
1114
1115     cd $ac_dir
1116     # Check for guested configure; otherwise get Cygnus style configure.
1117     if test -f $ac_srcdir/configure.gnu; then
1118       echo
1119       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1120     elif test -f $ac_srcdir/configure; then
1121       echo
1122       $SHELL $ac_srcdir/configure  --help=recursive
1123     elif test -f $ac_srcdir/configure.ac ||
1124            test -f $ac_srcdir/configure.in; then
1125       echo
1126       $ac_configure --help
1127     else
1128       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1129     fi
1130     cd $ac_popdir
1131   done
1132 fi
1133
1134 test -n "$ac_init_help" && exit 0
1135 if $ac_init_version; then
1136   cat <<\_ACEOF
1137
1138 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
1139 Free Software Foundation, Inc.
1140 This configure script is free software; the Free Software Foundation
1141 gives unlimited permission to copy, distribute and modify it.
1142 _ACEOF
1143   exit 0
1144 fi
1145 exec 5>config.log
1146 cat >&5 <<_ACEOF
1147 This file contains any messages produced by compilers while
1148 running configure, to aid debugging if configure makes a mistake.
1149
1150 It was created by $as_me, which was
1151 generated by GNU Autoconf 2.57.  Invocation command line was
1152
1153   $ $0 $@
1154
1155 _ACEOF
1156 {
1157 cat <<_ASUNAME
1158 ## --------- ##
1159 ## Platform. ##
1160 ## --------- ##
1161
1162 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1163 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1164 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1165 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1166 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1167
1168 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1169 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1170
1171 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1172 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1173 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1174 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1175 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1176 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1177 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1178
1179 _ASUNAME
1180
1181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1182 for as_dir in $PATH
1183 do
1184   IFS=$as_save_IFS
1185   test -z "$as_dir" && as_dir=.
1186   echo "PATH: $as_dir"
1187 done
1188
1189 } >&5
1190
1191 cat >&5 <<_ACEOF
1192
1193
1194 ## ----------- ##
1195 ## Core tests. ##
1196 ## ----------- ##
1197
1198 _ACEOF
1199
1200
1201 # Keep a trace of the command line.
1202 # Strip out --no-create and --no-recursion so they do not pile up.
1203 # Strip out --silent because we don't want to record it for future runs.
1204 # Also quote any args containing shell meta-characters.
1205 # Make two passes to allow for proper duplicate-argument suppression.
1206 ac_configure_args=
1207 ac_configure_args0=
1208 ac_configure_args1=
1209 ac_sep=
1210 ac_must_keep_next=false
1211 for ac_pass in 1 2
1212 do
1213   for ac_arg
1214   do
1215     case $ac_arg in
1216     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1217     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1218     | -silent | --silent | --silen | --sile | --sil)
1219       continue ;;
1220     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1221       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1222     esac
1223     case $ac_pass in
1224     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1225     2)
1226       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1227       if test $ac_must_keep_next = true; then
1228         ac_must_keep_next=false # Got value, back to normal.
1229       else
1230         case $ac_arg in
1231           *=* | --config-cache | -C | -disable-* | --disable-* \
1232           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1233           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1234           | -with-* | --with-* | -without-* | --without-* | --x)
1235             case "$ac_configure_args0 " in
1236               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1237             esac
1238             ;;
1239           -* ) ac_must_keep_next=true ;;
1240         esac
1241       fi
1242       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1243       # Get rid of the leading space.
1244       ac_sep=" "
1245       ;;
1246     esac
1247   done
1248 done
1249 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1250 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1251
1252 # When interrupted or exit'd, cleanup temporary files, and complete
1253 # config.log.  We remove comments because anyway the quotes in there
1254 # would cause problems or look ugly.
1255 # WARNING: Be sure not to use single quotes in there, as some shells,
1256 # such as our DU 5.0 friend, will then `close' the trap.
1257 trap 'exit_status=$?
1258   # Save into config.log some information that might help in debugging.
1259   {
1260     echo
1261
1262     cat <<\_ASBOX
1263 ## ---------------- ##
1264 ## Cache variables. ##
1265 ## ---------------- ##
1266 _ASBOX
1267     echo
1268     # The following way of writing the cache mishandles newlines in values,
1269 {
1270   (set) 2>&1 |
1271     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1272     *ac_space=\ *)
1273       sed -n \
1274         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1275           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1276       ;;
1277     *)
1278       sed -n \
1279         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1280       ;;
1281     esac;
1282 }
1283     echo
1284
1285     cat <<\_ASBOX
1286 ## ----------------- ##
1287 ## Output variables. ##
1288 ## ----------------- ##
1289 _ASBOX
1290     echo
1291     for ac_var in $ac_subst_vars
1292     do
1293       eval ac_val=$`echo $ac_var`
1294       echo "$ac_var='"'"'$ac_val'"'"'"
1295     done | sort
1296     echo
1297
1298     if test -n "$ac_subst_files"; then
1299       cat <<\_ASBOX
1300 ## ------------- ##
1301 ## Output files. ##
1302 ## ------------- ##
1303 _ASBOX
1304       echo
1305       for ac_var in $ac_subst_files
1306       do
1307         eval ac_val=$`echo $ac_var`
1308         echo "$ac_var='"'"'$ac_val'"'"'"
1309       done | sort
1310       echo
1311     fi
1312
1313     if test -s confdefs.h; then
1314       cat <<\_ASBOX
1315 ## ----------- ##
1316 ## confdefs.h. ##
1317 ## ----------- ##
1318 _ASBOX
1319       echo
1320       sed "/^$/d" confdefs.h | sort
1321       echo
1322     fi
1323     test "$ac_signal" != 0 &&
1324       echo "$as_me: caught signal $ac_signal"
1325     echo "$as_me: exit $exit_status"
1326   } >&5
1327   rm -f core core.* *.core &&
1328   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1329     exit $exit_status
1330      ' 0
1331 for ac_signal in 1 2 13 15; do
1332   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1333 done
1334 ac_signal=0
1335
1336 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1337 rm -rf conftest* confdefs.h
1338 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1339 echo >confdefs.h
1340
1341 # Predefined preprocessor variables.
1342
1343 cat >>confdefs.h <<_ACEOF
1344 #define PACKAGE_NAME "$PACKAGE_NAME"
1345 _ACEOF
1346
1347
1348 cat >>confdefs.h <<_ACEOF
1349 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1350 _ACEOF
1351
1352
1353 cat >>confdefs.h <<_ACEOF
1354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1355 _ACEOF
1356
1357
1358 cat >>confdefs.h <<_ACEOF
1359 #define PACKAGE_STRING "$PACKAGE_STRING"
1360 _ACEOF
1361
1362
1363 cat >>confdefs.h <<_ACEOF
1364 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1365 _ACEOF
1366
1367
1368 # Let the site file select an alternate cache file if it wants to.
1369 # Prefer explicitly selected file to automatically selected ones.
1370 if test -z "$CONFIG_SITE"; then
1371   if test "x$prefix" != xNONE; then
1372     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1373   else
1374     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1375   fi
1376 fi
1377 for ac_site_file in $CONFIG_SITE; do
1378   if test -r "$ac_site_file"; then
1379     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1380 echo "$as_me: loading site script $ac_site_file" >&6;}
1381     sed 's/^/| /' "$ac_site_file" >&5
1382     . "$ac_site_file"
1383   fi
1384 done
1385
1386 if test -r "$cache_file"; then
1387   # Some versions of bash will fail to source /dev/null (special
1388   # files actually), so we avoid doing that.
1389   if test -f "$cache_file"; then
1390     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1391 echo "$as_me: loading cache $cache_file" >&6;}
1392     case $cache_file in
1393       [\\/]* | ?:[\\/]* ) . $cache_file;;
1394       *)                      . ./$cache_file;;
1395     esac
1396   fi
1397 else
1398   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1399 echo "$as_me: creating cache $cache_file" >&6;}
1400   >$cache_file
1401 fi
1402
1403 # Check that the precious variables saved in the cache have kept the same
1404 # value.
1405 ac_cache_corrupted=false
1406 for ac_var in `(set) 2>&1 |
1407                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1408   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1409   eval ac_new_set=\$ac_env_${ac_var}_set
1410   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1411   eval ac_new_val="\$ac_env_${ac_var}_value"
1412   case $ac_old_set,$ac_new_set in
1413     set,)
1414       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1415 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1416       ac_cache_corrupted=: ;;
1417     ,set)
1418       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1419 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1420       ac_cache_corrupted=: ;;
1421     ,);;
1422     *)
1423       if test "x$ac_old_val" != "x$ac_new_val"; then
1424         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1425 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1426         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1427 echo "$as_me:   former value:  $ac_old_val" >&2;}
1428         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1429 echo "$as_me:   current value: $ac_new_val" >&2;}
1430         ac_cache_corrupted=:
1431       fi;;
1432   esac
1433   # Pass precious variables to config.status.
1434   if test "$ac_new_set" = set; then
1435     case $ac_new_val in
1436     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1437       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1438     *) ac_arg=$ac_var=$ac_new_val ;;
1439     esac
1440     case " $ac_configure_args " in
1441       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1442       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1443     esac
1444   fi
1445 done
1446 if $ac_cache_corrupted; then
1447   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1448 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1449   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1450 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1451    { (exit 1); exit 1; }; }
1452 fi
1453
1454 ac_ext=c
1455 ac_cpp='$CPP $CPPFLAGS'
1456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478 ac_aux_dir=
1479 for ac_dir in config $srcdir/config; do
1480   if test -f $ac_dir/install-sh; then
1481     ac_aux_dir=$ac_dir
1482     ac_install_sh="$ac_aux_dir/install-sh -c"
1483     break
1484   elif test -f $ac_dir/install.sh; then
1485     ac_aux_dir=$ac_dir
1486     ac_install_sh="$ac_aux_dir/install.sh -c"
1487     break
1488   elif test -f $ac_dir/shtool; then
1489     ac_aux_dir=$ac_dir
1490     ac_install_sh="$ac_aux_dir/shtool install -c"
1491     break
1492   fi
1493 done
1494 if test -z "$ac_aux_dir"; then
1495   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1496 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1497    { (exit 1); exit 1; }; }
1498 fi
1499 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1500 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1501 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1502
1503           ac_config_headers="$ac_config_headers config.h"
1504
1505 # Make sure we can run config.sub.
1506 $ac_config_sub sun4 >/dev/null 2>&1 ||
1507   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1508 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1509    { (exit 1); exit 1; }; }
1510
1511 echo "$as_me:$LINENO: checking build system type" >&5
1512 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1513 if test "${ac_cv_build+set}" = set; then
1514   echo $ECHO_N "(cached) $ECHO_C" >&6
1515 else
1516   ac_cv_build_alias=$build_alias
1517 test -z "$ac_cv_build_alias" &&
1518   ac_cv_build_alias=`$ac_config_guess`
1519 test -z "$ac_cv_build_alias" &&
1520   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1521 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1522    { (exit 1); exit 1; }; }
1523 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1524   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1525 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1526    { (exit 1); exit 1; }; }
1527
1528 fi
1529 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1530 echo "${ECHO_T}$ac_cv_build" >&6
1531 build=$ac_cv_build
1532 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1533 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1534 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1535
1536
1537 echo "$as_me:$LINENO: checking host system type" >&5
1538 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1539 if test "${ac_cv_host+set}" = set; then
1540   echo $ECHO_N "(cached) $ECHO_C" >&6
1541 else
1542   ac_cv_host_alias=$host_alias
1543 test -z "$ac_cv_host_alias" &&
1544   ac_cv_host_alias=$ac_cv_build_alias
1545 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1546   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1547 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1548    { (exit 1); exit 1; }; }
1549
1550 fi
1551 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1552 echo "${ECHO_T}$ac_cv_host" >&6
1553 host=$ac_cv_host
1554 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1555 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1556 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1557
1558
1559 echo "$as_me:$LINENO: checking target system type" >&5
1560 echo $ECHO_N "checking target system type... $ECHO_C" >&6
1561 if test "${ac_cv_target+set}" = set; then
1562   echo $ECHO_N "(cached) $ECHO_C" >&6
1563 else
1564   ac_cv_target_alias=$target_alias
1565 test "x$ac_cv_target_alias" = "x" &&
1566   ac_cv_target_alias=$ac_cv_host_alias
1567 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
1568   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
1569 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
1570    { (exit 1); exit 1; }; }
1571
1572 fi
1573 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
1574 echo "${ECHO_T}$ac_cv_target" >&6
1575 target=$ac_cv_target
1576 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1577 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1578 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1579
1580
1581 # The aliases save the names the user supplied, while $host etc.
1582 # will get canonicalized.
1583 test -n "$target_alias" &&
1584   test "$program_prefix$program_suffix$program_transform_name" = \
1585     NONENONEs,x,x, &&
1586   program_prefix=${target_alias}-
1587 am__api_version="1.7"
1588 # Find a good install program.  We prefer a C program (faster),
1589 # so one script is as good as another.  But avoid the broken or
1590 # incompatible versions:
1591 # SysV /etc/install, /usr/sbin/install
1592 # SunOS /usr/etc/install
1593 # IRIX /sbin/install
1594 # AIX /bin/install
1595 # AmigaOS /C/install, which installs bootblocks on floppy discs
1596 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1597 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1598 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1599 # ./install, which can be erroneously created by make from ./install.sh.
1600 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1601 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1602 if test -z "$INSTALL"; then
1603 if test "${ac_cv_path_install+set}" = set; then
1604   echo $ECHO_N "(cached) $ECHO_C" >&6
1605 else
1606   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609   IFS=$as_save_IFS
1610   test -z "$as_dir" && as_dir=.
1611   # Account for people who put trailing slashes in PATH elements.
1612 case $as_dir/ in
1613   ./ | .// | /cC/* | \
1614   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1615   /usr/ucb/* ) ;;
1616   *)
1617     # OSF1 and SCO ODT 3.0 have their own names for install.
1618     # Don't use installbsd from OSF since it installs stuff as root
1619     # by default.
1620     for ac_prog in ginstall scoinst install; do
1621       for ac_exec_ext in '' $ac_executable_extensions; do
1622         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1623           if test $ac_prog = install &&
1624             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1625             # AIX install.  It has an incompatible calling convention.
1626             :
1627           elif test $ac_prog = install &&
1628             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1629             # program-specific install script used by HP pwplus--don't use.
1630             :
1631           else
1632             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1633             break 3
1634           fi
1635         fi
1636       done
1637     done
1638     ;;
1639 esac
1640 done
1641
1642
1643 fi
1644   if test "${ac_cv_path_install+set}" = set; then
1645     INSTALL=$ac_cv_path_install
1646   else
1647     # As a last resort, use the slow shell script.  We don't cache a
1648     # path for INSTALL within a source directory, because that will
1649     # break other packages using the cache if that directory is
1650     # removed, or if the path is relative.
1651     INSTALL=$ac_install_sh
1652   fi
1653 fi
1654 echo "$as_me:$LINENO: result: $INSTALL" >&5
1655 echo "${ECHO_T}$INSTALL" >&6
1656
1657 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1658 # It thinks the first close brace ends the variable substitution.
1659 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1660
1661 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1662
1663 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1664
1665 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1666 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1667 # Just in case
1668 sleep 1
1669 echo timestamp > conftest.file
1670 # Do `set' in a subshell so we don't clobber the current shell's
1671 # arguments.  Must try -L first in case configure is actually a
1672 # symlink; some systems play weird games with the mod time of symlinks
1673 # (eg FreeBSD returns the mod time of the symlink's containing
1674 # directory).
1675 if (
1676    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1677    if test "$*" = "X"; then
1678       # -L didn't work.
1679       set X `ls -t $srcdir/configure conftest.file`
1680    fi
1681    rm -f conftest.file
1682    if test "$*" != "X $srcdir/configure conftest.file" \
1683       && test "$*" != "X conftest.file $srcdir/configure"; then
1684
1685       # If neither matched, then we have a broken ls.  This can happen
1686       # if, for instance, CONFIG_SHELL is bash and it inherits a
1687       # broken ls alias from the environment.  This has actually
1688       # happened.  Such a system could not be considered "sane".
1689       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1690 alias in your environment" >&5
1691 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1692 alias in your environment" >&2;}
1693    { (exit 1); exit 1; }; }
1694    fi
1695
1696    test "$2" = conftest.file
1697    )
1698 then
1699    # Ok.
1700    :
1701 else
1702    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1703 Check your system clock" >&5
1704 echo "$as_me: error: newly created file is older than distributed files!
1705 Check your system clock" >&2;}
1706    { (exit 1); exit 1; }; }
1707 fi
1708 echo "$as_me:$LINENO: result: yes" >&5
1709 echo "${ECHO_T}yes" >&6
1710 test "$program_prefix" != NONE &&
1711   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1712 # Use a double $ so make ignores it.
1713 test "$program_suffix" != NONE &&
1714   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1715 # Double any \ or $.  echo might interpret backslashes.
1716 # By default was `s,x,x', remove it if useless.
1717 cat <<\_ACEOF >conftest.sed
1718 s/[\\$]/&&/g;s/;s,x,x,$//
1719 _ACEOF
1720 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1721 rm conftest.sed
1722
1723
1724 # expand $ac_aux_dir to an absolute path
1725 am_aux_dir=`cd $ac_aux_dir && pwd`
1726
1727 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1728 # Use eval to expand $SHELL
1729 if eval "$MISSING --run true"; then
1730   am_missing_run="$MISSING --run "
1731 else
1732   am_missing_run=
1733   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1734 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1735 fi
1736
1737 for ac_prog in gawk mawk nawk awk
1738 do
1739   # Extract the first word of "$ac_prog", so it can be a program name with args.
1740 set dummy $ac_prog; ac_word=$2
1741 echo "$as_me:$LINENO: checking for $ac_word" >&5
1742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1743 if test "${ac_cv_prog_AWK+set}" = set; then
1744   echo $ECHO_N "(cached) $ECHO_C" >&6
1745 else
1746   if test -n "$AWK"; then
1747   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1748 else
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1751 do
1752   IFS=$as_save_IFS
1753   test -z "$as_dir" && as_dir=.
1754   for ac_exec_ext in '' $ac_executable_extensions; do
1755   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1756     ac_cv_prog_AWK="$ac_prog"
1757     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1758     break 2
1759   fi
1760 done
1761 done
1762
1763 fi
1764 fi
1765 AWK=$ac_cv_prog_AWK
1766 if test -n "$AWK"; then
1767   echo "$as_me:$LINENO: result: $AWK" >&5
1768 echo "${ECHO_T}$AWK" >&6
1769 else
1770   echo "$as_me:$LINENO: result: no" >&5
1771 echo "${ECHO_T}no" >&6
1772 fi
1773
1774   test -n "$AWK" && break
1775 done
1776
1777 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1778 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1779 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
1780 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1781   echo $ECHO_N "(cached) $ECHO_C" >&6
1782 else
1783   cat >conftest.make <<\_ACEOF
1784 all:
1785         @echo 'ac_maketemp="$(MAKE)"'
1786 _ACEOF
1787 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1788 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1789 if test -n "$ac_maketemp"; then
1790   eval ac_cv_prog_make_${ac_make}_set=yes
1791 else
1792   eval ac_cv_prog_make_${ac_make}_set=no
1793 fi
1794 rm -f conftest.make
1795 fi
1796 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1797   echo "$as_me:$LINENO: result: yes" >&5
1798 echo "${ECHO_T}yes" >&6
1799   SET_MAKE=
1800 else
1801   echo "$as_me:$LINENO: result: no" >&5
1802 echo "${ECHO_T}no" >&6
1803   SET_MAKE="MAKE=${MAKE-make}"
1804 fi
1805
1806 rm -rf .tst 2>/dev/null
1807 mkdir .tst 2>/dev/null
1808 if test -d .tst; then
1809   am__leading_dot=.
1810 else
1811   am__leading_dot=_
1812 fi
1813 rmdir .tst 2>/dev/null
1814
1815  # test to see if srcdir already configured
1816 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1817    test -f $srcdir/config.status; then
1818   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1819 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1820    { (exit 1); exit 1; }; }
1821 fi
1822
1823 # test whether we have cygpath
1824 if test -z "$CYGPATH_W"; then
1825   if (cygpath --version) >/dev/null 2>/dev/null; then
1826     CYGPATH_W='cygpath -w'
1827   else
1828     CYGPATH_W=echo
1829   fi
1830 fi
1831
1832
1833 # Define the identity of the package.
1834  PACKAGE=lufs
1835  VERSION=0.9.7
1836
1837
1838 cat >>confdefs.h <<_ACEOF
1839 #define PACKAGE "$PACKAGE"
1840 _ACEOF
1841
1842
1843 cat >>confdefs.h <<_ACEOF
1844 #define VERSION "$VERSION"
1845 _ACEOF
1846
1847 # Some tools Automake needs.
1848
1849 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1850
1851
1852 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1853
1854
1855 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1856
1857
1858 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1859
1860
1861 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1862
1863
1864 AMTAR=${AMTAR-"${am_missing_run}tar"}
1865
1866 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1867
1868 # Installed binaries are usually stripped using `strip' when the user
1869 # run `make install-strip'.  However `strip' might not be the right
1870 # tool to use in cross-compilation environments, therefore Automake
1871 # will honor the `STRIP' environment variable to overrule this program.
1872 if test "$cross_compiling" != no; then
1873   if test -n "$ac_tool_prefix"; then
1874   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1875 set dummy ${ac_tool_prefix}strip; ac_word=$2
1876 echo "$as_me:$LINENO: checking for $ac_word" >&5
1877 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1878 if test "${ac_cv_prog_STRIP+set}" = set; then
1879   echo $ECHO_N "(cached) $ECHO_C" >&6
1880 else
1881   if test -n "$STRIP"; then
1882   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1883 else
1884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1885 for as_dir in $PATH
1886 do
1887   IFS=$as_save_IFS
1888   test -z "$as_dir" && as_dir=.
1889   for ac_exec_ext in '' $ac_executable_extensions; do
1890   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1891     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1892     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1893     break 2
1894   fi
1895 done
1896 done
1897
1898 fi
1899 fi
1900 STRIP=$ac_cv_prog_STRIP
1901 if test -n "$STRIP"; then
1902   echo "$as_me:$LINENO: result: $STRIP" >&5
1903 echo "${ECHO_T}$STRIP" >&6
1904 else
1905   echo "$as_me:$LINENO: result: no" >&5
1906 echo "${ECHO_T}no" >&6
1907 fi
1908
1909 fi
1910 if test -z "$ac_cv_prog_STRIP"; then
1911   ac_ct_STRIP=$STRIP
1912   # Extract the first word of "strip", so it can be a program name with args.
1913 set dummy strip; ac_word=$2
1914 echo "$as_me:$LINENO: checking for $ac_word" >&5
1915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1916 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1917   echo $ECHO_N "(cached) $ECHO_C" >&6
1918 else
1919   if test -n "$ac_ct_STRIP"; then
1920   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1921 else
1922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1923 for as_dir in $PATH
1924 do
1925   IFS=$as_save_IFS
1926   test -z "$as_dir" && as_dir=.
1927   for ac_exec_ext in '' $ac_executable_extensions; do
1928   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1929     ac_cv_prog_ac_ct_STRIP="strip"
1930     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1931     break 2
1932   fi
1933 done
1934 done
1935
1936   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1937 fi
1938 fi
1939 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1940 if test -n "$ac_ct_STRIP"; then
1941   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1942 echo "${ECHO_T}$ac_ct_STRIP" >&6
1943 else
1944   echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 fi
1947
1948   STRIP=$ac_ct_STRIP
1949 else
1950   STRIP="$ac_cv_prog_STRIP"
1951 fi
1952
1953 fi
1954 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
1955
1956 # We need awk for the "check" target.  The system "awk" is bad on
1957 # some platforms.
1958
1959
1960
1961
1962 opt_fs="localfs locasefs ftpfs gnetfs"
1963
1964 # Check whether --enable-kernel-support or --disable-kernel-support was given.
1965 if test "${enable_kernel_support+set}" = set; then
1966   enableval="$enable_kernel_support"
1967     KERNEL_SUPPORT=$enableval
1968 fi;
1969
1970 if test "$KERNEL_SUPPORT" != "no"
1971 then
1972
1973         echo "$as_me:$LINENO: checking OS" >&5
1974 echo $ECHO_N "checking OS... $ECHO_C" >&6
1975     OS_DIR=`uname -s`
1976     if test ! -d kernel/$OS_DIR
1977     then
1978         { { echo "$as_me:$LINENO: error: $OS_DIR - not supported!" >&5
1979 echo "$as_me: error: $OS_DIR - not supported!" >&2;}
1980    { (exit 1); exit 1; }; }
1981     else
1982         echo "$as_me:$LINENO: result: $OS_DIR" >&5
1983 echo "${ECHO_T}$OS_DIR" >&6
1984     fi
1985
1986         if test "$OS_DIR"="Linux"
1987     then
1988
1989                 echo "$as_me:$LINENO: checking kernel" >&5
1990 echo $ECHO_N "checking kernel... $ECHO_C" >&6
1991
1992 # Check whether --with-kernel or --without-kernel was given.
1993 if test "${with_kernel+set}" = set; then
1994   withval="$with_kernel"
1995   KERNEL_VERSION=$withval
1996 else
1997   KERNEL_VERSION=`uname -r`
1998 fi;
1999         MODULES_DIR=/lib/modules/$KERNEL_VERSION
2000         echo "$as_me:$LINENO: result: $KERNEL_VERSION" >&5
2001 echo "${ECHO_T}$KERNEL_VERSION" >&6
2002
2003         echo "$as_me:$LINENO: checking kernel support" >&5
2004 echo $ECHO_N "checking kernel support... $ECHO_C" >&6
2005         KERNEL_DIR=`echo $KERNEL_VERSION | cut -d'.' -f1,2`
2006         if test ! -d kernel/$OS_DIR/$KERNEL_DIR
2007         then
2008             { { echo "$as_me:$LINENO: error: $KERNEL_DIR not supported!" >&5
2009 echo "$as_me: error: $KERNEL_DIR not supported!" >&2;}
2010    { (exit 1); exit 1; }; }
2011         else
2012             echo "$as_me:$LINENO: result: supported in kernel/$OS_DIR/$KERNEL_DIR" >&5
2013 echo "${ECHO_T}supported in kernel/$OS_DIR/$KERNEL_DIR" >&6
2014         fi
2015
2016         echo "$as_me:$LINENO: checking kernel headers" >&5
2017 echo $ECHO_N "checking kernel headers... $ECHO_C" >&6
2018
2019 # Check whether --with-kheaders or --without-kheaders was given.
2020 if test "${with_kheaders+set}" = set; then
2021   withval="$with_kheaders"
2022   KERNEL_HDR=$withval
2023 else
2024   KERNEL_HDR=$MODULES_DIR/build/include
2025 fi;
2026         if test ! -f $KERNEL_HDR/linux/fs.h
2027         then
2028             { { echo "$as_me:$LINENO: error: not found in $KERNEL_HDR. please install them!" >&5
2029 echo "$as_me: error: not found in $KERNEL_HDR. please install them!" >&2;}
2030    { (exit 1); exit 1; }; }
2031         else
2032             echo "$as_me:$LINENO: result: found in $KERNEL_HDR" >&5
2033 echo "${ECHO_T}found in $KERNEL_HDR" >&6
2034         fi
2035
2036         echo "$as_me:$LINENO: checking kernel configuration" >&5
2037 echo $ECHO_N "checking kernel configuration... $ECHO_C" >&6
2038         if test -f $MODULES_DIR/build/.config
2039         then
2040             tmp=`cat $MODULES_DIR/build/.config | grep CONFIG_MODVERSIONS=y`
2041             if test "$tmp"
2042             then
2043                 echo "$as_me:$LINENO: result: found, using modversions" >&5
2044 echo "${ECHO_T}found, using modversions" >&6
2045                 MODVERSIONS="yes"
2046 #               MODV_FLAGS="-DMODVERSIONS -include $KERNEL_HDR/linux/modversions.h"
2047             else
2048                 echo "$as_me:$LINENO: result: found, not using modversions" >&5
2049 echo "${ECHO_T}found, not using modversions" >&6
2050             fi
2051         else
2052             echo "$as_me:$LINENO: result: not found at $MODULES_DIR/build/.config, assuming modversions support" >&5
2053 echo "${ECHO_T}not found at $MODULES_DIR/build/.config, assuming modversions support" >&6
2054             MODVERSIONS="yes"
2055 #           MODV_FLAGS="-DMODVERSIONS -include $KERNEL_HDR/linux/modversions.h"
2056         fi
2057
2058         # Check whether --enable-modversions or --disable-modversions was given.
2059 if test "${enable_modversions+set}" = set; then
2060   enableval="$enable_modversions"
2061    if test $enableval = "yes"; then MODVERSIONS="yes"; else MODVERSIONS=""; fi
2062 fi;
2063
2064         if test $MODVERSIONS; then
2065             echo "$as_me:$LINENO: checking modversions.h" >&5
2066 echo $ECHO_N "checking modversions.h... $ECHO_C" >&6
2067             if test -f $KERNEL_HDR/linux/modversions.h; then
2068                 MODV_FILE="$KERNEL_HDR/linux/modversions.h"
2069             fi
2070
2071             if test -f $KERNEL_HDR/config/modversions.h; then
2072                 MODV_FILE="$KERNEL_HDR/config/modversions.h"
2073             fi
2074
2075             if test $MODV_FILE; then
2076                 MODV_FLAGS="-DMODVERSIONS -include $MODV_FILE"
2077                 echo "$as_me:$LINENO: result: $MODV_FILE" >&5
2078 echo "${ECHO_T}$MODV_FILE" >&6
2079             else
2080                 { { echo "$as_me:$LINENO: error: not found!" >&5
2081 echo "$as_me: error: not found!" >&2;}
2082    { (exit 1); exit 1; }; }
2083             fi
2084         fi
2085
2086
2087
2088
2089
2090
2091     fi
2092 fi
2093
2094
2095
2096 # Check whether --enable-debug or --disable-debug was given.
2097 if test "${enable_debug+set}" = set; then
2098   enableval="$enable_debug"
2099     DEBUG_FLAGS="-g -DDEBUG" && CXXFLAGS="-g -O2 -Wall -DDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" && CFLAGS="-g -O2 -Wall -DDEBUG -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2100 else
2101     CXXFLAGS="-O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" && CFLAGS="-O2 -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
2102 fi;
2103
2104
2105 # Check whether --enable-kdebug or --disable-kdebug was given.
2106 if test "${enable_kdebug+set}" = set; then
2107   enableval="$enable_kdebug"
2108     KDEBUG_FLAGS="-DLUFS_DEBUG -DLUFS_VERBOSE"
2109 fi;
2110
2111
2112 # Check whether --enable-autofs-install or --disable-autofs-install was given.
2113 if test "${enable_autofs_install+set}" = set; then
2114   enableval="$enable_autofs_install"
2115     AUTOFS_INSTALL="yes"
2116 fi;
2117
2118
2119 # Check whether --enable-suid or --disable-suid was given.
2120 if test "${enable_suid+set}" = set; then
2121   enableval="$enable_suid"
2122    if test $enableval = "no"; then LUFS_SUID=""; else LUFS_SUID="true"; fi
2123 else
2124   LUFS_SUID="true"
2125 fi;
2126
2127
2128 # Check whether --enable-static or --disable-static was given.
2129 if test "${enable_static+set}" = set; then
2130   enableval="$enable_static"
2131   p=${PACKAGE-default}
2132     case $enableval in
2133     yes) enable_static=yes ;;
2134     no) enable_static=no ;;
2135     *)
2136      enable_static=no
2137       # Look at the argument we got.  We use all the common list separators.
2138       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2139       for pkg in $enableval; do
2140         IFS="$lt_save_ifs"
2141         if test "X$pkg" = "X$p"; then
2142           enable_static=yes
2143         fi
2144       done
2145       IFS="$lt_save_ifs"
2146       ;;
2147     esac
2148 else
2149   enable_static=no
2150 fi;
2151
2152
2153
2154 ac_ext=c
2155 ac_cpp='$CPP $CPPFLAGS'
2156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2159 if test -n "$ac_tool_prefix"; then
2160   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2162 echo "$as_me:$LINENO: checking for $ac_word" >&5
2163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2164 if test "${ac_cv_prog_CC+set}" = set; then
2165   echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167   if test -n "$CC"; then
2168   ac_cv_prog_CC="$CC" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173   IFS=$as_save_IFS
2174   test -z "$as_dir" && as_dir=.
2175   for ac_exec_ext in '' $ac_executable_extensions; do
2176   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2177     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2178     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2179     break 2
2180   fi
2181 done
2182 done
2183
2184 fi
2185 fi
2186 CC=$ac_cv_prog_CC
2187 if test -n "$CC"; then
2188   echo "$as_me:$LINENO: result: $CC" >&5
2189 echo "${ECHO_T}$CC" >&6
2190 else
2191   echo "$as_me:$LINENO: result: no" >&5
2192 echo "${ECHO_T}no" >&6
2193 fi
2194
2195 fi
2196 if test -z "$ac_cv_prog_CC"; then
2197   ac_ct_CC=$CC
2198   # Extract the first word of "gcc", so it can be a program name with args.
2199 set dummy gcc; ac_word=$2
2200 echo "$as_me:$LINENO: checking for $ac_word" >&5
2201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2202 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2203   echo $ECHO_N "(cached) $ECHO_C" >&6
2204 else
2205   if test -n "$ac_ct_CC"; then
2206   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2207 else
2208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2209 for as_dir in $PATH
2210 do
2211   IFS=$as_save_IFS
2212   test -z "$as_dir" && as_dir=.
2213   for ac_exec_ext in '' $ac_executable_extensions; do
2214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2215     ac_cv_prog_ac_ct_CC="gcc"
2216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2217     break 2
2218   fi
2219 done
2220 done
2221
2222 fi
2223 fi
2224 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2225 if test -n "$ac_ct_CC"; then
2226   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2227 echo "${ECHO_T}$ac_ct_CC" >&6
2228 else
2229   echo "$as_me:$LINENO: result: no" >&5
2230 echo "${ECHO_T}no" >&6
2231 fi
2232
2233   CC=$ac_ct_CC
2234 else
2235   CC="$ac_cv_prog_CC"
2236 fi
2237
2238 if test -z "$CC"; then
2239   if test -n "$ac_tool_prefix"; then
2240   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2241 set dummy ${ac_tool_prefix}cc; ac_word=$2
2242 echo "$as_me:$LINENO: checking for $ac_word" >&5
2243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2244 if test "${ac_cv_prog_CC+set}" = set; then
2245   echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247   if test -n "$CC"; then
2248   ac_cv_prog_CC="$CC" # Let the user override the test.
2249 else
2250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2251 for as_dir in $PATH
2252 do
2253   IFS=$as_save_IFS
2254   test -z "$as_dir" && as_dir=.
2255   for ac_exec_ext in '' $ac_executable_extensions; do
2256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2257     ac_cv_prog_CC="${ac_tool_prefix}cc"
2258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2259     break 2
2260   fi
2261 done
2262 done
2263
2264 fi
2265 fi
2266 CC=$ac_cv_prog_CC
2267 if test -n "$CC"; then
2268   echo "$as_me:$LINENO: result: $CC" >&5
2269 echo "${ECHO_T}$CC" >&6
2270 else
2271   echo "$as_me:$LINENO: result: no" >&5
2272 echo "${ECHO_T}no" >&6
2273 fi
2274
2275 fi
2276 if test -z "$ac_cv_prog_CC"; then
2277   ac_ct_CC=$CC
2278   # Extract the first word of "cc", so it can be a program name with args.
2279 set dummy cc; ac_word=$2
2280 echo "$as_me:$LINENO: checking for $ac_word" >&5
2281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2282 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2283   echo $ECHO_N "(cached) $ECHO_C" >&6
2284 else
2285   if test -n "$ac_ct_CC"; then
2286   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2287 else
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2289 for as_dir in $PATH
2290 do
2291   IFS=$as_save_IFS
2292   test -z "$as_dir" && as_dir=.
2293   for ac_exec_ext in '' $ac_executable_extensions; do
2294   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2295     ac_cv_prog_ac_ct_CC="cc"
2296     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2297     break 2
2298   fi
2299 done
2300 done
2301
2302 fi
2303 fi
2304 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2305 if test -n "$ac_ct_CC"; then
2306   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2307 echo "${ECHO_T}$ac_ct_CC" >&6
2308 else
2309   echo "$as_me:$LINENO: result: no" >&5
2310 echo "${ECHO_T}no" >&6
2311 fi
2312
2313   CC=$ac_ct_CC
2314 else
2315   CC="$ac_cv_prog_CC"
2316 fi
2317
2318 fi
2319 if test -z "$CC"; then
2320   # Extract the first word of "cc", so it can be a program name with args.
2321 set dummy cc; ac_word=$2
2322 echo "$as_me:$LINENO: checking for $ac_word" >&5
2323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2324 if test "${ac_cv_prog_CC+set}" = set; then
2325   echo $ECHO_N "(cached) $ECHO_C" >&6
2326 else
2327   if test -n "$CC"; then
2328   ac_cv_prog_CC="$CC" # Let the user override the test.
2329 else
2330   ac_prog_rejected=no
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334   IFS=$as_save_IFS
2335   test -z "$as_dir" && as_dir=.
2336   for ac_exec_ext in '' $ac_executable_extensions; do
2337   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2339        ac_prog_rejected=yes
2340        continue
2341      fi
2342     ac_cv_prog_CC="cc"
2343     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2344     break 2
2345   fi
2346 done
2347 done
2348
2349 if test $ac_prog_rejected = yes; then
2350   # We found a bogon in the path, so make sure we never use it.
2351   set dummy $ac_cv_prog_CC
2352   shift
2353   if test $# != 0; then
2354     # We chose a different compiler from the bogus one.
2355     # However, it has the same basename, so the bogon will be chosen
2356     # first if we set CC to just the basename; use the full file name.
2357     shift
2358     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2359   fi
2360 fi
2361 fi
2362 fi
2363 CC=$ac_cv_prog_CC
2364 if test -n "$CC"; then
2365   echo "$as_me:$LINENO: result: $CC" >&5
2366 echo "${ECHO_T}$CC" >&6
2367 else
2368   echo "$as_me:$LINENO: result: no" >&5
2369 echo "${ECHO_T}no" >&6
2370 fi
2371
2372 fi
2373 if test -z "$CC"; then
2374   if test -n "$ac_tool_prefix"; then
2375   for ac_prog in cl
2376   do
2377     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2378 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2379 echo "$as_me:$LINENO: checking for $ac_word" >&5
2380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2381 if test "${ac_cv_prog_CC+set}" = set; then
2382   echo $ECHO_N "(cached) $ECHO_C" >&6
2383 else
2384   if test -n "$CC"; then
2385   ac_cv_prog_CC="$CC" # Let the user override the test.
2386 else
2387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2388 for as_dir in $PATH
2389 do
2390   IFS=$as_save_IFS
2391   test -z "$as_dir" && as_dir=.
2392   for ac_exec_ext in '' $ac_executable_extensions; do
2393   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2394     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2395     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2396     break 2
2397   fi
2398 done
2399 done
2400
2401 fi
2402 fi
2403 CC=$ac_cv_prog_CC
2404 if test -n "$CC"; then
2405   echo "$as_me:$LINENO: result: $CC" >&5
2406 echo "${ECHO_T}$CC" >&6
2407 else
2408   echo "$as_me:$LINENO: result: no" >&5
2409 echo "${ECHO_T}no" >&6
2410 fi
2411
2412     test -n "$CC" && break
2413   done
2414 fi
2415 if test -z "$CC"; then
2416   ac_ct_CC=$CC
2417   for ac_prog in cl
2418 do
2419   # Extract the first word of "$ac_prog", so it can be a program name with args.
2420 set dummy $ac_prog; ac_word=$2
2421 echo "$as_me:$LINENO: checking for $ac_word" >&5
2422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2423 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2424   echo $ECHO_N "(cached) $ECHO_C" >&6
2425 else
2426   if test -n "$ac_ct_CC"; then
2427   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2428 else
2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2430 for as_dir in $PATH
2431 do
2432   IFS=$as_save_IFS
2433   test -z "$as_dir" && as_dir=.
2434   for ac_exec_ext in '' $ac_executable_extensions; do
2435   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2436     ac_cv_prog_ac_ct_CC="$ac_prog"
2437     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2438     break 2
2439   fi
2440 done
2441 done
2442
2443 fi
2444 fi
2445 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2446 if test -n "$ac_ct_CC"; then
2447   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2448 echo "${ECHO_T}$ac_ct_CC" >&6
2449 else
2450   echo "$as_me:$LINENO: result: no" >&5
2451 echo "${ECHO_T}no" >&6
2452 fi
2453
2454   test -n "$ac_ct_CC" && break
2455 done
2456
2457   CC=$ac_ct_CC
2458 fi
2459
2460 fi
2461
2462
2463 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2464 See \`config.log' for more details." >&5
2465 echo "$as_me: error: no acceptable C compiler found in \$PATH
2466 See \`config.log' for more details." >&2;}
2467    { (exit 1); exit 1; }; }
2468
2469 # Provide some information about the compiler.
2470 echo "$as_me:$LINENO:" \
2471      "checking for C compiler version" >&5
2472 ac_compiler=`set X $ac_compile; echo $2`
2473 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2474   (eval $ac_compiler --version </dev/null >&5) 2>&5
2475   ac_status=$?
2476   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2477   (exit $ac_status); }
2478 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2479   (eval $ac_compiler -v </dev/null >&5) 2>&5
2480   ac_status=$?
2481   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2482   (exit $ac_status); }
2483 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2484   (eval $ac_compiler -V </dev/null >&5) 2>&5
2485   ac_status=$?
2486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2487   (exit $ac_status); }
2488
2489 cat >conftest.$ac_ext <<_ACEOF
2490 #line $LINENO "configure"
2491 /* confdefs.h.  */
2492 _ACEOF
2493 cat confdefs.h >>conftest.$ac_ext
2494 cat >>conftest.$ac_ext <<_ACEOF
2495 /* end confdefs.h.  */
2496
2497 int
2498 main ()
2499 {
2500
2501   ;
2502   return 0;
2503 }
2504 _ACEOF
2505 ac_clean_files_save=$ac_clean_files
2506 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2507 # Try to create an executable without -o first, disregard a.out.
2508 # It will help us diagnose broken compilers, and finding out an intuition
2509 # of exeext.
2510 echo "$as_me:$LINENO: checking for C compiler default output" >&5
2511 echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
2512 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2513 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2514   (eval $ac_link_default) 2>&5
2515   ac_status=$?
2516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2517   (exit $ac_status); }; then
2518   # Find the output, starting from the most likely.  This scheme is
2519 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2520 # resort.
2521
2522 # Be careful to initialize this variable, since it used to be cached.
2523 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2524 ac_cv_exeext=
2525 # b.out is created by i960 compilers.
2526 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2527 do
2528   test -f "$ac_file" || continue
2529   case $ac_file in
2530     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2531         ;;
2532     conftest.$ac_ext )
2533         # This is the source file.
2534         ;;
2535     [ab].out )
2536         # We found the default executable, but exeext='' is most
2537         # certainly right.
2538         break;;
2539     *.* )
2540         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2541         # FIXME: I believe we export ac_cv_exeext for Libtool,
2542         # but it would be cool to find out if it's true.  Does anybody
2543         # maintain Libtool? --akim.
2544         export ac_cv_exeext
2545         break;;
2546     * )
2547         break;;
2548   esac
2549 done
2550 else
2551   echo "$as_me: failed program was:" >&5
2552 sed 's/^/| /' conftest.$ac_ext >&5
2553
2554 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2555 See \`config.log' for more details." >&5
2556 echo "$as_me: error: C compiler cannot create executables
2557 See \`config.log' for more details." >&2;}
2558    { (exit 77); exit 77; }; }
2559 fi
2560
2561 ac_exeext=$ac_cv_exeext
2562 echo "$as_me:$LINENO: result: $ac_file" >&5
2563 echo "${ECHO_T}$ac_file" >&6
2564
2565 # Check the compiler produces executables we can run.  If not, either
2566 # the compiler is broken, or we cross compile.
2567 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2568 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2569 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2570 # If not cross compiling, check that we can run a simple program.
2571 if test "$cross_compiling" != yes; then
2572   if { ac_try='./$ac_file'
2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2574   (eval $ac_try) 2>&5
2575   ac_status=$?
2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577   (exit $ac_status); }; }; then
2578     cross_compiling=no
2579   else
2580     if test "$cross_compiling" = maybe; then
2581         cross_compiling=yes
2582     else
2583         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2584 If you meant to cross compile, use \`--host'.
2585 See \`config.log' for more details." >&5
2586 echo "$as_me: error: cannot run C compiled programs.
2587 If you meant to cross compile, use \`--host'.
2588 See \`config.log' for more details." >&2;}
2589    { (exit 1); exit 1; }; }
2590     fi
2591   fi
2592 fi
2593 echo "$as_me:$LINENO: result: yes" >&5
2594 echo "${ECHO_T}yes" >&6
2595
2596 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2597 ac_clean_files=$ac_clean_files_save
2598 # Check the compiler produces executables we can run.  If not, either
2599 # the compiler is broken, or we cross compile.
2600 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2601 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2602 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2603 echo "${ECHO_T}$cross_compiling" >&6
2604
2605 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2606 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2607 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2608   (eval $ac_link) 2>&5
2609   ac_status=$?
2610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2611   (exit $ac_status); }; then
2612   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2613 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2614 # work properly (i.e., refer to `conftest.exe'), while it won't with
2615 # `rm'.
2616 for ac_file in conftest.exe conftest conftest.*; do
2617   test -f "$ac_file" || continue
2618   case $ac_file in
2619     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2620     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2621           export ac_cv_exeext
2622           break;;
2623     * ) break;;
2624   esac
2625 done
2626 else
2627   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2628 See \`config.log' for more details." >&5
2629 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2630 See \`config.log' for more details." >&2;}
2631    { (exit 1); exit 1; }; }
2632 fi
2633
2634 rm -f conftest$ac_cv_exeext
2635 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2636 echo "${ECHO_T}$ac_cv_exeext" >&6
2637
2638 rm -f conftest.$ac_ext
2639 EXEEXT=$ac_cv_exeext
2640 ac_exeext=$EXEEXT
2641 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2642 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2643 if test "${ac_cv_objext+set}" = set; then
2644   echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646   cat >conftest.$ac_ext <<_ACEOF
2647 #line $LINENO "configure"
2648 /* confdefs.h.  */
2649 _ACEOF
2650 cat confdefs.h >>conftest.$ac_ext
2651 cat >>conftest.$ac_ext <<_ACEOF
2652 /* end confdefs.h.  */
2653
2654 int
2655 main ()
2656 {
2657
2658   ;
2659   return 0;
2660 }
2661 _ACEOF
2662 rm -f conftest.o conftest.obj
2663 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2664   (eval $ac_compile) 2>&5
2665   ac_status=$?
2666   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2667   (exit $ac_status); }; then
2668   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2669   case $ac_file in
2670     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2671     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2672        break;;
2673   esac
2674 done
2675 else
2676   echo "$as_me: failed program was:" >&5
2677 sed 's/^/| /' conftest.$ac_ext >&5
2678
2679 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2680 See \`config.log' for more details." >&5
2681 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2682 See \`config.log' for more details." >&2;}
2683    { (exit 1); exit 1; }; }
2684 fi
2685
2686 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2687 fi
2688 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2689 echo "${ECHO_T}$ac_cv_objext" >&6
2690 OBJEXT=$ac_cv_objext
2691 ac_objext=$OBJEXT
2692 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2693 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2694 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2695   echo $ECHO_N "(cached) $ECHO_C" >&6
2696 else
2697   cat >conftest.$ac_ext <<_ACEOF
2698 #line $LINENO "configure"
2699 /* confdefs.h.  */
2700 _ACEOF
2701 cat confdefs.h >>conftest.$ac_ext
2702 cat >>conftest.$ac_ext <<_ACEOF
2703 /* end confdefs.h.  */
2704
2705 int
2706 main ()
2707 {
2708 #ifndef __GNUC__
2709        choke me
2710 #endif
2711
2712   ;
2713   return 0;
2714 }
2715 _ACEOF
2716 rm -f conftest.$ac_objext
2717 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2718   (eval $ac_compile) 2>&5
2719   ac_status=$?
2720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721   (exit $ac_status); } &&
2722          { ac_try='test -s conftest.$ac_objext'
2723   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2724   (eval $ac_try) 2>&5
2725   ac_status=$?
2726   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2727   (exit $ac_status); }; }; then
2728   ac_compiler_gnu=yes
2729 else
2730   echo "$as_me: failed program was:" >&5
2731 sed 's/^/| /' conftest.$ac_ext >&5
2732
2733 ac_compiler_gnu=no
2734 fi
2735 rm -f conftest.$ac_objext conftest.$ac_ext
2736 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2737
2738 fi
2739 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2740 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2741 GCC=`test $ac_compiler_gnu = yes && echo yes`
2742 ac_test_CFLAGS=${CFLAGS+set}
2743 ac_save_CFLAGS=$CFLAGS
2744 CFLAGS="-g"
2745 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2746 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2747 if test "${ac_cv_prog_cc_g+set}" = set; then
2748   echo $ECHO_N "(cached) $ECHO_C" >&6
2749 else
2750   cat >conftest.$ac_ext <<_ACEOF
2751 #line $LINENO "configure"
2752 /* confdefs.h.  */
2753 _ACEOF
2754 cat confdefs.h >>conftest.$ac_ext
2755 cat >>conftest.$ac_ext <<_ACEOF
2756 /* end confdefs.h.  */
2757
2758 int
2759 main ()
2760 {
2761
2762   ;
2763   return 0;
2764 }
2765 _ACEOF
2766 rm -f conftest.$ac_objext
2767 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2768   (eval $ac_compile) 2>&5
2769   ac_status=$?
2770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771   (exit $ac_status); } &&
2772          { ac_try='test -s conftest.$ac_objext'
2773   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774   (eval $ac_try) 2>&5
2775   ac_status=$?
2776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777   (exit $ac_status); }; }; then
2778   ac_cv_prog_cc_g=yes
2779 else
2780   echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 ac_cv_prog_cc_g=no
2784 fi
2785 rm -f conftest.$ac_objext conftest.$ac_ext
2786 fi
2787 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2788 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2789 if test "$ac_test_CFLAGS" = set; then
2790   CFLAGS=$ac_save_CFLAGS
2791 elif test $ac_cv_prog_cc_g = yes; then
2792   if test "$GCC" = yes; then
2793     CFLAGS="-g -O2"
2794   else
2795     CFLAGS="-g"
2796   fi
2797 else
2798   if test "$GCC" = yes; then
2799     CFLAGS="-O2"
2800   else
2801     CFLAGS=
2802   fi
2803 fi
2804 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2805 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2806 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2807   echo $ECHO_N "(cached) $ECHO_C" >&6
2808 else
2809   ac_cv_prog_cc_stdc=no
2810 ac_save_CC=$CC
2811 cat >conftest.$ac_ext <<_ACEOF
2812 #line $LINENO "configure"
2813 /* confdefs.h.  */
2814 _ACEOF
2815 cat confdefs.h >>conftest.$ac_ext
2816 cat >>conftest.$ac_ext <<_ACEOF
2817 /* end confdefs.h.  */
2818 #include <stdarg.h>
2819 #include <stdio.h>
2820 #include <sys/types.h>
2821 #include <sys/stat.h>
2822 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2823 struct buf { int x; };
2824 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2825 static char *e (p, i)
2826      char **p;
2827      int i;
2828 {
2829   return p[i];
2830 }
2831 static char *f (char * (*g) (char **, int), char **p, ...)
2832 {
2833   char *s;
2834   va_list v;
2835   va_start (v,p);
2836   s = g (p, va_arg (v,int));
2837   va_end (v);
2838   return s;
2839 }
2840 int test (int i, double x);
2841 struct s1 {int (*f) (int a);};
2842 struct s2 {int (*f) (double a);};
2843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2844 int argc;
2845 char **argv;
2846 int
2847 main ()
2848 {
2849 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2850   ;
2851   return 0;
2852 }
2853 _ACEOF
2854 # Don't try gcc -ansi; that turns off useful extensions and
2855 # breaks some systems' header files.
2856 # AIX                   -qlanglvl=ansi
2857 # Ultrix and OSF/1      -std1
2858 # HP-UX 10.20 and later -Ae
2859 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2860 # SVR4                  -Xc -D__EXTENSIONS__
2861 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2862 do
2863   CC="$ac_save_CC $ac_arg"
2864   rm -f conftest.$ac_objext
2865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2866   (eval $ac_compile) 2>&5
2867   ac_status=$?
2868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2869   (exit $ac_status); } &&
2870          { ac_try='test -s conftest.$ac_objext'
2871   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2872   (eval $ac_try) 2>&5
2873   ac_status=$?
2874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2875   (exit $ac_status); }; }; then
2876   ac_cv_prog_cc_stdc=$ac_arg
2877 break
2878 else
2879   echo "$as_me: failed program was:" >&5
2880 sed 's/^/| /' conftest.$ac_ext >&5
2881
2882 fi
2883 rm -f conftest.$ac_objext
2884 done
2885 rm -f conftest.$ac_ext conftest.$ac_objext
2886 CC=$ac_save_CC
2887
2888 fi
2889
2890 case "x$ac_cv_prog_cc_stdc" in
2891   x|xno)
2892     echo "$as_me:$LINENO: result: none needed" >&5
2893 echo "${ECHO_T}none needed" >&6 ;;
2894   *)
2895     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2896 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2897     CC="$CC $ac_cv_prog_cc_stdc" ;;
2898 esac
2899
2900 # Some people use a C++ compiler to compile C.  Since we use `exit',
2901 # in C++ we need to declare it.  In case someone uses the same compiler
2902 # for both compiling C and C++ we need to have the C++ compiler decide
2903 # the declaration of exit, since it's the most demanding environment.
2904 cat >conftest.$ac_ext <<_ACEOF
2905 #ifndef __cplusplus
2906   choke me
2907 #endif
2908 _ACEOF
2909 rm -f conftest.$ac_objext
2910 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2911   (eval $ac_compile) 2>&5
2912   ac_status=$?
2913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2914   (exit $ac_status); } &&
2915          { ac_try='test -s conftest.$ac_objext'
2916   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2917   (eval $ac_try) 2>&5
2918   ac_status=$?
2919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920   (exit $ac_status); }; }; then
2921   for ac_declaration in \
2922    ''\
2923    '#include <stdlib.h>' \
2924    'extern "C" void std::exit (int) throw (); using std::exit;' \
2925    'extern "C" void std::exit (int); using std::exit;' \
2926    'extern "C" void exit (int) throw ();' \
2927    'extern "C" void exit (int);' \
2928    'void exit (int);'
2929 do
2930   cat >conftest.$ac_ext <<_ACEOF
2931 #line $LINENO "configure"
2932 /* confdefs.h.  */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h.  */
2937 #include <stdlib.h>
2938 $ac_declaration
2939 int
2940 main ()
2941 {
2942 exit (42);
2943   ;
2944   return 0;
2945 }
2946 _ACEOF
2947 rm -f conftest.$ac_objext
2948 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2949   (eval $ac_compile) 2>&5
2950   ac_status=$?
2951   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2952   (exit $ac_status); } &&
2953          { ac_try='test -s conftest.$ac_objext'
2954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2955   (eval $ac_try) 2>&5
2956   ac_status=$?
2957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2958   (exit $ac_status); }; }; then
2959   :
2960 else
2961   echo "$as_me: failed program was:" >&5
2962 sed 's/^/| /' conftest.$ac_ext >&5
2963
2964 continue
2965 fi
2966 rm -f conftest.$ac_objext conftest.$ac_ext
2967   cat >conftest.$ac_ext <<_ACEOF
2968 #line $LINENO "configure"
2969 /* confdefs.h.  */
2970 _ACEOF
2971 cat confdefs.h >>conftest.$ac_ext
2972 cat >>conftest.$ac_ext <<_ACEOF
2973 /* end confdefs.h.  */
2974 $ac_declaration
2975 int
2976 main ()
2977 {
2978 exit (42);
2979   ;
2980   return 0;
2981 }
2982 _ACEOF
2983 rm -f conftest.$ac_objext
2984 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2985   (eval $ac_compile) 2>&5
2986   ac_status=$?
2987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2988   (exit $ac_status); } &&
2989          { ac_try='test -s conftest.$ac_objext'
2990   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2991   (eval $ac_try) 2>&5
2992   ac_status=$?
2993   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2994   (exit $ac_status); }; }; then
2995   break
2996 else
2997   echo "$as_me: failed program was:" >&5
2998 sed 's/^/| /' conftest.$ac_ext >&5
2999
3000 fi
3001 rm -f conftest.$ac_objext conftest.$ac_ext
3002 done
3003 rm -f conftest*
3004 if test -n "$ac_declaration"; then
3005   echo '#ifdef __cplusplus' >>confdefs.h
3006   echo $ac_declaration      >>confdefs.h
3007   echo '#endif'             >>confdefs.h
3008 fi
3009
3010 else
3011   echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 fi
3015 rm -f conftest.$ac_objext conftest.$ac_ext
3016 ac_ext=c
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021 DEPDIR="${am__leading_dot}deps"
3022
3023           ac_config_commands="$ac_config_commands depfiles"
3024
3025
3026 am_make=${MAKE-make}
3027 cat > confinc << 'END'
3028 am__doit:
3029         @echo done
3030 .PHONY: am__doit
3031 END
3032 # If we don't find an include directive, just comment out the code.
3033 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3034 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3035 am__include="#"
3036 am__quote=
3037 _am_result=none
3038 # First try GNU make style include.
3039 echo "include confinc" > confmf
3040 # We grep out `Entering directory' and `Leaving directory'
3041 # messages which can occur if `w' ends up in MAKEFLAGS.
3042 # In particular we don't look at `^make:' because GNU make might
3043 # be invoked under some other name (usually "gmake"), in which
3044 # case it prints its new name instead of `make'.
3045 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3046    am__include=include
3047    am__quote=
3048    _am_result=GNU
3049 fi
3050 # Now try BSD make style include.
3051 if test "$am__include" = "#"; then
3052    echo '.include "confinc"' > confmf
3053    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3054       am__include=.include
3055       am__quote="\""
3056       _am_result=BSD
3057    fi
3058 fi
3059
3060
3061 echo "$as_me:$LINENO: result: $_am_result" >&5
3062 echo "${ECHO_T}$_am_result" >&6
3063 rm -f confinc confmf
3064
3065 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3066 if test "${enable_dependency_tracking+set}" = set; then
3067   enableval="$enable_dependency_tracking"
3068
3069 fi;
3070 if test "x$enable_dependency_tracking" != xno; then
3071   am_depcomp="$ac_aux_dir/depcomp"
3072   AMDEPBACKSLASH='\'
3073 fi
3074
3075
3076 if test "x$enable_dependency_tracking" != xno; then
3077   AMDEP_TRUE=
3078   AMDEP_FALSE='#'
3079 else
3080   AMDEP_TRUE='#'
3081   AMDEP_FALSE=
3082 fi
3083
3084
3085
3086
3087 depcc="$CC"   am_compiler_list=
3088
3089 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3090 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3091 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3092   echo $ECHO_N "(cached) $ECHO_C" >&6
3093 else
3094   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3095   # We make a subdir and do the tests there.  Otherwise we can end up
3096   # making bogus files that we don't know about and never remove.  For
3097   # instance it was reported that on HP-UX the gcc test will end up
3098   # making a dummy file named `D' -- because `-MD' means `put the output
3099   # in D'.
3100   mkdir conftest.dir
3101   # Copy depcomp to subdir because otherwise we won't find it if we're
3102   # using a relative directory.
3103   cp "$am_depcomp" conftest.dir
3104   cd conftest.dir
3105   # We will build objects and dependencies in a subdirectory because
3106   # it helps to detect inapplicable dependency modes.  For instance
3107   # both Tru64's cc and ICC support -MD to output dependencies as a
3108   # side effect of compilation, but ICC will put the dependencies in
3109   # the current directory while Tru64 will put them in the object
3110   # directory.
3111   mkdir sub
3112
3113   am_cv_CC_dependencies_compiler_type=none
3114   if test "$am_compiler_list" = ""; then
3115      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3116   fi
3117   for depmode in $am_compiler_list; do
3118     # Setup a source with many dependencies, because some compilers
3119     # like to wrap large dependency lists on column 80 (with \), and
3120     # we should not choose a depcomp mode which is confused by this.
3121     #
3122     # We need to recreate these files for each test, as the compiler may
3123     # overwrite some of them when testing with obscure command lines.
3124     # This happens at least with the AIX C compiler.
3125     : > sub/conftest.c
3126     for i in 1 2 3 4 5 6; do
3127       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3128       : > sub/conftst$i.h
3129     done
3130     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3131
3132     case $depmode in
3133     nosideeffect)
3134       # after this tag, mechanisms are not by side-effect, so they'll
3135       # only be used when explicitly requested
3136       if test "x$enable_dependency_tracking" = xyes; then
3137         continue
3138       else
3139         break
3140       fi
3141       ;;
3142     none) break ;;
3143     esac
3144     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3145     # mode.  It turns out that the SunPro C++ compiler does not properly
3146     # handle `-M -o', and we need to detect this.
3147     if depmode=$depmode \
3148        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3149        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3150        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3151          >/dev/null 2>conftest.err &&
3152        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3153        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3154        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3155       # icc doesn't choke on unknown options, it will just issue warnings
3156       # (even with -Werror).  So we grep stderr for any message
3157       # that says an option was ignored.
3158       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3159         am_cv_CC_dependencies_compiler_type=$depmode
3160         break
3161       fi
3162     fi
3163   done
3164
3165   cd ..
3166   rm -rf conftest.dir
3167 else
3168   am_cv_CC_dependencies_compiler_type=none
3169 fi
3170
3171 fi
3172 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3173 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3174 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3175
3176
3177
3178 if
3179   test "x$enable_dependency_tracking" != xno \
3180   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3181   am__fastdepCC_TRUE=
3182   am__fastdepCC_FALSE='#'
3183 else
3184   am__fastdepCC_TRUE='#'
3185   am__fastdepCC_FALSE=
3186 fi
3187
3188
3189 ac_ext=c
3190 ac_cpp='$CPP $CPPFLAGS'
3191 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3192 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3193 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3194 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3195 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3196 # On Suns, sometimes $CPP names a directory.
3197 if test -n "$CPP" && test -d "$CPP"; then
3198   CPP=
3199 fi
3200 if test -z "$CPP"; then
3201   if test "${ac_cv_prog_CPP+set}" = set; then
3202   echo $ECHO_N "(cached) $ECHO_C" >&6
3203 else
3204       # Double quotes because CPP needs to be expanded
3205     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3206     do
3207       ac_preproc_ok=false
3208 for ac_c_preproc_warn_flag in '' yes
3209 do
3210   # Use a header file that comes with gcc, so configuring glibc
3211   # with a fresh cross-compiler works.
3212   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3213   # <limits.h> exists even on freestanding compilers.
3214   # On the NeXT, cc -E runs the code through the compiler's parser,
3215   # not just through cpp. "Syntax error" is here to catch this case.
3216   cat >conftest.$ac_ext <<_ACEOF
3217 #line $LINENO "configure"
3218 /* confdefs.h.  */
3219 _ACEOF
3220 cat confdefs.h >>conftest.$ac_ext
3221 cat >>conftest.$ac_ext <<_ACEOF
3222 /* end confdefs.h.  */
3223 #ifdef __STDC__
3224 # include <limits.h>
3225 #else
3226 # include <assert.h>
3227 #endif
3228                      Syntax error
3229 _ACEOF
3230 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3231   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3232   ac_status=$?
3233   grep -v '^ *+' conftest.er1 >conftest.err
3234   rm -f conftest.er1
3235   cat conftest.err >&5
3236   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237   (exit $ac_status); } >/dev/null; then
3238   if test -s conftest.err; then
3239     ac_cpp_err=$ac_c_preproc_warn_flag
3240   else
3241     ac_cpp_err=
3242   fi
3243 else
3244   ac_cpp_err=yes
3245 fi
3246 if test -z "$ac_cpp_err"; then
3247   :
3248 else
3249   echo "$as_me: failed program was:" >&5
3250 sed 's/^/| /' conftest.$ac_ext >&5
3251
3252   # Broken: fails on valid input.
3253 continue
3254 fi
3255 rm -f conftest.err conftest.$ac_ext
3256
3257   # OK, works on sane cases.  Now check whether non-existent headers
3258   # can be detected and how.
3259   cat >conftest.$ac_ext <<_ACEOF
3260 #line $LINENO "configure"
3261 /* confdefs.h.  */
3262 _ACEOF
3263 cat confdefs.h >>conftest.$ac_ext
3264 cat >>conftest.$ac_ext <<_ACEOF
3265 /* end confdefs.h.  */
3266 #include <ac_nonexistent.h>
3267 _ACEOF
3268 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3269   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3270   ac_status=$?
3271   grep -v '^ *+' conftest.er1 >conftest.err
3272   rm -f conftest.er1
3273   cat conftest.err >&5
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); } >/dev/null; then
3276   if test -s conftest.err; then
3277     ac_cpp_err=$ac_c_preproc_warn_flag
3278   else
3279     ac_cpp_err=
3280   fi
3281 else
3282   ac_cpp_err=yes
3283 fi
3284 if test -z "$ac_cpp_err"; then
3285   # Broken: success on invalid input.
3286 continue
3287 else
3288   echo "$as_me: failed program was:" >&5
3289 sed 's/^/| /' conftest.$ac_ext >&5
3290
3291   # Passes both tests.
3292 ac_preproc_ok=:
3293 break
3294 fi
3295 rm -f conftest.err conftest.$ac_ext
3296
3297 done
3298 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3299 rm -f conftest.err conftest.$ac_ext
3300 if $ac_preproc_ok; then
3301   break
3302 fi
3303
3304     done
3305     ac_cv_prog_CPP=$CPP
3306
3307 fi
3308   CPP=$ac_cv_prog_CPP
3309 else
3310   ac_cv_prog_CPP=$CPP
3311 fi
3312 echo "$as_me:$LINENO: result: $CPP" >&5
3313 echo "${ECHO_T}$CPP" >&6
3314 ac_preproc_ok=false
3315 for ac_c_preproc_warn_flag in '' yes
3316 do
3317   # Use a header file that comes with gcc, so configuring glibc
3318   # with a fresh cross-compiler works.
3319   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3320   # <limits.h> exists even on freestanding compilers.
3321   # On the NeXT, cc -E runs the code through the compiler's parser,
3322   # not just through cpp. "Syntax error" is here to catch this case.
3323   cat >conftest.$ac_ext <<_ACEOF
3324 #line $LINENO "configure"
3325 /* confdefs.h.  */
3326 _ACEOF
3327 cat confdefs.h >>conftest.$ac_ext
3328 cat >>conftest.$ac_ext <<_ACEOF
3329 /* end confdefs.h.  */
3330 #ifdef __STDC__
3331 # include <limits.h>
3332 #else
3333 # include <assert.h>
3334 #endif
3335                      Syntax error
3336 _ACEOF
3337 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3338   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3339   ac_status=$?
3340   grep -v '^ *+' conftest.er1 >conftest.err
3341   rm -f conftest.er1
3342   cat conftest.err >&5
3343   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3344   (exit $ac_status); } >/dev/null; then
3345   if test -s conftest.err; then
3346     ac_cpp_err=$ac_c_preproc_warn_flag
3347   else
3348     ac_cpp_err=
3349   fi
3350 else
3351   ac_cpp_err=yes
3352 fi
3353 if test -z "$ac_cpp_err"; then
3354   :
3355 else
3356   echo "$as_me: failed program was:" >&5
3357 sed 's/^/| /' conftest.$ac_ext >&5
3358
3359   # Broken: fails on valid input.
3360 continue
3361 fi
3362 rm -f conftest.err conftest.$ac_ext
3363
3364   # OK, works on sane cases.  Now check whether non-existent headers
3365   # can be detected and how.
3366   cat >conftest.$ac_ext <<_ACEOF
3367 #line $LINENO "configure"
3368 /* confdefs.h.  */
3369 _ACEOF
3370 cat confdefs.h >>conftest.$ac_ext
3371 cat >>conftest.$ac_ext <<_ACEOF
3372 /* end confdefs.h.  */
3373 #include <ac_nonexistent.h>
3374 _ACEOF
3375 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3376   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3377   ac_status=$?
3378   grep -v '^ *+' conftest.er1 >conftest.err
3379   rm -f conftest.er1
3380   cat conftest.err >&5
3381   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3382   (exit $ac_status); } >/dev/null; then
3383   if test -s conftest.err; then
3384     ac_cpp_err=$ac_c_preproc_warn_flag
3385   else
3386     ac_cpp_err=
3387   fi
3388 else
3389   ac_cpp_err=yes
3390 fi
3391 if test -z "$ac_cpp_err"; then
3392   # Broken: success on invalid input.
3393 continue
3394 else
3395   echo "$as_me: failed program was:" >&5
3396 sed 's/^/| /' conftest.$ac_ext >&5
3397
3398   # Passes both tests.
3399 ac_preproc_ok=:
3400 break
3401 fi
3402 rm -f conftest.err conftest.$ac_ext
3403
3404 done
3405 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3406 rm -f conftest.err conftest.$ac_ext
3407 if $ac_preproc_ok; then
3408   :
3409 else
3410   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3411 See \`config.log' for more details." >&5
3412 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3413 See \`config.log' for more details." >&2;}
3414    { (exit 1); exit 1; }; }
3415 fi
3416
3417 ac_ext=c
3418 ac_cpp='$CPP $CPPFLAGS'
3419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422
3423 ac_ext=cc
3424 ac_cpp='$CXXCPP $CPPFLAGS'
3425 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3426 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3427 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3428 if test -n "$ac_tool_prefix"; then
3429   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3430   do
3431     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3432 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3433 echo "$as_me:$LINENO: checking for $ac_word" >&5
3434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3435 if test "${ac_cv_prog_CXX+set}" = set; then
3436   echo $ECHO_N "(cached) $ECHO_C" >&6
3437 else
3438   if test -n "$CXX"; then
3439   ac_cv_prog_CXX="$CXX" # Let the user override the test.
3440 else
3441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3442 for as_dir in $PATH
3443 do
3444   IFS=$as_save_IFS
3445   test -z "$as_dir" && as_dir=.
3446   for ac_exec_ext in '' $ac_executable_extensions; do
3447   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3448     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3449     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3450     break 2
3451   fi
3452 done
3453 done
3454
3455 fi
3456 fi
3457 CXX=$ac_cv_prog_CXX
3458 if test -n "$CXX"; then
3459   echo "$as_me:$LINENO: result: $CXX" >&5
3460 echo "${ECHO_T}$CXX" >&6
3461 else
3462   echo "$as_me:$LINENO: result: no" >&5
3463 echo "${ECHO_T}no" >&6
3464 fi
3465
3466     test -n "$CXX" && break
3467   done
3468 fi
3469 if test -z "$CXX"; then
3470   ac_ct_CXX=$CXX
3471   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3472 do
3473   # Extract the first word of "$ac_prog", so it can be a program name with args.
3474 set dummy $ac_prog; ac_word=$2
3475 echo "$as_me:$LINENO: checking for $ac_word" >&5
3476 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3477 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3478   echo $ECHO_N "(cached) $ECHO_C" >&6
3479 else
3480   if test -n "$ac_ct_CXX"; then
3481   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3482 else
3483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3484 for as_dir in $PATH
3485 do
3486   IFS=$as_save_IFS
3487   test -z "$as_dir" && as_dir=.
3488   for ac_exec_ext in '' $ac_executable_extensions; do
3489   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3490     ac_cv_prog_ac_ct_CXX="$ac_prog"
3491     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3492     break 2
3493   fi
3494 done
3495 done
3496
3497 fi
3498 fi
3499 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3500 if test -n "$ac_ct_CXX"; then
3501   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3502 echo "${ECHO_T}$ac_ct_CXX" >&6
3503 else
3504   echo "$as_me:$LINENO: result: no" >&5
3505 echo "${ECHO_T}no" >&6
3506 fi
3507
3508   test -n "$ac_ct_CXX" && break
3509 done
3510 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3511
3512   CXX=$ac_ct_CXX
3513 fi
3514
3515
3516 # Provide some information about the compiler.
3517 echo "$as_me:$LINENO:" \
3518      "checking for C++ compiler version" >&5
3519 ac_compiler=`set X $ac_compile; echo $2`
3520 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3521   (eval $ac_compiler --version </dev/null >&5) 2>&5
3522   ac_status=$?
3523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3524   (exit $ac_status); }
3525 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3526   (eval $ac_compiler -v </dev/null >&5) 2>&5
3527   ac_status=$?
3528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3529   (exit $ac_status); }
3530 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3531   (eval $ac_compiler -V </dev/null >&5) 2>&5
3532   ac_status=$?
3533   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534   (exit $ac_status); }
3535
3536 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3537 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3538 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3539   echo $ECHO_N "(cached) $ECHO_C" >&6
3540 else
3541   cat >conftest.$ac_ext <<_ACEOF
3542 #line $LINENO "configure"
3543 /* confdefs.h.  */
3544 _ACEOF
3545 cat confdefs.h >>conftest.$ac_ext
3546 cat >>conftest.$ac_ext <<_ACEOF
3547 /* end confdefs.h.  */
3548
3549 int
3550 main ()
3551 {
3552 #ifndef __GNUC__
3553        choke me
3554 #endif
3555
3556   ;
3557   return 0;
3558 }
3559 _ACEOF
3560 rm -f conftest.$ac_objext
3561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562   (eval $ac_compile) 2>&5
3563   ac_status=$?
3564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3565   (exit $ac_status); } &&
3566          { ac_try='test -s conftest.$ac_objext'
3567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3568   (eval $ac_try) 2>&5
3569   ac_status=$?
3570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571   (exit $ac_status); }; }; then
3572   ac_compiler_gnu=yes
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577 ac_compiler_gnu=no
3578 fi
3579 rm -f conftest.$ac_objext conftest.$ac_ext
3580 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3581
3582 fi
3583 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3584 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3585 GXX=`test $ac_compiler_gnu = yes && echo yes`
3586 ac_test_CXXFLAGS=${CXXFLAGS+set}
3587 ac_save_CXXFLAGS=$CXXFLAGS
3588 CXXFLAGS="-g"
3589 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3590 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3591 if test "${ac_cv_prog_cxx_g+set}" = set; then
3592   echo $ECHO_N "(cached) $ECHO_C" >&6
3593 else
3594   cat >conftest.$ac_ext <<_ACEOF
3595 #line $LINENO "configure"
3596 /* confdefs.h.  */
3597 _ACEOF
3598 cat confdefs.h >>conftest.$ac_ext
3599 cat >>conftest.$ac_ext <<_ACEOF
3600 /* end confdefs.h.  */
3601
3602 int
3603 main ()
3604 {
3605
3606   ;
3607   return 0;
3608 }
3609 _ACEOF
3610 rm -f conftest.$ac_objext
3611 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3612   (eval $ac_compile) 2>&5
3613   ac_status=$?
3614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615   (exit $ac_status); } &&
3616          { ac_try='test -s conftest.$ac_objext'
3617   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3618   (eval $ac_try) 2>&5
3619   ac_status=$?
3620   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621   (exit $ac_status); }; }; then
3622   ac_cv_prog_cxx_g=yes
3623 else
3624   echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627 ac_cv_prog_cxx_g=no
3628 fi
3629 rm -f conftest.$ac_objext conftest.$ac_ext
3630 fi
3631 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3632 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3633 if test "$ac_test_CXXFLAGS" = set; then
3634   CXXFLAGS=$ac_save_CXXFLAGS
3635 elif test $ac_cv_prog_cxx_g = yes; then
3636   if test "$GXX" = yes; then
3637     CXXFLAGS="-g -O2"
3638   else
3639     CXXFLAGS="-g"
3640   fi
3641 else
3642   if test "$GXX" = yes; then
3643     CXXFLAGS="-O2"
3644   else
3645     CXXFLAGS=
3646   fi
3647 fi
3648 for ac_declaration in \
3649    ''\
3650    '#include <stdlib.h>' \
3651    'extern "C" void std::exit (int) throw (); using std::exit;' \
3652    'extern "C" void std::exit (int); using std::exit;' \
3653    'extern "C" void exit (int) throw ();' \
3654    'extern "C" void exit (int);' \
3655    'void exit (int);'
3656 do
3657   cat >conftest.$ac_ext <<_ACEOF
3658 #line $LINENO "configure"
3659 /* confdefs.h.  */
3660 _ACEOF
3661 cat confdefs.h >>conftest.$ac_ext
3662 cat >>conftest.$ac_ext <<_ACEOF
3663 /* end confdefs.h.  */
3664 #include <stdlib.h>
3665 $ac_declaration
3666 int
3667 main ()
3668 {
3669 exit (42);
3670   ;
3671   return 0;
3672 }
3673 _ACEOF
3674 rm -f conftest.$ac_objext
3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3676   (eval $ac_compile) 2>&5
3677   ac_status=$?
3678   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679   (exit $ac_status); } &&
3680          { ac_try='test -s conftest.$ac_objext'
3681   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3682   (eval $ac_try) 2>&5
3683   ac_status=$?
3684   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3685   (exit $ac_status); }; }; then
3686   :
3687 else
3688   echo "$as_me: failed program was:" >&5
3689 sed 's/^/| /' conftest.$ac_ext >&5
3690
3691 continue
3692 fi
3693 rm -f conftest.$ac_objext conftest.$ac_ext
3694   cat >conftest.$ac_ext <<_ACEOF
3695 #line $LINENO "configure"
3696 /* confdefs.h.  */
3697 _ACEOF
3698 cat confdefs.h >>conftest.$ac_ext
3699 cat >>conftest.$ac_ext <<_ACEOF
3700 /* end confdefs.h.  */
3701 $ac_declaration
3702 int
3703 main ()
3704 {
3705 exit (42);
3706   ;
3707   return 0;
3708 }
3709 _ACEOF
3710 rm -f conftest.$ac_objext
3711 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3712   (eval $ac_compile) 2>&5
3713   ac_status=$?
3714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3715   (exit $ac_status); } &&
3716          { ac_try='test -s conftest.$ac_objext'
3717   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718   (eval $ac_try) 2>&5
3719   ac_status=$?
3720   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721   (exit $ac_status); }; }; then
3722   break
3723 else
3724   echo "$as_me: failed program was:" >&5
3725 sed 's/^/| /' conftest.$ac_ext >&5
3726
3727 fi
3728 rm -f conftest.$ac_objext conftest.$ac_ext
3729 done
3730 rm -f conftest*
3731 if test -n "$ac_declaration"; then
3732   echo '#ifdef __cplusplus' >>confdefs.h
3733   echo $ac_declaration      >>confdefs.h
3734   echo '#endif'             >>confdefs.h
3735 fi
3736
3737 ac_ext=c
3738 ac_cpp='$CPP $CPPFLAGS'
3739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3742
3743 depcc="$CXX"  am_compiler_list=
3744
3745 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3746 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3747 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3748   echo $ECHO_N "(cached) $ECHO_C" >&6
3749 else
3750   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3751   # We make a subdir and do the tests there.  Otherwise we can end up
3752   # making bogus files that we don't know about and never remove.  For
3753   # instance it was reported that on HP-UX the gcc test will end up
3754   # making a dummy file named `D' -- because `-MD' means `put the output
3755   # in D'.
3756   mkdir conftest.dir
3757   # Copy depcomp to subdir because otherwise we won't find it if we're
3758   # using a relative directory.
3759   cp "$am_depcomp" conftest.dir
3760   cd conftest.dir
3761   # We will build objects and dependencies in a subdirectory because
3762   # it helps to detect inapplicable dependency modes.  For instance
3763   # both Tru64's cc and ICC support -MD to output dependencies as a
3764   # side effect of compilation, but ICC will put the dependencies in
3765   # the current directory while Tru64 will put them in the object
3766   # directory.
3767   mkdir sub
3768
3769   am_cv_CXX_dependencies_compiler_type=none
3770   if test "$am_compiler_list" = ""; then
3771      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3772   fi
3773   for depmode in $am_compiler_list; do
3774     # Setup a source with many dependencies, because some compilers
3775     # like to wrap large dependency lists on column 80 (with \), and
3776     # we should not choose a depcomp mode which is confused by this.
3777     #
3778     # We need to recreate these files for each test, as the compiler may
3779     # overwrite some of them when testing with obscure command lines.
3780     # This happens at least with the AIX C compiler.
3781     : > sub/conftest.c
3782     for i in 1 2 3 4 5 6; do
3783       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3784       : > sub/conftst$i.h
3785     done
3786     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3787
3788     case $depmode in
3789     nosideeffect)
3790       # after this tag, mechanisms are not by side-effect, so they'll
3791       # only be used when explicitly requested
3792       if test "x$enable_dependency_tracking" = xyes; then
3793         continue
3794       else
3795         break
3796       fi
3797       ;;
3798     none) break ;;
3799     esac
3800     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3801     # mode.  It turns out that the SunPro C++ compiler does not properly
3802     # handle `-M -o', and we need to detect this.
3803     if depmode=$depmode \
3804        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3805        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3806        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3807          >/dev/null 2>conftest.err &&
3808        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3809        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3810        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3811       # icc doesn't choke on unknown options, it will just issue warnings
3812       # (even with -Werror).  So we grep stderr for any message
3813       # that says an option was ignored.
3814       if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else
3815         am_cv_CXX_dependencies_compiler_type=$depmode
3816         break
3817       fi
3818     fi
3819   done
3820
3821   cd ..
3822   rm -rf conftest.dir
3823 else
3824   am_cv_CXX_dependencies_compiler_type=none
3825 fi
3826
3827 fi
3828 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3829 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3830 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3831
3832
3833
3834 if
3835   test "x$enable_dependency_tracking" != xno \
3836   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3837   am__fastdepCXX_TRUE=
3838   am__fastdepCXX_FALSE='#'
3839 else
3840   am__fastdepCXX_TRUE='#'
3841   am__fastdepCXX_FALSE=
3842 fi
3843
3844
3845 # Find a good install program.  We prefer a C program (faster),
3846 # so one script is as good as another.  But avoid the broken or
3847 # incompatible versions:
3848 # SysV /etc/install, /usr/sbin/install
3849 # SunOS /usr/etc/install
3850 # IRIX /sbin/install
3851 # AIX /bin/install
3852 # AmigaOS /C/install, which installs bootblocks on floppy discs
3853 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3854 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3855 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3856 # ./install, which can be erroneously created by make from ./install.sh.
3857 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3858 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3859 if test -z "$INSTALL"; then
3860 if test "${ac_cv_path_install+set}" = set; then
3861   echo $ECHO_N "(cached) $ECHO_C" >&6
3862 else
3863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in $PATH
3865 do
3866   IFS=$as_save_IFS
3867   test -z "$as_dir" && as_dir=.
3868   # Account for people who put trailing slashes in PATH elements.
3869 case $as_dir/ in
3870   ./ | .// | /cC/* | \
3871   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3872   /usr/ucb/* ) ;;
3873   *)
3874     # OSF1 and SCO ODT 3.0 have their own names for install.
3875     # Don't use installbsd from OSF since it installs stuff as root
3876     # by default.
3877     for ac_prog in ginstall scoinst install; do
3878       for ac_exec_ext in '' $ac_executable_extensions; do
3879         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3880           if test $ac_prog = install &&
3881             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3882             # AIX install.  It has an incompatible calling convention.
3883             :
3884           elif test $ac_prog = install &&
3885             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3886             # program-specific install script used by HP pwplus--don't use.
3887             :
3888           else
3889             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3890             break 3
3891           fi
3892         fi
3893       done
3894     done
3895     ;;
3896 esac
3897 done
3898
3899
3900 fi
3901   if test "${ac_cv_path_install+set}" = set; then
3902     INSTALL=$ac_cv_path_install
3903   else
3904     # As a last resort, use the slow shell script.  We don't cache a
3905     # path for INSTALL within a source directory, because that will
3906     # break other packages using the cache if that directory is
3907     # removed, or if the path is relative.
3908     INSTALL=$ac_install_sh
3909   fi
3910 fi
3911 echo "$as_me:$LINENO: result: $INSTALL" >&5
3912 echo "${ECHO_T}$INSTALL" >&6
3913
3914 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3915 # It thinks the first close brace ends the variable substitution.
3916 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3917
3918 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3919
3920 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3921
3922 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3923 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3924 LN_S=$as_ln_s
3925 if test "$LN_S" = "ln -s"; then
3926   echo "$as_me:$LINENO: result: yes" >&5
3927 echo "${ECHO_T}yes" >&6
3928 else
3929   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3930 echo "${ECHO_T}no, using $LN_S" >&6
3931 fi
3932
3933 # Check whether --enable-shared or --disable-shared was given.
3934 if test "${enable_shared+set}" = set; then
3935   enableval="$enable_shared"
3936   p=${PACKAGE-default}
3937     case $enableval in
3938     yes) enable_shared=yes ;;
3939     no) enable_shared=no ;;
3940     *)
3941       enable_shared=no
3942       # Look at the argument we got.  We use all the common list separators.
3943       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3944       for pkg in $enableval; do
3945         IFS="$lt_save_ifs"
3946         if test "X$pkg" = "X$p"; then
3947           enable_shared=yes
3948         fi
3949       done
3950       IFS="$lt_save_ifs"
3951       ;;
3952     esac
3953 else
3954   enable_shared=yes
3955 fi;
3956
3957 # Check whether --enable-fast-install or --disable-fast-install was given.
3958 if test "${enable_fast_install+set}" = set; then
3959   enableval="$enable_fast_install"
3960   p=${PACKAGE-default}
3961     case $enableval in
3962     yes) enable_fast_install=yes ;;
3963     no) enable_fast_install=no ;;
3964     *)
3965       enable_fast_install=no
3966       # Look at the argument we got.  We use all the common list separators.
3967       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3968       for pkg in $enableval; do
3969         IFS="$lt_save_ifs"
3970         if test "X$pkg" = "X$p"; then
3971           enable_fast_install=yes
3972         fi
3973       done
3974       IFS="$lt_save_ifs"
3975       ;;
3976     esac
3977 else
3978   enable_fast_install=yes
3979 fi;
3980
3981 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3982 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3983 if test "${lt_cv_path_SED+set}" = set; then
3984   echo $ECHO_N "(cached) $ECHO_C" >&6
3985 else
3986   # Loop through the user's path and test for sed and gsed.
3987 # Then use that list of sed's as ones to test for truncation.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in $PATH
3990 do
3991   IFS=$as_save_IFS
3992   test -z "$as_dir" && as_dir=.
3993   for lt_ac_prog in sed gsed; do
3994     for ac_exec_ext in '' $ac_executable_extensions; do
3995       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3996         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3997       fi
3998     done
3999   done
4000 done
4001 lt_ac_max=0
4002 lt_ac_count=0
4003 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4004 # along with /bin/sed that truncates output.
4005 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4006   test ! -f $lt_ac_sed && break
4007   cat /dev/null > conftest.in
4008   lt_ac_count=0
4009   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4010   # Check for GNU sed and select it if it is found.
4011   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4012     lt_cv_path_SED=$lt_ac_sed
4013     break
4014   fi
4015   while true; do
4016     cat conftest.in conftest.in >conftest.tmp
4017     mv conftest.tmp conftest.in
4018     cp conftest.in conftest.nl
4019     echo >>conftest.nl
4020     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4021     cmp -s conftest.out conftest.nl || break
4022     # 10000 chars as input seems more than enough
4023     test $lt_ac_count -gt 10 && break
4024     lt_ac_count=`expr $lt_ac_count + 1`
4025     if test $lt_ac_count -gt $lt_ac_max; then
4026       lt_ac_max=$lt_ac_count
4027       lt_cv_path_SED=$lt_ac_sed
4028     fi
4029   done
4030 done
4031 SED=$lt_cv_path_SED
4032
4033 fi
4034
4035 echo "$as_me:$LINENO: result: $SED" >&5
4036 echo "${ECHO_T}$SED" >&6
4037
4038 echo "$as_me:$LINENO: checking for egrep" >&5
4039 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4040 if test "${ac_cv_prog_egrep+set}" = set; then
4041   echo $ECHO_N "(cached) $ECHO_C" >&6
4042 else
4043   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4044     then ac_cv_prog_egrep='grep -E'
4045     else ac_cv_prog_egrep='egrep'
4046     fi
4047 fi
4048 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4049 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4050  EGREP=$ac_cv_prog_egrep
4051
4052
4053
4054 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4055 if test "${with_gnu_ld+set}" = set; then
4056   withval="$with_gnu_ld"
4057   test "$withval" = no || with_gnu_ld=yes
4058 else
4059   with_gnu_ld=no
4060 fi;
4061 ac_prog=ld
4062 if test "$GCC" = yes; then
4063   # Check if gcc -print-prog-name=ld gives a path.
4064   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4065 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4066   case $host in
4067   *-*-mingw*)
4068     # gcc leaves a trailing carriage return which upsets mingw
4069     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4070   *)
4071     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4072   esac
4073   case $ac_prog in
4074     # Accept absolute paths.
4075     [\\/]* | ?:[\\/]*)
4076       re_direlt='/[^/][^/]*/\.\./'
4077       # Canonicalize the path of ld
4078       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4079       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4080         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4081       done
4082       test -z "$LD" && LD="$ac_prog"
4083       ;;
4084   "")
4085     # If it fails, then pretend we aren't using GCC.
4086     ac_prog=ld
4087     ;;
4088   *)
4089     # If it is relative, then search for the first ld in PATH.
4090     with_gnu_ld=unknown
4091     ;;
4092   esac
4093 elif test "$with_gnu_ld" = yes; then
4094   echo "$as_me:$LINENO: checking for GNU ld" >&5
4095 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4096 else
4097   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4098 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4099 fi
4100 if test "${lt_cv_path_LD+set}" = set; then
4101   echo $ECHO_N "(cached) $ECHO_C" >&6
4102 else
4103   if test -z "$LD"; then
4104   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4105   for ac_dir in $PATH; do
4106     IFS="$lt_save_ifs"
4107     test -z "$ac_dir" && ac_dir=.
4108     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4109       lt_cv_path_LD="$ac_dir/$ac_prog"
4110       # Check to see if the program is GNU ld.  I'd rather use --version,
4111       # but apparently some GNU ld's only accept -v.
4112       # Break only if it was the GNU/non-GNU ld that we prefer.
4113       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4114       *GNU* | *'with BFD'*)
4115         test "$with_gnu_ld" != no && break
4116         ;;
4117       *)
4118         test "$with_gnu_ld" != yes && break
4119         ;;
4120       esac
4121     fi
4122   done
4123   IFS="$lt_save_ifs"
4124 else
4125   lt_cv_path_LD="$LD" # Let the user override the test with a path.
4126 fi
4127 fi
4128
4129 LD="$lt_cv_path_LD"
4130 if test -n "$LD"; then
4131   echo "$as_me:$LINENO: result: $LD" >&5
4132 echo "${ECHO_T}$LD" >&6
4133 else
4134   echo "$as_me:$LINENO: result: no" >&5
4135 echo "${ECHO_T}no" >&6
4136 fi
4137 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4138 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4139    { (exit 1); exit 1; }; }
4140 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4141 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4142 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4143   echo $ECHO_N "(cached) $ECHO_C" >&6
4144 else
4145   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
4146 case `$LD -v 2>&1 </dev/null` in
4147 *GNU* | *'with BFD'*)
4148   lt_cv_prog_gnu_ld=yes
4149   ;;
4150 *)
4151   lt_cv_prog_gnu_ld=no
4152   ;;
4153 esac
4154 fi
4155 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4156 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4157 with_gnu_ld=$lt_cv_prog_gnu_ld
4158
4159
4160 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4161 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4162 if test "${lt_cv_ld_reload_flag+set}" = set; then
4163   echo $ECHO_N "(cached) $ECHO_C" >&6
4164 else
4165   lt_cv_ld_reload_flag='-r'
4166 fi
4167 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4168 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4169 reload_flag=$lt_cv_ld_reload_flag
4170 case $reload_flag in
4171 "" | " "*) ;;
4172 *) reload_flag=" $reload_flag" ;;
4173 esac
4174 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4175
4176 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4177 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4178 if test "${lt_cv_path_NM+set}" = set; then
4179   echo $ECHO_N "(cached) $ECHO_C" >&6
4180 else
4181   if test -n "$NM"; then
4182   # Let the user override the test.
4183   lt_cv_path_NM="$NM"
4184 else
4185   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4186   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
4187     IFS="$lt_save_ifs"
4188     test -z "$ac_dir" && ac_dir=.
4189     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
4190     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4191       # Check to see if the nm accepts a BSD-compat flag.
4192       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4193       #   nm: unknown option "B" ignored
4194       # Tru64's nm complains that /dev/null is an invalid object file
4195       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4196       */dev/null* | *'Invalid file or object type'*)
4197         lt_cv_path_NM="$tmp_nm -B"
4198         break
4199         ;;
4200       *)
4201         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4202         */dev/null*)
4203           lt_cv_path_NM="$tmp_nm -p"
4204           break
4205           ;;
4206         *)
4207           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4208           continue # so that we can try to find one that supports BSD flags
4209           ;;
4210         esac
4211       esac
4212     fi
4213   done
4214   IFS="$lt_save_ifs"
4215   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4216 fi
4217 fi
4218 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4219 echo "${ECHO_T}$lt_cv_path_NM" >&6
4220 NM="$lt_cv_path_NM"
4221
4222 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4223 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4224 if test "${lt_cv_deplibs_check_method+set}" = set; then
4225   echo $ECHO_N "(cached) $ECHO_C" >&6
4226 else
4227   lt_cv_file_magic_cmd='$MAGIC_CMD'
4228 lt_cv_file_magic_test_file=
4229 lt_cv_deplibs_check_method='unknown'
4230 # Need to set the preceding variable on all platforms that support
4231 # interlibrary dependencies.
4232 # 'none' -- dependencies not supported.
4233 # `unknown' -- same as none, but documents that we really don't know.
4234 # 'pass_all' -- all dependencies passed with no checks.
4235 # 'test_compile' -- check by making test program.
4236 # 'file_magic [[regex]]' -- check by looking for files in library path
4237 # which responds to the $file_magic_cmd with a given extended regex.
4238 # If you have `file' or equivalent on your system and you're not sure
4239 # whether `pass_all' will *always* work, you probably want this one.
4240
4241 case $host_os in
4242 aix4* | aix5*)
4243   lt_cv_deplibs_check_method=pass_all
4244   ;;
4245
4246 beos*)
4247   lt_cv_deplibs_check_method=pass_all
4248   ;;
4249
4250 bsdi4*)
4251   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4252   lt_cv_file_magic_cmd='/usr/bin/file -L'
4253   lt_cv_file_magic_test_file=/shlib/libc.so
4254   ;;
4255
4256 cygwin* | mingw* | pw32*)
4257   # win32_libid is a shell function defined in ltmain.sh
4258   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4259   lt_cv_file_magic_cmd='win32_libid'
4260   ;;
4261
4262 darwin* | rhapsody*)
4263   # this will be overwritten by pass_all, but leave it in just in case
4264   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
4265   lt_cv_file_magic_cmd='/usr/bin/file -L'
4266   case "$host_os" in
4267   rhapsody* | darwin1.[012])
4268     lt_cv_file_magic_test_file=`/System/Library/Frameworks/System.framework/System`
4269     ;;
4270   *) # Darwin 1.3 on
4271     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
4272     ;;
4273   esac
4274   lt_cv_deplibs_check_method=pass_all
4275   ;;
4276
4277 freebsd*)
4278   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4279     case $host_cpu in
4280     i*86 )
4281       # Not sure whether the presence of OpenBSD here was a mistake.
4282       # Let's accept both of them until this is cleared up.
4283       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
4284       lt_cv_file_magic_cmd=/usr/bin/file
4285       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4286       ;;
4287     esac
4288   else
4289     lt_cv_deplibs_check_method=pass_all
4290   fi
4291   ;;
4292
4293 gnu*)
4294   lt_cv_deplibs_check_method=pass_all
4295   ;;
4296
4297 hpux10.20* | hpux11*)
4298   lt_cv_file_magic_cmd=/usr/bin/file
4299   case "$host_cpu" in
4300   ia64*)
4301     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4302     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4303     ;;
4304   hppa*64*)
4305     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]'
4306     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4307     ;;
4308   *)
4309     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4310     lt_cv_file_magic_test_file=/usr/lib/libc.sl
4311     ;;
4312   esac
4313   ;;
4314
4315 irix5* | irix6* | nonstopux*)
4316   case $host_os in
4317   irix5* | nonstopux*)
4318     # this will be overridden with pass_all, but let us keep it just in case
4319     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
4320     ;;
4321   *)
4322     case $LD in
4323     *-32|*"-32 ") libmagic=32-bit;;
4324     *-n32|*"-n32 ") libmagic=N32;;
4325     *-64|*"-64 ") libmagic=64-bit;;
4326     *) libmagic=never-match;;
4327     esac
4328     # this will be overridden with pass_all, but let us keep it just in case
4329     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
4330     ;;
4331   esac
4332   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
4333   lt_cv_deplibs_check_method=pass_all
4334   ;;
4335
4336 # This must be Linux ELF.
4337 linux*)
4338   case $host_cpu in
4339   alpha* | hppa* | i*86 | ia64* | m68* | mips | mipsel | powerpc* | sparc* | s390* | sh* | x86_64*)
4340     lt_cv_deplibs_check_method=pass_all ;;
4341   *)
4342     # glibc up to 2.1.1 does not perform some relocations on ARM
4343     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
4344   esac
4345   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
4346   ;;
4347
4348 netbsd*)
4349   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4350     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4351   else
4352     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4353   fi
4354   ;;
4355
4356 newos6*)
4357   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4358   lt_cv_file_magic_cmd=/usr/bin/file
4359   lt_cv_file_magic_test_file=/usr/lib/libnls.so
4360   ;;
4361
4362 nto-qnx)
4363   lt_cv_deplibs_check_method=unknown
4364   ;;
4365
4366 openbsd*)
4367   lt_cv_file_magic_cmd=/usr/bin/file
4368   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4369   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4370     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
4371   else
4372     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
4373   fi
4374   ;;
4375
4376 osf3* | osf4* | osf5*)
4377   # this will be overridden with pass_all, but let us keep it just in case
4378   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
4379   lt_cv_file_magic_test_file=/shlib/libc.so
4380   lt_cv_deplibs_check_method=pass_all
4381   ;;
4382
4383 sco3.2v5*)
4384   lt_cv_deplibs_check_method=pass_all
4385   ;;
4386
4387 solaris*)
4388   lt_cv_deplibs_check_method=pass_all
4389   lt_cv_file_magic_test_file=/lib/libc.so
4390   ;;
4391
4392 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
4393   case $host_vendor in
4394   motorola)
4395     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]'
4396     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4397     ;;
4398   ncr)
4399     lt_cv_deplibs_check_method=pass_all
4400     ;;
4401   sequent)
4402     lt_cv_file_magic_cmd='/bin/file'
4403     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4404     ;;
4405   sni)
4406     lt_cv_file_magic_cmd='/bin/file'
4407     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4408     lt_cv_file_magic_test_file=/lib/libc.so
4409     ;;
4410   siemens)
4411     lt_cv_deplibs_check_method=pass_all
4412     ;;
4413   esac
4414   ;;
4415
4416 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
4417   lt_cv_deplibs_check_method=pass_all
4418   ;;
4419 esac
4420
4421 fi
4422 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4423 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4424 file_magic_cmd=$lt_cv_file_magic_cmd
4425 deplibs_check_method=$lt_cv_deplibs_check_method
4426 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4427
4428
4429
4430
4431 # If no C compiler was specified, use CC.
4432 LTCC=${LTCC-"$CC"}
4433
4434 # Allow CC to be a program name with arguments.
4435 compiler=$CC
4436
4437
4438 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4439 if test "${enable_libtool_lock+set}" = set; then
4440   enableval="$enable_libtool_lock"
4441
4442 fi;
4443 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4444
4445 # Some flags need to be propagated to the compiler or linker for good
4446 # libtool support.
4447 case $host in
4448 ia64-*-hpux*)
4449   # Find out which ABI we are using.
4450   echo 'int i;' > conftest.$ac_ext
4451   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4452   (eval $ac_compile) 2>&5
4453   ac_status=$?
4454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4455   (exit $ac_status); }; then
4456     case `/usr/bin/file conftest.$ac_objext` in
4457     *ELF-32*)
4458       HPUX_IA64_MODE="32"
4459       ;;
4460     *ELF-64*)
4461       HPUX_IA64_MODE="64"
4462       ;;
4463     esac
4464   fi
4465   rm -rf conftest*
4466   ;;
4467 *-*-irix6*)
4468   # Find out which ABI we are using.
4469   echo '#line 4469 "configure"' > conftest.$ac_ext
4470   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471   (eval $ac_compile) 2>&5
4472   ac_status=$?
4473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4474   (exit $ac_status); }; then
4475    if test "$lt_cv_prog_gnu_ld" = yes; then
4476     case `/usr/bin/file conftest.$ac_objext` in
4477     *32-bit*)
4478       LD="${LD-ld} -melf32bsmip"
4479       ;;
4480     *N32*)
4481       LD="${LD-ld} -melf32bmipn32"
4482       ;;
4483     *64-bit*)
4484       LD="${LD-ld} -melf64bmip"
4485       ;;
4486     esac
4487    else
4488     case `/usr/bin/file conftest.$ac_objext` in
4489     *32-bit*)
4490       LD="${LD-ld} -32"
4491       ;;
4492     *N32*)
4493       LD="${LD-ld} -n32"
4494       ;;
4495     *64-bit*)
4496       LD="${LD-ld} -64"
4497       ;;
4498     esac
4499    fi
4500   fi
4501   rm -rf conftest*
4502   ;;
4503
4504 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4505   # Find out which ABI we are using.
4506   echo 'int i;' > conftest.$ac_ext
4507   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4508   (eval $ac_compile) 2>&5
4509   ac_status=$?
4510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4511   (exit $ac_status); }; then
4512     case "`/usr/bin/file conftest.o`" in
4513     *32-bit*)
4514       case $host in
4515         x86_64-*linux*)
4516           LD="${LD-ld} -m elf_i386"
4517           ;;
4518         ppc64-*linux*)
4519           LD="${LD-ld} -m elf32ppclinux"
4520           ;;
4521         s390x-*linux*)
4522           LD="${LD-ld} -m elf_s390"
4523           ;;
4524         sparc64-*linux*)
4525           LD="${LD-ld} -m elf32_sparc"
4526           ;;
4527       esac
4528       ;;
4529     *64-bit*)
4530       case $host in
4531         x86_64-*linux*)
4532           LD="${LD-ld} -m elf_x86_64"
4533           ;;
4534         ppc*-*linux*|powerpc*-*linux*)
4535           LD="${LD-ld} -m elf64ppc"
4536           ;;
4537         s390*-*linux*)
4538           LD="${LD-ld} -m elf64_s390"
4539           ;;
4540         sparc*-*linux*)
4541           LD="${LD-ld} -m elf64_sparc"
4542           ;;
4543       esac
4544       ;;
4545     esac
4546   fi
4547   rm -rf conftest*
4548   ;;
4549
4550 *-*-sco3.2v5*)
4551   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4552   SAVE_CFLAGS="$CFLAGS"
4553   CFLAGS="$CFLAGS -belf"
4554   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4555 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4556 if test "${lt_cv_cc_needs_belf+set}" = set; then
4557   echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559   ac_ext=c
4560 ac_cpp='$CPP $CPPFLAGS'
4561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4564
4565      cat >conftest.$ac_ext <<_ACEOF
4566 #line $LINENO "configure"
4567 /* confdefs.h.  */
4568 _ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h.  */
4572
4573 int
4574 main ()
4575 {
4576
4577   ;
4578   return 0;
4579 }
4580 _ACEOF
4581 rm -f conftest.$ac_objext conftest$ac_exeext
4582 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4583   (eval $ac_link) 2>&5
4584   ac_status=$?
4585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586   (exit $ac_status); } &&
4587          { ac_try='test -s conftest$ac_exeext'
4588   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4589   (eval $ac_try) 2>&5
4590   ac_status=$?
4591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4592   (exit $ac_status); }; }; then
4593   lt_cv_cc_needs_belf=yes
4594 else
4595   echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4597
4598 lt_cv_cc_needs_belf=no
4599 fi
4600 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
4601      ac_ext=c
4602 ac_cpp='$CPP $CPPFLAGS'
4603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606
4607 fi
4608 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4609 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4610   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4611     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4612     CFLAGS="$SAVE_CFLAGS"
4613   fi
4614   ;;
4615
4616 esac
4617
4618 need_locks="$enable_libtool_lock"
4619
4620
4621
4622 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4623 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4624 if test "${ac_cv_header_stdc+set}" = set; then
4625   echo $ECHO_N "(cached) $ECHO_C" >&6
4626 else
4627   cat >conftest.$ac_ext <<_ACEOF
4628 #line $LINENO "configure"
4629 /* confdefs.h.  */
4630 _ACEOF
4631 cat confdefs.h >>conftest.$ac_ext
4632 cat >>conftest.$ac_ext <<_ACEOF
4633 /* end confdefs.h.  */
4634 #include <stdlib.h>
4635 #include <stdarg.h>
4636 #include <string.h>
4637 #include <float.h>
4638
4639 int
4640 main ()
4641 {
4642
4643   ;
4644   return 0;
4645 }
4646 _ACEOF
4647 rm -f conftest.$ac_objext
4648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4649   (eval $ac_compile) 2>&5
4650   ac_status=$?
4651   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4652   (exit $ac_status); } &&
4653          { ac_try='test -s conftest.$ac_objext'
4654   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4655   (eval $ac_try) 2>&5
4656   ac_status=$?
4657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4658   (exit $ac_status); }; }; then
4659   ac_cv_header_stdc=yes
4660 else
4661   echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.$ac_ext >&5
4663
4664 ac_cv_header_stdc=no
4665 fi
4666 rm -f conftest.$ac_objext conftest.$ac_ext
4667
4668 if test $ac_cv_header_stdc = yes; then
4669   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4670   cat >conftest.$ac_ext <<_ACEOF
4671 #line $LINENO "configure"
4672 /* confdefs.h.  */
4673 _ACEOF
4674 cat confdefs.h >>conftest.$ac_ext
4675 cat >>conftest.$ac_ext <<_ACEOF
4676 /* end confdefs.h.  */
4677 #include <string.h>
4678
4679 _ACEOF
4680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4681   $EGREP "memchr" >/dev/null 2>&1; then
4682   :
4683 else
4684   ac_cv_header_stdc=no
4685 fi
4686 rm -f conftest*
4687
4688 fi
4689
4690 if test $ac_cv_header_stdc = yes; then
4691   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4692   cat >conftest.$ac_ext <<_ACEOF
4693 #line $LINENO "configure"
4694 /* confdefs.h.  */
4695 _ACEOF
4696 cat confdefs.h >>conftest.$ac_ext
4697 cat >>conftest.$ac_ext <<_ACEOF
4698 /* end confdefs.h.  */
4699 #include <stdlib.h>
4700
4701 _ACEOF
4702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4703   $EGREP "free" >/dev/null 2>&1; then
4704   :
4705 else
4706   ac_cv_header_stdc=no
4707 fi
4708 rm -f conftest*
4709
4710 fi
4711
4712 if test $ac_cv_header_stdc = yes; then
4713   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4714   if test "$cross_compiling" = yes; then
4715   :
4716 else
4717   cat >conftest.$ac_ext <<_ACEOF
4718 #line $LINENO "configure"
4719 /* confdefs.h.  */
4720 _ACEOF
4721 cat confdefs.h >>conftest.$ac_ext
4722 cat >>conftest.$ac_ext <<_ACEOF
4723 /* end confdefs.h.  */
4724 #include <ctype.h>
4725 #if ((' ' & 0x0FF) == 0x020)
4726 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4727 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4728 #else
4729 # define ISLOWER(c) \
4730                    (('a' <= (c) && (c) <= 'i') \
4731                      || ('j' <= (c) && (c) <= 'r') \
4732                      || ('s' <= (c) && (c) <= 'z'))
4733 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4734 #endif
4735
4736 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4737 int
4738 main ()
4739 {
4740   int i;
4741   for (i = 0; i < 256; i++)
4742     if (XOR (islower (i), ISLOWER (i))
4743         || toupper (i) != TOUPPER (i))
4744       exit(2);
4745   exit (0);
4746 }
4747 _ACEOF
4748 rm -f conftest$ac_exeext
4749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4750   (eval $ac_link) 2>&5
4751   ac_status=$?
4752   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4754   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755   (eval $ac_try) 2>&5
4756   ac_status=$?
4757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758   (exit $ac_status); }; }; then
4759   :
4760 else
4761   echo "$as_me: program exited with status $ac_status" >&5
4762 echo "$as_me: failed program was:" >&5
4763 sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ( exit $ac_status )
4766 ac_cv_header_stdc=no
4767 fi
4768 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4769 fi
4770 fi
4771 fi
4772 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4773 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4774 if test $ac_cv_header_stdc = yes; then
4775
4776 cat >>confdefs.h <<\_ACEOF
4777 #define STDC_HEADERS 1
4778 _ACEOF
4779
4780 fi
4781
4782 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4783
4784
4785
4786
4787
4788
4789
4790
4791
4792 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4793                   inttypes.h stdint.h unistd.h
4794 do
4795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4796 echo "$as_me:$LINENO: checking for $ac_header" >&5
4797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4799   echo $ECHO_N "(cached) $ECHO_C" >&6
4800 else
4801   cat >conftest.$ac_ext <<_ACEOF
4802 #line $LINENO "configure"
4803 /* confdefs.h.  */
4804 _ACEOF
4805 cat confdefs.h >>conftest.$ac_ext
4806 cat >>conftest.$ac_ext <<_ACEOF
4807 /* end confdefs.h.  */
4808 $ac_includes_default
4809
4810 #include <$ac_header>
4811 _ACEOF
4812 rm -f conftest.$ac_objext
4813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4814   (eval $ac_compile) 2>&5
4815   ac_status=$?
4816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817   (exit $ac_status); } &&
4818          { ac_try='test -s conftest.$ac_objext'
4819   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4820   (eval $ac_try) 2>&5
4821   ac_status=$?
4822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4823   (exit $ac_status); }; }; then
4824   eval "$as_ac_Header=yes"
4825 else
4826   echo "$as_me: failed program was:" >&5
4827 sed 's/^/| /' conftest.$ac_ext >&5
4828
4829 eval "$as_ac_Header=no"
4830 fi
4831 rm -f conftest.$ac_objext conftest.$ac_ext
4832 fi
4833 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4834 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4836   cat >>confdefs.h <<_ACEOF
4837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4838 _ACEOF
4839
4840 fi
4841
4842 done
4843
4844
4845
4846 for ac_header in dlfcn.h
4847 do
4848 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4849 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4850   echo "$as_me:$LINENO: checking for $ac_header" >&5
4851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4852 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4853   echo $ECHO_N "(cached) $ECHO_C" >&6
4854 fi
4855 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4856 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4857 else
4858   # Is the header compilable?
4859 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4860 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4861 cat >conftest.$ac_ext <<_ACEOF
4862 #line $LINENO "configure"
4863 /* confdefs.h.  */
4864 _ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h.  */
4868 $ac_includes_default
4869 #include <$ac_header>
4870 _ACEOF
4871 rm -f conftest.$ac_objext
4872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4873   (eval $ac_compile) 2>&5
4874   ac_status=$?
4875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4876   (exit $ac_status); } &&
4877          { ac_try='test -s conftest.$ac_objext'
4878   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4879   (eval $ac_try) 2>&5
4880   ac_status=$?
4881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882   (exit $ac_status); }; }; then
4883   ac_header_compiler=yes
4884 else
4885   echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4887
4888 ac_header_compiler=no
4889 fi
4890 rm -f conftest.$ac_objext conftest.$ac_ext
4891 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4892 echo "${ECHO_T}$ac_header_compiler" >&6
4893
4894 # Is the header present?
4895 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4896 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4897 cat >conftest.$ac_ext <<_ACEOF
4898 #line $LINENO "configure"
4899 /* confdefs.h.  */
4900 _ACEOF
4901 cat confdefs.h >>conftest.$ac_ext
4902 cat >>conftest.$ac_ext <<_ACEOF
4903 /* end confdefs.h.  */
4904 #include <$ac_header>
4905 _ACEOF
4906 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4907   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4908   ac_status=$?
4909   grep -v '^ *+' conftest.er1 >conftest.err
4910   rm -f conftest.er1
4911   cat conftest.err >&5
4912   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4913   (exit $ac_status); } >/dev/null; then
4914   if test -s conftest.err; then
4915     ac_cpp_err=$ac_c_preproc_warn_flag
4916   else
4917     ac_cpp_err=
4918   fi
4919 else
4920   ac_cpp_err=yes
4921 fi
4922 if test -z "$ac_cpp_err"; then
4923   ac_header_preproc=yes
4924 else
4925   echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928   ac_header_preproc=no
4929 fi
4930 rm -f conftest.err conftest.$ac_ext
4931 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4932 echo "${ECHO_T}$ac_header_preproc" >&6
4933
4934 # So?  What about this header?
4935 case $ac_header_compiler:$ac_header_preproc in
4936   yes:no )
4937     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4939     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4940 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4941     (
4942       cat <<\_ASBOX
4943 ## ------------------------------------ ##
4944 ## Report this to bug-autoconf@gnu.org. ##
4945 ## ------------------------------------ ##
4946 _ASBOX
4947     ) |
4948       sed "s/^/$as_me: WARNING:     /" >&2
4949     ;;
4950   no:yes )
4951     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4952 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4953     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4954 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4955     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4956 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4957     (
4958       cat <<\_ASBOX
4959 ## ------------------------------------ ##
4960 ## Report this to bug-autoconf@gnu.org. ##
4961 ## ------------------------------------ ##
4962 _ASBOX
4963     ) |
4964       sed "s/^/$as_me: WARNING:     /" >&2
4965     ;;
4966 esac
4967 echo "$as_me:$LINENO: checking for $ac_header" >&5
4968 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4969 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4970   echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972   eval "$as_ac_Header=$ac_header_preproc"
4973 fi
4974 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4975 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4976
4977 fi
4978 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4979   cat >>confdefs.h <<_ACEOF
4980 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4981 _ACEOF
4982
4983 fi
4984
4985 done
4986
4987 ac_ext=cc
4988 ac_cpp='$CXXCPP $CPPFLAGS'
4989 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4990 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4991 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4992 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4993 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4994 if test -z "$CXXCPP"; then
4995   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4996   echo $ECHO_N "(cached) $ECHO_C" >&6
4997 else
4998       # Double quotes because CXXCPP needs to be expanded
4999     for CXXCPP in "$CXX -E" "/lib/cpp"
5000     do
5001       ac_preproc_ok=false
5002 for ac_cxx_preproc_warn_flag in '' yes
5003 do
5004   # Use a header file that comes with gcc, so configuring glibc
5005   # with a fresh cross-compiler works.
5006   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5007   # <limits.h> exists even on freestanding compilers.
5008   # On the NeXT, cc -E runs the code through the compiler's parser,
5009   # not just through cpp. "Syntax error" is here to catch this case.
5010   cat >conftest.$ac_ext <<_ACEOF
5011 #line $LINENO "configure"
5012 /* confdefs.h.  */
5013 _ACEOF
5014 cat confdefs.h >>conftest.$ac_ext
5015 cat >>conftest.$ac_ext <<_ACEOF
5016 /* end confdefs.h.  */
5017 #ifdef __STDC__
5018 # include <limits.h>
5019 #else
5020 # include <assert.h>
5021 #endif
5022                      Syntax error
5023 _ACEOF
5024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5025   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5026   ac_status=$?
5027   grep -v '^ *+' conftest.er1 >conftest.err
5028   rm -f conftest.er1
5029   cat conftest.err >&5
5030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5031   (exit $ac_status); } >/dev/null; then
5032   if test -s conftest.err; then
5033     ac_cpp_err=$ac_cxx_preproc_warn_flag
5034   else
5035     ac_cpp_err=
5036   fi
5037 else
5038   ac_cpp_err=yes
5039 fi
5040 if test -z "$ac_cpp_err"; then
5041   :
5042 else
5043   echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046   # Broken: fails on valid input.
5047 continue
5048 fi
5049 rm -f conftest.err conftest.$ac_ext
5050
5051   # OK, works on sane cases.  Now check whether non-existent headers
5052   # can be detected and how.
5053   cat >conftest.$ac_ext <<_ACEOF
5054 #line $LINENO "configure"
5055 /* confdefs.h.  */
5056 _ACEOF
5057 cat confdefs.h >>conftest.$ac_ext
5058 cat >>conftest.$ac_ext <<_ACEOF
5059 /* end confdefs.h.  */
5060 #include <ac_nonexistent.h>
5061 _ACEOF
5062 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5063   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5064   ac_status=$?
5065   grep -v '^ *+' conftest.er1 >conftest.err
5066   rm -f conftest.er1
5067   cat conftest.err >&5
5068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5069   (exit $ac_status); } >/dev/null; then
5070   if test -s conftest.err; then
5071     ac_cpp_err=$ac_cxx_preproc_warn_flag
5072   else
5073     ac_cpp_err=
5074   fi
5075 else
5076   ac_cpp_err=yes
5077 fi
5078 if test -z "$ac_cpp_err"; then
5079   # Broken: success on invalid input.
5080 continue
5081 else
5082   echo "$as_me: failed program was:" >&5
5083 sed 's/^/| /' conftest.$ac_ext >&5
5084
5085   # Passes both tests.
5086 ac_preproc_ok=:
5087 break
5088 fi
5089 rm -f conftest.err conftest.$ac_ext
5090
5091 done
5092 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5093 rm -f conftest.err conftest.$ac_ext
5094 if $ac_preproc_ok; then
5095   break
5096 fi
5097
5098     done
5099     ac_cv_prog_CXXCPP=$CXXCPP
5100
5101 fi
5102   CXXCPP=$ac_cv_prog_CXXCPP
5103 else
5104   ac_cv_prog_CXXCPP=$CXXCPP
5105 fi
5106 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5107 echo "${ECHO_T}$CXXCPP" >&6
5108 ac_preproc_ok=false
5109 for ac_cxx_preproc_warn_flag in '' yes
5110 do
5111   # Use a header file that comes with gcc, so configuring glibc
5112   # with a fresh cross-compiler works.
5113   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5114   # <limits.h> exists even on freestanding compilers.
5115   # On the NeXT, cc -E runs the code through the compiler's parser,
5116   # not just through cpp. "Syntax error" is here to catch this case.
5117   cat >conftest.$ac_ext <<_ACEOF
5118 #line $LINENO "configure"
5119 /* confdefs.h.  */
5120 _ACEOF
5121 cat confdefs.h >>conftest.$ac_ext
5122 cat >>conftest.$ac_ext <<_ACEOF
5123 /* end confdefs.h.  */
5124 #ifdef __STDC__
5125 # include <limits.h>
5126 #else
5127 # include <assert.h>
5128 #endif
5129                      Syntax error
5130 _ACEOF
5131 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5132   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5133   ac_status=$?
5134   grep -v '^ *+' conftest.er1 >conftest.err
5135   rm -f conftest.er1
5136   cat conftest.err >&5
5137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5138   (exit $ac_status); } >/dev/null; then
5139   if test -s conftest.err; then
5140     ac_cpp_err=$ac_cxx_preproc_warn_flag
5141   else
5142     ac_cpp_err=
5143   fi
5144 else
5145   ac_cpp_err=yes
5146 fi
5147 if test -z "$ac_cpp_err"; then
5148   :
5149 else
5150   echo "$as_me: failed program was:" >&5
5151 sed 's/^/| /' conftest.$ac_ext >&5
5152
5153   # Broken: fails on valid input.
5154 continue
5155 fi
5156 rm -f conftest.err conftest.$ac_ext
5157
5158   # OK, works on sane cases.  Now check whether non-existent headers
5159   # can be detected and how.
5160   cat >conftest.$ac_ext <<_ACEOF
5161 #line $LINENO "configure"
5162 /* confdefs.h.  */
5163 _ACEOF
5164 cat confdefs.h >>conftest.$ac_ext
5165 cat >>conftest.$ac_ext <<_ACEOF
5166 /* end confdefs.h.  */
5167 #include <ac_nonexistent.h>
5168 _ACEOF
5169 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5170   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5171   ac_status=$?
5172   grep -v '^ *+' conftest.er1 >conftest.err
5173   rm -f conftest.er1
5174   cat conftest.err >&5
5175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176   (exit $ac_status); } >/dev/null; then
5177   if test -s conftest.err; then
5178     ac_cpp_err=$ac_cxx_preproc_warn_flag
5179   else
5180     ac_cpp_err=
5181   fi
5182 else
5183   ac_cpp_err=yes
5184 fi
5185 if test -z "$ac_cpp_err"; then
5186   # Broken: success on invalid input.
5187 continue
5188 else
5189   echo "$as_me: failed program was:" >&5
5190 sed 's/^/| /' conftest.$ac_ext >&5
5191
5192   # Passes both tests.
5193 ac_preproc_ok=:
5194 break
5195 fi
5196 rm -f conftest.err conftest.$ac_ext
5197
5198 done
5199 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5200 rm -f conftest.err conftest.$ac_ext
5201 if $ac_preproc_ok; then
5202   :
5203 else
5204   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5205 See \`config.log' for more details." >&5
5206 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5207 See \`config.log' for more details." >&2;}
5208    { (exit 1); exit 1; }; }
5209 fi
5210
5211 ac_ext=cc
5212 ac_cpp='$CXXCPP $CPPFLAGS'
5213 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5214 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5215 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5216
5217
5218 ac_ext=f
5219 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5220 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5221 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5222 if test -n "$ac_tool_prefix"; then
5223   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5224   do
5225     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5226 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5227 echo "$as_me:$LINENO: checking for $ac_word" >&5
5228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5229 if test "${ac_cv_prog_F77+set}" = set; then
5230   echo $ECHO_N "(cached) $ECHO_C" >&6
5231 else
5232   if test -n "$F77"; then
5233   ac_cv_prog_F77="$F77" # Let the user override the test.
5234 else
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238   IFS=$as_save_IFS
5239   test -z "$as_dir" && as_dir=.
5240   for ac_exec_ext in '' $ac_executable_extensions; do
5241   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5242     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244     break 2
5245   fi
5246 done
5247 done
5248
5249 fi
5250 fi
5251 F77=$ac_cv_prog_F77
5252 if test -n "$F77"; then
5253   echo "$as_me:$LINENO: result: $F77" >&5
5254 echo "${ECHO_T}$F77" >&6
5255 else
5256   echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6
5258 fi
5259
5260     test -n "$F77" && break
5261   done
5262 fi
5263 if test -z "$F77"; then
5264   ac_ct_F77=$F77
5265   for ac_prog in g77 f77 xlf frt pgf77 fl32 af77 fort77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 lf95 g95
5266 do
5267   # Extract the first word of "$ac_prog", so it can be a program name with args.
5268 set dummy $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_ac_ct_F77+set}" = set; then
5272   echo $ECHO_N "(cached) $ECHO_C" >&6
5273 else
5274   if test -n "$ac_ct_F77"; then
5275   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # 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_ac_ct_F77="$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 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5294 if test -n "$ac_ct_F77"; then
5295   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5296 echo "${ECHO_T}$ac_ct_F77" >&6
5297 else
5298   echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6
5300 fi
5301
5302   test -n "$ac_ct_F77" && break
5303 done
5304
5305   F77=$ac_ct_F77
5306 fi
5307
5308
5309 # Provide some information about the compiler.
5310 echo "$as_me:5310:" \
5311      "checking for Fortran 77 compiler version" >&5
5312 ac_compiler=`set X $ac_compile; echo $2`
5313 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5314   (eval $ac_compiler --version </dev/null >&5) 2>&5
5315   ac_status=$?
5316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317   (exit $ac_status); }
5318 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5319   (eval $ac_compiler -v </dev/null >&5) 2>&5
5320   ac_status=$?
5321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322   (exit $ac_status); }
5323 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5324   (eval $ac_compiler -V </dev/null >&5) 2>&5
5325   ac_status=$?
5326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5327   (exit $ac_status); }
5328
5329 # If we don't use `.F' as extension, the preprocessor is not run on the
5330 # input file.
5331 ac_save_ext=$ac_ext
5332 ac_ext=F
5333 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5334 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5335 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5336   echo $ECHO_N "(cached) $ECHO_C" >&6
5337 else
5338   cat >conftest.$ac_ext <<_ACEOF
5339       program main
5340 #ifndef __GNUC__
5341        choke me
5342 #endif
5343
5344       end
5345 _ACEOF
5346 rm -f conftest.$ac_objext
5347 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5348   (eval $ac_compile) 2>&5
5349   ac_status=$?
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); } &&
5352          { ac_try='test -s conftest.$ac_objext'
5353   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5354   (eval $ac_try) 2>&5
5355   ac_status=$?
5356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5357   (exit $ac_status); }; }; then
5358   ac_compiler_gnu=yes
5359 else
5360   echo "$as_me: failed program was:" >&5
5361 sed 's/^/| /' conftest.$ac_ext >&5
5362
5363 ac_compiler_gnu=no
5364 fi
5365 rm -f conftest.$ac_objext conftest.$ac_ext
5366 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5367
5368 fi
5369 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5370 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5371 ac_ext=$ac_save_ext
5372 G77=`test $ac_compiler_gnu = yes && echo yes`
5373 ac_test_FFLAGS=${FFLAGS+set}
5374 ac_save_FFLAGS=$FFLAGS
5375 FFLAGS=
5376 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5377 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5378 if test "${ac_cv_prog_f77_g+set}" = set; then
5379   echo $ECHO_N "(cached) $ECHO_C" >&6
5380 else
5381   FFLAGS=-g
5382 cat >conftest.$ac_ext <<_ACEOF
5383       program main
5384
5385       end
5386 _ACEOF
5387 rm -f conftest.$ac_objext
5388 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5389   (eval $ac_compile) 2>&5
5390   ac_status=$?
5391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5392   (exit $ac_status); } &&
5393          { ac_try='test -s conftest.$ac_objext'
5394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5395   (eval $ac_try) 2>&5
5396   ac_status=$?
5397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5398   (exit $ac_status); }; }; then
5399   ac_cv_prog_f77_g=yes
5400 else
5401   echo "$as_me: failed program was:" >&5
5402 sed 's/^/| /' conftest.$ac_ext >&5
5403
5404 ac_cv_prog_f77_g=no
5405 fi
5406 rm -f conftest.$ac_objext conftest.$ac_ext
5407
5408 fi
5409 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5410 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5411 if test "$ac_test_FFLAGS" = set; then
5412   FFLAGS=$ac_save_FFLAGS
5413 elif test $ac_cv_prog_f77_g = yes; then
5414   if test "$G77" = yes; then
5415     FFLAGS="-g -O2"
5416   else
5417     FFLAGS="-g"
5418   fi
5419 else
5420   if test "$G77" = yes; then
5421     FFLAGS="-O2"
5422   else
5423     FFLAGS=
5424   fi
5425 fi
5426 ac_ext=c
5427 ac_cpp='$CPP $CPPFLAGS'
5428 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5431
5432
5433
5434 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5435
5436 # find the maximum length of command line arguments
5437 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5438 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5439 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5440   echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442     i=0
5443   testring="ABCD"
5444
5445   case $build_os in
5446   msdosdjgpp*)
5447     # On DJGPP, this test can blow up pretty badly due to problems in libc
5448     # (any single argument exceeding 2000 bytes causes a buffer overrun
5449     # during glob expansion).  Even if it were fixed, the result of this
5450     # check would be larger than it should be.
5451     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5452     ;;
5453
5454   gnu*)
5455     # Under GNU Hurd, this test is not required because there is
5456     # no limit to the length of command line arguments.
5457     # Libtool will interpret -1 as no limit whatsoever
5458     lt_cv_sys_max_cmd_len=-1;
5459     ;;
5460
5461   cygwin* | mingw*)
5462     # On Win9x/ME, this test blows up -- it succeeds, but takes
5463     # about 5 minutes as the teststring grows exponentially.
5464     # Worse, since 9x/ME are not pre-emptively multitasking,
5465     # you end up with a "frozen" computer, even though with patience
5466     # the test eventually succeeds (with a max line length of 256k).
5467     # Instead, let's just punt: use the minimum linelength reported by
5468     # all of the supported platforms: 8192 (on NT/2K/XP).
5469     lt_cv_sys_max_cmd_len=8192;
5470     ;;
5471
5472  *)
5473     # If test is not a shell built-in, we'll probably end up computing a
5474     # maximum length that is only half of the actual maximum length, but
5475     # we can't tell.
5476     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$testring" 2>/dev/null` \
5477                = "XX$testring") >/dev/null 2>&1 &&
5478             new_result=`expr "X$testring" : ".*" 2>&1` &&
5479             lt_cv_sys_max_cmd_len=$new_result &&
5480             test $i != 17 # 1/2 MB should be enough
5481     do
5482       i=`expr $i + 1`
5483       testring=$testring$testring
5484     done
5485     testring=
5486     # Add a significant safety factor because C++ compilers can tack on massive
5487     # amounts of additional arguments before passing them to the linker.
5488     # It appears as though 1/2 is a usable value.
5489     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5490     ;;
5491   esac
5492
5493 fi
5494
5495 if test -n $lt_cv_sys_max_cmd_len ; then
5496   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5497 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5498 else
5499   echo "$as_me:$LINENO: result: none" >&5
5500 echo "${ECHO_T}none" >&6
5501 fi
5502
5503
5504
5505
5506 # Check for command to grab the raw symbol name followed by C symbol from nm.
5507 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5508 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5509 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5510   echo $ECHO_N "(cached) $ECHO_C" >&6
5511 else
5512
5513 # These are sane defaults that work on at least a few old systems.
5514 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5515
5516 # Character class describing NM global symbol codes.
5517 symcode='[BCDEGRST]'
5518
5519 # Regexp to match symbols that can be accessed directly from C.
5520 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5521
5522 # Transform the above into a raw symbol and a C symbol.
5523 symxfrm='\1 \2\3 \3'
5524
5525 # Transform an extracted symbol line into a proper C declaration
5526 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5527
5528 # Transform an extracted symbol line into symbol name and symbol address
5529 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'"
5530
5531 # Define system-specific variables.
5532 case $host_os in
5533 aix*)
5534   symcode='[BCDT]'
5535   ;;
5536 cygwin* | mingw* | pw32*)
5537   symcode='[ABCDGISTW]'
5538   ;;
5539 hpux*) # Its linker distinguishes data from code symbols
5540   if test "$host_cpu" = ia64; then
5541     symcode='[ABCDEGRST]'
5542   fi
5543   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5544   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'"
5545   ;;
5546 irix* | nonstopux*)
5547   symcode='[BCDEGRST]'
5548   ;;
5549 osf*)
5550   symcode='[BCDEGQRST]'
5551   ;;
5552 solaris* | sysv5*)
5553   symcode='[BDRT]'
5554   ;;
5555 sysv4)
5556   symcode='[DFNSTU]'
5557   ;;
5558 esac
5559
5560 # Handle CRLF in mingw tool chain
5561 opt_cr=
5562 case $build_os in
5563 mingw*)
5564   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5565   ;;
5566 esac
5567
5568 # If we're using GNU nm, then use its standard symbol codes.
5569 case `$NM -V 2>&1` in
5570 *GNU* | *'with BFD'*)
5571   symcode='[ABCDGIRSTW]' ;;
5572 esac
5573
5574 # Try without a prefix undercore, then with it.
5575 for ac_symprfx in "" "_"; do
5576
5577   # Write the raw and C identifiers.
5578   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5579
5580   # Check to see that the pipe works correctly.
5581   pipe_works=no
5582
5583   rm -f conftest*
5584   cat > conftest.$ac_ext <<EOF
5585 #ifdef __cplusplus
5586 extern "C" {
5587 #endif
5588 char nm_test_var;
5589 void nm_test_func(){}
5590 #ifdef __cplusplus
5591 }
5592 #endif
5593 int main(){nm_test_var='a';nm_test_func();return(0);}
5594 EOF
5595
5596   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5597   (eval $ac_compile) 2>&5
5598   ac_status=$?
5599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600   (exit $ac_status); }; then
5601     # Now try to grab the symbols.
5602     nlist=conftest.nm
5603     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5604   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5605   ac_status=$?
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } && test -s "$nlist"; then
5608       # Try sorting and uniquifying the output.
5609       if sort "$nlist" | uniq > "$nlist"T; then
5610         mv -f "$nlist"T "$nlist"
5611       else
5612         rm -f "$nlist"T
5613       fi
5614
5615       # Make sure that we snagged all the symbols we need.
5616       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5617         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5618           cat <<EOF > conftest.$ac_ext
5619 #ifdef __cplusplus
5620 extern "C" {
5621 #endif
5622
5623 EOF
5624           # Now generate the symbol file.
5625           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5626
5627           cat <<EOF >> conftest.$ac_ext
5628 #if defined (__STDC__) && __STDC__
5629 # define lt_ptr_t void *
5630 #else
5631 # define lt_ptr_t char *
5632 # define const
5633 #endif
5634
5635 /* The mapping between symbol names and symbols. */
5636 const struct {
5637   const char *name;
5638   lt_ptr_t address;
5639 }
5640 lt_preloaded_symbols[] =
5641 {
5642 EOF
5643           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5644           cat <<\EOF >> conftest.$ac_ext
5645   {0, (lt_ptr_t) 0}
5646 };
5647
5648 #ifdef __cplusplus
5649 }
5650 #endif
5651 EOF
5652           # Now try linking the two files.
5653           mv conftest.$ac_objext conftstm.$ac_objext
5654           lt_save_LIBS="$LIBS"
5655           lt_save_CFLAGS="$CFLAGS"
5656           LIBS="conftstm.$ac_objext"
5657           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5658           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5659   (eval $ac_link) 2>&5
5660   ac_status=$?
5661   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5662   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5663             pipe_works=yes
5664           fi
5665           LIBS="$lt_save_LIBS"
5666           CFLAGS="$lt_save_CFLAGS"
5667         else
5668           echo "cannot find nm_test_func in $nlist" >&5
5669         fi
5670       else
5671         echo "cannot find nm_test_var in $nlist" >&5
5672       fi
5673     else
5674       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5675     fi
5676   else
5677     echo "$progname: failed program was:" >&5
5678     cat conftest.$ac_ext >&5
5679   fi
5680   rm -f conftest* conftst*
5681
5682   # Do not use the global_symbol_pipe unless it works.
5683   if test "$pipe_works" = yes; then
5684     break
5685   else
5686     lt_cv_sys_global_symbol_pipe=
5687   fi
5688 done
5689
5690 fi
5691
5692 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5693   lt_cv_sys_global_symbol_to_cdecl=
5694 fi
5695 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5696   echo "$as_me:$LINENO: result: failed" >&5
5697 echo "${ECHO_T}failed" >&6
5698 else
5699   echo "$as_me:$LINENO: result: ok" >&5
5700 echo "${ECHO_T}ok" >&6
5701 fi
5702
5703 echo "$as_me:$LINENO: checking for objdir" >&5
5704 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5705 if test "${lt_cv_objdir+set}" = set; then
5706   echo $ECHO_N "(cached) $ECHO_C" >&6
5707 else
5708   rm -f .libs 2>/dev/null
5709 mkdir .libs 2>/dev/null
5710 if test -d .libs; then
5711   lt_cv_objdir=.libs
5712 else
5713   # MS-DOS does not allow filenames that begin with a dot.
5714   lt_cv_objdir=_libs
5715 fi
5716 rmdir .libs 2>/dev/null
5717 fi
5718 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5719 echo "${ECHO_T}$lt_cv_objdir" >&6
5720 objdir=$lt_cv_objdir
5721
5722
5723
5724
5725
5726 case $host_os in
5727 aix3*)
5728   # AIX sometimes has problems with the GCC collect2 program.  For some
5729   # reason, if we set the COLLECT_NAMES environment variable, the problems
5730   # vanish in a puff of smoke.
5731   if test "X${COLLECT_NAMES+set}" != Xset; then
5732     COLLECT_NAMES=
5733     export COLLECT_NAMES
5734   fi
5735   ;;
5736 esac
5737
5738 # Sed substitution that helps us do robust quoting.  It backslashifies
5739 # metacharacters that are still active within double-quoted strings.
5740 Xsed='sed -e s/^X//'
5741 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5742
5743 # Same as above, but do not quote variable references.
5744 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5745
5746 # Sed substitution to delay expansion of an escaped shell variable in a
5747 # double_quote_subst'ed string.
5748 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5749
5750 # Sed substitution to avoid accidental globbing in evaled expressions
5751 no_glob_subst='s/\*/\\\*/g'
5752
5753 # Constants:
5754 rm="rm -f"
5755
5756 # Global variables:
5757 default_ofile=libtool
5758 can_build_shared=yes
5759
5760 # All known linkers require a `.a' archive for static linking (except M$VC,
5761 # which needs '.lib').
5762 libext=a
5763 ltmain="$ac_aux_dir/ltmain.sh"
5764 ofile="$default_ofile"
5765 with_gnu_ld="$lt_cv_prog_gnu_ld"
5766
5767 if test -n "$ac_tool_prefix"; then
5768   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5769 set dummy ${ac_tool_prefix}ar; ac_word=$2
5770 echo "$as_me:$LINENO: checking for $ac_word" >&5
5771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5772 if test "${ac_cv_prog_AR+set}" = set; then
5773   echo $ECHO_N "(cached) $ECHO_C" >&6
5774 else
5775   if test -n "$AR"; then
5776   ac_cv_prog_AR="$AR" # Let the user override the test.
5777 else
5778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5779 for as_dir in $PATH
5780 do
5781   IFS=$as_save_IFS
5782   test -z "$as_dir" && as_dir=.
5783   for ac_exec_ext in '' $ac_executable_extensions; do
5784   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5785     ac_cv_prog_AR="${ac_tool_prefix}ar"
5786     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5787     break 2
5788   fi
5789 done
5790 done
5791
5792 fi
5793 fi
5794 AR=$ac_cv_prog_AR
5795 if test -n "$AR"; then
5796   echo "$as_me:$LINENO: result: $AR" >&5
5797 echo "${ECHO_T}$AR" >&6
5798 else
5799   echo "$as_me:$LINENO: result: no" >&5
5800 echo "${ECHO_T}no" >&6
5801 fi
5802
5803 fi
5804 if test -z "$ac_cv_prog_AR"; then
5805   ac_ct_AR=$AR
5806   # Extract the first word of "ar", so it can be a program name with args.
5807 set dummy ar; ac_word=$2
5808 echo "$as_me:$LINENO: checking for $ac_word" >&5
5809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5810 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5811   echo $ECHO_N "(cached) $ECHO_C" >&6
5812 else
5813   if test -n "$ac_ct_AR"; then
5814   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5815 else
5816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 for as_dir in $PATH
5818 do
5819   IFS=$as_save_IFS
5820   test -z "$as_dir" && as_dir=.
5821   for ac_exec_ext in '' $ac_executable_extensions; do
5822   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5823     ac_cv_prog_ac_ct_AR="ar"
5824     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5825     break 2
5826   fi
5827 done
5828 done
5829
5830   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5831 fi
5832 fi
5833 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5834 if test -n "$ac_ct_AR"; then
5835   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5836 echo "${ECHO_T}$ac_ct_AR" >&6
5837 else
5838   echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6
5840 fi
5841
5842   AR=$ac_ct_AR
5843 else
5844   AR="$ac_cv_prog_AR"
5845 fi
5846
5847 if test -n "$ac_tool_prefix"; then
5848   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5849 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5850 echo "$as_me:$LINENO: checking for $ac_word" >&5
5851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5852 if test "${ac_cv_prog_RANLIB+set}" = set; then
5853   echo $ECHO_N "(cached) $ECHO_C" >&6
5854 else
5855   if test -n "$RANLIB"; then
5856   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5857 else
5858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 for as_dir in $PATH
5860 do
5861   IFS=$as_save_IFS
5862   test -z "$as_dir" && as_dir=.
5863   for ac_exec_ext in '' $ac_executable_extensions; do
5864   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5865     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5866     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5867     break 2
5868   fi
5869 done
5870 done
5871
5872 fi
5873 fi
5874 RANLIB=$ac_cv_prog_RANLIB
5875 if test -n "$RANLIB"; then
5876   echo "$as_me:$LINENO: result: $RANLIB" >&5
5877 echo "${ECHO_T}$RANLIB" >&6
5878 else
5879   echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6
5881 fi
5882
5883 fi
5884 if test -z "$ac_cv_prog_RANLIB"; then
5885   ac_ct_RANLIB=$RANLIB
5886   # Extract the first word of "ranlib", so it can be a program name with args.
5887 set dummy ranlib; ac_word=$2
5888 echo "$as_me:$LINENO: checking for $ac_word" >&5
5889 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5890 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5891   echo $ECHO_N "(cached) $ECHO_C" >&6
5892 else
5893   if test -n "$ac_ct_RANLIB"; then
5894   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5895 else
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5897 for as_dir in $PATH
5898 do
5899   IFS=$as_save_IFS
5900   test -z "$as_dir" && as_dir=.
5901   for ac_exec_ext in '' $ac_executable_extensions; do
5902   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5903     ac_cv_prog_ac_ct_RANLIB="ranlib"
5904     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5905     break 2
5906   fi
5907 done
5908 done
5909
5910   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5911 fi
5912 fi
5913 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5914 if test -n "$ac_ct_RANLIB"; then
5915   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5916 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5917 else
5918   echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6
5920 fi
5921
5922   RANLIB=$ac_ct_RANLIB
5923 else
5924   RANLIB="$ac_cv_prog_RANLIB"
5925 fi
5926
5927 if test -n "$ac_tool_prefix"; then
5928   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5929 set dummy ${ac_tool_prefix}strip; ac_word=$2
5930 echo "$as_me:$LINENO: checking for $ac_word" >&5
5931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5932 if test "${ac_cv_prog_STRIP+set}" = set; then
5933   echo $ECHO_N "(cached) $ECHO_C" >&6
5934 else
5935   if test -n "$STRIP"; then
5936   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5937 else
5938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 for as_dir in $PATH
5940 do
5941   IFS=$as_save_IFS
5942   test -z "$as_dir" && as_dir=.
5943   for ac_exec_ext in '' $ac_executable_extensions; do
5944   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5945     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5946     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5947     break 2
5948   fi
5949 done
5950 done
5951
5952 fi
5953 fi
5954 STRIP=$ac_cv_prog_STRIP
5955 if test -n "$STRIP"; then
5956   echo "$as_me:$LINENO: result: $STRIP" >&5
5957 echo "${ECHO_T}$STRIP" >&6
5958 else
5959   echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6
5961 fi
5962
5963 fi
5964 if test -z "$ac_cv_prog_STRIP"; then
5965   ac_ct_STRIP=$STRIP
5966   # Extract the first word of "strip", so it can be a program name with args.
5967 set dummy strip; ac_word=$2
5968 echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5970 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5971   echo $ECHO_N "(cached) $ECHO_C" >&6
5972 else
5973   if test -n "$ac_ct_STRIP"; then
5974   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5975 else
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5977 for as_dir in $PATH
5978 do
5979   IFS=$as_save_IFS
5980   test -z "$as_dir" && as_dir=.
5981   for ac_exec_ext in '' $ac_executable_extensions; do
5982   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5983     ac_cv_prog_ac_ct_STRIP="strip"
5984     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5985     break 2
5986   fi
5987 done
5988 done
5989
5990   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
5991 fi
5992 fi
5993 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5994 if test -n "$ac_ct_STRIP"; then
5995   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
5996 echo "${ECHO_T}$ac_ct_STRIP" >&6
5997 else
5998   echo "$as_me:$LINENO: result: no" >&5
5999 echo "${ECHO_T}no" >&6
6000 fi
6001
6002   STRIP=$ac_ct_STRIP
6003 else
6004   STRIP="$ac_cv_prog_STRIP"
6005 fi
6006
6007
6008 old_CC="$CC"
6009 old_CFLAGS="$CFLAGS"
6010
6011 # Set sane defaults for various variables
6012 test -z "$AR" && AR=ar
6013 test -z "$AR_FLAGS" && AR_FLAGS=cru
6014 test -z "$AS" && AS=as
6015 test -z "$CC" && CC=cc
6016 test -z "$LTCC" && LTCC=$CC
6017 test -z "$DLLTOOL" && DLLTOOL=dlltool
6018 test -z "$LD" && LD=ld
6019 test -z "$LN_S" && LN_S="ln -s"
6020 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6021 test -z "$NM" && NM=nm
6022 test -z "$SED" && SED=sed
6023 test -z "$OBJDUMP" && OBJDUMP=objdump
6024 test -z "$RANLIB" && RANLIB=:
6025 test -z "$STRIP" && STRIP=:
6026 test -z "$ac_objext" && ac_objext=o
6027
6028 # Determine commands to create old-style static archives.
6029 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6030 old_postinstall_cmds='chmod 644 $oldlib'
6031 old_postuninstall_cmds=
6032
6033 if test -n "$RANLIB"; then
6034   case $host_os in
6035   openbsd*)
6036     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6037     ;;
6038   *)
6039     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6040     ;;
6041   esac
6042   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6043 fi
6044
6045 # Only perform the check for file, if the check method requires it
6046 case $deplibs_check_method in
6047 file_magic*)
6048   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6049     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6050 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6051 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6052   echo $ECHO_N "(cached) $ECHO_C" >&6
6053 else
6054   case $MAGIC_CMD in
6055 [\\/*] |  ?:[\\/]*)
6056   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6057   ;;
6058 *)
6059   lt_save_MAGIC_CMD="$MAGIC_CMD"
6060   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6061   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6062   for ac_dir in $ac_dummy; do
6063     IFS="$lt_save_ifs"
6064     test -z "$ac_dir" && ac_dir=.
6065     if test -f $ac_dir/${ac_tool_prefix}file; then
6066       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6067       if test -n "$file_magic_test_file"; then
6068         case $deplibs_check_method in
6069         "file_magic "*)
6070           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6071           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6072           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6073             $EGREP "$file_magic_regex" > /dev/null; then
6074             :
6075           else
6076             cat <<EOF 1>&2
6077
6078 *** Warning: the command libtool uses to detect shared libraries,
6079 *** $file_magic_cmd, produces output that libtool cannot recognize.
6080 *** The result is that libtool may fail to recognize shared libraries
6081 *** as such.  This will affect the creation of libtool libraries that
6082 *** depend on shared libraries, but programs linked with such libtool
6083 *** libraries will work regardless of this problem.  Nevertheless, you
6084 *** may want to report the problem to your system manager and/or to
6085 *** bug-libtool@gnu.org
6086
6087 EOF
6088           fi ;;
6089         esac
6090       fi
6091       break
6092     fi
6093   done
6094   IFS="$lt_save_ifs"
6095   MAGIC_CMD="$lt_save_MAGIC_CMD"
6096   ;;
6097 esac
6098 fi
6099
6100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6101 if test -n "$MAGIC_CMD"; then
6102   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6103 echo "${ECHO_T}$MAGIC_CMD" >&6
6104 else
6105   echo "$as_me:$LINENO: result: no" >&5
6106 echo "${ECHO_T}no" >&6
6107 fi
6108
6109 if test -z "$lt_cv_path_MAGIC_CMD"; then
6110   if test -n "$ac_tool_prefix"; then
6111     echo "$as_me:$LINENO: checking for file" >&5
6112 echo $ECHO_N "checking for file... $ECHO_C" >&6
6113 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6114   echo $ECHO_N "(cached) $ECHO_C" >&6
6115 else
6116   case $MAGIC_CMD in
6117 [\\/*] |  ?:[\\/]*)
6118   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6119   ;;
6120 *)
6121   lt_save_MAGIC_CMD="$MAGIC_CMD"
6122   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6123   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6124   for ac_dir in $ac_dummy; do
6125     IFS="$lt_save_ifs"
6126     test -z "$ac_dir" && ac_dir=.
6127     if test -f $ac_dir/file; then
6128       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6129       if test -n "$file_magic_test_file"; then
6130         case $deplibs_check_method in
6131         "file_magic "*)
6132           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6133           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6134           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6135             $EGREP "$file_magic_regex" > /dev/null; then
6136             :
6137           else
6138             cat <<EOF 1>&2
6139
6140 *** Warning: the command libtool uses to detect shared libraries,
6141 *** $file_magic_cmd, produces output that libtool cannot recognize.
6142 *** The result is that libtool may fail to recognize shared libraries
6143 *** as such.  This will affect the creation of libtool libraries that
6144 *** depend on shared libraries, but programs linked with such libtool
6145 *** libraries will work regardless of this problem.  Nevertheless, you
6146 *** may want to report the problem to your system manager and/or to
6147 *** bug-libtool@gnu.org
6148
6149 EOF
6150           fi ;;
6151         esac
6152       fi
6153       break
6154     fi
6155   done
6156   IFS="$lt_save_ifs"
6157   MAGIC_CMD="$lt_save_MAGIC_CMD"
6158   ;;
6159 esac
6160 fi
6161
6162 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6163 if test -n "$MAGIC_CMD"; then
6164   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6165 echo "${ECHO_T}$MAGIC_CMD" >&6
6166 else
6167   echo "$as_me:$LINENO: result: no" >&5
6168 echo "${ECHO_T}no" >&6
6169 fi
6170
6171   else
6172     MAGIC_CMD=:
6173   fi
6174 fi
6175
6176   fi
6177   ;;
6178 esac
6179
6180 enable_dlopen=no
6181 enable_win32_dll=no
6182
6183 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6184 if test "${enable_libtool_lock+set}" = set; then
6185   enableval="$enable_libtool_lock"
6186
6187 fi;
6188 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6189
6190
6191 # Check whether --with-pic or --without-pic was given.
6192 if test "${with_pic+set}" = set; then
6193   withval="$with_pic"
6194   pic_mode="$withval"
6195 else
6196   pic_mode=default
6197 fi;
6198 test -z "$pic_mode" && pic_mode=default
6199
6200 # Use C for the default configuration in the libtool script
6201 tagname=
6202 lt_save_CC="$CC"
6203 ac_ext=c
6204 ac_cpp='$CPP $CPPFLAGS'
6205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6208
6209
6210 # Source file extension for C test sources.
6211 ac_ext=c
6212
6213 # Object file extension for compiled C test sources.
6214 objext=o
6215 objext=$objext
6216
6217 # Code to be used in simple compile tests
6218 lt_simple_compile_test_code="int some_variable = 0;\n"
6219
6220 # Code to be used in simple link tests
6221 lt_simple_link_test_code='int main(){return(0);}\n'
6222
6223
6224 # If no C compiler was specified, use CC.
6225 LTCC=${LTCC-"$CC"}
6226
6227 # Allow CC to be a program name with arguments.
6228 compiler=$CC
6229
6230
6231 #
6232 # Check for any special shared library compilation flags.
6233 #
6234 lt_prog_cc_shlib=
6235 if test "$GCC" = no; then
6236   case $host_os in
6237   sco3.2v5*)
6238     lt_prog_cc_shlib='-belf'
6239     ;;
6240   esac
6241 fi
6242 if test -n "$lt_prog_cc_shlib"; then
6243   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6244 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6245   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6246   else
6247     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6248 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6249     lt_cv_prog_cc_can_build_shared=no
6250   fi
6251 fi
6252
6253
6254 #
6255 # Check to make sure the static flag actually works.
6256 #
6257 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6258 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6259 if test "${lt_prog_compiler_static_works+set}" = set; then
6260   echo $ECHO_N "(cached) $ECHO_C" >&6
6261 else
6262   lt_prog_compiler_static_works=no
6263    save_LDFLAGS="$LDFLAGS"
6264    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6265    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6266    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6267      # The compiler can only warn and ignore the option if not recognized
6268      # So say no if there are warnings
6269      if test -s conftest.err; then
6270        # Append any errors to the config.log.
6271        cat conftest.err 1>&5
6272      else
6273        lt_prog_compiler_static_works=yes
6274      fi
6275    fi
6276    $rm conftest*
6277    LDFLAGS="$save_LDFLAGS"
6278
6279 fi
6280 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6281 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6282
6283 if test x"$lt_prog_compiler_static_works" = xyes; then
6284     :
6285 else
6286     lt_prog_compiler_static=
6287 fi
6288
6289
6290
6291
6292 lt_prog_compiler_no_builtin_flag=
6293
6294 if test "$GCC" = yes; then
6295   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6296
6297   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6298 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6299 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6300   echo $ECHO_N "(cached) $ECHO_C" >&6
6301 else
6302   lt_cv_prog_compiler_rtti_exceptions=no
6303   ac_outfile=conftest.$ac_objext
6304    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6305    lt_compiler_flag="-fno-rtti -fno-exceptions"
6306    # Insert the option either (1) after the last *FLAGS variable, or
6307    # (2) before a word containing "conftest.", or (3) at the end.
6308    # Note that $ac_compile itself does not contain backslashes and begins
6309    # with a dollar sign (not a hyphen), so the echo should work correctly.
6310    # The option is referenced via a variable to avoid confusing sed.
6311    lt_compile=`echo "$ac_compile" | $SED \
6312    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6314    -e 's:$: $lt_compiler_flag:'`
6315    (eval echo "\"\$as_me:6315: $lt_compile\"" >&5)
6316    (eval "$lt_compile" 2>conftest.err)
6317    ac_status=$?
6318    cat conftest.err >&5
6319    echo "$as_me:6319: \$? = $ac_status" >&5
6320    if (exit $ac_status) && test -s "$ac_outfile"; then
6321      # The compiler can only warn and ignore the option if not recognized
6322      # So say no if there are warnings
6323      if test ! -s conftest.err; then
6324        lt_cv_prog_compiler_rtti_exceptions=yes
6325      fi
6326    fi
6327    $rm conftest*
6328
6329 fi
6330 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6331 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6332
6333 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6334     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6335 else
6336     :
6337 fi
6338
6339 fi
6340
6341 lt_prog_compiler_wl=
6342 lt_prog_compiler_pic=
6343 lt_prog_compiler_static=
6344
6345 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6346 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6347
6348   if test "$GCC" = yes; then
6349     lt_prog_compiler_wl='-Wl,'
6350     lt_prog_compiler_static='-static'
6351
6352     case $host_os in
6353       aix*)
6354       # All AIX code is PIC.
6355       if test "$host_cpu" = ia64; then
6356         # AIX 5 now supports IA64 processor
6357         lt_prog_compiler_static='-Bstatic'
6358       fi
6359       ;;
6360
6361     amigaos*)
6362       # FIXME: we need at least 68020 code to build shared libraries, but
6363       # adding the `-m68020' flag to GCC prevents building anything better,
6364       # like `-m68040'.
6365       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6366       ;;
6367
6368     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6369       # PIC is the default for these OSes.
6370       ;;
6371
6372     mingw* | pw32* | os2*)
6373       # This hack is so that the source file can tell whether it is being
6374       # built for inclusion in a dll (and should export symbols for example).
6375       lt_prog_compiler_pic='-DDLL_EXPORT'
6376       ;;
6377
6378     darwin* | rhapsody*)
6379       # PIC is the default on this platform
6380       # Common symbols not allowed in MH_DYLIB files
6381       lt_prog_compiler_pic='-fno-common'
6382       ;;
6383
6384     msdosdjgpp*)
6385       # Just because we use GCC doesn't mean we suddenly get shared libraries
6386       # on systems that don't support them.
6387       lt_prog_compiler_can_build_shared=no
6388       enable_shared=no
6389       ;;
6390
6391     sysv4*MP*)
6392       if test -d /usr/nec; then
6393         lt_prog_compiler_pic=-Kconform_pic
6394       fi
6395       ;;
6396
6397     hpux*)
6398       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6399       # not for PA HP-UX.
6400       case "$host_cpu" in
6401       hppa*64*|ia64*)
6402         # +Z the default
6403         ;;
6404       *)
6405         lt_prog_compiler_pic='-fPIC'
6406         ;;
6407       esac
6408       ;;
6409
6410     *)
6411       lt_prog_compiler_pic='-fPIC'
6412       ;;
6413     esac
6414   else
6415     # PORTME Check for flag to pass linker flags through the system compiler.
6416     case $host_os in
6417     aix*)
6418       lt_prog_compiler_wl='-Wl,'
6419       if test "$host_cpu" = ia64; then
6420         # AIX 5 now supports IA64 processor
6421         lt_prog_compiler_static='-Bstatic'
6422       else
6423         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6424       fi
6425       ;;
6426
6427     mingw* | pw32* | os2*)
6428       # This hack is so that the source file can tell whether it is being
6429       # built for inclusion in a dll (and should export symbols for example).
6430       lt_prog_compiler_pic='-DDLL_EXPORT'
6431       ;;
6432
6433     hpux9* | hpux10* | hpux11*)
6434       lt_prog_compiler_wl='-Wl,'
6435       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6436       # not for PA HP-UX.
6437       case "$host_cpu" in
6438       hppa*64*|ia64*)
6439         # +Z the default
6440         ;;
6441       *)
6442         lt_prog_compiler_pic='+Z'
6443         ;;
6444       esac
6445       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6446       lt_prog_compiler_static='${wl}-a ${wl}archive'
6447       ;;
6448
6449     irix5* | irix6* | nonstopux*)
6450       lt_prog_compiler_wl='-Wl,'
6451       # PIC (with -KPIC) is the default.
6452       lt_prog_compiler_static='-non_shared'
6453       ;;
6454
6455     newsos6)
6456       lt_prog_compiler_pic='-KPIC'
6457       lt_prog_compiler_static='-Bstatic'
6458       ;;
6459
6460     linux*)
6461       case $CC in
6462       icc|ecc)
6463         lt_prog_compiler_wl='-Wl,'
6464         lt_prog_compiler_pic='-KPIC'
6465         lt_prog_compiler_static='-static'
6466         ;;
6467       ccc)
6468         lt_prog_compiler_wl='-Wl,'
6469         # All Alpha code is PIC.
6470         lt_prog_compiler_static='-non_shared'
6471         ;;
6472       esac
6473       ;;
6474
6475     osf3* | osf4* | osf5*)
6476       lt_prog_compiler_wl='-Wl,'
6477       # All OSF/1 code is PIC.
6478       lt_prog_compiler_static='-non_shared'
6479       ;;
6480
6481     sco3.2v5*)
6482       lt_prog_compiler_pic='-Kpic'
6483       lt_prog_compiler_static='-dn'
6484       ;;
6485
6486     solaris*)
6487       lt_prog_compiler_wl='-Wl,'
6488       lt_prog_compiler_pic='-KPIC'
6489       lt_prog_compiler_static='-Bstatic'
6490       ;;
6491
6492     sunos4*)
6493       lt_prog_compiler_wl='-Qoption ld '
6494       lt_prog_compiler_pic='-PIC'
6495       lt_prog_compiler_static='-Bstatic'
6496       ;;
6497
6498     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6499       lt_prog_compiler_wl='-Wl,'
6500       lt_prog_compiler_pic='-KPIC'
6501       lt_prog_compiler_static='-Bstatic'
6502       ;;
6503
6504     sysv4*MP*)
6505       if test -d /usr/nec ;then
6506         lt_prog_compiler_pic='-Kconform_pic'
6507         lt_prog_compiler_static='-Bstatic'
6508       fi
6509       ;;
6510
6511     uts4*)
6512       lt_prog_compiler_pic='-pic'
6513       lt_prog_compiler_static='-Bstatic'
6514       ;;
6515
6516     *)
6517       lt_prog_compiler_can_build_shared=no
6518       ;;
6519     esac
6520   fi
6521
6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6523 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6524
6525 #
6526 # Check to make sure the PIC flag actually works.
6527 #
6528 if test -n "$lt_prog_compiler_pic"; then
6529   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6530 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6531 if test "${lt_prog_compiler_pic_works+set}" = set; then
6532   echo $ECHO_N "(cached) $ECHO_C" >&6
6533 else
6534   lt_prog_compiler_pic_works=no
6535   ac_outfile=conftest.$ac_objext
6536    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6537    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6538    # Insert the option either (1) after the last *FLAGS variable, or
6539    # (2) before a word containing "conftest.", or (3) at the end.
6540    # Note that $ac_compile itself does not contain backslashes and begins
6541    # with a dollar sign (not a hyphen), so the echo should work correctly.
6542    # The option is referenced via a variable to avoid confusing sed.
6543    lt_compile=`echo "$ac_compile" | $SED \
6544    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6545    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6546    -e 's:$: $lt_compiler_flag:'`
6547    (eval echo "\"\$as_me:6547: $lt_compile\"" >&5)
6548    (eval "$lt_compile" 2>conftest.err)
6549    ac_status=$?
6550    cat conftest.err >&5
6551    echo "$as_me:6551: \$? = $ac_status" >&5
6552    if (exit $ac_status) && test -s "$ac_outfile"; then
6553      # The compiler can only warn and ignore the option if not recognized
6554      # So say no if there are warnings
6555      if test ! -s conftest.err; then
6556        lt_prog_compiler_pic_works=yes
6557      fi
6558    fi
6559    $rm conftest*
6560
6561 fi
6562 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6563 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6564
6565 if test x"$lt_prog_compiler_pic_works" = xyes; then
6566     case $lt_prog_compiler_pic in
6567      "" | " "*) ;;
6568      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6569      esac
6570 else
6571     lt_prog_compiler_pic=
6572      lt_prog_compiler_can_build_shared=no
6573 fi
6574
6575 fi
6576 case "$host_os" in
6577   # For platforms which do not support PIC, -DPIC is meaningless:
6578   *djgpp*)
6579     lt_prog_compiler_pic=
6580     ;;
6581   *)
6582     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6583     ;;
6584 esac
6585
6586 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6587 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6588 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6589   echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591   lt_cv_prog_compiler_c_o=no
6592    $rm -r conftest 2>/dev/null
6593    mkdir conftest
6594    cd conftest
6595    mkdir out
6596    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6597
6598    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
6599    # that will create temporary files in the current directory regardless of
6600    # the output directory.  Thus, making CWD read-only will cause this test
6601    # to fail, enabling locking or at least warning the user not to do parallel
6602    # builds.
6603    chmod -w .
6604
6605    lt_compiler_flag="-o out/conftest2.$ac_objext"
6606    # Insert the option either (1) after the last *FLAGS variable, or
6607    # (2) before a word containing "conftest.", or (3) at the end.
6608    # Note that $ac_compile itself does not contain backslashes and begins
6609    # with a dollar sign (not a hyphen), so the echo should work correctly.
6610    lt_compile=`echo "$ac_compile" | $SED \
6611    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6612    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6613    -e 's:$: $lt_compiler_flag:'`
6614    (eval echo "\"\$as_me:6614: $lt_compile\"" >&5)
6615    (eval "$lt_compile" 2>out/conftest.err)
6616    ac_status=$?
6617    cat out/conftest.err >&5
6618    echo "$as_me:6618: \$? = $ac_status" >&5
6619    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6620    then
6621      # The compiler can only warn and ignore the option if not recognized
6622      # So say no if there are warnings
6623      if test ! -s out/conftest.err; then
6624        lt_cv_prog_compiler_c_o=yes
6625      fi
6626    fi
6627    chmod u+w .
6628    $rm conftest* out/*
6629    rmdir out
6630    cd ..
6631    rmdir conftest
6632    $rm conftest*
6633
6634 fi
6635 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6636 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6637
6638
6639 hard_links="nottested"
6640 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6641   # do not overwrite the value of need_locks provided by the user
6642   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6643 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6644   hard_links=yes
6645   $rm conftest*
6646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6647   touch conftest.a
6648   ln conftest.a conftest.b 2>&5 || hard_links=no
6649   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6650   echo "$as_me:$LINENO: result: $hard_links" >&5
6651 echo "${ECHO_T}$hard_links" >&6
6652   if test "$hard_links" = no; then
6653     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6654 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6655     need_locks=warn
6656   fi
6657 else
6658   need_locks=no
6659 fi
6660
6661 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6662 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6663
6664   runpath_var=
6665   allow_undefined_flag=
6666   enable_shared_with_static_runtimes=no
6667   archive_cmds=
6668   archive_expsym_cmds=
6669   old_archive_From_new_cmds=
6670   old_archive_from_expsyms_cmds=
6671   export_dynamic_flag_spec=
6672   whole_archive_flag_spec=
6673   thread_safe_flag_spec=
6674   hardcode_libdir_flag_spec=
6675   hardcode_libdir_flag_spec_ld=
6676   hardcode_libdir_separator=
6677   hardcode_direct=no
6678   hardcode_minus_L=no
6679   hardcode_shlibpath_var=unsupported
6680   link_all_deplibs=unknown
6681   hardcode_automatic=no
6682   module_cmds=
6683   module_expsym_cmds=
6684   always_export_symbols=no
6685   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6686   # include_expsyms should be a list of space-separated symbols to be *always*
6687   # included in the symbol list
6688   include_expsyms=
6689   # exclude_expsyms can be an extended regexp of symbols to exclude
6690   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6691   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6692   # as well as any symbol that contains `d'.
6693   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6694   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6695   # platforms (ab)use it in PIC code, but their linkers get confused if
6696   # the symbol is explicitly referenced.  Since portable code cannot
6697   # rely on this symbol name, it's probably fine to never include it in
6698   # preloaded symbol tables.
6699   extract_expsyms_cmds=
6700
6701   case $host_os in
6702   cygwin* | mingw* | pw32*)
6703     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6704     # When not using gcc, we currently assume that we are using
6705     # Microsoft Visual C++.
6706     if test "$GCC" != yes; then
6707       with_gnu_ld=no
6708     fi
6709     ;;
6710   openbsd*)
6711     with_gnu_ld=no
6712     ;;
6713   esac
6714
6715   ld_shlibs=yes
6716   if test "$with_gnu_ld" = yes; then
6717     # If archive_cmds runs LD, not CC, wlarc should be empty
6718     wlarc='${wl}'
6719
6720     # See if GNU ld supports shared libraries.
6721     case $host_os in
6722     aix3* | aix4* | aix5*)
6723       # On AIX/PPC, the GNU linker is very broken
6724       if test "$host_cpu" != ia64; then
6725         ld_shlibs=no
6726         cat <<EOF 1>&2
6727
6728 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6729 *** to be unable to reliably create shared libraries on AIX.
6730 *** Therefore, libtool is disabling shared libraries support.  If you
6731 *** really care for shared libraries, you may want to modify your PATH
6732 *** so that a non-GNU linker is found, and then restart.
6733
6734 EOF
6735       fi
6736       ;;
6737
6738     amigaos*)
6739       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)'
6740       hardcode_libdir_flag_spec='-L$libdir'
6741       hardcode_minus_L=yes
6742
6743       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6744       # that the semantics of dynamic libraries on AmigaOS, at least up
6745       # to version 4, is to share data among multiple programs linked
6746       # with the same dynamic library.  Since this doesn't match the
6747       # behavior of shared libraries on other platforms, we can't use
6748       # them.
6749       ld_shlibs=no
6750       ;;
6751
6752     beos*)
6753       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6754         allow_undefined_flag=unsupported
6755         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6756         # support --undefined.  This deserves some investigation.  FIXME
6757         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6758       else
6759         ld_shlibs=no
6760       fi
6761       ;;
6762
6763     cygwin* | mingw* | pw32*)
6764       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6765       # as there is no search path for DLLs.
6766       hardcode_libdir_flag_spec='-L$libdir'
6767       allow_undefined_flag=unsupported
6768       always_export_symbols=no
6769       enable_shared_with_static_runtimes=yes
6770       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6771
6772       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6773         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6774         # If the export-symbols file already is a .def file (1st line
6775         # is EXPORTS), use it as is; otherwise, prepend...
6776         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6777           cp $export_symbols $output_objdir/$soname.def;
6778         else
6779           echo EXPORTS > $output_objdir/$soname.def;
6780           cat $export_symbols >> $output_objdir/$soname.def;
6781         fi~
6782         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6783       else
6784         ld_shlibs=no
6785       fi
6786       ;;
6787
6788     netbsd*)
6789       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6790         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6791         wlarc=
6792       else
6793         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6794         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6795       fi
6796       ;;
6797
6798     solaris* | sysv5*)
6799       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6800         ld_shlibs=no
6801         cat <<EOF 1>&2
6802
6803 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6804 *** create shared libraries on Solaris systems.  Therefore, libtool
6805 *** is disabling shared libraries support.  We urge you to upgrade GNU
6806 *** binutils to release 2.9.1 or newer.  Another option is to modify
6807 *** your PATH or compiler configuration so that the native linker is
6808 *** used, and then restart.
6809
6810 EOF
6811       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6812         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6813         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6814       else
6815         ld_shlibs=no
6816       fi
6817       ;;
6818
6819     sunos4*)
6820       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6821       wlarc=
6822       hardcode_direct=yes
6823       hardcode_shlibpath_var=no
6824       ;;
6825
6826   linux*)
6827     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
6828         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6829         archive_cmds="$tmp_archive_cmds"
6830       supports_anon_versioning=no
6831       case `$LD -v 2>/dev/null` in
6832         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6833         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6834         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6835         *\ 2.11.*) ;; # other 2.11 versions
6836         *) supports_anon_versioning=yes ;;
6837       esac
6838       if test $supports_anon_versioning = yes; then
6839         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6841 $echo "local: *; };" >> $output_objdir/$libname.ver~
6842         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6843       else
6844         archive_expsym_cmds="$tmp_archive_cmds"
6845       fi
6846     else
6847       ld_shlibs=no
6848     fi
6849     ;;
6850
6851     *)
6852       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6853         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6854         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6855       else
6856         ld_shlibs=no
6857       fi
6858       ;;
6859     esac
6860
6861     if test "$ld_shlibs" = yes; then
6862       runpath_var=LD_RUN_PATH
6863       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6864       export_dynamic_flag_spec='${wl}--export-dynamic'
6865       # ancient GNU ld didn't support --whole-archive et. al.
6866       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6867         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6868       else
6869         whole_archive_flag_spec=
6870       fi
6871     fi
6872   else
6873     # PORTME fill in a description of your system's linker (not GNU ld)
6874     case $host_os in
6875     aix3*)
6876       allow_undefined_flag=unsupported
6877       always_export_symbols=yes
6878       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'
6879       # Note: this linker hardcodes the directories in LIBPATH if there
6880       # are no directories specified by -L.
6881       hardcode_minus_L=yes
6882       if test "$GCC" = yes && test -z "$link_static_flag"; then
6883         # Neither direct hardcoding nor static linking is supported with a
6884         # broken collect2.
6885         hardcode_direct=unsupported
6886       fi
6887       ;;
6888
6889     aix4* | aix5*)
6890       if test "$host_cpu" = ia64; then
6891         # On IA64, the linker does run time linking by default, so we don't
6892         # have to do anything special.
6893         aix_use_runtimelinking=no
6894         exp_sym_flag='-Bexport'
6895         no_entry_flag=""
6896       else
6897         # If we're using GNU nm, then we don't want the "-C" option.
6898         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6899         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6900           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'
6901         else
6902           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'
6903         fi
6904         aix_use_runtimelinking=no
6905
6906         # Test if we are trying to use run time linking or normal
6907         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6908         # need to do runtime linking.
6909         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6910           for ld_flag in $LDFLAGS; do
6911           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6912             aix_use_runtimelinking=yes
6913             break
6914           fi
6915           done
6916         esac
6917
6918         exp_sym_flag='-bexport'
6919         no_entry_flag='-bnoentry'
6920       fi
6921
6922       # When large executables or shared objects are built, AIX ld can
6923       # have problems creating the table of contents.  If linking a library
6924       # or program results in "error TOC overflow" add -mminimal-toc to
6925       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6926       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6927
6928       archive_cmds=''
6929       hardcode_direct=yes
6930       hardcode_libdir_separator=':'
6931       link_all_deplibs=yes
6932
6933       if test "$GCC" = yes; then
6934         case $host_os in aix4.012|aix4.012.*)
6935         # We only want to do this on AIX 4.2 and lower, the check
6936         # below for broken collect2 doesn't work under 4.3+
6937           collect2name=`${CC} -print-prog-name=collect2`
6938           if test -f "$collect2name" && \
6939            strings "$collect2name" | grep resolve_lib_name >/dev/null
6940           then
6941           # We have reworked collect2
6942           hardcode_direct=yes
6943           else
6944           # We have old collect2
6945           hardcode_direct=unsupported
6946           # It fails to find uninstalled libraries when the uninstalled
6947           # path is not listed in the libpath.  Setting hardcode_minus_L
6948           # to unsupported forces relinking
6949           hardcode_minus_L=yes
6950           hardcode_libdir_flag_spec='-L$libdir'
6951           hardcode_libdir_separator=
6952           fi
6953         esac
6954         shared_flag='-shared'
6955       else
6956         # not using gcc
6957         if test "$host_cpu" = ia64; then
6958         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6959         # chokes on -Wl,-G. The following line is correct:
6960           shared_flag='-G'
6961         else
6962         if test "$aix_use_runtimelinking" = yes; then
6963             shared_flag='${wl}-G'
6964           else
6965             shared_flag='${wl}-bM:SRE'
6966         fi
6967         fi
6968       fi
6969
6970       # It seems that -bexpall does not export symbols beginning with
6971       # underscore (_), so it is better to generate a list of symbols to export.
6972       always_export_symbols=yes
6973       if test "$aix_use_runtimelinking" = yes; then
6974         # Warning - without using the other runtime loading flags (-brtl),
6975         # -berok will link without error, but may produce a broken library.
6976         allow_undefined_flag='-berok'
6977        # Determine the default libpath from the value encoded in an empty executable.
6978        cat >conftest.$ac_ext <<_ACEOF
6979 #line $LINENO "configure"
6980 /* confdefs.h.  */
6981 _ACEOF
6982 cat confdefs.h >>conftest.$ac_ext
6983 cat >>conftest.$ac_ext <<_ACEOF
6984 /* end confdefs.h.  */
6985
6986 int
6987 main ()
6988 {
6989
6990   ;
6991   return 0;
6992 }
6993 _ACEOF
6994 rm -f conftest.$ac_objext conftest$ac_exeext
6995 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6996   (eval $ac_link) 2>&5
6997   ac_status=$?
6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999   (exit $ac_status); } &&
7000          { ac_try='test -s conftest$ac_exeext'
7001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7002   (eval $ac_try) 2>&5
7003   ac_status=$?
7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7005   (exit $ac_status); }; }; then
7006
7007 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7008 }'`
7009 # Check for a 64-bit object if we didn't find anything.
7010 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; }
7011 }'`; fi
7012 else
7013   echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 fi
7017 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7018 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7019
7020        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7021         archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7022        else
7023         if test "$host_cpu" = ia64; then
7024           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7025           allow_undefined_flag="-z nodefs"
7026           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
7027         else
7028          # Determine the default libpath from the value encoded in an empty executable.
7029          cat >conftest.$ac_ext <<_ACEOF
7030 #line $LINENO "configure"
7031 /* confdefs.h.  */
7032 _ACEOF
7033 cat confdefs.h >>conftest.$ac_ext
7034 cat >>conftest.$ac_ext <<_ACEOF
7035 /* end confdefs.h.  */
7036
7037 int
7038 main ()
7039 {
7040
7041   ;
7042   return 0;
7043 }
7044 _ACEOF
7045 rm -f conftest.$ac_objext conftest$ac_exeext
7046 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7047   (eval $ac_link) 2>&5
7048   ac_status=$?
7049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7050   (exit $ac_status); } &&
7051          { ac_try='test -s conftest$ac_exeext'
7052   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7053   (eval $ac_try) 2>&5
7054   ac_status=$?
7055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056   (exit $ac_status); }; }; then
7057
7058 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7059 }'`
7060 # Check for a 64-bit object if we didn't find anything.
7061 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; }
7062 }'`; fi
7063 else
7064   echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 fi
7068 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
7069 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7070
7071          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7072           # Warning - without using the other run time loading flags,
7073           # -berok will link without error, but may produce a broken library.
7074           no_undefined_flag=' ${wl}-bernotok'
7075           allow_undefined_flag=' ${wl}-berok'
7076           # -bexpall does not export symbols beginning with underscore (_)
7077           always_export_symbols=yes
7078           # Exported symbols can be pulled into shared objects from archives
7079           whole_archive_flag_spec=' '
7080           archive_cmds_need_lc=yes
7081           # This is similar to how AIX traditionally builds it's shared libraries.
7082           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7083         fi
7084       fi
7085       ;;
7086
7087     amigaos*)
7088       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)'
7089       hardcode_libdir_flag_spec='-L$libdir'
7090       hardcode_minus_L=yes
7091       # see comment about different semantics on the GNU ld section
7092       ld_shlibs=no
7093       ;;
7094
7095     bsdi4*)
7096       export_dynamic_flag_spec=-rdynamic
7097       ;;
7098
7099     cygwin* | mingw* | pw32*)
7100       # When not using gcc, we currently assume that we are using
7101       # Microsoft Visual C++.
7102       # hardcode_libdir_flag_spec is actually meaningless, as there is
7103       # no search path for DLLs.
7104       hardcode_libdir_flag_spec=' '
7105       allow_undefined_flag=unsupported
7106       # Tell ltmain to make .lib files, not .a files.
7107       libext=lib
7108       # Tell ltmain to make .dll files, not .so files.
7109       shrext=".dll"
7110       # FIXME: Setting linknames here is a bad hack.
7111       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7112       # The linker will automatically build a .lib file if we build a DLL.
7113       old_archive_From_new_cmds='true'
7114       # FIXME: Should let the user specify the lib program.
7115       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7116       fix_srcfile_path='`cygpath -w "$srcfile"`'
7117       enable_shared_with_static_runtimes=yes
7118       ;;
7119
7120     darwin* | rhapsody*)
7121     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7122       archive_cmds_need_lc=no
7123       case "$host_os" in
7124       rhapsody* | darwin1.[012])
7125         allow_undefined_flag='-undefined suppress'
7126         ;;
7127       *) # Darwin 1.3 on
7128         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
7129         ;;
7130       esac
7131       # FIXME: Relying on posixy $() will cause problems for
7132       #        cross-compilation, but unfortunately the echo tests do not
7133       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
7134       #        `"' quotes if we put them in here... so don't!
7135         lt_int_apple_cc_single_mod=no
7136         output_verbose_link_cmd='echo'
7137         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7138           lt_int_apple_cc_single_mod=yes
7139         fi
7140         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7141           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7142         else
7143         archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7144       fi
7145       module_cmds='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
7146       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7147         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7148           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7149         else
7150           archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7151         fi
7152           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7153       hardcode_direct=no
7154       hardcode_automatic=yes
7155       hardcode_shlibpath_var=unsupported
7156       whole_archive_flag_spec='-all_load $convenience'
7157       link_all_deplibs=yes
7158     fi
7159       ;;
7160
7161     dgux*)
7162       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7163       hardcode_libdir_flag_spec='-L$libdir'
7164       hardcode_shlibpath_var=no
7165       ;;
7166
7167     freebsd1*)
7168       ld_shlibs=no
7169       ;;
7170
7171     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7172     # support.  Future versions do this automatically, but an explicit c++rt0.o
7173     # does not break anything, and helps significantly (at the cost of a little
7174     # extra space).
7175     freebsd2.2*)
7176       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7177       hardcode_libdir_flag_spec='-R$libdir'
7178       hardcode_direct=yes
7179       hardcode_shlibpath_var=no
7180       ;;
7181
7182     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7183     freebsd2*)
7184       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7185       hardcode_direct=yes
7186       hardcode_minus_L=yes
7187       hardcode_shlibpath_var=no
7188       ;;
7189
7190     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7191     freebsd*)
7192       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7193       hardcode_libdir_flag_spec='-R$libdir'
7194       hardcode_direct=yes
7195       hardcode_shlibpath_var=no
7196       ;;
7197
7198     hpux9*)
7199       if test "$GCC" = yes; then
7200         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'
7201       else
7202         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'
7203       fi
7204       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7205       hardcode_libdir_separator=:
7206       hardcode_direct=yes
7207
7208       # hardcode_minus_L: Not really in the search PATH,
7209       # but as the default location of the library.
7210       hardcode_minus_L=yes
7211       export_dynamic_flag_spec='${wl}-E'
7212       ;;
7213
7214     hpux10* | hpux11*)
7215       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7216         case "$host_cpu" in
7217         hppa*64*|ia64*)
7218           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7219           ;;
7220         *)
7221           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7222           ;;
7223         esac
7224       else
7225         case "$host_cpu" in
7226         hppa*64*|ia64*)
7227           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7228           ;;
7229         *)
7230           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7231           ;;
7232         esac
7233       fi
7234       if test "$with_gnu_ld" = no; then
7235         case "$host_cpu" in
7236         hppa*64*)
7237           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7238           hardcode_libdir_flag_spec_ld='+b $libdir'
7239           hardcode_libdir_separator=:
7240           hardcode_direct=no
7241           hardcode_shlibpath_var=no
7242           ;;
7243         ia64*)
7244           hardcode_libdir_flag_spec='-L$libdir'
7245           hardcode_direct=no
7246           hardcode_shlibpath_var=no
7247
7248           # hardcode_minus_L: Not really in the search PATH,
7249           # but as the default location of the library.
7250           hardcode_minus_L=yes
7251           ;;
7252         *)
7253           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7254           hardcode_libdir_separator=:
7255           hardcode_direct=yes
7256           export_dynamic_flag_spec='${wl}-E'
7257
7258           # hardcode_minus_L: Not really in the search PATH,
7259           # but as the default location of the library.
7260           hardcode_minus_L=yes
7261           ;;
7262         esac
7263       fi
7264       ;;
7265
7266     irix5* | irix6* | nonstopux*)
7267       if test "$GCC" = yes; then
7268         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'
7269       else
7270         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'
7271         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7272       fi
7273       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7274       hardcode_libdir_separator=:
7275       link_all_deplibs=yes
7276       ;;
7277
7278     netbsd*)
7279       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7280         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7281       else
7282         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7283       fi
7284       hardcode_libdir_flag_spec='-R$libdir'
7285       hardcode_direct=yes
7286       hardcode_shlibpath_var=no
7287       ;;
7288
7289     newsos6)
7290       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7291       hardcode_direct=yes
7292       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7293       hardcode_libdir_separator=:
7294       hardcode_shlibpath_var=no
7295       ;;
7296
7297     openbsd*)
7298       hardcode_direct=yes
7299       hardcode_shlibpath_var=no
7300       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7301         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7302         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7303         export_dynamic_flag_spec='${wl}-E'
7304       else
7305        case $host_os in
7306          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7307            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7308            hardcode_libdir_flag_spec='-R$libdir'
7309            ;;
7310          *)
7311            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7312            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7313            ;;
7314        esac
7315       fi
7316       ;;
7317
7318     os2*)
7319       hardcode_libdir_flag_spec='-L$libdir'
7320       hardcode_minus_L=yes
7321       allow_undefined_flag=unsupported
7322       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'
7323       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7324       ;;
7325
7326     osf3*)
7327       if test "$GCC" = yes; then
7328         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7329         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'
7330       else
7331         allow_undefined_flag=' -expect_unresolved \*'
7332         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'
7333       fi
7334       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7335       hardcode_libdir_separator=:
7336       ;;
7337
7338     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7339       if test "$GCC" = yes; then
7340         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7341         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'
7342         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7343       else
7344         allow_undefined_flag=' -expect_unresolved \*'
7345         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'
7346         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7347         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
7348
7349         # Both c and cxx compiler support -rpath directly
7350         hardcode_libdir_flag_spec='-rpath $libdir'
7351       fi
7352       hardcode_libdir_separator=:
7353       ;;
7354
7355     sco3.2v5*)
7356       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7357       hardcode_shlibpath_var=no
7358       export_dynamic_flag_spec='${wl}-Bexport'
7359       runpath_var=LD_RUN_PATH
7360       hardcode_runpath_var=yes
7361       ;;
7362
7363     solaris*)
7364       no_undefined_flag=' -z text'
7365       if test "$GCC" = yes; then
7366         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7367         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7368           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7369       else
7370         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7371         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7372         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7373       fi
7374       hardcode_libdir_flag_spec='-R$libdir'
7375       hardcode_shlibpath_var=no
7376       case $host_os in
7377       solaris2.[0-5] | solaris2.[0-5].*) ;;
7378       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7379         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7380       esac
7381       link_all_deplibs=yes
7382       ;;
7383
7384     sunos4*)
7385       if test "x$host_vendor" = xsequent; then
7386         # Use $CC to link under sequent, because it throws in some extra .o
7387         # files that make .init and .fini sections work.
7388         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7389       else
7390         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7391       fi
7392       hardcode_libdir_flag_spec='-L$libdir'
7393       hardcode_direct=yes
7394       hardcode_minus_L=yes
7395       hardcode_shlibpath_var=no
7396       ;;
7397
7398     sysv4)
7399       case $host_vendor in
7400         sni)
7401           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7402           hardcode_direct=yes # is this really true???
7403         ;;
7404         siemens)
7405           ## LD is ld it makes a PLAMLIB
7406           ## CC just makes a GrossModule.
7407           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7408           reload_cmds='$CC -r -o $output$reload_objs'
7409           hardcode_direct=no
7410         ;;
7411         motorola)
7412           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7413           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7414         ;;
7415       esac
7416       runpath_var='LD_RUN_PATH'
7417       hardcode_shlibpath_var=no
7418       ;;
7419
7420     sysv4.3*)
7421       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422       hardcode_shlibpath_var=no
7423       export_dynamic_flag_spec='-Bexport'
7424       ;;
7425
7426     sysv4*MP*)
7427       if test -d /usr/nec; then
7428         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7429         hardcode_shlibpath_var=no
7430         runpath_var=LD_RUN_PATH
7431         hardcode_runpath_var=yes
7432         ld_shlibs=yes
7433       fi
7434       ;;
7435
7436     sysv4.2uw2*)
7437       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7438       hardcode_direct=yes
7439       hardcode_minus_L=no
7440       hardcode_shlibpath_var=no
7441       hardcode_runpath_var=yes
7442       runpath_var=LD_RUN_PATH
7443       ;;
7444
7445    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7446       no_undefined_flag='${wl}-z ${wl}text'
7447       if test "$GCC" = yes; then
7448         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7449       else
7450         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7451       fi
7452       runpath_var='LD_RUN_PATH'
7453       hardcode_shlibpath_var=no
7454       ;;
7455
7456     sysv5*)
7457       no_undefined_flag=' -z text'
7458       # $CC -shared without GNU ld will not create a library from C++
7459       # object files and a static libstdc++, better avoid it by now
7460       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7461       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7462                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7463       hardcode_libdir_flag_spec=
7464       hardcode_shlibpath_var=no
7465       runpath_var='LD_RUN_PATH'
7466       ;;
7467
7468     uts4*)
7469       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7470       hardcode_libdir_flag_spec='-L$libdir'
7471       hardcode_shlibpath_var=no
7472       ;;
7473
7474     *)
7475       ld_shlibs=no
7476       ;;
7477     esac
7478   fi
7479
7480 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7481 echo "${ECHO_T}$ld_shlibs" >&6
7482 test "$ld_shlibs" = no && can_build_shared=no
7483
7484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7485 if test "$GCC" = yes; then
7486   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7487 fi
7488
7489 #
7490 # Do we need to explicitly link libc?
7491 #
7492 case "x$archive_cmds_need_lc" in
7493 x|xyes)
7494   # Assume -lc should be added
7495   archive_cmds_need_lc=yes
7496
7497   if test "$enable_shared" = yes && test "$GCC" = yes; then
7498     case $archive_cmds in
7499     *'~'*)
7500       # FIXME: we may have to deal with multi-command sequences.
7501       ;;
7502     '$CC '*)
7503       # Test whether the compiler implicitly links with -lc since on some
7504       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7505       # to ld, don't add -lc before -lgcc.
7506       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7507 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7508       $rm conftest*
7509       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7510
7511       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7512   (eval $ac_compile) 2>&5
7513   ac_status=$?
7514   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7515   (exit $ac_status); } 2>conftest.err; then
7516         soname=conftest
7517         lib=conftest
7518         libobjs=conftest.$ac_objext
7519         deplibs=
7520         wl=$lt_prog_compiler_wl
7521         compiler_flags=-v
7522         linker_flags=-v
7523         verstring=
7524         output_objdir=.
7525         libname=conftest
7526         lt_save_allow_undefined_flag=$allow_undefined_flag
7527         allow_undefined_flag=
7528         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7529   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7530   ac_status=$?
7531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532   (exit $ac_status); }
7533         then
7534           archive_cmds_need_lc=no
7535         else
7536           archive_cmds_need_lc=yes
7537         fi
7538         allow_undefined_flag=$lt_save_allow_undefined_flag
7539       else
7540         cat conftest.err 1>&5
7541       fi
7542       $rm conftest*
7543       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7544 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7545       ;;
7546     esac
7547   fi
7548   ;;
7549 esac
7550
7551 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
7552 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
7553 hardcode_action=
7554 if test -n "$hardcode_libdir_flag_spec" || \
7555    test -n "$runpath_var " || \
7556    test "X$hardcode_automatic"="Xyes" ; then
7557
7558   # We can hardcode non-existant directories.
7559   if test "$hardcode_direct" != no &&
7560      # If the only mechanism to avoid hardcoding is shlibpath_var, we
7561      # have to relink, otherwise we might link with an installed library
7562      # when we should be linking with a yet-to-be-installed one
7563      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
7564      test "$hardcode_minus_L" != no; then
7565     # Linking always hardcodes the temporary library directory.
7566     hardcode_action=relink
7567   else
7568     # We can link without hardcoding, and we can hardcode nonexisting dirs.
7569     hardcode_action=immediate
7570   fi
7571 else
7572   # We cannot hardcode anything, or else we can only hardcode existing
7573   # directories.
7574   hardcode_action=unsupported
7575 fi
7576 echo "$as_me:$LINENO: result: $hardcode_action" >&5
7577 echo "${ECHO_T}$hardcode_action" >&6
7578
7579 if test "$hardcode_action" = relink; then
7580   # Fast installation is not supported
7581   enable_fast_install=no
7582 elif test "$shlibpath_overrides_runpath" = yes ||
7583      test "$enable_shared" = no; then
7584   # Fast installation is not necessary
7585   enable_fast_install=needless
7586 fi
7587
7588 striplib=
7589 old_striplib=
7590 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
7591 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
7592 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
7593   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
7594   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
7595   echo "$as_me:$LINENO: result: yes" >&5
7596 echo "${ECHO_T}yes" >&6
7597 else
7598 # FIXME - insert some real tests, host_os isn't really good enough
7599   case $host_os in
7600    darwin*)
7601        if test -n "$STRIP" ; then
7602          striplib="$STRIP -x"
7603          echo "$as_me:$LINENO: result: yes" >&5
7604 echo "${ECHO_T}yes" >&6
7605        else
7606   echo "$as_me:$LINENO: result: no" >&5
7607 echo "${ECHO_T}no" >&6
7608 fi
7609        ;;
7610    *)
7611   echo "$as_me:$LINENO: result: no" >&5
7612 echo "${ECHO_T}no" >&6
7613     ;;
7614   esac
7615 fi
7616
7617 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7618 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7619 library_names_spec=
7620 libname_spec='lib$name'
7621 soname_spec=
7622 shrext=".so"
7623 postinstall_cmds=
7624 postuninstall_cmds=
7625 finish_cmds=
7626 finish_eval=
7627 shlibpath_var=
7628 shlibpath_overrides_runpath=unknown
7629 version_type=none
7630 dynamic_linker="$host_os ld.so"
7631 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7632 if test "$GCC" = yes; then
7633   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7634   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7635     # if the path contains ";" then we assume it to be the separator
7636     # otherwise default to the standard path separator (i.e. ":") - it is
7637     # assumed that no part of a normal pathname contains ";" but that should
7638     # okay in the real world where ";" in dirpaths is itself problematic.
7639     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7640   else
7641     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7642   fi
7643 else
7644   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7645 fi
7646 need_lib_prefix=unknown
7647 hardcode_into_libs=no
7648
7649 # when you set need_version to no, make sure it does not cause -set_version
7650 # flags to be left without arguments
7651 need_version=unknown
7652
7653 case $host_os in
7654 aix3*)
7655   version_type=linux
7656   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7657   shlibpath_var=LIBPATH
7658
7659   # AIX 3 has no versioning support, so we append a major version to the name.
7660   soname_spec='${libname}${release}${shared_ext}$major'
7661   ;;
7662
7663 aix4* | aix5*)
7664   version_type=linux
7665   need_lib_prefix=no
7666   need_version=no
7667   hardcode_into_libs=yes
7668   if test "$host_cpu" = ia64; then
7669     # AIX 5 supports IA64
7670     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7671     shlibpath_var=LD_LIBRARY_PATH
7672   else
7673     # With GCC up to 2.95.x, collect2 would create an import file
7674     # for dependence libraries.  The import file would start with
7675     # the line `#! .'.  This would cause the generated library to
7676     # depend on `.', always an invalid library.  This was fixed in
7677     # development snapshots of GCC prior to 3.0.
7678     case $host_os in
7679       aix4 | aix4.[01] | aix4.[01].*)
7680       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7681            echo ' yes '
7682            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7683         :
7684       else
7685         can_build_shared=no
7686       fi
7687       ;;
7688     esac
7689     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7690     # soname into executable. Probably we can add versioning support to
7691     # collect2, so additional links can be useful in future.
7692     if test "$aix_use_runtimelinking" = yes; then
7693       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7694       # instead of lib<name>.a to let people know that these are not
7695       # typical AIX shared libraries.
7696       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7697     else
7698       # We preserve .a as extension for shared libraries through AIX4.2
7699       # and later when we are not doing run time linking.
7700       library_names_spec='${libname}${release}.a $libname.a'
7701       soname_spec='${libname}${release}${shared_ext}$major'
7702     fi
7703     shlibpath_var=LIBPATH
7704   fi
7705   ;;
7706
7707 amigaos*)
7708   library_names_spec='$libname.ixlibrary $libname.a'
7709   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7710   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'
7711   ;;
7712
7713 beos*)
7714   library_names_spec='${libname}${shared_ext}'
7715   dynamic_linker="$host_os ld.so"
7716   shlibpath_var=LIBRARY_PATH
7717   ;;
7718
7719 bsdi4*)
7720   version_type=linux
7721   need_version=no
7722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7723   soname_spec='${libname}${release}${shared_ext}$major'
7724   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7725   shlibpath_var=LD_LIBRARY_PATH
7726   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7727   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7728   # the default ld.so.conf also contains /usr/contrib/lib and
7729   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7730   # libtool to hard-code these into programs
7731   ;;
7732
7733 cygwin* | mingw* | pw32*)
7734   version_type=windows
7735   shrext=".dll"
7736   need_version=no
7737   need_lib_prefix=no
7738
7739   case $GCC,$host_os in
7740   yes,cygwin* | yes,mingw* | yes,pw32*)
7741     library_names_spec='$libname.dll.a'
7742     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7743     postinstall_cmds='base_file=`basename \${file}`~
7744       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7745       dldir=$destdir/`dirname \$dlpath`~
7746       test -d \$dldir || mkdir -p \$dldir~
7747       $install_prog $dir/$dlname \$dldir/$dlname'
7748     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7749       dlpath=$dir/\$dldll~
7750        $rm \$dlpath'
7751     shlibpath_overrides_runpath=yes
7752
7753     case $host_os in
7754     cygwin*)
7755       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7756       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7757       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
7758       ;;
7759     mingw*)
7760       # MinGW DLLs use traditional 'lib' prefix
7761       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7762       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7763       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7764         # It is most probably a Windows format PATH printed by
7765         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7766         # path with ; separators, and with drive letters. We can handle the
7767         # drive letters (cygwin fileutils understands them), so leave them,
7768         # especially as we might pass files found there to a mingw objdump,
7769         # which wouldn't understand a cygwinified path. Ahh.
7770         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7771       else
7772         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7773       fi
7774       ;;
7775     pw32*)
7776       # pw32 DLLs use 'pw' prefix rather than 'lib'
7777       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7778       ;;
7779     esac
7780     ;;
7781
7782   *)
7783     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7784     ;;
7785   esac
7786   dynamic_linker='Win32 ld.exe'
7787   # FIXME: first we should search . and the directory the executable is in
7788   shlibpath_var=PATH
7789   ;;
7790
7791 darwin* | rhapsody*)
7792   dynamic_linker="$host_os dyld"
7793   version_type=darwin
7794   need_lib_prefix=no
7795   need_version=no
7796   # FIXME: Relying on posixy $() will cause problems for
7797   #        cross-compilation, but unfortunately the echo tests do not
7798   #        yet detect zsh echo's removal of \ escapes.
7799   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7800   soname_spec='${libname}${release}${major}$shared_ext'
7801   shlibpath_overrides_runpath=yes
7802   shlibpath_var=DYLD_LIBRARY_PATH
7803   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
7804   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7805   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
7806   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"`
7807   fi
7808   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7809   ;;
7810
7811 dgux*)
7812   version_type=linux
7813   need_lib_prefix=no
7814   need_version=no
7815   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7816   soname_spec='${libname}${release}${shared_ext}$major'
7817   shlibpath_var=LD_LIBRARY_PATH
7818   ;;
7819
7820 freebsd1*)
7821   dynamic_linker=no
7822   ;;
7823
7824 freebsd*)
7825   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7826   version_type=freebsd-$objformat
7827   case $version_type in
7828     freebsd-elf*)
7829       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7830       need_version=no
7831       need_lib_prefix=no
7832       ;;
7833     freebsd-*)
7834       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7835       need_version=yes
7836       ;;
7837   esac
7838   shlibpath_var=LD_LIBRARY_PATH
7839   case $host_os in
7840   freebsd2*)
7841     shlibpath_overrides_runpath=yes
7842     ;;
7843   freebsd3.01* | freebsdelf3.01*)
7844     shlibpath_overrides_runpath=yes
7845     hardcode_into_libs=yes
7846     ;;
7847   *) # from 3.2 on
7848     shlibpath_overrides_runpath=no
7849     hardcode_into_libs=yes
7850     ;;
7851   esac
7852   ;;
7853
7854 gnu*)
7855   version_type=linux
7856   need_lib_prefix=no
7857   need_version=no
7858   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7859   soname_spec='${libname}${release}${shared_ext}$major'
7860   shlibpath_var=LD_LIBRARY_PATH
7861   hardcode_into_libs=yes
7862   ;;
7863
7864 hpux9* | hpux10* | hpux11*)
7865   # Give a soname corresponding to the major version so that dld.sl refuses to
7866   # link against other versions.
7867   version_type=sunos
7868   need_lib_prefix=no
7869   need_version=no
7870   case "$host_cpu" in
7871   ia64*)
7872     shrext='.so'
7873     hardcode_into_libs=yes
7874     dynamic_linker="$host_os dld.so"
7875     shlibpath_var=LD_LIBRARY_PATH
7876     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7877     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7878     soname_spec='${libname}${release}${shared_ext}$major'
7879     if test "X$HPUX_IA64_MODE" = X32; then
7880       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7881     else
7882       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7883     fi
7884     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7885     ;;
7886    hppa*64*)
7887      shrext='.sl'
7888      hardcode_into_libs=yes
7889      dynamic_linker="$host_os dld.sl"
7890      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7891      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7892      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7893      soname_spec='${libname}${release}${shared_ext}$major'
7894      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7895      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7896      ;;
7897    *)
7898     shrext='.sl'
7899     dynamic_linker="$host_os dld.sl"
7900     shlibpath_var=SHLIB_PATH
7901     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7902     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7903     soname_spec='${libname}${release}${shared_ext}$major'
7904     ;;
7905   esac
7906   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7907   postinstall_cmds='chmod 555 $lib'
7908   ;;
7909
7910 irix5* | irix6* | nonstopux*)
7911   case $host_os in
7912     nonstopux*) version_type=nonstopux ;;
7913     *)
7914         if test "$lt_cv_prog_gnu_ld" = yes; then
7915                 version_type=linux
7916         else
7917                 version_type=irix
7918         fi ;;
7919   esac
7920   need_lib_prefix=no
7921   need_version=no
7922   soname_spec='${libname}${release}${shared_ext}$major'
7923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7924   case $host_os in
7925   irix5* | nonstopux*)
7926     libsuff= shlibsuff=
7927     ;;
7928   *)
7929     case $LD in # libtool.m4 will add one of these switches to LD
7930     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7931       libsuff= shlibsuff= libmagic=32-bit;;
7932     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7933       libsuff=32 shlibsuff=N32 libmagic=N32;;
7934     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7935       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7936     *) libsuff= shlibsuff= libmagic=never-match;;
7937     esac
7938     ;;
7939   esac
7940   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7941   shlibpath_overrides_runpath=no
7942   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7943   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7944   hardcode_into_libs=yes
7945   ;;
7946
7947 # No shared lib support for Linux oldld, aout, or coff.
7948 linux*oldld* | linux*aout* | linux*coff*)
7949   dynamic_linker=no
7950   ;;
7951
7952 # This must be Linux ELF.
7953 linux*)
7954   version_type=linux
7955   need_lib_prefix=no
7956   need_version=no
7957   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7958   soname_spec='${libname}${release}${shared_ext}$major'
7959   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7960   shlibpath_var=LD_LIBRARY_PATH
7961   shlibpath_overrides_runpath=no
7962   # This implies no fast_install, which is unacceptable.
7963   # Some rework will be needed to allow for fast_install
7964   # before this can be enabled.
7965   hardcode_into_libs=yes
7966
7967   # We used to test for /lib/ld.so.1 and disable shared libraries on
7968   # powerpc, because MkLinux only supported shared libraries with the
7969   # GNU dynamic linker.  Since this was broken with cross compilers,
7970   # most powerpc-linux boxes support dynamic linking these days and
7971   # people can always --disable-shared, the test was removed, and we
7972   # assume the GNU/Linux dynamic linker is in use.
7973   dynamic_linker='GNU/Linux ld.so'
7974
7975   # Find out which ABI we are using (multilib Linux x86_64 hack).
7976   libsuff=
7977   case "$host_cpu" in
7978   x86_64*|s390x*)
7979     echo '#line 7979 "configure"' > conftest.$ac_ext
7980     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7981   (eval $ac_compile) 2>&5
7982   ac_status=$?
7983   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984   (exit $ac_status); }; then
7985       case `/usr/bin/file conftest.$ac_objext` in
7986       *64-bit*)
7987         libsuff=64
7988         ;;
7989       esac
7990     fi
7991     rm -rf conftest*
7992     ;;
7993   *)
7994     ;;
7995   esac
7996   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
7997   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7998   ;;
7999
8000 netbsd*)
8001   version_type=sunos
8002   need_lib_prefix=no
8003   need_version=no
8004   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8005     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8006     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8007     dynamic_linker='NetBSD (a.out) ld.so'
8008   else
8009     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
8010     soname_spec='${libname}${release}${shared_ext}$major'
8011     dynamic_linker='NetBSD ld.elf_so'
8012   fi
8013   shlibpath_var=LD_LIBRARY_PATH
8014   shlibpath_overrides_runpath=yes
8015   hardcode_into_libs=yes
8016   ;;
8017
8018 newsos6)
8019   version_type=linux
8020   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8021   shlibpath_var=LD_LIBRARY_PATH
8022   shlibpath_overrides_runpath=yes
8023   ;;
8024
8025 nto-qnx)
8026   version_type=linux
8027   need_lib_prefix=no
8028   need_version=no
8029   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8030   soname_spec='${libname}${release}${shared_ext}$major'
8031   shlibpath_var=LD_LIBRARY_PATH
8032   shlibpath_overrides_runpath=yes
8033   ;;
8034
8035 openbsd*)
8036   version_type=sunos
8037   need_lib_prefix=no
8038   need_version=no
8039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8040   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8041   shlibpath_var=LD_LIBRARY_PATH
8042   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8043     case $host_os in
8044       openbsd2.[89] | openbsd2.[89].*)
8045         shlibpath_overrides_runpath=no
8046         ;;
8047       *)
8048         shlibpath_overrides_runpath=yes
8049         ;;
8050       esac
8051   else
8052     shlibpath_overrides_runpath=yes
8053   fi
8054   ;;
8055
8056 os2*)
8057   libname_spec='$name'
8058   shrext=".dll"
8059   need_lib_prefix=no
8060   library_names_spec='$libname${shared_ext} $libname.a'
8061   dynamic_linker='OS/2 ld.exe'
8062   shlibpath_var=LIBPATH
8063   ;;
8064
8065 osf3* | osf4* | osf5*)
8066   version_type=osf
8067   need_lib_prefix=no
8068   need_version=no
8069   soname_spec='${libname}${release}${shared_ext}$major'
8070   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8071   shlibpath_var=LD_LIBRARY_PATH
8072   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8073   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8074   ;;
8075
8076 sco3.2v5*)
8077   version_type=osf
8078   soname_spec='${libname}${release}${shared_ext}$major'
8079   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8080   shlibpath_var=LD_LIBRARY_PATH
8081   ;;
8082
8083 solaris*)
8084   version_type=linux
8085   need_lib_prefix=no
8086   need_version=no
8087   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8088   soname_spec='${libname}${release}${shared_ext}$major'
8089   shlibpath_var=LD_LIBRARY_PATH
8090   shlibpath_overrides_runpath=yes
8091   hardcode_into_libs=yes
8092   # ldd complains unless libraries are executable
8093   postinstall_cmds='chmod +x $lib'
8094   ;;
8095
8096 sunos4*)
8097   version_type=sunos
8098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8099   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8100   shlibpath_var=LD_LIBRARY_PATH
8101   shlibpath_overrides_runpath=yes
8102   if test "$with_gnu_ld" = yes; then
8103     need_lib_prefix=no
8104   fi
8105   need_version=yes
8106   ;;
8107
8108 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8109   version_type=linux
8110   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8111   soname_spec='${libname}${release}${shared_ext}$major'
8112   shlibpath_var=LD_LIBRARY_PATH
8113   case $host_vendor in
8114     sni)
8115       shlibpath_overrides_runpath=no
8116       need_lib_prefix=no
8117       export_dynamic_flag_spec='${wl}-Blargedynsym'
8118       runpath_var=LD_RUN_PATH
8119       ;;
8120     siemens)
8121       need_lib_prefix=no
8122       ;;
8123     motorola)
8124       need_lib_prefix=no
8125       need_version=no
8126       shlibpath_overrides_runpath=no
8127       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8128       ;;
8129   esac
8130   ;;
8131
8132 sysv4*MP*)
8133   if test -d /usr/nec ;then
8134     version_type=linux
8135     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8136     soname_spec='$libname${shared_ext}.$major'
8137     shlibpath_var=LD_LIBRARY_PATH
8138   fi
8139   ;;
8140
8141 uts4*)
8142   version_type=linux
8143   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8144   soname_spec='${libname}${release}${shared_ext}$major'
8145   shlibpath_var=LD_LIBRARY_PATH
8146   ;;
8147
8148 *)
8149   dynamic_linker=no
8150   ;;
8151 esac
8152 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8153 echo "${ECHO_T}$dynamic_linker" >&6
8154 test "$dynamic_linker" = no && can_build_shared=no
8155
8156 if test "x$enable_dlopen" != xyes; then
8157   enable_dlopen=unknown
8158   enable_dlopen_self=unknown
8159   enable_dlopen_self_static=unknown
8160 else
8161   lt_cv_dlopen=no
8162   lt_cv_dlopen_libs=
8163
8164   case $host_os in
8165   beos*)
8166     lt_cv_dlopen="load_add_on"
8167     lt_cv_dlopen_libs=
8168     lt_cv_dlopen_self=yes
8169     ;;
8170
8171   mingw* | pw32*)
8172     lt_cv_dlopen="LoadLibrary"
8173     lt_cv_dlopen_libs=
8174    ;;
8175
8176   cygwin*)
8177     lt_cv_dlopen="dlopen"
8178     lt_cv_dlopen_libs=
8179    ;;
8180
8181   darwin*)
8182   # if libdl is installed we need to link against it
8183     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8184 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8185 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8186   echo $ECHO_N "(cached) $ECHO_C" >&6
8187 else
8188   ac_check_lib_save_LIBS=$LIBS
8189 LIBS="-ldl  $LIBS"
8190 cat >conftest.$ac_ext <<_ACEOF
8191 #line $LINENO "configure"
8192 /* confdefs.h.  */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
8196 /* end confdefs.h.  */
8197
8198 /* Override any gcc2 internal prototype to avoid an error.  */
8199 #ifdef __cplusplus
8200 extern "C"
8201 #endif
8202 /* We use char because int might match the return type of a gcc2
8203    builtin and then its argument prototype would still apply.  */
8204 char dlopen ();
8205 int
8206 main ()
8207 {
8208 dlopen ();
8209   ;
8210   return 0;
8211 }
8212 _ACEOF
8213 rm -f conftest.$ac_objext conftest$ac_exeext
8214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8215   (eval $ac_link) 2>&5
8216   ac_status=$?
8217   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218   (exit $ac_status); } &&
8219          { ac_try='test -s conftest$ac_exeext'
8220   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8221   (eval $ac_try) 2>&5
8222   ac_status=$?
8223   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224   (exit $ac_status); }; }; then
8225   ac_cv_lib_dl_dlopen=yes
8226 else
8227   echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8229
8230 ac_cv_lib_dl_dlopen=no
8231 fi
8232 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8233 LIBS=$ac_check_lib_save_LIBS
8234 fi
8235 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8236 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8237 if test $ac_cv_lib_dl_dlopen = yes; then
8238   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8239 else
8240
8241     lt_cv_dlopen="dyld"
8242     lt_cv_dlopen_libs=
8243     lt_cv_dlopen_self=yes
8244
8245 fi
8246
8247    ;;
8248
8249   *)
8250     echo "$as_me:$LINENO: checking for shl_load" >&5
8251 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8252 if test "${ac_cv_func_shl_load+set}" = set; then
8253   echo $ECHO_N "(cached) $ECHO_C" >&6
8254 else
8255   cat >conftest.$ac_ext <<_ACEOF
8256 #line $LINENO "configure"
8257 /* confdefs.h.  */
8258 _ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h.  */
8262 /* System header to define __stub macros and hopefully few prototypes,
8263     which can conflict with char shl_load (); below.
8264     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8265     <limits.h> exists even on freestanding compilers.  */
8266 #ifdef __STDC__
8267 # include <limits.h>
8268 #else
8269 # include <assert.h>
8270 #endif
8271 /* Override any gcc2 internal prototype to avoid an error.  */
8272 #ifdef __cplusplus
8273 extern "C"
8274 {
8275 #endif
8276 /* We use char because int might match the return type of a gcc2
8277    builtin and then its argument prototype would still apply.  */
8278 char shl_load ();
8279 /* The GNU C library defines this for functions which it implements
8280     to always fail with ENOSYS.  Some functions are actually named
8281     something starting with __ and the normal name is an alias.  */
8282 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8283 choke me
8284 #else
8285 char (*f) () = shl_load;
8286 #endif
8287 #ifdef __cplusplus
8288 }
8289 #endif
8290
8291 int
8292 main ()
8293 {
8294 return f != shl_load;
8295   ;
8296   return 0;
8297 }
8298 _ACEOF
8299 rm -f conftest.$ac_objext conftest$ac_exeext
8300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8301   (eval $ac_link) 2>&5
8302   ac_status=$?
8303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8304   (exit $ac_status); } &&
8305          { ac_try='test -s conftest$ac_exeext'
8306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8307   (eval $ac_try) 2>&5
8308   ac_status=$?
8309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8310   (exit $ac_status); }; }; then
8311   ac_cv_func_shl_load=yes
8312 else
8313   echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8315
8316 ac_cv_func_shl_load=no
8317 fi
8318 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8319 fi
8320 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8321 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8322 if test $ac_cv_func_shl_load = yes; then
8323   lt_cv_dlopen="shl_load"
8324 else
8325   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8326 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8327 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8328   echo $ECHO_N "(cached) $ECHO_C" >&6
8329 else
8330   ac_check_lib_save_LIBS=$LIBS
8331 LIBS="-ldld  $LIBS"
8332 cat >conftest.$ac_ext <<_ACEOF
8333 #line $LINENO "configure"
8334 /* confdefs.h.  */
8335 _ACEOF
8336 cat confdefs.h >>conftest.$ac_ext
8337 cat >>conftest.$ac_ext <<_ACEOF
8338 /* end confdefs.h.  */
8339
8340 /* Override any gcc2 internal prototype to avoid an error.  */
8341 #ifdef __cplusplus
8342 extern "C"
8343 #endif
8344 /* We use char because int might match the return type of a gcc2
8345    builtin and then its argument prototype would still apply.  */
8346 char shl_load ();
8347 int
8348 main ()
8349 {
8350 shl_load ();
8351   ;
8352   return 0;
8353 }
8354 _ACEOF
8355 rm -f conftest.$ac_objext conftest$ac_exeext
8356 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8357   (eval $ac_link) 2>&5
8358   ac_status=$?
8359   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360   (exit $ac_status); } &&
8361          { ac_try='test -s conftest$ac_exeext'
8362   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363   (eval $ac_try) 2>&5
8364   ac_status=$?
8365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366   (exit $ac_status); }; }; then
8367   ac_cv_lib_dld_shl_load=yes
8368 else
8369   echo "$as_me: failed program was:" >&5
8370 sed 's/^/| /' conftest.$ac_ext >&5
8371
8372 ac_cv_lib_dld_shl_load=no
8373 fi
8374 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8375 LIBS=$ac_check_lib_save_LIBS
8376 fi
8377 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8378 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8379 if test $ac_cv_lib_dld_shl_load = yes; then
8380   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8381 else
8382   echo "$as_me:$LINENO: checking for dlopen" >&5
8383 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8384 if test "${ac_cv_func_dlopen+set}" = set; then
8385   echo $ECHO_N "(cached) $ECHO_C" >&6
8386 else
8387   cat >conftest.$ac_ext <<_ACEOF
8388 #line $LINENO "configure"
8389 /* confdefs.h.  */
8390 _ACEOF
8391 cat confdefs.h >>conftest.$ac_ext
8392 cat >>conftest.$ac_ext <<_ACEOF
8393 /* end confdefs.h.  */
8394 /* System header to define __stub macros and hopefully few prototypes,
8395     which can conflict with char dlopen (); below.
8396     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8397     <limits.h> exists even on freestanding compilers.  */
8398 #ifdef __STDC__
8399 # include <limits.h>
8400 #else
8401 # include <assert.h>
8402 #endif
8403 /* Override any gcc2 internal prototype to avoid an error.  */
8404 #ifdef __cplusplus
8405 extern "C"
8406 {
8407 #endif
8408 /* We use char because int might match the return type of a gcc2
8409    builtin and then its argument prototype would still apply.  */
8410 char dlopen ();
8411 /* The GNU C library defines this for functions which it implements
8412     to always fail with ENOSYS.  Some functions are actually named
8413     something starting with __ and the normal name is an alias.  */
8414 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8415 choke me
8416 #else
8417 char (*f) () = dlopen;
8418 #endif
8419 #ifdef __cplusplus
8420 }
8421 #endif
8422
8423 int
8424 main ()
8425 {
8426 return f != dlopen;
8427   ;
8428   return 0;
8429 }
8430 _ACEOF
8431 rm -f conftest.$ac_objext conftest$ac_exeext
8432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8433   (eval $ac_link) 2>&5
8434   ac_status=$?
8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8436   (exit $ac_status); } &&
8437          { ac_try='test -s conftest$ac_exeext'
8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8439   (eval $ac_try) 2>&5
8440   ac_status=$?
8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442   (exit $ac_status); }; }; then
8443   ac_cv_func_dlopen=yes
8444 else
8445   echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448 ac_cv_func_dlopen=no
8449 fi
8450 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8451 fi
8452 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8453 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8454 if test $ac_cv_func_dlopen = yes; then
8455   lt_cv_dlopen="dlopen"
8456 else
8457   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8458 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8459 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8460   echo $ECHO_N "(cached) $ECHO_C" >&6
8461 else
8462   ac_check_lib_save_LIBS=$LIBS
8463 LIBS="-ldl  $LIBS"
8464 cat >conftest.$ac_ext <<_ACEOF
8465 #line $LINENO "configure"
8466 /* confdefs.h.  */
8467 _ACEOF
8468 cat confdefs.h >>conftest.$ac_ext
8469 cat >>conftest.$ac_ext <<_ACEOF
8470 /* end confdefs.h.  */
8471
8472 /* Override any gcc2 internal prototype to avoid an error.  */
8473 #ifdef __cplusplus
8474 extern "C"
8475 #endif
8476 /* We use char because int might match the return type of a gcc2
8477    builtin and then its argument prototype would still apply.  */
8478 char dlopen ();
8479 int
8480 main ()
8481 {
8482 dlopen ();
8483   ;
8484   return 0;
8485 }
8486 _ACEOF
8487 rm -f conftest.$ac_objext conftest$ac_exeext
8488 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8489   (eval $ac_link) 2>&5
8490   ac_status=$?
8491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492   (exit $ac_status); } &&
8493          { ac_try='test -s conftest$ac_exeext'
8494   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8495   (eval $ac_try) 2>&5
8496   ac_status=$?
8497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8498   (exit $ac_status); }; }; then
8499   ac_cv_lib_dl_dlopen=yes
8500 else
8501   echo "$as_me: failed program was:" >&5
8502 sed 's/^/| /' conftest.$ac_ext >&5
8503
8504 ac_cv_lib_dl_dlopen=no
8505 fi
8506 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8507 LIBS=$ac_check_lib_save_LIBS
8508 fi
8509 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8510 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8511 if test $ac_cv_lib_dl_dlopen = yes; then
8512   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8513 else
8514   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8515 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8516 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8517   echo $ECHO_N "(cached) $ECHO_C" >&6
8518 else
8519   ac_check_lib_save_LIBS=$LIBS
8520 LIBS="-lsvld  $LIBS"
8521 cat >conftest.$ac_ext <<_ACEOF
8522 #line $LINENO "configure"
8523 /* confdefs.h.  */
8524 _ACEOF
8525 cat confdefs.h >>conftest.$ac_ext
8526 cat >>conftest.$ac_ext <<_ACEOF
8527 /* end confdefs.h.  */
8528
8529 /* Override any gcc2 internal prototype to avoid an error.  */
8530 #ifdef __cplusplus
8531 extern "C"
8532 #endif
8533 /* We use char because int might match the return type of a gcc2
8534    builtin and then its argument prototype would still apply.  */
8535 char dlopen ();
8536 int
8537 main ()
8538 {
8539 dlopen ();
8540   ;
8541   return 0;
8542 }
8543 _ACEOF
8544 rm -f conftest.$ac_objext conftest$ac_exeext
8545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8546   (eval $ac_link) 2>&5
8547   ac_status=$?
8548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8549   (exit $ac_status); } &&
8550          { ac_try='test -s conftest$ac_exeext'
8551   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8552   (eval $ac_try) 2>&5
8553   ac_status=$?
8554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8555   (exit $ac_status); }; }; then
8556   ac_cv_lib_svld_dlopen=yes
8557 else
8558   echo "$as_me: failed program was:" >&5
8559 sed 's/^/| /' conftest.$ac_ext >&5
8560
8561 ac_cv_lib_svld_dlopen=no
8562 fi
8563 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8564 LIBS=$ac_check_lib_save_LIBS
8565 fi
8566 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8567 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8568 if test $ac_cv_lib_svld_dlopen = yes; then
8569   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8570 else
8571   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8572 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8573 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8574   echo $ECHO_N "(cached) $ECHO_C" >&6
8575 else
8576   ac_check_lib_save_LIBS=$LIBS
8577 LIBS="-ldld  $LIBS"
8578 cat >conftest.$ac_ext <<_ACEOF
8579 #line $LINENO "configure"
8580 /* confdefs.h.  */
8581 _ACEOF
8582 cat confdefs.h >>conftest.$ac_ext
8583 cat >>conftest.$ac_ext <<_ACEOF
8584 /* end confdefs.h.  */
8585
8586 /* Override any gcc2 internal prototype to avoid an error.  */
8587 #ifdef __cplusplus
8588 extern "C"
8589 #endif
8590 /* We use char because int might match the return type of a gcc2
8591    builtin and then its argument prototype would still apply.  */
8592 char dld_link ();
8593 int
8594 main ()
8595 {
8596 dld_link ();
8597   ;
8598   return 0;
8599 }
8600 _ACEOF
8601 rm -f conftest.$ac_objext conftest$ac_exeext
8602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8603   (eval $ac_link) 2>&5
8604   ac_status=$?
8605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606   (exit $ac_status); } &&
8607          { ac_try='test -s conftest$ac_exeext'
8608   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8609   (eval $ac_try) 2>&5
8610   ac_status=$?
8611   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8612   (exit $ac_status); }; }; then
8613   ac_cv_lib_dld_dld_link=yes
8614 else
8615   echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8617
8618 ac_cv_lib_dld_dld_link=no
8619 fi
8620 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
8621 LIBS=$ac_check_lib_save_LIBS
8622 fi
8623 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8624 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8625 if test $ac_cv_lib_dld_dld_link = yes; then
8626   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8627 fi
8628
8629
8630 fi
8631
8632
8633 fi
8634
8635
8636 fi
8637
8638
8639 fi
8640
8641
8642 fi
8643
8644     ;;
8645   esac
8646
8647   if test "x$lt_cv_dlopen" != xno; then
8648     enable_dlopen=yes
8649   else
8650     enable_dlopen=no
8651   fi
8652
8653   case $lt_cv_dlopen in
8654   dlopen)
8655     save_CPPFLAGS="$CPPFLAGS"
8656     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8657
8658     save_LDFLAGS="$LDFLAGS"
8659     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8660
8661     save_LIBS="$LIBS"
8662     LIBS="$lt_cv_dlopen_libs $LIBS"
8663
8664     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8665 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8666 if test "${lt_cv_dlopen_self+set}" = set; then
8667   echo $ECHO_N "(cached) $ECHO_C" >&6
8668 else
8669           if test "$cross_compiling" = yes; then :
8670   lt_cv_dlopen_self=cross
8671 else
8672   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8673   lt_status=$lt_dlunknown
8674   cat > conftest.$ac_ext <<EOF
8675 #line 8675 "configure"
8676 #include "confdefs.h"
8677
8678 #if HAVE_DLFCN_H
8679 #include <dlfcn.h>
8680 #endif
8681
8682 #include <stdio.h>
8683
8684 #ifdef RTLD_GLOBAL
8685 #  define LT_DLGLOBAL           RTLD_GLOBAL
8686 #else
8687 #  ifdef DL_GLOBAL
8688 #    define LT_DLGLOBAL         DL_GLOBAL
8689 #  else
8690 #    define LT_DLGLOBAL         0
8691 #  endif
8692 #endif
8693
8694 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8695    find out it does not work in some platform. */
8696 #ifndef LT_DLLAZY_OR_NOW
8697 #  ifdef RTLD_LAZY
8698 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8699 #  else
8700 #    ifdef DL_LAZY
8701 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8702 #    else
8703 #      ifdef RTLD_NOW
8704 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8705 #      else
8706 #        ifdef DL_NOW
8707 #          define LT_DLLAZY_OR_NOW      DL_NOW
8708 #        else
8709 #          define LT_DLLAZY_OR_NOW      0
8710 #        endif
8711 #      endif
8712 #    endif
8713 #  endif
8714 #endif
8715
8716 #ifdef __cplusplus
8717 extern "C" void exit (int);
8718 #endif
8719
8720 void fnord() { int i=42;}
8721 int main ()
8722 {
8723   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8724   int status = $lt_dlunknown;
8725
8726   if (self)
8727     {
8728       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8729       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8730       /* dlclose (self); */
8731     }
8732
8733     exit (status);
8734 }
8735 EOF
8736   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8737   (eval $ac_link) 2>&5
8738   ac_status=$?
8739   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8740   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8741     (./conftest; exit; ) 2>/dev/null
8742     lt_status=$?
8743     case x$lt_status in
8744       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8745       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8746       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8747     esac
8748   else :
8749     # compilation failed
8750     lt_cv_dlopen_self=no
8751   fi
8752 fi
8753 rm -fr conftest*
8754
8755
8756 fi
8757 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8758 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8759
8760     if test "x$lt_cv_dlopen_self" = xyes; then
8761       LDFLAGS="$LDFLAGS $link_static_flag"
8762       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8763 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8764 if test "${lt_cv_dlopen_self_static+set}" = set; then
8765   echo $ECHO_N "(cached) $ECHO_C" >&6
8766 else
8767           if test "$cross_compiling" = yes; then :
8768   lt_cv_dlopen_self_static=cross
8769 else
8770   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8771   lt_status=$lt_dlunknown
8772   cat > conftest.$ac_ext <<EOF
8773 #line 8773 "configure"
8774 #include "confdefs.h"
8775
8776 #if HAVE_DLFCN_H
8777 #include <dlfcn.h>
8778 #endif
8779
8780 #include <stdio.h>
8781
8782 #ifdef RTLD_GLOBAL
8783 #  define LT_DLGLOBAL           RTLD_GLOBAL
8784 #else
8785 #  ifdef DL_GLOBAL
8786 #    define LT_DLGLOBAL         DL_GLOBAL
8787 #  else
8788 #    define LT_DLGLOBAL         0
8789 #  endif
8790 #endif
8791
8792 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8793    find out it does not work in some platform. */
8794 #ifndef LT_DLLAZY_OR_NOW
8795 #  ifdef RTLD_LAZY
8796 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8797 #  else
8798 #    ifdef DL_LAZY
8799 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8800 #    else
8801 #      ifdef RTLD_NOW
8802 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8803 #      else
8804 #        ifdef DL_NOW
8805 #          define LT_DLLAZY_OR_NOW      DL_NOW
8806 #        else
8807 #          define LT_DLLAZY_OR_NOW      0
8808 #        endif
8809 #      endif
8810 #    endif
8811 #  endif
8812 #endif
8813
8814 #ifdef __cplusplus
8815 extern "C" void exit (int);
8816 #endif
8817
8818 void fnord() { int i=42;}
8819 int main ()
8820 {
8821   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8822   int status = $lt_dlunknown;
8823
8824   if (self)
8825     {
8826       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8827       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8828       /* dlclose (self); */
8829     }
8830
8831     exit (status);
8832 }
8833 EOF
8834   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8835   (eval $ac_link) 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8839     (./conftest; exit; ) 2>/dev/null
8840     lt_status=$?
8841     case x$lt_status in
8842       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
8843       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
8844       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
8845     esac
8846   else :
8847     # compilation failed
8848     lt_cv_dlopen_self_static=no
8849   fi
8850 fi
8851 rm -fr conftest*
8852
8853
8854 fi
8855 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
8856 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
8857     fi
8858
8859     CPPFLAGS="$save_CPPFLAGS"
8860     LDFLAGS="$save_LDFLAGS"
8861     LIBS="$save_LIBS"
8862     ;;
8863   esac
8864
8865   case $lt_cv_dlopen_self in
8866   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
8867   *) enable_dlopen_self=unknown ;;
8868   esac
8869
8870   case $lt_cv_dlopen_self_static in
8871   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
8872   *) enable_dlopen_self_static=unknown ;;
8873   esac
8874 fi
8875
8876
8877 # Report which librarie types wil actually be built
8878 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
8879 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
8880 echo "$as_me:$LINENO: result: $can_build_shared" >&5
8881 echo "${ECHO_T}$can_build_shared" >&6
8882
8883 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
8884 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
8885 test "$can_build_shared" = "no" && enable_shared=no
8886
8887 # On AIX, shared libraries and static libraries use the same namespace, and
8888 # are all built from PIC.
8889 case "$host_os" in
8890 aix3*)
8891   test "$enable_shared" = yes && enable_static=no
8892   if test -n "$RANLIB"; then
8893     archive_cmds="$archive_cmds~\$RANLIB \$lib"
8894     postinstall_cmds='$RANLIB $lib'
8895   fi
8896   ;;
8897
8898 aix4*)
8899   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
8900     test "$enable_shared" = yes && enable_static=no
8901   fi
8902   ;;
8903   darwin* | rhapsody*)
8904   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
8905     archive_cmds_need_lc=no
8906     case "$host_os" in
8907     rhapsody* | darwin1.[012])
8908       allow_undefined_flag='-undefined suppress'
8909       ;;
8910     *) # Darwin 1.3 on
8911       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag='-flat_namespace -undefined suppress'
8912       ;;
8913     esac
8914     # FIXME: Relying on posixy $() will cause problems for
8915     #        cross-compilation, but unfortunately the echo tests do not
8916     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
8917     #          `"' quotes if we put them in here... so don't!
8918                 output_verbose_link_cmd='echo'
8919     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
8920     module_cmds='$CC -bundle $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
8921     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
8922                   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}'
8923                   module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8924     hardcode_direct=no
8925     hardcode_automatic=yes
8926     hardcode_shlibpath_var=unsupported
8927     whole_archive_flag_spec='-all_load $convenience'
8928     link_all_deplibs=yes
8929     fi
8930     ;;
8931 esac
8932 echo "$as_me:$LINENO: result: $enable_shared" >&5
8933 echo "${ECHO_T}$enable_shared" >&6
8934
8935 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
8936 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
8937 # Make sure either enable_shared or enable_static is yes.
8938 test "$enable_shared" = yes || enable_static=yes
8939 echo "$as_me:$LINENO: result: $enable_static" >&5
8940 echo "${ECHO_T}$enable_static" >&6
8941
8942 # The else clause should only fire when bootstrapping the
8943 # libtool distribution, otherwise you forgot to ship ltmain.sh
8944 # with your package, and you will get complaints that there are
8945 # no rules to generate ltmain.sh.
8946 if test -f "$ltmain"; then
8947   # See if we are running on zsh, and set the options which allow our commands through
8948   # without removal of \ escapes.
8949   if test -n "${ZSH_VERSION+set}" ; then
8950     setopt NO_GLOB_SUBST
8951   fi
8952   # Now quote all the things that may contain metacharacters while being
8953   # careful not to overquote the AC_SUBSTed values.  We take copies of the
8954   # variables and quote the copies for generation of the libtool script.
8955   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
8956     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
8957     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
8958     deplibs_check_method reload_flag reload_cmds need_locks \
8959     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
8960     lt_cv_sys_global_symbol_to_c_name_address \
8961     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
8962     old_postinstall_cmds old_postuninstall_cmds \
8963     compiler \
8964     CC \
8965     LD \
8966     lt_prog_compiler_wl \
8967     lt_prog_compiler_pic \
8968     lt_prog_compiler_static \
8969     lt_prog_compiler_no_builtin_flag \
8970     export_dynamic_flag_spec \
8971     thread_safe_flag_spec \
8972     whole_archive_flag_spec \
8973     enable_shared_with_static_runtimes \
8974     old_archive_cmds \
8975     old_archive_from_new_cmds \
8976     predep_objects \
8977     postdep_objects \
8978     predeps \
8979     postdeps \
8980     compiler_lib_search_path \
8981     archive_cmds \
8982     archive_expsym_cmds \
8983     postinstall_cmds \
8984     postuninstall_cmds \
8985     old_archive_from_expsyms_cmds \
8986     allow_undefined_flag \
8987     no_undefined_flag \
8988     export_symbols_cmds \
8989     hardcode_libdir_flag_spec \
8990     hardcode_libdir_flag_spec_ld \
8991     hardcode_libdir_separator \
8992     hardcode_automatic \
8993     module_cmds \
8994     module_expsym_cmds \
8995     lt_cv_prog_compiler_c_o \
8996     exclude_expsyms \
8997     include_expsyms; do
8998
8999     case $var in
9000     old_archive_cmds | \
9001     old_archive_from_new_cmds | \
9002     archive_cmds | \
9003     archive_expsym_cmds | \
9004     module_cmds | \
9005     module_expsym_cmds | \
9006     old_archive_from_expsyms_cmds | \
9007     export_symbols_cmds | \
9008     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9009     postinstall_cmds | postuninstall_cmds | \
9010     old_postinstall_cmds | old_postuninstall_cmds | \
9011     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9012       # Double-quote double-evaled strings.
9013       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9014       ;;
9015     *)
9016       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9017       ;;
9018     esac
9019   done
9020
9021   case $lt_echo in
9022   *'\$0 --fallback-echo"')
9023     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9024     ;;
9025   esac
9026
9027 cfgfile="${ofile}T"
9028   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9029   $rm -f "$cfgfile"
9030   { echo "$as_me:$LINENO: creating $ofile" >&5
9031 echo "$as_me: creating $ofile" >&6;}
9032
9033   cat <<__EOF__ >> "$cfgfile"
9034 #! $SHELL
9035
9036 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9037 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9038 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9039 #
9040 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9041 # Free Software Foundation, Inc.
9042 #
9043 # This file is part of GNU Libtool:
9044 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9045 #
9046 # This program is free software; you can redistribute it and/or modify
9047 # it under the terms of the GNU General Public License as published by
9048 # the Free Software Foundation; either version 2 of the License, or
9049 # (at your option) any later version.
9050 #
9051 # This program is distributed in the hope that it will be useful, but
9052 # WITHOUT ANY WARRANTY; without even the implied warranty of
9053 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9054 # General Public License for more details.
9055 #
9056 # You should have received a copy of the GNU General Public License
9057 # along with this program; if not, write to the Free Software
9058 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9059 #
9060 # As a special exception to the GNU General Public License, if you
9061 # distribute this file as part of a program that contains a
9062 # configuration script generated by Autoconf, you may include it under
9063 # the same distribution terms that you use for the rest of that program.
9064
9065 # A sed program that does not truncate output.
9066 SED=$lt_SED
9067
9068 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9069 Xsed="$SED -e s/^X//"
9070
9071 # The HP-UX ksh and POSIX shell print the target directory to stdout
9072 # if CDPATH is set.
9073 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9074
9075 # The names of the tagged configurations supported by this script.
9076 available_tags=
9077
9078 # ### BEGIN LIBTOOL CONFIG
9079
9080 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9081
9082 # Shell to use when invoking shell scripts.
9083 SHELL=$lt_SHELL
9084
9085 # Whether or not to build shared libraries.
9086 build_libtool_libs=$enable_shared
9087
9088 # Whether or not to build static libraries.
9089 build_old_libs=$enable_static
9090
9091 # Whether or not to add -lc for building shared libraries.
9092 build_libtool_need_lc=$archive_cmds_need_lc
9093
9094 # Whether or not to disallow shared libs when runtime libs are static
9095 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9096
9097 # Whether or not to optimize for fast installation.
9098 fast_install=$enable_fast_install
9099
9100 # The host system.
9101 host_alias=$host_alias
9102 host=$host
9103
9104 # An echo program that does not interpret backslashes.
9105 echo=$lt_echo
9106
9107 # The archiver.
9108 AR=$lt_AR
9109 AR_FLAGS=$lt_AR_FLAGS
9110
9111 # A C compiler.
9112 LTCC=$lt_LTCC
9113
9114 # A language-specific compiler.
9115 CC=$lt_compiler
9116
9117 # Is the compiler the GNU C compiler?
9118 with_gcc=$GCC
9119
9120 # An ERE matcher.
9121 EGREP=$lt_EGREP
9122
9123 # The linker used to build libraries.
9124 LD=$lt_LD
9125
9126 # Whether we need hard or soft links.
9127 LN_S=$lt_LN_S
9128
9129 # A BSD-compatible nm program.
9130 NM=$lt_NM
9131
9132 # A symbol stripping program
9133 STRIP=$STRIP
9134
9135 # Used to examine libraries when file_magic_cmd begins "file"
9136 MAGIC_CMD=$MAGIC_CMD
9137
9138 # Used on cygwin: DLL creation program.
9139 DLLTOOL="$DLLTOOL"
9140
9141 # Used on cygwin: object dumper.
9142 OBJDUMP="$OBJDUMP"
9143
9144 # Used on cygwin: assembler.
9145 AS="$AS"
9146
9147 # The name of the directory that contains temporary libtool files.
9148 objdir=$objdir
9149
9150 # How to create reloadable object files.
9151 reload_flag=$lt_reload_flag
9152 reload_cmds=$lt_reload_cmds
9153
9154 # How to pass a linker flag through the compiler.
9155 wl=$lt_lt_prog_compiler_wl
9156
9157 # Object file suffix (normally "o").
9158 objext="$ac_objext"
9159
9160 # Old archive suffix (normally "a").
9161 libext="$libext"
9162
9163 # Shared library suffix (normally ".so").
9164 shrext='$shrext'
9165
9166 # Executable file suffix (normally "").
9167 exeext="$exeext"
9168
9169 # Additional compiler flags for building library objects.
9170 pic_flag=$lt_lt_prog_compiler_pic
9171 pic_mode=$pic_mode
9172
9173 # What is the maximum length of a command?
9174 max_cmd_len=$lt_cv_sys_max_cmd_len
9175
9176 # Does compiler simultaneously support -c and -o options?
9177 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9178
9179 # Must we lock files when doing compilation ?
9180 need_locks=$lt_need_locks
9181
9182 # Do we need the lib prefix for modules?
9183 need_lib_prefix=$need_lib_prefix
9184
9185 # Do we need a version for libraries?
9186 need_version=$need_version
9187
9188 # Whether dlopen is supported.
9189 dlopen_support=$enable_dlopen
9190
9191 # Whether dlopen of programs is supported.
9192 dlopen_self=$enable_dlopen_self
9193
9194 # Whether dlopen of statically linked programs is supported.
9195 dlopen_self_static=$enable_dlopen_self_static
9196
9197 # Compiler flag to prevent dynamic linking.
9198 link_static_flag=$lt_lt_prog_compiler_static
9199
9200 # Compiler flag to turn off builtin functions.
9201 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9202
9203 # Compiler flag to allow reflexive dlopens.
9204 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9205
9206 # Compiler flag to generate shared objects directly from archives.
9207 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9208
9209 # Compiler flag to generate thread-safe objects.
9210 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9211
9212 # Library versioning type.
9213 version_type=$version_type
9214
9215 # Format of library name prefix.
9216 libname_spec=$lt_libname_spec
9217
9218 # List of archive names.  First name is the real one, the rest are links.
9219 # The last name is the one that the linker finds with -lNAME.
9220 library_names_spec=$lt_library_names_spec
9221
9222 # The coded name of the library, if different from the real name.
9223 soname_spec=$lt_soname_spec
9224
9225 # Commands used to build and install an old-style archive.
9226 RANLIB=$lt_RANLIB
9227 old_archive_cmds=$lt_old_archive_cmds
9228 old_postinstall_cmds=$lt_old_postinstall_cmds
9229 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9230
9231 # Create an old-style archive from a shared archive.
9232 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9233
9234 # Create a temporary old-style archive to link instead of a shared archive.
9235 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9236
9237 # Commands used to build and install a shared archive.
9238 archive_cmds=$lt_archive_cmds
9239 archive_expsym_cmds=$lt_archive_expsym_cmds
9240 postinstall_cmds=$lt_postinstall_cmds
9241 postuninstall_cmds=$lt_postuninstall_cmds
9242
9243 # Commands used to build a loadable module (assumed same as above if empty)
9244 module_cmds=$lt_module_cmds
9245 module_expsym_cmds=$lt_module_expsym_cmds
9246
9247 # Commands to strip libraries.
9248 old_striplib=$lt_old_striplib
9249 striplib=$lt_striplib
9250
9251 # Dependencies to place before the objects being linked to create a
9252 # shared library.
9253 predep_objects=$lt_predep_objects
9254
9255 # Dependencies to place after the objects being linked to create a
9256 # shared library.
9257 postdep_objects=$lt_postdep_objects
9258
9259 # Dependencies to place before the objects being linked to create a
9260 # shared library.
9261 predeps=$lt_predeps
9262
9263 # Dependencies to place after the objects being linked to create a
9264 # shared library.
9265 postdeps=$lt_postdeps
9266
9267 # The library search path used internally by the compiler when linking
9268 # a shared library.
9269 compiler_lib_search_path=$lt_compiler_lib_search_path
9270
9271 # Method to check whether dependent libraries are shared objects.
9272 deplibs_check_method=$lt_deplibs_check_method
9273
9274 # Command to use when deplibs_check_method == file_magic.
9275 file_magic_cmd=$lt_file_magic_cmd
9276
9277 # Flag that allows shared libraries with undefined symbols to be built.
9278 allow_undefined_flag=$lt_allow_undefined_flag
9279
9280 # Flag that forces no undefined symbols.
9281 no_undefined_flag=$lt_no_undefined_flag
9282
9283 # Commands used to finish a libtool library installation in a directory.
9284 finish_cmds=$lt_finish_cmds
9285
9286 # Same as above, but a single script fragment to be evaled but not shown.
9287 finish_eval=$lt_finish_eval
9288
9289 # Take the output of nm and produce a listing of raw symbols and C names.
9290 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9291
9292 # Transform the output of nm in a proper C declaration
9293 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9294
9295 # Transform the output of nm in a C name address pair
9296 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9297
9298 # This is the shared library runtime path variable.
9299 runpath_var=$runpath_var
9300
9301 # This is the shared library path variable.
9302 shlibpath_var=$shlibpath_var
9303
9304 # Is shlibpath searched before the hard-coded library search path?
9305 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9306
9307 # How to hardcode a shared library path into an executable.
9308 hardcode_action=$hardcode_action
9309
9310 # Whether we should hardcode library paths into libraries.
9311 hardcode_into_libs=$hardcode_into_libs
9312
9313 # Flag to hardcode \$libdir into a binary during linking.
9314 # This must work even if \$libdir does not exist.
9315 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9316
9317 # If ld is used when linking, flag to hardcode \$libdir into
9318 # a binary during linking. This must work even if \$libdir does
9319 # not exist.
9320 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9321
9322 # Whether we need a single -rpath flag with a separated argument.
9323 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9324
9325 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9326 # resulting binary.
9327 hardcode_direct=$hardcode_direct
9328
9329 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9330 # resulting binary.
9331 hardcode_minus_L=$hardcode_minus_L
9332
9333 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9334 # the resulting binary.
9335 hardcode_shlibpath_var=$hardcode_shlibpath_var
9336
9337 # Set to yes if building a shared library automatically hardcodes DIR into the library
9338 # and all subsequent libraries and executables linked against it.
9339 hardcode_automatic=$hardcode_automatic
9340
9341 # Variables whose values should be saved in libtool wrapper scripts and
9342 # restored at relink time.
9343 variables_saved_for_relink="$variables_saved_for_relink"
9344
9345 # Whether libtool must link a program against all its dependency libraries.
9346 link_all_deplibs=$link_all_deplibs
9347
9348 # Compile-time system search path for libraries
9349 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9350
9351 # Run-time system search path for libraries
9352 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9353
9354 # Fix the shell variable \$srcfile for the compiler.
9355 fix_srcfile_path="$fix_srcfile_path"
9356
9357 # Set to yes if exported symbols are required.
9358 always_export_symbols=$always_export_symbols
9359
9360 # The commands to list exported symbols.
9361 export_symbols_cmds=$lt_export_symbols_cmds
9362
9363 # The commands to extract the exported symbol list from a shared archive.
9364 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9365
9366 # Symbols that should not be listed in the preloaded symbols.
9367 exclude_expsyms=$lt_exclude_expsyms
9368
9369 # Symbols that must always be exported.
9370 include_expsyms=$lt_include_expsyms
9371
9372 # ### END LIBTOOL CONFIG
9373
9374 __EOF__
9375
9376
9377   case $host_os in
9378   aix3*)
9379     cat <<\EOF >> "$cfgfile"
9380
9381 # AIX sometimes has problems with the GCC collect2 program.  For some
9382 # reason, if we set the COLLECT_NAMES environment variable, the problems
9383 # vanish in a puff of smoke.
9384 if test "X${COLLECT_NAMES+set}" != Xset; then
9385   COLLECT_NAMES=
9386   export COLLECT_NAMES
9387 fi
9388 EOF
9389     ;;
9390   esac
9391
9392   # We use sed instead of cat because bash on DJGPP gets confused if
9393   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9394   # text mode, it properly converts lines to CR/LF.  This bash problem
9395   # is reportedly fixed, but why not run on old versions too?
9396   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9397
9398   mv -f "$cfgfile" "$ofile" || \
9399     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9400   chmod +x "$ofile"
9401
9402 else
9403   # If there is no Makefile yet, we rely on a make rule to execute
9404   # `config.status --recheck' to rerun these tests and create the
9405   # libtool script then.
9406   test -f Makefile && make "$ltmain"
9407 fi
9408
9409
9410 ac_ext=c
9411 ac_cpp='$CPP $CPPFLAGS'
9412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9415
9416 CC="$lt_save_CC"
9417
9418
9419 # Check whether --with-tags or --without-tags was given.
9420 if test "${with_tags+set}" = set; then
9421   withval="$with_tags"
9422   tagnames="$withval"
9423 fi;
9424
9425 if test -f "$ltmain" && test -n "$tagnames"; then
9426   if test ! -f "${ofile}"; then
9427     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9428 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9429   fi
9430
9431   if test -z "$LTCC"; then
9432     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9433     if test -z "$LTCC"; then
9434       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9435 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9436     else
9437       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9438 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9439     fi
9440   fi
9441
9442   # Extract list of available tagged configurations in $ofile.
9443   # Note that this assumes the entire list is on one line.
9444   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9445
9446   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9447   for tagname in $tagnames; do
9448     IFS="$lt_save_ifs"
9449     # Check whether tagname contains only valid characters
9450     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9451     "") ;;
9452     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9453 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9454    { (exit 1); exit 1; }; }
9455         ;;
9456     esac
9457
9458     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9459     then
9460       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9461 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9462    { (exit 1); exit 1; }; }
9463     fi
9464
9465     # Update the list of available tags.
9466     if test -n "$tagname"; then
9467       echo appending configuration tag \"$tagname\" to $ofile
9468
9469       case $tagname in
9470       CXX)
9471         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9472           ac_ext=cc
9473 ac_cpp='$CXXCPP $CPPFLAGS'
9474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9477
9478
9479
9480
9481 archive_cmds_need_lc_CXX=no
9482 allow_undefined_flag_CXX=
9483 always_export_symbols_CXX=no
9484 archive_expsym_cmds_CXX=
9485 export_dynamic_flag_spec_CXX=
9486 hardcode_direct_CXX=no
9487 hardcode_libdir_flag_spec_CXX=
9488 hardcode_libdir_flag_spec_ld_CXX=
9489 hardcode_libdir_separator_CXX=
9490 hardcode_minus_L_CXX=no
9491 hardcode_automatic_CXX=no
9492 module_cmds_CXX=
9493 module_expsym_cmds_CXX=
9494 link_all_deplibs_CXX=unknown
9495 old_archive_cmds_CXX=$old_archive_cmds
9496 no_undefined_flag_CXX=
9497 whole_archive_flag_spec_CXX=
9498 enable_shared_with_static_runtimes_CXX=no
9499
9500 # Dependencies to place before and after the object being linked:
9501 predep_objects_CXX=
9502 postdep_objects_CXX=
9503 predeps_CXX=
9504 postdeps_CXX=
9505 compiler_lib_search_path_CXX=
9506
9507 # Source file extension for C++ test sources.
9508 ac_ext=cc
9509
9510 # Object file extension for compiled C++ test sources.
9511 objext=o
9512 objext_CXX=$objext
9513
9514 # Code to be used in simple compile tests
9515 lt_simple_compile_test_code="int some_variable = 0;\n"
9516
9517 # Code to be used in simple link tests
9518 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9519
9520 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9521
9522 # If no C compiler was specified, use CC.
9523 LTCC=${LTCC-"$CC"}
9524
9525 # Allow CC to be a program name with arguments.
9526 compiler=$CC
9527
9528
9529 # Allow CC to be a program name with arguments.
9530 lt_save_CC=$CC
9531 lt_save_LD=$LD
9532 lt_save_GCC=$GCC
9533 GCC=$GXX
9534 lt_save_with_gnu_ld=$with_gnu_ld
9535 lt_save_path_LD=$lt_cv_path_LD
9536 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9537   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9538 else
9539   unset lt_cv_prog_gnu_ld
9540 fi
9541 if test -n "${lt_cv_path_LDCXX+set}"; then
9542   lt_cv_path_LD=$lt_cv_path_LDCXX
9543 else
9544   unset lt_cv_path_LD
9545 fi
9546 test -z "${LDCXX+set}" || LD=$LDCXX
9547 CC=${CXX-"c++"}
9548 compiler=$CC
9549 compiler_CXX=$CC
9550 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9551
9552 # We don't want -fno-exception wen compiling C++ code, so set the
9553 # no_builtin_flag separately
9554 if test "$GXX" = yes; then
9555   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9556 else
9557   lt_prog_compiler_no_builtin_flag_CXX=
9558 fi
9559
9560 if test "$GXX" = yes; then
9561   # Set up default GNU C++ configuration
9562
9563
9564 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9565 if test "${with_gnu_ld+set}" = set; then
9566   withval="$with_gnu_ld"
9567   test "$withval" = no || with_gnu_ld=yes
9568 else
9569   with_gnu_ld=no
9570 fi;
9571 ac_prog=ld
9572 if test "$GCC" = yes; then
9573   # Check if gcc -print-prog-name=ld gives a path.
9574   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9575 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9576   case $host in
9577   *-*-mingw*)
9578     # gcc leaves a trailing carriage return which upsets mingw
9579     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9580   *)
9581     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9582   esac
9583   case $ac_prog in
9584     # Accept absolute paths.
9585     [\\/]* | ?:[\\/]*)
9586       re_direlt='/[^/][^/]*/\.\./'
9587       # Canonicalize the path of ld
9588       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9589       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9590         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9591       done
9592       test -z "$LD" && LD="$ac_prog"
9593       ;;
9594   "")
9595     # If it fails, then pretend we aren't using GCC.
9596     ac_prog=ld
9597     ;;
9598   *)
9599     # If it is relative, then search for the first ld in PATH.
9600     with_gnu_ld=unknown
9601     ;;
9602   esac
9603 elif test "$with_gnu_ld" = yes; then
9604   echo "$as_me:$LINENO: checking for GNU ld" >&5
9605 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9606 else
9607   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9608 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9609 fi
9610 if test "${lt_cv_path_LD+set}" = set; then
9611   echo $ECHO_N "(cached) $ECHO_C" >&6
9612 else
9613   if test -z "$LD"; then
9614   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9615   for ac_dir in $PATH; do
9616     IFS="$lt_save_ifs"
9617     test -z "$ac_dir" && ac_dir=.
9618     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9619       lt_cv_path_LD="$ac_dir/$ac_prog"
9620       # Check to see if the program is GNU ld.  I'd rather use --version,
9621       # but apparently some GNU ld's only accept -v.
9622       # Break only if it was the GNU/non-GNU ld that we prefer.
9623       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9624       *GNU* | *'with BFD'*)
9625         test "$with_gnu_ld" != no && break
9626         ;;
9627       *)
9628         test "$with_gnu_ld" != yes && break
9629         ;;
9630       esac
9631     fi
9632   done
9633   IFS="$lt_save_ifs"
9634 else
9635   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9636 fi
9637 fi
9638
9639 LD="$lt_cv_path_LD"
9640 if test -n "$LD"; then
9641   echo "$as_me:$LINENO: result: $LD" >&5
9642 echo "${ECHO_T}$LD" >&6
9643 else
9644   echo "$as_me:$LINENO: result: no" >&5
9645 echo "${ECHO_T}no" >&6
9646 fi
9647 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9648 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9649    { (exit 1); exit 1; }; }
9650 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9651 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9652 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9653   echo $ECHO_N "(cached) $ECHO_C" >&6
9654 else
9655   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9656 case `$LD -v 2>&1 </dev/null` in
9657 *GNU* | *'with BFD'*)
9658   lt_cv_prog_gnu_ld=yes
9659   ;;
9660 *)
9661   lt_cv_prog_gnu_ld=no
9662   ;;
9663 esac
9664 fi
9665 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9666 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9667 with_gnu_ld=$lt_cv_prog_gnu_ld
9668
9669
9670
9671   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9672   # archiving commands below assume that GNU ld is being used.
9673   if test "$with_gnu_ld" = yes; then
9674     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9675     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'
9676
9677     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9678     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9679
9680     # If archive_cmds runs LD, not CC, wlarc should be empty
9681     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9682     #     investigate it a little bit more. (MM)
9683     wlarc='${wl}'
9684
9685     # ancient GNU ld didn't support --whole-archive et. al.
9686     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9687         grep 'no-whole-archive' > /dev/null; then
9688       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9689     else
9690       whole_archive_flag_spec_CXX=
9691     fi
9692   else
9693     with_gnu_ld=no
9694     wlarc=
9695
9696     # A generic and very simple default shared library creation
9697     # command for GNU C++ for the case where it uses the native
9698     # linker, instead of GNU ld.  If possible, this setting should
9699     # overridden to take advantage of the native linker features on
9700     # the platform it is being used on.
9701     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9702   fi
9703
9704   # Commands to make compiler produce verbose output that lists
9705   # what "hidden" libraries, object files and flags are used when
9706   # linking a shared library.
9707   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9708
9709 else
9710   GXX=no
9711   with_gnu_ld=no
9712   wlarc=
9713 fi
9714
9715 # PORTME: fill in a description of your system's C++ link characteristics
9716 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9717 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9718 ld_shlibs_CXX=yes
9719 case $host_os in
9720   aix3*)
9721     # FIXME: insert proper C++ library support
9722     ld_shlibs_CXX=no
9723     ;;
9724   aix4* | aix5*)
9725     if test "$host_cpu" = ia64; then
9726       # On IA64, the linker does run time linking by default, so we don't
9727       # have to do anything special.
9728       aix_use_runtimelinking=no
9729       exp_sym_flag='-Bexport'
9730       no_entry_flag=""
9731     else
9732       aix_use_runtimelinking=no
9733
9734       # Test if we are trying to use run time linking or normal
9735       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9736       # need to do runtime linking.
9737       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9738         for ld_flag in $LDFLAGS; do
9739           case $ld_flag in
9740           *-brtl*)
9741             aix_use_runtimelinking=yes
9742             break
9743             ;;
9744           esac
9745         done
9746       esac
9747
9748       exp_sym_flag='-bexport'
9749       no_entry_flag='-bnoentry'
9750     fi
9751
9752     # When large executables or shared objects are built, AIX ld can
9753     # have problems creating the table of contents.  If linking a library
9754     # or program results in "error TOC overflow" add -mminimal-toc to
9755     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9756     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9757
9758     archive_cmds_CXX=''
9759     hardcode_direct_CXX=yes
9760     hardcode_libdir_separator_CXX=':'
9761     link_all_deplibs_CXX=yes
9762
9763     if test "$GXX" = yes; then
9764       case $host_os in aix4.012|aix4.012.*)
9765       # We only want to do this on AIX 4.2 and lower, the check
9766       # below for broken collect2 doesn't work under 4.3+
9767         collect2name=`${CC} -print-prog-name=collect2`
9768         if test -f "$collect2name" && \
9769            strings "$collect2name" | grep resolve_lib_name >/dev/null
9770         then
9771           # We have reworked collect2
9772           hardcode_direct_CXX=yes
9773         else
9774           # We have old collect2
9775           hardcode_direct_CXX=unsupported
9776           # It fails to find uninstalled libraries when the uninstalled
9777           # path is not listed in the libpath.  Setting hardcode_minus_L
9778           # to unsupported forces relinking
9779           hardcode_minus_L_CXX=yes
9780           hardcode_libdir_flag_spec_CXX='-L$libdir'
9781           hardcode_libdir_separator_CXX=
9782         fi
9783       esac
9784       shared_flag='-shared'
9785     else
9786       # not using gcc
9787       if test "$host_cpu" = ia64; then
9788         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9789         # chokes on -Wl,-G. The following line is correct:
9790         shared_flag='-G'
9791       else
9792         if test "$aix_use_runtimelinking" = yes; then
9793           shared_flag='${wl}-G'
9794         else
9795           shared_flag='${wl}-bM:SRE'
9796         fi
9797       fi
9798     fi
9799
9800     # It seems that -bexpall does not export symbols beginning with
9801     # underscore (_), so it is better to generate a list of symbols to export.
9802     always_export_symbols_CXX=yes
9803     if test "$aix_use_runtimelinking" = yes; then
9804       # Warning - without using the other runtime loading flags (-brtl),
9805       # -berok will link without error, but may produce a broken library.
9806       allow_undefined_flag_CXX='-berok'
9807       # Determine the default libpath from the value encoded in an empty executable.
9808       cat >conftest.$ac_ext <<_ACEOF
9809 #line $LINENO "configure"
9810 /* confdefs.h.  */
9811 _ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h.  */
9815
9816 int
9817 main ()
9818 {
9819
9820   ;
9821   return 0;
9822 }
9823 _ACEOF
9824 rm -f conftest.$ac_objext conftest$ac_exeext
9825 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9826   (eval $ac_link) 2>&5
9827   ac_status=$?
9828   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829   (exit $ac_status); } &&
9830          { ac_try='test -s conftest$ac_exeext'
9831   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9832   (eval $ac_try) 2>&5
9833   ac_status=$?
9834   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9835   (exit $ac_status); }; }; then
9836
9837 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9838 }'`
9839 # Check for a 64-bit object if we didn't find anything.
9840 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; }
9841 }'`; fi
9842 else
9843   echo "$as_me: failed program was:" >&5
9844 sed 's/^/| /' conftest.$ac_ext >&5
9845
9846 fi
9847 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9848 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9849
9850       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9851
9852       archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9853      else
9854       if test "$host_cpu" = ia64; then
9855         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
9856         allow_undefined_flag_CXX="-z nodefs"
9857         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9858       else
9859         # Determine the default libpath from the value encoded in an empty executable.
9860         cat >conftest.$ac_ext <<_ACEOF
9861 #line $LINENO "configure"
9862 /* confdefs.h.  */
9863 _ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h.  */
9867
9868 int
9869 main ()
9870 {
9871
9872   ;
9873   return 0;
9874 }
9875 _ACEOF
9876 rm -f conftest.$ac_objext conftest$ac_exeext
9877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9878   (eval $ac_link) 2>&5
9879   ac_status=$?
9880   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881   (exit $ac_status); } &&
9882          { ac_try='test -s conftest$ac_exeext'
9883   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9884   (eval $ac_try) 2>&5
9885   ac_status=$?
9886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9887   (exit $ac_status); }; }; then
9888
9889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
9890 }'`
9891 # Check for a 64-bit object if we didn't find anything.
9892 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; }
9893 }'`; fi
9894 else
9895   echo "$as_me: failed program was:" >&5
9896 sed 's/^/| /' conftest.$ac_ext >&5
9897
9898 fi
9899 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
9900 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9901
9902         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
9903         # Warning - without using the other run time loading flags,
9904         # -berok will link without error, but may produce a broken library.
9905         no_undefined_flag_CXX=' ${wl}-bernotok'
9906         allow_undefined_flag_CXX=' ${wl}-berok'
9907         # -bexpall does not export symbols beginning with underscore (_)
9908         always_export_symbols_CXX=yes
9909         # Exported symbols can be pulled into shared objects from archives
9910         whole_archive_flag_spec_CXX=' '
9911         archive_cmds_need_lc_CXX=yes
9912         # This is similar to how AIX traditionally builds it's shared libraries.
9913         archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9914       fi
9915     fi
9916     ;;
9917   chorus*)
9918     case $cc_basename in
9919       *)
9920         # FIXME: insert proper C++ library support
9921         ld_shlibs_CXX=no
9922         ;;
9923     esac
9924     ;;
9925
9926   cygwin* | mingw* | pw32*)
9927     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
9928     # as there is no search path for DLLs.
9929     hardcode_libdir_flag_spec_CXX='-L$libdir'
9930     allow_undefined_flag_CXX=unsupported
9931     always_export_symbols_CXX=no
9932     enable_shared_with_static_runtimes_CXX=yes
9933
9934     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
9935       archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9936       # If the export-symbols file already is a .def file (1st line
9937       # is EXPORTS), use it as is; otherwise, prepend...
9938       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9939         cp $export_symbols $output_objdir/$soname.def;
9940       else
9941         echo EXPORTS > $output_objdir/$soname.def;
9942         cat $export_symbols >> $output_objdir/$soname.def;
9943       fi~
9944       $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
9945     else
9946       ld_shlibs_CXX=no
9947     fi
9948   ;;
9949
9950   darwin* | rhapsody*)
9951    if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
9952     archive_cmds_need_lc_CXX=no
9953     case "$host_os" in
9954     rhapsody* | darwin1.[012])
9955       allow_undefined_flag_CXX='-undefined suppress'
9956       ;;
9957     *) # Darwin 1.3 on
9958       test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
9959       ;;
9960     esac
9961         lt_int_apple_cc_single_mod=no
9962         output_verbose_link_cmd='echo'
9963         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9964           lt_int_apple_cc_single_mod=yes
9965         fi
9966         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9967           archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9968         else
9969         archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9970       fi
9971       module_cmds_CXX='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
9972
9973     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9974       if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9975         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}'
9976       else
9977         archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9978       fi
9979         module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9980     hardcode_direct_CXX=no
9981     hardcode_automatic_CXX=yes
9982     hardcode_shlibpath_var_CXX=unsupported
9983     whole_archive_flag_spec_CXX='-all_load $convenience'
9984     link_all_deplibs_CXX=yes
9985    fi
9986     ;;
9987
9988   dgux*)
9989     case $cc_basename in
9990       ec++)
9991         # FIXME: insert proper C++ library support
9992         ld_shlibs_CXX=no
9993         ;;
9994       ghcx)
9995         # Green Hills C++ Compiler
9996         # FIXME: insert proper C++ library support
9997         ld_shlibs_CXX=no
9998         ;;
9999       *)
10000         # FIXME: insert proper C++ library support
10001         ld_shlibs_CXX=no
10002         ;;
10003     esac
10004     ;;
10005   freebsd12*)
10006     # C++ shared libraries reported to be fairly broken before switch to ELF
10007     ld_shlibs_CXX=no
10008     ;;
10009   freebsd-elf*)
10010     archive_cmds_need_lc_CXX=no
10011     ;;
10012   freebsd*)
10013     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10014     # conventions
10015     ld_shlibs_CXX=yes
10016     ;;
10017   gnu*)
10018     ;;
10019   hpux9*)
10020     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10021     hardcode_libdir_separator_CXX=:
10022     export_dynamic_flag_spec_CXX='${wl}-E'
10023     hardcode_direct_CXX=yes
10024     hardcode_minus_L_CXX=yes # Not in the search PATH,
10025                                 # but as the default
10026                                 # location of the library.
10027
10028     case $cc_basename in
10029     CC)
10030       # FIXME: insert proper C++ library support
10031       ld_shlibs_CXX=no
10032       ;;
10033     aCC)
10034       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'
10035       # Commands to make compiler produce verbose output that lists
10036       # what "hidden" libraries, object files and flags are used when
10037       # linking a shared library.
10038       #
10039       # There doesn't appear to be a way to prevent this compiler from
10040       # explicitly linking system object files so we need to strip them
10041       # from the output so that they don't get included in the library
10042       # dependencies.
10043       output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | egrep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10044       ;;
10045     *)
10046       if test "$GXX" = yes; then
10047         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'
10048       else
10049         # FIXME: insert proper C++ library support
10050         ld_shlibs_CXX=no
10051       fi
10052       ;;
10053     esac
10054     ;;
10055   hpux10*|hpux11*)
10056     if test $with_gnu_ld = no; then
10057       case "$host_cpu" in
10058       hppa*64*)
10059         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10060         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10061         hardcode_libdir_separator_CXX=:
10062         ;;
10063       ia64*)
10064         hardcode_libdir_flag_spec_CXX='-L$libdir'
10065         ;;
10066       *)
10067         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10068         hardcode_libdir_separator_CXX=:
10069         export_dynamic_flag_spec_CXX='${wl}-E'
10070         ;;
10071       esac
10072     fi
10073     case "$host_cpu" in
10074     hppa*64*)
10075       hardcode_direct_CXX=no
10076       hardcode_shlibpath_var_CXX=no
10077       ;;
10078     ia64*)
10079       hardcode_direct_CXX=no
10080       hardcode_shlibpath_var_CXX=no
10081       hardcode_minus_L_CXX=yes # Not in the search PATH,
10082                                               # but as the default
10083                                               # location of the library.
10084       ;;
10085     *)
10086       hardcode_direct_CXX=yes
10087       hardcode_minus_L_CXX=yes # Not in the search PATH,
10088                                               # but as the default
10089                                               # location of the library.
10090       ;;
10091     esac
10092
10093     case $cc_basename in
10094       CC)
10095         # FIXME: insert proper C++ library support
10096         ld_shlibs_CXX=no
10097         ;;
10098       aCC)
10099         case "$host_cpu" in
10100         hppa*64*|ia64*)
10101           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10102           ;;
10103         *)
10104           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10105           ;;
10106         esac
10107         # Commands to make compiler produce verbose output that lists
10108         # what "hidden" libraries, object files and flags are used when
10109         # linking a shared library.
10110         #
10111         # There doesn't appear to be a way to prevent this compiler from
10112         # explicitly linking system object files so we need to strip them
10113         # from the output so that they don't get included in the library
10114         # dependencies.
10115         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'
10116         ;;
10117       *)
10118         if test "$GXX" = yes; then
10119           if test $with_gnu_ld = no; then
10120             case "$host_cpu" in
10121             ia64*|hppa*64*)
10122               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10123               ;;
10124             *)
10125               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'
10126               ;;
10127             esac
10128           fi
10129         else
10130           # FIXME: insert proper C++ library support
10131           ld_shlibs_CXX=no
10132         fi
10133         ;;
10134     esac
10135     ;;
10136   irix5* | irix6*)
10137     case $cc_basename in
10138       CC)
10139         # SGI C++
10140         archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10141
10142         # Archives containing C++ object files must be created using
10143         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10144         # necessary to make sure instantiated templates are included
10145         # in the archive.
10146         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10147         ;;
10148       *)
10149         if test "$GXX" = yes; then
10150           if test "$with_gnu_ld" = no; then
10151             archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10152           else
10153             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'
10154           fi
10155         fi
10156         link_all_deplibs_CXX=yes
10157         ;;
10158     esac
10159     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10160     hardcode_libdir_separator_CXX=:
10161     ;;
10162   linux*)
10163     case $cc_basename in
10164       KCC)
10165         # Kuck and Associates, Inc. (KAI) C++ Compiler
10166
10167         # KCC will only create a shared library if the output file
10168         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10169         # to its proper name (with version) after linking.
10170         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'
10171         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'
10172         # Commands to make compiler produce verbose output that lists
10173         # what "hidden" libraries, object files and flags are used when
10174         # linking a shared library.
10175         #
10176         # There doesn't appear to be a way to prevent this compiler from
10177         # explicitly linking system object files so we need to strip them
10178         # from the output so that they don't get included in the library
10179         # dependencies.
10180         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'
10181
10182         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10183         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10184
10185         # Archives containing C++ object files must be created using
10186         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10187         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10188         ;;
10189       icpc)
10190         # Intel C++
10191         with_gnu_ld=yes
10192         archive_cmds_need_lc_CXX=no
10193         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10194         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'
10195         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10196         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10197         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10198         ;;
10199       cxx)
10200         # Compaq C++
10201         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10202         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'
10203
10204         runpath_var=LD_RUN_PATH
10205         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10206         hardcode_libdir_separator_CXX=:
10207
10208         # Commands to make compiler produce verbose output that lists
10209         # what "hidden" libraries, object files and flags are used when
10210         # linking a shared library.
10211         #
10212         # There doesn't appear to be a way to prevent this compiler from
10213         # explicitly linking system object files so we need to strip them
10214         # from the output so that they don't get included in the library
10215         # dependencies.
10216         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'
10217         ;;
10218     esac
10219     ;;
10220   lynxos*)
10221     # FIXME: insert proper C++ library support
10222     ld_shlibs_CXX=no
10223     ;;
10224   m88k*)
10225     # FIXME: insert proper C++ library support
10226     ld_shlibs_CXX=no
10227     ;;
10228   mvs*)
10229     case $cc_basename in
10230       cxx)
10231         # FIXME: insert proper C++ library support
10232         ld_shlibs_CXX=no
10233         ;;
10234       *)
10235         # FIXME: insert proper C++ library support
10236         ld_shlibs_CXX=no
10237         ;;
10238     esac
10239     ;;
10240   netbsd*)
10241     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10242       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10243       wlarc=
10244       hardcode_libdir_flag_spec_CXX='-R$libdir'
10245       hardcode_direct_CXX=yes
10246       hardcode_shlibpath_var_CXX=no
10247     fi
10248     # Workaround some broken pre-1.5 toolchains
10249     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10250     ;;
10251   osf3*)
10252     case $cc_basename in
10253       KCC)
10254         # Kuck and Associates, Inc. (KAI) C++ Compiler
10255
10256         # KCC will only create a shared library if the output file
10257         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10258         # to its proper name (with version) after linking.
10259         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'
10260
10261         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10262         hardcode_libdir_separator_CXX=:
10263
10264         # Archives containing C++ object files must be created using
10265         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10266         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10267
10268         ;;
10269       RCC)
10270         # Rational C++ 2.4.1
10271         # FIXME: insert proper C++ library support
10272         ld_shlibs_CXX=no
10273         ;;
10274       cxx)
10275         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10276         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10277
10278         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10279         hardcode_libdir_separator_CXX=:
10280
10281         # Commands to make compiler produce verbose output that lists
10282         # what "hidden" libraries, object files and flags are used when
10283         # linking a shared library.
10284         #
10285         # There doesn't appear to be a way to prevent this compiler from
10286         # explicitly linking system object files so we need to strip them
10287         # from the output so that they don't get included in the library
10288         # dependencies.
10289         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'
10290         ;;
10291       *)
10292         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10293           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10294           archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10295
10296           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10297           hardcode_libdir_separator_CXX=:
10298
10299           # Commands to make compiler produce verbose output that lists
10300           # what "hidden" libraries, object files and flags are used when
10301           # linking a shared library.
10302           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10303
10304         else
10305           # FIXME: insert proper C++ library support
10306           ld_shlibs_CXX=no
10307         fi
10308         ;;
10309     esac
10310     ;;
10311   osf4* | osf5*)
10312     case $cc_basename in
10313       KCC)
10314         # Kuck and Associates, Inc. (KAI) C++ Compiler
10315
10316         # KCC will only create a shared library if the output file
10317         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10318         # to its proper name (with version) after linking.
10319         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'
10320
10321         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10322         hardcode_libdir_separator_CXX=:
10323
10324         # Archives containing C++ object files must be created using
10325         # the KAI C++ compiler.
10326         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10327         ;;
10328       RCC)
10329         # Rational C++ 2.4.1
10330         # FIXME: insert proper C++ library support
10331         ld_shlibs_CXX=no
10332         ;;
10333       cxx)
10334         allow_undefined_flag_CXX=' -expect_unresolved \*'
10335         archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
10336         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10337           echo "-hidden">> $lib.exp~
10338           $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp  `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
10339           $rm $lib.exp'
10340
10341         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10342         hardcode_libdir_separator_CXX=:
10343
10344         # Commands to make compiler produce verbose output that lists
10345         # what "hidden" libraries, object files and flags are used when
10346         # linking a shared library.
10347         #
10348         # There doesn't appear to be a way to prevent this compiler from
10349         # explicitly linking system object files so we need to strip them
10350         # from the output so that they don't get included in the library
10351         # dependencies.
10352         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'
10353         ;;
10354       *)
10355         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10356           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10357          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
10358
10359           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10360           hardcode_libdir_separator_CXX=:
10361
10362           # Commands to make compiler produce verbose output that lists
10363           # what "hidden" libraries, object files and flags are used when
10364           # linking a shared library.
10365           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10366
10367         else
10368           # FIXME: insert proper C++ library support
10369           ld_shlibs_CXX=no
10370         fi
10371         ;;
10372     esac
10373     ;;
10374   psos*)
10375     # FIXME: insert proper C++ library support
10376     ld_shlibs_CXX=no
10377     ;;
10378   sco*)
10379     archive_cmds_need_lc_CXX=no
10380     case $cc_basename in
10381       CC)
10382         # FIXME: insert proper C++ library support
10383         ld_shlibs_CXX=no
10384         ;;
10385       *)
10386         # FIXME: insert proper C++ library support
10387         ld_shlibs_CXX=no
10388         ;;
10389     esac
10390     ;;
10391   sunos4*)
10392     case $cc_basename in
10393       CC)
10394         # Sun C++ 4.x
10395         # FIXME: insert proper C++ library support
10396         ld_shlibs_CXX=no
10397         ;;
10398       lcc)
10399         # Lucid
10400         # FIXME: insert proper C++ library support
10401         ld_shlibs_CXX=no
10402         ;;
10403       *)
10404         # FIXME: insert proper C++ library support
10405         ld_shlibs_CXX=no
10406         ;;
10407     esac
10408     ;;
10409   solaris*)
10410     case $cc_basename in
10411       CC)
10412         # Sun C++ 4.2, 5.x and Centerline C++
10413         no_undefined_flag_CXX=' -zdefs'
10414         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10415         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10416         $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10417
10418         hardcode_libdir_flag_spec_CXX='-R$libdir'
10419         hardcode_shlibpath_var_CXX=no
10420         case $host_os in
10421           solaris2.0-5 | solaris2.0-5.*) ;;
10422           *)
10423             # The C++ compiler is used as linker so we must use $wl
10424             # flag to pass the commands to the underlying system
10425             # linker.
10426             # Supported since Solaris 2.6 (maybe 2.5.1?)
10427             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10428             ;;
10429         esac
10430         link_all_deplibs_CXX=yes
10431
10432         # Commands to make compiler produce verbose output that lists
10433         # what "hidden" libraries, object files and flags are used when
10434         # linking a shared library.
10435         #
10436         # There doesn't appear to be a way to prevent this compiler from
10437         # explicitly linking system object files so we need to strip them
10438         # from the output so that they don't get included in the library
10439         # dependencies.
10440         output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
10441
10442         # Archives containing C++ object files must be created using
10443         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10444         # necessary to make sure instantiated templates are included
10445         # in the archive.
10446         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10447         ;;
10448       gcx)
10449         # Green Hills C++ Compiler
10450         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10451
10452         # The C++ compiler must be used to create the archive.
10453         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10454         ;;
10455       *)
10456         # GNU C++ compiler with Solaris linker
10457         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10458           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10459           if $CC --version | grep -v '^2\.7' > /dev/null; then
10460             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10461             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10462                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10463
10464             # Commands to make compiler produce verbose output that lists
10465             # what "hidden" libraries, object files and flags are used when
10466             # linking a shared library.
10467             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10468           else
10469             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10470             # platform.
10471             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10472             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10473                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10474
10475             # Commands to make compiler produce verbose output that lists
10476             # what "hidden" libraries, object files and flags are used when
10477             # linking a shared library.
10478             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10479           fi
10480
10481           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10482         fi
10483         ;;
10484     esac
10485     ;;
10486   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10487     archive_cmds_need_lc_CXX=no
10488     ;;
10489   tandem*)
10490     case $cc_basename in
10491       NCC)
10492         # NonStop-UX NCC 3.20
10493         # FIXME: insert proper C++ library support
10494         ld_shlibs_CXX=no
10495         ;;
10496       *)
10497         # FIXME: insert proper C++ library support
10498         ld_shlibs_CXX=no
10499         ;;
10500     esac
10501     ;;
10502   vxworks*)
10503     # FIXME: insert proper C++ library support
10504     ld_shlibs_CXX=no
10505     ;;
10506   *)
10507     # FIXME: insert proper C++ library support
10508     ld_shlibs_CXX=no
10509     ;;
10510 esac
10511 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10512 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10513 test "$ld_shlibs_CXX" = no && can_build_shared=no
10514
10515 GCC_CXX="$GXX"
10516 LD_CXX="$LD"
10517
10518
10519 cat > conftest.$ac_ext <<EOF
10520 class Foo
10521 {
10522 public:
10523   Foo (void) { a = 0; }
10524 private:
10525   int a;
10526 };
10527 EOF
10528
10529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10530   (eval $ac_compile) 2>&5
10531   ac_status=$?
10532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10533   (exit $ac_status); }; then
10534   # Parse the compiler output and extract the necessary
10535   # objects, libraries and library flags.
10536
10537   # Sentinel used to keep track of whether or not we are before
10538   # the conftest object file.
10539   pre_test_object_deps_done=no
10540
10541   # The `*' in the case matches for architectures that use `case' in
10542   # $output_verbose_cmd can trigger glob expansion during the loop
10543   # eval without this substitution.
10544   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10545
10546   for p in `eval $output_verbose_link_cmd`; do
10547     case $p in
10548
10549     -L* | -R* | -l*)
10550        # Some compilers place space between "-{L,R}" and the path.
10551        # Remove the space.
10552        if test $p = "-L" \
10553           || test $p = "-R"; then
10554          prev=$p
10555          continue
10556        else
10557          prev=
10558        fi
10559
10560        if test "$pre_test_object_deps_done" = no; then
10561          case $p in
10562          -L* | -R*)
10563            # Internal compiler library paths should come after those
10564            # provided the user.  The postdeps already come after the
10565            # user supplied libs so there is no need to process them.
10566            if test -z "$compiler_lib_search_path_CXX"; then
10567              compiler_lib_search_path_CXX="${prev}${p}"
10568            else
10569              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10570            fi
10571            ;;
10572          # The "-l" case would never come before the object being
10573          # linked, so don't bother handling this case.
10574          esac
10575        else
10576          if test -z "$postdeps_CXX"; then
10577            postdeps_CXX="${prev}${p}"
10578          else
10579            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10580          fi
10581        fi
10582        ;;
10583
10584     *.$objext)
10585        # This assumes that the test object file only shows up
10586        # once in the compiler output.
10587        if test "$p" = "conftest.$objext"; then
10588          pre_test_object_deps_done=yes
10589          continue
10590        fi
10591
10592        if test "$pre_test_object_deps_done" = no; then
10593          if test -z "$predep_objects_CXX"; then
10594            predep_objects_CXX="$p"
10595          else
10596            predep_objects_CXX="$predep_objects_CXX $p"
10597          fi
10598        else
10599          if test -z "$postdep_objects_CXX"; then
10600            postdep_objects_CXX="$p"
10601          else
10602            postdep_objects_CXX="$postdep_objects_CXX $p"
10603          fi
10604        fi
10605        ;;
10606
10607     *) ;; # Ignore the rest.
10608
10609     esac
10610   done
10611
10612   # Clean up.
10613   rm -f a.out a.exe
10614 else
10615   echo "libtool.m4: error: problem compiling CXX test program"
10616 fi
10617
10618 $rm -f confest.$objext
10619
10620 case " $postdeps_CXX " in
10621 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10622 esac
10623
10624 lt_prog_compiler_wl_CXX=
10625 lt_prog_compiler_pic_CXX=
10626 lt_prog_compiler_static_CXX=
10627
10628 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10629 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10630
10631   # C++ specific cases for pic, static, wl, etc.
10632   if test "$GXX" = yes; then
10633     lt_prog_compiler_wl_CXX='-Wl,'
10634     lt_prog_compiler_static_CXX='-static'
10635
10636     case $host_os in
10637     aix*)
10638       # All AIX code is PIC.
10639       if test "$host_cpu" = ia64; then
10640         # AIX 5 now supports IA64 processor
10641         lt_prog_compiler_static_CXX='-Bstatic'
10642       fi
10643       ;;
10644     amigaos*)
10645       # FIXME: we need at least 68020 code to build shared libraries, but
10646       # adding the `-m68020' flag to GCC prevents building anything better,
10647       # like `-m68040'.
10648       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10649       ;;
10650     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10651       # PIC is the default for these OSes.
10652       ;;
10653     mingw* | os2* | pw32*)
10654       # This hack is so that the source file can tell whether it is being
10655       # built for inclusion in a dll (and should export symbols for example).
10656       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10657       ;;
10658     darwin* | rhapsody*)
10659       # PIC is the default on this platform
10660       # Common symbols not allowed in MH_DYLIB files
10661       lt_prog_compiler_pic_CXX='-fno-common'
10662       ;;
10663     *djgpp*)
10664       # DJGPP does not support shared libraries at all
10665       lt_prog_compiler_pic_CXX=
10666       ;;
10667     sysv4*MP*)
10668       if test -d /usr/nec; then
10669         lt_prog_compiler_pic_CXX=-Kconform_pic
10670       fi
10671       ;;
10672     hpux*)
10673       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10674       # not for PA HP-UX.
10675       case "$host_cpu" in
10676       hppa*64*|ia64*)
10677         ;;
10678       *)
10679         lt_prog_compiler_pic_CXX='-fPIC'
10680         ;;
10681       esac
10682       ;;
10683     *)
10684       lt_prog_compiler_pic_CXX='-fPIC'
10685       ;;
10686     esac
10687   else
10688     case $host_os in
10689       aix4* | aix5*)
10690         # All AIX code is PIC.
10691         if test "$host_cpu" = ia64; then
10692           # AIX 5 now supports IA64 processor
10693           lt_prog_compiler_static_CXX='-Bstatic'
10694         else
10695           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10696         fi
10697         ;;
10698       chorus*)
10699         case $cc_basename in
10700         cxch68)
10701           # Green Hills C++ Compiler
10702           # _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"
10703           ;;
10704         esac
10705         ;;
10706       dgux*)
10707         case $cc_basename in
10708           ec++)
10709             lt_prog_compiler_pic_CXX='-KPIC'
10710             ;;
10711           ghcx)
10712             # Green Hills C++ Compiler
10713             lt_prog_compiler_pic_CXX='-pic'
10714             ;;
10715           *)
10716             ;;
10717         esac
10718         ;;
10719       freebsd*)
10720         # FreeBSD uses GNU C++
10721         ;;
10722       hpux9* | hpux10* | hpux11*)
10723         case $cc_basename in
10724           CC)
10725             lt_prog_compiler_wl_CXX='-Wl,'
10726             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10727             if test "$host_cpu" != ia64; then
10728               lt_prog_compiler_pic_CXX='+Z'
10729             fi
10730             ;;
10731           aCC)
10732             lt_prog_compiler_wl_CXX='-Wl,'
10733             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10734             case "$host_cpu" in
10735             hppa*64*|ia64*)
10736               # +Z the default
10737               ;;
10738             *)
10739               lt_prog_compiler_pic_CXX='+Z'
10740               ;;
10741             esac
10742             ;;
10743           *)
10744             ;;
10745         esac
10746         ;;
10747       irix5* | irix6* | nonstopux*)
10748         case $cc_basename in
10749           CC)
10750             lt_prog_compiler_wl_CXX='-Wl,'
10751             lt_prog_compiler_static_CXX='-non_shared'
10752             # CC pic flag -KPIC is the default.
10753             ;;
10754           *)
10755             ;;
10756         esac
10757         ;;
10758       linux*)
10759         case $cc_basename in
10760           KCC)
10761             # KAI C++ Compiler
10762             lt_prog_compiler_wl_CXX='--backend -Wl,'
10763             lt_prog_compiler_pic_CXX='-fPIC'
10764             ;;
10765           icpc)
10766             # Intel C++
10767             lt_prog_compiler_wl_CXX='-Wl,'
10768             lt_prog_compiler_pic_CXX='-KPIC'
10769             lt_prog_compiler_static_CXX='-static'
10770             ;;
10771           cxx)
10772             # Compaq C++
10773             # Make sure the PIC flag is empty.  It appears that all Alpha
10774             # Linux and Compaq Tru64 Unix objects are PIC.
10775             lt_prog_compiler_pic_CXX=
10776             lt_prog_compiler_static_CXX='-non_shared'
10777             ;;
10778           *)
10779             ;;
10780         esac
10781         ;;
10782       lynxos*)
10783         ;;
10784       m88k*)
10785         ;;
10786       mvs*)
10787         case $cc_basename in
10788           cxx)
10789             lt_prog_compiler_pic_CXX='-W c,exportall'
10790             ;;
10791           *)
10792             ;;
10793         esac
10794         ;;
10795       netbsd*)
10796         ;;
10797       osf3* | osf4* | osf5*)
10798         case $cc_basename in
10799           KCC)
10800             lt_prog_compiler_wl_CXX='--backend -Wl,'
10801             ;;
10802           RCC)
10803             # Rational C++ 2.4.1
10804             lt_prog_compiler_pic_CXX='-pic'
10805             ;;
10806           cxx)
10807             # Digital/Compaq C++
10808             lt_prog_compiler_wl_CXX='-Wl,'
10809             # Make sure the PIC flag is empty.  It appears that all Alpha
10810             # Linux and Compaq Tru64 Unix objects are PIC.
10811             lt_prog_compiler_pic_CXX=
10812             lt_prog_compiler_static_CXX='-non_shared'
10813             ;;
10814           *)
10815             ;;
10816         esac
10817         ;;
10818       psos*)
10819         ;;
10820       sco*)
10821         case $cc_basename in
10822           CC)
10823             lt_prog_compiler_pic_CXX='-fPIC'
10824             ;;
10825           *)
10826             ;;
10827         esac
10828         ;;
10829       solaris*)
10830         case $cc_basename in
10831           CC)
10832             # Sun C++ 4.2, 5.x and Centerline C++
10833             lt_prog_compiler_pic_CXX='-KPIC'
10834             lt_prog_compiler_static_CXX='-Bstatic'
10835             lt_prog_compiler_wl_CXX='-Qoption ld '
10836             ;;
10837           gcx)
10838             # Green Hills C++ Compiler
10839             lt_prog_compiler_pic_CXX='-PIC'
10840             ;;
10841           *)
10842             ;;
10843         esac
10844         ;;
10845       sunos4*)
10846         case $cc_basename in
10847           CC)
10848             # Sun C++ 4.x
10849             lt_prog_compiler_pic_CXX='-pic'
10850             lt_prog_compiler_static_CXX='-Bstatic'
10851             ;;
10852           lcc)
10853             # Lucid
10854             lt_prog_compiler_pic_CXX='-pic'
10855             ;;
10856           *)
10857             ;;
10858         esac
10859         ;;
10860       tandem*)
10861         case $cc_basename in
10862           NCC)
10863             # NonStop-UX NCC 3.20
10864             lt_prog_compiler_pic_CXX='-KPIC'
10865             ;;
10866           *)
10867             ;;
10868         esac
10869         ;;
10870       unixware*)
10871         ;;
10872       vxworks*)
10873         ;;
10874       *)
10875         lt_prog_compiler_can_build_shared_CXX=no
10876         ;;
10877     esac
10878   fi
10879
10880 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
10881 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
10882
10883 #
10884 # Check to make sure the PIC flag actually works.
10885 #
10886 if test -n "$lt_prog_compiler_pic_CXX"; then
10887   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
10888 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
10889 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
10890   echo $ECHO_N "(cached) $ECHO_C" >&6
10891 else
10892   lt_prog_compiler_pic_works_CXX=no
10893   ac_outfile=conftest.$ac_objext
10894    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10895    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
10896    # Insert the option either (1) after the last *FLAGS variable, or
10897    # (2) before a word containing "conftest.", or (3) at the end.
10898    # Note that $ac_compile itself does not contain backslashes and begins
10899    # with a dollar sign (not a hyphen), so the echo should work correctly.
10900    # The option is referenced via a variable to avoid confusing sed.
10901    lt_compile=`echo "$ac_compile" | $SED \
10902    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10903    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10904    -e 's:$: $lt_compiler_flag:'`
10905    (eval echo "\"\$as_me:10905: $lt_compile\"" >&5)
10906    (eval "$lt_compile" 2>conftest.err)
10907    ac_status=$?
10908    cat conftest.err >&5
10909    echo "$as_me:10909: \$? = $ac_status" >&5
10910    if (exit $ac_status) && test -s "$ac_outfile"; then
10911      # The compiler can only warn and ignore the option if not recognized
10912      # So say no if there are warnings
10913      if test ! -s conftest.err; then
10914        lt_prog_compiler_pic_works_CXX=yes
10915      fi
10916    fi
10917    $rm conftest*
10918
10919 fi
10920 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
10921 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
10922
10923 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
10924     case $lt_prog_compiler_pic_CXX in
10925      "" | " "*) ;;
10926      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
10927      esac
10928 else
10929     lt_prog_compiler_pic_CXX=
10930      lt_prog_compiler_can_build_shared_CXX=no
10931 fi
10932
10933 fi
10934 case "$host_os" in
10935   # For platforms which do not support PIC, -DPIC is meaningless:
10936   *djgpp*)
10937     lt_prog_compiler_pic_CXX=
10938     ;;
10939   *)
10940     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
10941     ;;
10942 esac
10943
10944 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
10945 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
10946 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
10947   echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949   lt_cv_prog_compiler_c_o_CXX=no
10950    $rm -r conftest 2>/dev/null
10951    mkdir conftest
10952    cd conftest
10953    mkdir out
10954    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
10955
10956    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
10957    # that will create temporary files in the current directory regardless of
10958    # the output directory.  Thus, making CWD read-only will cause this test
10959    # to fail, enabling locking or at least warning the user not to do parallel
10960    # builds.
10961    chmod -w .
10962
10963    lt_compiler_flag="-o out/conftest2.$ac_objext"
10964    # Insert the option either (1) after the last *FLAGS variable, or
10965    # (2) before a word containing "conftest.", or (3) at the end.
10966    # Note that $ac_compile itself does not contain backslashes and begins
10967    # with a dollar sign (not a hyphen), so the echo should work correctly.
10968    lt_compile=`echo "$ac_compile" | $SED \
10969    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
10970    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10971    -e 's:$: $lt_compiler_flag:'`
10972    (eval echo "\"\$as_me:10972: $lt_compile\"" >&5)
10973    (eval "$lt_compile" 2>out/conftest.err)
10974    ac_status=$?
10975    cat out/conftest.err >&5
10976    echo "$as_me:10976: \$? = $ac_status" >&5
10977    if (exit $ac_status) && test -s out/conftest2.$ac_objext
10978    then
10979      # The compiler can only warn and ignore the option if not recognized
10980      # So say no if there are warnings
10981      if test ! -s out/conftest.err; then
10982        lt_cv_prog_compiler_c_o_CXX=yes
10983      fi
10984    fi
10985    chmod u+w .
10986    $rm conftest* out/*
10987    rmdir out
10988    cd ..
10989    rmdir conftest
10990    $rm conftest*
10991
10992 fi
10993 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
10994 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
10995
10996
10997 hard_links="nottested"
10998 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
10999   # do not overwrite the value of need_locks provided by the user
11000   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11001 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11002   hard_links=yes
11003   $rm conftest*
11004   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11005   touch conftest.a
11006   ln conftest.a conftest.b 2>&5 || hard_links=no
11007   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11008   echo "$as_me:$LINENO: result: $hard_links" >&5
11009 echo "${ECHO_T}$hard_links" >&6
11010   if test "$hard_links" = no; then
11011     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11012 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11013     need_locks=warn
11014   fi
11015 else
11016   need_locks=no
11017 fi
11018
11019 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11020 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11021
11022   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11023   case $host_os in
11024   aix4* | aix5*)
11025     # If we're using GNU nm, then we don't want the "-C" option.
11026     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11027     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11028       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'
11029     else
11030       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'
11031     fi
11032     ;;
11033   pw32*)
11034     export_symbols_cmds_CXX="$ltdll_cmds"
11035   ;;
11036   cygwin* | mingw*)
11037     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11038   ;;
11039   *)
11040     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11041   ;;
11042   esac
11043
11044 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11045 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11046 test "$ld_shlibs_CXX" = no && can_build_shared=no
11047
11048 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11049 if test "$GCC" = yes; then
11050   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11051 fi
11052
11053 #
11054 # Do we need to explicitly link libc?
11055 #
11056 case "x$archive_cmds_need_lc_CXX" in
11057 x|xyes)
11058   # Assume -lc should be added
11059   archive_cmds_need_lc_CXX=yes
11060
11061   if test "$enable_shared" = yes && test "$GCC" = yes; then
11062     case $archive_cmds_CXX in
11063     *'~'*)
11064       # FIXME: we may have to deal with multi-command sequences.
11065       ;;
11066     '$CC '*)
11067       # Test whether the compiler implicitly links with -lc since on some
11068       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11069       # to ld, don't add -lc before -lgcc.
11070       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11071 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11072       $rm conftest*
11073       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11074
11075       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11076   (eval $ac_compile) 2>&5
11077   ac_status=$?
11078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079   (exit $ac_status); } 2>conftest.err; then
11080         soname=conftest
11081         lib=conftest
11082         libobjs=conftest.$ac_objext
11083         deplibs=
11084         wl=$lt_prog_compiler_wl_CXX
11085         compiler_flags=-v
11086         linker_flags=-v
11087         verstring=
11088         output_objdir=.
11089         libname=conftest
11090         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11091         allow_undefined_flag_CXX=
11092         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11093   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11094   ac_status=$?
11095   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11096   (exit $ac_status); }
11097         then
11098           archive_cmds_need_lc_CXX=no
11099         else
11100           archive_cmds_need_lc_CXX=yes
11101         fi
11102         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11103       else
11104         cat conftest.err 1>&5
11105       fi
11106       $rm conftest*
11107       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11108 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11109       ;;
11110     esac
11111   fi
11112   ;;
11113 esac
11114
11115 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11116 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11117 hardcode_action_CXX=
11118 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11119    test -n "$runpath_var CXX" || \
11120    test "X$hardcode_automatic_CXX"="Xyes" ; then
11121
11122   # We can hardcode non-existant directories.
11123   if test "$hardcode_direct_CXX" != no &&
11124      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11125      # have to relink, otherwise we might link with an installed library
11126      # when we should be linking with a yet-to-be-installed one
11127      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11128      test "$hardcode_minus_L_CXX" != no; then
11129     # Linking always hardcodes the temporary library directory.
11130     hardcode_action_CXX=relink
11131   else
11132     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11133     hardcode_action_CXX=immediate
11134   fi
11135 else
11136   # We cannot hardcode anything, or else we can only hardcode existing
11137   # directories.
11138   hardcode_action_CXX=unsupported
11139 fi
11140 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11141 echo "${ECHO_T}$hardcode_action_CXX" >&6
11142
11143 if test "$hardcode_action_CXX" = relink; then
11144   # Fast installation is not supported
11145   enable_fast_install=no
11146 elif test "$shlibpath_overrides_runpath" = yes ||
11147      test "$enable_shared" = no; then
11148   # Fast installation is not necessary
11149   enable_fast_install=needless
11150 fi
11151
11152 striplib=
11153 old_striplib=
11154 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11155 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11156 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11157   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11158   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11159   echo "$as_me:$LINENO: result: yes" >&5
11160 echo "${ECHO_T}yes" >&6
11161 else
11162 # FIXME - insert some real tests, host_os isn't really good enough
11163   case $host_os in
11164    darwin*)
11165        if test -n "$STRIP" ; then
11166          striplib="$STRIP -x"
11167          echo "$as_me:$LINENO: result: yes" >&5
11168 echo "${ECHO_T}yes" >&6
11169        else
11170   echo "$as_me:$LINENO: result: no" >&5
11171 echo "${ECHO_T}no" >&6
11172 fi
11173        ;;
11174    *)
11175   echo "$as_me:$LINENO: result: no" >&5
11176 echo "${ECHO_T}no" >&6
11177     ;;
11178   esac
11179 fi
11180
11181 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11182 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11183 library_names_spec=
11184 libname_spec='lib$name'
11185 soname_spec=
11186 shrext=".so"
11187 postinstall_cmds=
11188 postuninstall_cmds=
11189 finish_cmds=
11190 finish_eval=
11191 shlibpath_var=
11192 shlibpath_overrides_runpath=unknown
11193 version_type=none
11194 dynamic_linker="$host_os ld.so"
11195 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11196 if test "$GCC" = yes; then
11197   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11198   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11199     # if the path contains ";" then we assume it to be the separator
11200     # otherwise default to the standard path separator (i.e. ":") - it is
11201     # assumed that no part of a normal pathname contains ";" but that should
11202     # okay in the real world where ";" in dirpaths is itself problematic.
11203     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11204   else
11205     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11206   fi
11207 else
11208   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11209 fi
11210 need_lib_prefix=unknown
11211 hardcode_into_libs=no
11212
11213 # when you set need_version to no, make sure it does not cause -set_version
11214 # flags to be left without arguments
11215 need_version=unknown
11216
11217 case $host_os in
11218 aix3*)
11219   version_type=linux
11220   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11221   shlibpath_var=LIBPATH
11222
11223   # AIX 3 has no versioning support, so we append a major version to the name.
11224   soname_spec='${libname}${release}${shared_ext}$major'
11225   ;;
11226
11227 aix4* | aix5*)
11228   version_type=linux
11229   need_lib_prefix=no
11230   need_version=no
11231   hardcode_into_libs=yes
11232   if test "$host_cpu" = ia64; then
11233     # AIX 5 supports IA64
11234     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11235     shlibpath_var=LD_LIBRARY_PATH
11236   else
11237     # With GCC up to 2.95.x, collect2 would create an import file
11238     # for dependence libraries.  The import file would start with
11239     # the line `#! .'.  This would cause the generated library to
11240     # depend on `.', always an invalid library.  This was fixed in
11241     # development snapshots of GCC prior to 3.0.
11242     case $host_os in
11243       aix4 | aix4.[01] | aix4.[01].*)
11244       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11245            echo ' yes '
11246            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11247         :
11248       else
11249         can_build_shared=no
11250       fi
11251       ;;
11252     esac
11253     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11254     # soname into executable. Probably we can add versioning support to
11255     # collect2, so additional links can be useful in future.
11256     if test "$aix_use_runtimelinking" = yes; then
11257       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11258       # instead of lib<name>.a to let people know that these are not
11259       # typical AIX shared libraries.
11260       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261     else
11262       # We preserve .a as extension for shared libraries through AIX4.2
11263       # and later when we are not doing run time linking.
11264       library_names_spec='${libname}${release}.a $libname.a'
11265       soname_spec='${libname}${release}${shared_ext}$major'
11266     fi
11267     shlibpath_var=LIBPATH
11268   fi
11269   ;;
11270
11271 amigaos*)
11272   library_names_spec='$libname.ixlibrary $libname.a'
11273   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11274   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'
11275   ;;
11276
11277 beos*)
11278   library_names_spec='${libname}${shared_ext}'
11279   dynamic_linker="$host_os ld.so"
11280   shlibpath_var=LIBRARY_PATH
11281   ;;
11282
11283 bsdi4*)
11284   version_type=linux
11285   need_version=no
11286   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11287   soname_spec='${libname}${release}${shared_ext}$major'
11288   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11289   shlibpath_var=LD_LIBRARY_PATH
11290   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11291   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11292   # the default ld.so.conf also contains /usr/contrib/lib and
11293   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11294   # libtool to hard-code these into programs
11295   ;;
11296
11297 cygwin* | mingw* | pw32*)
11298   version_type=windows
11299   shrext=".dll"
11300   need_version=no
11301   need_lib_prefix=no
11302
11303   case $GCC,$host_os in
11304   yes,cygwin* | yes,mingw* | yes,pw32*)
11305     library_names_spec='$libname.dll.a'
11306     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11307     postinstall_cmds='base_file=`basename \${file}`~
11308       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11309       dldir=$destdir/`dirname \$dlpath`~
11310       test -d \$dldir || mkdir -p \$dldir~
11311       $install_prog $dir/$dlname \$dldir/$dlname'
11312     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11313       dlpath=$dir/\$dldll~
11314        $rm \$dlpath'
11315     shlibpath_overrides_runpath=yes
11316
11317     case $host_os in
11318     cygwin*)
11319       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11320       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11321       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
11322       ;;
11323     mingw*)
11324       # MinGW DLLs use traditional 'lib' prefix
11325       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11326       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11327       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11328         # It is most probably a Windows format PATH printed by
11329         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11330         # path with ; separators, and with drive letters. We can handle the
11331         # drive letters (cygwin fileutils understands them), so leave them,
11332         # especially as we might pass files found there to a mingw objdump,
11333         # which wouldn't understand a cygwinified path. Ahh.
11334         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11335       else
11336         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11337       fi
11338       ;;
11339     pw32*)
11340       # pw32 DLLs use 'pw' prefix rather than 'lib'
11341       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11342       ;;
11343     esac
11344     ;;
11345
11346   *)
11347     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11348     ;;
11349   esac
11350   dynamic_linker='Win32 ld.exe'
11351   # FIXME: first we should search . and the directory the executable is in
11352   shlibpath_var=PATH
11353   ;;
11354
11355 darwin* | rhapsody*)
11356   dynamic_linker="$host_os dyld"
11357   version_type=darwin
11358   need_lib_prefix=no
11359   need_version=no
11360   # FIXME: Relying on posixy $() will cause problems for
11361   #        cross-compilation, but unfortunately the echo tests do not
11362   #        yet detect zsh echo's removal of \ escapes.
11363   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11364   soname_spec='${libname}${release}${major}$shared_ext'
11365   shlibpath_overrides_runpath=yes
11366   shlibpath_var=DYLD_LIBRARY_PATH
11367   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
11368   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11369   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
11370   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"`
11371   fi
11372   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11373   ;;
11374
11375 dgux*)
11376   version_type=linux
11377   need_lib_prefix=no
11378   need_version=no
11379   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11380   soname_spec='${libname}${release}${shared_ext}$major'
11381   shlibpath_var=LD_LIBRARY_PATH
11382   ;;
11383
11384 freebsd1*)
11385   dynamic_linker=no
11386   ;;
11387
11388 freebsd*)
11389   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11390   version_type=freebsd-$objformat
11391   case $version_type in
11392     freebsd-elf*)
11393       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11394       need_version=no
11395       need_lib_prefix=no
11396       ;;
11397     freebsd-*)
11398       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11399       need_version=yes
11400       ;;
11401   esac
11402   shlibpath_var=LD_LIBRARY_PATH
11403   case $host_os in
11404   freebsd2*)
11405     shlibpath_overrides_runpath=yes
11406     ;;
11407   freebsd3.01* | freebsdelf3.01*)
11408     shlibpath_overrides_runpath=yes
11409     hardcode_into_libs=yes
11410     ;;
11411   *) # from 3.2 on
11412     shlibpath_overrides_runpath=no
11413     hardcode_into_libs=yes
11414     ;;
11415   esac
11416   ;;
11417
11418 gnu*)
11419   version_type=linux
11420   need_lib_prefix=no
11421   need_version=no
11422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11423   soname_spec='${libname}${release}${shared_ext}$major'
11424   shlibpath_var=LD_LIBRARY_PATH
11425   hardcode_into_libs=yes
11426   ;;
11427
11428 hpux9* | hpux10* | hpux11*)
11429   # Give a soname corresponding to the major version so that dld.sl refuses to
11430   # link against other versions.
11431   version_type=sunos
11432   need_lib_prefix=no
11433   need_version=no
11434   case "$host_cpu" in
11435   ia64*)
11436     shrext='.so'
11437     hardcode_into_libs=yes
11438     dynamic_linker="$host_os dld.so"
11439     shlibpath_var=LD_LIBRARY_PATH
11440     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11441     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11442     soname_spec='${libname}${release}${shared_ext}$major'
11443     if test "X$HPUX_IA64_MODE" = X32; then
11444       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11445     else
11446       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11447     fi
11448     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11449     ;;
11450    hppa*64*)
11451      shrext='.sl'
11452      hardcode_into_libs=yes
11453      dynamic_linker="$host_os dld.sl"
11454      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11455      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11456      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11457      soname_spec='${libname}${release}${shared_ext}$major'
11458      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11459      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11460      ;;
11461    *)
11462     shrext='.sl'
11463     dynamic_linker="$host_os dld.sl"
11464     shlibpath_var=SHLIB_PATH
11465     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11466     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11467     soname_spec='${libname}${release}${shared_ext}$major'
11468     ;;
11469   esac
11470   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11471   postinstall_cmds='chmod 555 $lib'
11472   ;;
11473
11474 irix5* | irix6* | nonstopux*)
11475   case $host_os in
11476     nonstopux*) version_type=nonstopux ;;
11477     *)
11478         if test "$lt_cv_prog_gnu_ld" = yes; then
11479                 version_type=linux
11480         else
11481                 version_type=irix
11482         fi ;;
11483   esac
11484   need_lib_prefix=no
11485   need_version=no
11486   soname_spec='${libname}${release}${shared_ext}$major'
11487   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11488   case $host_os in
11489   irix5* | nonstopux*)
11490     libsuff= shlibsuff=
11491     ;;
11492   *)
11493     case $LD in # libtool.m4 will add one of these switches to LD
11494     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11495       libsuff= shlibsuff= libmagic=32-bit;;
11496     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11497       libsuff=32 shlibsuff=N32 libmagic=N32;;
11498     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11499       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11500     *) libsuff= shlibsuff= libmagic=never-match;;
11501     esac
11502     ;;
11503   esac
11504   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11505   shlibpath_overrides_runpath=no
11506   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11507   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11508   hardcode_into_libs=yes
11509   ;;
11510
11511 # No shared lib support for Linux oldld, aout, or coff.
11512 linux*oldld* | linux*aout* | linux*coff*)
11513   dynamic_linker=no
11514   ;;
11515
11516 # This must be Linux ELF.
11517 linux*)
11518   version_type=linux
11519   need_lib_prefix=no
11520   need_version=no
11521   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11522   soname_spec='${libname}${release}${shared_ext}$major'
11523   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11524   shlibpath_var=LD_LIBRARY_PATH
11525   shlibpath_overrides_runpath=no
11526   # This implies no fast_install, which is unacceptable.
11527   # Some rework will be needed to allow for fast_install
11528   # before this can be enabled.
11529   hardcode_into_libs=yes
11530
11531   # We used to test for /lib/ld.so.1 and disable shared libraries on
11532   # powerpc, because MkLinux only supported shared libraries with the
11533   # GNU dynamic linker.  Since this was broken with cross compilers,
11534   # most powerpc-linux boxes support dynamic linking these days and
11535   # people can always --disable-shared, the test was removed, and we
11536   # assume the GNU/Linux dynamic linker is in use.
11537   dynamic_linker='GNU/Linux ld.so'
11538
11539   # Find out which ABI we are using (multilib Linux x86_64 hack).
11540   libsuff=
11541   case "$host_cpu" in
11542   x86_64*|s390x*)
11543     echo '#line 11543 "configure"' > conftest.$ac_ext
11544     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11545   (eval $ac_compile) 2>&5
11546   ac_status=$?
11547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11548   (exit $ac_status); }; then
11549       case `/usr/bin/file conftest.$ac_objext` in
11550       *64-bit*)
11551         libsuff=64
11552         ;;
11553       esac
11554     fi
11555     rm -rf conftest*
11556     ;;
11557   *)
11558     ;;
11559   esac
11560   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
11561   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11562   ;;
11563
11564 netbsd*)
11565   version_type=sunos
11566   need_lib_prefix=no
11567   need_version=no
11568   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11569     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11570     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11571     dynamic_linker='NetBSD (a.out) ld.so'
11572   else
11573     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
11574     soname_spec='${libname}${release}${shared_ext}$major'
11575     dynamic_linker='NetBSD ld.elf_so'
11576   fi
11577   shlibpath_var=LD_LIBRARY_PATH
11578   shlibpath_overrides_runpath=yes
11579   hardcode_into_libs=yes
11580   ;;
11581
11582 newsos6)
11583   version_type=linux
11584   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11585   shlibpath_var=LD_LIBRARY_PATH
11586   shlibpath_overrides_runpath=yes
11587   ;;
11588
11589 nto-qnx)
11590   version_type=linux
11591   need_lib_prefix=no
11592   need_version=no
11593   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11594   soname_spec='${libname}${release}${shared_ext}$major'
11595   shlibpath_var=LD_LIBRARY_PATH
11596   shlibpath_overrides_runpath=yes
11597   ;;
11598
11599 openbsd*)
11600   version_type=sunos
11601   need_lib_prefix=no
11602   need_version=no
11603   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11604   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11605   shlibpath_var=LD_LIBRARY_PATH
11606   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11607     case $host_os in
11608       openbsd2.[89] | openbsd2.[89].*)
11609         shlibpath_overrides_runpath=no
11610         ;;
11611       *)
11612         shlibpath_overrides_runpath=yes
11613         ;;
11614       esac
11615   else
11616     shlibpath_overrides_runpath=yes
11617   fi
11618   ;;
11619
11620 os2*)
11621   libname_spec='$name'
11622   shrext=".dll"
11623   need_lib_prefix=no
11624   library_names_spec='$libname${shared_ext} $libname.a'
11625   dynamic_linker='OS/2 ld.exe'
11626   shlibpath_var=LIBPATH
11627   ;;
11628
11629 osf3* | osf4* | osf5*)
11630   version_type=osf
11631   need_lib_prefix=no
11632   need_version=no
11633   soname_spec='${libname}${release}${shared_ext}$major'
11634   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11635   shlibpath_var=LD_LIBRARY_PATH
11636   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11637   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11638   ;;
11639
11640 sco3.2v5*)
11641   version_type=osf
11642   soname_spec='${libname}${release}${shared_ext}$major'
11643   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11644   shlibpath_var=LD_LIBRARY_PATH
11645   ;;
11646
11647 solaris*)
11648   version_type=linux
11649   need_lib_prefix=no
11650   need_version=no
11651   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11652   soname_spec='${libname}${release}${shared_ext}$major'
11653   shlibpath_var=LD_LIBRARY_PATH
11654   shlibpath_overrides_runpath=yes
11655   hardcode_into_libs=yes
11656   # ldd complains unless libraries are executable
11657   postinstall_cmds='chmod +x $lib'
11658   ;;
11659
11660 sunos4*)
11661   version_type=sunos
11662   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11663   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11664   shlibpath_var=LD_LIBRARY_PATH
11665   shlibpath_overrides_runpath=yes
11666   if test "$with_gnu_ld" = yes; then
11667     need_lib_prefix=no
11668   fi
11669   need_version=yes
11670   ;;
11671
11672 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11673   version_type=linux
11674   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11675   soname_spec='${libname}${release}${shared_ext}$major'
11676   shlibpath_var=LD_LIBRARY_PATH
11677   case $host_vendor in
11678     sni)
11679       shlibpath_overrides_runpath=no
11680       need_lib_prefix=no
11681       export_dynamic_flag_spec='${wl}-Blargedynsym'
11682       runpath_var=LD_RUN_PATH
11683       ;;
11684     siemens)
11685       need_lib_prefix=no
11686       ;;
11687     motorola)
11688       need_lib_prefix=no
11689       need_version=no
11690       shlibpath_overrides_runpath=no
11691       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11692       ;;
11693   esac
11694   ;;
11695
11696 sysv4*MP*)
11697   if test -d /usr/nec ;then
11698     version_type=linux
11699     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11700     soname_spec='$libname${shared_ext}.$major'
11701     shlibpath_var=LD_LIBRARY_PATH
11702   fi
11703   ;;
11704
11705 uts4*)
11706   version_type=linux
11707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11708   soname_spec='${libname}${release}${shared_ext}$major'
11709   shlibpath_var=LD_LIBRARY_PATH
11710   ;;
11711
11712 *)
11713   dynamic_linker=no
11714   ;;
11715 esac
11716 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11717 echo "${ECHO_T}$dynamic_linker" >&6
11718 test "$dynamic_linker" = no && can_build_shared=no
11719
11720 if test "x$enable_dlopen" != xyes; then
11721   enable_dlopen=unknown
11722   enable_dlopen_self=unknown
11723   enable_dlopen_self_static=unknown
11724 else
11725   lt_cv_dlopen=no
11726   lt_cv_dlopen_libs=
11727
11728   case $host_os in
11729   beos*)
11730     lt_cv_dlopen="load_add_on"
11731     lt_cv_dlopen_libs=
11732     lt_cv_dlopen_self=yes
11733     ;;
11734
11735   mingw* | pw32*)
11736     lt_cv_dlopen="LoadLibrary"
11737     lt_cv_dlopen_libs=
11738    ;;
11739
11740   cygwin*)
11741     lt_cv_dlopen="dlopen"
11742     lt_cv_dlopen_libs=
11743    ;;
11744
11745   darwin*)
11746   # if libdl is installed we need to link against it
11747     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11748 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11749 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11750   echo $ECHO_N "(cached) $ECHO_C" >&6
11751 else
11752   ac_check_lib_save_LIBS=$LIBS
11753 LIBS="-ldl  $LIBS"
11754 cat >conftest.$ac_ext <<_ACEOF
11755 #line $LINENO "configure"
11756 /* confdefs.h.  */
11757 _ACEOF
11758 cat confdefs.h >>conftest.$ac_ext
11759 cat >>conftest.$ac_ext <<_ACEOF
11760 /* end confdefs.h.  */
11761
11762 /* Override any gcc2 internal prototype to avoid an error.  */
11763 #ifdef __cplusplus
11764 extern "C"
11765 #endif
11766 /* We use char because int might match the return type of a gcc2
11767    builtin and then its argument prototype would still apply.  */
11768 char dlopen ();
11769 int
11770 main ()
11771 {
11772 dlopen ();
11773   ;
11774   return 0;
11775 }
11776 _ACEOF
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11779   (eval $ac_link) 2>&5
11780   ac_status=$?
11781   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782   (exit $ac_status); } &&
11783          { ac_try='test -s conftest$ac_exeext'
11784   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11785   (eval $ac_try) 2>&5
11786   ac_status=$?
11787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788   (exit $ac_status); }; }; then
11789   ac_cv_lib_dl_dlopen=yes
11790 else
11791   echo "$as_me: failed program was:" >&5
11792 sed 's/^/| /' conftest.$ac_ext >&5
11793
11794 ac_cv_lib_dl_dlopen=no
11795 fi
11796 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11797 LIBS=$ac_check_lib_save_LIBS
11798 fi
11799 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11800 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11801 if test $ac_cv_lib_dl_dlopen = yes; then
11802   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11803 else
11804
11805     lt_cv_dlopen="dyld"
11806     lt_cv_dlopen_libs=
11807     lt_cv_dlopen_self=yes
11808
11809 fi
11810
11811    ;;
11812
11813   *)
11814     echo "$as_me:$LINENO: checking for shl_load" >&5
11815 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
11816 if test "${ac_cv_func_shl_load+set}" = set; then
11817   echo $ECHO_N "(cached) $ECHO_C" >&6
11818 else
11819   cat >conftest.$ac_ext <<_ACEOF
11820 #line $LINENO "configure"
11821 /* confdefs.h.  */
11822 _ACEOF
11823 cat confdefs.h >>conftest.$ac_ext
11824 cat >>conftest.$ac_ext <<_ACEOF
11825 /* end confdefs.h.  */
11826 /* System header to define __stub macros and hopefully few prototypes,
11827     which can conflict with char shl_load (); below.
11828     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11829     <limits.h> exists even on freestanding compilers.  */
11830 #ifdef __STDC__
11831 # include <limits.h>
11832 #else
11833 # include <assert.h>
11834 #endif
11835 /* Override any gcc2 internal prototype to avoid an error.  */
11836 #ifdef __cplusplus
11837 extern "C"
11838 {
11839 #endif
11840 /* We use char because int might match the return type of a gcc2
11841    builtin and then its argument prototype would still apply.  */
11842 char shl_load ();
11843 /* The GNU C library defines this for functions which it implements
11844     to always fail with ENOSYS.  Some functions are actually named
11845     something starting with __ and the normal name is an alias.  */
11846 #if defined (__stub_shl_load) || defined (__stub___shl_load)
11847 choke me
11848 #else
11849 char (*f) () = shl_load;
11850 #endif
11851 #ifdef __cplusplus
11852 }
11853 #endif
11854
11855 int
11856 main ()
11857 {
11858 return f != shl_load;
11859   ;
11860   return 0;
11861 }
11862 _ACEOF
11863 rm -f conftest.$ac_objext conftest$ac_exeext
11864 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11865   (eval $ac_link) 2>&5
11866   ac_status=$?
11867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11868   (exit $ac_status); } &&
11869          { ac_try='test -s conftest$ac_exeext'
11870   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11871   (eval $ac_try) 2>&5
11872   ac_status=$?
11873   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11874   (exit $ac_status); }; }; then
11875   ac_cv_func_shl_load=yes
11876 else
11877   echo "$as_me: failed program was:" >&5
11878 sed 's/^/| /' conftest.$ac_ext >&5
11879
11880 ac_cv_func_shl_load=no
11881 fi
11882 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11883 fi
11884 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
11885 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
11886 if test $ac_cv_func_shl_load = yes; then
11887   lt_cv_dlopen="shl_load"
11888 else
11889   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
11890 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
11891 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
11892   echo $ECHO_N "(cached) $ECHO_C" >&6
11893 else
11894   ac_check_lib_save_LIBS=$LIBS
11895 LIBS="-ldld  $LIBS"
11896 cat >conftest.$ac_ext <<_ACEOF
11897 #line $LINENO "configure"
11898 /* confdefs.h.  */
11899 _ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h.  */
11903
11904 /* Override any gcc2 internal prototype to avoid an error.  */
11905 #ifdef __cplusplus
11906 extern "C"
11907 #endif
11908 /* We use char because int might match the return type of a gcc2
11909    builtin and then its argument prototype would still apply.  */
11910 char shl_load ();
11911 int
11912 main ()
11913 {
11914 shl_load ();
11915   ;
11916   return 0;
11917 }
11918 _ACEOF
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11921   (eval $ac_link) 2>&5
11922   ac_status=$?
11923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924   (exit $ac_status); } &&
11925          { ac_try='test -s conftest$ac_exeext'
11926   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11927   (eval $ac_try) 2>&5
11928   ac_status=$?
11929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930   (exit $ac_status); }; }; then
11931   ac_cv_lib_dld_shl_load=yes
11932 else
11933   echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11935
11936 ac_cv_lib_dld_shl_load=no
11937 fi
11938 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11940 fi
11941 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
11942 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
11943 if test $ac_cv_lib_dld_shl_load = yes; then
11944   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
11945 else
11946   echo "$as_me:$LINENO: checking for dlopen" >&5
11947 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
11948 if test "${ac_cv_func_dlopen+set}" = set; then
11949   echo $ECHO_N "(cached) $ECHO_C" >&6
11950 else
11951   cat >conftest.$ac_ext <<_ACEOF
11952 #line $LINENO "configure"
11953 /* confdefs.h.  */
11954 _ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h.  */
11958 /* System header to define __stub macros and hopefully few prototypes,
11959     which can conflict with char dlopen (); below.
11960     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11961     <limits.h> exists even on freestanding compilers.  */
11962 #ifdef __STDC__
11963 # include <limits.h>
11964 #else
11965 # include <assert.h>
11966 #endif
11967 /* Override any gcc2 internal prototype to avoid an error.  */
11968 #ifdef __cplusplus
11969 extern "C"
11970 {
11971 #endif
11972 /* We use char because int might match the return type of a gcc2
11973    builtin and then its argument prototype would still apply.  */
11974 char dlopen ();
11975 /* The GNU C library defines this for functions which it implements
11976     to always fail with ENOSYS.  Some functions are actually named
11977     something starting with __ and the normal name is an alias.  */
11978 #if defined (__stub_dlopen) || defined (__stub___dlopen)
11979 choke me
11980 #else
11981 char (*f) () = dlopen;
11982 #endif
11983 #ifdef __cplusplus
11984 }
11985 #endif
11986
11987 int
11988 main ()
11989 {
11990 return f != dlopen;
11991   ;
11992   return 0;
11993 }
11994 _ACEOF
11995 rm -f conftest.$ac_objext conftest$ac_exeext
11996 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11997   (eval $ac_link) 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); } &&
12001          { ac_try='test -s conftest$ac_exeext'
12002   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12003   (eval $ac_try) 2>&5
12004   ac_status=$?
12005   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006   (exit $ac_status); }; }; then
12007   ac_cv_func_dlopen=yes
12008 else
12009   echo "$as_me: failed program was:" >&5
12010 sed 's/^/| /' conftest.$ac_ext >&5
12011
12012 ac_cv_func_dlopen=no
12013 fi
12014 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12015 fi
12016 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12017 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12018 if test $ac_cv_func_dlopen = yes; then
12019   lt_cv_dlopen="dlopen"
12020 else
12021   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12022 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12023 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12024   echo $ECHO_N "(cached) $ECHO_C" >&6
12025 else
12026   ac_check_lib_save_LIBS=$LIBS
12027 LIBS="-ldl  $LIBS"
12028 cat >conftest.$ac_ext <<_ACEOF
12029 #line $LINENO "configure"
12030 /* confdefs.h.  */
12031 _ACEOF
12032 cat confdefs.h >>conftest.$ac_ext
12033 cat >>conftest.$ac_ext <<_ACEOF
12034 /* end confdefs.h.  */
12035
12036 /* Override any gcc2 internal prototype to avoid an error.  */
12037 #ifdef __cplusplus
12038 extern "C"
12039 #endif
12040 /* We use char because int might match the return type of a gcc2
12041    builtin and then its argument prototype would still apply.  */
12042 char dlopen ();
12043 int
12044 main ()
12045 {
12046 dlopen ();
12047   ;
12048   return 0;
12049 }
12050 _ACEOF
12051 rm -f conftest.$ac_objext conftest$ac_exeext
12052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12053   (eval $ac_link) 2>&5
12054   ac_status=$?
12055   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056   (exit $ac_status); } &&
12057          { ac_try='test -s conftest$ac_exeext'
12058   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12059   (eval $ac_try) 2>&5
12060   ac_status=$?
12061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12062   (exit $ac_status); }; }; then
12063   ac_cv_lib_dl_dlopen=yes
12064 else
12065   echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 ac_cv_lib_dl_dlopen=no
12069 fi
12070 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12071 LIBS=$ac_check_lib_save_LIBS
12072 fi
12073 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12074 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12075 if test $ac_cv_lib_dl_dlopen = yes; then
12076   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12077 else
12078   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12079 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12080 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12081   echo $ECHO_N "(cached) $ECHO_C" >&6
12082 else
12083   ac_check_lib_save_LIBS=$LIBS
12084 LIBS="-lsvld  $LIBS"
12085 cat >conftest.$ac_ext <<_ACEOF
12086 #line $LINENO "configure"
12087 /* confdefs.h.  */
12088 _ACEOF
12089 cat confdefs.h >>conftest.$ac_ext
12090 cat >>conftest.$ac_ext <<_ACEOF
12091 /* end confdefs.h.  */
12092
12093 /* Override any gcc2 internal prototype to avoid an error.  */
12094 #ifdef __cplusplus
12095 extern "C"
12096 #endif
12097 /* We use char because int might match the return type of a gcc2
12098    builtin and then its argument prototype would still apply.  */
12099 char dlopen ();
12100 int
12101 main ()
12102 {
12103 dlopen ();
12104   ;
12105   return 0;
12106 }
12107 _ACEOF
12108 rm -f conftest.$ac_objext conftest$ac_exeext
12109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12110   (eval $ac_link) 2>&5
12111   ac_status=$?
12112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12113   (exit $ac_status); } &&
12114          { ac_try='test -s conftest$ac_exeext'
12115   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12116   (eval $ac_try) 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); }; }; then
12120   ac_cv_lib_svld_dlopen=yes
12121 else
12122   echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12124
12125 ac_cv_lib_svld_dlopen=no
12126 fi
12127 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12128 LIBS=$ac_check_lib_save_LIBS
12129 fi
12130 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12131 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12132 if test $ac_cv_lib_svld_dlopen = yes; then
12133   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12134 else
12135   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12136 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12137 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12138   echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140   ac_check_lib_save_LIBS=$LIBS
12141 LIBS="-ldld  $LIBS"
12142 cat >conftest.$ac_ext <<_ACEOF
12143 #line $LINENO "configure"
12144 /* confdefs.h.  */
12145 _ACEOF
12146 cat confdefs.h >>conftest.$ac_ext
12147 cat >>conftest.$ac_ext <<_ACEOF
12148 /* end confdefs.h.  */
12149
12150 /* Override any gcc2 internal prototype to avoid an error.  */
12151 #ifdef __cplusplus
12152 extern "C"
12153 #endif
12154 /* We use char because int might match the return type of a gcc2
12155    builtin and then its argument prototype would still apply.  */
12156 char dld_link ();
12157 int
12158 main ()
12159 {
12160 dld_link ();
12161   ;
12162   return 0;
12163 }
12164 _ACEOF
12165 rm -f conftest.$ac_objext conftest$ac_exeext
12166 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12167   (eval $ac_link) 2>&5
12168   ac_status=$?
12169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12170   (exit $ac_status); } &&
12171          { ac_try='test -s conftest$ac_exeext'
12172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12173   (eval $ac_try) 2>&5
12174   ac_status=$?
12175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12176   (exit $ac_status); }; }; then
12177   ac_cv_lib_dld_dld_link=yes
12178 else
12179   echo "$as_me: failed program was:" >&5
12180 sed 's/^/| /' conftest.$ac_ext >&5
12181
12182 ac_cv_lib_dld_dld_link=no
12183 fi
12184 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
12185 LIBS=$ac_check_lib_save_LIBS
12186 fi
12187 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12188 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12189 if test $ac_cv_lib_dld_dld_link = yes; then
12190   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12191 fi
12192
12193
12194 fi
12195
12196
12197 fi
12198
12199
12200 fi
12201
12202
12203 fi
12204
12205
12206 fi
12207
12208     ;;
12209   esac
12210
12211   if test "x$lt_cv_dlopen" != xno; then
12212     enable_dlopen=yes
12213   else
12214     enable_dlopen=no
12215   fi
12216
12217   case $lt_cv_dlopen in
12218   dlopen)
12219     save_CPPFLAGS="$CPPFLAGS"
12220     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12221
12222     save_LDFLAGS="$LDFLAGS"
12223     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12224
12225     save_LIBS="$LIBS"
12226     LIBS="$lt_cv_dlopen_libs $LIBS"
12227
12228     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12229 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12230 if test "${lt_cv_dlopen_self+set}" = set; then
12231   echo $ECHO_N "(cached) $ECHO_C" >&6
12232 else
12233           if test "$cross_compiling" = yes; then :
12234   lt_cv_dlopen_self=cross
12235 else
12236   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12237   lt_status=$lt_dlunknown
12238   cat > conftest.$ac_ext <<EOF
12239 #line 12239 "configure"
12240 #include "confdefs.h"
12241
12242 #if HAVE_DLFCN_H
12243 #include <dlfcn.h>
12244 #endif
12245
12246 #include <stdio.h>
12247
12248 #ifdef RTLD_GLOBAL
12249 #  define LT_DLGLOBAL           RTLD_GLOBAL
12250 #else
12251 #  ifdef DL_GLOBAL
12252 #    define LT_DLGLOBAL         DL_GLOBAL
12253 #  else
12254 #    define LT_DLGLOBAL         0
12255 #  endif
12256 #endif
12257
12258 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12259    find out it does not work in some platform. */
12260 #ifndef LT_DLLAZY_OR_NOW
12261 #  ifdef RTLD_LAZY
12262 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12263 #  else
12264 #    ifdef DL_LAZY
12265 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12266 #    else
12267 #      ifdef RTLD_NOW
12268 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12269 #      else
12270 #        ifdef DL_NOW
12271 #          define LT_DLLAZY_OR_NOW      DL_NOW
12272 #        else
12273 #          define LT_DLLAZY_OR_NOW      0
12274 #        endif
12275 #      endif
12276 #    endif
12277 #  endif
12278 #endif
12279
12280 #ifdef __cplusplus
12281 extern "C" void exit (int);
12282 #endif
12283
12284 void fnord() { int i=42;}
12285 int main ()
12286 {
12287   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12288   int status = $lt_dlunknown;
12289
12290   if (self)
12291     {
12292       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12293       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12294       /* dlclose (self); */
12295     }
12296
12297     exit (status);
12298 }
12299 EOF
12300   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12301   (eval $ac_link) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12305     (./conftest; exit; ) 2>/dev/null
12306     lt_status=$?
12307     case x$lt_status in
12308       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12309       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12310       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12311     esac
12312   else :
12313     # compilation failed
12314     lt_cv_dlopen_self=no
12315   fi
12316 fi
12317 rm -fr conftest*
12318
12319
12320 fi
12321 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12322 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12323
12324     if test "x$lt_cv_dlopen_self" = xyes; then
12325       LDFLAGS="$LDFLAGS $link_static_flag"
12326       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12327 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12328 if test "${lt_cv_dlopen_self_static+set}" = set; then
12329   echo $ECHO_N "(cached) $ECHO_C" >&6
12330 else
12331           if test "$cross_compiling" = yes; then :
12332   lt_cv_dlopen_self_static=cross
12333 else
12334   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12335   lt_status=$lt_dlunknown
12336   cat > conftest.$ac_ext <<EOF
12337 #line 12337 "configure"
12338 #include "confdefs.h"
12339
12340 #if HAVE_DLFCN_H
12341 #include <dlfcn.h>
12342 #endif
12343
12344 #include <stdio.h>
12345
12346 #ifdef RTLD_GLOBAL
12347 #  define LT_DLGLOBAL           RTLD_GLOBAL
12348 #else
12349 #  ifdef DL_GLOBAL
12350 #    define LT_DLGLOBAL         DL_GLOBAL
12351 #  else
12352 #    define LT_DLGLOBAL         0
12353 #  endif
12354 #endif
12355
12356 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12357    find out it does not work in some platform. */
12358 #ifndef LT_DLLAZY_OR_NOW
12359 #  ifdef RTLD_LAZY
12360 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12361 #  else
12362 #    ifdef DL_LAZY
12363 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12364 #    else
12365 #      ifdef RTLD_NOW
12366 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12367 #      else
12368 #        ifdef DL_NOW
12369 #          define LT_DLLAZY_OR_NOW      DL_NOW
12370 #        else
12371 #          define LT_DLLAZY_OR_NOW      0
12372 #        endif
12373 #      endif
12374 #    endif
12375 #  endif
12376 #endif
12377
12378 #ifdef __cplusplus
12379 extern "C" void exit (int);
12380 #endif
12381
12382 void fnord() { int i=42;}
12383 int main ()
12384 {
12385   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12386   int status = $lt_dlunknown;
12387
12388   if (self)
12389     {
12390       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12391       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12392       /* dlclose (self); */
12393     }
12394
12395     exit (status);
12396 }
12397 EOF
12398   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12399   (eval $ac_link) 2>&5
12400   ac_status=$?
12401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12403     (./conftest; exit; ) 2>/dev/null
12404     lt_status=$?
12405     case x$lt_status in
12406       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12407       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12408       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12409     esac
12410   else :
12411     # compilation failed
12412     lt_cv_dlopen_self_static=no
12413   fi
12414 fi
12415 rm -fr conftest*
12416
12417
12418 fi
12419 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12420 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12421     fi
12422
12423     CPPFLAGS="$save_CPPFLAGS"
12424     LDFLAGS="$save_LDFLAGS"
12425     LIBS="$save_LIBS"
12426     ;;
12427   esac
12428
12429   case $lt_cv_dlopen_self in
12430   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12431   *) enable_dlopen_self=unknown ;;
12432   esac
12433
12434   case $lt_cv_dlopen_self_static in
12435   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12436   *) enable_dlopen_self_static=unknown ;;
12437   esac
12438 fi
12439
12440
12441 # The else clause should only fire when bootstrapping the
12442 # libtool distribution, otherwise you forgot to ship ltmain.sh
12443 # with your package, and you will get complaints that there are
12444 # no rules to generate ltmain.sh.
12445 if test -f "$ltmain"; then
12446   # See if we are running on zsh, and set the options which allow our commands through
12447   # without removal of \ escapes.
12448   if test -n "${ZSH_VERSION+set}" ; then
12449     setopt NO_GLOB_SUBST
12450   fi
12451   # Now quote all the things that may contain metacharacters while being
12452   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12453   # variables and quote the copies for generation of the libtool script.
12454   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
12455     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12456     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12457     deplibs_check_method reload_flag reload_cmds need_locks \
12458     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12459     lt_cv_sys_global_symbol_to_c_name_address \
12460     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12461     old_postinstall_cmds old_postuninstall_cmds \
12462     compiler_CXX \
12463     CC_CXX \
12464     LD_CXX \
12465     lt_prog_compiler_wl_CXX \
12466     lt_prog_compiler_pic_CXX \
12467     lt_prog_compiler_static_CXX \
12468     lt_prog_compiler_no_builtin_flag_CXX \
12469     export_dynamic_flag_spec_CXX \
12470     thread_safe_flag_spec_CXX \
12471     whole_archive_flag_spec_CXX \
12472     enable_shared_with_static_runtimes_CXX \
12473     old_archive_cmds_CXX \
12474     old_archive_from_new_cmds_CXX \
12475     predep_objects_CXX \
12476     postdep_objects_CXX \
12477     predeps_CXX \
12478     postdeps_CXX \
12479     compiler_lib_search_path_CXX \
12480     archive_cmds_CXX \
12481     archive_expsym_cmds_CXX \
12482     postinstall_cmds_CXX \
12483     postuninstall_cmds_CXX \
12484     old_archive_from_expsyms_cmds_CXX \
12485     allow_undefined_flag_CXX \
12486     no_undefined_flag_CXX \
12487     export_symbols_cmds_CXX \
12488     hardcode_libdir_flag_spec_CXX \
12489     hardcode_libdir_flag_spec_ld_CXX \
12490     hardcode_libdir_separator_CXX \
12491     hardcode_automatic_CXX \
12492     module_cmds_CXX \
12493     module_expsym_cmds_CXX \
12494     lt_cv_prog_compiler_c_o_CXX \
12495     exclude_expsyms_CXX \
12496     include_expsyms_CXX; do
12497
12498     case $var in
12499     old_archive_cmds_CXX | \
12500     old_archive_from_new_cmds_CXX | \
12501     archive_cmds_CXX | \
12502     archive_expsym_cmds_CXX | \
12503     module_cmds_CXX | \
12504     module_expsym_cmds_CXX | \
12505     old_archive_from_expsyms_cmds_CXX | \
12506     export_symbols_cmds_CXX | \
12507     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12508     postinstall_cmds | postuninstall_cmds | \
12509     old_postinstall_cmds | old_postuninstall_cmds | \
12510     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12511       # Double-quote double-evaled strings.
12512       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12513       ;;
12514     *)
12515       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12516       ;;
12517     esac
12518   done
12519
12520   case $lt_echo in
12521   *'\$0 --fallback-echo"')
12522     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12523     ;;
12524   esac
12525
12526 cfgfile="$ofile"
12527
12528   cat <<__EOF__ >> "$cfgfile"
12529 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12530
12531 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12532
12533 # Shell to use when invoking shell scripts.
12534 SHELL=$lt_SHELL
12535
12536 # Whether or not to build shared libraries.
12537 build_libtool_libs=$enable_shared
12538
12539 # Whether or not to build static libraries.
12540 build_old_libs=$enable_static
12541
12542 # Whether or not to add -lc for building shared libraries.
12543 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12544
12545 # Whether or not to disallow shared libs when runtime libs are static
12546 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12547
12548 # Whether or not to optimize for fast installation.
12549 fast_install=$enable_fast_install
12550
12551 # The host system.
12552 host_alias=$host_alias
12553 host=$host
12554
12555 # An echo program that does not interpret backslashes.
12556 echo=$lt_echo
12557
12558 # The archiver.
12559 AR=$lt_AR
12560 AR_FLAGS=$lt_AR_FLAGS
12561
12562 # A C compiler.
12563 LTCC=$lt_LTCC
12564
12565 # A language-specific compiler.
12566 CC=$lt_compiler_CXX
12567
12568 # Is the compiler the GNU C compiler?
12569 with_gcc=$GCC_CXX
12570
12571 # An ERE matcher.
12572 EGREP=$lt_EGREP
12573
12574 # The linker used to build libraries.
12575 LD=$lt_LD_CXX
12576
12577 # Whether we need hard or soft links.
12578 LN_S=$lt_LN_S
12579
12580 # A BSD-compatible nm program.
12581 NM=$lt_NM
12582
12583 # A symbol stripping program
12584 STRIP=$STRIP
12585
12586 # Used to examine libraries when file_magic_cmd begins "file"
12587 MAGIC_CMD=$MAGIC_CMD
12588
12589 # Used on cygwin: DLL creation program.
12590 DLLTOOL="$DLLTOOL"
12591
12592 # Used on cygwin: object dumper.
12593 OBJDUMP="$OBJDUMP"
12594
12595 # Used on cygwin: assembler.
12596 AS="$AS"
12597
12598 # The name of the directory that contains temporary libtool files.
12599 objdir=$objdir
12600
12601 # How to create reloadable object files.
12602 reload_flag=$lt_reload_flag
12603 reload_cmds=$lt_reload_cmds
12604
12605 # How to pass a linker flag through the compiler.
12606 wl=$lt_lt_prog_compiler_wl_CXX
12607
12608 # Object file suffix (normally "o").
12609 objext="$ac_objext"
12610
12611 # Old archive suffix (normally "a").
12612 libext="$libext"
12613
12614 # Shared library suffix (normally ".so").
12615 shrext='$shrext'
12616
12617 # Executable file suffix (normally "").
12618 exeext="$exeext"
12619
12620 # Additional compiler flags for building library objects.
12621 pic_flag=$lt_lt_prog_compiler_pic_CXX
12622 pic_mode=$pic_mode
12623
12624 # What is the maximum length of a command?
12625 max_cmd_len=$lt_cv_sys_max_cmd_len
12626
12627 # Does compiler simultaneously support -c and -o options?
12628 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12629
12630 # Must we lock files when doing compilation ?
12631 need_locks=$lt_need_locks
12632
12633 # Do we need the lib prefix for modules?
12634 need_lib_prefix=$need_lib_prefix
12635
12636 # Do we need a version for libraries?
12637 need_version=$need_version
12638
12639 # Whether dlopen is supported.
12640 dlopen_support=$enable_dlopen
12641
12642 # Whether dlopen of programs is supported.
12643 dlopen_self=$enable_dlopen_self
12644
12645 # Whether dlopen of statically linked programs is supported.
12646 dlopen_self_static=$enable_dlopen_self_static
12647
12648 # Compiler flag to prevent dynamic linking.
12649 link_static_flag=$lt_lt_prog_compiler_static_CXX
12650
12651 # Compiler flag to turn off builtin functions.
12652 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12653
12654 # Compiler flag to allow reflexive dlopens.
12655 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12656
12657 # Compiler flag to generate shared objects directly from archives.
12658 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12659
12660 # Compiler flag to generate thread-safe objects.
12661 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12662
12663 # Library versioning type.
12664 version_type=$version_type
12665
12666 # Format of library name prefix.
12667 libname_spec=$lt_libname_spec
12668
12669 # List of archive names.  First name is the real one, the rest are links.
12670 # The last name is the one that the linker finds with -lNAME.
12671 library_names_spec=$lt_library_names_spec
12672
12673 # The coded name of the library, if different from the real name.
12674 soname_spec=$lt_soname_spec
12675
12676 # Commands used to build and install an old-style archive.
12677 RANLIB=$lt_RANLIB
12678 old_archive_cmds=$lt_old_archive_cmds_CXX
12679 old_postinstall_cmds=$lt_old_postinstall_cmds
12680 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12681
12682 # Create an old-style archive from a shared archive.
12683 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12684
12685 # Create a temporary old-style archive to link instead of a shared archive.
12686 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12687
12688 # Commands used to build and install a shared archive.
12689 archive_cmds=$lt_archive_cmds_CXX
12690 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12691 postinstall_cmds=$lt_postinstall_cmds
12692 postuninstall_cmds=$lt_postuninstall_cmds
12693
12694 # Commands used to build a loadable module (assumed same as above if empty)
12695 module_cmds=$lt_module_cmds_CXX
12696 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12697
12698 # Commands to strip libraries.
12699 old_striplib=$lt_old_striplib
12700 striplib=$lt_striplib
12701
12702 # Dependencies to place before the objects being linked to create a
12703 # shared library.
12704 predep_objects=$lt_predep_objects_CXX
12705
12706 # Dependencies to place after the objects being linked to create a
12707 # shared library.
12708 postdep_objects=$lt_postdep_objects_CXX
12709
12710 # Dependencies to place before the objects being linked to create a
12711 # shared library.
12712 predeps=$lt_predeps_CXX
12713
12714 # Dependencies to place after the objects being linked to create a
12715 # shared library.
12716 postdeps=$lt_postdeps_CXX
12717
12718 # The library search path used internally by the compiler when linking
12719 # a shared library.
12720 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
12721
12722 # Method to check whether dependent libraries are shared objects.
12723 deplibs_check_method=$lt_deplibs_check_method
12724
12725 # Command to use when deplibs_check_method == file_magic.
12726 file_magic_cmd=$lt_file_magic_cmd
12727
12728 # Flag that allows shared libraries with undefined symbols to be built.
12729 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12730
12731 # Flag that forces no undefined symbols.
12732 no_undefined_flag=$lt_no_undefined_flag_CXX
12733
12734 # Commands used to finish a libtool library installation in a directory.
12735 finish_cmds=$lt_finish_cmds
12736
12737 # Same as above, but a single script fragment to be evaled but not shown.
12738 finish_eval=$lt_finish_eval
12739
12740 # Take the output of nm and produce a listing of raw symbols and C names.
12741 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12742
12743 # Transform the output of nm in a proper C declaration
12744 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12745
12746 # Transform the output of nm in a C name address pair
12747 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12748
12749 # This is the shared library runtime path variable.
12750 runpath_var=$runpath_var
12751
12752 # This is the shared library path variable.
12753 shlibpath_var=$shlibpath_var
12754
12755 # Is shlibpath searched before the hard-coded library search path?
12756 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12757
12758 # How to hardcode a shared library path into an executable.
12759 hardcode_action=$hardcode_action_CXX
12760
12761 # Whether we should hardcode library paths into libraries.
12762 hardcode_into_libs=$hardcode_into_libs
12763
12764 # Flag to hardcode \$libdir into a binary during linking.
12765 # This must work even if \$libdir does not exist.
12766 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12767
12768 # If ld is used when linking, flag to hardcode \$libdir into
12769 # a binary during linking. This must work even if \$libdir does
12770 # not exist.
12771 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12772
12773 # Whether we need a single -rpath flag with a separated argument.
12774 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12775
12776 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12777 # resulting binary.
12778 hardcode_direct=$hardcode_direct_CXX
12779
12780 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12781 # resulting binary.
12782 hardcode_minus_L=$hardcode_minus_L_CXX
12783
12784 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12785 # the resulting binary.
12786 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12787
12788 # Set to yes if building a shared library automatically hardcodes DIR into the library
12789 # and all subsequent libraries and executables linked against it.
12790 hardcode_automatic=$hardcode_automatic_CXX
12791
12792 # Variables whose values should be saved in libtool wrapper scripts and
12793 # restored at relink time.
12794 variables_saved_for_relink="$variables_saved_for_relink"
12795
12796 # Whether libtool must link a program against all its dependency libraries.
12797 link_all_deplibs=$link_all_deplibs_CXX
12798
12799 # Compile-time system search path for libraries
12800 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
12801
12802 # Run-time system search path for libraries
12803 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12804
12805 # Fix the shell variable \$srcfile for the compiler.
12806 fix_srcfile_path="$fix_srcfile_path_CXX"
12807
12808 # Set to yes if exported symbols are required.
12809 always_export_symbols=$always_export_symbols_CXX
12810
12811 # The commands to list exported symbols.
12812 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12813
12814 # The commands to extract the exported symbol list from a shared archive.
12815 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12816
12817 # Symbols that should not be listed in the preloaded symbols.
12818 exclude_expsyms=$lt_exclude_expsyms_CXX
12819
12820 # Symbols that must always be exported.
12821 include_expsyms=$lt_include_expsyms_CXX
12822
12823 # ### END LIBTOOL TAG CONFIG: $tagname
12824
12825 __EOF__
12826
12827
12828 else
12829   # If there is no Makefile yet, we rely on a make rule to execute
12830   # `config.status --recheck' to rerun these tests and create the
12831   # libtool script then.
12832   test -f Makefile && make "$ltmain"
12833 fi
12834
12835
12836 ac_ext=c
12837 ac_cpp='$CPP $CPPFLAGS'
12838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12841
12842 CC=$lt_save_CC
12843 LDCXX=$LD
12844 LD=$lt_save_LD
12845 GCC=$lt_save_GCC
12846 with_gnu_ldcxx=$with_gnu_ld
12847 with_gnu_ld=$lt_save_with_gnu_ld
12848 lt_cv_path_LDCXX=$lt_cv_path_LD
12849 lt_cv_path_LD=$lt_save_path_LD
12850 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
12851 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
12852
12853         else
12854           tagname=""
12855         fi
12856         ;;
12857
12858       F77)
12859         if test -n "$F77" && test "X$F77" != "Xno"; then
12860
12861 ac_ext=f
12862 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12863 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12864 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12865
12866
12867 archive_cmds_need_lc_F77=no
12868 allow_undefined_flag_F77=
12869 always_export_symbols_F77=no
12870 archive_expsym_cmds_F77=
12871 export_dynamic_flag_spec_F77=
12872 hardcode_direct_F77=no
12873 hardcode_libdir_flag_spec_F77=
12874 hardcode_libdir_flag_spec_ld_F77=
12875 hardcode_libdir_separator_F77=
12876 hardcode_minus_L_F77=no
12877 hardcode_automatic_F77=no
12878 module_cmds_F77=
12879 module_expsym_cmds_F77=
12880 link_all_deplibs_F77=unknown
12881 old_archive_cmds_F77=$old_archive_cmds
12882 no_undefined_flag_F77=
12883 whole_archive_flag_spec_F77=
12884 enable_shared_with_static_runtimes_F77=no
12885
12886 # Source file extension for f77 test sources.
12887 ac_ext=f
12888
12889 # Object file extension for compiled f77 test sources.
12890 objext=o
12891 objext_F77=$objext
12892
12893 # Code to be used in simple compile tests
12894 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
12895
12896 # Code to be used in simple link tests
12897 lt_simple_link_test_code="      program t\n      end\n"
12898
12899 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12900
12901 # If no C compiler was specified, use CC.
12902 LTCC=${LTCC-"$CC"}
12903
12904 # Allow CC to be a program name with arguments.
12905 compiler=$CC
12906
12907
12908 # Allow CC to be a program name with arguments.
12909 lt_save_CC="$CC"
12910 CC=${F77-"f77"}
12911 compiler=$CC
12912 compiler_F77=$CC
12913 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
12914
12915 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
12916 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
12917 echo "$as_me:$LINENO: result: $can_build_shared" >&5
12918 echo "${ECHO_T}$can_build_shared" >&6
12919
12920 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
12921 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
12922 test "$can_build_shared" = "no" && enable_shared=no
12923
12924 # On AIX, shared libraries and static libraries use the same namespace, and
12925 # are all built from PIC.
12926 case "$host_os" in
12927 aix3*)
12928   test "$enable_shared" = yes && enable_static=no
12929   if test -n "$RANLIB"; then
12930     archive_cmds="$archive_cmds~\$RANLIB \$lib"
12931     postinstall_cmds='$RANLIB $lib'
12932   fi
12933   ;;
12934 aix4*)
12935   test "$enable_shared" = yes && enable_static=no
12936   ;;
12937 esac
12938 echo "$as_me:$LINENO: result: $enable_shared" >&5
12939 echo "${ECHO_T}$enable_shared" >&6
12940
12941 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
12942 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
12943 # Make sure either enable_shared or enable_static is yes.
12944 test "$enable_shared" = yes || enable_static=yes
12945 echo "$as_me:$LINENO: result: $enable_static" >&5
12946 echo "${ECHO_T}$enable_static" >&6
12947
12948 test "$ld_shlibs_F77" = no && can_build_shared=no
12949
12950 GCC_F77="$G77"
12951 LD_F77="$LD"
12952
12953 lt_prog_compiler_wl_F77=
12954 lt_prog_compiler_pic_F77=
12955 lt_prog_compiler_static_F77=
12956
12957 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12958 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12959
12960   if test "$GCC" = yes; then
12961     lt_prog_compiler_wl_F77='-Wl,'
12962     lt_prog_compiler_static_F77='-static'
12963
12964     case $host_os in
12965       aix*)
12966       # All AIX code is PIC.
12967       if test "$host_cpu" = ia64; then
12968         # AIX 5 now supports IA64 processor
12969         lt_prog_compiler_static_F77='-Bstatic'
12970       fi
12971       ;;
12972
12973     amigaos*)
12974       # FIXME: we need at least 68020 code to build shared libraries, but
12975       # adding the `-m68020' flag to GCC prevents building anything better,
12976       # like `-m68040'.
12977       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
12978       ;;
12979
12980     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12981       # PIC is the default for these OSes.
12982       ;;
12983
12984     mingw* | pw32* | os2*)
12985       # This hack is so that the source file can tell whether it is being
12986       # built for inclusion in a dll (and should export symbols for example).
12987       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
12988       ;;
12989
12990     darwin* | rhapsody*)
12991       # PIC is the default on this platform
12992       # Common symbols not allowed in MH_DYLIB files
12993       lt_prog_compiler_pic_F77='-fno-common'
12994       ;;
12995
12996     msdosdjgpp*)
12997       # Just because we use GCC doesn't mean we suddenly get shared libraries
12998       # on systems that don't support them.
12999       lt_prog_compiler_can_build_shared_F77=no
13000       enable_shared=no
13001       ;;
13002
13003     sysv4*MP*)
13004       if test -d /usr/nec; then
13005         lt_prog_compiler_pic_F77=-Kconform_pic
13006       fi
13007       ;;
13008
13009     hpux*)
13010       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13011       # not for PA HP-UX.
13012       case "$host_cpu" in
13013       hppa*64*|ia64*)
13014         # +Z the default
13015         ;;
13016       *)
13017         lt_prog_compiler_pic_F77='-fPIC'
13018         ;;
13019       esac
13020       ;;
13021
13022     *)
13023       lt_prog_compiler_pic_F77='-fPIC'
13024       ;;
13025     esac
13026   else
13027     # PORTME Check for flag to pass linker flags through the system compiler.
13028     case $host_os in
13029     aix*)
13030       lt_prog_compiler_wl_F77='-Wl,'
13031       if test "$host_cpu" = ia64; then
13032         # AIX 5 now supports IA64 processor
13033         lt_prog_compiler_static_F77='-Bstatic'
13034       else
13035         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13036       fi
13037       ;;
13038
13039     mingw* | pw32* | os2*)
13040       # This hack is so that the source file can tell whether it is being
13041       # built for inclusion in a dll (and should export symbols for example).
13042       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13043       ;;
13044
13045     hpux9* | hpux10* | hpux11*)
13046       lt_prog_compiler_wl_F77='-Wl,'
13047       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13048       # not for PA HP-UX.
13049       case "$host_cpu" in
13050       hppa*64*|ia64*)
13051         # +Z the default
13052         ;;
13053       *)
13054         lt_prog_compiler_pic_F77='+Z'
13055         ;;
13056       esac
13057       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13058       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13059       ;;
13060
13061     irix5* | irix6* | nonstopux*)
13062       lt_prog_compiler_wl_F77='-Wl,'
13063       # PIC (with -KPIC) is the default.
13064       lt_prog_compiler_static_F77='-non_shared'
13065       ;;
13066
13067     newsos6)
13068       lt_prog_compiler_pic_F77='-KPIC'
13069       lt_prog_compiler_static_F77='-Bstatic'
13070       ;;
13071
13072     linux*)
13073       case $CC in
13074       icc|ecc)
13075         lt_prog_compiler_wl_F77='-Wl,'
13076         lt_prog_compiler_pic_F77='-KPIC'
13077         lt_prog_compiler_static_F77='-static'
13078         ;;
13079       ccc)
13080         lt_prog_compiler_wl_F77='-Wl,'
13081         # All Alpha code is PIC.
13082         lt_prog_compiler_static_F77='-non_shared'
13083         ;;
13084       esac
13085       ;;
13086
13087     osf3* | osf4* | osf5*)
13088       lt_prog_compiler_wl_F77='-Wl,'
13089       # All OSF/1 code is PIC.
13090       lt_prog_compiler_static_F77='-non_shared'
13091       ;;
13092
13093     sco3.2v5*)
13094       lt_prog_compiler_pic_F77='-Kpic'
13095       lt_prog_compiler_static_F77='-dn'
13096       ;;
13097
13098     solaris*)
13099       lt_prog_compiler_wl_F77='-Wl,'
13100       lt_prog_compiler_pic_F77='-KPIC'
13101       lt_prog_compiler_static_F77='-Bstatic'
13102       ;;
13103
13104     sunos4*)
13105       lt_prog_compiler_wl_F77='-Qoption ld '
13106       lt_prog_compiler_pic_F77='-PIC'
13107       lt_prog_compiler_static_F77='-Bstatic'
13108       ;;
13109
13110     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13111       lt_prog_compiler_wl_F77='-Wl,'
13112       lt_prog_compiler_pic_F77='-KPIC'
13113       lt_prog_compiler_static_F77='-Bstatic'
13114       ;;
13115
13116     sysv4*MP*)
13117       if test -d /usr/nec ;then
13118         lt_prog_compiler_pic_F77='-Kconform_pic'
13119         lt_prog_compiler_static_F77='-Bstatic'
13120       fi
13121       ;;
13122
13123     uts4*)
13124       lt_prog_compiler_pic_F77='-pic'
13125       lt_prog_compiler_static_F77='-Bstatic'
13126       ;;
13127
13128     *)
13129       lt_prog_compiler_can_build_shared_F77=no
13130       ;;
13131     esac
13132   fi
13133
13134 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13135 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13136
13137 #
13138 # Check to make sure the PIC flag actually works.
13139 #
13140 if test -n "$lt_prog_compiler_pic_F77"; then
13141   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13142 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13143 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   lt_prog_compiler_pic_works_F77=no
13147   ac_outfile=conftest.$ac_objext
13148    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13149    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13150    # Insert the option either (1) after the last *FLAGS variable, or
13151    # (2) before a word containing "conftest.", or (3) at the end.
13152    # Note that $ac_compile itself does not contain backslashes and begins
13153    # with a dollar sign (not a hyphen), so the echo should work correctly.
13154    # The option is referenced via a variable to avoid confusing sed.
13155    lt_compile=`echo "$ac_compile" | $SED \
13156    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13157    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13158    -e 's:$: $lt_compiler_flag:'`
13159    (eval echo "\"\$as_me:13159: $lt_compile\"" >&5)
13160    (eval "$lt_compile" 2>conftest.err)
13161    ac_status=$?
13162    cat conftest.err >&5
13163    echo "$as_me:13163: \$? = $ac_status" >&5
13164    if (exit $ac_status) && test -s "$ac_outfile"; then
13165      # The compiler can only warn and ignore the option if not recognized
13166      # So say no if there are warnings
13167      if test ! -s conftest.err; then
13168        lt_prog_compiler_pic_works_F77=yes
13169      fi
13170    fi
13171    $rm conftest*
13172
13173 fi
13174 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13175 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13176
13177 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13178     case $lt_prog_compiler_pic_F77 in
13179      "" | " "*) ;;
13180      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13181      esac
13182 else
13183     lt_prog_compiler_pic_F77=
13184      lt_prog_compiler_can_build_shared_F77=no
13185 fi
13186
13187 fi
13188 case "$host_os" in
13189   # For platforms which do not support PIC, -DPIC is meaningless:
13190   *djgpp*)
13191     lt_prog_compiler_pic_F77=
13192     ;;
13193   *)
13194     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13195     ;;
13196 esac
13197
13198 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13199 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13200 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13201   echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203   lt_cv_prog_compiler_c_o_F77=no
13204    $rm -r conftest 2>/dev/null
13205    mkdir conftest
13206    cd conftest
13207    mkdir out
13208    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13209
13210    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
13211    # that will create temporary files in the current directory regardless of
13212    # the output directory.  Thus, making CWD read-only will cause this test
13213    # to fail, enabling locking or at least warning the user not to do parallel
13214    # builds.
13215    chmod -w .
13216
13217    lt_compiler_flag="-o out/conftest2.$ac_objext"
13218    # Insert the option either (1) after the last *FLAGS variable, or
13219    # (2) before a word containing "conftest.", or (3) at the end.
13220    # Note that $ac_compile itself does not contain backslashes and begins
13221    # with a dollar sign (not a hyphen), so the echo should work correctly.
13222    lt_compile=`echo "$ac_compile" | $SED \
13223    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13224    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13225    -e 's:$: $lt_compiler_flag:'`
13226    (eval echo "\"\$as_me:13226: $lt_compile\"" >&5)
13227    (eval "$lt_compile" 2>out/conftest.err)
13228    ac_status=$?
13229    cat out/conftest.err >&5
13230    echo "$as_me:13230: \$? = $ac_status" >&5
13231    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13232    then
13233      # The compiler can only warn and ignore the option if not recognized
13234      # So say no if there are warnings
13235      if test ! -s out/conftest.err; then
13236        lt_cv_prog_compiler_c_o_F77=yes
13237      fi
13238    fi
13239    chmod u+w .
13240    $rm conftest* out/*
13241    rmdir out
13242    cd ..
13243    rmdir conftest
13244    $rm conftest*
13245
13246 fi
13247 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13248 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13249
13250
13251 hard_links="nottested"
13252 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13253   # do not overwrite the value of need_locks provided by the user
13254   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13255 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13256   hard_links=yes
13257   $rm conftest*
13258   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13259   touch conftest.a
13260   ln conftest.a conftest.b 2>&5 || hard_links=no
13261   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13262   echo "$as_me:$LINENO: result: $hard_links" >&5
13263 echo "${ECHO_T}$hard_links" >&6
13264   if test "$hard_links" = no; then
13265     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13266 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13267     need_locks=warn
13268   fi
13269 else
13270   need_locks=no
13271 fi
13272
13273 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13274 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13275
13276   runpath_var=
13277   allow_undefined_flag_F77=
13278   enable_shared_with_static_runtimes_F77=no
13279   archive_cmds_F77=
13280   archive_expsym_cmds_F77=
13281   old_archive_From_new_cmds_F77=
13282   old_archive_from_expsyms_cmds_F77=
13283   export_dynamic_flag_spec_F77=
13284   whole_archive_flag_spec_F77=
13285   thread_safe_flag_spec_F77=
13286   hardcode_libdir_flag_spec_F77=
13287   hardcode_libdir_flag_spec_ld_F77=
13288   hardcode_libdir_separator_F77=
13289   hardcode_direct_F77=no
13290   hardcode_minus_L_F77=no
13291   hardcode_shlibpath_var_F77=unsupported
13292   link_all_deplibs_F77=unknown
13293   hardcode_automatic_F77=no
13294   module_cmds_F77=
13295   module_expsym_cmds_F77=
13296   always_export_symbols_F77=no
13297   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13298   # include_expsyms should be a list of space-separated symbols to be *always*
13299   # included in the symbol list
13300   include_expsyms_F77=
13301   # exclude_expsyms can be an extended regexp of symbols to exclude
13302   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13303   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13304   # as well as any symbol that contains `d'.
13305   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13306   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13307   # platforms (ab)use it in PIC code, but their linkers get confused if
13308   # the symbol is explicitly referenced.  Since portable code cannot
13309   # rely on this symbol name, it's probably fine to never include it in
13310   # preloaded symbol tables.
13311   extract_expsyms_cmds=
13312
13313   case $host_os in
13314   cygwin* | mingw* | pw32*)
13315     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13316     # When not using gcc, we currently assume that we are using
13317     # Microsoft Visual C++.
13318     if test "$GCC" != yes; then
13319       with_gnu_ld=no
13320     fi
13321     ;;
13322   openbsd*)
13323     with_gnu_ld=no
13324     ;;
13325   esac
13326
13327   ld_shlibs_F77=yes
13328   if test "$with_gnu_ld" = yes; then
13329     # If archive_cmds runs LD, not CC, wlarc should be empty
13330     wlarc='${wl}'
13331
13332     # See if GNU ld supports shared libraries.
13333     case $host_os in
13334     aix3* | aix4* | aix5*)
13335       # On AIX/PPC, the GNU linker is very broken
13336       if test "$host_cpu" != ia64; then
13337         ld_shlibs_F77=no
13338         cat <<EOF 1>&2
13339
13340 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13341 *** to be unable to reliably create shared libraries on AIX.
13342 *** Therefore, libtool is disabling shared libraries support.  If you
13343 *** really care for shared libraries, you may want to modify your PATH
13344 *** so that a non-GNU linker is found, and then restart.
13345
13346 EOF
13347       fi
13348       ;;
13349
13350     amigaos*)
13351       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)'
13352       hardcode_libdir_flag_spec_F77='-L$libdir'
13353       hardcode_minus_L_F77=yes
13354
13355       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13356       # that the semantics of dynamic libraries on AmigaOS, at least up
13357       # to version 4, is to share data among multiple programs linked
13358       # with the same dynamic library.  Since this doesn't match the
13359       # behavior of shared libraries on other platforms, we can't use
13360       # them.
13361       ld_shlibs_F77=no
13362       ;;
13363
13364     beos*)
13365       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13366         allow_undefined_flag_F77=unsupported
13367         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13368         # support --undefined.  This deserves some investigation.  FIXME
13369         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13370       else
13371         ld_shlibs_F77=no
13372       fi
13373       ;;
13374
13375     cygwin* | mingw* | pw32*)
13376       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13377       # as there is no search path for DLLs.
13378       hardcode_libdir_flag_spec_F77='-L$libdir'
13379       allow_undefined_flag_F77=unsupported
13380       always_export_symbols_F77=no
13381       enable_shared_with_static_runtimes_F77=yes
13382       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13383
13384       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13385         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13386         # If the export-symbols file already is a .def file (1st line
13387         # is EXPORTS), use it as is; otherwise, prepend...
13388         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13389           cp $export_symbols $output_objdir/$soname.def;
13390         else
13391           echo EXPORTS > $output_objdir/$soname.def;
13392           cat $export_symbols >> $output_objdir/$soname.def;
13393         fi~
13394         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13395       else
13396         ld_shlibs=no
13397       fi
13398       ;;
13399
13400     netbsd*)
13401       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13402         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13403         wlarc=
13404       else
13405         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13406         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13407       fi
13408       ;;
13409
13410     solaris* | sysv5*)
13411       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13412         ld_shlibs_F77=no
13413         cat <<EOF 1>&2
13414
13415 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13416 *** create shared libraries on Solaris systems.  Therefore, libtool
13417 *** is disabling shared libraries support.  We urge you to upgrade GNU
13418 *** binutils to release 2.9.1 or newer.  Another option is to modify
13419 *** your PATH or compiler configuration so that the native linker is
13420 *** used, and then restart.
13421
13422 EOF
13423       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13424         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13425         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13426       else
13427         ld_shlibs_F77=no
13428       fi
13429       ;;
13430
13431     sunos4*)
13432       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13433       wlarc=
13434       hardcode_direct_F77=yes
13435       hardcode_shlibpath_var_F77=no
13436       ;;
13437
13438   linux*)
13439     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
13440         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13441         archive_cmds_F77="$tmp_archive_cmds"
13442       supports_anon_versioning=no
13443       case `$LD -v 2>/dev/null` in
13444         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13445         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13446         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13447         *\ 2.11.*) ;; # other 2.11 versions
13448         *) supports_anon_versioning=yes ;;
13449       esac
13450       if test $supports_anon_versioning = yes; then
13451         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13452 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13453 $echo "local: *; };" >> $output_objdir/$libname.ver~
13454         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13455       else
13456         archive_expsym_cmds_F77="$tmp_archive_cmds"
13457       fi
13458     else
13459       ld_shlibs_F77=no
13460     fi
13461     ;;
13462
13463     *)
13464       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13465         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13466         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13467       else
13468         ld_shlibs_F77=no
13469       fi
13470       ;;
13471     esac
13472
13473     if test "$ld_shlibs_F77" = yes; then
13474       runpath_var=LD_RUN_PATH
13475       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13476       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13477       # ancient GNU ld didn't support --whole-archive et. al.
13478       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13479         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13480       else
13481         whole_archive_flag_spec_F77=
13482       fi
13483     fi
13484   else
13485     # PORTME fill in a description of your system's linker (not GNU ld)
13486     case $host_os in
13487     aix3*)
13488       allow_undefined_flag_F77=unsupported
13489       always_export_symbols_F77=yes
13490       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'
13491       # Note: this linker hardcodes the directories in LIBPATH if there
13492       # are no directories specified by -L.
13493       hardcode_minus_L_F77=yes
13494       if test "$GCC" = yes && test -z "$link_static_flag"; then
13495         # Neither direct hardcoding nor static linking is supported with a
13496         # broken collect2.
13497         hardcode_direct_F77=unsupported
13498       fi
13499       ;;
13500
13501     aix4* | aix5*)
13502       if test "$host_cpu" = ia64; then
13503         # On IA64, the linker does run time linking by default, so we don't
13504         # have to do anything special.
13505         aix_use_runtimelinking=no
13506         exp_sym_flag='-Bexport'
13507         no_entry_flag=""
13508       else
13509         # If we're using GNU nm, then we don't want the "-C" option.
13510         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13511         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13512           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'
13513         else
13514           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'
13515         fi
13516         aix_use_runtimelinking=no
13517
13518         # Test if we are trying to use run time linking or normal
13519         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13520         # need to do runtime linking.
13521         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13522           for ld_flag in $LDFLAGS; do
13523           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13524             aix_use_runtimelinking=yes
13525             break
13526           fi
13527           done
13528         esac
13529
13530         exp_sym_flag='-bexport'
13531         no_entry_flag='-bnoentry'
13532       fi
13533
13534       # When large executables or shared objects are built, AIX ld can
13535       # have problems creating the table of contents.  If linking a library
13536       # or program results in "error TOC overflow" add -mminimal-toc to
13537       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13538       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13539
13540       archive_cmds_F77=''
13541       hardcode_direct_F77=yes
13542       hardcode_libdir_separator_F77=':'
13543       link_all_deplibs_F77=yes
13544
13545       if test "$GCC" = yes; then
13546         case $host_os in aix4.012|aix4.012.*)
13547         # We only want to do this on AIX 4.2 and lower, the check
13548         # below for broken collect2 doesn't work under 4.3+
13549           collect2name=`${CC} -print-prog-name=collect2`
13550           if test -f "$collect2name" && \
13551            strings "$collect2name" | grep resolve_lib_name >/dev/null
13552           then
13553           # We have reworked collect2
13554           hardcode_direct_F77=yes
13555           else
13556           # We have old collect2
13557           hardcode_direct_F77=unsupported
13558           # It fails to find uninstalled libraries when the uninstalled
13559           # path is not listed in the libpath.  Setting hardcode_minus_L
13560           # to unsupported forces relinking
13561           hardcode_minus_L_F77=yes
13562           hardcode_libdir_flag_spec_F77='-L$libdir'
13563           hardcode_libdir_separator_F77=
13564           fi
13565         esac
13566         shared_flag='-shared'
13567       else
13568         # not using gcc
13569         if test "$host_cpu" = ia64; then
13570         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13571         # chokes on -Wl,-G. The following line is correct:
13572           shared_flag='-G'
13573         else
13574         if test "$aix_use_runtimelinking" = yes; then
13575             shared_flag='${wl}-G'
13576           else
13577             shared_flag='${wl}-bM:SRE'
13578         fi
13579         fi
13580       fi
13581
13582       # It seems that -bexpall does not export symbols beginning with
13583       # underscore (_), so it is better to generate a list of symbols to export.
13584       always_export_symbols_F77=yes
13585       if test "$aix_use_runtimelinking" = yes; then
13586         # Warning - without using the other runtime loading flags (-brtl),
13587         # -berok will link without error, but may produce a broken library.
13588         allow_undefined_flag_F77='-berok'
13589        # Determine the default libpath from the value encoded in an empty executable.
13590        cat >conftest.$ac_ext <<_ACEOF
13591       program main
13592
13593       end
13594 _ACEOF
13595 rm -f conftest.$ac_objext conftest$ac_exeext
13596 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13597   (eval $ac_link) 2>&5
13598   ac_status=$?
13599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13600   (exit $ac_status); } &&
13601          { ac_try='test -s conftest$ac_exeext'
13602   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13603   (eval $ac_try) 2>&5
13604   ac_status=$?
13605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606   (exit $ac_status); }; }; then
13607
13608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13609 }'`
13610 # Check for a 64-bit object if we didn't find anything.
13611 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; }
13612 }'`; fi
13613 else
13614   echo "$as_me: failed program was:" >&5
13615 sed 's/^/| /' conftest.$ac_ext >&5
13616
13617 fi
13618 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13619 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13620
13621        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13622         archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13623        else
13624         if test "$host_cpu" = ia64; then
13625           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13626           allow_undefined_flag_F77="-z nodefs"
13627           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
13628         else
13629          # Determine the default libpath from the value encoded in an empty executable.
13630          cat >conftest.$ac_ext <<_ACEOF
13631       program main
13632
13633       end
13634 _ACEOF
13635 rm -f conftest.$ac_objext conftest$ac_exeext
13636 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13637   (eval $ac_link) 2>&5
13638   ac_status=$?
13639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640   (exit $ac_status); } &&
13641          { ac_try='test -s conftest$ac_exeext'
13642   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13643   (eval $ac_try) 2>&5
13644   ac_status=$?
13645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646   (exit $ac_status); }; }; then
13647
13648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13649 }'`
13650 # Check for a 64-bit object if we didn't find anything.
13651 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; }
13652 }'`; fi
13653 else
13654   echo "$as_me: failed program was:" >&5
13655 sed 's/^/| /' conftest.$ac_ext >&5
13656
13657 fi
13658 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
13659 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13660
13661          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13662           # Warning - without using the other run time loading flags,
13663           # -berok will link without error, but may produce a broken library.
13664           no_undefined_flag_F77=' ${wl}-bernotok'
13665           allow_undefined_flag_F77=' ${wl}-berok'
13666           # -bexpall does not export symbols beginning with underscore (_)
13667           always_export_symbols_F77=yes
13668           # Exported symbols can be pulled into shared objects from archives
13669           whole_archive_flag_spec_F77=' '
13670           archive_cmds_need_lc_F77=yes
13671           # This is similar to how AIX traditionally builds it's shared libraries.
13672           archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13673         fi
13674       fi
13675       ;;
13676
13677     amigaos*)
13678       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)'
13679       hardcode_libdir_flag_spec_F77='-L$libdir'
13680       hardcode_minus_L_F77=yes
13681       # see comment about different semantics on the GNU ld section
13682       ld_shlibs_F77=no
13683       ;;
13684
13685     bsdi4*)
13686       export_dynamic_flag_spec_F77=-rdynamic
13687       ;;
13688
13689     cygwin* | mingw* | pw32*)
13690       # When not using gcc, we currently assume that we are using
13691       # Microsoft Visual C++.
13692       # hardcode_libdir_flag_spec is actually meaningless, as there is
13693       # no search path for DLLs.
13694       hardcode_libdir_flag_spec_F77=' '
13695       allow_undefined_flag_F77=unsupported
13696       # Tell ltmain to make .lib files, not .a files.
13697       libext=lib
13698       # Tell ltmain to make .dll files, not .so files.
13699       shrext=".dll"
13700       # FIXME: Setting linknames here is a bad hack.
13701       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13702       # The linker will automatically build a .lib file if we build a DLL.
13703       old_archive_From_new_cmds_F77='true'
13704       # FIXME: Should let the user specify the lib program.
13705       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
13706       fix_srcfile_path='`cygpath -w "$srcfile"`'
13707       enable_shared_with_static_runtimes_F77=yes
13708       ;;
13709
13710     darwin* | rhapsody*)
13711     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
13712       archive_cmds_need_lc_F77=no
13713       case "$host_os" in
13714       rhapsody* | darwin1.[012])
13715         allow_undefined_flag_F77='-undefined suppress'
13716         ;;
13717       *) # Darwin 1.3 on
13718         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_F77='-flat_namespace -undefined suppress'
13719         ;;
13720       esac
13721       # FIXME: Relying on posixy $() will cause problems for
13722       #        cross-compilation, but unfortunately the echo tests do not
13723       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
13724       #        `"' quotes if we put them in here... so don't!
13725         lt_int_apple_cc_single_mod=no
13726         output_verbose_link_cmd='echo'
13727         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
13728           lt_int_apple_cc_single_mod=yes
13729         fi
13730         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13731           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13732         else
13733         archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13734       fi
13735       module_cmds_F77='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
13736       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
13737         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
13738           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13739         else
13740           archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13741         fi
13742           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13743       hardcode_direct_F77=no
13744       hardcode_automatic_F77=yes
13745       hardcode_shlibpath_var_F77=unsupported
13746       whole_archive_flag_spec_F77='-all_load $convenience'
13747       link_all_deplibs_F77=yes
13748     fi
13749       ;;
13750
13751     dgux*)
13752       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13753       hardcode_libdir_flag_spec_F77='-L$libdir'
13754       hardcode_shlibpath_var_F77=no
13755       ;;
13756
13757     freebsd1*)
13758       ld_shlibs_F77=no
13759       ;;
13760
13761     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13762     # support.  Future versions do this automatically, but an explicit c++rt0.o
13763     # does not break anything, and helps significantly (at the cost of a little
13764     # extra space).
13765     freebsd2.2*)
13766       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13767       hardcode_libdir_flag_spec_F77='-R$libdir'
13768       hardcode_direct_F77=yes
13769       hardcode_shlibpath_var_F77=no
13770       ;;
13771
13772     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13773     freebsd2*)
13774       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13775       hardcode_direct_F77=yes
13776       hardcode_minus_L_F77=yes
13777       hardcode_shlibpath_var_F77=no
13778       ;;
13779
13780     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13781     freebsd*)
13782       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13783       hardcode_libdir_flag_spec_F77='-R$libdir'
13784       hardcode_direct_F77=yes
13785       hardcode_shlibpath_var_F77=no
13786       ;;
13787
13788     hpux9*)
13789       if test "$GCC" = yes; then
13790         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'
13791       else
13792         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'
13793       fi
13794       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13795       hardcode_libdir_separator_F77=:
13796       hardcode_direct_F77=yes
13797
13798       # hardcode_minus_L: Not really in the search PATH,
13799       # but as the default location of the library.
13800       hardcode_minus_L_F77=yes
13801       export_dynamic_flag_spec_F77='${wl}-E'
13802       ;;
13803
13804     hpux10* | hpux11*)
13805       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
13806         case "$host_cpu" in
13807         hppa*64*|ia64*)
13808           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13809           ;;
13810         *)
13811           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13812           ;;
13813         esac
13814       else
13815         case "$host_cpu" in
13816         hppa*64*|ia64*)
13817           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
13818           ;;
13819         *)
13820           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13821           ;;
13822         esac
13823       fi
13824       if test "$with_gnu_ld" = no; then
13825         case "$host_cpu" in
13826         hppa*64*)
13827           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13828           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
13829           hardcode_libdir_separator_F77=:
13830           hardcode_direct_F77=no
13831           hardcode_shlibpath_var_F77=no
13832           ;;
13833         ia64*)
13834           hardcode_libdir_flag_spec_F77='-L$libdir'
13835           hardcode_direct_F77=no
13836           hardcode_shlibpath_var_F77=no
13837
13838           # hardcode_minus_L: Not really in the search PATH,
13839           # but as the default location of the library.
13840           hardcode_minus_L_F77=yes
13841           ;;
13842         *)
13843           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
13844           hardcode_libdir_separator_F77=:
13845           hardcode_direct_F77=yes
13846           export_dynamic_flag_spec_F77='${wl}-E'
13847
13848           # hardcode_minus_L: Not really in the search PATH,
13849           # but as the default location of the library.
13850           hardcode_minus_L_F77=yes
13851           ;;
13852         esac
13853       fi
13854       ;;
13855
13856     irix5* | irix6* | nonstopux*)
13857       if test "$GCC" = yes; then
13858         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'
13859       else
13860         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'
13861         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
13862       fi
13863       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13864       hardcode_libdir_separator_F77=:
13865       link_all_deplibs_F77=yes
13866       ;;
13867
13868     netbsd*)
13869       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13870         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13871       else
13872         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13873       fi
13874       hardcode_libdir_flag_spec_F77='-R$libdir'
13875       hardcode_direct_F77=yes
13876       hardcode_shlibpath_var_F77=no
13877       ;;
13878
13879     newsos6)
13880       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13881       hardcode_direct_F77=yes
13882       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13883       hardcode_libdir_separator_F77=:
13884       hardcode_shlibpath_var_F77=no
13885       ;;
13886
13887     openbsd*)
13888       hardcode_direct_F77=yes
13889       hardcode_shlibpath_var_F77=no
13890       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13891         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13892         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13893         export_dynamic_flag_spec_F77='${wl}-E'
13894       else
13895        case $host_os in
13896          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13897            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13898            hardcode_libdir_flag_spec_F77='-R$libdir'
13899            ;;
13900          *)
13901            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13902            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13903            ;;
13904        esac
13905       fi
13906       ;;
13907
13908     os2*)
13909       hardcode_libdir_flag_spec_F77='-L$libdir'
13910       hardcode_minus_L_F77=yes
13911       allow_undefined_flag_F77=unsupported
13912       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'
13913       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13914       ;;
13915
13916     osf3*)
13917       if test "$GCC" = yes; then
13918         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13919         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'
13920       else
13921         allow_undefined_flag_F77=' -expect_unresolved \*'
13922         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'
13923       fi
13924       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13925       hardcode_libdir_separator_F77=:
13926       ;;
13927
13928     osf4* | osf5*)      # as osf3* with the addition of -msym flag
13929       if test "$GCC" = yes; then
13930         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
13931         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'
13932         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13933       else
13934         allow_undefined_flag_F77=' -expect_unresolved \*'
13935         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'
13936         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~
13937         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
13938
13939         # Both c and cxx compiler support -rpath directly
13940         hardcode_libdir_flag_spec_F77='-rpath $libdir'
13941       fi
13942       hardcode_libdir_separator_F77=:
13943       ;;
13944
13945     sco3.2v5*)
13946       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13947       hardcode_shlibpath_var_F77=no
13948       export_dynamic_flag_spec_F77='${wl}-Bexport'
13949       runpath_var=LD_RUN_PATH
13950       hardcode_runpath_var=yes
13951       ;;
13952
13953     solaris*)
13954       no_undefined_flag_F77=' -z text'
13955       if test "$GCC" = yes; then
13956         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13957         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13958           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13959       else
13960         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13961         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13962         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13963       fi
13964       hardcode_libdir_flag_spec_F77='-R$libdir'
13965       hardcode_shlibpath_var_F77=no
13966       case $host_os in
13967       solaris2.[0-5] | solaris2.[0-5].*) ;;
13968       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
13969         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
13970       esac
13971       link_all_deplibs_F77=yes
13972       ;;
13973
13974     sunos4*)
13975       if test "x$host_vendor" = xsequent; then
13976         # Use $CC to link under sequent, because it throws in some extra .o
13977         # files that make .init and .fini sections work.
13978         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13979       else
13980         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13981       fi
13982       hardcode_libdir_flag_spec_F77='-L$libdir'
13983       hardcode_direct_F77=yes
13984       hardcode_minus_L_F77=yes
13985       hardcode_shlibpath_var_F77=no
13986       ;;
13987
13988     sysv4)
13989       case $host_vendor in
13990         sni)
13991           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13992           hardcode_direct_F77=yes # is this really true???
13993         ;;
13994         siemens)
13995           ## LD is ld it makes a PLAMLIB
13996           ## CC just makes a GrossModule.
13997           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13998           reload_cmds_F77='$CC -r -o $output$reload_objs'
13999           hardcode_direct_F77=no
14000         ;;
14001         motorola)
14002           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14003           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14004         ;;
14005       esac
14006       runpath_var='LD_RUN_PATH'
14007       hardcode_shlibpath_var_F77=no
14008       ;;
14009
14010     sysv4.3*)
14011       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14012       hardcode_shlibpath_var_F77=no
14013       export_dynamic_flag_spec_F77='-Bexport'
14014       ;;
14015
14016     sysv4*MP*)
14017       if test -d /usr/nec; then
14018         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14019         hardcode_shlibpath_var_F77=no
14020         runpath_var=LD_RUN_PATH
14021         hardcode_runpath_var=yes
14022         ld_shlibs_F77=yes
14023       fi
14024       ;;
14025
14026     sysv4.2uw2*)
14027       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14028       hardcode_direct_F77=yes
14029       hardcode_minus_L_F77=no
14030       hardcode_shlibpath_var_F77=no
14031       hardcode_runpath_var=yes
14032       runpath_var=LD_RUN_PATH
14033       ;;
14034
14035    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14036       no_undefined_flag_F77='${wl}-z ${wl}text'
14037       if test "$GCC" = yes; then
14038         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14039       else
14040         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14041       fi
14042       runpath_var='LD_RUN_PATH'
14043       hardcode_shlibpath_var_F77=no
14044       ;;
14045
14046     sysv5*)
14047       no_undefined_flag_F77=' -z text'
14048       # $CC -shared without GNU ld will not create a library from C++
14049       # object files and a static libstdc++, better avoid it by now
14050       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14051       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14052                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14053       hardcode_libdir_flag_spec_F77=
14054       hardcode_shlibpath_var_F77=no
14055       runpath_var='LD_RUN_PATH'
14056       ;;
14057
14058     uts4*)
14059       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14060       hardcode_libdir_flag_spec_F77='-L$libdir'
14061       hardcode_shlibpath_var_F77=no
14062       ;;
14063
14064     *)
14065       ld_shlibs_F77=no
14066       ;;
14067     esac
14068   fi
14069
14070 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14071 echo "${ECHO_T}$ld_shlibs_F77" >&6
14072 test "$ld_shlibs_F77" = no && can_build_shared=no
14073
14074 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14075 if test "$GCC" = yes; then
14076   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14077 fi
14078
14079 #
14080 # Do we need to explicitly link libc?
14081 #
14082 case "x$archive_cmds_need_lc_F77" in
14083 x|xyes)
14084   # Assume -lc should be added
14085   archive_cmds_need_lc_F77=yes
14086
14087   if test "$enable_shared" = yes && test "$GCC" = yes; then
14088     case $archive_cmds_F77 in
14089     *'~'*)
14090       # FIXME: we may have to deal with multi-command sequences.
14091       ;;
14092     '$CC '*)
14093       # Test whether the compiler implicitly links with -lc since on some
14094       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14095       # to ld, don't add -lc before -lgcc.
14096       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14097 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14098       $rm conftest*
14099       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14100
14101       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14102   (eval $ac_compile) 2>&5
14103   ac_status=$?
14104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14105   (exit $ac_status); } 2>conftest.err; then
14106         soname=conftest
14107         lib=conftest
14108         libobjs=conftest.$ac_objext
14109         deplibs=
14110         wl=$lt_prog_compiler_wl_F77
14111         compiler_flags=-v
14112         linker_flags=-v
14113         verstring=
14114         output_objdir=.
14115         libname=conftest
14116         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14117         allow_undefined_flag_F77=
14118         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14119   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14120   ac_status=$?
14121   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14122   (exit $ac_status); }
14123         then
14124           archive_cmds_need_lc_F77=no
14125         else
14126           archive_cmds_need_lc_F77=yes
14127         fi
14128         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14129       else
14130         cat conftest.err 1>&5
14131       fi
14132       $rm conftest*
14133       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14134 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14135       ;;
14136     esac
14137   fi
14138   ;;
14139 esac
14140
14141 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14142 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14143 hardcode_action_F77=
14144 if test -n "$hardcode_libdir_flag_spec_F77" || \
14145    test -n "$runpath_var F77" || \
14146    test "X$hardcode_automatic_F77"="Xyes" ; then
14147
14148   # We can hardcode non-existant directories.
14149   if test "$hardcode_direct_F77" != no &&
14150      # If the only mechanism to avoid hardcoding is shlibpath_var, we
14151      # have to relink, otherwise we might link with an installed library
14152      # when we should be linking with a yet-to-be-installed one
14153      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
14154      test "$hardcode_minus_L_F77" != no; then
14155     # Linking always hardcodes the temporary library directory.
14156     hardcode_action_F77=relink
14157   else
14158     # We can link without hardcoding, and we can hardcode nonexisting dirs.
14159     hardcode_action_F77=immediate
14160   fi
14161 else
14162   # We cannot hardcode anything, or else we can only hardcode existing
14163   # directories.
14164   hardcode_action_F77=unsupported
14165 fi
14166 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
14167 echo "${ECHO_T}$hardcode_action_F77" >&6
14168
14169 if test "$hardcode_action_F77" = relink; then
14170   # Fast installation is not supported
14171   enable_fast_install=no
14172 elif test "$shlibpath_overrides_runpath" = yes ||
14173      test "$enable_shared" = no; then
14174   # Fast installation is not necessary
14175   enable_fast_install=needless
14176 fi
14177
14178 striplib=
14179 old_striplib=
14180 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14181 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14182 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
14183   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14184   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14185   echo "$as_me:$LINENO: result: yes" >&5
14186 echo "${ECHO_T}yes" >&6
14187 else
14188 # FIXME - insert some real tests, host_os isn't really good enough
14189   case $host_os in
14190    darwin*)
14191        if test -n "$STRIP" ; then
14192          striplib="$STRIP -x"
14193          echo "$as_me:$LINENO: result: yes" >&5
14194 echo "${ECHO_T}yes" >&6
14195        else
14196   echo "$as_me:$LINENO: result: no" >&5
14197 echo "${ECHO_T}no" >&6
14198 fi
14199        ;;
14200    *)
14201   echo "$as_me:$LINENO: result: no" >&5
14202 echo "${ECHO_T}no" >&6
14203     ;;
14204   esac
14205 fi
14206
14207 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14208 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14209 library_names_spec=
14210 libname_spec='lib$name'
14211 soname_spec=
14212 shrext=".so"
14213 postinstall_cmds=
14214 postuninstall_cmds=
14215 finish_cmds=
14216 finish_eval=
14217 shlibpath_var=
14218 shlibpath_overrides_runpath=unknown
14219 version_type=none
14220 dynamic_linker="$host_os ld.so"
14221 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14222 if test "$GCC" = yes; then
14223   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14224   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14225     # if the path contains ";" then we assume it to be the separator
14226     # otherwise default to the standard path separator (i.e. ":") - it is
14227     # assumed that no part of a normal pathname contains ";" but that should
14228     # okay in the real world where ";" in dirpaths is itself problematic.
14229     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14230   else
14231     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14232   fi
14233 else
14234   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14235 fi
14236 need_lib_prefix=unknown
14237 hardcode_into_libs=no
14238
14239 # when you set need_version to no, make sure it does not cause -set_version
14240 # flags to be left without arguments
14241 need_version=unknown
14242
14243 case $host_os in
14244 aix3*)
14245   version_type=linux
14246   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14247   shlibpath_var=LIBPATH
14248
14249   # AIX 3 has no versioning support, so we append a major version to the name.
14250   soname_spec='${libname}${release}${shared_ext}$major'
14251   ;;
14252
14253 aix4* | aix5*)
14254   version_type=linux
14255   need_lib_prefix=no
14256   need_version=no
14257   hardcode_into_libs=yes
14258   if test "$host_cpu" = ia64; then
14259     # AIX 5 supports IA64
14260     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14261     shlibpath_var=LD_LIBRARY_PATH
14262   else
14263     # With GCC up to 2.95.x, collect2 would create an import file
14264     # for dependence libraries.  The import file would start with
14265     # the line `#! .'.  This would cause the generated library to
14266     # depend on `.', always an invalid library.  This was fixed in
14267     # development snapshots of GCC prior to 3.0.
14268     case $host_os in
14269       aix4 | aix4.[01] | aix4.[01].*)
14270       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14271            echo ' yes '
14272            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14273         :
14274       else
14275         can_build_shared=no
14276       fi
14277       ;;
14278     esac
14279     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14280     # soname into executable. Probably we can add versioning support to
14281     # collect2, so additional links can be useful in future.
14282     if test "$aix_use_runtimelinking" = yes; then
14283       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14284       # instead of lib<name>.a to let people know that these are not
14285       # typical AIX shared libraries.
14286       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14287     else
14288       # We preserve .a as extension for shared libraries through AIX4.2
14289       # and later when we are not doing run time linking.
14290       library_names_spec='${libname}${release}.a $libname.a'
14291       soname_spec='${libname}${release}${shared_ext}$major'
14292     fi
14293     shlibpath_var=LIBPATH
14294   fi
14295   ;;
14296
14297 amigaos*)
14298   library_names_spec='$libname.ixlibrary $libname.a'
14299   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14300   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'
14301   ;;
14302
14303 beos*)
14304   library_names_spec='${libname}${shared_ext}'
14305   dynamic_linker="$host_os ld.so"
14306   shlibpath_var=LIBRARY_PATH
14307   ;;
14308
14309 bsdi4*)
14310   version_type=linux
14311   need_version=no
14312   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14313   soname_spec='${libname}${release}${shared_ext}$major'
14314   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14315   shlibpath_var=LD_LIBRARY_PATH
14316   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14317   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14318   # the default ld.so.conf also contains /usr/contrib/lib and
14319   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14320   # libtool to hard-code these into programs
14321   ;;
14322
14323 cygwin* | mingw* | pw32*)
14324   version_type=windows
14325   shrext=".dll"
14326   need_version=no
14327   need_lib_prefix=no
14328
14329   case $GCC,$host_os in
14330   yes,cygwin* | yes,mingw* | yes,pw32*)
14331     library_names_spec='$libname.dll.a'
14332     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14333     postinstall_cmds='base_file=`basename \${file}`~
14334       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14335       dldir=$destdir/`dirname \$dlpath`~
14336       test -d \$dldir || mkdir -p \$dldir~
14337       $install_prog $dir/$dlname \$dldir/$dlname'
14338     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14339       dlpath=$dir/\$dldll~
14340        $rm \$dlpath'
14341     shlibpath_overrides_runpath=yes
14342
14343     case $host_os in
14344     cygwin*)
14345       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14346       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14347       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
14348       ;;
14349     mingw*)
14350       # MinGW DLLs use traditional 'lib' prefix
14351       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14352       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14353       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14354         # It is most probably a Windows format PATH printed by
14355         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14356         # path with ; separators, and with drive letters. We can handle the
14357         # drive letters (cygwin fileutils understands them), so leave them,
14358         # especially as we might pass files found there to a mingw objdump,
14359         # which wouldn't understand a cygwinified path. Ahh.
14360         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14361       else
14362         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14363       fi
14364       ;;
14365     pw32*)
14366       # pw32 DLLs use 'pw' prefix rather than 'lib'
14367       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14368       ;;
14369     esac
14370     ;;
14371
14372   *)
14373     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14374     ;;
14375   esac
14376   dynamic_linker='Win32 ld.exe'
14377   # FIXME: first we should search . and the directory the executable is in
14378   shlibpath_var=PATH
14379   ;;
14380
14381 darwin* | rhapsody*)
14382   dynamic_linker="$host_os dyld"
14383   version_type=darwin
14384   need_lib_prefix=no
14385   need_version=no
14386   # FIXME: Relying on posixy $() will cause problems for
14387   #        cross-compilation, but unfortunately the echo tests do not
14388   #        yet detect zsh echo's removal of \ escapes.
14389   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14390   soname_spec='${libname}${release}${major}$shared_ext'
14391   shlibpath_overrides_runpath=yes
14392   shlibpath_var=DYLD_LIBRARY_PATH
14393   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
14394   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14395   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
14396   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"`
14397   fi
14398   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14399   ;;
14400
14401 dgux*)
14402   version_type=linux
14403   need_lib_prefix=no
14404   need_version=no
14405   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14406   soname_spec='${libname}${release}${shared_ext}$major'
14407   shlibpath_var=LD_LIBRARY_PATH
14408   ;;
14409
14410 freebsd1*)
14411   dynamic_linker=no
14412   ;;
14413
14414 freebsd*)
14415   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14416   version_type=freebsd-$objformat
14417   case $version_type in
14418     freebsd-elf*)
14419       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14420       need_version=no
14421       need_lib_prefix=no
14422       ;;
14423     freebsd-*)
14424       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14425       need_version=yes
14426       ;;
14427   esac
14428   shlibpath_var=LD_LIBRARY_PATH
14429   case $host_os in
14430   freebsd2*)
14431     shlibpath_overrides_runpath=yes
14432     ;;
14433   freebsd3.01* | freebsdelf3.01*)
14434     shlibpath_overrides_runpath=yes
14435     hardcode_into_libs=yes
14436     ;;
14437   *) # from 3.2 on
14438     shlibpath_overrides_runpath=no
14439     hardcode_into_libs=yes
14440     ;;
14441   esac
14442   ;;
14443
14444 gnu*)
14445   version_type=linux
14446   need_lib_prefix=no
14447   need_version=no
14448   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14449   soname_spec='${libname}${release}${shared_ext}$major'
14450   shlibpath_var=LD_LIBRARY_PATH
14451   hardcode_into_libs=yes
14452   ;;
14453
14454 hpux9* | hpux10* | hpux11*)
14455   # Give a soname corresponding to the major version so that dld.sl refuses to
14456   # link against other versions.
14457   version_type=sunos
14458   need_lib_prefix=no
14459   need_version=no
14460   case "$host_cpu" in
14461   ia64*)
14462     shrext='.so'
14463     hardcode_into_libs=yes
14464     dynamic_linker="$host_os dld.so"
14465     shlibpath_var=LD_LIBRARY_PATH
14466     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14467     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14468     soname_spec='${libname}${release}${shared_ext}$major'
14469     if test "X$HPUX_IA64_MODE" = X32; then
14470       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14471     else
14472       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14473     fi
14474     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14475     ;;
14476    hppa*64*)
14477      shrext='.sl'
14478      hardcode_into_libs=yes
14479      dynamic_linker="$host_os dld.sl"
14480      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14481      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14482      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14483      soname_spec='${libname}${release}${shared_ext}$major'
14484      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14485      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14486      ;;
14487    *)
14488     shrext='.sl'
14489     dynamic_linker="$host_os dld.sl"
14490     shlibpath_var=SHLIB_PATH
14491     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14492     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14493     soname_spec='${libname}${release}${shared_ext}$major'
14494     ;;
14495   esac
14496   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14497   postinstall_cmds='chmod 555 $lib'
14498   ;;
14499
14500 irix5* | irix6* | nonstopux*)
14501   case $host_os in
14502     nonstopux*) version_type=nonstopux ;;
14503     *)
14504         if test "$lt_cv_prog_gnu_ld" = yes; then
14505                 version_type=linux
14506         else
14507                 version_type=irix
14508         fi ;;
14509   esac
14510   need_lib_prefix=no
14511   need_version=no
14512   soname_spec='${libname}${release}${shared_ext}$major'
14513   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14514   case $host_os in
14515   irix5* | nonstopux*)
14516     libsuff= shlibsuff=
14517     ;;
14518   *)
14519     case $LD in # libtool.m4 will add one of these switches to LD
14520     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14521       libsuff= shlibsuff= libmagic=32-bit;;
14522     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14523       libsuff=32 shlibsuff=N32 libmagic=N32;;
14524     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14525       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14526     *) libsuff= shlibsuff= libmagic=never-match;;
14527     esac
14528     ;;
14529   esac
14530   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14531   shlibpath_overrides_runpath=no
14532   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14533   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14534   hardcode_into_libs=yes
14535   ;;
14536
14537 # No shared lib support for Linux oldld, aout, or coff.
14538 linux*oldld* | linux*aout* | linux*coff*)
14539   dynamic_linker=no
14540   ;;
14541
14542 # This must be Linux ELF.
14543 linux*)
14544   version_type=linux
14545   need_lib_prefix=no
14546   need_version=no
14547   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14548   soname_spec='${libname}${release}${shared_ext}$major'
14549   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14550   shlibpath_var=LD_LIBRARY_PATH
14551   shlibpath_overrides_runpath=no
14552   # This implies no fast_install, which is unacceptable.
14553   # Some rework will be needed to allow for fast_install
14554   # before this can be enabled.
14555   hardcode_into_libs=yes
14556
14557   # We used to test for /lib/ld.so.1 and disable shared libraries on
14558   # powerpc, because MkLinux only supported shared libraries with the
14559   # GNU dynamic linker.  Since this was broken with cross compilers,
14560   # most powerpc-linux boxes support dynamic linking these days and
14561   # people can always --disable-shared, the test was removed, and we
14562   # assume the GNU/Linux dynamic linker is in use.
14563   dynamic_linker='GNU/Linux ld.so'
14564
14565   # Find out which ABI we are using (multilib Linux x86_64 hack).
14566   libsuff=
14567   case "$host_cpu" in
14568   x86_64*|s390x*)
14569     echo '#line 14569 "configure"' > conftest.$ac_ext
14570     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14571   (eval $ac_compile) 2>&5
14572   ac_status=$?
14573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14574   (exit $ac_status); }; then
14575       case `/usr/bin/file conftest.$ac_objext` in
14576       *64-bit*)
14577         libsuff=64
14578         ;;
14579       esac
14580     fi
14581     rm -rf conftest*
14582     ;;
14583   *)
14584     ;;
14585   esac
14586   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
14587   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14588   ;;
14589
14590 netbsd*)
14591   version_type=sunos
14592   need_lib_prefix=no
14593   need_version=no
14594   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14595     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14596     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14597     dynamic_linker='NetBSD (a.out) ld.so'
14598   else
14599     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
14600     soname_spec='${libname}${release}${shared_ext}$major'
14601     dynamic_linker='NetBSD ld.elf_so'
14602   fi
14603   shlibpath_var=LD_LIBRARY_PATH
14604   shlibpath_overrides_runpath=yes
14605   hardcode_into_libs=yes
14606   ;;
14607
14608 newsos6)
14609   version_type=linux
14610   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14611   shlibpath_var=LD_LIBRARY_PATH
14612   shlibpath_overrides_runpath=yes
14613   ;;
14614
14615 nto-qnx)
14616   version_type=linux
14617   need_lib_prefix=no
14618   need_version=no
14619   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14620   soname_spec='${libname}${release}${shared_ext}$major'
14621   shlibpath_var=LD_LIBRARY_PATH
14622   shlibpath_overrides_runpath=yes
14623   ;;
14624
14625 openbsd*)
14626   version_type=sunos
14627   need_lib_prefix=no
14628   need_version=no
14629   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14630   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14631   shlibpath_var=LD_LIBRARY_PATH
14632   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14633     case $host_os in
14634       openbsd2.[89] | openbsd2.[89].*)
14635         shlibpath_overrides_runpath=no
14636         ;;
14637       *)
14638         shlibpath_overrides_runpath=yes
14639         ;;
14640       esac
14641   else
14642     shlibpath_overrides_runpath=yes
14643   fi
14644   ;;
14645
14646 os2*)
14647   libname_spec='$name'
14648   shrext=".dll"
14649   need_lib_prefix=no
14650   library_names_spec='$libname${shared_ext} $libname.a'
14651   dynamic_linker='OS/2 ld.exe'
14652   shlibpath_var=LIBPATH
14653   ;;
14654
14655 osf3* | osf4* | osf5*)
14656   version_type=osf
14657   need_lib_prefix=no
14658   need_version=no
14659   soname_spec='${libname}${release}${shared_ext}$major'
14660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14661   shlibpath_var=LD_LIBRARY_PATH
14662   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14663   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14664   ;;
14665
14666 sco3.2v5*)
14667   version_type=osf
14668   soname_spec='${libname}${release}${shared_ext}$major'
14669   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14670   shlibpath_var=LD_LIBRARY_PATH
14671   ;;
14672
14673 solaris*)
14674   version_type=linux
14675   need_lib_prefix=no
14676   need_version=no
14677   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14678   soname_spec='${libname}${release}${shared_ext}$major'
14679   shlibpath_var=LD_LIBRARY_PATH
14680   shlibpath_overrides_runpath=yes
14681   hardcode_into_libs=yes
14682   # ldd complains unless libraries are executable
14683   postinstall_cmds='chmod +x $lib'
14684   ;;
14685
14686 sunos4*)
14687   version_type=sunos
14688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14689   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14690   shlibpath_var=LD_LIBRARY_PATH
14691   shlibpath_overrides_runpath=yes
14692   if test "$with_gnu_ld" = yes; then
14693     need_lib_prefix=no
14694   fi
14695   need_version=yes
14696   ;;
14697
14698 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14699   version_type=linux
14700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14701   soname_spec='${libname}${release}${shared_ext}$major'
14702   shlibpath_var=LD_LIBRARY_PATH
14703   case $host_vendor in
14704     sni)
14705       shlibpath_overrides_runpath=no
14706       need_lib_prefix=no
14707       export_dynamic_flag_spec='${wl}-Blargedynsym'
14708       runpath_var=LD_RUN_PATH
14709       ;;
14710     siemens)
14711       need_lib_prefix=no
14712       ;;
14713     motorola)
14714       need_lib_prefix=no
14715       need_version=no
14716       shlibpath_overrides_runpath=no
14717       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14718       ;;
14719   esac
14720   ;;
14721
14722 sysv4*MP*)
14723   if test -d /usr/nec ;then
14724     version_type=linux
14725     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14726     soname_spec='$libname${shared_ext}.$major'
14727     shlibpath_var=LD_LIBRARY_PATH
14728   fi
14729   ;;
14730
14731 uts4*)
14732   version_type=linux
14733   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14734   soname_spec='${libname}${release}${shared_ext}$major'
14735   shlibpath_var=LD_LIBRARY_PATH
14736   ;;
14737
14738 *)
14739   dynamic_linker=no
14740   ;;
14741 esac
14742 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14743 echo "${ECHO_T}$dynamic_linker" >&6
14744 test "$dynamic_linker" = no && can_build_shared=no
14745
14746
14747 # The else clause should only fire when bootstrapping the
14748 # libtool distribution, otherwise you forgot to ship ltmain.sh
14749 # with your package, and you will get complaints that there are
14750 # no rules to generate ltmain.sh.
14751 if test -f "$ltmain"; then
14752   # See if we are running on zsh, and set the options which allow our commands through
14753   # without removal of \ escapes.
14754   if test -n "${ZSH_VERSION+set}" ; then
14755     setopt NO_GLOB_SUBST
14756   fi
14757   # Now quote all the things that may contain metacharacters while being
14758   # careful not to overquote the AC_SUBSTed values.  We take copies of the
14759   # variables and quote the copies for generation of the libtool script.
14760   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
14761     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14762     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14763     deplibs_check_method reload_flag reload_cmds need_locks \
14764     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14765     lt_cv_sys_global_symbol_to_c_name_address \
14766     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14767     old_postinstall_cmds old_postuninstall_cmds \
14768     compiler_F77 \
14769     CC_F77 \
14770     LD_F77 \
14771     lt_prog_compiler_wl_F77 \
14772     lt_prog_compiler_pic_F77 \
14773     lt_prog_compiler_static_F77 \
14774     lt_prog_compiler_no_builtin_flag_F77 \
14775     export_dynamic_flag_spec_F77 \
14776     thread_safe_flag_spec_F77 \
14777     whole_archive_flag_spec_F77 \
14778     enable_shared_with_static_runtimes_F77 \
14779     old_archive_cmds_F77 \
14780     old_archive_from_new_cmds_F77 \
14781     predep_objects_F77 \
14782     postdep_objects_F77 \
14783     predeps_F77 \
14784     postdeps_F77 \
14785     compiler_lib_search_path_F77 \
14786     archive_cmds_F77 \
14787     archive_expsym_cmds_F77 \
14788     postinstall_cmds_F77 \
14789     postuninstall_cmds_F77 \
14790     old_archive_from_expsyms_cmds_F77 \
14791     allow_undefined_flag_F77 \
14792     no_undefined_flag_F77 \
14793     export_symbols_cmds_F77 \
14794     hardcode_libdir_flag_spec_F77 \
14795     hardcode_libdir_flag_spec_ld_F77 \
14796     hardcode_libdir_separator_F77 \
14797     hardcode_automatic_F77 \
14798     module_cmds_F77 \
14799     module_expsym_cmds_F77 \
14800     lt_cv_prog_compiler_c_o_F77 \
14801     exclude_expsyms_F77 \
14802     include_expsyms_F77; do
14803
14804     case $var in
14805     old_archive_cmds_F77 | \
14806     old_archive_from_new_cmds_F77 | \
14807     archive_cmds_F77 | \
14808     archive_expsym_cmds_F77 | \
14809     module_cmds_F77 | \
14810     module_expsym_cmds_F77 | \
14811     old_archive_from_expsyms_cmds_F77 | \
14812     export_symbols_cmds_F77 | \
14813     extract_expsyms_cmds | reload_cmds | finish_cmds | \
14814     postinstall_cmds | postuninstall_cmds | \
14815     old_postinstall_cmds | old_postuninstall_cmds | \
14816     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14817       # Double-quote double-evaled strings.
14818       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14819       ;;
14820     *)
14821       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14822       ;;
14823     esac
14824   done
14825
14826   case $lt_echo in
14827   *'\$0 --fallback-echo"')
14828     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14829     ;;
14830   esac
14831
14832 cfgfile="$ofile"
14833
14834   cat <<__EOF__ >> "$cfgfile"
14835 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14836
14837 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14838
14839 # Shell to use when invoking shell scripts.
14840 SHELL=$lt_SHELL
14841
14842 # Whether or not to build shared libraries.
14843 build_libtool_libs=$enable_shared
14844
14845 # Whether or not to build static libraries.
14846 build_old_libs=$enable_static
14847
14848 # Whether or not to add -lc for building shared libraries.
14849 build_libtool_need_lc=$archive_cmds_need_lc_F77
14850
14851 # Whether or not to disallow shared libs when runtime libs are static
14852 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
14853
14854 # Whether or not to optimize for fast installation.
14855 fast_install=$enable_fast_install
14856
14857 # The host system.
14858 host_alias=$host_alias
14859 host=$host
14860
14861 # An echo program that does not interpret backslashes.
14862 echo=$lt_echo
14863
14864 # The archiver.
14865 AR=$lt_AR
14866 AR_FLAGS=$lt_AR_FLAGS
14867
14868 # A C compiler.
14869 LTCC=$lt_LTCC
14870
14871 # A language-specific compiler.
14872 CC=$lt_compiler_F77
14873
14874 # Is the compiler the GNU C compiler?
14875 with_gcc=$GCC_F77
14876
14877 # An ERE matcher.
14878 EGREP=$lt_EGREP
14879
14880 # The linker used to build libraries.
14881 LD=$lt_LD_F77
14882
14883 # Whether we need hard or soft links.
14884 LN_S=$lt_LN_S
14885
14886 # A BSD-compatible nm program.
14887 NM=$lt_NM
14888
14889 # A symbol stripping program
14890 STRIP=$STRIP
14891
14892 # Used to examine libraries when file_magic_cmd begins "file"
14893 MAGIC_CMD=$MAGIC_CMD
14894
14895 # Used on cygwin: DLL creation program.
14896 DLLTOOL="$DLLTOOL"
14897
14898 # Used on cygwin: object dumper.
14899 OBJDUMP="$OBJDUMP"
14900
14901 # Used on cygwin: assembler.
14902 AS="$AS"
14903
14904 # The name of the directory that contains temporary libtool files.
14905 objdir=$objdir
14906
14907 # How to create reloadable object files.
14908 reload_flag=$lt_reload_flag
14909 reload_cmds=$lt_reload_cmds
14910
14911 # How to pass a linker flag through the compiler.
14912 wl=$lt_lt_prog_compiler_wl_F77
14913
14914 # Object file suffix (normally "o").
14915 objext="$ac_objext"
14916
14917 # Old archive suffix (normally "a").
14918 libext="$libext"
14919
14920 # Shared library suffix (normally ".so").
14921 shrext='$shrext'
14922
14923 # Executable file suffix (normally "").
14924 exeext="$exeext"
14925
14926 # Additional compiler flags for building library objects.
14927 pic_flag=$lt_lt_prog_compiler_pic_F77
14928 pic_mode=$pic_mode
14929
14930 # What is the maximum length of a command?
14931 max_cmd_len=$lt_cv_sys_max_cmd_len
14932
14933 # Does compiler simultaneously support -c and -o options?
14934 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
14935
14936 # Must we lock files when doing compilation ?
14937 need_locks=$lt_need_locks
14938
14939 # Do we need the lib prefix for modules?
14940 need_lib_prefix=$need_lib_prefix
14941
14942 # Do we need a version for libraries?
14943 need_version=$need_version
14944
14945 # Whether dlopen is supported.
14946 dlopen_support=$enable_dlopen
14947
14948 # Whether dlopen of programs is supported.
14949 dlopen_self=$enable_dlopen_self
14950
14951 # Whether dlopen of statically linked programs is supported.
14952 dlopen_self_static=$enable_dlopen_self_static
14953
14954 # Compiler flag to prevent dynamic linking.
14955 link_static_flag=$lt_lt_prog_compiler_static_F77
14956
14957 # Compiler flag to turn off builtin functions.
14958 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
14959
14960 # Compiler flag to allow reflexive dlopens.
14961 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
14962
14963 # Compiler flag to generate shared objects directly from archives.
14964 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
14965
14966 # Compiler flag to generate thread-safe objects.
14967 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
14968
14969 # Library versioning type.
14970 version_type=$version_type
14971
14972 # Format of library name prefix.
14973 libname_spec=$lt_libname_spec
14974
14975 # List of archive names.  First name is the real one, the rest are links.
14976 # The last name is the one that the linker finds with -lNAME.
14977 library_names_spec=$lt_library_names_spec
14978
14979 # The coded name of the library, if different from the real name.
14980 soname_spec=$lt_soname_spec
14981
14982 # Commands used to build and install an old-style archive.
14983 RANLIB=$lt_RANLIB
14984 old_archive_cmds=$lt_old_archive_cmds_F77
14985 old_postinstall_cmds=$lt_old_postinstall_cmds
14986 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14987
14988 # Create an old-style archive from a shared archive.
14989 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
14990
14991 # Create a temporary old-style archive to link instead of a shared archive.
14992 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
14993
14994 # Commands used to build and install a shared archive.
14995 archive_cmds=$lt_archive_cmds_F77
14996 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
14997 postinstall_cmds=$lt_postinstall_cmds
14998 postuninstall_cmds=$lt_postuninstall_cmds
14999
15000 # Commands used to build a loadable module (assumed same as above if empty)
15001 module_cmds=$lt_module_cmds_F77
15002 module_expsym_cmds=$lt_module_expsym_cmds_F77
15003
15004 # Commands to strip libraries.
15005 old_striplib=$lt_old_striplib
15006 striplib=$lt_striplib
15007
15008 # Dependencies to place before the objects being linked to create a
15009 # shared library.
15010 predep_objects=$lt_predep_objects_F77
15011
15012 # Dependencies to place after the objects being linked to create a
15013 # shared library.
15014 postdep_objects=$lt_postdep_objects_F77
15015
15016 # Dependencies to place before the objects being linked to create a
15017 # shared library.
15018 predeps=$lt_predeps_F77
15019
15020 # Dependencies to place after the objects being linked to create a
15021 # shared library.
15022 postdeps=$lt_postdeps_F77
15023
15024 # The library search path used internally by the compiler when linking
15025 # a shared library.
15026 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15027
15028 # Method to check whether dependent libraries are shared objects.
15029 deplibs_check_method=$lt_deplibs_check_method
15030
15031 # Command to use when deplibs_check_method == file_magic.
15032 file_magic_cmd=$lt_file_magic_cmd
15033
15034 # Flag that allows shared libraries with undefined symbols to be built.
15035 allow_undefined_flag=$lt_allow_undefined_flag_F77
15036
15037 # Flag that forces no undefined symbols.
15038 no_undefined_flag=$lt_no_undefined_flag_F77
15039
15040 # Commands used to finish a libtool library installation in a directory.
15041 finish_cmds=$lt_finish_cmds
15042
15043 # Same as above, but a single script fragment to be evaled but not shown.
15044 finish_eval=$lt_finish_eval
15045
15046 # Take the output of nm and produce a listing of raw symbols and C names.
15047 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15048
15049 # Transform the output of nm in a proper C declaration
15050 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15051
15052 # Transform the output of nm in a C name address pair
15053 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15054
15055 # This is the shared library runtime path variable.
15056 runpath_var=$runpath_var
15057
15058 # This is the shared library path variable.
15059 shlibpath_var=$shlibpath_var
15060
15061 # Is shlibpath searched before the hard-coded library search path?
15062 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15063
15064 # How to hardcode a shared library path into an executable.
15065 hardcode_action=$hardcode_action_F77
15066
15067 # Whether we should hardcode library paths into libraries.
15068 hardcode_into_libs=$hardcode_into_libs
15069
15070 # Flag to hardcode \$libdir into a binary during linking.
15071 # This must work even if \$libdir does not exist.
15072 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15073
15074 # If ld is used when linking, flag to hardcode \$libdir into
15075 # a binary during linking. This must work even if \$libdir does
15076 # not exist.
15077 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15078
15079 # Whether we need a single -rpath flag with a separated argument.
15080 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15081
15082 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15083 # resulting binary.
15084 hardcode_direct=$hardcode_direct_F77
15085
15086 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15087 # resulting binary.
15088 hardcode_minus_L=$hardcode_minus_L_F77
15089
15090 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15091 # the resulting binary.
15092 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15093
15094 # Set to yes if building a shared library automatically hardcodes DIR into the library
15095 # and all subsequent libraries and executables linked against it.
15096 hardcode_automatic=$hardcode_automatic_F77
15097
15098 # Variables whose values should be saved in libtool wrapper scripts and
15099 # restored at relink time.
15100 variables_saved_for_relink="$variables_saved_for_relink"
15101
15102 # Whether libtool must link a program against all its dependency libraries.
15103 link_all_deplibs=$link_all_deplibs_F77
15104
15105 # Compile-time system search path for libraries
15106 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15107
15108 # Run-time system search path for libraries
15109 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15110
15111 # Fix the shell variable \$srcfile for the compiler.
15112 fix_srcfile_path="$fix_srcfile_path_F77"
15113
15114 # Set to yes if exported symbols are required.
15115 always_export_symbols=$always_export_symbols_F77
15116
15117 # The commands to list exported symbols.
15118 export_symbols_cmds=$lt_export_symbols_cmds_F77
15119
15120 # The commands to extract the exported symbol list from a shared archive.
15121 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15122
15123 # Symbols that should not be listed in the preloaded symbols.
15124 exclude_expsyms=$lt_exclude_expsyms_F77
15125
15126 # Symbols that must always be exported.
15127 include_expsyms=$lt_include_expsyms_F77
15128
15129 # ### END LIBTOOL TAG CONFIG: $tagname
15130
15131 __EOF__
15132
15133
15134 else
15135   # If there is no Makefile yet, we rely on a make rule to execute
15136   # `config.status --recheck' to rerun these tests and create the
15137   # libtool script then.
15138   test -f Makefile && make "$ltmain"
15139 fi
15140
15141
15142 ac_ext=c
15143 ac_cpp='$CPP $CPPFLAGS'
15144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15147
15148 CC="$lt_save_CC"
15149
15150         else
15151           tagname=""
15152         fi
15153         ;;
15154
15155       GCJ)
15156         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15157
15158
15159
15160 # Source file extension for Java test sources.
15161 ac_ext=java
15162
15163 # Object file extension for compiled Java test sources.
15164 objext=o
15165 objext_GCJ=$objext
15166
15167 # Code to be used in simple compile tests
15168 lt_simple_compile_test_code="class foo {}\n"
15169
15170 # Code to be used in simple link tests
15171 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15172
15173 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15174
15175 # If no C compiler was specified, use CC.
15176 LTCC=${LTCC-"$CC"}
15177
15178 # Allow CC to be a program name with arguments.
15179 compiler=$CC
15180
15181
15182 # Allow CC to be a program name with arguments.
15183 lt_save_CC="$CC"
15184 CC=${GCJ-"gcj"}
15185 compiler=$CC
15186 compiler_GCJ=$CC
15187
15188 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15189 archive_cmds_need_lc_GCJ=no
15190
15191
15192 lt_prog_compiler_no_builtin_flag_GCJ=
15193
15194 if test "$GCC" = yes; then
15195   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15196
15197   echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15198 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15199 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15200   echo $ECHO_N "(cached) $ECHO_C" >&6
15201 else
15202   lt_cv_prog_compiler_rtti_exceptions=no
15203   ac_outfile=conftest.$ac_objext
15204    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15205    lt_compiler_flag="-fno-rtti -fno-exceptions"
15206    # Insert the option either (1) after the last *FLAGS variable, or
15207    # (2) before a word containing "conftest.", or (3) at the end.
15208    # Note that $ac_compile itself does not contain backslashes and begins
15209    # with a dollar sign (not a hyphen), so the echo should work correctly.
15210    # The option is referenced via a variable to avoid confusing sed.
15211    lt_compile=`echo "$ac_compile" | $SED \
15212    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15213    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15214    -e 's:$: $lt_compiler_flag:'`
15215    (eval echo "\"\$as_me:15215: $lt_compile\"" >&5)
15216    (eval "$lt_compile" 2>conftest.err)
15217    ac_status=$?
15218    cat conftest.err >&5
15219    echo "$as_me:15219: \$? = $ac_status" >&5
15220    if (exit $ac_status) && test -s "$ac_outfile"; then
15221      # The compiler can only warn and ignore the option if not recognized
15222      # So say no if there are warnings
15223      if test ! -s conftest.err; then
15224        lt_cv_prog_compiler_rtti_exceptions=yes
15225      fi
15226    fi
15227    $rm conftest*
15228
15229 fi
15230 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15231 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15232
15233 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15234     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15235 else
15236     :
15237 fi
15238
15239 fi
15240
15241 lt_prog_compiler_wl_GCJ=
15242 lt_prog_compiler_pic_GCJ=
15243 lt_prog_compiler_static_GCJ=
15244
15245 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15246 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15247
15248   if test "$GCC" = yes; then
15249     lt_prog_compiler_wl_GCJ='-Wl,'
15250     lt_prog_compiler_static_GCJ='-static'
15251
15252     case $host_os in
15253       aix*)
15254       # All AIX code is PIC.
15255       if test "$host_cpu" = ia64; then
15256         # AIX 5 now supports IA64 processor
15257         lt_prog_compiler_static_GCJ='-Bstatic'
15258       fi
15259       ;;
15260
15261     amigaos*)
15262       # FIXME: we need at least 68020 code to build shared libraries, but
15263       # adding the `-m68020' flag to GCC prevents building anything better,
15264       # like `-m68040'.
15265       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15266       ;;
15267
15268     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15269       # PIC is the default for these OSes.
15270       ;;
15271
15272     mingw* | pw32* | os2*)
15273       # This hack is so that the source file can tell whether it is being
15274       # built for inclusion in a dll (and should export symbols for example).
15275       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15276       ;;
15277
15278     darwin* | rhapsody*)
15279       # PIC is the default on this platform
15280       # Common symbols not allowed in MH_DYLIB files
15281       lt_prog_compiler_pic_GCJ='-fno-common'
15282       ;;
15283
15284     msdosdjgpp*)
15285       # Just because we use GCC doesn't mean we suddenly get shared libraries
15286       # on systems that don't support them.
15287       lt_prog_compiler_can_build_shared_GCJ=no
15288       enable_shared=no
15289       ;;
15290
15291     sysv4*MP*)
15292       if test -d /usr/nec; then
15293         lt_prog_compiler_pic_GCJ=-Kconform_pic
15294       fi
15295       ;;
15296
15297     hpux*)
15298       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15299       # not for PA HP-UX.
15300       case "$host_cpu" in
15301       hppa*64*|ia64*)
15302         # +Z the default
15303         ;;
15304       *)
15305         lt_prog_compiler_pic_GCJ='-fPIC'
15306         ;;
15307       esac
15308       ;;
15309
15310     *)
15311       lt_prog_compiler_pic_GCJ='-fPIC'
15312       ;;
15313     esac
15314   else
15315     # PORTME Check for flag to pass linker flags through the system compiler.
15316     case $host_os in
15317     aix*)
15318       lt_prog_compiler_wl_GCJ='-Wl,'
15319       if test "$host_cpu" = ia64; then
15320         # AIX 5 now supports IA64 processor
15321         lt_prog_compiler_static_GCJ='-Bstatic'
15322       else
15323         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15324       fi
15325       ;;
15326
15327     mingw* | pw32* | os2*)
15328       # This hack is so that the source file can tell whether it is being
15329       # built for inclusion in a dll (and should export symbols for example).
15330       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15331       ;;
15332
15333     hpux9* | hpux10* | hpux11*)
15334       lt_prog_compiler_wl_GCJ='-Wl,'
15335       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15336       # not for PA HP-UX.
15337       case "$host_cpu" in
15338       hppa*64*|ia64*)
15339         # +Z the default
15340         ;;
15341       *)
15342         lt_prog_compiler_pic_GCJ='+Z'
15343         ;;
15344       esac
15345       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15346       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15347       ;;
15348
15349     irix5* | irix6* | nonstopux*)
15350       lt_prog_compiler_wl_GCJ='-Wl,'
15351       # PIC (with -KPIC) is the default.
15352       lt_prog_compiler_static_GCJ='-non_shared'
15353       ;;
15354
15355     newsos6)
15356       lt_prog_compiler_pic_GCJ='-KPIC'
15357       lt_prog_compiler_static_GCJ='-Bstatic'
15358       ;;
15359
15360     linux*)
15361       case $CC in
15362       icc|ecc)
15363         lt_prog_compiler_wl_GCJ='-Wl,'
15364         lt_prog_compiler_pic_GCJ='-KPIC'
15365         lt_prog_compiler_static_GCJ='-static'
15366         ;;
15367       ccc)
15368         lt_prog_compiler_wl_GCJ='-Wl,'
15369         # All Alpha code is PIC.
15370         lt_prog_compiler_static_GCJ='-non_shared'
15371         ;;
15372       esac
15373       ;;
15374
15375     osf3* | osf4* | osf5*)
15376       lt_prog_compiler_wl_GCJ='-Wl,'
15377       # All OSF/1 code is PIC.
15378       lt_prog_compiler_static_GCJ='-non_shared'
15379       ;;
15380
15381     sco3.2v5*)
15382       lt_prog_compiler_pic_GCJ='-Kpic'
15383       lt_prog_compiler_static_GCJ='-dn'
15384       ;;
15385
15386     solaris*)
15387       lt_prog_compiler_wl_GCJ='-Wl,'
15388       lt_prog_compiler_pic_GCJ='-KPIC'
15389       lt_prog_compiler_static_GCJ='-Bstatic'
15390       ;;
15391
15392     sunos4*)
15393       lt_prog_compiler_wl_GCJ='-Qoption ld '
15394       lt_prog_compiler_pic_GCJ='-PIC'
15395       lt_prog_compiler_static_GCJ='-Bstatic'
15396       ;;
15397
15398     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15399       lt_prog_compiler_wl_GCJ='-Wl,'
15400       lt_prog_compiler_pic_GCJ='-KPIC'
15401       lt_prog_compiler_static_GCJ='-Bstatic'
15402       ;;
15403
15404     sysv4*MP*)
15405       if test -d /usr/nec ;then
15406         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15407         lt_prog_compiler_static_GCJ='-Bstatic'
15408       fi
15409       ;;
15410
15411     uts4*)
15412       lt_prog_compiler_pic_GCJ='-pic'
15413       lt_prog_compiler_static_GCJ='-Bstatic'
15414       ;;
15415
15416     *)
15417       lt_prog_compiler_can_build_shared_GCJ=no
15418       ;;
15419     esac
15420   fi
15421
15422 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15423 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15424
15425 #
15426 # Check to make sure the PIC flag actually works.
15427 #
15428 if test -n "$lt_prog_compiler_pic_GCJ"; then
15429   echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15430 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15431 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15432   echo $ECHO_N "(cached) $ECHO_C" >&6
15433 else
15434   lt_prog_compiler_pic_works_GCJ=no
15435   ac_outfile=conftest.$ac_objext
15436    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15437    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15438    # Insert the option either (1) after the last *FLAGS variable, or
15439    # (2) before a word containing "conftest.", or (3) at the end.
15440    # Note that $ac_compile itself does not contain backslashes and begins
15441    # with a dollar sign (not a hyphen), so the echo should work correctly.
15442    # The option is referenced via a variable to avoid confusing sed.
15443    lt_compile=`echo "$ac_compile" | $SED \
15444    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15445    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15446    -e 's:$: $lt_compiler_flag:'`
15447    (eval echo "\"\$as_me:15447: $lt_compile\"" >&5)
15448    (eval "$lt_compile" 2>conftest.err)
15449    ac_status=$?
15450    cat conftest.err >&5
15451    echo "$as_me:15451: \$? = $ac_status" >&5
15452    if (exit $ac_status) && test -s "$ac_outfile"; then
15453      # The compiler can only warn and ignore the option if not recognized
15454      # So say no if there are warnings
15455      if test ! -s conftest.err; then
15456        lt_prog_compiler_pic_works_GCJ=yes
15457      fi
15458    fi
15459    $rm conftest*
15460
15461 fi
15462 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15463 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15464
15465 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15466     case $lt_prog_compiler_pic_GCJ in
15467      "" | " "*) ;;
15468      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15469      esac
15470 else
15471     lt_prog_compiler_pic_GCJ=
15472      lt_prog_compiler_can_build_shared_GCJ=no
15473 fi
15474
15475 fi
15476 case "$host_os" in
15477   # For platforms which do not support PIC, -DPIC is meaningless:
15478   *djgpp*)
15479     lt_prog_compiler_pic_GCJ=
15480     ;;
15481   *)
15482     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15483     ;;
15484 esac
15485
15486 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15487 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15488 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15489   echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15491   lt_cv_prog_compiler_c_o_GCJ=no
15492    $rm -r conftest 2>/dev/null
15493    mkdir conftest
15494    cd conftest
15495    mkdir out
15496    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15497
15498    # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
15499    # that will create temporary files in the current directory regardless of
15500    # the output directory.  Thus, making CWD read-only will cause this test
15501    # to fail, enabling locking or at least warning the user not to do parallel
15502    # builds.
15503    chmod -w .
15504
15505    lt_compiler_flag="-o out/conftest2.$ac_objext"
15506    # Insert the option either (1) after the last *FLAGS variable, or
15507    # (2) before a word containing "conftest.", or (3) at the end.
15508    # Note that $ac_compile itself does not contain backslashes and begins
15509    # with a dollar sign (not a hyphen), so the echo should work correctly.
15510    lt_compile=`echo "$ac_compile" | $SED \
15511    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15512    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15513    -e 's:$: $lt_compiler_flag:'`
15514    (eval echo "\"\$as_me:15514: $lt_compile\"" >&5)
15515    (eval "$lt_compile" 2>out/conftest.err)
15516    ac_status=$?
15517    cat out/conftest.err >&5
15518    echo "$as_me:15518: \$? = $ac_status" >&5
15519    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15520    then
15521      # The compiler can only warn and ignore the option if not recognized
15522      # So say no if there are warnings
15523      if test ! -s out/conftest.err; then
15524        lt_cv_prog_compiler_c_o_GCJ=yes
15525      fi
15526    fi
15527    chmod u+w .
15528    $rm conftest* out/*
15529    rmdir out
15530    cd ..
15531    rmdir conftest
15532    $rm conftest*
15533
15534 fi
15535 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15536 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15537
15538
15539 hard_links="nottested"
15540 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15541   # do not overwrite the value of need_locks provided by the user
15542   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15543 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15544   hard_links=yes
15545   $rm conftest*
15546   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15547   touch conftest.a
15548   ln conftest.a conftest.b 2>&5 || hard_links=no
15549   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15550   echo "$as_me:$LINENO: result: $hard_links" >&5
15551 echo "${ECHO_T}$hard_links" >&6
15552   if test "$hard_links" = no; then
15553     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15554 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15555     need_locks=warn
15556   fi
15557 else
15558   need_locks=no
15559 fi
15560
15561 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15562 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15563
15564   runpath_var=
15565   allow_undefined_flag_GCJ=
15566   enable_shared_with_static_runtimes_GCJ=no
15567   archive_cmds_GCJ=
15568   archive_expsym_cmds_GCJ=
15569   old_archive_From_new_cmds_GCJ=
15570   old_archive_from_expsyms_cmds_GCJ=
15571   export_dynamic_flag_spec_GCJ=
15572   whole_archive_flag_spec_GCJ=
15573   thread_safe_flag_spec_GCJ=
15574   hardcode_libdir_flag_spec_GCJ=
15575   hardcode_libdir_flag_spec_ld_GCJ=
15576   hardcode_libdir_separator_GCJ=
15577   hardcode_direct_GCJ=no
15578   hardcode_minus_L_GCJ=no
15579   hardcode_shlibpath_var_GCJ=unsupported
15580   link_all_deplibs_GCJ=unknown
15581   hardcode_automatic_GCJ=no
15582   module_cmds_GCJ=
15583   module_expsym_cmds_GCJ=
15584   always_export_symbols_GCJ=no
15585   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15586   # include_expsyms should be a list of space-separated symbols to be *always*
15587   # included in the symbol list
15588   include_expsyms_GCJ=
15589   # exclude_expsyms can be an extended regexp of symbols to exclude
15590   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15591   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15592   # as well as any symbol that contains `d'.
15593   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15594   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15595   # platforms (ab)use it in PIC code, but their linkers get confused if
15596   # the symbol is explicitly referenced.  Since portable code cannot
15597   # rely on this symbol name, it's probably fine to never include it in
15598   # preloaded symbol tables.
15599   extract_expsyms_cmds=
15600
15601   case $host_os in
15602   cygwin* | mingw* | pw32*)
15603     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15604     # When not using gcc, we currently assume that we are using
15605     # Microsoft Visual C++.
15606     if test "$GCC" != yes; then
15607       with_gnu_ld=no
15608     fi
15609     ;;
15610   openbsd*)
15611     with_gnu_ld=no
15612     ;;
15613   esac
15614
15615   ld_shlibs_GCJ=yes
15616   if test "$with_gnu_ld" = yes; then
15617     # If archive_cmds runs LD, not CC, wlarc should be empty
15618     wlarc='${wl}'
15619
15620     # See if GNU ld supports shared libraries.
15621     case $host_os in
15622     aix3* | aix4* | aix5*)
15623       # On AIX/PPC, the GNU linker is very broken
15624       if test "$host_cpu" != ia64; then
15625         ld_shlibs_GCJ=no
15626         cat <<EOF 1>&2
15627
15628 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15629 *** to be unable to reliably create shared libraries on AIX.
15630 *** Therefore, libtool is disabling shared libraries support.  If you
15631 *** really care for shared libraries, you may want to modify your PATH
15632 *** so that a non-GNU linker is found, and then restart.
15633
15634 EOF
15635       fi
15636       ;;
15637
15638     amigaos*)
15639       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)'
15640       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15641       hardcode_minus_L_GCJ=yes
15642
15643       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
15644       # that the semantics of dynamic libraries on AmigaOS, at least up
15645       # to version 4, is to share data among multiple programs linked
15646       # with the same dynamic library.  Since this doesn't match the
15647       # behavior of shared libraries on other platforms, we can't use
15648       # them.
15649       ld_shlibs_GCJ=no
15650       ;;
15651
15652     beos*)
15653       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15654         allow_undefined_flag_GCJ=unsupported
15655         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15656         # support --undefined.  This deserves some investigation.  FIXME
15657         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15658       else
15659         ld_shlibs_GCJ=no
15660       fi
15661       ;;
15662
15663     cygwin* | mingw* | pw32*)
15664       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
15665       # as there is no search path for DLLs.
15666       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15667       allow_undefined_flag_GCJ=unsupported
15668       always_export_symbols_GCJ=no
15669       enable_shared_with_static_runtimes_GCJ=yes
15670       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15671
15672       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15673         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15674         # If the export-symbols file already is a .def file (1st line
15675         # is EXPORTS), use it as is; otherwise, prepend...
15676         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15677           cp $export_symbols $output_objdir/$soname.def;
15678         else
15679           echo EXPORTS > $output_objdir/$soname.def;
15680           cat $export_symbols >> $output_objdir/$soname.def;
15681         fi~
15682         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
15683       else
15684         ld_shlibs=no
15685       fi
15686       ;;
15687
15688     netbsd*)
15689       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15690         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15691         wlarc=
15692       else
15693         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15694         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15695       fi
15696       ;;
15697
15698     solaris* | sysv5*)
15699       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15700         ld_shlibs_GCJ=no
15701         cat <<EOF 1>&2
15702
15703 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15704 *** create shared libraries on Solaris systems.  Therefore, libtool
15705 *** is disabling shared libraries support.  We urge you to upgrade GNU
15706 *** binutils to release 2.9.1 or newer.  Another option is to modify
15707 *** your PATH or compiler configuration so that the native linker is
15708 *** used, and then restart.
15709
15710 EOF
15711       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15712         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15713         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15714       else
15715         ld_shlibs_GCJ=no
15716       fi
15717       ;;
15718
15719     sunos4*)
15720       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15721       wlarc=
15722       hardcode_direct_GCJ=yes
15723       hardcode_shlibpath_var_GCJ=no
15724       ;;
15725
15726   linux*)
15727     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
15728         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15729         archive_cmds_GCJ="$tmp_archive_cmds"
15730       supports_anon_versioning=no
15731       case `$LD -v 2>/dev/null` in
15732         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15733         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15734         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15735         *\ 2.11.*) ;; # other 2.11 versions
15736         *) supports_anon_versioning=yes ;;
15737       esac
15738       if test $supports_anon_versioning = yes; then
15739         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
15740 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15741 $echo "local: *; };" >> $output_objdir/$libname.ver~
15742         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15743       else
15744         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
15745       fi
15746     else
15747       ld_shlibs_GCJ=no
15748     fi
15749     ;;
15750
15751     *)
15752       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15753         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15754         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15755       else
15756         ld_shlibs_GCJ=no
15757       fi
15758       ;;
15759     esac
15760
15761     if test "$ld_shlibs_GCJ" = yes; then
15762       runpath_var=LD_RUN_PATH
15763       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
15764       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
15765       # ancient GNU ld didn't support --whole-archive et. al.
15766       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15767         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15768       else
15769         whole_archive_flag_spec_GCJ=
15770       fi
15771     fi
15772   else
15773     # PORTME fill in a description of your system's linker (not GNU ld)
15774     case $host_os in
15775     aix3*)
15776       allow_undefined_flag_GCJ=unsupported
15777       always_export_symbols_GCJ=yes
15778       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'
15779       # Note: this linker hardcodes the directories in LIBPATH if there
15780       # are no directories specified by -L.
15781       hardcode_minus_L_GCJ=yes
15782       if test "$GCC" = yes && test -z "$link_static_flag"; then
15783         # Neither direct hardcoding nor static linking is supported with a
15784         # broken collect2.
15785         hardcode_direct_GCJ=unsupported
15786       fi
15787       ;;
15788
15789     aix4* | aix5*)
15790       if test "$host_cpu" = ia64; then
15791         # On IA64, the linker does run time linking by default, so we don't
15792         # have to do anything special.
15793         aix_use_runtimelinking=no
15794         exp_sym_flag='-Bexport'
15795         no_entry_flag=""
15796       else
15797         # If we're using GNU nm, then we don't want the "-C" option.
15798         # -C means demangle to AIX nm, but means don't demangle with GNU nm
15799         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15800           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'
15801         else
15802           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'
15803         fi
15804         aix_use_runtimelinking=no
15805
15806         # Test if we are trying to use run time linking or normal
15807         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15808         # need to do runtime linking.
15809         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15810           for ld_flag in $LDFLAGS; do
15811           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15812             aix_use_runtimelinking=yes
15813             break
15814           fi
15815           done
15816         esac
15817
15818         exp_sym_flag='-bexport'
15819         no_entry_flag='-bnoentry'
15820       fi
15821
15822       # When large executables or shared objects are built, AIX ld can
15823       # have problems creating the table of contents.  If linking a library
15824       # or program results in "error TOC overflow" add -mminimal-toc to
15825       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15826       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15827
15828       archive_cmds_GCJ=''
15829       hardcode_direct_GCJ=yes
15830       hardcode_libdir_separator_GCJ=':'
15831       link_all_deplibs_GCJ=yes
15832
15833       if test "$GCC" = yes; then
15834         case $host_os in aix4.012|aix4.012.*)
15835         # We only want to do this on AIX 4.2 and lower, the check
15836         # below for broken collect2 doesn't work under 4.3+
15837           collect2name=`${CC} -print-prog-name=collect2`
15838           if test -f "$collect2name" && \
15839            strings "$collect2name" | grep resolve_lib_name >/dev/null
15840           then
15841           # We have reworked collect2
15842           hardcode_direct_GCJ=yes
15843           else
15844           # We have old collect2
15845           hardcode_direct_GCJ=unsupported
15846           # It fails to find uninstalled libraries when the uninstalled
15847           # path is not listed in the libpath.  Setting hardcode_minus_L
15848           # to unsupported forces relinking
15849           hardcode_minus_L_GCJ=yes
15850           hardcode_libdir_flag_spec_GCJ='-L$libdir'
15851           hardcode_libdir_separator_GCJ=
15852           fi
15853         esac
15854         shared_flag='-shared'
15855       else
15856         # not using gcc
15857         if test "$host_cpu" = ia64; then
15858         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15859         # chokes on -Wl,-G. The following line is correct:
15860           shared_flag='-G'
15861         else
15862         if test "$aix_use_runtimelinking" = yes; then
15863             shared_flag='${wl}-G'
15864           else
15865             shared_flag='${wl}-bM:SRE'
15866         fi
15867         fi
15868       fi
15869
15870       # It seems that -bexpall does not export symbols beginning with
15871       # underscore (_), so it is better to generate a list of symbols to export.
15872       always_export_symbols_GCJ=yes
15873       if test "$aix_use_runtimelinking" = yes; then
15874         # Warning - without using the other runtime loading flags (-brtl),
15875         # -berok will link without error, but may produce a broken library.
15876         allow_undefined_flag_GCJ='-berok'
15877        # Determine the default libpath from the value encoded in an empty executable.
15878        cat >conftest.$ac_ext <<_ACEOF
15879 #line $LINENO "configure"
15880 /* confdefs.h.  */
15881 _ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h.  */
15885
15886 int
15887 main ()
15888 {
15889
15890   ;
15891   return 0;
15892 }
15893 _ACEOF
15894 rm -f conftest.$ac_objext conftest$ac_exeext
15895 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15896   (eval $ac_link) 2>&5
15897   ac_status=$?
15898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15899   (exit $ac_status); } &&
15900          { ac_try='test -s conftest$ac_exeext'
15901   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15902   (eval $ac_try) 2>&5
15903   ac_status=$?
15904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905   (exit $ac_status); }; }; then
15906
15907 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15908 }'`
15909 # Check for a 64-bit object if we didn't find anything.
15910 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; }
15911 }'`; fi
15912 else
15913   echo "$as_me: failed program was:" >&5
15914 sed 's/^/| /' conftest.$ac_ext >&5
15915
15916 fi
15917 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15918 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15919
15920        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15921         archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15922        else
15923         if test "$host_cpu" = ia64; then
15924           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
15925           allow_undefined_flag_GCJ="-z nodefs"
15926           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15927         else
15928          # Determine the default libpath from the value encoded in an empty executable.
15929          cat >conftest.$ac_ext <<_ACEOF
15930 #line $LINENO "configure"
15931 /* confdefs.h.  */
15932 _ACEOF
15933 cat confdefs.h >>conftest.$ac_ext
15934 cat >>conftest.$ac_ext <<_ACEOF
15935 /* end confdefs.h.  */
15936
15937 int
15938 main ()
15939 {
15940
15941   ;
15942   return 0;
15943 }
15944 _ACEOF
15945 rm -f conftest.$ac_objext conftest$ac_exeext
15946 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15947   (eval $ac_link) 2>&5
15948   ac_status=$?
15949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950   (exit $ac_status); } &&
15951          { ac_try='test -s conftest$ac_exeext'
15952   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15953   (eval $ac_try) 2>&5
15954   ac_status=$?
15955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15956   (exit $ac_status); }; }; then
15957
15958 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
15959 }'`
15960 # Check for a 64-bit object if we didn't find anything.
15961 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; }
15962 }'`; fi
15963 else
15964   echo "$as_me: failed program was:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15966
15967 fi
15968 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
15969 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15970
15971          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
15972           # Warning - without using the other run time loading flags,
15973           # -berok will link without error, but may produce a broken library.
15974           no_undefined_flag_GCJ=' ${wl}-bernotok'
15975           allow_undefined_flag_GCJ=' ${wl}-berok'
15976           # -bexpall does not export symbols beginning with underscore (_)
15977           always_export_symbols_GCJ=yes
15978           # Exported symbols can be pulled into shared objects from archives
15979           whole_archive_flag_spec_GCJ=' '
15980           archive_cmds_need_lc_GCJ=yes
15981           # This is similar to how AIX traditionally builds it's shared libraries.
15982           archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15983         fi
15984       fi
15985       ;;
15986
15987     amigaos*)
15988       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)'
15989       hardcode_libdir_flag_spec_GCJ='-L$libdir'
15990       hardcode_minus_L_GCJ=yes
15991       # see comment about different semantics on the GNU ld section
15992       ld_shlibs_GCJ=no
15993       ;;
15994
15995     bsdi4*)
15996       export_dynamic_flag_spec_GCJ=-rdynamic
15997       ;;
15998
15999     cygwin* | mingw* | pw32*)
16000       # When not using gcc, we currently assume that we are using
16001       # Microsoft Visual C++.
16002       # hardcode_libdir_flag_spec is actually meaningless, as there is
16003       # no search path for DLLs.
16004       hardcode_libdir_flag_spec_GCJ=' '
16005       allow_undefined_flag_GCJ=unsupported
16006       # Tell ltmain to make .lib files, not .a files.
16007       libext=lib
16008       # Tell ltmain to make .dll files, not .so files.
16009       shrext=".dll"
16010       # FIXME: Setting linknames here is a bad hack.
16011       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16012       # The linker will automatically build a .lib file if we build a DLL.
16013       old_archive_From_new_cmds_GCJ='true'
16014       # FIXME: Should let the user specify the lib program.
16015       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16016       fix_srcfile_path='`cygpath -w "$srcfile"`'
16017       enable_shared_with_static_runtimes_GCJ=yes
16018       ;;
16019
16020     darwin* | rhapsody*)
16021     if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16022       archive_cmds_need_lc_GCJ=no
16023       case "$host_os" in
16024       rhapsody* | darwin1.[012])
16025         allow_undefined_flag_GCJ='-undefined suppress'
16026         ;;
16027       *) # Darwin 1.3 on
16028         test -z ${LD_TWOLEVEL_NAMESPACE} && allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16029         ;;
16030       esac
16031       # FIXME: Relying on posixy $() will cause problems for
16032       #        cross-compilation, but unfortunately the echo tests do not
16033       #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
16034       #        `"' quotes if we put them in here... so don't!
16035         lt_int_apple_cc_single_mod=no
16036         output_verbose_link_cmd='echo'
16037         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16038           lt_int_apple_cc_single_mod=yes
16039         fi
16040         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16041           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16042         else
16043         archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16044       fi
16045       module_cmds_GCJ='$CC -bundle ${wl}-bind_at_load $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags'
16046       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16047         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16048           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16049         else
16050           archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16051         fi
16052           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -bundle $allow_undefined_flag  -o $lib $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16053       hardcode_direct_GCJ=no
16054       hardcode_automatic_GCJ=yes
16055       hardcode_shlibpath_var_GCJ=unsupported
16056       whole_archive_flag_spec_GCJ='-all_load $convenience'
16057       link_all_deplibs_GCJ=yes
16058     fi
16059       ;;
16060
16061     dgux*)
16062       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16063       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16064       hardcode_shlibpath_var_GCJ=no
16065       ;;
16066
16067     freebsd1*)
16068       ld_shlibs_GCJ=no
16069       ;;
16070
16071     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16072     # support.  Future versions do this automatically, but an explicit c++rt0.o
16073     # does not break anything, and helps significantly (at the cost of a little
16074     # extra space).
16075     freebsd2.2*)
16076       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16077       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16078       hardcode_direct_GCJ=yes
16079       hardcode_shlibpath_var_GCJ=no
16080       ;;
16081
16082     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16083     freebsd2*)
16084       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16085       hardcode_direct_GCJ=yes
16086       hardcode_minus_L_GCJ=yes
16087       hardcode_shlibpath_var_GCJ=no
16088       ;;
16089
16090     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16091     freebsd*)
16092       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16093       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16094       hardcode_direct_GCJ=yes
16095       hardcode_shlibpath_var_GCJ=no
16096       ;;
16097
16098     hpux9*)
16099       if test "$GCC" = yes; then
16100         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'
16101       else
16102         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'
16103       fi
16104       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16105       hardcode_libdir_separator_GCJ=:
16106       hardcode_direct_GCJ=yes
16107
16108       # hardcode_minus_L: Not really in the search PATH,
16109       # but as the default location of the library.
16110       hardcode_minus_L_GCJ=yes
16111       export_dynamic_flag_spec_GCJ='${wl}-E'
16112       ;;
16113
16114     hpux10* | hpux11*)
16115       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16116         case "$host_cpu" in
16117         hppa*64*|ia64*)
16118           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16119           ;;
16120         *)
16121           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16122           ;;
16123         esac
16124       else
16125         case "$host_cpu" in
16126         hppa*64*|ia64*)
16127           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16128           ;;
16129         *)
16130           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16131           ;;
16132         esac
16133       fi
16134       if test "$with_gnu_ld" = no; then
16135         case "$host_cpu" in
16136         hppa*64*)
16137           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16138           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16139           hardcode_libdir_separator_GCJ=:
16140           hardcode_direct_GCJ=no
16141           hardcode_shlibpath_var_GCJ=no
16142           ;;
16143         ia64*)
16144           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16145           hardcode_direct_GCJ=no
16146           hardcode_shlibpath_var_GCJ=no
16147
16148           # hardcode_minus_L: Not really in the search PATH,
16149           # but as the default location of the library.
16150           hardcode_minus_L_GCJ=yes
16151           ;;
16152         *)
16153           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16154           hardcode_libdir_separator_GCJ=:
16155           hardcode_direct_GCJ=yes
16156           export_dynamic_flag_spec_GCJ='${wl}-E'
16157
16158           # hardcode_minus_L: Not really in the search PATH,
16159           # but as the default location of the library.
16160           hardcode_minus_L_GCJ=yes
16161           ;;
16162         esac
16163       fi
16164       ;;
16165
16166     irix5* | irix6* | nonstopux*)
16167       if test "$GCC" = yes; then
16168         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'
16169       else
16170         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'
16171         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16172       fi
16173       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16174       hardcode_libdir_separator_GCJ=:
16175       link_all_deplibs_GCJ=yes
16176       ;;
16177
16178     netbsd*)
16179       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16180         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16181       else
16182         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16183       fi
16184       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16185       hardcode_direct_GCJ=yes
16186       hardcode_shlibpath_var_GCJ=no
16187       ;;
16188
16189     newsos6)
16190       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16191       hardcode_direct_GCJ=yes
16192       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16193       hardcode_libdir_separator_GCJ=:
16194       hardcode_shlibpath_var_GCJ=no
16195       ;;
16196
16197     openbsd*)
16198       hardcode_direct_GCJ=yes
16199       hardcode_shlibpath_var_GCJ=no
16200       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16201         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16202         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16203         export_dynamic_flag_spec_GCJ='${wl}-E'
16204       else
16205        case $host_os in
16206          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16207            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16208            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16209            ;;
16210          *)
16211            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16212            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16213            ;;
16214        esac
16215       fi
16216       ;;
16217
16218     os2*)
16219       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16220       hardcode_minus_L_GCJ=yes
16221       allow_undefined_flag_GCJ=unsupported
16222       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'
16223       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16224       ;;
16225
16226     osf3*)
16227       if test "$GCC" = yes; then
16228         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16229         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'
16230       else
16231         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16232         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'
16233       fi
16234       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16235       hardcode_libdir_separator_GCJ=:
16236       ;;
16237
16238     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16239       if test "$GCC" = yes; then
16240         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16241         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'
16242         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16243       else
16244         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16245         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'
16246         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~
16247         $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16248
16249         # Both c and cxx compiler support -rpath directly
16250         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16251       fi
16252       hardcode_libdir_separator_GCJ=:
16253       ;;
16254
16255     sco3.2v5*)
16256       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16257       hardcode_shlibpath_var_GCJ=no
16258       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16259       runpath_var=LD_RUN_PATH
16260       hardcode_runpath_var=yes
16261       ;;
16262
16263     solaris*)
16264       no_undefined_flag_GCJ=' -z text'
16265       if test "$GCC" = yes; then
16266         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16267         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16268           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16269       else
16270         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16271         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16272         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16273       fi
16274       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16275       hardcode_shlibpath_var_GCJ=no
16276       case $host_os in
16277       solaris2.[0-5] | solaris2.[0-5].*) ;;
16278       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16279         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16280       esac
16281       link_all_deplibs_GCJ=yes
16282       ;;
16283
16284     sunos4*)
16285       if test "x$host_vendor" = xsequent; then
16286         # Use $CC to link under sequent, because it throws in some extra .o
16287         # files that make .init and .fini sections work.
16288         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16289       else
16290         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16291       fi
16292       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16293       hardcode_direct_GCJ=yes
16294       hardcode_minus_L_GCJ=yes
16295       hardcode_shlibpath_var_GCJ=no
16296       ;;
16297
16298     sysv4)
16299       case $host_vendor in
16300         sni)
16301           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16302           hardcode_direct_GCJ=yes # is this really true???
16303         ;;
16304         siemens)
16305           ## LD is ld it makes a PLAMLIB
16306           ## CC just makes a GrossModule.
16307           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16308           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16309           hardcode_direct_GCJ=no
16310         ;;
16311         motorola)
16312           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16313           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16314         ;;
16315       esac
16316       runpath_var='LD_RUN_PATH'
16317       hardcode_shlibpath_var_GCJ=no
16318       ;;
16319
16320     sysv4.3*)
16321       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16322       hardcode_shlibpath_var_GCJ=no
16323       export_dynamic_flag_spec_GCJ='-Bexport'
16324       ;;
16325
16326     sysv4*MP*)
16327       if test -d /usr/nec; then
16328         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16329         hardcode_shlibpath_var_GCJ=no
16330         runpath_var=LD_RUN_PATH
16331         hardcode_runpath_var=yes
16332         ld_shlibs_GCJ=yes
16333       fi
16334       ;;
16335
16336     sysv4.2uw2*)
16337       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16338       hardcode_direct_GCJ=yes
16339       hardcode_minus_L_GCJ=no
16340       hardcode_shlibpath_var_GCJ=no
16341       hardcode_runpath_var=yes
16342       runpath_var=LD_RUN_PATH
16343       ;;
16344
16345    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16346       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16347       if test "$GCC" = yes; then
16348         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16349       else
16350         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16351       fi
16352       runpath_var='LD_RUN_PATH'
16353       hardcode_shlibpath_var_GCJ=no
16354       ;;
16355
16356     sysv5*)
16357       no_undefined_flag_GCJ=' -z text'
16358       # $CC -shared without GNU ld will not create a library from C++
16359       # object files and a static libstdc++, better avoid it by now
16360       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16361       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16362                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16363       hardcode_libdir_flag_spec_GCJ=
16364       hardcode_shlibpath_var_GCJ=no
16365       runpath_var='LD_RUN_PATH'
16366       ;;
16367
16368     uts4*)
16369       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16370       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16371       hardcode_shlibpath_var_GCJ=no
16372       ;;
16373
16374     *)
16375       ld_shlibs_GCJ=no
16376       ;;
16377     esac
16378   fi
16379
16380 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16381 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16382 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16383
16384 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16385 if test "$GCC" = yes; then
16386   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16387 fi
16388
16389 #
16390 # Do we need to explicitly link libc?
16391 #
16392 case "x$archive_cmds_need_lc_GCJ" in
16393 x|xyes)
16394   # Assume -lc should be added
16395   archive_cmds_need_lc_GCJ=yes
16396
16397   if test "$enable_shared" = yes && test "$GCC" = yes; then
16398     case $archive_cmds_GCJ in
16399     *'~'*)
16400       # FIXME: we may have to deal with multi-command sequences.
16401       ;;
16402     '$CC '*)
16403       # Test whether the compiler implicitly links with -lc since on some
16404       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16405       # to ld, don't add -lc before -lgcc.
16406       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16407 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16408       $rm conftest*
16409       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16410
16411       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16412   (eval $ac_compile) 2>&5
16413   ac_status=$?
16414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16415   (exit $ac_status); } 2>conftest.err; then
16416         soname=conftest
16417         lib=conftest
16418         libobjs=conftest.$ac_objext
16419         deplibs=
16420         wl=$lt_prog_compiler_wl_GCJ
16421         compiler_flags=-v
16422         linker_flags=-v
16423         verstring=
16424         output_objdir=.
16425         libname=conftest
16426         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16427         allow_undefined_flag_GCJ=
16428         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16429   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16430   ac_status=$?
16431   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16432   (exit $ac_status); }
16433         then
16434           archive_cmds_need_lc_GCJ=no
16435         else
16436           archive_cmds_need_lc_GCJ=yes
16437         fi
16438         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16439       else
16440         cat conftest.err 1>&5
16441       fi
16442       $rm conftest*
16443       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16444 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16445       ;;
16446     esac
16447   fi
16448   ;;
16449 esac
16450
16451 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16452 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16453 hardcode_action_GCJ=
16454 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
16455    test -n "$runpath_var GCJ" || \
16456    test "X$hardcode_automatic_GCJ"="Xyes" ; then
16457
16458   # We can hardcode non-existant directories.
16459   if test "$hardcode_direct_GCJ" != no &&
16460      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16461      # have to relink, otherwise we might link with an installed library
16462      # when we should be linking with a yet-to-be-installed one
16463      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
16464      test "$hardcode_minus_L_GCJ" != no; then
16465     # Linking always hardcodes the temporary library directory.
16466     hardcode_action_GCJ=relink
16467   else
16468     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16469     hardcode_action_GCJ=immediate
16470   fi
16471 else
16472   # We cannot hardcode anything, or else we can only hardcode existing
16473   # directories.
16474   hardcode_action_GCJ=unsupported
16475 fi
16476 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
16477 echo "${ECHO_T}$hardcode_action_GCJ" >&6
16478
16479 if test "$hardcode_action_GCJ" = relink; then
16480   # Fast installation is not supported
16481   enable_fast_install=no
16482 elif test "$shlibpath_overrides_runpath" = yes ||
16483      test "$enable_shared" = no; then
16484   # Fast installation is not necessary
16485   enable_fast_install=needless
16486 fi
16487
16488 striplib=
16489 old_striplib=
16490 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
16491 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
16492 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
16493   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16494   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16495   echo "$as_me:$LINENO: result: yes" >&5
16496 echo "${ECHO_T}yes" >&6
16497 else
16498 # FIXME - insert some real tests, host_os isn't really good enough
16499   case $host_os in
16500    darwin*)
16501        if test -n "$STRIP" ; then
16502          striplib="$STRIP -x"
16503          echo "$as_me:$LINENO: result: yes" >&5
16504 echo "${ECHO_T}yes" >&6
16505        else
16506   echo "$as_me:$LINENO: result: no" >&5
16507 echo "${ECHO_T}no" >&6
16508 fi
16509        ;;
16510    *)
16511   echo "$as_me:$LINENO: result: no" >&5
16512 echo "${ECHO_T}no" >&6
16513     ;;
16514   esac
16515 fi
16516
16517 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16518 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16519 library_names_spec=
16520 libname_spec='lib$name'
16521 soname_spec=
16522 shrext=".so"
16523 postinstall_cmds=
16524 postuninstall_cmds=
16525 finish_cmds=
16526 finish_eval=
16527 shlibpath_var=
16528 shlibpath_overrides_runpath=unknown
16529 version_type=none
16530 dynamic_linker="$host_os ld.so"
16531 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16532 if test "$GCC" = yes; then
16533   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16534   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16535     # if the path contains ";" then we assume it to be the separator
16536     # otherwise default to the standard path separator (i.e. ":") - it is
16537     # assumed that no part of a normal pathname contains ";" but that should
16538     # okay in the real world where ";" in dirpaths is itself problematic.
16539     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16540   else
16541     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16542   fi
16543 else
16544   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16545 fi
16546 need_lib_prefix=unknown
16547 hardcode_into_libs=no
16548
16549 # when you set need_version to no, make sure it does not cause -set_version
16550 # flags to be left without arguments
16551 need_version=unknown
16552
16553 case $host_os in
16554 aix3*)
16555   version_type=linux
16556   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16557   shlibpath_var=LIBPATH
16558
16559   # AIX 3 has no versioning support, so we append a major version to the name.
16560   soname_spec='${libname}${release}${shared_ext}$major'
16561   ;;
16562
16563 aix4* | aix5*)
16564   version_type=linux
16565   need_lib_prefix=no
16566   need_version=no
16567   hardcode_into_libs=yes
16568   if test "$host_cpu" = ia64; then
16569     # AIX 5 supports IA64
16570     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16571     shlibpath_var=LD_LIBRARY_PATH
16572   else
16573     # With GCC up to 2.95.x, collect2 would create an import file
16574     # for dependence libraries.  The import file would start with
16575     # the line `#! .'.  This would cause the generated library to
16576     # depend on `.', always an invalid library.  This was fixed in
16577     # development snapshots of GCC prior to 3.0.
16578     case $host_os in
16579       aix4 | aix4.[01] | aix4.[01].*)
16580       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16581            echo ' yes '
16582            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16583         :
16584       else
16585         can_build_shared=no
16586       fi
16587       ;;
16588     esac
16589     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16590     # soname into executable. Probably we can add versioning support to
16591     # collect2, so additional links can be useful in future.
16592     if test "$aix_use_runtimelinking" = yes; then
16593       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16594       # instead of lib<name>.a to let people know that these are not
16595       # typical AIX shared libraries.
16596       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16597     else
16598       # We preserve .a as extension for shared libraries through AIX4.2
16599       # and later when we are not doing run time linking.
16600       library_names_spec='${libname}${release}.a $libname.a'
16601       soname_spec='${libname}${release}${shared_ext}$major'
16602     fi
16603     shlibpath_var=LIBPATH
16604   fi
16605   ;;
16606
16607 amigaos*)
16608   library_names_spec='$libname.ixlibrary $libname.a'
16609   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16610   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'
16611   ;;
16612
16613 beos*)
16614   library_names_spec='${libname}${shared_ext}'
16615   dynamic_linker="$host_os ld.so"
16616   shlibpath_var=LIBRARY_PATH
16617   ;;
16618
16619 bsdi4*)
16620   version_type=linux
16621   need_version=no
16622   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16623   soname_spec='${libname}${release}${shared_ext}$major'
16624   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16625   shlibpath_var=LD_LIBRARY_PATH
16626   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16627   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16628   # the default ld.so.conf also contains /usr/contrib/lib and
16629   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16630   # libtool to hard-code these into programs
16631   ;;
16632
16633 cygwin* | mingw* | pw32*)
16634   version_type=windows
16635   shrext=".dll"
16636   need_version=no
16637   need_lib_prefix=no
16638
16639   case $GCC,$host_os in
16640   yes,cygwin* | yes,mingw* | yes,pw32*)
16641     library_names_spec='$libname.dll.a'
16642     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16643     postinstall_cmds='base_file=`basename \${file}`~
16644       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16645       dldir=$destdir/`dirname \$dlpath`~
16646       test -d \$dldir || mkdir -p \$dldir~
16647       $install_prog $dir/$dlname \$dldir/$dlname'
16648     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16649       dlpath=$dir/\$dldll~
16650        $rm \$dlpath'
16651     shlibpath_overrides_runpath=yes
16652
16653     case $host_os in
16654     cygwin*)
16655       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16656       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16657       sys_lib_search_path_spec="/lib /lib/w32api /usr/lib /usr/local/lib"
16658       ;;
16659     mingw*)
16660       # MinGW DLLs use traditional 'lib' prefix
16661       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16662       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16663       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16664         # It is most probably a Windows format PATH printed by
16665         # mingw gcc, but we are running on Cygwin. Gcc prints its search
16666         # path with ; separators, and with drive letters. We can handle the
16667         # drive letters (cygwin fileutils understands them), so leave them,
16668         # especially as we might pass files found there to a mingw objdump,
16669         # which wouldn't understand a cygwinified path. Ahh.
16670         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16671       else
16672         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16673       fi
16674       ;;
16675     pw32*)
16676       # pw32 DLLs use 'pw' prefix rather than 'lib'
16677       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16678       ;;
16679     esac
16680     ;;
16681
16682   *)
16683     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16684     ;;
16685   esac
16686   dynamic_linker='Win32 ld.exe'
16687   # FIXME: first we should search . and the directory the executable is in
16688   shlibpath_var=PATH
16689   ;;
16690
16691 darwin* | rhapsody*)
16692   dynamic_linker="$host_os dyld"
16693   version_type=darwin
16694   need_lib_prefix=no
16695   need_version=no
16696   # FIXME: Relying on posixy $() will cause problems for
16697   #        cross-compilation, but unfortunately the echo tests do not
16698   #        yet detect zsh echo's removal of \ escapes.
16699   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16700   soname_spec='${libname}${release}${major}$shared_ext'
16701   shlibpath_overrides_runpath=yes
16702   shlibpath_var=DYLD_LIBRARY_PATH
16703   shrext='$(test .$module = .yes && echo .so || echo .dylib)'
16704   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16705   if $CC -v 2>&1 | grep 'Apple' >/dev/null ; then
16706   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"`
16707   fi
16708   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16709   ;;
16710
16711 dgux*)
16712   version_type=linux
16713   need_lib_prefix=no
16714   need_version=no
16715   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16716   soname_spec='${libname}${release}${shared_ext}$major'
16717   shlibpath_var=LD_LIBRARY_PATH
16718   ;;
16719
16720 freebsd1*)
16721   dynamic_linker=no
16722   ;;
16723
16724 freebsd*)
16725   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16726   version_type=freebsd-$objformat
16727   case $version_type in
16728     freebsd-elf*)
16729       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16730       need_version=no
16731       need_lib_prefix=no
16732       ;;
16733     freebsd-*)
16734       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16735       need_version=yes
16736       ;;
16737   esac
16738   shlibpath_var=LD_LIBRARY_PATH
16739   case $host_os in
16740   freebsd2*)
16741     shlibpath_overrides_runpath=yes
16742     ;;
16743   freebsd3.01* | freebsdelf3.01*)
16744     shlibpath_overrides_runpath=yes
16745     hardcode_into_libs=yes
16746     ;;
16747   *) # from 3.2 on
16748     shlibpath_overrides_runpath=no
16749     hardcode_into_libs=yes
16750     ;;
16751   esac
16752   ;;
16753
16754 gnu*)
16755   version_type=linux
16756   need_lib_prefix=no
16757   need_version=no
16758   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16759   soname_spec='${libname}${release}${shared_ext}$major'
16760   shlibpath_var=LD_LIBRARY_PATH
16761   hardcode_into_libs=yes
16762   ;;
16763
16764 hpux9* | hpux10* | hpux11*)
16765   # Give a soname corresponding to the major version so that dld.sl refuses to
16766   # link against other versions.
16767   version_type=sunos
16768   need_lib_prefix=no
16769   need_version=no
16770   case "$host_cpu" in
16771   ia64*)
16772     shrext='.so'
16773     hardcode_into_libs=yes
16774     dynamic_linker="$host_os dld.so"
16775     shlibpath_var=LD_LIBRARY_PATH
16776     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16777     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16778     soname_spec='${libname}${release}${shared_ext}$major'
16779     if test "X$HPUX_IA64_MODE" = X32; then
16780       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16781     else
16782       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16783     fi
16784     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16785     ;;
16786    hppa*64*)
16787      shrext='.sl'
16788      hardcode_into_libs=yes
16789      dynamic_linker="$host_os dld.sl"
16790      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16791      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16792      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793      soname_spec='${libname}${release}${shared_ext}$major'
16794      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16795      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16796      ;;
16797    *)
16798     shrext='.sl'
16799     dynamic_linker="$host_os dld.sl"
16800     shlibpath_var=SHLIB_PATH
16801     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16802     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16803     soname_spec='${libname}${release}${shared_ext}$major'
16804     ;;
16805   esac
16806   # HP-UX runs *really* slowly unless shared libraries are mode 555.
16807   postinstall_cmds='chmod 555 $lib'
16808   ;;
16809
16810 irix5* | irix6* | nonstopux*)
16811   case $host_os in
16812     nonstopux*) version_type=nonstopux ;;
16813     *)
16814         if test "$lt_cv_prog_gnu_ld" = yes; then
16815                 version_type=linux
16816         else
16817                 version_type=irix
16818         fi ;;
16819   esac
16820   need_lib_prefix=no
16821   need_version=no
16822   soname_spec='${libname}${release}${shared_ext}$major'
16823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16824   case $host_os in
16825   irix5* | nonstopux*)
16826     libsuff= shlibsuff=
16827     ;;
16828   *)
16829     case $LD in # libtool.m4 will add one of these switches to LD
16830     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16831       libsuff= shlibsuff= libmagic=32-bit;;
16832     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16833       libsuff=32 shlibsuff=N32 libmagic=N32;;
16834     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16835       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16836     *) libsuff= shlibsuff= libmagic=never-match;;
16837     esac
16838     ;;
16839   esac
16840   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16841   shlibpath_overrides_runpath=no
16842   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16843   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16844   hardcode_into_libs=yes
16845   ;;
16846
16847 # No shared lib support for Linux oldld, aout, or coff.
16848 linux*oldld* | linux*aout* | linux*coff*)
16849   dynamic_linker=no
16850   ;;
16851
16852 # This must be Linux ELF.
16853 linux*)
16854   version_type=linux
16855   need_lib_prefix=no
16856   need_version=no
16857   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16858   soname_spec='${libname}${release}${shared_ext}$major'
16859   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16860   shlibpath_var=LD_LIBRARY_PATH
16861   shlibpath_overrides_runpath=no
16862   # This implies no fast_install, which is unacceptable.
16863   # Some rework will be needed to allow for fast_install
16864   # before this can be enabled.
16865   hardcode_into_libs=yes
16866
16867   # We used to test for /lib/ld.so.1 and disable shared libraries on
16868   # powerpc, because MkLinux only supported shared libraries with the
16869   # GNU dynamic linker.  Since this was broken with cross compilers,
16870   # most powerpc-linux boxes support dynamic linking these days and
16871   # people can always --disable-shared, the test was removed, and we
16872   # assume the GNU/Linux dynamic linker is in use.
16873   dynamic_linker='GNU/Linux ld.so'
16874
16875   # Find out which ABI we are using (multilib Linux x86_64 hack).
16876   libsuff=
16877   case "$host_cpu" in
16878   x86_64*|s390x*)
16879     echo '#line 16879 "configure"' > conftest.$ac_ext
16880     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16881   (eval $ac_compile) 2>&5
16882   ac_status=$?
16883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16884   (exit $ac_status); }; then
16885       case `/usr/bin/file conftest.$ac_objext` in
16886       *64-bit*)
16887         libsuff=64
16888         ;;
16889       esac
16890     fi
16891     rm -rf conftest*
16892     ;;
16893   *)
16894     ;;
16895   esac
16896   sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff}"
16897   sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
16898   ;;
16899
16900 netbsd*)
16901   version_type=sunos
16902   need_lib_prefix=no
16903   need_version=no
16904   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16906     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16907     dynamic_linker='NetBSD (a.out) ld.so'
16908   else
16909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} ${libname}${shared_ext}'
16910     soname_spec='${libname}${release}${shared_ext}$major'
16911     dynamic_linker='NetBSD ld.elf_so'
16912   fi
16913   shlibpath_var=LD_LIBRARY_PATH
16914   shlibpath_overrides_runpath=yes
16915   hardcode_into_libs=yes
16916   ;;
16917
16918 newsos6)
16919   version_type=linux
16920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16921   shlibpath_var=LD_LIBRARY_PATH
16922   shlibpath_overrides_runpath=yes
16923   ;;
16924
16925 nto-qnx)
16926   version_type=linux
16927   need_lib_prefix=no
16928   need_version=no
16929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16930   soname_spec='${libname}${release}${shared_ext}$major'
16931   shlibpath_var=LD_LIBRARY_PATH
16932   shlibpath_overrides_runpath=yes
16933   ;;
16934
16935 openbsd*)
16936   version_type=sunos
16937   need_lib_prefix=no
16938   need_version=no
16939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16941   shlibpath_var=LD_LIBRARY_PATH
16942   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16943     case $host_os in
16944       openbsd2.[89] | openbsd2.[89].*)
16945         shlibpath_overrides_runpath=no
16946         ;;
16947       *)
16948         shlibpath_overrides_runpath=yes
16949         ;;
16950       esac
16951   else
16952     shlibpath_overrides_runpath=yes
16953   fi
16954   ;;
16955
16956 os2*)
16957   libname_spec='$name'
16958   shrext=".dll"
16959   need_lib_prefix=no
16960   library_names_spec='$libname${shared_ext} $libname.a'
16961   dynamic_linker='OS/2 ld.exe'
16962   shlibpath_var=LIBPATH
16963   ;;
16964
16965 osf3* | osf4* | osf5*)
16966   version_type=osf
16967   need_lib_prefix=no
16968   need_version=no
16969   soname_spec='${libname}${release}${shared_ext}$major'
16970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16971   shlibpath_var=LD_LIBRARY_PATH
16972   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16973   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16974   ;;
16975
16976 sco3.2v5*)
16977   version_type=osf
16978   soname_spec='${libname}${release}${shared_ext}$major'
16979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16980   shlibpath_var=LD_LIBRARY_PATH
16981   ;;
16982
16983 solaris*)
16984   version_type=linux
16985   need_lib_prefix=no
16986   need_version=no
16987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16988   soname_spec='${libname}${release}${shared_ext}$major'
16989   shlibpath_var=LD_LIBRARY_PATH
16990   shlibpath_overrides_runpath=yes
16991   hardcode_into_libs=yes
16992   # ldd complains unless libraries are executable
16993   postinstall_cmds='chmod +x $lib'
16994   ;;
16995
16996 sunos4*)
16997   version_type=sunos
16998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16999   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17000   shlibpath_var=LD_LIBRARY_PATH
17001   shlibpath_overrides_runpath=yes
17002   if test "$with_gnu_ld" = yes; then
17003     need_lib_prefix=no
17004   fi
17005   need_version=yes
17006   ;;
17007
17008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17009   version_type=linux
17010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17011   soname_spec='${libname}${release}${shared_ext}$major'
17012   shlibpath_var=LD_LIBRARY_PATH
17013   case $host_vendor in
17014     sni)
17015       shlibpath_overrides_runpath=no
17016       need_lib_prefix=no
17017       export_dynamic_flag_spec='${wl}-Blargedynsym'
17018       runpath_var=LD_RUN_PATH
17019       ;;
17020     siemens)
17021       need_lib_prefix=no
17022       ;;
17023     motorola)
17024       need_lib_prefix=no
17025       need_version=no
17026       shlibpath_overrides_runpath=no
17027       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17028       ;;
17029   esac
17030   ;;
17031
17032 sysv4*MP*)
17033   if test -d /usr/nec ;then
17034     version_type=linux
17035     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17036     soname_spec='$libname${shared_ext}.$major'
17037     shlibpath_var=LD_LIBRARY_PATH
17038   fi
17039   ;;
17040
17041 uts4*)
17042   version_type=linux
17043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17044   soname_spec='${libname}${release}${shared_ext}$major'
17045   shlibpath_var=LD_LIBRARY_PATH
17046   ;;
17047
17048 *)
17049   dynamic_linker=no
17050   ;;
17051 esac
17052 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17053 echo "${ECHO_T}$dynamic_linker" >&6
17054 test "$dynamic_linker" = no && can_build_shared=no
17055
17056 if test "x$enable_dlopen" != xyes; then
17057   enable_dlopen=unknown
17058   enable_dlopen_self=unknown
17059   enable_dlopen_self_static=unknown
17060 else
17061   lt_cv_dlopen=no
17062   lt_cv_dlopen_libs=
17063
17064   case $host_os in
17065   beos*)
17066     lt_cv_dlopen="load_add_on"
17067     lt_cv_dlopen_libs=
17068     lt_cv_dlopen_self=yes
17069     ;;
17070
17071   mingw* | pw32*)
17072     lt_cv_dlopen="LoadLibrary"
17073     lt_cv_dlopen_libs=
17074    ;;
17075
17076   cygwin*)
17077     lt_cv_dlopen="dlopen"
17078     lt_cv_dlopen_libs=
17079    ;;
17080
17081   darwin*)
17082   # if libdl is installed we need to link against it
17083     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17084 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17085 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17086   echo $ECHO_N "(cached) $ECHO_C" >&6
17087 else
17088   ac_check_lib_save_LIBS=$LIBS
17089 LIBS="-ldl  $LIBS"
17090 cat >conftest.$ac_ext <<_ACEOF
17091 #line $LINENO "configure"
17092 /* confdefs.h.  */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h.  */
17097
17098 /* Override any gcc2 internal prototype to avoid an error.  */
17099 #ifdef __cplusplus
17100 extern "C"
17101 #endif
17102 /* We use char because int might match the return type of a gcc2
17103    builtin and then its argument prototype would still apply.  */
17104 char dlopen ();
17105 int
17106 main ()
17107 {
17108 dlopen ();
17109   ;
17110   return 0;
17111 }
17112 _ACEOF
17113 rm -f conftest.$ac_objext conftest$ac_exeext
17114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17115   (eval $ac_link) 2>&5
17116   ac_status=$?
17117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17118   (exit $ac_status); } &&
17119          { ac_try='test -s conftest$ac_exeext'
17120   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17121   (eval $ac_try) 2>&5
17122   ac_status=$?
17123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124   (exit $ac_status); }; }; then
17125   ac_cv_lib_dl_dlopen=yes
17126 else
17127   echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 ac_cv_lib_dl_dlopen=no
17131 fi
17132 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17133 LIBS=$ac_check_lib_save_LIBS
17134 fi
17135 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17136 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17137 if test $ac_cv_lib_dl_dlopen = yes; then
17138   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17139 else
17140
17141     lt_cv_dlopen="dyld"
17142     lt_cv_dlopen_libs=
17143     lt_cv_dlopen_self=yes
17144
17145 fi
17146
17147    ;;
17148
17149   *)
17150     echo "$as_me:$LINENO: checking for shl_load" >&5
17151 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17152 if test "${ac_cv_func_shl_load+set}" = set; then
17153   echo $ECHO_N "(cached) $ECHO_C" >&6
17154 else
17155   cat >conftest.$ac_ext <<_ACEOF
17156 #line $LINENO "configure"
17157 /* confdefs.h.  */
17158 _ACEOF
17159 cat confdefs.h >>conftest.$ac_ext
17160 cat >>conftest.$ac_ext <<_ACEOF
17161 /* end confdefs.h.  */
17162 /* System header to define __stub macros and hopefully few prototypes,
17163     which can conflict with char shl_load (); below.
17164     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17165     <limits.h> exists even on freestanding compilers.  */
17166 #ifdef __STDC__
17167 # include <limits.h>
17168 #else
17169 # include <assert.h>
17170 #endif
17171 /* Override any gcc2 internal prototype to avoid an error.  */
17172 #ifdef __cplusplus
17173 extern "C"
17174 {
17175 #endif
17176 /* We use char because int might match the return type of a gcc2
17177    builtin and then its argument prototype would still apply.  */
17178 char shl_load ();
17179 /* The GNU C library defines this for functions which it implements
17180     to always fail with ENOSYS.  Some functions are actually named
17181     something starting with __ and the normal name is an alias.  */
17182 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17183 choke me
17184 #else
17185 char (*f) () = shl_load;
17186 #endif
17187 #ifdef __cplusplus
17188 }
17189 #endif
17190
17191 int
17192 main ()
17193 {
17194 return f != shl_load;
17195   ;
17196   return 0;
17197 }
17198 _ACEOF
17199 rm -f conftest.$ac_objext conftest$ac_exeext
17200 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17201   (eval $ac_link) 2>&5
17202   ac_status=$?
17203   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17204   (exit $ac_status); } &&
17205          { ac_try='test -s conftest$ac_exeext'
17206   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17207   (eval $ac_try) 2>&5
17208   ac_status=$?
17209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17210   (exit $ac_status); }; }; then
17211   ac_cv_func_shl_load=yes
17212 else
17213   echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17215
17216 ac_cv_func_shl_load=no
17217 fi
17218 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17219 fi
17220 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17221 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17222 if test $ac_cv_func_shl_load = yes; then
17223   lt_cv_dlopen="shl_load"
17224 else
17225   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17226 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17227 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17228   echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230   ac_check_lib_save_LIBS=$LIBS
17231 LIBS="-ldld  $LIBS"
17232 cat >conftest.$ac_ext <<_ACEOF
17233 #line $LINENO "configure"
17234 /* confdefs.h.  */
17235 _ACEOF
17236 cat confdefs.h >>conftest.$ac_ext
17237 cat >>conftest.$ac_ext <<_ACEOF
17238 /* end confdefs.h.  */
17239
17240 /* Override any gcc2 internal prototype to avoid an error.  */
17241 #ifdef __cplusplus
17242 extern "C"
17243 #endif
17244 /* We use char because int might match the return type of a gcc2
17245    builtin and then its argument prototype would still apply.  */
17246 char shl_load ();
17247 int
17248 main ()
17249 {
17250 shl_load ();
17251   ;
17252   return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17257   (eval $ac_link) 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); } &&
17261          { ac_try='test -s conftest$ac_exeext'
17262   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17263   (eval $ac_try) 2>&5
17264   ac_status=$?
17265   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266   (exit $ac_status); }; }; then
17267   ac_cv_lib_dld_shl_load=yes
17268 else
17269   echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 ac_cv_lib_dld_shl_load=no
17273 fi
17274 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17275 LIBS=$ac_check_lib_save_LIBS
17276 fi
17277 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17278 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17279 if test $ac_cv_lib_dld_shl_load = yes; then
17280   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17281 else
17282   echo "$as_me:$LINENO: checking for dlopen" >&5
17283 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17284 if test "${ac_cv_func_dlopen+set}" = set; then
17285   echo $ECHO_N "(cached) $ECHO_C" >&6
17286 else
17287   cat >conftest.$ac_ext <<_ACEOF
17288 #line $LINENO "configure"
17289 /* confdefs.h.  */
17290 _ACEOF
17291 cat confdefs.h >>conftest.$ac_ext
17292 cat >>conftest.$ac_ext <<_ACEOF
17293 /* end confdefs.h.  */
17294 /* System header to define __stub macros and hopefully few prototypes,
17295     which can conflict with char dlopen (); below.
17296     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17297     <limits.h> exists even on freestanding compilers.  */
17298 #ifdef __STDC__
17299 # include <limits.h>
17300 #else
17301 # include <assert.h>
17302 #endif
17303 /* Override any gcc2 internal prototype to avoid an error.  */
17304 #ifdef __cplusplus
17305 extern "C"
17306 {
17307 #endif
17308 /* We use char because int might match the return type of a gcc2
17309    builtin and then its argument prototype would still apply.  */
17310 char dlopen ();
17311 /* The GNU C library defines this for functions which it implements
17312     to always fail with ENOSYS.  Some functions are actually named
17313     something starting with __ and the normal name is an alias.  */
17314 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17315 choke me
17316 #else
17317 char (*f) () = dlopen;
17318 #endif
17319 #ifdef __cplusplus
17320 }
17321 #endif
17322
17323 int
17324 main ()
17325 {
17326 return f != dlopen;
17327   ;
17328   return 0;
17329 }
17330 _ACEOF
17331 rm -f conftest.$ac_objext conftest$ac_exeext
17332 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17333   (eval $ac_link) 2>&5
17334   ac_status=$?
17335   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17336   (exit $ac_status); } &&
17337          { ac_try='test -s conftest$ac_exeext'
17338   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17339   (eval $ac_try) 2>&5
17340   ac_status=$?
17341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342   (exit $ac_status); }; }; then
17343   ac_cv_func_dlopen=yes
17344 else
17345   echo "$as_me: failed program was:" >&5
17346 sed 's/^/| /' conftest.$ac_ext >&5
17347
17348 ac_cv_func_dlopen=no
17349 fi
17350 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17351 fi
17352 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17353 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17354 if test $ac_cv_func_dlopen = yes; then
17355   lt_cv_dlopen="dlopen"
17356 else
17357   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17358 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17359 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17360   echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362   ac_check_lib_save_LIBS=$LIBS
17363 LIBS="-ldl  $LIBS"
17364 cat >conftest.$ac_ext <<_ACEOF
17365 #line $LINENO "configure"
17366 /* confdefs.h.  */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h.  */
17371
17372 /* Override any gcc2 internal prototype to avoid an error.  */
17373 #ifdef __cplusplus
17374 extern "C"
17375 #endif
17376 /* We use char because int might match the return type of a gcc2
17377    builtin and then its argument prototype would still apply.  */
17378 char dlopen ();
17379 int
17380 main ()
17381 {
17382 dlopen ();
17383   ;
17384   return 0;
17385 }
17386 _ACEOF
17387 rm -f conftest.$ac_objext conftest$ac_exeext
17388 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17389   (eval $ac_link) 2>&5
17390   ac_status=$?
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   (exit $ac_status); } &&
17393          { ac_try='test -s conftest$ac_exeext'
17394   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17395   (eval $ac_try) 2>&5
17396   ac_status=$?
17397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17398   (exit $ac_status); }; }; then
17399   ac_cv_lib_dl_dlopen=yes
17400 else
17401   echo "$as_me: failed program was:" >&5
17402 sed 's/^/| /' conftest.$ac_ext >&5
17403
17404 ac_cv_lib_dl_dlopen=no
17405 fi
17406 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17407 LIBS=$ac_check_lib_save_LIBS
17408 fi
17409 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17410 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17411 if test $ac_cv_lib_dl_dlopen = yes; then
17412   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17413 else
17414   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17415 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17416 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17417   echo $ECHO_N "(cached) $ECHO_C" >&6
17418 else
17419   ac_check_lib_save_LIBS=$LIBS
17420 LIBS="-lsvld  $LIBS"
17421 cat >conftest.$ac_ext <<_ACEOF
17422 #line $LINENO "configure"
17423 /* confdefs.h.  */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h.  */
17428
17429 /* Override any gcc2 internal prototype to avoid an error.  */
17430 #ifdef __cplusplus
17431 extern "C"
17432 #endif
17433 /* We use char because int might match the return type of a gcc2
17434    builtin and then its argument prototype would still apply.  */
17435 char dlopen ();
17436 int
17437 main ()
17438 {
17439 dlopen ();
17440   ;
17441   return 0;
17442 }
17443 _ACEOF
17444 rm -f conftest.$ac_objext conftest$ac_exeext
17445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17446   (eval $ac_link) 2>&5
17447   ac_status=$?
17448   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449   (exit $ac_status); } &&
17450          { ac_try='test -s conftest$ac_exeext'
17451   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17452   (eval $ac_try) 2>&5
17453   ac_status=$?
17454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17455   (exit $ac_status); }; }; then
17456   ac_cv_lib_svld_dlopen=yes
17457 else
17458   echo "$as_me: failed program was:" >&5
17459 sed 's/^/| /' conftest.$ac_ext >&5
17460
17461 ac_cv_lib_svld_dlopen=no
17462 fi
17463 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17464 LIBS=$ac_check_lib_save_LIBS
17465 fi
17466 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17467 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17468 if test $ac_cv_lib_svld_dlopen = yes; then
17469   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17470 else
17471   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17472 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17473 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17474   echo $ECHO_N "(cached) $ECHO_C" >&6
17475 else
17476   ac_check_lib_save_LIBS=$LIBS
17477 LIBS="-ldld  $LIBS"
17478 cat >conftest.$ac_ext <<_ACEOF
17479 #line $LINENO "configure"
17480 /* confdefs.h.  */
17481 _ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h.  */
17485
17486 /* Override any gcc2 internal prototype to avoid an error.  */
17487 #ifdef __cplusplus
17488 extern "C"
17489 #endif
17490 /* We use char because int might match the return type of a gcc2
17491    builtin and then its argument prototype would still apply.  */
17492 char dld_link ();
17493 int
17494 main ()
17495 {
17496 dld_link ();
17497   ;
17498   return 0;
17499 }
17500 _ACEOF
17501 rm -f conftest.$ac_objext conftest$ac_exeext
17502 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17503   (eval $ac_link) 2>&5
17504   ac_status=$?
17505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17506   (exit $ac_status); } &&
17507          { ac_try='test -s conftest$ac_exeext'
17508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17509   (eval $ac_try) 2>&5
17510   ac_status=$?
17511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17512   (exit $ac_status); }; }; then
17513   ac_cv_lib_dld_dld_link=yes
17514 else
17515   echo "$as_me: failed program was:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17517
17518 ac_cv_lib_dld_dld_link=no
17519 fi
17520 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
17521 LIBS=$ac_check_lib_save_LIBS
17522 fi
17523 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17524 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17525 if test $ac_cv_lib_dld_dld_link = yes; then
17526   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17527 fi
17528
17529
17530 fi
17531
17532
17533 fi
17534
17535
17536 fi
17537
17538
17539 fi
17540
17541
17542 fi
17543
17544     ;;
17545   esac
17546
17547   if test "x$lt_cv_dlopen" != xno; then
17548     enable_dlopen=yes
17549   else
17550     enable_dlopen=no
17551   fi
17552
17553   case $lt_cv_dlopen in
17554   dlopen)
17555     save_CPPFLAGS="$CPPFLAGS"
17556     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17557
17558     save_LDFLAGS="$LDFLAGS"
17559     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17560
17561     save_LIBS="$LIBS"
17562     LIBS="$lt_cv_dlopen_libs $LIBS"
17563
17564     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17565 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17566 if test "${lt_cv_dlopen_self+set}" = set; then
17567   echo $ECHO_N "(cached) $ECHO_C" >&6
17568 else
17569           if test "$cross_compiling" = yes; then :
17570   lt_cv_dlopen_self=cross
17571 else
17572   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17573   lt_status=$lt_dlunknown
17574   cat > conftest.$ac_ext <<EOF
17575 #line 17575 "configure"
17576 #include "confdefs.h"
17577
17578 #if HAVE_DLFCN_H
17579 #include <dlfcn.h>
17580 #endif
17581
17582 #include <stdio.h>
17583
17584 #ifdef RTLD_GLOBAL
17585 #  define LT_DLGLOBAL           RTLD_GLOBAL
17586 #else
17587 #  ifdef DL_GLOBAL
17588 #    define LT_DLGLOBAL         DL_GLOBAL
17589 #  else
17590 #    define LT_DLGLOBAL         0
17591 #  endif
17592 #endif
17593
17594 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17595    find out it does not work in some platform. */
17596 #ifndef LT_DLLAZY_OR_NOW
17597 #  ifdef RTLD_LAZY
17598 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17599 #  else
17600 #    ifdef DL_LAZY
17601 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17602 #    else
17603 #      ifdef RTLD_NOW
17604 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17605 #      else
17606 #        ifdef DL_NOW
17607 #          define LT_DLLAZY_OR_NOW      DL_NOW
17608 #        else
17609 #          define LT_DLLAZY_OR_NOW      0
17610 #        endif
17611 #      endif
17612 #    endif
17613 #  endif
17614 #endif
17615
17616 #ifdef __cplusplus
17617 extern "C" void exit (int);
17618 #endif
17619
17620 void fnord() { int i=42;}
17621 int main ()
17622 {
17623   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17624   int status = $lt_dlunknown;
17625
17626   if (self)
17627     {
17628       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17629       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17630       /* dlclose (self); */
17631     }
17632
17633     exit (status);
17634 }
17635 EOF
17636   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17637   (eval $ac_link) 2>&5
17638   ac_status=$?
17639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17640   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17641     (./conftest; exit; ) 2>/dev/null
17642     lt_status=$?
17643     case x$lt_status in
17644       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17645       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17646       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17647     esac
17648   else :
17649     # compilation failed
17650     lt_cv_dlopen_self=no
17651   fi
17652 fi
17653 rm -fr conftest*
17654
17655
17656 fi
17657 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17658 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17659
17660     if test "x$lt_cv_dlopen_self" = xyes; then
17661       LDFLAGS="$LDFLAGS $link_static_flag"
17662       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17663 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17664 if test "${lt_cv_dlopen_self_static+set}" = set; then
17665   echo $ECHO_N "(cached) $ECHO_C" >&6
17666 else
17667           if test "$cross_compiling" = yes; then :
17668   lt_cv_dlopen_self_static=cross
17669 else
17670   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17671   lt_status=$lt_dlunknown
17672   cat > conftest.$ac_ext <<EOF
17673 #line 17673 "configure"
17674 #include "confdefs.h"
17675
17676 #if HAVE_DLFCN_H
17677 #include <dlfcn.h>
17678 #endif
17679
17680 #include <stdio.h>
17681
17682 #ifdef RTLD_GLOBAL
17683 #  define LT_DLGLOBAL           RTLD_GLOBAL
17684 #else
17685 #  ifdef DL_GLOBAL
17686 #    define LT_DLGLOBAL         DL_GLOBAL
17687 #  else
17688 #    define LT_DLGLOBAL         0
17689 #  endif
17690 #endif
17691
17692 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17693    find out it does not work in some platform. */
17694 #ifndef LT_DLLAZY_OR_NOW
17695 #  ifdef RTLD_LAZY
17696 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
17697 #  else
17698 #    ifdef DL_LAZY
17699 #      define LT_DLLAZY_OR_NOW          DL_LAZY
17700 #    else
17701 #      ifdef RTLD_NOW
17702 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
17703 #      else
17704 #        ifdef DL_NOW
17705 #          define LT_DLLAZY_OR_NOW      DL_NOW
17706 #        else
17707 #          define LT_DLLAZY_OR_NOW      0
17708 #        endif
17709 #      endif
17710 #    endif
17711 #  endif
17712 #endif
17713
17714 #ifdef __cplusplus
17715 extern "C" void exit (int);
17716 #endif
17717
17718 void fnord() { int i=42;}
17719 int main ()
17720 {
17721   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17722   int status = $lt_dlunknown;
17723
17724   if (self)
17725     {
17726       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
17727       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17728       /* dlclose (self); */
17729     }
17730
17731     exit (status);
17732 }
17733 EOF
17734   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17735   (eval $ac_link) 2>&5
17736   ac_status=$?
17737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17739     (./conftest; exit; ) 2>/dev/null
17740     lt_status=$?
17741     case x$lt_status in
17742       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17743       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17744       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
17745     esac
17746   else :
17747     # compilation failed
17748     lt_cv_dlopen_self_static=no
17749   fi
17750 fi
17751 rm -fr conftest*
17752
17753
17754 fi
17755 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
17756 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
17757     fi
17758
17759     CPPFLAGS="$save_CPPFLAGS"
17760     LDFLAGS="$save_LDFLAGS"
17761     LIBS="$save_LIBS"
17762     ;;
17763   esac
17764
17765   case $lt_cv_dlopen_self in
17766   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17767   *) enable_dlopen_self=unknown ;;
17768   esac
17769
17770   case $lt_cv_dlopen_self_static in
17771   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17772   *) enable_dlopen_self_static=unknown ;;
17773   esac
17774 fi
17775
17776
17777 # The else clause should only fire when bootstrapping the
17778 # libtool distribution, otherwise you forgot to ship ltmain.sh
17779 # with your package, and you will get complaints that there are
17780 # no rules to generate ltmain.sh.
17781 if test -f "$ltmain"; then
17782   # See if we are running on zsh, and set the options which allow our commands through
17783   # without removal of \ escapes.
17784   if test -n "${ZSH_VERSION+set}" ; then
17785     setopt NO_GLOB_SUBST
17786   fi
17787   # Now quote all the things that may contain metacharacters while being
17788   # careful not to overquote the AC_SUBSTed values.  We take copies of the
17789   # variables and quote the copies for generation of the libtool script.
17790   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
17791     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17792     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17793     deplibs_check_method reload_flag reload_cmds need_locks \
17794     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17795     lt_cv_sys_global_symbol_to_c_name_address \
17796     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17797     old_postinstall_cmds old_postuninstall_cmds \
17798     compiler_GCJ \
17799     CC_GCJ \
17800     LD_GCJ \
17801     lt_prog_compiler_wl_GCJ \
17802     lt_prog_compiler_pic_GCJ \
17803     lt_prog_compiler_static_GCJ \
17804     lt_prog_compiler_no_builtin_flag_GCJ \
17805     export_dynamic_flag_spec_GCJ \
17806     thread_safe_flag_spec_GCJ \
17807     whole_archive_flag_spec_GCJ \
17808     enable_shared_with_static_runtimes_GCJ \
17809     old_archive_cmds_GCJ \
17810     old_archive_from_new_cmds_GCJ \
17811     predep_objects_GCJ \
17812     postdep_objects_GCJ \
17813     predeps_GCJ \
17814     postdeps_GCJ \
17815     compiler_lib_search_path_GCJ \
17816     archive_cmds_GCJ \
17817     archive_expsym_cmds_GCJ \
17818     postinstall_cmds_GCJ \
17819     postuninstall_cmds_GCJ \
17820     old_archive_from_expsyms_cmds_GCJ \
17821     allow_undefined_flag_GCJ \
17822     no_undefined_flag_GCJ \
17823     export_symbols_cmds_GCJ \
17824     hardcode_libdir_flag_spec_GCJ \
17825     hardcode_libdir_flag_spec_ld_GCJ \
17826     hardcode_libdir_separator_GCJ \
17827     hardcode_automatic_GCJ \
17828     module_cmds_GCJ \
17829     module_expsym_cmds_GCJ \
17830     lt_cv_prog_compiler_c_o_GCJ \
17831     exclude_expsyms_GCJ \
17832     include_expsyms_GCJ; do
17833
17834     case $var in
17835     old_archive_cmds_GCJ | \
17836     old_archive_from_new_cmds_GCJ | \
17837     archive_cmds_GCJ | \
17838     archive_expsym_cmds_GCJ | \
17839     module_cmds_GCJ | \
17840     module_expsym_cmds_GCJ | \
17841     old_archive_from_expsyms_cmds_GCJ | \
17842     export_symbols_cmds_GCJ | \
17843     extract_expsyms_cmds | reload_cmds | finish_cmds | \
17844     postinstall_cmds | postuninstall_cmds | \
17845     old_postinstall_cmds | old_postuninstall_cmds | \
17846     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17847       # Double-quote double-evaled strings.
17848       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17849       ;;
17850     *)
17851       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17852       ;;
17853     esac
17854   done
17855
17856   case $lt_echo in
17857   *'\$0 --fallback-echo"')
17858     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17859     ;;
17860   esac
17861
17862 cfgfile="$ofile"
17863
17864   cat <<__EOF__ >> "$cfgfile"
17865 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17866
17867 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17868
17869 # Shell to use when invoking shell scripts.
17870 SHELL=$lt_SHELL
17871
17872 # Whether or not to build shared libraries.
17873 build_libtool_libs=$enable_shared
17874
17875 # Whether or not to build static libraries.
17876 build_old_libs=$enable_static
17877
17878 # Whether or not to add -lc for building shared libraries.
17879 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17880
17881 # Whether or not to disallow shared libs when runtime libs are static
17882 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17883
17884 # Whether or not to optimize for fast installation.
17885 fast_install=$enable_fast_install
17886
17887 # The host system.
17888 host_alias=$host_alias
17889 host=$host
17890
17891 # An echo program that does not interpret backslashes.
17892 echo=$lt_echo
17893
17894 # The archiver.
17895 AR=$lt_AR
17896 AR_FLAGS=$lt_AR_FLAGS
17897
17898 # A C compiler.
17899 LTCC=$lt_LTCC
17900
17901 # A language-specific compiler.
17902 CC=$lt_compiler_GCJ
17903
17904 # Is the compiler the GNU C compiler?
17905 with_gcc=$GCC_GCJ
17906
17907 # An ERE matcher.
17908 EGREP=$lt_EGREP
17909
17910 # The linker used to build libraries.
17911 LD=$lt_LD_GCJ
17912
17913 # Whether we need hard or soft links.
17914 LN_S=$lt_LN_S
17915
17916 # A BSD-compatible nm program.
17917 NM=$lt_NM
17918
17919 # A symbol stripping program
17920 STRIP=$STRIP
17921
17922 # Used to examine libraries when file_magic_cmd begins "file"
17923 MAGIC_CMD=$MAGIC_CMD
17924
17925 # Used on cygwin: DLL creation program.
17926 DLLTOOL="$DLLTOOL"
17927
17928 # Used on cygwin: object dumper.
17929 OBJDUMP="$OBJDUMP"
17930
17931 # Used on cygwin: assembler.
17932 AS="$AS"
17933
17934 # The name of the directory that contains temporary libtool files.
17935 objdir=$objdir
17936
17937 # How to create reloadable object files.
17938 reload_flag=$lt_reload_flag
17939 reload_cmds=$lt_reload_cmds
17940
17941 # How to pass a linker flag through the compiler.
17942 wl=$lt_lt_prog_compiler_wl_GCJ
17943
17944 # Object file suffix (normally "o").
17945 objext="$ac_objext"
17946
17947 # Old archive suffix (normally "a").
17948 libext="$libext"
17949
17950 # Shared library suffix (normally ".so").
17951 shrext='$shrext'
17952
17953 # Executable file suffix (normally "").
17954 exeext="$exeext"
17955
17956 # Additional compiler flags for building library objects.
17957 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17958 pic_mode=$pic_mode
17959
17960 # What is the maximum length of a command?
17961 max_cmd_len=$lt_cv_sys_max_cmd_len
17962
17963 # Does compiler simultaneously support -c and -o options?
17964 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17965
17966 # Must we lock files when doing compilation ?
17967 need_locks=$lt_need_locks
17968
17969 # Do we need the lib prefix for modules?
17970 need_lib_prefix=$need_lib_prefix
17971
17972 # Do we need a version for libraries?
17973 need_version=$need_version
17974
17975 # Whether dlopen is supported.
17976 dlopen_support=$enable_dlopen
17977
17978 # Whether dlopen of programs is supported.
17979 dlopen_self=$enable_dlopen_self
17980
17981 # Whether dlopen of statically linked programs is supported.
17982 dlopen_self_static=$enable_dlopen_self_static
17983
17984 # Compiler flag to prevent dynamic linking.
17985 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17986
17987 # Compiler flag to turn off builtin functions.
17988 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17989
17990 # Compiler flag to allow reflexive dlopens.
17991 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17992
17993 # Compiler flag to generate shared objects directly from archives.
17994 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17995
17996 # Compiler flag to generate thread-safe objects.
17997 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17998
17999 # Library versioning type.
18000 version_type=$version_type
18001
18002 # Format of library name prefix.
18003 libname_spec=$lt_libname_spec
18004
18005 # List of archive names.  First name is the real one, the rest are links.
18006 # The last name is the one that the linker finds with -lNAME.
18007 library_names_spec=$lt_library_names_spec
18008
18009 # The coded name of the library, if different from the real name.
18010 soname_spec=$lt_soname_spec
18011
18012 # Commands used to build and install an old-style archive.
18013 RANLIB=$lt_RANLIB
18014 old_archive_cmds=$lt_old_archive_cmds_GCJ
18015 old_postinstall_cmds=$lt_old_postinstall_cmds
18016 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18017
18018 # Create an old-style archive from a shared archive.
18019 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18020
18021 # Create a temporary old-style archive to link instead of a shared archive.
18022 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18023
18024 # Commands used to build and install a shared archive.
18025 archive_cmds=$lt_archive_cmds_GCJ
18026 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18027 postinstall_cmds=$lt_postinstall_cmds
18028 postuninstall_cmds=$lt_postuninstall_cmds
18029
18030 # Commands used to build a loadable module (assumed same as above if empty)
18031 module_cmds=$lt_module_cmds_GCJ
18032 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18033
18034 # Commands to strip libraries.
18035 old_striplib=$lt_old_striplib
18036 striplib=$lt_striplib
18037
18038 # Dependencies to place before the objects being linked to create a
18039 # shared library.
18040 predep_objects=$lt_predep_objects_GCJ
18041
18042 # Dependencies to place after the objects being linked to create a
18043 # shared library.
18044 postdep_objects=$lt_postdep_objects_GCJ
18045
18046 # Dependencies to place before the objects being linked to create a
18047 # shared library.
18048 predeps=$lt_predeps_GCJ
18049
18050 # Dependencies to place after the objects being linked to create a
18051 # shared library.
18052 postdeps=$lt_postdeps_GCJ
18053
18054 # The library search path used internally by the compiler when linking
18055 # a shared library.
18056 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18057
18058 # Method to check whether dependent libraries are shared objects.
18059 deplibs_check_method=$lt_deplibs_check_method
18060
18061 # Command to use when deplibs_check_method == file_magic.
18062 file_magic_cmd=$lt_file_magic_cmd
18063
18064 # Flag that allows shared libraries with undefined symbols to be built.
18065 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18066
18067 # Flag that forces no undefined symbols.
18068 no_undefined_flag=$lt_no_undefined_flag_GCJ
18069
18070 # Commands used to finish a libtool library installation in a directory.
18071 finish_cmds=$lt_finish_cmds
18072
18073 # Same as above, but a single script fragment to be evaled but not shown.
18074 finish_eval=$lt_finish_eval
18075
18076 # Take the output of nm and produce a listing of raw symbols and C names.
18077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18078
18079 # Transform the output of nm in a proper C declaration
18080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18081
18082 # Transform the output of nm in a C name address pair
18083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18084
18085 # This is the shared library runtime path variable.
18086 runpath_var=$runpath_var
18087
18088 # This is the shared library path variable.
18089 shlibpath_var=$shlibpath_var
18090
18091 # Is shlibpath searched before the hard-coded library search path?
18092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18093
18094 # How to hardcode a shared library path into an executable.
18095 hardcode_action=$hardcode_action_GCJ
18096
18097 # Whether we should hardcode library paths into libraries.
18098 hardcode_into_libs=$hardcode_into_libs
18099
18100 # Flag to hardcode \$libdir into a binary during linking.
18101 # This must work even if \$libdir does not exist.
18102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18103
18104 # If ld is used when linking, flag to hardcode \$libdir into
18105 # a binary during linking. This must work even if \$libdir does
18106 # not exist.
18107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18108
18109 # Whether we need a single -rpath flag with a separated argument.
18110 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18111
18112 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18113 # resulting binary.
18114 hardcode_direct=$hardcode_direct_GCJ
18115
18116 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18117 # resulting binary.
18118 hardcode_minus_L=$hardcode_minus_L_GCJ
18119
18120 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18121 # the resulting binary.
18122 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18123
18124 # Set to yes if building a shared library automatically hardcodes DIR into the library
18125 # and all subsequent libraries and executables linked against it.
18126 hardcode_automatic=$hardcode_automatic_GCJ
18127
18128 # Variables whose values should be saved in libtool wrapper scripts and
18129 # restored at relink time.
18130 variables_saved_for_relink="$variables_saved_for_relink"
18131
18132 # Whether libtool must link a program against all its dependency libraries.
18133 link_all_deplibs=$link_all_deplibs_GCJ
18134
18135 # Compile-time system search path for libraries
18136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18137
18138 # Run-time system search path for libraries
18139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18140
18141 # Fix the shell variable \$srcfile for the compiler.
18142 fix_srcfile_path="$fix_srcfile_path_GCJ"
18143
18144 # Set to yes if exported symbols are required.
18145 always_export_symbols=$always_export_symbols_GCJ
18146
18147 # The commands to list exported symbols.
18148 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18149
18150 # The commands to extract the exported symbol list from a shared archive.
18151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18152
18153 # Symbols that should not be listed in the preloaded symbols.
18154 exclude_expsyms=$lt_exclude_expsyms_GCJ
18155
18156 # Symbols that must always be exported.
18157 include_expsyms=$lt_include_expsyms_GCJ
18158
18159 # ### END LIBTOOL TAG CONFIG: $tagname
18160
18161 __EOF__
18162
18163
18164 else
18165   # If there is no Makefile yet, we rely on a make rule to execute
18166   # `config.status --recheck' to rerun these tests and create the
18167   # libtool script then.
18168   test -f Makefile && make "$ltmain"
18169 fi
18170
18171
18172 ac_ext=c
18173 ac_cpp='$CPP $CPPFLAGS'
18174 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18175 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18176 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18177
18178 CC="$lt_save_CC"
18179
18180         else
18181           tagname=""
18182         fi
18183         ;;
18184
18185       RC)
18186
18187
18188
18189 # Source file extension for RC test sources.
18190 ac_ext=rc
18191
18192 # Object file extension for compiled RC test sources.
18193 objext=o
18194 objext_RC=$objext
18195
18196 # Code to be used in simple compile tests
18197 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18198
18199 # Code to be used in simple link tests
18200 lt_simple_link_test_code="$lt_simple_compile_test_code"
18201
18202 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18203
18204 # If no C compiler was specified, use CC.
18205 LTCC=${LTCC-"$CC"}
18206
18207 # Allow CC to be a program name with arguments.
18208 compiler=$CC
18209
18210
18211 # Allow CC to be a program name with arguments.
18212 lt_save_CC="$CC"
18213 CC=${RC-"windres"}
18214 compiler=$CC
18215 compiler_RC=$CC
18216 lt_cv_prog_compiler_c_o_RC=yes
18217
18218 # The else clause should only fire when bootstrapping the
18219 # libtool distribution, otherwise you forgot to ship ltmain.sh
18220 # with your package, and you will get complaints that there are
18221 # no rules to generate ltmain.sh.
18222 if test -f "$ltmain"; then
18223   # See if we are running on zsh, and set the options which allow our commands through
18224   # without removal of \ escapes.
18225   if test -n "${ZSH_VERSION+set}" ; then
18226     setopt NO_GLOB_SUBST
18227   fi
18228   # Now quote all the things that may contain metacharacters while being
18229   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18230   # variables and quote the copies for generation of the libtool script.
18231   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM SED SHELL \
18232     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18233     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18234     deplibs_check_method reload_flag reload_cmds need_locks \
18235     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18236     lt_cv_sys_global_symbol_to_c_name_address \
18237     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18238     old_postinstall_cmds old_postuninstall_cmds \
18239     compiler_RC \
18240     CC_RC \
18241     LD_RC \
18242     lt_prog_compiler_wl_RC \
18243     lt_prog_compiler_pic_RC \
18244     lt_prog_compiler_static_RC \
18245     lt_prog_compiler_no_builtin_flag_RC \
18246     export_dynamic_flag_spec_RC \
18247     thread_safe_flag_spec_RC \
18248     whole_archive_flag_spec_RC \
18249     enable_shared_with_static_runtimes_RC \
18250     old_archive_cmds_RC \
18251     old_archive_from_new_cmds_RC \
18252     predep_objects_RC \
18253     postdep_objects_RC \
18254     predeps_RC \
18255     postdeps_RC \
18256     compiler_lib_search_path_RC \
18257     archive_cmds_RC \
18258     archive_expsym_cmds_RC \
18259     postinstall_cmds_RC \
18260     postuninstall_cmds_RC \
18261     old_archive_from_expsyms_cmds_RC \
18262     allow_undefined_flag_RC \
18263     no_undefined_flag_RC \
18264     export_symbols_cmds_RC \
18265     hardcode_libdir_flag_spec_RC \
18266     hardcode_libdir_flag_spec_ld_RC \
18267     hardcode_libdir_separator_RC \
18268     hardcode_automatic_RC \
18269     module_cmds_RC \
18270     module_expsym_cmds_RC \
18271     lt_cv_prog_compiler_c_o_RC \
18272     exclude_expsyms_RC \
18273     include_expsyms_RC; do
18274
18275     case $var in
18276     old_archive_cmds_RC | \
18277     old_archive_from_new_cmds_RC | \
18278     archive_cmds_RC | \
18279     archive_expsym_cmds_RC | \
18280     module_cmds_RC | \
18281     module_expsym_cmds_RC | \
18282     old_archive_from_expsyms_cmds_RC | \
18283     export_symbols_cmds_RC | \
18284     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18285     postinstall_cmds | postuninstall_cmds | \
18286     old_postinstall_cmds | old_postuninstall_cmds | \
18287     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18288       # Double-quote double-evaled strings.
18289       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18290       ;;
18291     *)
18292       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18293       ;;
18294     esac
18295   done
18296
18297   case $lt_echo in
18298   *'\$0 --fallback-echo"')
18299     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18300     ;;
18301   esac
18302
18303 cfgfile="$ofile"
18304
18305   cat <<__EOF__ >> "$cfgfile"
18306 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18307
18308 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18309
18310 # Shell to use when invoking shell scripts.
18311 SHELL=$lt_SHELL
18312
18313 # Whether or not to build shared libraries.
18314 build_libtool_libs=$enable_shared
18315
18316 # Whether or not to build static libraries.
18317 build_old_libs=$enable_static
18318
18319 # Whether or not to add -lc for building shared libraries.
18320 build_libtool_need_lc=$archive_cmds_need_lc_RC
18321
18322 # Whether or not to disallow shared libs when runtime libs are static
18323 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18324
18325 # Whether or not to optimize for fast installation.
18326 fast_install=$enable_fast_install
18327
18328 # The host system.
18329 host_alias=$host_alias
18330 host=$host
18331
18332 # An echo program that does not interpret backslashes.
18333 echo=$lt_echo
18334
18335 # The archiver.
18336 AR=$lt_AR
18337 AR_FLAGS=$lt_AR_FLAGS
18338
18339 # A C compiler.
18340 LTCC=$lt_LTCC
18341
18342 # A language-specific compiler.
18343 CC=$lt_compiler_RC
18344
18345 # Is the compiler the GNU C compiler?
18346 with_gcc=$GCC_RC
18347
18348 # An ERE matcher.
18349 EGREP=$lt_EGREP
18350
18351 # The linker used to build libraries.
18352 LD=$lt_LD_RC
18353
18354 # Whether we need hard or soft links.
18355 LN_S=$lt_LN_S
18356
18357 # A BSD-compatible nm program.
18358 NM=$lt_NM
18359
18360 # A symbol stripping program
18361 STRIP=$STRIP
18362
18363 # Used to examine libraries when file_magic_cmd begins "file"
18364 MAGIC_CMD=$MAGIC_CMD
18365
18366 # Used on cygwin: DLL creation program.
18367 DLLTOOL="$DLLTOOL"
18368
18369 # Used on cygwin: object dumper.
18370 OBJDUMP="$OBJDUMP"
18371
18372 # Used on cygwin: assembler.
18373 AS="$AS"
18374
18375 # The name of the directory that contains temporary libtool files.
18376 objdir=$objdir
18377
18378 # How to create reloadable object files.
18379 reload_flag=$lt_reload_flag
18380 reload_cmds=$lt_reload_cmds
18381
18382 # How to pass a linker flag through the compiler.
18383 wl=$lt_lt_prog_compiler_wl_RC
18384
18385 # Object file suffix (normally "o").
18386 objext="$ac_objext"
18387
18388 # Old archive suffix (normally "a").
18389 libext="$libext"
18390
18391 # Shared library suffix (normally ".so").
18392 shrext='$shrext'
18393
18394 # Executable file suffix (normally "").
18395 exeext="$exeext"
18396
18397 # Additional compiler flags for building library objects.
18398 pic_flag=$lt_lt_prog_compiler_pic_RC
18399 pic_mode=$pic_mode
18400
18401 # What is the maximum length of a command?
18402 max_cmd_len=$lt_cv_sys_max_cmd_len
18403
18404 # Does compiler simultaneously support -c and -o options?
18405 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18406
18407 # Must we lock files when doing compilation ?
18408 need_locks=$lt_need_locks
18409
18410 # Do we need the lib prefix for modules?
18411 need_lib_prefix=$need_lib_prefix
18412
18413 # Do we need a version for libraries?
18414 need_version=$need_version
18415
18416 # Whether dlopen is supported.
18417 dlopen_support=$enable_dlopen
18418
18419 # Whether dlopen of programs is supported.
18420 dlopen_self=$enable_dlopen_self
18421
18422 # Whether dlopen of statically linked programs is supported.
18423 dlopen_self_static=$enable_dlopen_self_static
18424
18425 # Compiler flag to prevent dynamic linking.
18426 link_static_flag=$lt_lt_prog_compiler_static_RC
18427
18428 # Compiler flag to turn off builtin functions.
18429 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18430
18431 # Compiler flag to allow reflexive dlopens.
18432 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18433
18434 # Compiler flag to generate shared objects directly from archives.
18435 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18436
18437 # Compiler flag to generate thread-safe objects.
18438 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18439
18440 # Library versioning type.
18441 version_type=$version_type
18442
18443 # Format of library name prefix.
18444 libname_spec=$lt_libname_spec
18445
18446 # List of archive names.  First name is the real one, the rest are links.
18447 # The last name is the one that the linker finds with -lNAME.
18448 library_names_spec=$lt_library_names_spec
18449
18450 # The coded name of the library, if different from the real name.
18451 soname_spec=$lt_soname_spec
18452
18453 # Commands used to build and install an old-style archive.
18454 RANLIB=$lt_RANLIB
18455 old_archive_cmds=$lt_old_archive_cmds_RC
18456 old_postinstall_cmds=$lt_old_postinstall_cmds
18457 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18458
18459 # Create an old-style archive from a shared archive.
18460 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18461
18462 # Create a temporary old-style archive to link instead of a shared archive.
18463 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18464
18465 # Commands used to build and install a shared archive.
18466 archive_cmds=$lt_archive_cmds_RC
18467 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18468 postinstall_cmds=$lt_postinstall_cmds
18469 postuninstall_cmds=$lt_postuninstall_cmds
18470
18471 # Commands used to build a loadable module (assumed same as above if empty)
18472 module_cmds=$lt_module_cmds_RC
18473 module_expsym_cmds=$lt_module_expsym_cmds_RC
18474
18475 # Commands to strip libraries.
18476 old_striplib=$lt_old_striplib
18477 striplib=$lt_striplib
18478
18479 # Dependencies to place before the objects being linked to create a
18480 # shared library.
18481 predep_objects=$lt_predep_objects_RC
18482
18483 # Dependencies to place after the objects being linked to create a
18484 # shared library.
18485 postdep_objects=$lt_postdep_objects_RC
18486
18487 # Dependencies to place before the objects being linked to create a
18488 # shared library.
18489 predeps=$lt_predeps_RC
18490
18491 # Dependencies to place after the objects being linked to create a
18492 # shared library.
18493 postdeps=$lt_postdeps_RC
18494
18495 # The library search path used internally by the compiler when linking
18496 # a shared library.
18497 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
18498
18499 # Method to check whether dependent libraries are shared objects.
18500 deplibs_check_method=$lt_deplibs_check_method
18501
18502 # Command to use when deplibs_check_method == file_magic.
18503 file_magic_cmd=$lt_file_magic_cmd
18504
18505 # Flag that allows shared libraries with undefined symbols to be built.
18506 allow_undefined_flag=$lt_allow_undefined_flag_RC
18507
18508 # Flag that forces no undefined symbols.
18509 no_undefined_flag=$lt_no_undefined_flag_RC
18510
18511 # Commands used to finish a libtool library installation in a directory.
18512 finish_cmds=$lt_finish_cmds
18513
18514 # Same as above, but a single script fragment to be evaled but not shown.
18515 finish_eval=$lt_finish_eval
18516
18517 # Take the output of nm and produce a listing of raw symbols and C names.
18518 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18519
18520 # Transform the output of nm in a proper C declaration
18521 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18522
18523 # Transform the output of nm in a C name address pair
18524 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18525
18526 # This is the shared library runtime path variable.
18527 runpath_var=$runpath_var
18528
18529 # This is the shared library path variable.
18530 shlibpath_var=$shlibpath_var
18531
18532 # Is shlibpath searched before the hard-coded library search path?
18533 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18534
18535 # How to hardcode a shared library path into an executable.
18536 hardcode_action=$hardcode_action_RC
18537
18538 # Whether we should hardcode library paths into libraries.
18539 hardcode_into_libs=$hardcode_into_libs
18540
18541 # Flag to hardcode \$libdir into a binary during linking.
18542 # This must work even if \$libdir does not exist.
18543 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18544
18545 # If ld is used when linking, flag to hardcode \$libdir into
18546 # a binary during linking. This must work even if \$libdir does
18547 # not exist.
18548 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18549
18550 # Whether we need a single -rpath flag with a separated argument.
18551 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18552
18553 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18554 # resulting binary.
18555 hardcode_direct=$hardcode_direct_RC
18556
18557 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18558 # resulting binary.
18559 hardcode_minus_L=$hardcode_minus_L_RC
18560
18561 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18562 # the resulting binary.
18563 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18564
18565 # Set to yes if building a shared library automatically hardcodes DIR into the library
18566 # and all subsequent libraries and executables linked against it.
18567 hardcode_automatic=$hardcode_automatic_RC
18568
18569 # Variables whose values should be saved in libtool wrapper scripts and
18570 # restored at relink time.
18571 variables_saved_for_relink="$variables_saved_for_relink"
18572
18573 # Whether libtool must link a program against all its dependency libraries.
18574 link_all_deplibs=$link_all_deplibs_RC
18575
18576 # Compile-time system search path for libraries
18577 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18578
18579 # Run-time system search path for libraries
18580 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18581
18582 # Fix the shell variable \$srcfile for the compiler.
18583 fix_srcfile_path="$fix_srcfile_path_RC"
18584
18585 # Set to yes if exported symbols are required.
18586 always_export_symbols=$always_export_symbols_RC
18587
18588 # The commands to list exported symbols.
18589 export_symbols_cmds=$lt_export_symbols_cmds_RC
18590
18591 # The commands to extract the exported symbol list from a shared archive.
18592 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18593
18594 # Symbols that should not be listed in the preloaded symbols.
18595 exclude_expsyms=$lt_exclude_expsyms_RC
18596
18597 # Symbols that must always be exported.
18598 include_expsyms=$lt_include_expsyms_RC
18599
18600 # ### END LIBTOOL TAG CONFIG: $tagname
18601
18602 __EOF__
18603
18604
18605 else
18606   # If there is no Makefile yet, we rely on a make rule to execute
18607   # `config.status --recheck' to rerun these tests and create the
18608   # libtool script then.
18609   test -f Makefile && make "$ltmain"
18610 fi
18611
18612
18613 ac_ext=c
18614 ac_cpp='$CPP $CPPFLAGS'
18615 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18616 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18617 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18618
18619 CC="$lt_save_CC"
18620
18621         ;;
18622
18623       *)
18624         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
18625 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
18626    { (exit 1); exit 1; }; }
18627         ;;
18628       esac
18629
18630       # Append the new tag name to the list of available tags.
18631       if test -n "$tagname" ; then
18632       available_tags="$available_tags $tagname"
18633     fi
18634     fi
18635   done
18636   IFS="$lt_save_ifs"
18637
18638   # Now substitute the updated list of available tags.
18639   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18640     mv "${ofile}T" "$ofile"
18641     chmod +x "$ofile"
18642   else
18643     rm -f "${ofile}T"
18644     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
18645 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
18646    { (exit 1); exit 1; }; }
18647   fi
18648 fi
18649
18650
18651
18652 # This can be used to rebuild libtool when needed
18653 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18654
18655 # Always use our own libtool.
18656 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18657
18658 # Prevent multiple expansion
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
18680 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
18681 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
18682 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
18683   echo $ECHO_N "(cached) $ECHO_C" >&6
18684 else
18685   cat >conftest.make <<\_ACEOF
18686 all:
18687         @echo 'ac_maketemp="$(MAKE)"'
18688 _ACEOF
18689 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
18690 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
18691 if test -n "$ac_maketemp"; then
18692   eval ac_cv_prog_make_${ac_make}_set=yes
18693 else
18694   eval ac_cv_prog_make_${ac_make}_set=no
18695 fi
18696 rm -f conftest.make
18697 fi
18698 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
18699   echo "$as_me:$LINENO: result: yes" >&5
18700 echo "${ECHO_T}yes" >&6
18701   SET_MAKE=
18702 else
18703   echo "$as_me:$LINENO: result: no" >&5
18704 echo "${ECHO_T}no" >&6
18705   SET_MAKE="MAKE=${MAKE-make}"
18706 fi
18707
18708
18709
18710 echo "$as_me:$LINENO: checking for ssh" >&5
18711 echo $ECHO_N "checking for ssh... $ECHO_C" >&6
18712
18713 # Check whether --with-ssh or --without-ssh was given.
18714 if test "${with_ssh+set}" = set; then
18715   withval="$with_ssh"
18716   SSHPROG=$withval
18717 else
18718   SSHPROG=`which ssh 2>/dev/null`
18719 fi;
18720 if test ! -x "$SSHPROG"
18721 then
18722     echo "$as_me:$LINENO: result: not found (sshfs support disabled)" >&5
18723 echo "${ECHO_T}not found (sshfs support disabled)" >&6
18724 else
18725     echo "$as_me:$LINENO: result: found ($SSHPROG)" >&5
18726 echo "${ECHO_T}found ($SSHPROG)" >&6
18727
18728 cat >>confdefs.h <<\_ACEOF
18729 #define HAS_SSH 1
18730 _ACEOF
18731
18732     opt_fs="$opt_fs sshfs"
18733 fi
18734
18735
18736
18737 # Extract the first word of "gnome-config", so it can be a program name with args.
18738 set dummy gnome-config; ac_word=$2
18739 echo "$as_me:$LINENO: checking for $ac_word" >&5
18740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18741 if test "${ac_cv_prog_GCONF+set}" = set; then
18742   echo $ECHO_N "(cached) $ECHO_C" >&6
18743 else
18744   if test -n "$GCONF"; then
18745   ac_cv_prog_GCONF="$GCONF" # Let the user override the test.
18746 else
18747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18748 for as_dir in $PATH
18749 do
18750   IFS=$as_save_IFS
18751   test -z "$as_dir" && as_dir=.
18752   for ac_exec_ext in '' $ac_executable_extensions; do
18753   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18754     ac_cv_prog_GCONF="gnome-config"
18755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18756     break 2
18757   fi
18758 done
18759 done
18760
18761 fi
18762 fi
18763 GCONF=$ac_cv_prog_GCONF
18764 if test -n "$GCONF"; then
18765   echo "$as_me:$LINENO: result: $GCONF" >&5
18766 echo "${ECHO_T}$GCONF" >&6
18767 else
18768   echo "$as_me:$LINENO: result: no" >&5
18769 echo "${ECHO_T}no" >&6
18770 fi
18771
18772 # Extract the first word of "gnome-vfs-config", so it can be a program name with args.
18773 set dummy gnome-vfs-config; ac_word=$2
18774 echo "$as_me:$LINENO: checking for $ac_word" >&5
18775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18776 if test "${ac_cv_prog_GVFSCONF+set}" = set; then
18777   echo $ECHO_N "(cached) $ECHO_C" >&6
18778 else
18779   if test -n "$GVFSCONF"; then
18780   ac_cv_prog_GVFSCONF="$GVFSCONF" # Let the user override the test.
18781 else
18782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783 for as_dir in $PATH
18784 do
18785   IFS=$as_save_IFS
18786   test -z "$as_dir" && as_dir=.
18787   for ac_exec_ext in '' $ac_executable_extensions; do
18788   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18789     ac_cv_prog_GVFSCONF="gnome-vfs-config"
18790     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18791     break 2
18792   fi
18793 done
18794 done
18795
18796 fi
18797 fi
18798 GVFSCONF=$ac_cv_prog_GVFSCONF
18799 if test -n "$GVFSCONF"; then
18800   echo "$as_me:$LINENO: result: $GVFSCONF" >&5
18801 echo "${ECHO_T}$GVFSCONF" >&6
18802 else
18803   echo "$as_me:$LINENO: result: no" >&5
18804 echo "${ECHO_T}no" >&6
18805 fi
18806
18807 echo "$as_me:$LINENO: checking for gnome_vfs_init in -lgnomevfs" >&5
18808 echo $ECHO_N "checking for gnome_vfs_init in -lgnomevfs... $ECHO_C" >&6
18809 if test "${ac_cv_lib_gnomevfs_gnome_vfs_init+set}" = set; then
18810   echo $ECHO_N "(cached) $ECHO_C" >&6
18811 else
18812   ac_check_lib_save_LIBS=$LIBS
18813 LIBS="-lgnomevfs  $LIBS"
18814 cat >conftest.$ac_ext <<_ACEOF
18815 #line $LINENO "configure"
18816 /* confdefs.h.  */
18817 _ACEOF
18818 cat confdefs.h >>conftest.$ac_ext
18819 cat >>conftest.$ac_ext <<_ACEOF
18820 /* end confdefs.h.  */
18821
18822 /* Override any gcc2 internal prototype to avoid an error.  */
18823 #ifdef __cplusplus
18824 extern "C"
18825 #endif
18826 /* We use char because int might match the return type of a gcc2
18827    builtin and then its argument prototype would still apply.  */
18828 char gnome_vfs_init ();
18829 int
18830 main ()
18831 {
18832 gnome_vfs_init ();
18833   ;
18834   return 0;
18835 }
18836 _ACEOF
18837 rm -f conftest.$ac_objext conftest$ac_exeext
18838 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18839   (eval $ac_link) 2>&5
18840   ac_status=$?
18841   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18842   (exit $ac_status); } &&
18843          { ac_try='test -s conftest$ac_exeext'
18844   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18845   (eval $ac_try) 2>&5
18846   ac_status=$?
18847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18848   (exit $ac_status); }; }; then
18849   ac_cv_lib_gnomevfs_gnome_vfs_init=yes
18850 else
18851   echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854 ac_cv_lib_gnomevfs_gnome_vfs_init=no
18855 fi
18856 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18858 fi
18859 echo "$as_me:$LINENO: result: $ac_cv_lib_gnomevfs_gnome_vfs_init" >&5
18860 echo "${ECHO_T}$ac_cv_lib_gnomevfs_gnome_vfs_init" >&6
18861 if test $ac_cv_lib_gnomevfs_gnome_vfs_init = yes; then
18862   HAS_GNOMEVFS=1
18863 fi
18864
18865 if test "$GCONF" -a "$GVFSCONF" -a "$HAS_GNOMEVFS"
18866 then
18867
18868 cat >>confdefs.h <<\_ACEOF
18869 #define HAS_GVFS 1
18870 _ACEOF
18871
18872
18873     GVFS_LDADD="`$GCONF --libs gnome` `$GVFSCONF --libs`"
18874     GVFS_CFLAGS="`$GCONF --cflags gnome` `$GVFSCONF --cflags`"
18875     opt_fs="$opt_fs gvfs"
18876 fi
18877
18878
18879
18880 # Check whether --enable-wavfs or --disable-wavfs was given.
18881 if test "${enable_wavfs+set}" = set; then
18882   enableval="$enable_wavfs"
18883    opt_fs="$opt_fs wavfs"
18884 fi;
18885
18886
18887 # Check whether --enable-cefs or --disable-cefs was given.
18888 if test "${enable_cefs+set}" = set; then
18889   enableval="$enable_cefs"
18890    opt_fs="$opt_fs cefs"
18891 fi;
18892
18893 if test -n "$cefs_dir"; then
18894
18895 cat >>confdefs.h <<\_ACEOF
18896 #define HAS_CEFS 1
18897 _ACEOF
18898
18899
18900 cat >>confdefs.h <<\_ACEOF
18901 #define INFOFILE "/tmp/cedevices"
18902 _ACEOF
18903
18904 fi
18905
18906 # Check whether --enable-cardfs or --disable-cardfs was given.
18907 if test "${enable_cardfs+set}" = set; then
18908   enableval="$enable_cardfs"
18909    WITH_CARDFS=true
18910 fi;
18911
18912
18913 echo "$as_me:$LINENO: checking for pthread_detach in -lpthread" >&5
18914 echo $ECHO_N "checking for pthread_detach in -lpthread... $ECHO_C" >&6
18915 if test "${ac_cv_lib_pthread_pthread_detach+set}" = set; then
18916   echo $ECHO_N "(cached) $ECHO_C" >&6
18917 else
18918   ac_check_lib_save_LIBS=$LIBS
18919 LIBS="-lpthread  $LIBS"
18920 cat >conftest.$ac_ext <<_ACEOF
18921 #line $LINENO "configure"
18922 /* confdefs.h.  */
18923 _ACEOF
18924 cat confdefs.h >>conftest.$ac_ext
18925 cat >>conftest.$ac_ext <<_ACEOF
18926 /* end confdefs.h.  */
18927
18928 /* Override any gcc2 internal prototype to avoid an error.  */
18929 #ifdef __cplusplus
18930 extern "C"
18931 #endif
18932 /* We use char because int might match the return type of a gcc2
18933    builtin and then its argument prototype would still apply.  */
18934 char pthread_detach ();
18935 int
18936 main ()
18937 {
18938 pthread_detach ();
18939   ;
18940   return 0;
18941 }
18942 _ACEOF
18943 rm -f conftest.$ac_objext conftest$ac_exeext
18944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18945   (eval $ac_link) 2>&5
18946   ac_status=$?
18947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18948   (exit $ac_status); } &&
18949          { ac_try='test -s conftest$ac_exeext'
18950   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18951   (eval $ac_try) 2>&5
18952   ac_status=$?
18953   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954   (exit $ac_status); }; }; then
18955   ac_cv_lib_pthread_pthread_detach=yes
18956 else
18957   echo "$as_me: failed program was:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18959
18960 ac_cv_lib_pthread_pthread_detach=no
18961 fi
18962 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
18963 LIBS=$ac_check_lib_save_LIBS
18964 fi
18965 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_detach" >&5
18966 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_detach" >&6
18967 if test $ac_cv_lib_pthread_pthread_detach = yes; then
18968   cat >>confdefs.h <<_ACEOF
18969 #define HAVE_LIBPTHREAD 1
18970 _ACEOF
18971
18972   LIBS="-lpthread $LIBS"
18973
18974 else
18975   { { echo "$as_me:$LINENO: error: libpthread is needed by lufs" >&5
18976 echo "$as_me: error: libpthread is needed by lufs" >&2;}
18977    { (exit 1); exit 1; }; }
18978 fi
18979
18980
18981
18982 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
18983 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
18984 if test "${ac_cv_header_stdc+set}" = set; then
18985   echo $ECHO_N "(cached) $ECHO_C" >&6
18986 else
18987   cat >conftest.$ac_ext <<_ACEOF
18988 #line $LINENO "configure"
18989 /* confdefs.h.  */
18990 _ACEOF
18991 cat confdefs.h >>conftest.$ac_ext
18992 cat >>conftest.$ac_ext <<_ACEOF
18993 /* end confdefs.h.  */
18994 #include <stdlib.h>
18995 #include <stdarg.h>
18996 #include <string.h>
18997 #include <float.h>
18998
18999 int
19000 main ()
19001 {
19002
19003   ;
19004   return 0;
19005 }
19006 _ACEOF
19007 rm -f conftest.$ac_objext
19008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19009   (eval $ac_compile) 2>&5
19010   ac_status=$?
19011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012   (exit $ac_status); } &&
19013          { ac_try='test -s conftest.$ac_objext'
19014   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19015   (eval $ac_try) 2>&5
19016   ac_status=$?
19017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19018   (exit $ac_status); }; }; then
19019   ac_cv_header_stdc=yes
19020 else
19021   echo "$as_me: failed program was:" >&5
19022 sed 's/^/| /' conftest.$ac_ext >&5
19023
19024 ac_cv_header_stdc=no
19025 fi
19026 rm -f conftest.$ac_objext conftest.$ac_ext
19027
19028 if test $ac_cv_header_stdc = yes; then
19029   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
19030   cat >conftest.$ac_ext <<_ACEOF
19031 #line $LINENO "configure"
19032 /* confdefs.h.  */
19033 _ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h.  */
19037 #include <string.h>
19038
19039 _ACEOF
19040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19041   $EGREP "memchr" >/dev/null 2>&1; then
19042   :
19043 else
19044   ac_cv_header_stdc=no
19045 fi
19046 rm -f conftest*
19047
19048 fi
19049
19050 if test $ac_cv_header_stdc = yes; then
19051   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
19052   cat >conftest.$ac_ext <<_ACEOF
19053 #line $LINENO "configure"
19054 /* confdefs.h.  */
19055 _ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h.  */
19059 #include <stdlib.h>
19060
19061 _ACEOF
19062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19063   $EGREP "free" >/dev/null 2>&1; then
19064   :
19065 else
19066   ac_cv_header_stdc=no
19067 fi
19068 rm -f conftest*
19069
19070 fi
19071
19072 if test $ac_cv_header_stdc = yes; then
19073   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
19074   if test "$cross_compiling" = yes; then
19075   :
19076 else
19077   cat >conftest.$ac_ext <<_ACEOF
19078 #line $LINENO "configure"
19079 /* confdefs.h.  */
19080 _ACEOF
19081 cat confdefs.h >>conftest.$ac_ext
19082 cat >>conftest.$ac_ext <<_ACEOF
19083 /* end confdefs.h.  */
19084 #include <ctype.h>
19085 #if ((' ' & 0x0FF) == 0x020)
19086 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
19087 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
19088 #else
19089 # define ISLOWER(c) \
19090                    (('a' <= (c) && (c) <= 'i') \
19091                      || ('j' <= (c) && (c) <= 'r') \
19092                      || ('s' <= (c) && (c) <= 'z'))
19093 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
19094 #endif
19095
19096 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
19097 int
19098 main ()
19099 {
19100   int i;
19101   for (i = 0; i < 256; i++)
19102     if (XOR (islower (i), ISLOWER (i))
19103         || toupper (i) != TOUPPER (i))
19104       exit(2);
19105   exit (0);
19106 }
19107 _ACEOF
19108 rm -f conftest$ac_exeext
19109 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19110   (eval $ac_link) 2>&5
19111   ac_status=$?
19112   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19113   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19114   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19115   (eval $ac_try) 2>&5
19116   ac_status=$?
19117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19118   (exit $ac_status); }; }; then
19119   :
19120 else
19121   echo "$as_me: program exited with status $ac_status" >&5
19122 echo "$as_me: failed program was:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19124
19125 ( exit $ac_status )
19126 ac_cv_header_stdc=no
19127 fi
19128 rm -f core core.* *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19129 fi
19130 fi
19131 fi
19132 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
19133 echo "${ECHO_T}$ac_cv_header_stdc" >&6
19134 if test $ac_cv_header_stdc = yes; then
19135
19136 cat >>confdefs.h <<\_ACEOF
19137 #define STDC_HEADERS 1
19138 _ACEOF
19139
19140 fi
19141
19142
19143 for ac_header in unistd.h
19144 do
19145 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19146 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19147   echo "$as_me:$LINENO: checking for $ac_header" >&5
19148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19149 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19150   echo $ECHO_N "(cached) $ECHO_C" >&6
19151 fi
19152 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19153 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19154 else
19155   # Is the header compilable?
19156 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19157 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19158 cat >conftest.$ac_ext <<_ACEOF
19159 #line $LINENO "configure"
19160 /* confdefs.h.  */
19161 _ACEOF
19162 cat confdefs.h >>conftest.$ac_ext
19163 cat >>conftest.$ac_ext <<_ACEOF
19164 /* end confdefs.h.  */
19165 $ac_includes_default
19166 #include <$ac_header>
19167 _ACEOF
19168 rm -f conftest.$ac_objext
19169 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19170   (eval $ac_compile) 2>&5
19171   ac_status=$?
19172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19173   (exit $ac_status); } &&
19174          { ac_try='test -s conftest.$ac_objext'
19175   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19176   (eval $ac_try) 2>&5
19177   ac_status=$?
19178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19179   (exit $ac_status); }; }; then
19180   ac_header_compiler=yes
19181 else
19182   echo "$as_me: failed program was:" >&5
19183 sed 's/^/| /' conftest.$ac_ext >&5
19184
19185 ac_header_compiler=no
19186 fi
19187 rm -f conftest.$ac_objext conftest.$ac_ext
19188 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19189 echo "${ECHO_T}$ac_header_compiler" >&6
19190
19191 # Is the header present?
19192 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19193 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19194 cat >conftest.$ac_ext <<_ACEOF
19195 #line $LINENO "configure"
19196 /* confdefs.h.  */
19197 _ACEOF
19198 cat confdefs.h >>conftest.$ac_ext
19199 cat >>conftest.$ac_ext <<_ACEOF
19200 /* end confdefs.h.  */
19201 #include <$ac_header>
19202 _ACEOF
19203 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19204   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19205   ac_status=$?
19206   grep -v '^ *+' conftest.er1 >conftest.err
19207   rm -f conftest.er1
19208   cat conftest.err >&5
19209   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19210   (exit $ac_status); } >/dev/null; then
19211   if test -s conftest.err; then
19212     ac_cpp_err=$ac_c_preproc_warn_flag
19213   else
19214     ac_cpp_err=
19215   fi
19216 else
19217   ac_cpp_err=yes
19218 fi
19219 if test -z "$ac_cpp_err"; then
19220   ac_header_preproc=yes
19221 else
19222   echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19224
19225   ac_header_preproc=no
19226 fi
19227 rm -f conftest.err conftest.$ac_ext
19228 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19229 echo "${ECHO_T}$ac_header_preproc" >&6
19230
19231 # So?  What about this header?
19232 case $ac_header_compiler:$ac_header_preproc in
19233   yes:no )
19234     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19235 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19236     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19238     (
19239       cat <<\_ASBOX
19240 ## ------------------------------------ ##
19241 ## Report this to bug-autoconf@gnu.org. ##
19242 ## ------------------------------------ ##
19243 _ASBOX
19244     ) |
19245       sed "s/^/$as_me: WARNING:     /" >&2
19246     ;;
19247   no:yes )
19248     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19250     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19252     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19253 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19254     (
19255       cat <<\_ASBOX
19256 ## ------------------------------------ ##
19257 ## Report this to bug-autoconf@gnu.org. ##
19258 ## ------------------------------------ ##
19259 _ASBOX
19260     ) |
19261       sed "s/^/$as_me: WARNING:     /" >&2
19262     ;;
19263 esac
19264 echo "$as_me:$LINENO: checking for $ac_header" >&5
19265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19266 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19267   echo $ECHO_N "(cached) $ECHO_C" >&6
19268 else
19269   eval "$as_ac_Header=$ac_header_preproc"
19270 fi
19271 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19272 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19273
19274 fi
19275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19276   cat >>confdefs.h <<_ACEOF
19277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19278 _ACEOF
19279
19280 fi
19281
19282 done
19283
19284
19285
19286
19287
19288
19289
19290
19291 for ac_header in byteswap.h sys/byteswap.h endian.h machine/endian.h sys/types.h
19292 do
19293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19294 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19295   echo "$as_me:$LINENO: checking for $ac_header" >&5
19296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19297 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19298   echo $ECHO_N "(cached) $ECHO_C" >&6
19299 fi
19300 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19301 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19302 else
19303   # Is the header compilable?
19304 echo "$as_me:$LINENO: checking $ac_header usability" >&5
19305 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
19306 cat >conftest.$ac_ext <<_ACEOF
19307 #line $LINENO "configure"
19308 /* confdefs.h.  */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h.  */
19313 $ac_includes_default
19314 #include <$ac_header>
19315 _ACEOF
19316 rm -f conftest.$ac_objext
19317 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19318   (eval $ac_compile) 2>&5
19319   ac_status=$?
19320   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19321   (exit $ac_status); } &&
19322          { ac_try='test -s conftest.$ac_objext'
19323   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19324   (eval $ac_try) 2>&5
19325   ac_status=$?
19326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19327   (exit $ac_status); }; }; then
19328   ac_header_compiler=yes
19329 else
19330   echo "$as_me: failed program was:" >&5
19331 sed 's/^/| /' conftest.$ac_ext >&5
19332
19333 ac_header_compiler=no
19334 fi
19335 rm -f conftest.$ac_objext conftest.$ac_ext
19336 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19337 echo "${ECHO_T}$ac_header_compiler" >&6
19338
19339 # Is the header present?
19340 echo "$as_me:$LINENO: checking $ac_header presence" >&5
19341 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
19342 cat >conftest.$ac_ext <<_ACEOF
19343 #line $LINENO "configure"
19344 /* confdefs.h.  */
19345 _ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h.  */
19349 #include <$ac_header>
19350 _ACEOF
19351 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19352   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19353   ac_status=$?
19354   grep -v '^ *+' conftest.er1 >conftest.err
19355   rm -f conftest.er1
19356   cat conftest.err >&5
19357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358   (exit $ac_status); } >/dev/null; then
19359   if test -s conftest.err; then
19360     ac_cpp_err=$ac_c_preproc_warn_flag
19361   else
19362     ac_cpp_err=
19363   fi
19364 else
19365   ac_cpp_err=yes
19366 fi
19367 if test -z "$ac_cpp_err"; then
19368   ac_header_preproc=yes
19369 else
19370   echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373   ac_header_preproc=no
19374 fi
19375 rm -f conftest.err conftest.$ac_ext
19376 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19377 echo "${ECHO_T}$ac_header_preproc" >&6
19378
19379 # So?  What about this header?
19380 case $ac_header_compiler:$ac_header_preproc in
19381   yes:no )
19382     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19384     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19386     (
19387       cat <<\_ASBOX
19388 ## ------------------------------------ ##
19389 ## Report this to bug-autoconf@gnu.org. ##
19390 ## ------------------------------------ ##
19391 _ASBOX
19392     ) |
19393       sed "s/^/$as_me: WARNING:     /" >&2
19394     ;;
19395   no:yes )
19396     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19397 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19398     { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19399 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19400     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19402     (
19403       cat <<\_ASBOX
19404 ## ------------------------------------ ##
19405 ## Report this to bug-autoconf@gnu.org. ##
19406 ## ------------------------------------ ##
19407 _ASBOX
19408     ) |
19409       sed "s/^/$as_me: WARNING:     /" >&2
19410     ;;
19411 esac
19412 echo "$as_me:$LINENO: checking for $ac_header" >&5
19413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
19414 if eval "test \"\${$as_ac_Header+set}\" = set"; then
19415   echo $ECHO_N "(cached) $ECHO_C" >&6
19416 else
19417   eval "$as_ac_Header=$ac_header_preproc"
19418 fi
19419 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
19420 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
19421
19422 fi
19423 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19424   cat >>confdefs.h <<_ACEOF
19425 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19426 _ACEOF
19427
19428 fi
19429
19430 done
19431
19432
19433
19434 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
19435 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
19436 if test "${ac_cv_c_const+set}" = set; then
19437   echo $ECHO_N "(cached) $ECHO_C" >&6
19438 else
19439   cat >conftest.$ac_ext <<_ACEOF
19440 #line $LINENO "configure"
19441 /* confdefs.h.  */
19442 _ACEOF
19443 cat confdefs.h >>conftest.$ac_ext
19444 cat >>conftest.$ac_ext <<_ACEOF
19445 /* end confdefs.h.  */
19446
19447 int
19448 main ()
19449 {
19450 /* FIXME: Include the comments suggested by Paul. */
19451 #ifndef __cplusplus
19452   /* Ultrix mips cc rejects this.  */
19453   typedef int charset[2];
19454   const charset x;
19455   /* SunOS 4.1.1 cc rejects this.  */
19456   char const *const *ccp;
19457   char **p;
19458   /* NEC SVR4.0.2 mips cc rejects this.  */
19459   struct point {int x, y;};
19460   static struct point const zero = {0,0};
19461   /* AIX XL C 1.02.0.0 rejects this.
19462      It does not let you subtract one const X* pointer from another in
19463      an arm of an if-expression whose if-part is not a constant
19464      expression */
19465   const char *g = "string";
19466   ccp = &g + (g ? g-g : 0);
19467   /* HPUX 7.0 cc rejects these. */
19468   ++ccp;
19469   p = (char**) ccp;
19470   ccp = (char const *const *) p;
19471   { /* SCO 3.2v4 cc rejects this.  */
19472     char *t;
19473     char const *s = 0 ? (char *) 0 : (char const *) 0;
19474
19475     *t++ = 0;
19476   }
19477   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
19478     int x[] = {25, 17};
19479     const int *foo = &x[0];
19480     ++foo;
19481   }
19482   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19483     typedef const int *iptr;
19484     iptr p = 0;
19485     ++p;
19486   }
19487   { /* AIX XL C 1.02.0.0 rejects this saying
19488        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19489     struct s { int j; const int *ap[3]; };
19490     struct s *b; b->j = 5;
19491   }
19492   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19493     const int foo = 10;
19494   }
19495 #endif
19496
19497   ;
19498   return 0;
19499 }
19500 _ACEOF
19501 rm -f conftest.$ac_objext
19502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19503   (eval $ac_compile) 2>&5
19504   ac_status=$?
19505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19506   (exit $ac_status); } &&
19507          { ac_try='test -s conftest.$ac_objext'
19508   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19509   (eval $ac_try) 2>&5
19510   ac_status=$?
19511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512   (exit $ac_status); }; }; then
19513   ac_cv_c_const=yes
19514 else
19515   echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ac_cv_c_const=no
19519 fi
19520 rm -f conftest.$ac_objext conftest.$ac_ext
19521 fi
19522 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
19523 echo "${ECHO_T}$ac_cv_c_const" >&6
19524 if test $ac_cv_c_const = no; then
19525
19526 cat >>confdefs.h <<\_ACEOF
19527 #define const
19528 _ACEOF
19529
19530 fi
19531
19532 echo "$as_me:$LINENO: checking for pid_t" >&5
19533 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
19534 if test "${ac_cv_type_pid_t+set}" = set; then
19535   echo $ECHO_N "(cached) $ECHO_C" >&6
19536 else
19537   cat >conftest.$ac_ext <<_ACEOF
19538 #line $LINENO "configure"
19539 /* confdefs.h.  */
19540 _ACEOF
19541 cat confdefs.h >>conftest.$ac_ext
19542 cat >>conftest.$ac_ext <<_ACEOF
19543 /* end confdefs.h.  */
19544 $ac_includes_default
19545 int
19546 main ()
19547 {
19548 if ((pid_t *) 0)
19549   return 0;
19550 if (sizeof (pid_t))
19551   return 0;
19552   ;
19553   return 0;
19554 }
19555 _ACEOF
19556 rm -f conftest.$ac_objext
19557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19558   (eval $ac_compile) 2>&5
19559   ac_status=$?
19560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561   (exit $ac_status); } &&
19562          { ac_try='test -s conftest.$ac_objext'
19563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564   (eval $ac_try) 2>&5
19565   ac_status=$?
19566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567   (exit $ac_status); }; }; then
19568   ac_cv_type_pid_t=yes
19569 else
19570   echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_cv_type_pid_t=no
19574 fi
19575 rm -f conftest.$ac_objext conftest.$ac_ext
19576 fi
19577 echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
19578 echo "${ECHO_T}$ac_cv_type_pid_t" >&6
19579 if test $ac_cv_type_pid_t = yes; then
19580   :
19581 else
19582
19583 cat >>confdefs.h <<_ACEOF
19584 #define pid_t int
19585 _ACEOF
19586
19587 fi
19588
19589
19590
19591
19592 for ac_func in mkdir rmdir
19593 do
19594 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19595 echo "$as_me:$LINENO: checking for $ac_func" >&5
19596 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
19597 if eval "test \"\${$as_ac_var+set}\" = set"; then
19598   echo $ECHO_N "(cached) $ECHO_C" >&6
19599 else
19600   cat >conftest.$ac_ext <<_ACEOF
19601 #line $LINENO "configure"
19602 /* confdefs.h.  */
19603 _ACEOF
19604 cat confdefs.h >>conftest.$ac_ext
19605 cat >>conftest.$ac_ext <<_ACEOF
19606 /* end confdefs.h.  */
19607 /* System header to define __stub macros and hopefully few prototypes,
19608     which can conflict with char $ac_func (); below.
19609     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19610     <limits.h> exists even on freestanding compilers.  */
19611 #ifdef __STDC__
19612 # include <limits.h>
19613 #else
19614 # include <assert.h>
19615 #endif
19616 /* Override any gcc2 internal prototype to avoid an error.  */
19617 #ifdef __cplusplus
19618 extern "C"
19619 {
19620 #endif
19621 /* We use char because int might match the return type of a gcc2
19622    builtin and then its argument prototype would still apply.  */
19623 char $ac_func ();
19624 /* The GNU C library defines this for functions which it implements
19625     to always fail with ENOSYS.  Some functions are actually named
19626     something starting with __ and the normal name is an alias.  */
19627 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
19628 choke me
19629 #else
19630 char (*f) () = $ac_func;
19631 #endif
19632 #ifdef __cplusplus
19633 }
19634 #endif
19635
19636 int
19637 main ()
19638 {
19639 return f != $ac_func;
19640   ;
19641   return 0;
19642 }
19643 _ACEOF
19644 rm -f conftest.$ac_objext conftest$ac_exeext
19645 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19646   (eval $ac_link) 2>&5
19647   ac_status=$?
19648   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649   (exit $ac_status); } &&
19650          { ac_try='test -s conftest$ac_exeext'
19651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19652   (eval $ac_try) 2>&5
19653   ac_status=$?
19654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19655   (exit $ac_status); }; }; then
19656   eval "$as_ac_var=yes"
19657 else
19658   echo "$as_me: failed program was:" >&5
19659 sed 's/^/| /' conftest.$ac_ext >&5
19660
19661 eval "$as_ac_var=no"
19662 fi
19663 rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
19664 fi
19665 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
19666 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
19667 if test `eval echo '${'$as_ac_var'}'` = yes; then
19668   cat >>confdefs.h <<_ACEOF
19669 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19670 _ACEOF
19671
19672 fi
19673 done
19674
19675
19676 if test -n "$WITH_CARDFS"; then
19677     echo checking for cardfs
19678     echo "$as_me:$LINENO: checking for libchipcard" >&5
19679 echo $ECHO_N "checking for libchipcard... $ECHO_C" >&6
19680
19681 # Check whether --with-chipcard-dir or --without-chipcard-dir was given.
19682 if test "${with_chipcard_dir+set}" = set; then
19683   withval="$with_chipcard_dir"
19684   cc_dir="$withval"
19685 else
19686   cc_dir="/usr/local/libchipcard \
19687             /usr/local \
19688             /usr/libchipcard \
19689             /usr \
19690             /"
19691 fi;
19692     for li in $cc_dir; do
19693         if test -x "$li/bin/libchipcard-config"; then
19694             chipcard_dir="$li"
19695         fi
19696     done
19697     if test -z "$chipcard_dir"; then
19698         echo "$as_me:$LINENO: result: not found (chipcard support disabled)" >&5
19699 echo "${ECHO_T}not found (chipcard support disabled)" >&6
19700     else
19701         all_libraries="$all_libraries `$chipcard_dir/bin/libchipcard-config --libraries`"
19702         all_includes="$all_includes `$chipcard_dir/bin/libchipcard-config --includes`"
19703
19704 cat >>confdefs.h <<\_ACEOF
19705 #define HAS_LIBCHIPCARD 1
19706 _ACEOF
19707
19708         define_has_libchipcard="#define HAS_LIBCHIPCARD"
19709
19710         LIBCHIPCARD_LIB="`$chipcard_dir/bin/libchipcard-config --libraries` -lcardfs"
19711         LIBCHIPCARD_INCLUDES="`$chipcard_dir/bin/libchipcard-config --includes`"
19712         echo "$as_me:$LINENO: result: $chipcard_dir" >&5
19713 echo "${ECHO_T}$chipcard_dir" >&6
19714         all_libraries="$all_libraries $libchipcard_libs"
19715         all_includes="$all_includes $libchipcard_includes"
19716         opt_fs="$opt_fs cardfs"
19717     fi
19718 fi
19719
19720
19721
19722 all_includes="$all_includes -I`pwd`/include"
19723
19724
19725
19726
19727
19728                                                                                                                                                                                                                   ac_config_files="$ac_config_files Makefile lufsd/Makefile filesystems/Makefile filesystems/localfs/Makefile filesystems/locasefs/Makefile filesystems/sshfs/Makefile filesystems/ftpfs/Makefile filesystems/cardfs/Makefile filesystems/cefs/Makefile filesystems/cefs/asyncd/Makefile filesystems/gvfs/Makefile filesystems/gnetfs/Makefile filesystems/wavfs/Makefile util/Makefile kernel/Makefile kernel/Linux/Makefile kernel/Linux/2.4/Makefile include/Makefile config/Makefile docs/Makefile man/Makefile"
19729 cat >confcache <<\_ACEOF
19730 # This file is a shell script that caches the results of configure
19731 # tests run on this system so they can be shared between configure
19732 # scripts and configure runs, see configure's option --config-cache.
19733 # It is not useful on other systems.  If it contains results you don't
19734 # want to keep, you may remove or edit it.
19735 #
19736 # config.status only pays attention to the cache file if you give it
19737 # the --recheck option to rerun configure.
19738 #
19739 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19740 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19741 # following values.
19742
19743 _ACEOF
19744
19745 # The following way of writing the cache mishandles newlines in values,
19746 # but we know of no workaround that is simple, portable, and efficient.
19747 # So, don't put newlines in cache variables' values.
19748 # Ultrix sh set writes to stderr and can't be redirected directly,
19749 # and sets the high bit in the cache file unless we assign to the vars.
19750 {
19751   (set) 2>&1 |
19752     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19753     *ac_space=\ *)
19754       # `set' does not quote correctly, so add quotes (double-quote
19755       # substitution turns \\\\ into \\, and sed turns \\ into \).
19756       sed -n \
19757         "s/'/'\\\\''/g;
19758           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19759       ;;
19760     *)
19761       # `set' quotes correctly as required by POSIX, so do not add quotes.
19762       sed -n \
19763         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19764       ;;
19765     esac;
19766 } |
19767   sed '
19768      t clear
19769      : clear
19770      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19771      t end
19772      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19773      : end' >>confcache
19774 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19775   if test -w $cache_file; then
19776     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19777     cat confcache >$cache_file
19778   else
19779     echo "not updating unwritable cache $cache_file"
19780   fi
19781 fi
19782 rm -f confcache
19783
19784 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19785 # Let make expand exec_prefix.
19786 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19787
19788 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19789 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19790 # trailing colons and then remove the whole line if VPATH becomes empty
19791 # (actually we leave an empty line to preserve line numbers).
19792 if test "x$srcdir" = x.; then
19793   ac_vpsub='/^[         ]*VPATH[        ]*=/{
19794 s/:*\$(srcdir):*/:/;
19795 s/:*\${srcdir}:*/:/;
19796 s/:*@srcdir@:*/:/;
19797 s/^\([^=]*=[    ]*\):*/\1/;
19798 s/:*$//;
19799 s/^[^=]*=[      ]*$//;
19800 }'
19801 fi
19802
19803 DEFS=-DHAVE_CONFIG_H
19804
19805 ac_libobjs=
19806 ac_ltlibobjs=
19807 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19808   # 1. Remove the extension, and $U if already installed.
19809   ac_i=`echo "$ac_i" |
19810          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19811   # 2. Add them.
19812   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19813   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19814 done
19815 LIBOBJS=$ac_libobjs
19816
19817 LTLIBOBJS=$ac_ltlibobjs
19818
19819
19820 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19821   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19822 Usually this means the macro was only invoked conditionally." >&5
19823 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19824 Usually this means the macro was only invoked conditionally." >&2;}
19825    { (exit 1); exit 1; }; }
19826 fi
19827 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19828   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19829 Usually this means the macro was only invoked conditionally." >&5
19830 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19831 Usually this means the macro was only invoked conditionally." >&2;}
19832    { (exit 1); exit 1; }; }
19833 fi
19834 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19835   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19836 Usually this means the macro was only invoked conditionally." >&5
19837 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19838 Usually this means the macro was only invoked conditionally." >&2;}
19839    { (exit 1); exit 1; }; }
19840 fi
19841
19842 : ${CONFIG_STATUS=./config.status}
19843 ac_clean_files_save=$ac_clean_files
19844 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19845 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19846 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19847 cat >$CONFIG_STATUS <<_ACEOF
19848 #! $SHELL
19849 # Generated by $as_me.
19850 # Run this file to recreate the current configuration.
19851 # Compiler output produced by configure, useful for debugging
19852 # configure, is in config.log if it exists.
19853
19854 debug=false
19855 ac_cs_recheck=false
19856 ac_cs_silent=false
19857 SHELL=\${CONFIG_SHELL-$SHELL}
19858 _ACEOF
19859
19860 cat >>$CONFIG_STATUS <<\_ACEOF
19861 ## --------------------- ##
19862 ## M4sh Initialization.  ##
19863 ## --------------------- ##
19864
19865 # Be Bourne compatible
19866 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19867   emulate sh
19868   NULLCMD=:
19869   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19870   # is contrary to our usage.  Disable this feature.
19871   alias -g '${1+"$@"}'='"$@"'
19872 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19873   set -o posix
19874 fi
19875
19876 # Support unset when possible.
19877 if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
19878   as_unset=unset
19879 else
19880   as_unset=false
19881 fi
19882
19883
19884 # Work around bugs in pre-3.0 UWIN ksh.
19885 $as_unset ENV MAIL MAILPATH
19886 PS1='$ '
19887 PS2='> '
19888 PS4='+ '
19889
19890 # NLS nuisances.
19891 for as_var in \
19892   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19893   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19894   LC_TELEPHONE LC_TIME
19895 do
19896   if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
19897     eval $as_var=C; export $as_var
19898   else
19899     $as_unset $as_var
19900   fi
19901 done
19902
19903 # Required to use basename.
19904 if expr a : '\(a\)' >/dev/null 2>&1; then
19905   as_expr=expr
19906 else
19907   as_expr=false
19908 fi
19909
19910 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19911   as_basename=basename
19912 else
19913   as_basename=false
19914 fi
19915
19916
19917 # Name of the executable.
19918 as_me=`$as_basename "$0" ||
19919 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19920          X"$0" : 'X\(//\)$' \| \
19921          X"$0" : 'X\(/\)$' \| \
19922          .     : '\(.\)' 2>/dev/null ||
19923 echo X/"$0" |
19924     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19925           /^X\/\(\/\/\)$/{ s//\1/; q; }
19926           /^X\/\(\/\).*/{ s//\1/; q; }
19927           s/.*/./; q'`
19928
19929
19930 # PATH needs CR, and LINENO needs CR and PATH.
19931 # Avoid depending upon Character Ranges.
19932 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19933 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19934 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19935 as_cr_digits='0123456789'
19936 as_cr_alnum=$as_cr_Letters$as_cr_digits
19937
19938 # The user is always right.
19939 if test "${PATH_SEPARATOR+set}" != set; then
19940   echo "#! /bin/sh" >conf$$.sh
19941   echo  "exit 0"   >>conf$$.sh
19942   chmod +x conf$$.sh
19943   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19944     PATH_SEPARATOR=';'
19945   else
19946     PATH_SEPARATOR=:
19947   fi
19948   rm -f conf$$.sh
19949 fi
19950
19951
19952   as_lineno_1=$LINENO
19953   as_lineno_2=$LINENO
19954   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19955   test "x$as_lineno_1" != "x$as_lineno_2" &&
19956   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19957   # Find who we are.  Look in the path if we contain no path at all
19958   # relative or not.
19959   case $0 in
19960     *[\\/]* ) as_myself=$0 ;;
19961     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19962 for as_dir in $PATH
19963 do
19964   IFS=$as_save_IFS
19965   test -z "$as_dir" && as_dir=.
19966   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19967 done
19968
19969        ;;
19970   esac
19971   # We did not find ourselves, most probably we were run as `sh COMMAND'
19972   # in which case we are not to be found in the path.
19973   if test "x$as_myself" = x; then
19974     as_myself=$0
19975   fi
19976   if test ! -f "$as_myself"; then
19977     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19978 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19979    { (exit 1); exit 1; }; }
19980   fi
19981   case $CONFIG_SHELL in
19982   '')
19983     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19984 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19985 do
19986   IFS=$as_save_IFS
19987   test -z "$as_dir" && as_dir=.
19988   for as_base in sh bash ksh sh5; do
19989          case $as_dir in
19990          /*)
19991            if ("$as_dir/$as_base" -c '
19992   as_lineno_1=$LINENO
19993   as_lineno_2=$LINENO
19994   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19995   test "x$as_lineno_1" != "x$as_lineno_2" &&
19996   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19997              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19998              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19999              CONFIG_SHELL=$as_dir/$as_base
20000              export CONFIG_SHELL
20001              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
20002            fi;;
20003          esac
20004        done
20005 done
20006 ;;
20007   esac
20008
20009   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20010   # uniformly replaced by the line number.  The first 'sed' inserts a
20011   # line-number line before each line; the second 'sed' does the real
20012   # work.  The second script uses 'N' to pair each line-number line
20013   # with the numbered line, and appends trailing '-' during
20014   # substitution so that $LINENO is not a special case at line end.
20015   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20016   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
20017   sed '=' <$as_myself |
20018     sed '
20019       N
20020       s,$,-,
20021       : loop
20022       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
20023       t loop
20024       s,-$,,
20025       s,^['$as_cr_digits']*\n,,
20026     ' >$as_me.lineno &&
20027   chmod +x $as_me.lineno ||
20028     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
20029 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
20030    { (exit 1); exit 1; }; }
20031
20032   # Don't try to exec as it changes $[0], causing all sort of problems
20033   # (the dirname of $[0] is not the place where we might find the
20034   # original and so on.  Autoconf is especially sensible to this).
20035   . ./$as_me.lineno
20036   # Exit status is that of the last command.
20037   exit
20038 }
20039
20040
20041 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
20042   *c*,-n*) ECHO_N= ECHO_C='
20043 ' ECHO_T='      ' ;;
20044   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
20045   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
20046 esac
20047
20048 if expr a : '\(a\)' >/dev/null 2>&1; then
20049   as_expr=expr
20050 else
20051   as_expr=false
20052 fi
20053
20054 rm -f conf$$ conf$$.exe conf$$.file
20055 echo >conf$$.file
20056 if ln -s conf$$.file conf$$ 2>/dev/null; then
20057   # We could just check for DJGPP; but this test a) works b) is more generic
20058   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
20059   if test -f conf$$.exe; then
20060     # Don't use ln at all; we don't have any links
20061     as_ln_s='cp -p'
20062   else
20063     as_ln_s='ln -s'
20064   fi
20065 elif ln conf$$.file conf$$ 2>/dev/null; then
20066   as_ln_s=ln
20067 else
20068   as_ln_s='cp -p'
20069 fi
20070 rm -f conf$$ conf$$.exe conf$$.file
20071
20072 if mkdir -p . 2>/dev/null; then
20073   as_mkdir_p=:
20074 else
20075   as_mkdir_p=false
20076 fi
20077
20078 as_executable_p="test -f"
20079
20080 # Sed expression to map a string onto a valid CPP name.
20081 as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
20082
20083 # Sed expression to map a string onto a valid variable name.
20084 as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
20085
20086
20087 # IFS
20088 # We need space, tab and new line, in precisely that order.
20089 as_nl='
20090 '
20091 IFS="   $as_nl"
20092
20093 # CDPATH.
20094 $as_unset CDPATH
20095
20096 exec 6>&1
20097
20098 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20099 # report actual input values of CONFIG_FILES etc. instead of their
20100 # values after options handling.  Logging --version etc. is OK.
20101 exec 5>>config.log
20102 {
20103   echo
20104   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20105 ## Running $as_me. ##
20106 _ASBOX
20107 } >&5
20108 cat >&5 <<_CSEOF
20109
20110 This file was extended by $as_me, which was
20111 generated by GNU Autoconf 2.57.  Invocation command line was
20112
20113   CONFIG_FILES    = $CONFIG_FILES
20114   CONFIG_HEADERS  = $CONFIG_HEADERS
20115   CONFIG_LINKS    = $CONFIG_LINKS
20116   CONFIG_COMMANDS = $CONFIG_COMMANDS
20117   $ $0 $@
20118
20119 _CSEOF
20120 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20121 echo >&5
20122 _ACEOF
20123
20124 # Files that config.status was made for.
20125 if test -n "$ac_config_files"; then
20126   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20127 fi
20128
20129 if test -n "$ac_config_headers"; then
20130   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20131 fi
20132
20133 if test -n "$ac_config_links"; then
20134   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20135 fi
20136
20137 if test -n "$ac_config_commands"; then
20138   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20139 fi
20140
20141 cat >>$CONFIG_STATUS <<\_ACEOF
20142
20143 ac_cs_usage="\
20144 \`$as_me' instantiates files from templates according to the
20145 current configuration.
20146
20147 Usage: $0 [OPTIONS] [FILE]...
20148
20149   -h, --help       print this help, then exit
20150   -V, --version    print version number, then exit
20151   -q, --quiet      do not print progress messages
20152   -d, --debug      don't remove temporary files
20153       --recheck    update $as_me by reconfiguring in the same conditions
20154   --file=FILE[:TEMPLATE]
20155                    instantiate the configuration file FILE
20156   --header=FILE[:TEMPLATE]
20157                    instantiate the configuration header FILE
20158
20159 Configuration files:
20160 $config_files
20161
20162 Configuration headers:
20163 $config_headers
20164
20165 Configuration commands:
20166 $config_commands
20167
20168 Report bugs to <bug-autoconf@gnu.org>."
20169 _ACEOF
20170
20171 cat >>$CONFIG_STATUS <<_ACEOF
20172 ac_cs_version="\\
20173 config.status
20174 configured by $0, generated by GNU Autoconf 2.57,
20175   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20176
20177 Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
20178 Free Software Foundation, Inc.
20179 This config.status script is free software; the Free Software Foundation
20180 gives unlimited permission to copy, distribute and modify it."
20181 srcdir=$srcdir
20182 INSTALL="$INSTALL"
20183 _ACEOF
20184
20185 cat >>$CONFIG_STATUS <<\_ACEOF
20186 # If no file are specified by the user, then we need to provide default
20187 # value.  By we need to know if files were specified by the user.
20188 ac_need_defaults=:
20189 while test $# != 0
20190 do
20191   case $1 in
20192   --*=*)
20193     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20194     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20195     ac_shift=:
20196     ;;
20197   -*)
20198     ac_option=$1
20199     ac_optarg=$2
20200     ac_shift=shift
20201     ;;
20202   *) # This is not an option, so the user has probably given explicit
20203      # arguments.
20204      ac_option=$1
20205      ac_need_defaults=false;;
20206   esac
20207
20208   case $ac_option in
20209   # Handling of the options.
20210 _ACEOF
20211 cat >>$CONFIG_STATUS <<\_ACEOF
20212   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20213     ac_cs_recheck=: ;;
20214   --version | --vers* | -V )
20215     echo "$ac_cs_version"; exit 0 ;;
20216   --he | --h)
20217     # Conflict between --help and --header
20218     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20219 Try \`$0 --help' for more information." >&5
20220 echo "$as_me: error: ambiguous option: $1
20221 Try \`$0 --help' for more information." >&2;}
20222    { (exit 1); exit 1; }; };;
20223   --help | --hel | -h )
20224     echo "$ac_cs_usage"; exit 0 ;;
20225   --debug | --d* | -d )
20226     debug=: ;;
20227   --file | --fil | --fi | --f )
20228     $ac_shift
20229     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20230     ac_need_defaults=false;;
20231   --header | --heade | --head | --hea )
20232     $ac_shift
20233     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20234     ac_need_defaults=false;;
20235   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20236   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20237     ac_cs_silent=: ;;
20238
20239   # This is an error.
20240   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20241 Try \`$0 --help' for more information." >&5
20242 echo "$as_me: error: unrecognized option: $1
20243 Try \`$0 --help' for more information." >&2;}
20244    { (exit 1); exit 1; }; } ;;
20245
20246   *) ac_config_targets="$ac_config_targets $1" ;;
20247
20248   esac
20249   shift
20250 done
20251
20252 ac_configure_extra_args=
20253
20254 if $ac_cs_silent; then
20255   exec 6>/dev/null
20256   ac_configure_extra_args="$ac_configure_extra_args --silent"
20257 fi
20258
20259 _ACEOF
20260 cat >>$CONFIG_STATUS <<_ACEOF
20261 if \$ac_cs_recheck; then
20262   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20263   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20264 fi
20265
20266 _ACEOF
20267
20268 cat >>$CONFIG_STATUS <<_ACEOF
20269 #
20270 # INIT-COMMANDS section.
20271 #
20272
20273 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20274
20275 _ACEOF
20276
20277
20278
20279 cat >>$CONFIG_STATUS <<\_ACEOF
20280 for ac_config_target in $ac_config_targets
20281 do
20282   case "$ac_config_target" in
20283   # Handling of arguments.
20284   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20285   "lufsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES lufsd/Makefile" ;;
20286   "filesystems/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/Makefile" ;;
20287   "filesystems/localfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/localfs/Makefile" ;;
20288   "filesystems/locasefs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/locasefs/Makefile" ;;
20289   "filesystems/sshfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/sshfs/Makefile" ;;
20290   "filesystems/ftpfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/ftpfs/Makefile" ;;
20291   "filesystems/cardfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/cardfs/Makefile" ;;
20292   "filesystems/cefs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/cefs/Makefile" ;;
20293   "filesystems/cefs/asyncd/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/cefs/asyncd/Makefile" ;;
20294   "filesystems/gvfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/gvfs/Makefile" ;;
20295   "filesystems/gnetfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/gnetfs/Makefile" ;;
20296   "filesystems/wavfs/Makefile" ) CONFIG_FILES="$CONFIG_FILES filesystems/wavfs/Makefile" ;;
20297   "util/Makefile" ) CONFIG_FILES="$CONFIG_FILES util/Makefile" ;;
20298   "kernel/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Makefile" ;;
20299   "kernel/Linux/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Linux/Makefile" ;;
20300   "kernel/Linux/2.4/Makefile" ) CONFIG_FILES="$CONFIG_FILES kernel/Linux/2.4/Makefile" ;;
20301   "include/Makefile" ) CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
20302   "config/Makefile" ) CONFIG_FILES="$CONFIG_FILES config/Makefile" ;;
20303   "docs/Makefile" ) CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
20304   "man/Makefile" ) CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20305   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20306   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20307   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20308 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20309    { (exit 1); exit 1; }; };;
20310   esac
20311 done
20312
20313 # If the user did not use the arguments to specify the items to instantiate,
20314 # then the envvar interface is used.  Set only those that are not.
20315 # We use the long form for the default assignment because of an extremely
20316 # bizarre bug on SunOS 4.1.3.
20317 if $ac_need_defaults; then
20318   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20319   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20320   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20321 fi
20322
20323 # Have a temporary directory for convenience.  Make it in the build tree
20324 # simply because there is no reason to put it here, and in addition,
20325 # creating and moving files from /tmp can sometimes cause problems.
20326 # Create a temporary directory, and hook for its removal unless debugging.
20327 $debug ||
20328 {
20329   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20330   trap '{ (exit 1); exit 1; }' 1 2 13 15
20331 }
20332
20333 # Create a (secure) tmp directory for tmp files.
20334
20335 {
20336   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20337   test -n "$tmp" && test -d "$tmp"
20338 }  ||
20339 {
20340   tmp=./confstat$$-$RANDOM
20341   (umask 077 && mkdir $tmp)
20342 } ||
20343 {
20344    echo "$me: cannot create a temporary directory in ." >&2
20345    { (exit 1); exit 1; }
20346 }
20347
20348 _ACEOF
20349
20350 cat >>$CONFIG_STATUS <<_ACEOF
20351
20352 #
20353 # CONFIG_FILES section.
20354 #
20355
20356 # No need to generate the scripts if there are no CONFIG_FILES.
20357 # This happens for instance when ./config.status config.h
20358 if test -n "\$CONFIG_FILES"; then
20359   # Protect against being on the right side of a sed subst in config.status.
20360   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20361    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20362 s,@SHELL@,$SHELL,;t t
20363 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20364 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20365 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20366 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20367 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20368 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20369 s,@exec_prefix@,$exec_prefix,;t t
20370 s,@prefix@,$prefix,;t t
20371 s,@program_transform_name@,$program_transform_name,;t t
20372 s,@bindir@,$bindir,;t t
20373 s,@sbindir@,$sbindir,;t t
20374 s,@libexecdir@,$libexecdir,;t t
20375 s,@datadir@,$datadir,;t t
20376 s,@sysconfdir@,$sysconfdir,;t t
20377 s,@sharedstatedir@,$sharedstatedir,;t t
20378 s,@localstatedir@,$localstatedir,;t t
20379 s,@libdir@,$libdir,;t t
20380 s,@includedir@,$includedir,;t t
20381 s,@oldincludedir@,$oldincludedir,;t t
20382 s,@infodir@,$infodir,;t t
20383 s,@mandir@,$mandir,;t t
20384 s,@build_alias@,$build_alias,;t t
20385 s,@host_alias@,$host_alias,;t t
20386 s,@target_alias@,$target_alias,;t t
20387 s,@DEFS@,$DEFS,;t t
20388 s,@ECHO_C@,$ECHO_C,;t t
20389 s,@ECHO_N@,$ECHO_N,;t t
20390 s,@ECHO_T@,$ECHO_T,;t t
20391 s,@LIBS@,$LIBS,;t t
20392 s,@build@,$build,;t t
20393 s,@build_cpu@,$build_cpu,;t t
20394 s,@build_vendor@,$build_vendor,;t t
20395 s,@build_os@,$build_os,;t t
20396 s,@host@,$host,;t t
20397 s,@host_cpu@,$host_cpu,;t t
20398 s,@host_vendor@,$host_vendor,;t t
20399 s,@host_os@,$host_os,;t t
20400 s,@target@,$target,;t t
20401 s,@target_cpu@,$target_cpu,;t t
20402 s,@target_vendor@,$target_vendor,;t t
20403 s,@target_os@,$target_os,;t t
20404 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20405 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20406 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20407 s,@CYGPATH_W@,$CYGPATH_W,;t t
20408 s,@PACKAGE@,$PACKAGE,;t t
20409 s,@VERSION@,$VERSION,;t t
20410 s,@ACLOCAL@,$ACLOCAL,;t t
20411 s,@AUTOCONF@,$AUTOCONF,;t t
20412 s,@AUTOMAKE@,$AUTOMAKE,;t t
20413 s,@AUTOHEADER@,$AUTOHEADER,;t t
20414 s,@MAKEINFO@,$MAKEINFO,;t t
20415 s,@AMTAR@,$AMTAR,;t t
20416 s,@install_sh@,$install_sh,;t t
20417 s,@STRIP@,$STRIP,;t t
20418 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20419 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20420 s,@AWK@,$AWK,;t t
20421 s,@SET_MAKE@,$SET_MAKE,;t t
20422 s,@am__leading_dot@,$am__leading_dot,;t t
20423 s,@MODV_FLAGS@,$MODV_FLAGS,;t t
20424 s,@KERNEL_DIR@,$KERNEL_DIR,;t t
20425 s,@MODULES_DIR@,$MODULES_DIR,;t t
20426 s,@KERNEL_HDR@,$KERNEL_HDR,;t t
20427 s,@OS_DIR@,$OS_DIR,;t t
20428 s,@DEBUG_FLAGS@,$DEBUG_FLAGS,;t t
20429 s,@KDEBUG_FLAGS@,$KDEBUG_FLAGS,;t t
20430 s,@AUTOFS_INSTALL@,$AUTOFS_INSTALL,;t t
20431 s,@LUFS_SUID@,$LUFS_SUID,;t t
20432 s,@CC@,$CC,;t t
20433 s,@CFLAGS@,$CFLAGS,;t t
20434 s,@LDFLAGS@,$LDFLAGS,;t t
20435 s,@CPPFLAGS@,$CPPFLAGS,;t t
20436 s,@ac_ct_CC@,$ac_ct_CC,;t t
20437 s,@EXEEXT@,$EXEEXT,;t t
20438 s,@OBJEXT@,$OBJEXT,;t t
20439 s,@DEPDIR@,$DEPDIR,;t t
20440 s,@am__include@,$am__include,;t t
20441 s,@am__quote@,$am__quote,;t t
20442 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20443 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20444 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20445 s,@CCDEPMODE@,$CCDEPMODE,;t t
20446 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20447 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20448 s,@CPP@,$CPP,;t t
20449 s,@CXX@,$CXX,;t t
20450 s,@CXXFLAGS@,$CXXFLAGS,;t t
20451 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20452 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20453 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20454 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20455 s,@LN_S@,$LN_S,;t t
20456 s,@EGREP@,$EGREP,;t t
20457 s,@ECHO@,$ECHO,;t t
20458 s,@AR@,$AR,;t t
20459 s,@ac_ct_AR@,$ac_ct_AR,;t t
20460 s,@RANLIB@,$RANLIB,;t t
20461 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20462 s,@CXXCPP@,$CXXCPP,;t t
20463 s,@F77@,$F77,;t t
20464 s,@FFLAGS@,$FFLAGS,;t t
20465 s,@ac_ct_F77@,$ac_ct_F77,;t t
20466 s,@LIBTOOL@,$LIBTOOL,;t t
20467 s,@SSHPROG@,$SSHPROG,;t t
20468 s,@GCONF@,$GCONF,;t t
20469 s,@GVFSCONF@,$GVFSCONF,;t t
20470 s,@GVFS_LDADD@,$GVFS_LDADD,;t t
20471 s,@GVFS_CFLAGS@,$GVFS_CFLAGS,;t t
20472 s,@define_has_libchipcard@,$define_has_libchipcard,;t t
20473 s,@LIBCHIPCARD_LIB@,$LIBCHIPCARD_LIB,;t t
20474 s,@LIBCHIPCARD_INCLUDES@,$LIBCHIPCARD_INCLUDES,;t t
20475 s,@opt_fs@,$opt_fs,;t t
20476 s,@all_includes@,$all_includes,;t t
20477 s,@all_libraries@,$all_libraries,;t t
20478 s,@LIBOBJS@,$LIBOBJS,;t t
20479 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20480 CEOF
20481
20482 _ACEOF
20483
20484   cat >>$CONFIG_STATUS <<\_ACEOF
20485   # Split the substitutions into bite-sized pieces for seds with
20486   # small command number limits, like on Digital OSF/1 and HP-UX.
20487   ac_max_sed_lines=48
20488   ac_sed_frag=1 # Number of current file.
20489   ac_beg=1 # First line for current file.
20490   ac_end=$ac_max_sed_lines # Line after last line for current file.
20491   ac_more_lines=:
20492   ac_sed_cmds=
20493   while $ac_more_lines; do
20494     if test $ac_beg -gt 1; then
20495       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20496     else
20497       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20498     fi
20499     if test ! -s $tmp/subs.frag; then
20500       ac_more_lines=false
20501     else
20502       # The purpose of the label and of the branching condition is to
20503       # speed up the sed processing (if there are no `@' at all, there
20504       # is no need to browse any of the substitutions).
20505       # These are the two extra sed commands mentioned above.
20506       (echo ':t
20507   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20508       if test -z "$ac_sed_cmds"; then
20509         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20510       else
20511         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20512       fi
20513       ac_sed_frag=`expr $ac_sed_frag + 1`
20514       ac_beg=$ac_end
20515       ac_end=`expr $ac_end + $ac_max_sed_lines`
20516     fi
20517   done
20518   if test -z "$ac_sed_cmds"; then
20519     ac_sed_cmds=cat
20520   fi
20521 fi # test -n "$CONFIG_FILES"
20522
20523 _ACEOF
20524 cat >>$CONFIG_STATUS <<\_ACEOF
20525 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20526   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20527   case $ac_file in
20528   - | *:- | *:-:* ) # input from stdin
20529         cat >$tmp/stdin
20530         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20531         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20532   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20533         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20534   * )   ac_file_in=$ac_file.in ;;
20535   esac
20536
20537   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20538   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20539 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20540          X"$ac_file" : 'X\(//\)[^/]' \| \
20541          X"$ac_file" : 'X\(//\)$' \| \
20542          X"$ac_file" : 'X\(/\)' \| \
20543          .     : '\(.\)' 2>/dev/null ||
20544 echo X"$ac_file" |
20545     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20546           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20547           /^X\(\/\/\)$/{ s//\1/; q; }
20548           /^X\(\/\).*/{ s//\1/; q; }
20549           s/.*/./; q'`
20550   { if $as_mkdir_p; then
20551     mkdir -p "$ac_dir"
20552   else
20553     as_dir="$ac_dir"
20554     as_dirs=
20555     while test ! -d "$as_dir"; do
20556       as_dirs="$as_dir $as_dirs"
20557       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20558 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20559          X"$as_dir" : 'X\(//\)[^/]' \| \
20560          X"$as_dir" : 'X\(//\)$' \| \
20561          X"$as_dir" : 'X\(/\)' \| \
20562          .     : '\(.\)' 2>/dev/null ||
20563 echo X"$as_dir" |
20564     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20565           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20566           /^X\(\/\/\)$/{ s//\1/; q; }
20567           /^X\(\/\).*/{ s//\1/; q; }
20568           s/.*/./; q'`
20569     done
20570     test ! -n "$as_dirs" || mkdir $as_dirs
20571   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20572 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20573    { (exit 1); exit 1; }; }; }
20574
20575   ac_builddir=.
20576
20577 if test "$ac_dir" != .; then
20578   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20579   # A "../" for each directory in $ac_dir_suffix.
20580   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20581 else
20582   ac_dir_suffix= ac_top_builddir=
20583 fi
20584
20585 case $srcdir in
20586   .)  # No --srcdir option.  We are building in place.
20587     ac_srcdir=.
20588     if test -z "$ac_top_builddir"; then
20589        ac_top_srcdir=.
20590     else
20591        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20592     fi ;;
20593   [\\/]* | ?:[\\/]* )  # Absolute path.
20594     ac_srcdir=$srcdir$ac_dir_suffix;
20595     ac_top_srcdir=$srcdir ;;
20596   *) # Relative path.
20597     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20598     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20599 esac
20600 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20601 # absolute.
20602 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20603 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20604 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20605 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20606
20607
20608   case $INSTALL in
20609   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20610   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20611   esac
20612
20613   if test x"$ac_file" != x-; then
20614     { echo "$as_me:$LINENO: creating $ac_file" >&5
20615 echo "$as_me: creating $ac_file" >&6;}
20616     rm -f "$ac_file"
20617   fi
20618   # Let's still pretend it is `configure' which instantiates (i.e., don't
20619   # use $as_me), people would be surprised to read:
20620   #    /* config.h.  Generated by config.status.  */
20621   if test x"$ac_file" = x-; then
20622     configure_input=
20623   else
20624     configure_input="$ac_file.  "
20625   fi
20626   configure_input=$configure_input"Generated from `echo $ac_file_in |
20627                                      sed 's,.*/,,'` by configure."
20628
20629   # First look for the input files in the build tree, otherwise in the
20630   # src tree.
20631   ac_file_inputs=`IFS=:
20632     for f in $ac_file_in; do
20633       case $f in
20634       -) echo $tmp/stdin ;;
20635       [\\/$]*)
20636          # Absolute (can't be DOS-style, as IFS=:)
20637          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20638 echo "$as_me: error: cannot find input file: $f" >&2;}
20639    { (exit 1); exit 1; }; }
20640          echo $f;;
20641       *) # Relative
20642          if test -f "$f"; then
20643            # Build tree
20644            echo $f
20645          elif test -f "$srcdir/$f"; then
20646            # Source tree
20647            echo $srcdir/$f
20648          else
20649            # /dev/null tree
20650            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20651 echo "$as_me: error: cannot find input file: $f" >&2;}
20652    { (exit 1); exit 1; }; }
20653          fi;;
20654       esac
20655     done` || { (exit 1); exit 1; }
20656 _ACEOF
20657 cat >>$CONFIG_STATUS <<_ACEOF
20658   sed "$ac_vpsub
20659 $extrasub
20660 _ACEOF
20661 cat >>$CONFIG_STATUS <<\_ACEOF
20662 :t
20663 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20664 s,@configure_input@,$configure_input,;t t
20665 s,@srcdir@,$ac_srcdir,;t t
20666 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20667 s,@top_srcdir@,$ac_top_srcdir,;t t
20668 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20669 s,@builddir@,$ac_builddir,;t t
20670 s,@abs_builddir@,$ac_abs_builddir,;t t
20671 s,@top_builddir@,$ac_top_builddir,;t t
20672 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20673 s,@INSTALL@,$ac_INSTALL,;t t
20674 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20675   rm -f $tmp/stdin
20676   if test x"$ac_file" != x-; then
20677     mv $tmp/out $ac_file
20678   else
20679     cat $tmp/out
20680     rm -f $tmp/out
20681   fi
20682
20683 done
20684 _ACEOF
20685 cat >>$CONFIG_STATUS <<\_ACEOF
20686
20687 #
20688 # CONFIG_HEADER section.
20689 #
20690
20691 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20692 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20693 #
20694 # ac_d sets the value in "#define NAME VALUE" lines.
20695 ac_dA='s,^\([   ]*\)#\([        ]*define[       ][      ]*\)'
20696 ac_dB='[        ].*$,\1#\2'
20697 ac_dC=' '
20698 ac_dD=',;t'
20699 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20700 ac_uA='s,^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20701 ac_uB='$,\1#\2define\3'
20702 ac_uC=' '
20703 ac_uD=',;t'
20704
20705 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20706   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20707   case $ac_file in
20708   - | *:- | *:-:* ) # input from stdin
20709         cat >$tmp/stdin
20710         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20711         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20712   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20713         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20714   * )   ac_file_in=$ac_file.in ;;
20715   esac
20716
20717   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20718 echo "$as_me: creating $ac_file" >&6;}
20719
20720   # First look for the input files in the build tree, otherwise in the
20721   # src tree.
20722   ac_file_inputs=`IFS=:
20723     for f in $ac_file_in; do
20724       case $f in
20725       -) echo $tmp/stdin ;;
20726       [\\/$]*)
20727          # Absolute (can't be DOS-style, as IFS=:)
20728          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20729 echo "$as_me: error: cannot find input file: $f" >&2;}
20730    { (exit 1); exit 1; }; }
20731          echo $f;;
20732       *) # Relative
20733          if test -f "$f"; then
20734            # Build tree
20735            echo $f
20736          elif test -f "$srcdir/$f"; then
20737            # Source tree
20738            echo $srcdir/$f
20739          else
20740            # /dev/null tree
20741            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20742 echo "$as_me: error: cannot find input file: $f" >&2;}
20743    { (exit 1); exit 1; }; }
20744          fi;;
20745       esac
20746     done` || { (exit 1); exit 1; }
20747   # Remove the trailing spaces.
20748   sed 's/[      ]*$//' $ac_file_inputs >$tmp/in
20749
20750 _ACEOF
20751
20752 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20753 # `conftest.undefs', that substitutes the proper values into
20754 # config.h.in to produce config.h.  The first handles `#define'
20755 # templates, and the second `#undef' templates.
20756 # And first: Protect against being on the right side of a sed subst in
20757 # config.status.  Protect against being in an unquoted here document
20758 # in config.status.
20759 rm -f conftest.defines conftest.undefs
20760 # Using a here document instead of a string reduces the quoting nightmare.
20761 # Putting comments in sed scripts is not portable.
20762 #
20763 # `end' is used to avoid that the second main sed command (meant for
20764 # 0-ary CPP macros) applies to n-ary macro definitions.
20765 # See the Autoconf documentation for `clear'.
20766 cat >confdef2sed.sed <<\_ACEOF
20767 s/[\\&,]/\\&/g
20768 s,[\\$`],\\&,g
20769 t clear
20770 : clear
20771 s,^[    ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20772 t end
20773 s,^[    ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20774 : end
20775 _ACEOF
20776 # If some macros were called several times there might be several times
20777 # the same #defines, which is useless.  Nevertheless, we may not want to
20778 # sort them, since we want the *last* AC-DEFINE to be honored.
20779 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20780 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20781 rm -f confdef2sed.sed
20782
20783 # This sed command replaces #undef with comments.  This is necessary, for
20784 # example, in the case of _POSIX_SOURCE, which is predefined and required
20785 # on some systems where configure will not decide to define it.
20786 cat >>conftest.undefs <<\_ACEOF
20787 s,^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20788 _ACEOF
20789
20790 # Break up conftest.defines because some shells have a limit on the size
20791 # of here documents, and old seds have small limits too (100 cmds).
20792 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20793 echo '  if grep "^[     ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20794 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20795 echo '  :' >>$CONFIG_STATUS
20796 rm -f conftest.tail
20797 while grep . conftest.defines >/dev/null
20798 do
20799   # Write a limited-size here document to $tmp/defines.sed.
20800   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20801   # Speed up: don't consider the non `#define' lines.
20802   echo '/^[     ]*#[    ]*define/!b' >>$CONFIG_STATUS
20803   # Work around the forget-to-reset-the-flag bug.
20804   echo 't clr' >>$CONFIG_STATUS
20805   echo ': clr' >>$CONFIG_STATUS
20806   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20807   echo 'CEOF
20808   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20809   rm -f $tmp/in
20810   mv $tmp/out $tmp/in
20811 ' >>$CONFIG_STATUS
20812   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20813   rm -f conftest.defines
20814   mv conftest.tail conftest.defines
20815 done
20816 rm -f conftest.defines
20817 echo '  fi # grep' >>$CONFIG_STATUS
20818 echo >>$CONFIG_STATUS
20819
20820 # Break up conftest.undefs because some shells have a limit on the size
20821 # of here documents, and old seds have small limits too (100 cmds).
20822 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20823 rm -f conftest.tail
20824 while grep . conftest.undefs >/dev/null
20825 do
20826   # Write a limited-size here document to $tmp/undefs.sed.
20827   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20828   # Speed up: don't consider the non `#undef'
20829   echo '/^[     ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20830   # Work around the forget-to-reset-the-flag bug.
20831   echo 't clr' >>$CONFIG_STATUS
20832   echo ': clr' >>$CONFIG_STATUS
20833   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20834   echo 'CEOF
20835   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20836   rm -f $tmp/in
20837   mv $tmp/out $tmp/in
20838 ' >>$CONFIG_STATUS
20839   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20840   rm -f conftest.undefs
20841   mv conftest.tail conftest.undefs
20842 done
20843 rm -f conftest.undefs
20844
20845 cat >>$CONFIG_STATUS <<\_ACEOF
20846   # Let's still pretend it is `configure' which instantiates (i.e., don't
20847   # use $as_me), people would be surprised to read:
20848   #    /* config.h.  Generated by config.status.  */
20849   if test x"$ac_file" = x-; then
20850     echo "/* Generated by configure.  */" >$tmp/config.h
20851   else
20852     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20853   fi
20854   cat $tmp/in >>$tmp/config.h
20855   rm -f $tmp/in
20856   if test x"$ac_file" != x-; then
20857     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20858       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20859 echo "$as_me: $ac_file is unchanged" >&6;}
20860     else
20861       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20862 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20863          X"$ac_file" : 'X\(//\)[^/]' \| \
20864          X"$ac_file" : 'X\(//\)$' \| \
20865          X"$ac_file" : 'X\(/\)' \| \
20866          .     : '\(.\)' 2>/dev/null ||
20867 echo X"$ac_file" |
20868     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20869           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20870           /^X\(\/\/\)$/{ s//\1/; q; }
20871           /^X\(\/\).*/{ s//\1/; q; }
20872           s/.*/./; q'`
20873       { if $as_mkdir_p; then
20874     mkdir -p "$ac_dir"
20875   else
20876     as_dir="$ac_dir"
20877     as_dirs=
20878     while test ! -d "$as_dir"; do
20879       as_dirs="$as_dir $as_dirs"
20880       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20881 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20882          X"$as_dir" : 'X\(//\)[^/]' \| \
20883          X"$as_dir" : 'X\(//\)$' \| \
20884          X"$as_dir" : 'X\(/\)' \| \
20885          .     : '\(.\)' 2>/dev/null ||
20886 echo X"$as_dir" |
20887     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20888           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20889           /^X\(\/\/\)$/{ s//\1/; q; }
20890           /^X\(\/\).*/{ s//\1/; q; }
20891           s/.*/./; q'`
20892     done
20893     test ! -n "$as_dirs" || mkdir $as_dirs
20894   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20895 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20896    { (exit 1); exit 1; }; }; }
20897
20898       rm -f $ac_file
20899       mv $tmp/config.h $ac_file
20900     fi
20901   else
20902     cat $tmp/config.h
20903     rm -f $tmp/config.h
20904   fi
20905 # Compute $ac_file's index in $config_headers.
20906 _am_stamp_count=1
20907 for _am_header in $config_headers :; do
20908   case $_am_header in
20909     $ac_file | $ac_file:* )
20910       break ;;
20911     * )
20912       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20913   esac
20914 done
20915 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20916 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20917          X$ac_file : 'X\(//\)[^/]' \| \
20918          X$ac_file : 'X\(//\)$' \| \
20919          X$ac_file : 'X\(/\)' \| \
20920          .     : '\(.\)' 2>/dev/null ||
20921 echo X$ac_file |
20922     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20923           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20924           /^X\(\/\/\)$/{ s//\1/; q; }
20925           /^X\(\/\).*/{ s//\1/; q; }
20926           s/.*/./; q'`/stamp-h$_am_stamp_count
20927 done
20928 _ACEOF
20929 cat >>$CONFIG_STATUS <<\_ACEOF
20930
20931 #
20932 # CONFIG_COMMANDS section.
20933 #
20934 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20935   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20936   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20937   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20938 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20939          X"$ac_dest" : 'X\(//\)[^/]' \| \
20940          X"$ac_dest" : 'X\(//\)$' \| \
20941          X"$ac_dest" : 'X\(/\)' \| \
20942          .     : '\(.\)' 2>/dev/null ||
20943 echo X"$ac_dest" |
20944     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20945           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20946           /^X\(\/\/\)$/{ s//\1/; q; }
20947           /^X\(\/\).*/{ s//\1/; q; }
20948           s/.*/./; q'`
20949   ac_builddir=.
20950
20951 if test "$ac_dir" != .; then
20952   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20953   # A "../" for each directory in $ac_dir_suffix.
20954   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20955 else
20956   ac_dir_suffix= ac_top_builddir=
20957 fi
20958
20959 case $srcdir in
20960   .)  # No --srcdir option.  We are building in place.
20961     ac_srcdir=.
20962     if test -z "$ac_top_builddir"; then
20963        ac_top_srcdir=.
20964     else
20965        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20966     fi ;;
20967   [\\/]* | ?:[\\/]* )  # Absolute path.
20968     ac_srcdir=$srcdir$ac_dir_suffix;
20969     ac_top_srcdir=$srcdir ;;
20970   *) # Relative path.
20971     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20972     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20973 esac
20974 # Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
20975 # absolute.
20976 ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
20977 ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
20978 ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
20979 ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
20980
20981
20982   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20983 echo "$as_me: executing $ac_dest commands" >&6;}
20984   case $ac_dest in
20985     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20986   # Strip MF so we end up with the name of the file.
20987   mf=`echo "$mf" | sed -e 's/:.*$//'`
20988   # Check whether this is an Automake generated Makefile or not.
20989   # We used to match only the files named `Makefile.in', but
20990   # some people rename them; so instead we look at the file content.
20991   # Grep'ing the first line is not enough: some people post-process
20992   # each Makefile.in and add a new line on top of each file to say so.
20993   # So let's grep whole file.
20994   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20995     dirpart=`(dirname "$mf") 2>/dev/null ||
20996 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20997          X"$mf" : 'X\(//\)[^/]' \| \
20998          X"$mf" : 'X\(//\)$' \| \
20999          X"$mf" : 'X\(/\)' \| \
21000          .     : '\(.\)' 2>/dev/null ||
21001 echo X"$mf" |
21002     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21003           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21004           /^X\(\/\/\)$/{ s//\1/; q; }
21005           /^X\(\/\).*/{ s//\1/; q; }
21006           s/.*/./; q'`
21007   else
21008     continue
21009   fi
21010   grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue
21011   # Extract the definition of DEP_FILES from the Makefile without
21012   # running `make'.
21013   DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"`
21014   test -z "$DEPDIR" && continue
21015   # When using ansi2knr, U may be empty or an underscore; expand it
21016   U=`sed -n -e '/^U = / s///p' < "$mf"`
21017   test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR"
21018   # We invoke sed twice because it is the simplest approach to
21019   # changing $(DEPDIR) to its actual value in the expansion.
21020   for file in `sed -n -e '
21021     /^DEP_FILES = .*\\\\$/ {
21022       s/^DEP_FILES = //
21023       :loop
21024         s/\\\\$//
21025         p
21026         n
21027         /\\\\$/ b loop
21028       p
21029     }
21030     /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \
21031        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21032     # Make sure the directory exists.
21033     test -f "$dirpart/$file" && continue
21034     fdir=`(dirname "$file") 2>/dev/null ||
21035 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21036          X"$file" : 'X\(//\)[^/]' \| \
21037          X"$file" : 'X\(//\)$' \| \
21038          X"$file" : 'X\(/\)' \| \
21039          .     : '\(.\)' 2>/dev/null ||
21040 echo X"$file" |
21041     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21042           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21043           /^X\(\/\/\)$/{ s//\1/; q; }
21044           /^X\(\/\).*/{ s//\1/; q; }
21045           s/.*/./; q'`
21046     { if $as_mkdir_p; then
21047     mkdir -p $dirpart/$fdir
21048   else
21049     as_dir=$dirpart/$fdir
21050     as_dirs=
21051     while test ! -d "$as_dir"; do
21052       as_dirs="$as_dir $as_dirs"
21053       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21054 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21055          X"$as_dir" : 'X\(//\)[^/]' \| \
21056          X"$as_dir" : 'X\(//\)$' \| \
21057          X"$as_dir" : 'X\(/\)' \| \
21058          .     : '\(.\)' 2>/dev/null ||
21059 echo X"$as_dir" |
21060     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21061           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21062           /^X\(\/\/\)$/{ s//\1/; q; }
21063           /^X\(\/\).*/{ s//\1/; q; }
21064           s/.*/./; q'`
21065     done
21066     test ! -n "$as_dirs" || mkdir $as_dirs
21067   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21068 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21069    { (exit 1); exit 1; }; }; }
21070
21071     # echo "creating $dirpart/$file"
21072     echo '# dummy' > "$dirpart/$file"
21073   done
21074 done
21075  ;;
21076   esac
21077 done
21078 _ACEOF
21079
21080 cat >>$CONFIG_STATUS <<\_ACEOF
21081
21082 { (exit 0); exit 0; }
21083 _ACEOF
21084 chmod +x $CONFIG_STATUS
21085 ac_clean_files=$ac_clean_files_save
21086
21087
21088 # configure is writing to config.log, and then calls config.status.
21089 # config.status does its own redirection, appending to config.log.
21090 # Unfortunately, on DOS this fails, as config.log is still kept open
21091 # by configure, so config.status won't be able to write to it; its
21092 # output is simply discarded.  So we exec the FD to /dev/null,
21093 # effectively closing config.log, so it can be properly (re)opened and
21094 # appended to by config.status.  When coming back to configure, we
21095 # need to make the FD available again.
21096 if test "$no_create" != yes; then
21097   ac_cs_success=:
21098   ac_config_status_args=
21099   test "$silent" = yes &&
21100     ac_config_status_args="$ac_config_status_args --quiet"
21101   exec 5>/dev/null
21102   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21103   exec 5>>config.log
21104   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21105   # would make configure fail if this is the last instruction.
21106   $ac_cs_success || { (exit 1); exit 1; }
21107 fi
21108
21109
21110 echo "###############################################################################"
21111 echo " supported filesystems: $opt_fs"
21112 echo -n " suid files: "
21113 if test $LUFS_SUID; then echo "lufsmnt & lufsumount."; else echo "none."; fi
21114 echo "###############################################################################"