Removed execute bit from files that should not have it.
[gst-davinci/bts.git] / ti_plugins / davinci / autom4te.cache / output.2
blob7a1c7cc0948be9e4b777b54cd1d430b30a170c01
1 @%:@! /bin/sh
2 @%:@ Guess values for system-dependent variables and create Makefiles.
3 @%:@ Generated by GNU Autoconf 2.59.
4 @%:@ 
5 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
6 @%:@ This configure script is free software; the Free Software Foundation
7 @%:@ gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
22 DUALCASE=1; export DUALCASE # for MKS sh
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
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
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
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
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
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'`
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
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
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
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
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
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
154   esac
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; }; }
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
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
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
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'
216 rm -f conf$$ conf$$.exe conf$$.file
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
225 as_executable_p="test -f"
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
238 IFS="   $as_nl"
240 # CDPATH.
241 $as_unset CDPATH
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
248 case X$ECHO in
249 X*--fallback-echo)
250   # Remove one level of quotation (which was required for Make).
251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252   ;;
253 esac
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257   # Discard the --no-reexec flag, and continue.
258   shift
259 elif test "X$1" = X--fallback-echo; then
260   # Avoid inline document here, it may be left over
261   :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263   # Yippee, $echo works!
264   :
265 else
266   # Restart under the correct shell.
267   exec $SHELL "$0" --no-reexec ${1+"$@"}
270 if test "X$1" = X--fallback-echo; then
271   # used as fallback echo
272   shift
273   cat <<EOF
276   exit 0
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
289        echo_test_string="`eval $cmd`" &&
290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291     then
292       break
293     fi
294   done
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299    test "X$echo_testing_string" = "X$echo_test_string"; then
300   :
301 else
302   # The Solaris, AIX, and Digital Unix default echo programs unquote
303   # backslashes.  This makes it impossible to quote backslashes using
304   #   echo "$something" | sed 's/\\/\\\\/g'
305   #
306   # So, first we look for a working echo in the user's PATH.
308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309   for dir in $PATH /usr/ucb; do
310     IFS="$lt_save_ifs"
311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314        test "X$echo_testing_string" = "X$echo_test_string"; then
315       echo="$dir/echo"
316       break
317     fi
318   done
319   IFS="$lt_save_ifs"
321   if test "X$echo" = Xecho; then
322     # We didn't find a better echo, so look for alternatives.
323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325        test "X$echo_testing_string" = "X$echo_test_string"; then
326       # This shell has a builtin print -r that does the trick.
327       echo='print -r'
328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329          test "X$CONFIG_SHELL" != X/bin/ksh; then
330       # If we have ksh, try running configure again with it.
331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332       export ORIGINAL_CONFIG_SHELL
333       CONFIG_SHELL=/bin/ksh
334       export CONFIG_SHELL
335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336     else
337       # Try using printf.
338       echo='printf %s\n'
339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340          echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341          test "X$echo_testing_string" = "X$echo_test_string"; then
342         # Cool, printf works
343         :
344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345            test "X$echo_testing_string" = 'X\t' &&
346            echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347            test "X$echo_testing_string" = "X$echo_test_string"; then
348         CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349         export CONFIG_SHELL
350         SHELL="$CONFIG_SHELL"
351         export SHELL
352         echo="$CONFIG_SHELL $0 --fallback-echo"
353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354            test "X$echo_testing_string" = 'X\t' &&
355            echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356            test "X$echo_testing_string" = "X$echo_test_string"; then
357         echo="$CONFIG_SHELL $0 --fallback-echo"
358       else
359         # maybe with a smaller string...
360         prev=:
362         for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363           if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364           then
365             break
366           fi
367           prev="$cmd"
368         done
370         if test "$prev" != 'sed 50q "$0"'; then
371           echo_test_string=`eval $prev`
372           export echo_test_string
373           exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374         else
375           # Oops.  We lost completely, so just stick with echo.
376           echo=echo
377         fi
378       fi
379     fi
380   fi
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
394 tagnames=${tagnames+${tagnames},}CXX
396 tagnames=${tagnames+${tagnames},}F77
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
403 exec 6>&1
406 # Initializations.
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete.  It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
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"
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 GST_PLUGIN_VERSION GST_PLUGIN_VERSION_RELEASE GST_PLUGIN_VERSION_MAJOR GST_PLUGIN_VERSION_MINOR GST_PLUGIN_VERSION_MICRO GST_PLUGIN_VERSION_NANO PACKAGE VERSION MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar ACLOCAL_AMFLAGS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL HAVE_PKGCONFIG PKG_CONFIG GST_CFLAGS GST_LIBS GST_BASE_CFLAGS GST_BASE_LIBS GST_LIB_LDFLAGS GST_ALL_LDFLAGS GST_LT_LDFLAGS GST_MAJORMINOR plugindir GST_PLUGIN_LDFLAGS LIB@&t@OBJS LTLIBOBJS'
466 ac_subst_files=''
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
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'
506 ac_prev=
507 for ac_option
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
516   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518   # Accept the important Cygnus configure options, so we can diagnose typos.
520   case $ac_option in
522   -bindir | --bindir | --bindi | --bind | --bin | --bi)
523     ac_prev=bindir ;;
524   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
525     bindir=$ac_optarg ;;
527   -build | --build | --buil | --bui | --bu)
528     ac_prev=build_alias ;;
529   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
530     build_alias=$ac_optarg ;;
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 ;;
539   --config-cache | -C)
540     cache_file=config.cache ;;
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 ;;
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" ;;
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'" ;;
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 ;;
579   -gas | --gas | --ga | --g)
580     # Obsolete; use --with-gas.
581     with_gas=yes ;;
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 ;;
590   -host | --host | --hos | --ho)
591     ac_prev=host_alias ;;
592   -host=* | --host=* | --hos=* | --ho=*)
593     host_alias=$ac_optarg ;;
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 ;;
602   -infodir | --infodir | --infodi | --infod | --info | --inf)
603     ac_prev=infodir ;;
604   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
605     infodir=$ac_optarg ;;
607   -libdir | --libdir | --libdi | --libd)
608     ac_prev=libdir ;;
609   -libdir=* | --libdir=* | --libdi=* | --libd=*)
610     libdir=$ac_optarg ;;
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 ;;
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 ;;
628   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
629     ac_prev=mandir ;;
630   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
631     mandir=$ac_optarg ;;
633   -nfp | --nfp | --nf)
634     # Obsolete; use --without-fp.
635     with_fp=no ;;
637   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
638   | --no-cr | --no-c | -n)
639     no_create=yes ;;
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 ;;
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 ;;
654   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
655     ac_prev=prefix ;;
656   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
657     prefix=$ac_optarg ;;
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 ;;
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 ;;
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 ;;
690   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
691   | -silent | --silent | --silen | --sile | --sil)
692     silent=yes ;;
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 ;;
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 ;;
711   -site | --site | --sit)
712     ac_prev=site ;;
713   -site=* | --site=* | --sit=*)
714     site=$ac_optarg ;;
716   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
717     ac_prev=srcdir ;;
718   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
719     srcdir=$ac_optarg ;;
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 ;;
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 ;;
733   -v | -verbose | --verbose | --verbos | --verbo | --verb)
734     verbose=yes ;;
736   -version | --version | --versio | --versi | --vers | -V)
737     ac_init_version=: ;;
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'" ;;
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" ;;
761   --x)
762     # Obsolete; use --with-x.
763     with_x=yes ;;
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 ;;
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 ;;
779   -*) { echo "$as_me: error: unrecognized option: $ac_option
780 Try \`$0 --help' for more information." >&2
781    { (exit 1); exit 1; }; }
782     ;;
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 ;;
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     ;;
802   esac
803 done
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; }; }
811 # Be sure to have absolute paths.
812 for ac_var in exec_prefix prefix
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
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
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
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
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
852 ac_tool_prefix=
853 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855 test "$silent" = yes && exec 6>/dev/null
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
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
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
948 # Report the --help message.
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.
956 Usage: $0 [OPTION]... [VAR=VALUE]...
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.
961 Defaults for the options are specified in brackets.
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 \`..']
974 _ACEOF
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]
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'.
988 For better control, use the options below.
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
1005   cat <<\_ACEOF
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
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 _ACEOF
1018 if test -n "$ac_init_help"; then
1020   cat <<\_ACEOF
1022 Optional Features:
1023   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1024   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1025   --enable-maintainer-mode  enable make rules and dependencies not useful
1026                           (and sometimes confusing) to the casual installer
1027   --disable-dependency-tracking  speeds up one-time build
1028   --enable-dependency-tracking   do not reject slow dependency extractors
1029   --enable-shared@<:@=PKGS@:>@ 
1030                           build shared libraries @<:@default=yes@:>@
1031   --enable-static@<:@=PKGS@:>@ 
1032                           build static libraries @<:@default=yes@:>@
1033   --enable-fast-install@<:@=PKGS@:>@ 
1034                           optimize for fast installation @<:@default=yes@:>@
1035   --disable-libtool-lock  avoid locking (might break parallel builds)
1037 Optional Packages:
1038   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1039   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1040   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
1041   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
1042                           both@:>@
1043   --with-tags@<:@=TAGS@:>@ 
1044                           include additional configurations @<:@automatic@:>@
1046 Some influential environment variables:
1047   CC          C compiler command
1048   CFLAGS      C compiler flags
1049   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1050               nonstandard directory <lib dir>
1051   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1052               headers in a nonstandard directory <include dir>
1053   CPP         C preprocessor
1054   CXX         C++ compiler command
1055   CXXFLAGS    C++ compiler flags
1056   CXXCPP      C++ preprocessor
1057   F77         Fortran 77 compiler command
1058   FFLAGS      Fortran 77 compiler flags
1060 Use these variables to override the choices made by `configure' or to help
1061 it to find libraries and programs with nonstandard names/locations.
1063 _ACEOF
1066 if test "$ac_init_help" = "recursive"; then
1067   # If there are subdirs, report their specific --help.
1068   ac_popdir=`pwd`
1069   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1070     test -d $ac_dir || continue
1071     ac_builddir=.
1073 if test "$ac_dir" != .; then
1074   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1075   # A "../" for each directory in $ac_dir_suffix.
1076   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1077 else
1078   ac_dir_suffix= ac_top_builddir=
1081 case $srcdir in
1082   .)  # No --srcdir option.  We are building in place.
1083     ac_srcdir=.
1084     if test -z "$ac_top_builddir"; then
1085        ac_top_srcdir=.
1086     else
1087        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1088     fi ;;
1089   [\\/]* | ?:[\\/]* )  # Absolute path.
1090     ac_srcdir=$srcdir$ac_dir_suffix;
1091     ac_top_srcdir=$srcdir ;;
1092   *) # Relative path.
1093     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1094     ac_top_srcdir=$ac_top_builddir$srcdir ;;
1095 esac
1097 # Do not use `cd foo && pwd` to compute absolute paths, because
1098 # the directories may not exist.
1099 case `pwd` in
1100 .) ac_abs_builddir="$ac_dir";;
1102   case "$ac_dir" in
1103   .) ac_abs_builddir=`pwd`;;
1104   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1105   *) ac_abs_builddir=`pwd`/"$ac_dir";;
1106   esac;;
1107 esac
1108 case $ac_abs_builddir in
1109 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1111   case ${ac_top_builddir}. in
1112   .) ac_abs_top_builddir=$ac_abs_builddir;;
1113   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1114   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1115   esac;;
1116 esac
1117 case $ac_abs_builddir in
1118 .) ac_abs_srcdir=$ac_srcdir;;
1120   case $ac_srcdir in
1121   .) ac_abs_srcdir=$ac_abs_builddir;;
1122   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1123   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1124   esac;;
1125 esac
1126 case $ac_abs_builddir in
1127 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1129   case $ac_top_srcdir in
1130   .) ac_abs_top_srcdir=$ac_abs_builddir;;
1131   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1132   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1133   esac;;
1134 esac
1136     cd $ac_dir
1137     # Check for guested configure; otherwise get Cygnus style configure.
1138     if test -f $ac_srcdir/configure.gnu; then
1139       echo
1140       $SHELL $ac_srcdir/configure.gnu  --help=recursive
1141     elif test -f $ac_srcdir/configure; then
1142       echo
1143       $SHELL $ac_srcdir/configure  --help=recursive
1144     elif test -f $ac_srcdir/configure.ac ||
1145            test -f $ac_srcdir/configure.in; then
1146       echo
1147       $ac_configure --help
1148     else
1149       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1150     fi
1151     cd $ac_popdir
1152   done
1155 test -n "$ac_init_help" && exit 0
1156 if $ac_init_version; then
1157   cat <<\_ACEOF
1159 Copyright (C) 2003 Free Software Foundation, Inc.
1160 This configure script is free software; the Free Software Foundation
1161 gives unlimited permission to copy, distribute and modify it.
1162 _ACEOF
1163   exit 0
1165 exec 5>config.log
1166 cat >&5 <<_ACEOF
1167 This file contains any messages produced by compilers while
1168 running configure, to aid debugging if configure makes a mistake.
1170 It was created by $as_me, which was
1171 generated by GNU Autoconf 2.59.  Invocation command line was
1173   $ $0 $@
1175 _ACEOF
1177 cat <<_ASUNAME
1178 @%:@@%:@ --------- @%:@@%:@
1179 @%:@@%:@ Platform. @%:@@%:@
1180 @%:@@%:@ --------- @%:@@%:@
1182 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1183 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1184 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1185 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1186 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1188 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1189 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1191 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1192 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1193 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1194 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1195 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1196 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1197 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1199 _ASUNAME
1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1202 for as_dir in $PATH
1204   IFS=$as_save_IFS
1205   test -z "$as_dir" && as_dir=.
1206   echo "PATH: $as_dir"
1207 done
1209 } >&5
1211 cat >&5 <<_ACEOF
1214 @%:@@%:@ ----------- @%:@@%:@
1215 @%:@@%:@ Core tests. @%:@@%:@
1216 @%:@@%:@ ----------- @%:@@%:@
1218 _ACEOF
1221 # Keep a trace of the command line.
1222 # Strip out --no-create and --no-recursion so they do not pile up.
1223 # Strip out --silent because we don't want to record it for future runs.
1224 # Also quote any args containing shell meta-characters.
1225 # Make two passes to allow for proper duplicate-argument suppression.
1226 ac_configure_args=
1227 ac_configure_args0=
1228 ac_configure_args1=
1229 ac_sep=
1230 ac_must_keep_next=false
1231 for ac_pass in 1 2
1233   for ac_arg
1234   do
1235     case $ac_arg in
1236     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1237     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1238     | -silent | --silent | --silen | --sile | --sil)
1239       continue ;;
1240     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1241       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1242     esac
1243     case $ac_pass in
1244     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1245     2)
1246       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1247       if test $ac_must_keep_next = true; then
1248         ac_must_keep_next=false # Got value, back to normal.
1249       else
1250         case $ac_arg in
1251           *=* | --config-cache | -C | -disable-* | --disable-* \
1252           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1253           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1254           | -with-* | --with-* | -without-* | --without-* | --x)
1255             case "$ac_configure_args0 " in
1256               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1257             esac
1258             ;;
1259           -* ) ac_must_keep_next=true ;;
1260         esac
1261       fi
1262       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1263       # Get rid of the leading space.
1264       ac_sep=" "
1265       ;;
1266     esac
1267   done
1268 done
1269 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1270 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1272 # When interrupted or exit'd, cleanup temporary files, and complete
1273 # config.log.  We remove comments because anyway the quotes in there
1274 # would cause problems or look ugly.
1275 # WARNING: Be sure not to use single quotes in there, as some shells,
1276 # such as our DU 5.0 friend, will then `close' the trap.
1277 trap 'exit_status=$?
1278   # Save into config.log some information that might help in debugging.
1279   {
1280     echo
1282     cat <<\_ASBOX
1283 @%:@@%:@ ---------------- @%:@@%:@
1284 @%:@@%:@ Cache variables. @%:@@%:@
1285 @%:@@%:@ ---------------- @%:@@%:@
1286 _ASBOX
1287     echo
1288     # The following way of writing the cache mishandles newlines in values,
1290   (set) 2>&1 |
1291     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1292     *ac_space=\ *)
1293       sed -n \
1294         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1295           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1296       ;;
1297     *)
1298       sed -n \
1299         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1300       ;;
1301     esac;
1303     echo
1305     cat <<\_ASBOX
1306 @%:@@%:@ ----------------- @%:@@%:@
1307 @%:@@%:@ Output variables. @%:@@%:@
1308 @%:@@%:@ ----------------- @%:@@%:@
1309 _ASBOX
1310     echo
1311     for ac_var in $ac_subst_vars
1312     do
1313       eval ac_val=$`echo $ac_var`
1314       echo "$ac_var='"'"'$ac_val'"'"'"
1315     done | sort
1316     echo
1318     if test -n "$ac_subst_files"; then
1319       cat <<\_ASBOX
1320 @%:@@%:@ ------------- @%:@@%:@
1321 @%:@@%:@ Output files. @%:@@%:@
1322 @%:@@%:@ ------------- @%:@@%:@
1323 _ASBOX
1324       echo
1325       for ac_var in $ac_subst_files
1326       do
1327         eval ac_val=$`echo $ac_var`
1328         echo "$ac_var='"'"'$ac_val'"'"'"
1329       done | sort
1330       echo
1331     fi
1333     if test -s confdefs.h; then
1334       cat <<\_ASBOX
1335 @%:@@%:@ ----------- @%:@@%:@
1336 @%:@@%:@ confdefs.h. @%:@@%:@
1337 @%:@@%:@ ----------- @%:@@%:@
1338 _ASBOX
1339       echo
1340       sed "/^$/d" confdefs.h | sort
1341       echo
1342     fi
1343     test "$ac_signal" != 0 &&
1344       echo "$as_me: caught signal $ac_signal"
1345     echo "$as_me: exit $exit_status"
1346   } >&5
1347   rm -f core *.core &&
1348   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1349     exit $exit_status
1350      ' 0
1351 for ac_signal in 1 2 13 15; do
1352   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1353 done
1354 ac_signal=0
1356 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1357 rm -rf conftest* confdefs.h
1358 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1359 echo >confdefs.h
1361 # Predefined preprocessor variables.
1363 cat >>confdefs.h <<_ACEOF
1364 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
1365 _ACEOF
1368 cat >>confdefs.h <<_ACEOF
1369 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1370 _ACEOF
1373 cat >>confdefs.h <<_ACEOF
1374 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
1375 _ACEOF
1378 cat >>confdefs.h <<_ACEOF
1379 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
1380 _ACEOF
1383 cat >>confdefs.h <<_ACEOF
1384 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1385 _ACEOF
1388 # Let the site file select an alternate cache file if it wants to.
1389 # Prefer explicitly selected file to automatically selected ones.
1390 if test -z "$CONFIG_SITE"; then
1391   if test "x$prefix" != xNONE; then
1392     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1393   else
1394     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1395   fi
1397 for ac_site_file in $CONFIG_SITE; do
1398   if test -r "$ac_site_file"; then
1399     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1400 echo "$as_me: loading site script $ac_site_file" >&6;}
1401     sed 's/^/| /' "$ac_site_file" >&5
1402     . "$ac_site_file"
1403   fi
1404 done
1406 if test -r "$cache_file"; then
1407   # Some versions of bash will fail to source /dev/null (special
1408   # files actually), so we avoid doing that.
1409   if test -f "$cache_file"; then
1410     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1411 echo "$as_me: loading cache $cache_file" >&6;}
1412     case $cache_file in
1413       [\\/]* | ?:[\\/]* ) . $cache_file;;
1414       *)                      . ./$cache_file;;
1415     esac
1416   fi
1417 else
1418   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1419 echo "$as_me: creating cache $cache_file" >&6;}
1420   >$cache_file
1423 # Check that the precious variables saved in the cache have kept the same
1424 # value.
1425 ac_cache_corrupted=false
1426 for ac_var in `(set) 2>&1 |
1427                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1428   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1429   eval ac_new_set=\$ac_env_${ac_var}_set
1430   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1431   eval ac_new_val="\$ac_env_${ac_var}_value"
1432   case $ac_old_set,$ac_new_set in
1433     set,)
1434       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1435 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1436       ac_cache_corrupted=: ;;
1437     ,set)
1438       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1439 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1440       ac_cache_corrupted=: ;;
1441     ,);;
1442     *)
1443       if test "x$ac_old_val" != "x$ac_new_val"; then
1444         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1445 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1446         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1447 echo "$as_me:   former value:  $ac_old_val" >&2;}
1448         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1449 echo "$as_me:   current value: $ac_new_val" >&2;}
1450         ac_cache_corrupted=:
1451       fi;;
1452   esac
1453   # Pass precious variables to config.status.
1454   if test "$ac_new_set" = set; then
1455     case $ac_new_val in
1456     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1457       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1458     *) ac_arg=$ac_var=$ac_new_val ;;
1459     esac
1460     case " $ac_configure_args " in
1461       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1462       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1463     esac
1464   fi
1465 done
1466 if $ac_cache_corrupted; then
1467   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1468 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1469   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1470 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1471    { (exit 1); exit 1; }; }
1474 ac_ext=c
1475 ac_cpp='$CPP $CPPFLAGS'
1476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1500   PACKAGE=gst-fbvideosink
1501   GST_PLUGIN_VERSION_MAJOR=0
1502   GST_PLUGIN_VERSION_MINOR=9
1503   GST_PLUGIN_VERSION_MICRO=7
1504   NANO=0
1505   GST_PLUGIN_VERSION_NANO=$NANO
1506   if test "x$NANO" = "x" || test "x$NANO" = "x0";
1507   then
1508       { echo "$as_me:$LINENO: configuring gst-fbvideosink for release" >&5
1509 echo "$as_me: configuring gst-fbvideosink for release" >&6;}
1510       VERSION=0.9.7
1511       GST_PLUGIN_VERSION_RELEASE=1
1512             GST_PLUGIN_TRUNK="no"
1513   else
1514       { echo "$as_me:$LINENO: configuring gst-fbvideosink for development with nano $NANO" >&5
1515 echo "$as_me: configuring gst-fbvideosink for development with nano $NANO" >&6;}
1516       VERSION=0.9.7.$NANO
1517       GST_PLUGIN_VERSION_RELEASE=`date +%Y%m%d_%H%M%S`
1518             GST_PLUGIN_TRUNK="yes"
1519   fi
1521   GST_PLUGIN_VERSION=$VERSION
1522   
1523 cat >>confdefs.h <<_ACEOF
1524 @%:@define GST_PLUGIN_VERSION "$GST_PLUGIN_VERSION"
1525 _ACEOF
1527   
1528   
1529 cat >>confdefs.h <<_ACEOF
1530 @%:@define GST_PLUGIN_VERSION_RELEASE "$GST_PLUGIN_VERSION_RELEASE"
1531 _ACEOF
1533   
1535   
1536   
1537   
1538   
1539   
1540 cat >>confdefs.h <<_ACEOF
1541 @%:@define PACKAGE "$PACKAGE"
1542 _ACEOF
1544   
1545   
1546 cat >>confdefs.h <<_ACEOF
1547 @%:@define VERSION "$VERSION"
1548 _ACEOF
1550   
1553 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
1554 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
1555     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1556 if test "${enable_maintainer_mode+set}" = set; then
1557   enableval="$enable_maintainer_mode"
1558   USE_MAINTAINER_MODE=$enableval
1559 else
1560   USE_MAINTAINER_MODE=no
1561 fi; 
1562   echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
1563 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
1564    
1566 if test $USE_MAINTAINER_MODE = yes; then
1567   MAINTAINER_MODE_TRUE=
1568   MAINTAINER_MODE_FALSE='#'
1569 else
1570   MAINTAINER_MODE_TRUE='#'
1571   MAINTAINER_MODE_FALSE=
1574   MAINT=$MAINTAINER_MODE_TRUE
1575   
1578 am__api_version="1.9"
1579 ac_aux_dir=
1580 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1581   if test -f $ac_dir/install-sh; then
1582     ac_aux_dir=$ac_dir
1583     ac_install_sh="$ac_aux_dir/install-sh -c"
1584     break
1585   elif test -f $ac_dir/install.sh; then
1586     ac_aux_dir=$ac_dir
1587     ac_install_sh="$ac_aux_dir/install.sh -c"
1588     break
1589   elif test -f $ac_dir/shtool; then
1590     ac_aux_dir=$ac_dir
1591     ac_install_sh="$ac_aux_dir/shtool install -c"
1592     break
1593   fi
1594 done
1595 if test -z "$ac_aux_dir"; then
1596   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1597 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1598    { (exit 1); exit 1; }; }
1600 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1601 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1602 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1604 # Find a good install program.  We prefer a C program (faster),
1605 # so one script is as good as another.  But avoid the broken or
1606 # incompatible versions:
1607 # SysV /etc/install, /usr/sbin/install
1608 # SunOS /usr/etc/install
1609 # IRIX /sbin/install
1610 # AIX /bin/install
1611 # AmigaOS /C/install, which installs bootblocks on floppy discs
1612 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1613 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1614 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1615 # OS/2's system install, which has a completely different semantic
1616 # ./install, which can be erroneously created by make from ./install.sh.
1617 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1618 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1619 if test -z "$INSTALL"; then
1620 if test "${ac_cv_path_install+set}" = set; then
1621   echo $ECHO_N "(cached) $ECHO_C" >&6
1622 else
1623   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1624 for as_dir in $PATH
1626   IFS=$as_save_IFS
1627   test -z "$as_dir" && as_dir=.
1628   # Account for people who put trailing slashes in PATH elements.
1629 case $as_dir/ in
1630   ./ | .// | /cC/* | \
1631   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1632   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1633   /usr/ucb/* ) ;;
1634   *)
1635     # OSF1 and SCO ODT 3.0 have their own names for install.
1636     # Don't use installbsd from OSF since it installs stuff as root
1637     # by default.
1638     for ac_prog in ginstall scoinst install; do
1639       for ac_exec_ext in '' $ac_executable_extensions; do
1640         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1641           if test $ac_prog = install &&
1642             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1643             # AIX install.  It has an incompatible calling convention.
1644             :
1645           elif test $ac_prog = install &&
1646             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1647             # program-specific install script used by HP pwplus--don't use.
1648             :
1649           else
1650             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1651             break 3
1652           fi
1653         fi
1654       done
1655     done
1656     ;;
1657 esac
1658 done
1662   if test "${ac_cv_path_install+set}" = set; then
1663     INSTALL=$ac_cv_path_install
1664   else
1665     # As a last resort, use the slow shell script.  We don't cache a
1666     # path for INSTALL within a source directory, because that will
1667     # break other packages using the cache if that directory is
1668     # removed, or if the path is relative.
1669     INSTALL=$ac_install_sh
1670   fi
1672 echo "$as_me:$LINENO: result: $INSTALL" >&5
1673 echo "${ECHO_T}$INSTALL" >&6
1675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1676 # It thinks the first close brace ends the variable substitution.
1677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1683 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1684 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1685 # Just in case
1686 sleep 1
1687 echo timestamp > conftest.file
1688 # Do `set' in a subshell so we don't clobber the current shell's
1689 # arguments.  Must try -L first in case configure is actually a
1690 # symlink; some systems play weird games with the mod time of symlinks
1691 # (eg FreeBSD returns the mod time of the symlink's containing
1692 # directory).
1693 if (
1694    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1695    if test "$*" = "X"; then
1696       # -L didn't work.
1697       set X `ls -t $srcdir/configure conftest.file`
1698    fi
1699    rm -f conftest.file
1700    if test "$*" != "X $srcdir/configure conftest.file" \
1701       && test "$*" != "X conftest.file $srcdir/configure"; then
1703       # If neither matched, then we have a broken ls.  This can happen
1704       # if, for instance, CONFIG_SHELL is bash and it inherits a
1705       # broken ls alias from the environment.  This has actually
1706       # happened.  Such a system could not be considered "sane".
1707       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
1708 alias in your environment" >&5
1709 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
1710 alias in your environment" >&2;}
1711    { (exit 1); exit 1; }; }
1712    fi
1714    test "$2" = conftest.file
1715    )
1716 then
1717    # Ok.
1718    :
1719 else
1720    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1721 Check your system clock" >&5
1722 echo "$as_me: error: newly created file is older than distributed files!
1723 Check your system clock" >&2;}
1724    { (exit 1); exit 1; }; }
1726 echo "$as_me:$LINENO: result: yes" >&5
1727 echo "${ECHO_T}yes" >&6
1728 test "$program_prefix" != NONE &&
1729   program_transform_name="s,^,$program_prefix,;$program_transform_name"
1730 # Use a double $ so make ignores it.
1731 test "$program_suffix" != NONE &&
1732   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1733 # Double any \ or $.  echo might interpret backslashes.
1734 # By default was `s,x,x', remove it if useless.
1735 cat <<\_ACEOF >conftest.sed
1736 s/[\\$]/&&/g;s/;s,x,x,$//
1737 _ACEOF
1738 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1739 rm conftest.sed
1741 # expand $ac_aux_dir to an absolute path
1742 am_aux_dir=`cd $ac_aux_dir && pwd`
1744 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1745 # Use eval to expand $SHELL
1746 if eval "$MISSING --run true"; then
1747   am_missing_run="$MISSING --run "
1748 else
1749   am_missing_run=
1750   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1751 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1754 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1755   # We used to keeping the `.' as first argument, in order to
1756   # allow $(mkdir_p) to be used without argument.  As in
1757   #   $(mkdir_p) $(somedir)
1758   # where $(somedir) is conditionally defined.  However this is wrong
1759   # for two reasons:
1760   #  1. if the package is installed by a user who cannot write `.'
1761   #     make install will fail,
1762   #  2. the above comment should most certainly read
1763   #     $(mkdir_p) $(DESTDIR)$(somedir)
1764   #     so it does not work when $(somedir) is undefined and
1765   #     $(DESTDIR) is not.
1766   #  To support the latter case, we have to write
1767   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1768   #  so the `.' trick is pointless.
1769   mkdir_p='mkdir -p --'
1770 else
1771   # On NextStep and OpenStep, the `mkdir' command does not
1772   # recognize any option.  It will interpret all options as
1773   # directories to create, and then abort because `.' already
1774   # exists.
1775   for d in ./-p ./--version;
1776   do
1777     test -d $d && rmdir $d
1778   done
1779   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1780   if test -f "$ac_aux_dir/mkinstalldirs"; then
1781     mkdir_p='$(mkinstalldirs)'
1782   else
1783     mkdir_p='$(install_sh) -d'
1784   fi
1787 for ac_prog in gawk mawk nawk awk
1789   # Extract the first word of "$ac_prog", so it can be a program name with args.
1790 set dummy $ac_prog; ac_word=$2
1791 echo "$as_me:$LINENO: checking for $ac_word" >&5
1792 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1793 if test "${ac_cv_prog_AWK+set}" = set; then
1794   echo $ECHO_N "(cached) $ECHO_C" >&6
1795 else
1796   if test -n "$AWK"; then
1797   ac_cv_prog_AWK="$AWK" # Let the user override the test.
1798 else
1799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1800 for as_dir in $PATH
1802   IFS=$as_save_IFS
1803   test -z "$as_dir" && as_dir=.
1804   for ac_exec_ext in '' $ac_executable_extensions; do
1805   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1806     ac_cv_prog_AWK="$ac_prog"
1807     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1808     break 2
1809   fi
1810 done
1811 done
1815 AWK=$ac_cv_prog_AWK
1816 if test -n "$AWK"; then
1817   echo "$as_me:$LINENO: result: $AWK" >&5
1818 echo "${ECHO_T}$AWK" >&6
1819 else
1820   echo "$as_me:$LINENO: result: no" >&5
1821 echo "${ECHO_T}no" >&6
1824   test -n "$AWK" && break
1825 done
1827 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1828 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1829 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1830 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1831   echo $ECHO_N "(cached) $ECHO_C" >&6
1832 else
1833   cat >conftest.make <<\_ACEOF
1834 all:
1835         @echo 'ac_maketemp="$(MAKE)"'
1836 _ACEOF
1837 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1838 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1839 if test -n "$ac_maketemp"; then
1840   eval ac_cv_prog_make_${ac_make}_set=yes
1841 else
1842   eval ac_cv_prog_make_${ac_make}_set=no
1844 rm -f conftest.make
1846 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1847   echo "$as_me:$LINENO: result: yes" >&5
1848 echo "${ECHO_T}yes" >&6
1849   SET_MAKE=
1850 else
1851   echo "$as_me:$LINENO: result: no" >&5
1852 echo "${ECHO_T}no" >&6
1853   SET_MAKE="MAKE=${MAKE-make}"
1856 rm -rf .tst 2>/dev/null
1857 mkdir .tst 2>/dev/null
1858 if test -d .tst; then
1859   am__leading_dot=.
1860 else
1861   am__leading_dot=_
1863 rmdir .tst 2>/dev/null
1865 # test to see if srcdir already configured
1866 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1867    test -f $srcdir/config.status; then
1868   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1869 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1870    { (exit 1); exit 1; }; }
1873 # test whether we have cygpath
1874 if test -z "$CYGPATH_W"; then
1875   if (cygpath --version) >/dev/null 2>/dev/null; then
1876     CYGPATH_W='cygpath -w'
1877   else
1878     CYGPATH_W=echo
1879   fi
1883 # Define the identity of the package.
1884  PACKAGE=$PACKAGE
1885  VERSION=$VERSION
1888 cat >>confdefs.h <<_ACEOF
1889 @%:@define PACKAGE "$PACKAGE"
1890 _ACEOF
1893 cat >>confdefs.h <<_ACEOF
1894 @%:@define VERSION "$VERSION"
1895 _ACEOF
1897 # Some tools Automake needs.
1899 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1902 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
1905 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
1908 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
1911 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
1913 install_sh=${install_sh-"$am_aux_dir/install-sh"}
1915 # Installed binaries are usually stripped using `strip' when the user
1916 # run `make install-strip'.  However `strip' might not be the right
1917 # tool to use in cross-compilation environments, therefore Automake
1918 # will honor the `STRIP' environment variable to overrule this program.
1919 if test "$cross_compiling" != no; then
1920   if test -n "$ac_tool_prefix"; then
1921   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
1922 set dummy ${ac_tool_prefix}strip; ac_word=$2
1923 echo "$as_me:$LINENO: checking for $ac_word" >&5
1924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1925 if test "${ac_cv_prog_STRIP+set}" = set; then
1926   echo $ECHO_N "(cached) $ECHO_C" >&6
1927 else
1928   if test -n "$STRIP"; then
1929   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
1930 else
1931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1932 for as_dir in $PATH
1934   IFS=$as_save_IFS
1935   test -z "$as_dir" && as_dir=.
1936   for ac_exec_ext in '' $ac_executable_extensions; do
1937   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1938     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
1939     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1940     break 2
1941   fi
1942 done
1943 done
1947 STRIP=$ac_cv_prog_STRIP
1948 if test -n "$STRIP"; then
1949   echo "$as_me:$LINENO: result: $STRIP" >&5
1950 echo "${ECHO_T}$STRIP" >&6
1951 else
1952   echo "$as_me:$LINENO: result: no" >&5
1953 echo "${ECHO_T}no" >&6
1957 if test -z "$ac_cv_prog_STRIP"; then
1958   ac_ct_STRIP=$STRIP
1959   # Extract the first word of "strip", so it can be a program name with args.
1960 set dummy strip; ac_word=$2
1961 echo "$as_me:$LINENO: checking for $ac_word" >&5
1962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1963 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
1964   echo $ECHO_N "(cached) $ECHO_C" >&6
1965 else
1966   if test -n "$ac_ct_STRIP"; then
1967   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
1968 else
1969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1970 for as_dir in $PATH
1972   IFS=$as_save_IFS
1973   test -z "$as_dir" && as_dir=.
1974   for ac_exec_ext in '' $ac_executable_extensions; do
1975   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1976     ac_cv_prog_ac_ct_STRIP="strip"
1977     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1978     break 2
1979   fi
1980 done
1981 done
1983   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
1986 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
1987 if test -n "$ac_ct_STRIP"; then
1988   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
1989 echo "${ECHO_T}$ac_ct_STRIP" >&6
1990 else
1991   echo "$as_me:$LINENO: result: no" >&5
1992 echo "${ECHO_T}no" >&6
1995   STRIP=$ac_ct_STRIP
1996 else
1997   STRIP="$ac_cv_prog_STRIP"
2001 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2003 # We need awk for the "check" target.  The system "awk" is bad on
2004 # some platforms.
2005 # Always define AMTAR for backward compatibility.
2007 AMTAR=${AMTAR-"${am_missing_run}tar"}
2009 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2016           ac_config_headers="$ac_config_headers config.h"
2019 ACLOCAL_AMFLAGS="-I m4"
2022 ac_ext=c
2023 ac_cpp='$CPP $CPPFLAGS'
2024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2027 if test -n "$ac_tool_prefix"; then
2028   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2029 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2030 echo "$as_me:$LINENO: checking for $ac_word" >&5
2031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2032 if test "${ac_cv_prog_CC+set}" = set; then
2033   echo $ECHO_N "(cached) $ECHO_C" >&6
2034 else
2035   if test -n "$CC"; then
2036   ac_cv_prog_CC="$CC" # Let the user override the test.
2037 else
2038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2039 for as_dir in $PATH
2041   IFS=$as_save_IFS
2042   test -z "$as_dir" && as_dir=.
2043   for ac_exec_ext in '' $ac_executable_extensions; do
2044   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2045     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2047     break 2
2048   fi
2049 done
2050 done
2054 CC=$ac_cv_prog_CC
2055 if test -n "$CC"; then
2056   echo "$as_me:$LINENO: result: $CC" >&5
2057 echo "${ECHO_T}$CC" >&6
2058 else
2059   echo "$as_me:$LINENO: result: no" >&5
2060 echo "${ECHO_T}no" >&6
2064 if test -z "$ac_cv_prog_CC"; then
2065   ac_ct_CC=$CC
2066   # Extract the first word of "gcc", so it can be a program name with args.
2067 set dummy gcc; ac_word=$2
2068 echo "$as_me:$LINENO: checking for $ac_word" >&5
2069 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2070 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2071   echo $ECHO_N "(cached) $ECHO_C" >&6
2072 else
2073   if test -n "$ac_ct_CC"; then
2074   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2075 else
2076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2077 for as_dir in $PATH
2079   IFS=$as_save_IFS
2080   test -z "$as_dir" && as_dir=.
2081   for ac_exec_ext in '' $ac_executable_extensions; do
2082   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2083     ac_cv_prog_ac_ct_CC="gcc"
2084     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2085     break 2
2086   fi
2087 done
2088 done
2092 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2093 if test -n "$ac_ct_CC"; then
2094   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2095 echo "${ECHO_T}$ac_ct_CC" >&6
2096 else
2097   echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6
2101   CC=$ac_ct_CC
2102 else
2103   CC="$ac_cv_prog_CC"
2106 if test -z "$CC"; then
2107   if test -n "$ac_tool_prefix"; then
2108   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2109 set dummy ${ac_tool_prefix}cc; ac_word=$2
2110 echo "$as_me:$LINENO: checking for $ac_word" >&5
2111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2112 if test "${ac_cv_prog_CC+set}" = set; then
2113   echo $ECHO_N "(cached) $ECHO_C" >&6
2114 else
2115   if test -n "$CC"; then
2116   ac_cv_prog_CC="$CC" # Let the user override the test.
2117 else
2118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2119 for as_dir in $PATH
2121   IFS=$as_save_IFS
2122   test -z "$as_dir" && as_dir=.
2123   for ac_exec_ext in '' $ac_executable_extensions; do
2124   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2125     ac_cv_prog_CC="${ac_tool_prefix}cc"
2126     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2127     break 2
2128   fi
2129 done
2130 done
2134 CC=$ac_cv_prog_CC
2135 if test -n "$CC"; then
2136   echo "$as_me:$LINENO: result: $CC" >&5
2137 echo "${ECHO_T}$CC" >&6
2138 else
2139   echo "$as_me:$LINENO: result: no" >&5
2140 echo "${ECHO_T}no" >&6
2144 if test -z "$ac_cv_prog_CC"; then
2145   ac_ct_CC=$CC
2146   # Extract the first word of "cc", so it can be a program name with args.
2147 set dummy cc; ac_word=$2
2148 echo "$as_me:$LINENO: checking for $ac_word" >&5
2149 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2150 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2151   echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153   if test -n "$ac_ct_CC"; then
2154   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2155 else
2156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2157 for as_dir in $PATH
2159   IFS=$as_save_IFS
2160   test -z "$as_dir" && as_dir=.
2161   for ac_exec_ext in '' $ac_executable_extensions; do
2162   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2163     ac_cv_prog_ac_ct_CC="cc"
2164     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2165     break 2
2166   fi
2167 done
2168 done
2172 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2173 if test -n "$ac_ct_CC"; then
2174   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2175 echo "${ECHO_T}$ac_ct_CC" >&6
2176 else
2177   echo "$as_me:$LINENO: result: no" >&5
2178 echo "${ECHO_T}no" >&6
2181   CC=$ac_ct_CC
2182 else
2183   CC="$ac_cv_prog_CC"
2187 if test -z "$CC"; then
2188   # Extract the first word of "cc", so it can be a program name with args.
2189 set dummy cc; ac_word=$2
2190 echo "$as_me:$LINENO: checking for $ac_word" >&5
2191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2192 if test "${ac_cv_prog_CC+set}" = set; then
2193   echo $ECHO_N "(cached) $ECHO_C" >&6
2194 else
2195   if test -n "$CC"; then
2196   ac_cv_prog_CC="$CC" # Let the user override the test.
2197 else
2198   ac_prog_rejected=no
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200 for as_dir in $PATH
2202   IFS=$as_save_IFS
2203   test -z "$as_dir" && as_dir=.
2204   for ac_exec_ext in '' $ac_executable_extensions; do
2205   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2207        ac_prog_rejected=yes
2208        continue
2209      fi
2210     ac_cv_prog_CC="cc"
2211     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2212     break 2
2213   fi
2214 done
2215 done
2217 if test $ac_prog_rejected = yes; then
2218   # We found a bogon in the path, so make sure we never use it.
2219   set dummy $ac_cv_prog_CC
2220   shift
2221   if test $@%:@ != 0; then
2222     # We chose a different compiler from the bogus one.
2223     # However, it has the same basename, so the bogon will be chosen
2224     # first if we set CC to just the basename; use the full file name.
2225     shift
2226     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2227   fi
2231 CC=$ac_cv_prog_CC
2232 if test -n "$CC"; then
2233   echo "$as_me:$LINENO: result: $CC" >&5
2234 echo "${ECHO_T}$CC" >&6
2235 else
2236   echo "$as_me:$LINENO: result: no" >&5
2237 echo "${ECHO_T}no" >&6
2241 if test -z "$CC"; then
2242   if test -n "$ac_tool_prefix"; then
2243   for ac_prog in cl
2244   do
2245     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2246 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2247 echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2249 if test "${ac_cv_prog_CC+set}" = set; then
2250   echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252   if test -n "$CC"; then
2253   ac_cv_prog_CC="$CC" # Let the user override the test.
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2258   IFS=$as_save_IFS
2259   test -z "$as_dir" && as_dir=.
2260   for ac_exec_ext in '' $ac_executable_extensions; do
2261   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2262     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2263     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264     break 2
2265   fi
2266 done
2267 done
2271 CC=$ac_cv_prog_CC
2272 if test -n "$CC"; then
2273   echo "$as_me:$LINENO: result: $CC" >&5
2274 echo "${ECHO_T}$CC" >&6
2275 else
2276   echo "$as_me:$LINENO: result: no" >&5
2277 echo "${ECHO_T}no" >&6
2280     test -n "$CC" && break
2281   done
2283 if test -z "$CC"; then
2284   ac_ct_CC=$CC
2285   for ac_prog in cl
2287   # Extract the first word of "$ac_prog", so it can be a program name with args.
2288 set dummy $ac_prog; ac_word=$2
2289 echo "$as_me:$LINENO: checking for $ac_word" >&5
2290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2291 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2292   echo $ECHO_N "(cached) $ECHO_C" >&6
2293 else
2294   if test -n "$ac_ct_CC"; then
2295   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2296 else
2297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2298 for as_dir in $PATH
2300   IFS=$as_save_IFS
2301   test -z "$as_dir" && as_dir=.
2302   for ac_exec_ext in '' $ac_executable_extensions; do
2303   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2304     ac_cv_prog_ac_ct_CC="$ac_prog"
2305     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2306     break 2
2307   fi
2308 done
2309 done
2313 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2314 if test -n "$ac_ct_CC"; then
2315   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2316 echo "${ECHO_T}$ac_ct_CC" >&6
2317 else
2318   echo "$as_me:$LINENO: result: no" >&5
2319 echo "${ECHO_T}no" >&6
2322   test -n "$ac_ct_CC" && break
2323 done
2325   CC=$ac_ct_CC
2331 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2332 See \`config.log' for more details." >&5
2333 echo "$as_me: error: no acceptable C compiler found in \$PATH
2334 See \`config.log' for more details." >&2;}
2335    { (exit 1); exit 1; }; }
2337 # Provide some information about the compiler.
2338 echo "$as_me:$LINENO:" \
2339      "checking for C compiler version" >&5
2340 ac_compiler=`set X $ac_compile; echo $2`
2341 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2342   (eval $ac_compiler --version </dev/null >&5) 2>&5
2343   ac_status=$?
2344   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2345   (exit $ac_status); }
2346 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2347   (eval $ac_compiler -v </dev/null >&5) 2>&5
2348   ac_status=$?
2349   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2350   (exit $ac_status); }
2351 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2352   (eval $ac_compiler -V </dev/null >&5) 2>&5
2353   ac_status=$?
2354   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355   (exit $ac_status); }
2357 cat >conftest.$ac_ext <<_ACEOF
2358 /* confdefs.h.  */
2359 _ACEOF
2360 cat confdefs.h >>conftest.$ac_ext
2361 cat >>conftest.$ac_ext <<_ACEOF
2362 /* end confdefs.h.  */
2365 main ()
2368   ;
2369   return 0;
2371 _ACEOF
2372 ac_clean_files_save=$ac_clean_files
2373 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2374 # Try to create an executable without -o first, disregard a.out.
2375 # It will help us diagnose broken compilers, and finding out an intuition
2376 # of exeext.
2377 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2378 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2379 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2380 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2381   (eval $ac_link_default) 2>&5
2382   ac_status=$?
2383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384   (exit $ac_status); }; then
2385   # Find the output, starting from the most likely.  This scheme is
2386 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2387 # resort.
2389 # Be careful to initialize this variable, since it used to be cached.
2390 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2391 ac_cv_exeext=
2392 # b.out is created by i960 compilers.
2393 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2395   test -f "$ac_file" || continue
2396   case $ac_file in
2397     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2398         ;;
2399     conftest.$ac_ext )
2400         # This is the source file.
2401         ;;
2402     [ab].out )
2403         # We found the default executable, but exeext='' is most
2404         # certainly right.
2405         break;;
2406     *.* )
2407         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2408         # FIXME: I believe we export ac_cv_exeext for Libtool,
2409         # but it would be cool to find out if it's true.  Does anybody
2410         # maintain Libtool? --akim.
2411         export ac_cv_exeext
2412         break;;
2413     * )
2414         break;;
2415   esac
2416 done
2417 else
2418   echo "$as_me: failed program was:" >&5
2419 sed 's/^/| /' conftest.$ac_ext >&5
2421 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2422 See \`config.log' for more details." >&5
2423 echo "$as_me: error: C compiler cannot create executables
2424 See \`config.log' for more details." >&2;}
2425    { (exit 77); exit 77; }; }
2428 ac_exeext=$ac_cv_exeext
2429 echo "$as_me:$LINENO: result: $ac_file" >&5
2430 echo "${ECHO_T}$ac_file" >&6
2432 # Check the compiler produces executables we can run.  If not, either
2433 # the compiler is broken, or we cross compile.
2434 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2435 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2436 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2437 # If not cross compiling, check that we can run a simple program.
2438 if test "$cross_compiling" != yes; then
2439   if { ac_try='./$ac_file'
2440   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441   (eval $ac_try) 2>&5
2442   ac_status=$?
2443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444   (exit $ac_status); }; }; then
2445     cross_compiling=no
2446   else
2447     if test "$cross_compiling" = maybe; then
2448         cross_compiling=yes
2449     else
2450         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2451 If you meant to cross compile, use \`--host'.
2452 See \`config.log' for more details." >&5
2453 echo "$as_me: error: cannot run C compiled programs.
2454 If you meant to cross compile, use \`--host'.
2455 See \`config.log' for more details." >&2;}
2456    { (exit 1); exit 1; }; }
2457     fi
2458   fi
2460 echo "$as_me:$LINENO: result: yes" >&5
2461 echo "${ECHO_T}yes" >&6
2463 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2464 ac_clean_files=$ac_clean_files_save
2465 # Check the compiler produces executables we can run.  If not, either
2466 # the compiler is broken, or we cross compile.
2467 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2468 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2469 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2470 echo "${ECHO_T}$cross_compiling" >&6
2472 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2473 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2474 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2475   (eval $ac_link) 2>&5
2476   ac_status=$?
2477   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2478   (exit $ac_status); }; then
2479   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2480 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2481 # work properly (i.e., refer to `conftest.exe'), while it won't with
2482 # `rm'.
2483 for ac_file in conftest.exe conftest conftest.*; do
2484   test -f "$ac_file" || continue
2485   case $ac_file in
2486     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2487     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2488           export ac_cv_exeext
2489           break;;
2490     * ) break;;
2491   esac
2492 done
2493 else
2494   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2495 See \`config.log' for more details." >&5
2496 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2497 See \`config.log' for more details." >&2;}
2498    { (exit 1); exit 1; }; }
2501 rm -f conftest$ac_cv_exeext
2502 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2503 echo "${ECHO_T}$ac_cv_exeext" >&6
2505 rm -f conftest.$ac_ext
2506 EXEEXT=$ac_cv_exeext
2507 ac_exeext=$EXEEXT
2508 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2509 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2510 if test "${ac_cv_objext+set}" = set; then
2511   echo $ECHO_N "(cached) $ECHO_C" >&6
2512 else
2513   cat >conftest.$ac_ext <<_ACEOF
2514 /* confdefs.h.  */
2515 _ACEOF
2516 cat confdefs.h >>conftest.$ac_ext
2517 cat >>conftest.$ac_ext <<_ACEOF
2518 /* end confdefs.h.  */
2521 main ()
2524   ;
2525   return 0;
2527 _ACEOF
2528 rm -f conftest.o conftest.obj
2529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2530   (eval $ac_compile) 2>&5
2531   ac_status=$?
2532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533   (exit $ac_status); }; then
2534   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2535   case $ac_file in
2536     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2537     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2538        break;;
2539   esac
2540 done
2541 else
2542   echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2546 See \`config.log' for more details." >&5
2547 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2548 See \`config.log' for more details." >&2;}
2549    { (exit 1); exit 1; }; }
2552 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2554 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2555 echo "${ECHO_T}$ac_cv_objext" >&6
2556 OBJEXT=$ac_cv_objext
2557 ac_objext=$OBJEXT
2558 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2559 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2560 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2561   echo $ECHO_N "(cached) $ECHO_C" >&6
2562 else
2563   cat >conftest.$ac_ext <<_ACEOF
2564 /* confdefs.h.  */
2565 _ACEOF
2566 cat confdefs.h >>conftest.$ac_ext
2567 cat >>conftest.$ac_ext <<_ACEOF
2568 /* end confdefs.h.  */
2571 main ()
2573 #ifndef __GNUC__
2574        choke me
2575 #endif
2577   ;
2578   return 0;
2580 _ACEOF
2581 rm -f conftest.$ac_objext
2582 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2583   (eval $ac_compile) 2>conftest.er1
2584   ac_status=$?
2585   grep -v '^ *+' conftest.er1 >conftest.err
2586   rm -f conftest.er1
2587   cat conftest.err >&5
2588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2589   (exit $ac_status); } &&
2590          { ac_try='test -z "$ac_c_werror_flag"
2591                          || test ! -s conftest.err'
2592   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2593   (eval $ac_try) 2>&5
2594   ac_status=$?
2595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596   (exit $ac_status); }; } &&
2597          { ac_try='test -s conftest.$ac_objext'
2598   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2599   (eval $ac_try) 2>&5
2600   ac_status=$?
2601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602   (exit $ac_status); }; }; then
2603   ac_compiler_gnu=yes
2604 else
2605   echo "$as_me: failed program was:" >&5
2606 sed 's/^/| /' conftest.$ac_ext >&5
2608 ac_compiler_gnu=no
2610 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2614 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2615 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2616 GCC=`test $ac_compiler_gnu = yes && echo yes`
2617 ac_test_CFLAGS=${CFLAGS+set}
2618 ac_save_CFLAGS=$CFLAGS
2619 CFLAGS="-g"
2620 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2621 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2622 if test "${ac_cv_prog_cc_g+set}" = set; then
2623   echo $ECHO_N "(cached) $ECHO_C" >&6
2624 else
2625   cat >conftest.$ac_ext <<_ACEOF
2626 /* confdefs.h.  */
2627 _ACEOF
2628 cat confdefs.h >>conftest.$ac_ext
2629 cat >>conftest.$ac_ext <<_ACEOF
2630 /* end confdefs.h.  */
2633 main ()
2636   ;
2637   return 0;
2639 _ACEOF
2640 rm -f conftest.$ac_objext
2641 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2642   (eval $ac_compile) 2>conftest.er1
2643   ac_status=$?
2644   grep -v '^ *+' conftest.er1 >conftest.err
2645   rm -f conftest.er1
2646   cat conftest.err >&5
2647   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2648   (exit $ac_status); } &&
2649          { ac_try='test -z "$ac_c_werror_flag"
2650                          || test ! -s conftest.err'
2651   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2652   (eval $ac_try) 2>&5
2653   ac_status=$?
2654   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2655   (exit $ac_status); }; } &&
2656          { ac_try='test -s conftest.$ac_objext'
2657   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2658   (eval $ac_try) 2>&5
2659   ac_status=$?
2660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2661   (exit $ac_status); }; }; then
2662   ac_cv_prog_cc_g=yes
2663 else
2664   echo "$as_me: failed program was:" >&5
2665 sed 's/^/| /' conftest.$ac_ext >&5
2667 ac_cv_prog_cc_g=no
2669 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2671 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2672 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2673 if test "$ac_test_CFLAGS" = set; then
2674   CFLAGS=$ac_save_CFLAGS
2675 elif test $ac_cv_prog_cc_g = yes; then
2676   if test "$GCC" = yes; then
2677     CFLAGS="-g -O2"
2678   else
2679     CFLAGS="-g"
2680   fi
2681 else
2682   if test "$GCC" = yes; then
2683     CFLAGS="-O2"
2684   else
2685     CFLAGS=
2686   fi
2688 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2689 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2690 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2691   echo $ECHO_N "(cached) $ECHO_C" >&6
2692 else
2693   ac_cv_prog_cc_stdc=no
2694 ac_save_CC=$CC
2695 cat >conftest.$ac_ext <<_ACEOF
2696 /* confdefs.h.  */
2697 _ACEOF
2698 cat confdefs.h >>conftest.$ac_ext
2699 cat >>conftest.$ac_ext <<_ACEOF
2700 /* end confdefs.h.  */
2701 #include <stdarg.h>
2702 #include <stdio.h>
2703 #include <sys/types.h>
2704 #include <sys/stat.h>
2705 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2706 struct buf { int x; };
2707 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2708 static char *e (p, i)
2709      char **p;
2710      int i;
2712   return p[i];
2714 static char *f (char * (*g) (char **, int), char **p, ...)
2716   char *s;
2717   va_list v;
2718   va_start (v,p);
2719   s = g (p, va_arg (v,int));
2720   va_end (v);
2721   return s;
2724 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2725    function prototypes and stuff, but not '\xHH' hex character constants.
2726    These don't provoke an error unfortunately, instead are silently treated
2727    as 'x'.  The following induces an error, until -std1 is added to get
2728    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2729    array size at least.  It's necessary to write '\x00'==0 to get something
2730    that's true only with -std1.  */
2731 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2733 int test (int i, double x);
2734 struct s1 {int (*f) (int a);};
2735 struct s2 {int (*f) (double a);};
2736 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2737 int argc;
2738 char **argv;
2740 main ()
2742 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2743   ;
2744   return 0;
2746 _ACEOF
2747 # Don't try gcc -ansi; that turns off useful extensions and
2748 # breaks some systems' header files.
2749 # AIX                   -qlanglvl=ansi
2750 # Ultrix and OSF/1      -std1
2751 # HP-UX 10.20 and later -Ae
2752 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2753 # SVR4                  -Xc -D__EXTENSIONS__
2754 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2756   CC="$ac_save_CC $ac_arg"
2757   rm -f conftest.$ac_objext
2758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2759   (eval $ac_compile) 2>conftest.er1
2760   ac_status=$?
2761   grep -v '^ *+' conftest.er1 >conftest.err
2762   rm -f conftest.er1
2763   cat conftest.err >&5
2764   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2765   (exit $ac_status); } &&
2766          { ac_try='test -z "$ac_c_werror_flag"
2767                          || test ! -s conftest.err'
2768   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2769   (eval $ac_try) 2>&5
2770   ac_status=$?
2771   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2772   (exit $ac_status); }; } &&
2773          { ac_try='test -s conftest.$ac_objext'
2774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2775   (eval $ac_try) 2>&5
2776   ac_status=$?
2777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2778   (exit $ac_status); }; }; then
2779   ac_cv_prog_cc_stdc=$ac_arg
2780 break
2781 else
2782   echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2786 rm -f conftest.err conftest.$ac_objext 
2787 done
2788 rm -f conftest.$ac_ext conftest.$ac_objext
2789 CC=$ac_save_CC
2793 case "x$ac_cv_prog_cc_stdc" in
2794   x|xno)
2795     echo "$as_me:$LINENO: result: none needed" >&5
2796 echo "${ECHO_T}none needed" >&6 ;;
2797   *)
2798     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2799 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2800     CC="$CC $ac_cv_prog_cc_stdc" ;;
2801 esac
2803 # Some people use a C++ compiler to compile C.  Since we use `exit',
2804 # in C++ we need to declare it.  In case someone uses the same compiler
2805 # for both compiling C and C++ we need to have the C++ compiler decide
2806 # the declaration of exit, since it's the most demanding environment.
2807 cat >conftest.$ac_ext <<_ACEOF
2808 @%:@ifndef __cplusplus
2809   choke me
2810 @%:@endif
2811 _ACEOF
2812 rm -f conftest.$ac_objext
2813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2814   (eval $ac_compile) 2>conftest.er1
2815   ac_status=$?
2816   grep -v '^ *+' conftest.er1 >conftest.err
2817   rm -f conftest.er1
2818   cat conftest.err >&5
2819   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2820   (exit $ac_status); } &&
2821          { ac_try='test -z "$ac_c_werror_flag"
2822                          || test ! -s conftest.err'
2823   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2824   (eval $ac_try) 2>&5
2825   ac_status=$?
2826   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827   (exit $ac_status); }; } &&
2828          { ac_try='test -s conftest.$ac_objext'
2829   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2830   (eval $ac_try) 2>&5
2831   ac_status=$?
2832   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2833   (exit $ac_status); }; }; then
2834   for ac_declaration in \
2835    '' \
2836    'extern "C" void std::exit (int) throw (); using std::exit;' \
2837    'extern "C" void std::exit (int); using std::exit;' \
2838    'extern "C" void exit (int) throw ();' \
2839    'extern "C" void exit (int);' \
2840    'void exit (int);'
2842   cat >conftest.$ac_ext <<_ACEOF
2843 /* confdefs.h.  */
2844 _ACEOF
2845 cat confdefs.h >>conftest.$ac_ext
2846 cat >>conftest.$ac_ext <<_ACEOF
2847 /* end confdefs.h.  */
2848 $ac_declaration
2849 @%:@include <stdlib.h>
2851 main ()
2853 exit (42);
2854   ;
2855   return 0;
2857 _ACEOF
2858 rm -f conftest.$ac_objext
2859 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2860   (eval $ac_compile) 2>conftest.er1
2861   ac_status=$?
2862   grep -v '^ *+' conftest.er1 >conftest.err
2863   rm -f conftest.er1
2864   cat conftest.err >&5
2865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2866   (exit $ac_status); } &&
2867          { ac_try='test -z "$ac_c_werror_flag"
2868                          || test ! -s conftest.err'
2869   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2870   (eval $ac_try) 2>&5
2871   ac_status=$?
2872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873   (exit $ac_status); }; } &&
2874          { ac_try='test -s conftest.$ac_objext'
2875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2876   (eval $ac_try) 2>&5
2877   ac_status=$?
2878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2879   (exit $ac_status); }; }; then
2880   :
2881 else
2882   echo "$as_me: failed program was:" >&5
2883 sed 's/^/| /' conftest.$ac_ext >&5
2885 continue
2887 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2888   cat >conftest.$ac_ext <<_ACEOF
2889 /* confdefs.h.  */
2890 _ACEOF
2891 cat confdefs.h >>conftest.$ac_ext
2892 cat >>conftest.$ac_ext <<_ACEOF
2893 /* end confdefs.h.  */
2894 $ac_declaration
2896 main ()
2898 exit (42);
2899   ;
2900   return 0;
2902 _ACEOF
2903 rm -f conftest.$ac_objext
2904 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2905   (eval $ac_compile) 2>conftest.er1
2906   ac_status=$?
2907   grep -v '^ *+' conftest.er1 >conftest.err
2908   rm -f conftest.er1
2909   cat conftest.err >&5
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); } &&
2912          { ac_try='test -z "$ac_c_werror_flag"
2913                          || test ! -s conftest.err'
2914   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2915   (eval $ac_try) 2>&5
2916   ac_status=$?
2917   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2918   (exit $ac_status); }; } &&
2919          { ac_try='test -s conftest.$ac_objext'
2920   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2921   (eval $ac_try) 2>&5
2922   ac_status=$?
2923   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2924   (exit $ac_status); }; }; then
2925   break
2926 else
2927   echo "$as_me: failed program was:" >&5
2928 sed 's/^/| /' conftest.$ac_ext >&5
2931 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2932 done
2933 rm -f conftest*
2934 if test -n "$ac_declaration"; then
2935   echo '#ifdef __cplusplus' >>confdefs.h
2936   echo $ac_declaration      >>confdefs.h
2937   echo '#endif'             >>confdefs.h
2940 else
2941   echo "$as_me: failed program was:" >&5
2942 sed 's/^/| /' conftest.$ac_ext >&5
2945 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2946 ac_ext=c
2947 ac_cpp='$CPP $CPPFLAGS'
2948 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2949 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2950 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2951 DEPDIR="${am__leading_dot}deps"
2953           ac_config_commands="$ac_config_commands depfiles"
2956 am_make=${MAKE-make}
2957 cat > confinc << 'END'
2958 am__doit:
2959         @echo done
2960 .PHONY: am__doit
2962 # If we don't find an include directive, just comment out the code.
2963 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2964 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2965 am__include="#"
2966 am__quote=
2967 _am_result=none
2968 # First try GNU make style include.
2969 echo "include confinc" > confmf
2970 # We grep out `Entering directory' and `Leaving directory'
2971 # messages which can occur if `w' ends up in MAKEFLAGS.
2972 # In particular we don't look at `^make:' because GNU make might
2973 # be invoked under some other name (usually "gmake"), in which
2974 # case it prints its new name instead of `make'.
2975 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2976    am__include=include
2977    am__quote=
2978    _am_result=GNU
2980 # Now try BSD make style include.
2981 if test "$am__include" = "#"; then
2982    echo '.include "confinc"' > confmf
2983    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2984       am__include=.include
2985       am__quote="\""
2986       _am_result=BSD
2987    fi
2991 echo "$as_me:$LINENO: result: $_am_result" >&5
2992 echo "${ECHO_T}$_am_result" >&6
2993 rm -f confinc confmf
2995 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2996 if test "${enable_dependency_tracking+set}" = set; then
2997   enableval="$enable_dependency_tracking"
2998   
2999 fi; 
3000 if test "x$enable_dependency_tracking" != xno; then
3001   am_depcomp="$ac_aux_dir/depcomp"
3002   AMDEPBACKSLASH='\'
3006 if test "x$enable_dependency_tracking" != xno; then
3007   AMDEP_TRUE=
3008   AMDEP_FALSE='#'
3009 else
3010   AMDEP_TRUE='#'
3011   AMDEP_FALSE=
3017 depcc="$CC"   am_compiler_list=
3019 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3020 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3021 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3022   echo $ECHO_N "(cached) $ECHO_C" >&6
3023 else
3024   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3025   # We make a subdir and do the tests there.  Otherwise we can end up
3026   # making bogus files that we don't know about and never remove.  For
3027   # instance it was reported that on HP-UX the gcc test will end up
3028   # making a dummy file named `D' -- because `-MD' means `put the output
3029   # in D'.
3030   mkdir conftest.dir
3031   # Copy depcomp to subdir because otherwise we won't find it if we're
3032   # using a relative directory.
3033   cp "$am_depcomp" conftest.dir
3034   cd conftest.dir
3035   # We will build objects and dependencies in a subdirectory because
3036   # it helps to detect inapplicable dependency modes.  For instance
3037   # both Tru64's cc and ICC support -MD to output dependencies as a
3038   # side effect of compilation, but ICC will put the dependencies in
3039   # the current directory while Tru64 will put them in the object
3040   # directory.
3041   mkdir sub
3043   am_cv_CC_dependencies_compiler_type=none
3044   if test "$am_compiler_list" = ""; then
3045      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3046   fi
3047   for depmode in $am_compiler_list; do
3048     # Setup a source with many dependencies, because some compilers
3049     # like to wrap large dependency lists on column 80 (with \), and
3050     # we should not choose a depcomp mode which is confused by this.
3051     #
3052     # We need to recreate these files for each test, as the compiler may
3053     # overwrite some of them when testing with obscure command lines.
3054     # This happens at least with the AIX C compiler.
3055     : > sub/conftest.c
3056     for i in 1 2 3 4 5 6; do
3057       echo '#include "conftst'$i'.h"' >> sub/conftest.c
3058       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3059       # Solaris 8's {/usr,}/bin/sh.
3060       touch sub/conftst$i.h
3061     done
3062     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3064     case $depmode in
3065     nosideeffect)
3066       # after this tag, mechanisms are not by side-effect, so they'll
3067       # only be used when explicitly requested
3068       if test "x$enable_dependency_tracking" = xyes; then
3069         continue
3070       else
3071         break
3072       fi
3073       ;;
3074     none) break ;;
3075     esac
3076     # We check with `-c' and `-o' for the sake of the "dashmstdout"
3077     # mode.  It turns out that the SunPro C++ compiler does not properly
3078     # handle `-M -o', and we need to detect this.
3079     if depmode=$depmode \
3080        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3081        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3082        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3083          >/dev/null 2>conftest.err &&
3084        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3085        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3086        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3087       # icc doesn't choke on unknown options, it will just issue warnings
3088       # or remarks (even with -Werror).  So we grep stderr for any message
3089       # that says an option was ignored or not supported.
3090       # When given -MP, icc 7.0 and 7.1 complain thusly:
3091       #   icc: Command line warning: ignoring option '-M'; no argument required
3092       # The diagnosis changed in icc 8.0:
3093       #   icc: Command line remark: option '-MP' not supported
3094       if (grep 'ignoring option' conftest.err ||
3095           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3096         am_cv_CC_dependencies_compiler_type=$depmode
3097         break
3098       fi
3099     fi
3100   done
3102   cd ..
3103   rm -rf conftest.dir
3104 else
3105   am_cv_CC_dependencies_compiler_type=none
3109 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3110 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3111 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3115 if 
3116   test "x$enable_dependency_tracking" != xno \
3117   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3118   am__fastdepCC_TRUE=
3119   am__fastdepCC_FALSE='#'
3120 else
3121   am__fastdepCC_TRUE='#'
3122   am__fastdepCC_FALSE=
3126 # Check whether --enable-shared or --disable-shared was given.
3127 if test "${enable_shared+set}" = set; then
3128   enableval="$enable_shared"
3129   p=${PACKAGE-default}
3130     case $enableval in
3131     yes) enable_shared=yes ;;
3132     no) enable_shared=no ;;
3133     *)
3134       enable_shared=no
3135       # Look at the argument we got.  We use all the common list separators.
3136       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3137       for pkg in $enableval; do
3138         IFS="$lt_save_ifs"
3139         if test "X$pkg" = "X$p"; then
3140           enable_shared=yes
3141         fi
3142       done
3143       IFS="$lt_save_ifs"
3144       ;;
3145     esac
3146 else
3147   enable_shared=yes
3148 fi; 
3150 # Check whether --enable-static or --disable-static was given.
3151 if test "${enable_static+set}" = set; then
3152   enableval="$enable_static"
3153   p=${PACKAGE-default}
3154     case $enableval in
3155     yes) enable_static=yes ;;
3156     no) enable_static=no ;;
3157     *)
3158      enable_static=no
3159       # Look at the argument we got.  We use all the common list separators.
3160       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3161       for pkg in $enableval; do
3162         IFS="$lt_save_ifs"
3163         if test "X$pkg" = "X$p"; then
3164           enable_static=yes
3165         fi
3166       done
3167       IFS="$lt_save_ifs"
3168       ;;
3169     esac
3170 else
3171   enable_static=yes
3172 fi; 
3174 # Check whether --enable-fast-install or --disable-fast-install was given.
3175 if test "${enable_fast_install+set}" = set; then
3176   enableval="$enable_fast_install"
3177   p=${PACKAGE-default}
3178     case $enableval in
3179     yes) enable_fast_install=yes ;;
3180     no) enable_fast_install=no ;;
3181     *)
3182       enable_fast_install=no
3183       # Look at the argument we got.  We use all the common list separators.
3184       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3185       for pkg in $enableval; do
3186         IFS="$lt_save_ifs"
3187         if test "X$pkg" = "X$p"; then
3188           enable_fast_install=yes
3189         fi
3190       done
3191       IFS="$lt_save_ifs"
3192       ;;
3193     esac
3194 else
3195   enable_fast_install=yes
3196 fi; 
3198 # Make sure we can run config.sub.
3199 $ac_config_sub sun4 >/dev/null 2>&1 ||
3200   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3201 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3202    { (exit 1); exit 1; }; }
3204 echo "$as_me:$LINENO: checking build system type" >&5
3205 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3206 if test "${ac_cv_build+set}" = set; then
3207   echo $ECHO_N "(cached) $ECHO_C" >&6
3208 else
3209   ac_cv_build_alias=$build_alias
3210 test -z "$ac_cv_build_alias" &&
3211   ac_cv_build_alias=`$ac_config_guess`
3212 test -z "$ac_cv_build_alias" &&
3213   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3214 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3215    { (exit 1); exit 1; }; }
3216 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3217   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3218 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3219    { (exit 1); exit 1; }; }
3222 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3223 echo "${ECHO_T}$ac_cv_build" >&6
3224 build=$ac_cv_build
3225 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3226 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3227 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3230 echo "$as_me:$LINENO: checking host system type" >&5
3231 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3232 if test "${ac_cv_host+set}" = set; then
3233   echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235   ac_cv_host_alias=$host_alias
3236 test -z "$ac_cv_host_alias" &&
3237   ac_cv_host_alias=$ac_cv_build_alias
3238 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3239   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3240 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3241    { (exit 1); exit 1; }; }
3244 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3245 echo "${ECHO_T}$ac_cv_host" >&6
3246 host=$ac_cv_host
3247 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3248 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3249 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3252 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3253 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
3254 if test "${lt_cv_path_SED+set}" = set; then
3255   echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257   # Loop through the user's path and test for sed and gsed.
3258 # Then use that list of sed's as ones to test for truncation.
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3262   IFS=$as_save_IFS
3263   test -z "$as_dir" && as_dir=.
3264   for lt_ac_prog in sed gsed; do
3265     for ac_exec_ext in '' $ac_executable_extensions; do
3266       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
3267         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3268       fi
3269     done
3270   done
3271 done
3272 lt_ac_max=0
3273 lt_ac_count=0
3274 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3275 # along with /bin/sed that truncates output.
3276 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3277   test ! -f $lt_ac_sed && break
3278   cat /dev/null > conftest.in
3279   lt_ac_count=0
3280   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3281   # Check for GNU sed and select it if it is found.
3282   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3283     lt_cv_path_SED=$lt_ac_sed
3284     break
3285   fi
3286   while true; do
3287     cat conftest.in conftest.in >conftest.tmp
3288     mv conftest.tmp conftest.in
3289     cp conftest.in conftest.nl
3290     echo >>conftest.nl
3291     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3292     cmp -s conftest.out conftest.nl || break
3293     # 10000 chars as input seems more than enough
3294     test $lt_ac_count -gt 10 && break
3295     lt_ac_count=`expr $lt_ac_count + 1`
3296     if test $lt_ac_count -gt $lt_ac_max; then
3297       lt_ac_max=$lt_ac_count
3298       lt_cv_path_SED=$lt_ac_sed
3299     fi
3300   done
3301 done
3302 SED=$lt_cv_path_SED
3306 echo "$as_me:$LINENO: result: $SED" >&5
3307 echo "${ECHO_T}$SED" >&6
3309 echo "$as_me:$LINENO: checking for egrep" >&5
3310 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3311 if test "${ac_cv_prog_egrep+set}" = set; then
3312   echo $ECHO_N "(cached) $ECHO_C" >&6
3313 else
3314   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3315     then ac_cv_prog_egrep='grep -E'
3316     else ac_cv_prog_egrep='egrep'
3317     fi
3319 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3320 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3321  EGREP=$ac_cv_prog_egrep
3325 # Check whether --with-gnu-ld or --without-gnu-ld was given.
3326 if test "${with_gnu_ld+set}" = set; then
3327   withval="$with_gnu_ld"
3328   test "$withval" = no || with_gnu_ld=yes
3329 else
3330   with_gnu_ld=no
3331 fi; 
3332 ac_prog=ld
3333 if test "$GCC" = yes; then
3334   # Check if gcc -print-prog-name=ld gives a path.
3335   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3336 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
3337   case $host in
3338   *-*-mingw*)
3339     # gcc leaves a trailing carriage return which upsets mingw
3340     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3341   *)
3342     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3343   esac
3344   case $ac_prog in
3345     # Accept absolute paths.
3346     [\\/]* | ?:[\\/]*)
3347       re_direlt='/[^/][^/]*/\.\./'
3348       # Canonicalize the pathname of ld
3349       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
3350       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
3351         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
3352       done
3353       test -z "$LD" && LD="$ac_prog"
3354       ;;
3355   "")
3356     # If it fails, then pretend we aren't using GCC.
3357     ac_prog=ld
3358     ;;
3359   *)
3360     # If it is relative, then search for the first ld in PATH.
3361     with_gnu_ld=unknown
3362     ;;
3363   esac
3364 elif test "$with_gnu_ld" = yes; then
3365   echo "$as_me:$LINENO: checking for GNU ld" >&5
3366 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
3367 else
3368   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3369 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
3371 if test "${lt_cv_path_LD+set}" = set; then
3372   echo $ECHO_N "(cached) $ECHO_C" >&6
3373 else
3374   if test -z "$LD"; then
3375   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3376   for ac_dir in $PATH; do
3377     IFS="$lt_save_ifs"
3378     test -z "$ac_dir" && ac_dir=.
3379     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3380       lt_cv_path_LD="$ac_dir/$ac_prog"
3381       # Check to see if the program is GNU ld.  I'd rather use --version,
3382       # but apparently some GNU ld's only accept -v.
3383       # Break only if it was the GNU/non-GNU ld that we prefer.
3384       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3385       *GNU* | *'with BFD'*)
3386         test "$with_gnu_ld" != no && break
3387         ;;
3388       *)
3389         test "$with_gnu_ld" != yes && break
3390         ;;
3391       esac
3392     fi
3393   done
3394   IFS="$lt_save_ifs"
3395 else
3396   lt_cv_path_LD="$LD" # Let the user override the test with a path.
3400 LD="$lt_cv_path_LD"
3401 if test -n "$LD"; then
3402   echo "$as_me:$LINENO: result: $LD" >&5
3403 echo "${ECHO_T}$LD" >&6
3404 else
3405   echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6
3408 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3409 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3410    { (exit 1); exit 1; }; }
3411 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3412 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
3413 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3414   echo $ECHO_N "(cached) $ECHO_C" >&6
3415 else
3416   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
3417 case `$LD -v 2>&1 </dev/null` in
3418 *GNU* | *'with BFD'*)
3419   lt_cv_prog_gnu_ld=yes
3420   ;;
3422   lt_cv_prog_gnu_ld=no
3423   ;;
3424 esac
3426 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3427 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
3428 with_gnu_ld=$lt_cv_prog_gnu_ld
3431 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
3432 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
3433 if test "${lt_cv_ld_reload_flag+set}" = set; then
3434   echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436   lt_cv_ld_reload_flag='-r'
3438 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
3439 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
3440 reload_flag=$lt_cv_ld_reload_flag
3441 case $reload_flag in
3442 "" | " "*) ;;
3443 *) reload_flag=" $reload_flag" ;;
3444 esac
3445 reload_cmds='$LD$reload_flag -o $output$reload_objs'
3447 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
3448 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
3449 if test "${lt_cv_path_NM+set}" = set; then
3450   echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452   if test -n "$NM"; then
3453   # Let the user override the test.
3454   lt_cv_path_NM="$NM"
3455 else
3456   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3457   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
3458     IFS="$lt_save_ifs"
3459     test -z "$ac_dir" && ac_dir=.
3460     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
3461     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3462       # Check to see if the nm accepts a BSD-compat flag.
3463       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3464       #   nm: unknown option "B" ignored
3465       # Tru64's nm complains that /dev/null is an invalid object file
3466       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3467       */dev/null* | *'Invalid file or object type'*)
3468         lt_cv_path_NM="$tmp_nm -B"
3469         break
3470         ;;
3471       *)
3472         case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3473         */dev/null*)
3474           lt_cv_path_NM="$tmp_nm -p"
3475           break
3476           ;;
3477         *)
3478           lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3479           continue # so that we can try to find one that supports BSD flags
3480           ;;
3481         esac
3482       esac
3483     fi
3484   done
3485   IFS="$lt_save_ifs"
3486   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
3489 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3490 echo "${ECHO_T}$lt_cv_path_NM" >&6
3491 NM="$lt_cv_path_NM"
3493 echo "$as_me:$LINENO: checking whether ln -s works" >&5
3494 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
3495 LN_S=$as_ln_s
3496 if test "$LN_S" = "ln -s"; then
3497   echo "$as_me:$LINENO: result: yes" >&5
3498 echo "${ECHO_T}yes" >&6
3499 else
3500   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3501 echo "${ECHO_T}no, using $LN_S" >&6
3504 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
3505 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
3506 if test "${lt_cv_deplibs_check_method+set}" = set; then
3507   echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509   lt_cv_file_magic_cmd='$MAGIC_CMD'
3510 lt_cv_file_magic_test_file=
3511 lt_cv_deplibs_check_method='unknown'
3512 # Need to set the preceding variable on all platforms that support
3513 # interlibrary dependencies.
3514 # 'none' -- dependencies not supported.
3515 # `unknown' -- same as none, but documents that we really don't know.
3516 # 'pass_all' -- all dependencies passed with no checks.
3517 # 'test_compile' -- check by making test program.
3518 # 'file_magic [[regex]]' -- check by looking for files in library path
3519 # which responds to the $file_magic_cmd with a given extended regex.
3520 # If you have `file' or equivalent on your system and you're not sure
3521 # whether `pass_all' will *always* work, you probably want this one.
3523 case $host_os in
3524 aix4* | aix5*)
3525   lt_cv_deplibs_check_method=pass_all
3526   ;;
3528 beos*)
3529   lt_cv_deplibs_check_method=pass_all
3530   ;;
3532 bsdi4*)
3533   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
3534   lt_cv_file_magic_cmd='/usr/bin/file -L'
3535   lt_cv_file_magic_test_file=/shlib/libc.so
3536   ;;
3538 cygwin*)
3539   # func_win32_libid is a shell function defined in ltmain.sh
3540   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
3541   lt_cv_file_magic_cmd='func_win32_libid'
3542   ;;
3544 mingw* | pw32*)
3545   # Base MSYS/MinGW do not provide the 'file' command needed by
3546   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
3547   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
3548   lt_cv_file_magic_cmd='$OBJDUMP -f'
3549   ;;
3551 darwin* | rhapsody*)
3552   lt_cv_deplibs_check_method=pass_all
3553   ;;
3555 freebsd* | kfreebsd*-gnu)
3556   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3557     case $host_cpu in
3558     i*86 )
3559       # Not sure whether the presence of OpenBSD here was a mistake.
3560       # Let's accept both of them until this is cleared up.
3561       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
3562       lt_cv_file_magic_cmd=/usr/bin/file
3563       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3564       ;;
3565     esac
3566   else
3567     lt_cv_deplibs_check_method=pass_all
3568   fi
3569   ;;
3571 gnu*)
3572   lt_cv_deplibs_check_method=pass_all
3573   ;;
3575 hpux10.20* | hpux11*)
3576   lt_cv_file_magic_cmd=/usr/bin/file
3577   case "$host_cpu" in
3578   ia64*)
3579     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
3580     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
3581     ;;
3582   hppa*64*)
3583     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]'
3584     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
3585     ;;
3586   *)
3587     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
3588     lt_cv_file_magic_test_file=/usr/lib/libc.sl
3589     ;;
3590   esac
3591   ;;
3593 irix5* | irix6* | nonstopux*)
3594   case $LD in
3595   *-32|*"-32 ") libmagic=32-bit;;
3596   *-n32|*"-n32 ") libmagic=N32;;
3597   *-64|*"-64 ") libmagic=64-bit;;
3598   *) libmagic=never-match;;
3599   esac
3600   lt_cv_deplibs_check_method=pass_all
3601   ;;
3603 # This must be Linux ELF.
3604 linux*)
3605   case $host_cpu in
3606   alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*|x86_64*)
3607     lt_cv_deplibs_check_method=pass_all ;;
3608   *)
3609     # glibc up to 2.1.1 does not perform some relocations on ARM
3610     # this will be overridden with pass_all, but let us keep it just in case
3611     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
3612   esac
3613   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
3614   lt_cv_deplibs_check_method=pass_all
3615   ;;
3617 netbsd*)
3618   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
3619     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
3620   else
3621     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
3622   fi
3623   ;;
3625 newos6*)
3626   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
3627   lt_cv_file_magic_cmd=/usr/bin/file
3628   lt_cv_file_magic_test_file=/usr/lib/libnls.so
3629   ;;
3631 nto-qnx*)
3632   lt_cv_deplibs_check_method=unknown
3633   ;;
3635 openbsd*)
3636   lt_cv_file_magic_cmd=/usr/bin/file
3637   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
3638   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
3639     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
3640   else
3641     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
3642   fi
3643   ;;
3645 osf3* | osf4* | osf5*)
3646   lt_cv_deplibs_check_method=pass_all
3647   ;;
3649 sco3.2v5*)
3650   lt_cv_deplibs_check_method=pass_all
3651   ;;
3653 solaris*)
3654   lt_cv_deplibs_check_method=pass_all
3655   ;;
3657 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
3658   case $host_vendor in
3659   motorola)
3660     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]'
3661     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
3662     ;;
3663   ncr)
3664     lt_cv_deplibs_check_method=pass_all
3665     ;;
3666   sequent)
3667     lt_cv_file_magic_cmd='/bin/file'
3668     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
3669     ;;
3670   sni)
3671     lt_cv_file_magic_cmd='/bin/file'
3672     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
3673     lt_cv_file_magic_test_file=/lib/libc.so
3674     ;;
3675   siemens)
3676     lt_cv_deplibs_check_method=pass_all
3677     ;;
3678   esac
3679   ;;
3681 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
3682   lt_cv_deplibs_check_method=pass_all
3683   ;;
3684 esac
3687 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
3688 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
3689 file_magic_cmd=$lt_cv_file_magic_cmd
3690 deplibs_check_method=$lt_cv_deplibs_check_method
3691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
3696 # If no C compiler was specified, use CC.
3697 LTCC=${LTCC-"$CC"}
3699 # Allow CC to be a program name with arguments.
3700 compiler=$CC
3703 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
3704 if test "${enable_libtool_lock+set}" = set; then
3705   enableval="$enable_libtool_lock"
3706   
3707 fi; 
3708 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
3710 # Some flags need to be propagated to the compiler or linker for good
3711 # libtool support.
3712 case $host in
3713 ia64-*-hpux*)
3714   # Find out which ABI we are using.
3715   echo 'int i;' > conftest.$ac_ext
3716   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3717   (eval $ac_compile) 2>&5
3718   ac_status=$?
3719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720   (exit $ac_status); }; then
3721     case `/usr/bin/file conftest.$ac_objext` in
3722     *ELF-32*)
3723       HPUX_IA64_MODE="32"
3724       ;;
3725     *ELF-64*)
3726       HPUX_IA64_MODE="64"
3727       ;;
3728     esac
3729   fi
3730   rm -rf conftest*
3731   ;;
3732 *-*-irix6*)
3733   # Find out which ABI we are using.
3734   echo '#line __oline__ "configure"' > conftest.$ac_ext
3735   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3736   (eval $ac_compile) 2>&5
3737   ac_status=$?
3738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739   (exit $ac_status); }; then
3740    if test "$lt_cv_prog_gnu_ld" = yes; then
3741     case `/usr/bin/file conftest.$ac_objext` in
3742     *32-bit*)
3743       LD="${LD-ld} -melf32bsmip"
3744       ;;
3745     *N32*)
3746       LD="${LD-ld} -melf32bmipn32"
3747       ;;
3748     *64-bit*)
3749       LD="${LD-ld} -melf64bmip"
3750       ;;
3751     esac
3752    else
3753     case `/usr/bin/file conftest.$ac_objext` in
3754     *32-bit*)
3755       LD="${LD-ld} -32"
3756       ;;
3757     *N32*)
3758       LD="${LD-ld} -n32"
3759       ;;
3760     *64-bit*)
3761       LD="${LD-ld} -64"
3762       ;;
3763     esac
3764    fi
3765   fi
3766   rm -rf conftest*
3767   ;;
3769 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
3770   # Find out which ABI we are using.
3771   echo 'int i;' > conftest.$ac_ext
3772   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3773   (eval $ac_compile) 2>&5
3774   ac_status=$?
3775   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3776   (exit $ac_status); }; then
3777     case "`/usr/bin/file conftest.o`" in
3778     *32-bit*)
3779       case $host in
3780         x86_64-*linux*)
3781           LD="${LD-ld} -m elf_i386"
3782           ;;
3783         ppc64-*linux*|powerpc64-*linux*)
3784           LD="${LD-ld} -m elf32ppclinux"
3785           ;;
3786         s390x-*linux*)
3787           LD="${LD-ld} -m elf_s390"
3788           ;;
3789         sparc64-*linux*)
3790           LD="${LD-ld} -m elf32_sparc"
3791           ;;
3792       esac
3793       ;;
3794     *64-bit*)
3795       case $host in
3796         x86_64-*linux*)
3797           LD="${LD-ld} -m elf_x86_64"
3798           ;;
3799         ppc*-*linux*|powerpc*-*linux*)
3800           LD="${LD-ld} -m elf64ppc"
3801           ;;
3802         s390*-*linux*)
3803           LD="${LD-ld} -m elf64_s390"
3804           ;;
3805         sparc*-*linux*)
3806           LD="${LD-ld} -m elf64_sparc"
3807           ;;
3808       esac
3809       ;;
3810     esac
3811   fi
3812   rm -rf conftest*
3813   ;;
3815 *-*-sco3.2v5*)
3816   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
3817   SAVE_CFLAGS="$CFLAGS"
3818   CFLAGS="$CFLAGS -belf"
3819   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
3820 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
3821 if test "${lt_cv_cc_needs_belf+set}" = set; then
3822   echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824   ac_ext=c
3825 ac_cpp='$CPP $CPPFLAGS'
3826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3830      cat >conftest.$ac_ext <<_ACEOF
3831 /* confdefs.h.  */
3832 _ACEOF
3833 cat confdefs.h >>conftest.$ac_ext
3834 cat >>conftest.$ac_ext <<_ACEOF
3835 /* end confdefs.h.  */
3838 main ()
3841   ;
3842   return 0;
3844 _ACEOF
3845 rm -f conftest.$ac_objext conftest$ac_exeext
3846 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3847   (eval $ac_link) 2>conftest.er1
3848   ac_status=$?
3849   grep -v '^ *+' conftest.er1 >conftest.err
3850   rm -f conftest.er1
3851   cat conftest.err >&5
3852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853   (exit $ac_status); } &&
3854          { ac_try='test -z "$ac_c_werror_flag"
3855                          || test ! -s conftest.err'
3856   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3857   (eval $ac_try) 2>&5
3858   ac_status=$?
3859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3860   (exit $ac_status); }; } &&
3861          { ac_try='test -s conftest$ac_exeext'
3862   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3863   (eval $ac_try) 2>&5
3864   ac_status=$?
3865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866   (exit $ac_status); }; }; then
3867   lt_cv_cc_needs_belf=yes
3868 else
3869   echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 lt_cv_cc_needs_belf=no
3874 rm -f conftest.err conftest.$ac_objext \
3875       conftest$ac_exeext conftest.$ac_ext
3876      ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
3884 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
3885   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
3886     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
3887     CFLAGS="$SAVE_CFLAGS"
3888   fi
3889   ;;
3891 esac
3893 need_locks="$enable_libtool_lock"
3896 ac_ext=c
3897 ac_cpp='$CPP $CPPFLAGS'
3898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3901 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3902 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3903 # On Suns, sometimes $CPP names a directory.
3904 if test -n "$CPP" && test -d "$CPP"; then
3905   CPP=
3907 if test -z "$CPP"; then
3908   if test "${ac_cv_prog_CPP+set}" = set; then
3909   echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911       # Double quotes because CPP needs to be expanded
3912     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3913     do
3914       ac_preproc_ok=false
3915 for ac_c_preproc_warn_flag in '' yes
3917   # Use a header file that comes with gcc, so configuring glibc
3918   # with a fresh cross-compiler works.
3919   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3920   # <limits.h> exists even on freestanding compilers.
3921   # On the NeXT, cc -E runs the code through the compiler's parser,
3922   # not just through cpp. "Syntax error" is here to catch this case.
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 @%:@ifdef __STDC__
3930 @%:@ include <limits.h>
3931 @%:@else
3932 @%:@ include <assert.h>
3933 @%:@endif
3934                      Syntax error
3935 _ACEOF
3936 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3937   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3938   ac_status=$?
3939   grep -v '^ *+' conftest.er1 >conftest.err
3940   rm -f conftest.er1
3941   cat conftest.err >&5
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); } >/dev/null; then
3944   if test -s conftest.err; then
3945     ac_cpp_err=$ac_c_preproc_warn_flag
3946     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3947   else
3948     ac_cpp_err=
3949   fi
3950 else
3951   ac_cpp_err=yes
3953 if test -z "$ac_cpp_err"; then
3954   :
3955 else
3956   echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3959   # Broken: fails on valid input.
3960 continue
3962 rm -f conftest.err conftest.$ac_ext
3964   # OK, works on sane cases.  Now check whether non-existent headers
3965   # can be detected and how.
3966   cat >conftest.$ac_ext <<_ACEOF
3967 /* confdefs.h.  */
3968 _ACEOF
3969 cat confdefs.h >>conftest.$ac_ext
3970 cat >>conftest.$ac_ext <<_ACEOF
3971 /* end confdefs.h.  */
3972 @%:@include <ac_nonexistent.h>
3973 _ACEOF
3974 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3975   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3976   ac_status=$?
3977   grep -v '^ *+' conftest.er1 >conftest.err
3978   rm -f conftest.er1
3979   cat conftest.err >&5
3980   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3981   (exit $ac_status); } >/dev/null; then
3982   if test -s conftest.err; then
3983     ac_cpp_err=$ac_c_preproc_warn_flag
3984     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3985   else
3986     ac_cpp_err=
3987   fi
3988 else
3989   ac_cpp_err=yes
3991 if test -z "$ac_cpp_err"; then
3992   # Broken: success on invalid input.
3993 continue
3994 else
3995   echo "$as_me: failed program was:" >&5
3996 sed 's/^/| /' conftest.$ac_ext >&5
3998   # Passes both tests.
3999 ac_preproc_ok=:
4000 break
4002 rm -f conftest.err conftest.$ac_ext
4004 done
4005 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4006 rm -f conftest.err conftest.$ac_ext
4007 if $ac_preproc_ok; then
4008   break
4011     done
4012     ac_cv_prog_CPP=$CPP
4013   
4015   CPP=$ac_cv_prog_CPP
4016 else
4017   ac_cv_prog_CPP=$CPP
4019 echo "$as_me:$LINENO: result: $CPP" >&5
4020 echo "${ECHO_T}$CPP" >&6
4021 ac_preproc_ok=false
4022 for ac_c_preproc_warn_flag in '' yes
4024   # Use a header file that comes with gcc, so configuring glibc
4025   # with a fresh cross-compiler works.
4026   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4027   # <limits.h> exists even on freestanding compilers.
4028   # On the NeXT, cc -E runs the code through the compiler's parser,
4029   # not just through cpp. "Syntax error" is here to catch this case.
4030   cat >conftest.$ac_ext <<_ACEOF
4031 /* confdefs.h.  */
4032 _ACEOF
4033 cat confdefs.h >>conftest.$ac_ext
4034 cat >>conftest.$ac_ext <<_ACEOF
4035 /* end confdefs.h.  */
4036 @%:@ifdef __STDC__
4037 @%:@ include <limits.h>
4038 @%:@else
4039 @%:@ include <assert.h>
4040 @%:@endif
4041                      Syntax error
4042 _ACEOF
4043 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4044   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4045   ac_status=$?
4046   grep -v '^ *+' conftest.er1 >conftest.err
4047   rm -f conftest.er1
4048   cat conftest.err >&5
4049   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050   (exit $ac_status); } >/dev/null; then
4051   if test -s conftest.err; then
4052     ac_cpp_err=$ac_c_preproc_warn_flag
4053     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4054   else
4055     ac_cpp_err=
4056   fi
4057 else
4058   ac_cpp_err=yes
4060 if test -z "$ac_cpp_err"; then
4061   :
4062 else
4063   echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066   # Broken: fails on valid input.
4067 continue
4069 rm -f conftest.err conftest.$ac_ext
4071   # OK, works on sane cases.  Now check whether non-existent headers
4072   # can be detected and how.
4073   cat >conftest.$ac_ext <<_ACEOF
4074 /* confdefs.h.  */
4075 _ACEOF
4076 cat confdefs.h >>conftest.$ac_ext
4077 cat >>conftest.$ac_ext <<_ACEOF
4078 /* end confdefs.h.  */
4079 @%:@include <ac_nonexistent.h>
4080 _ACEOF
4081 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4082   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4083   ac_status=$?
4084   grep -v '^ *+' conftest.er1 >conftest.err
4085   rm -f conftest.er1
4086   cat conftest.err >&5
4087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4088   (exit $ac_status); } >/dev/null; then
4089   if test -s conftest.err; then
4090     ac_cpp_err=$ac_c_preproc_warn_flag
4091     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4092   else
4093     ac_cpp_err=
4094   fi
4095 else
4096   ac_cpp_err=yes
4098 if test -z "$ac_cpp_err"; then
4099   # Broken: success on invalid input.
4100 continue
4101 else
4102   echo "$as_me: failed program was:" >&5
4103 sed 's/^/| /' conftest.$ac_ext >&5
4105   # Passes both tests.
4106 ac_preproc_ok=:
4107 break
4109 rm -f conftest.err conftest.$ac_ext
4111 done
4112 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4113 rm -f conftest.err conftest.$ac_ext
4114 if $ac_preproc_ok; then
4115   :
4116 else
4117   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4118 See \`config.log' for more details." >&5
4119 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4120 See \`config.log' for more details." >&2;}
4121    { (exit 1); exit 1; }; }
4124 ac_ext=c
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4131 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4132 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4133 if test "${ac_cv_header_stdc+set}" = set; then
4134   echo $ECHO_N "(cached) $ECHO_C" >&6
4135 else
4136   cat >conftest.$ac_ext <<_ACEOF
4137 /* confdefs.h.  */
4138 _ACEOF
4139 cat confdefs.h >>conftest.$ac_ext
4140 cat >>conftest.$ac_ext <<_ACEOF
4141 /* end confdefs.h.  */
4142 #include <stdlib.h>
4143 #include <stdarg.h>
4144 #include <string.h>
4145 #include <float.h>
4148 main ()
4151   ;
4152   return 0;
4154 _ACEOF
4155 rm -f conftest.$ac_objext
4156 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4157   (eval $ac_compile) 2>conftest.er1
4158   ac_status=$?
4159   grep -v '^ *+' conftest.er1 >conftest.err
4160   rm -f conftest.er1
4161   cat conftest.err >&5
4162   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163   (exit $ac_status); } &&
4164          { ac_try='test -z "$ac_c_werror_flag"
4165                          || test ! -s conftest.err'
4166   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4167   (eval $ac_try) 2>&5
4168   ac_status=$?
4169   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4170   (exit $ac_status); }; } &&
4171          { ac_try='test -s conftest.$ac_objext'
4172   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4173   (eval $ac_try) 2>&5
4174   ac_status=$?
4175   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176   (exit $ac_status); }; }; then
4177   ac_cv_header_stdc=yes
4178 else
4179   echo "$as_me: failed program was:" >&5
4180 sed 's/^/| /' conftest.$ac_ext >&5
4182 ac_cv_header_stdc=no
4184 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4186 if test $ac_cv_header_stdc = yes; then
4187   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4188   cat >conftest.$ac_ext <<_ACEOF
4189 /* confdefs.h.  */
4190 _ACEOF
4191 cat confdefs.h >>conftest.$ac_ext
4192 cat >>conftest.$ac_ext <<_ACEOF
4193 /* end confdefs.h.  */
4194 #include <string.h>
4196 _ACEOF
4197 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4198   $EGREP "memchr" >/dev/null 2>&1; then
4199   :
4200 else
4201   ac_cv_header_stdc=no
4203 rm -f conftest*
4207 if test $ac_cv_header_stdc = yes; then
4208   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4209   cat >conftest.$ac_ext <<_ACEOF
4210 /* confdefs.h.  */
4211 _ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h.  */
4215 #include <stdlib.h>
4217 _ACEOF
4218 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4219   $EGREP "free" >/dev/null 2>&1; then
4220   :
4221 else
4222   ac_cv_header_stdc=no
4224 rm -f conftest*
4228 if test $ac_cv_header_stdc = yes; then
4229   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4230   if test "$cross_compiling" = yes; then
4231   :
4232 else
4233   cat >conftest.$ac_ext <<_ACEOF
4234 /* confdefs.h.  */
4235 _ACEOF
4236 cat confdefs.h >>conftest.$ac_ext
4237 cat >>conftest.$ac_ext <<_ACEOF
4238 /* end confdefs.h.  */
4239 #include <ctype.h>
4240 #if ((' ' & 0x0FF) == 0x020)
4241 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243 #else
4244 # define ISLOWER(c) \
4245                    (('a' <= (c) && (c) <= 'i') \
4246                      || ('j' <= (c) && (c) <= 'r') \
4247                      || ('s' <= (c) && (c) <= 'z'))
4248 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249 #endif
4251 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4253 main ()
4255   int i;
4256   for (i = 0; i < 256; i++)
4257     if (XOR (islower (i), ISLOWER (i))
4258         || toupper (i) != TOUPPER (i))
4259       exit(2);
4260   exit (0);
4262 _ACEOF
4263 rm -f conftest$ac_exeext
4264 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4265   (eval $ac_link) 2>&5
4266   ac_status=$?
4267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4269   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4270   (eval $ac_try) 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; }; then
4274   :
4275 else
4276   echo "$as_me: program exited with status $ac_status" >&5
4277 echo "$as_me: failed program was:" >&5
4278 sed 's/^/| /' conftest.$ac_ext >&5
4280 ( exit $ac_status )
4281 ac_cv_header_stdc=no
4283 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4287 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4288 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4289 if test $ac_cv_header_stdc = yes; then
4290   
4291 cat >>confdefs.h <<\_ACEOF
4292 @%:@define STDC_HEADERS 1
4293 _ACEOF
4297 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4307 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4308                   inttypes.h stdint.h unistd.h
4310 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4311 echo "$as_me:$LINENO: checking for $ac_header" >&5
4312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4314   echo $ECHO_N "(cached) $ECHO_C" >&6
4315 else
4316   cat >conftest.$ac_ext <<_ACEOF
4317 /* confdefs.h.  */
4318 _ACEOF
4319 cat confdefs.h >>conftest.$ac_ext
4320 cat >>conftest.$ac_ext <<_ACEOF
4321 /* end confdefs.h.  */
4322 $ac_includes_default
4324 @%:@include <$ac_header>
4325 _ACEOF
4326 rm -f conftest.$ac_objext
4327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4328   (eval $ac_compile) 2>conftest.er1
4329   ac_status=$?
4330   grep -v '^ *+' conftest.er1 >conftest.err
4331   rm -f conftest.er1
4332   cat conftest.err >&5
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); } &&
4335          { ac_try='test -z "$ac_c_werror_flag"
4336                          || test ! -s conftest.err'
4337   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4338   (eval $ac_try) 2>&5
4339   ac_status=$?
4340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4341   (exit $ac_status); }; } &&
4342          { ac_try='test -s conftest.$ac_objext'
4343   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4344   (eval $ac_try) 2>&5
4345   ac_status=$?
4346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347   (exit $ac_status); }; }; then
4348   eval "$as_ac_Header=yes"
4349 else
4350   echo "$as_me: failed program was:" >&5
4351 sed 's/^/| /' conftest.$ac_ext >&5
4353 eval "$as_ac_Header=no"
4355 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4357 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4358 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4359 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4360   cat >>confdefs.h <<_ACEOF
4361 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4362 _ACEOF
4366 done
4370 for ac_header in dlfcn.h
4372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4374   echo "$as_me:$LINENO: checking for $ac_header" >&5
4375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4376 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4379 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4380 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4381 else
4382   # Is the header compilable?
4383 echo "$as_me:$LINENO: checking $ac_header usability" >&5
4384 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
4385 cat >conftest.$ac_ext <<_ACEOF
4386 /* confdefs.h.  */
4387 _ACEOF
4388 cat confdefs.h >>conftest.$ac_ext
4389 cat >>conftest.$ac_ext <<_ACEOF
4390 /* end confdefs.h.  */
4391 $ac_includes_default
4392 @%:@include <$ac_header>
4393 _ACEOF
4394 rm -f conftest.$ac_objext
4395 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4396   (eval $ac_compile) 2>conftest.er1
4397   ac_status=$?
4398   grep -v '^ *+' conftest.er1 >conftest.err
4399   rm -f conftest.er1
4400   cat conftest.err >&5
4401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4402   (exit $ac_status); } &&
4403          { ac_try='test -z "$ac_c_werror_flag"
4404                          || test ! -s conftest.err'
4405   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4406   (eval $ac_try) 2>&5
4407   ac_status=$?
4408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4409   (exit $ac_status); }; } &&
4410          { ac_try='test -s conftest.$ac_objext'
4411   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4412   (eval $ac_try) 2>&5
4413   ac_status=$?
4414   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415   (exit $ac_status); }; }; then
4416   ac_header_compiler=yes
4417 else
4418   echo "$as_me: failed program was:" >&5
4419 sed 's/^/| /' conftest.$ac_ext >&5
4421 ac_header_compiler=no
4423 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4424 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4425 echo "${ECHO_T}$ac_header_compiler" >&6
4427 # Is the header present?
4428 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4430 cat >conftest.$ac_ext <<_ACEOF
4431 /* confdefs.h.  */
4432 _ACEOF
4433 cat confdefs.h >>conftest.$ac_ext
4434 cat >>conftest.$ac_ext <<_ACEOF
4435 /* end confdefs.h.  */
4436 @%:@include <$ac_header>
4437 _ACEOF
4438 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4439   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4440   ac_status=$?
4441   grep -v '^ *+' conftest.er1 >conftest.err
4442   rm -f conftest.er1
4443   cat conftest.err >&5
4444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4445   (exit $ac_status); } >/dev/null; then
4446   if test -s conftest.err; then
4447     ac_cpp_err=$ac_c_preproc_warn_flag
4448     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4449   else
4450     ac_cpp_err=
4451   fi
4452 else
4453   ac_cpp_err=yes
4455 if test -z "$ac_cpp_err"; then
4456   ac_header_preproc=yes
4457 else
4458   echo "$as_me: failed program was:" >&5
4459 sed 's/^/| /' conftest.$ac_ext >&5
4461   ac_header_preproc=no
4463 rm -f conftest.err conftest.$ac_ext
4464 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4465 echo "${ECHO_T}$ac_header_preproc" >&6
4467 # So?  What about this header?
4468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4469   yes:no: )
4470     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4471 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4472     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4474     ac_header_preproc=yes
4475     ;;
4476   no:yes:* )
4477     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4478 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4479     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
4480 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
4481     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4482 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4483     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
4484 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
4485     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4487     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4488 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4489     (
4490       cat <<\_ASBOX
4491 @%:@@%:@ ------------------------------------------ @%:@@%:@
4492 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
4493 @%:@@%:@ ------------------------------------------ @%:@@%:@
4494 _ASBOX
4495     ) |
4496       sed "s/^/$as_me: WARNING:     /" >&2
4497     ;;
4498 esac
4499 echo "$as_me:$LINENO: checking for $ac_header" >&5
4500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4501 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4502   echo $ECHO_N "(cached) $ECHO_C" >&6
4503 else
4504   eval "$as_ac_Header=\$ac_header_preproc"
4506 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4507 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4511   cat >>confdefs.h <<_ACEOF
4512 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4513 _ACEOF
4517 done
4519 ac_ext=cc
4520 ac_cpp='$CXXCPP $CPPFLAGS'
4521 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4522 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4523 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4524 if test -n "$ac_tool_prefix"; then
4525   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4526   do
4527     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4528 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4529 echo "$as_me:$LINENO: checking for $ac_word" >&5
4530 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4531 if test "${ac_cv_prog_CXX+set}" = set; then
4532   echo $ECHO_N "(cached) $ECHO_C" >&6
4533 else
4534   if test -n "$CXX"; then
4535   ac_cv_prog_CXX="$CXX" # Let the user override the test.
4536 else
4537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4538 for as_dir in $PATH
4540   IFS=$as_save_IFS
4541   test -z "$as_dir" && as_dir=.
4542   for ac_exec_ext in '' $ac_executable_extensions; do
4543   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4544     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4545     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4546     break 2
4547   fi
4548 done
4549 done
4553 CXX=$ac_cv_prog_CXX
4554 if test -n "$CXX"; then
4555   echo "$as_me:$LINENO: result: $CXX" >&5
4556 echo "${ECHO_T}$CXX" >&6
4557 else
4558   echo "$as_me:$LINENO: result: no" >&5
4559 echo "${ECHO_T}no" >&6
4562     test -n "$CXX" && break
4563   done
4565 if test -z "$CXX"; then
4566   ac_ct_CXX=$CXX
4567   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
4569   # Extract the first word of "$ac_prog", so it can be a program name with args.
4570 set dummy $ac_prog; ac_word=$2
4571 echo "$as_me:$LINENO: checking for $ac_word" >&5
4572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4573 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
4574   echo $ECHO_N "(cached) $ECHO_C" >&6
4575 else
4576   if test -n "$ac_ct_CXX"; then
4577   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4578 else
4579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4580 for as_dir in $PATH
4582   IFS=$as_save_IFS
4583   test -z "$as_dir" && as_dir=.
4584   for ac_exec_ext in '' $ac_executable_extensions; do
4585   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4586     ac_cv_prog_ac_ct_CXX="$ac_prog"
4587     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4588     break 2
4589   fi
4590 done
4591 done
4595 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4596 if test -n "$ac_ct_CXX"; then
4597   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
4598 echo "${ECHO_T}$ac_ct_CXX" >&6
4599 else
4600   echo "$as_me:$LINENO: result: no" >&5
4601 echo "${ECHO_T}no" >&6
4604   test -n "$ac_ct_CXX" && break
4605 done
4606 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
4608   CXX=$ac_ct_CXX
4612 # Provide some information about the compiler.
4613 echo "$as_me:$LINENO:" \
4614      "checking for C++ compiler version" >&5
4615 ac_compiler=`set X $ac_compile; echo $2`
4616 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4617   (eval $ac_compiler --version </dev/null >&5) 2>&5
4618   ac_status=$?
4619   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620   (exit $ac_status); }
4621 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4622   (eval $ac_compiler -v </dev/null >&5) 2>&5
4623   ac_status=$?
4624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625   (exit $ac_status); }
4626 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4627   (eval $ac_compiler -V </dev/null >&5) 2>&5
4628   ac_status=$?
4629   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4630   (exit $ac_status); }
4632 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
4633 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
4634 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   cat >conftest.$ac_ext <<_ACEOF
4638 /* confdefs.h.  */
4639 _ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h.  */
4645 main ()
4647 #ifndef __GNUC__
4648        choke me
4649 #endif
4651   ;
4652   return 0;
4654 _ACEOF
4655 rm -f conftest.$ac_objext
4656 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4657   (eval $ac_compile) 2>conftest.er1
4658   ac_status=$?
4659   grep -v '^ *+' conftest.er1 >conftest.err
4660   rm -f conftest.er1
4661   cat conftest.err >&5
4662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4663   (exit $ac_status); } &&
4664          { ac_try='test -z "$ac_cxx_werror_flag"
4665                          || test ! -s conftest.err'
4666   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4667   (eval $ac_try) 2>&5
4668   ac_status=$?
4669   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4670   (exit $ac_status); }; } &&
4671          { ac_try='test -s conftest.$ac_objext'
4672   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4673   (eval $ac_try) 2>&5
4674   ac_status=$?
4675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4676   (exit $ac_status); }; }; then
4677   ac_compiler_gnu=yes
4678 else
4679   echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4682 ac_compiler_gnu=no
4684 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4685 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4688 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
4689 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
4690 GXX=`test $ac_compiler_gnu = yes && echo yes`
4691 ac_test_CXXFLAGS=${CXXFLAGS+set}
4692 ac_save_CXXFLAGS=$CXXFLAGS
4693 CXXFLAGS="-g"
4694 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
4695 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
4696 if test "${ac_cv_prog_cxx_g+set}" = set; then
4697   echo $ECHO_N "(cached) $ECHO_C" >&6
4698 else
4699   cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h.  */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h.  */
4707 main ()
4710   ;
4711   return 0;
4713 _ACEOF
4714 rm -f conftest.$ac_objext
4715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4716   (eval $ac_compile) 2>conftest.er1
4717   ac_status=$?
4718   grep -v '^ *+' conftest.er1 >conftest.err
4719   rm -f conftest.er1
4720   cat conftest.err >&5
4721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722   (exit $ac_status); } &&
4723          { ac_try='test -z "$ac_cxx_werror_flag"
4724                          || test ! -s conftest.err'
4725   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4726   (eval $ac_try) 2>&5
4727   ac_status=$?
4728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4729   (exit $ac_status); }; } &&
4730          { ac_try='test -s conftest.$ac_objext'
4731   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4732   (eval $ac_try) 2>&5
4733   ac_status=$?
4734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4735   (exit $ac_status); }; }; then
4736   ac_cv_prog_cxx_g=yes
4737 else
4738   echo "$as_me: failed program was:" >&5
4739 sed 's/^/| /' conftest.$ac_ext >&5
4741 ac_cv_prog_cxx_g=no
4743 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4745 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
4746 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
4747 if test "$ac_test_CXXFLAGS" = set; then
4748   CXXFLAGS=$ac_save_CXXFLAGS
4749 elif test $ac_cv_prog_cxx_g = yes; then
4750   if test "$GXX" = yes; then
4751     CXXFLAGS="-g -O2"
4752   else
4753     CXXFLAGS="-g"
4754   fi
4755 else
4756   if test "$GXX" = yes; then
4757     CXXFLAGS="-O2"
4758   else
4759     CXXFLAGS=
4760   fi
4762 for ac_declaration in \
4763    '' \
4764    'extern "C" void std::exit (int) throw (); using std::exit;' \
4765    'extern "C" void std::exit (int); using std::exit;' \
4766    'extern "C" void exit (int) throw ();' \
4767    'extern "C" void exit (int);' \
4768    'void exit (int);'
4770   cat >conftest.$ac_ext <<_ACEOF
4771 /* confdefs.h.  */
4772 _ACEOF
4773 cat confdefs.h >>conftest.$ac_ext
4774 cat >>conftest.$ac_ext <<_ACEOF
4775 /* end confdefs.h.  */
4776 $ac_declaration
4777 @%:@include <stdlib.h>
4779 main ()
4781 exit (42);
4782   ;
4783   return 0;
4785 _ACEOF
4786 rm -f conftest.$ac_objext
4787 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4788   (eval $ac_compile) 2>conftest.er1
4789   ac_status=$?
4790   grep -v '^ *+' conftest.er1 >conftest.err
4791   rm -f conftest.er1
4792   cat conftest.err >&5
4793   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794   (exit $ac_status); } &&
4795          { ac_try='test -z "$ac_cxx_werror_flag"
4796                          || test ! -s conftest.err'
4797   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4798   (eval $ac_try) 2>&5
4799   ac_status=$?
4800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4801   (exit $ac_status); }; } &&
4802          { ac_try='test -s conftest.$ac_objext'
4803   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4804   (eval $ac_try) 2>&5
4805   ac_status=$?
4806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4807   (exit $ac_status); }; }; then
4808   :
4809 else
4810   echo "$as_me: failed program was:" >&5
4811 sed 's/^/| /' conftest.$ac_ext >&5
4813 continue
4815 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4816   cat >conftest.$ac_ext <<_ACEOF
4817 /* confdefs.h.  */
4818 _ACEOF
4819 cat confdefs.h >>conftest.$ac_ext
4820 cat >>conftest.$ac_ext <<_ACEOF
4821 /* end confdefs.h.  */
4822 $ac_declaration
4824 main ()
4826 exit (42);
4827   ;
4828   return 0;
4830 _ACEOF
4831 rm -f conftest.$ac_objext
4832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4833   (eval $ac_compile) 2>conftest.er1
4834   ac_status=$?
4835   grep -v '^ *+' conftest.er1 >conftest.err
4836   rm -f conftest.er1
4837   cat conftest.err >&5
4838   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839   (exit $ac_status); } &&
4840          { ac_try='test -z "$ac_cxx_werror_flag"
4841                          || test ! -s conftest.err'
4842   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4843   (eval $ac_try) 2>&5
4844   ac_status=$?
4845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4846   (exit $ac_status); }; } &&
4847          { ac_try='test -s conftest.$ac_objext'
4848   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4849   (eval $ac_try) 2>&5
4850   ac_status=$?
4851   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4852   (exit $ac_status); }; }; then
4853   break
4854 else
4855   echo "$as_me: failed program was:" >&5
4856 sed 's/^/| /' conftest.$ac_ext >&5
4859 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4860 done
4861 rm -f conftest*
4862 if test -n "$ac_declaration"; then
4863   echo '#ifdef __cplusplus' >>confdefs.h
4864   echo $ac_declaration      >>confdefs.h
4865   echo '#endif'             >>confdefs.h
4868 ac_ext=cc
4869 ac_cpp='$CXXCPP $CPPFLAGS'
4870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4874 depcc="$CXX"  am_compiler_list=
4876 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
4877 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
4878 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
4879   echo $ECHO_N "(cached) $ECHO_C" >&6
4880 else
4881   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4882   # We make a subdir and do the tests there.  Otherwise we can end up
4883   # making bogus files that we don't know about and never remove.  For
4884   # instance it was reported that on HP-UX the gcc test will end up
4885   # making a dummy file named `D' -- because `-MD' means `put the output
4886   # in D'.
4887   mkdir conftest.dir
4888   # Copy depcomp to subdir because otherwise we won't find it if we're
4889   # using a relative directory.
4890   cp "$am_depcomp" conftest.dir
4891   cd conftest.dir
4892   # We will build objects and dependencies in a subdirectory because
4893   # it helps to detect inapplicable dependency modes.  For instance
4894   # both Tru64's cc and ICC support -MD to output dependencies as a
4895   # side effect of compilation, but ICC will put the dependencies in
4896   # the current directory while Tru64 will put them in the object
4897   # directory.
4898   mkdir sub
4900   am_cv_CXX_dependencies_compiler_type=none
4901   if test "$am_compiler_list" = ""; then
4902      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4903   fi
4904   for depmode in $am_compiler_list; do
4905     # Setup a source with many dependencies, because some compilers
4906     # like to wrap large dependency lists on column 80 (with \), and
4907     # we should not choose a depcomp mode which is confused by this.
4908     #
4909     # We need to recreate these files for each test, as the compiler may
4910     # overwrite some of them when testing with obscure command lines.
4911     # This happens at least with the AIX C compiler.
4912     : > sub/conftest.c
4913     for i in 1 2 3 4 5 6; do
4914       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4915       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4916       # Solaris 8's {/usr,}/bin/sh.
4917       touch sub/conftst$i.h
4918     done
4919     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4921     case $depmode in
4922     nosideeffect)
4923       # after this tag, mechanisms are not by side-effect, so they'll
4924       # only be used when explicitly requested
4925       if test "x$enable_dependency_tracking" = xyes; then
4926         continue
4927       else
4928         break
4929       fi
4930       ;;
4931     none) break ;;
4932     esac
4933     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4934     # mode.  It turns out that the SunPro C++ compiler does not properly
4935     # handle `-M -o', and we need to detect this.
4936     if depmode=$depmode \
4937        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4938        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4939        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4940          >/dev/null 2>conftest.err &&
4941        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4942        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4943        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4944       # icc doesn't choke on unknown options, it will just issue warnings
4945       # or remarks (even with -Werror).  So we grep stderr for any message
4946       # that says an option was ignored or not supported.
4947       # When given -MP, icc 7.0 and 7.1 complain thusly:
4948       #   icc: Command line warning: ignoring option '-M'; no argument required
4949       # The diagnosis changed in icc 8.0:
4950       #   icc: Command line remark: option '-MP' not supported
4951       if (grep 'ignoring option' conftest.err ||
4952           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4953         am_cv_CXX_dependencies_compiler_type=$depmode
4954         break
4955       fi
4956     fi
4957   done
4959   cd ..
4960   rm -rf conftest.dir
4961 else
4962   am_cv_CXX_dependencies_compiler_type=none
4966 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
4967 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
4968 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4972 if 
4973   test "x$enable_dependency_tracking" != xno \
4974   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4975   am__fastdepCXX_TRUE=
4976   am__fastdepCXX_FALSE='#'
4977 else
4978   am__fastdepCXX_TRUE='#'
4979   am__fastdepCXX_FALSE=
4983 ac_ext=cc
4984 ac_cpp='$CXXCPP $CPPFLAGS'
4985 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4986 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4987 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4988 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4989 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
4990 if test -z "$CXXCPP"; then
4991   if test "${ac_cv_prog_CXXCPP+set}" = set; then
4992   echo $ECHO_N "(cached) $ECHO_C" >&6
4993 else
4994       # Double quotes because CXXCPP needs to be expanded
4995     for CXXCPP in "$CXX -E" "/lib/cpp"
4996     do
4997       ac_preproc_ok=false
4998 for ac_cxx_preproc_warn_flag in '' yes
5000   # Use a header file that comes with gcc, so configuring glibc
5001   # with a fresh cross-compiler works.
5002   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5003   # <limits.h> exists even on freestanding compilers.
5004   # On the NeXT, cc -E runs the code through the compiler's parser,
5005   # not just through cpp. "Syntax error" is here to catch this case.
5006   cat >conftest.$ac_ext <<_ACEOF
5007 /* confdefs.h.  */
5008 _ACEOF
5009 cat confdefs.h >>conftest.$ac_ext
5010 cat >>conftest.$ac_ext <<_ACEOF
5011 /* end confdefs.h.  */
5012 @%:@ifdef __STDC__
5013 @%:@ include <limits.h>
5014 @%:@else
5015 @%:@ include <assert.h>
5016 @%:@endif
5017                      Syntax error
5018 _ACEOF
5019 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5020   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5021   ac_status=$?
5022   grep -v '^ *+' conftest.er1 >conftest.err
5023   rm -f conftest.er1
5024   cat conftest.err >&5
5025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5026   (exit $ac_status); } >/dev/null; then
5027   if test -s conftest.err; then
5028     ac_cpp_err=$ac_cxx_preproc_warn_flag
5029     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5030   else
5031     ac_cpp_err=
5032   fi
5033 else
5034   ac_cpp_err=yes
5036 if test -z "$ac_cpp_err"; then
5037   :
5038 else
5039   echo "$as_me: failed program was:" >&5
5040 sed 's/^/| /' conftest.$ac_ext >&5
5042   # Broken: fails on valid input.
5043 continue
5045 rm -f conftest.err conftest.$ac_ext
5047   # OK, works on sane cases.  Now check whether non-existent headers
5048   # can be detected and how.
5049   cat >conftest.$ac_ext <<_ACEOF
5050 /* confdefs.h.  */
5051 _ACEOF
5052 cat confdefs.h >>conftest.$ac_ext
5053 cat >>conftest.$ac_ext <<_ACEOF
5054 /* end confdefs.h.  */
5055 @%:@include <ac_nonexistent.h>
5056 _ACEOF
5057 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5058   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5059   ac_status=$?
5060   grep -v '^ *+' conftest.er1 >conftest.err
5061   rm -f conftest.er1
5062   cat conftest.err >&5
5063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5064   (exit $ac_status); } >/dev/null; then
5065   if test -s conftest.err; then
5066     ac_cpp_err=$ac_cxx_preproc_warn_flag
5067     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5068   else
5069     ac_cpp_err=
5070   fi
5071 else
5072   ac_cpp_err=yes
5074 if test -z "$ac_cpp_err"; then
5075   # Broken: success on invalid input.
5076 continue
5077 else
5078   echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.$ac_ext >&5
5081   # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5085 rm -f conftest.err conftest.$ac_ext
5087 done
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then
5091   break
5094     done
5095     ac_cv_prog_CXXCPP=$CXXCPP
5096   
5098   CXXCPP=$ac_cv_prog_CXXCPP
5099 else
5100   ac_cv_prog_CXXCPP=$CXXCPP
5102 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5103 echo "${ECHO_T}$CXXCPP" >&6
5104 ac_preproc_ok=false
5105 for ac_cxx_preproc_warn_flag in '' yes
5107   # Use a header file that comes with gcc, so configuring glibc
5108   # with a fresh cross-compiler works.
5109   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110   # <limits.h> exists even on freestanding compilers.
5111   # On the NeXT, cc -E runs the code through the compiler's parser,
5112   # not just through cpp. "Syntax error" is here to catch this case.
5113   cat >conftest.$ac_ext <<_ACEOF
5114 /* confdefs.h.  */
5115 _ACEOF
5116 cat confdefs.h >>conftest.$ac_ext
5117 cat >>conftest.$ac_ext <<_ACEOF
5118 /* end confdefs.h.  */
5119 @%:@ifdef __STDC__
5120 @%:@ include <limits.h>
5121 @%:@else
5122 @%:@ include <assert.h>
5123 @%:@endif
5124                      Syntax error
5125 _ACEOF
5126 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5127   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5128   ac_status=$?
5129   grep -v '^ *+' conftest.er1 >conftest.err
5130   rm -f conftest.er1
5131   cat conftest.err >&5
5132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5133   (exit $ac_status); } >/dev/null; then
5134   if test -s conftest.err; then
5135     ac_cpp_err=$ac_cxx_preproc_warn_flag
5136     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5137   else
5138     ac_cpp_err=
5139   fi
5140 else
5141   ac_cpp_err=yes
5143 if test -z "$ac_cpp_err"; then
5144   :
5145 else
5146   echo "$as_me: failed program was:" >&5
5147 sed 's/^/| /' conftest.$ac_ext >&5
5149   # Broken: fails on valid input.
5150 continue
5152 rm -f conftest.err conftest.$ac_ext
5154   # OK, works on sane cases.  Now check whether non-existent headers
5155   # can be detected and how.
5156   cat >conftest.$ac_ext <<_ACEOF
5157 /* confdefs.h.  */
5158 _ACEOF
5159 cat confdefs.h >>conftest.$ac_ext
5160 cat >>conftest.$ac_ext <<_ACEOF
5161 /* end confdefs.h.  */
5162 @%:@include <ac_nonexistent.h>
5163 _ACEOF
5164 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5165   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5166   ac_status=$?
5167   grep -v '^ *+' conftest.er1 >conftest.err
5168   rm -f conftest.er1
5169   cat conftest.err >&5
5170   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5171   (exit $ac_status); } >/dev/null; then
5172   if test -s conftest.err; then
5173     ac_cpp_err=$ac_cxx_preproc_warn_flag
5174     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5175   else
5176     ac_cpp_err=
5177   fi
5178 else
5179   ac_cpp_err=yes
5181 if test -z "$ac_cpp_err"; then
5182   # Broken: success on invalid input.
5183 continue
5184 else
5185   echo "$as_me: failed program was:" >&5
5186 sed 's/^/| /' conftest.$ac_ext >&5
5188   # Passes both tests.
5189 ac_preproc_ok=:
5190 break
5192 rm -f conftest.err conftest.$ac_ext
5194 done
5195 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5196 rm -f conftest.err conftest.$ac_ext
5197 if $ac_preproc_ok; then
5198   :
5199 else
5200   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5201 See \`config.log' for more details." >&5
5202 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5203 See \`config.log' for more details." >&2;}
5204    { (exit 1); exit 1; }; }
5207 ac_ext=cc
5208 ac_cpp='$CXXCPP $CPPFLAGS'
5209 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5210 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5211 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5214 ac_ext=f
5215 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5216 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5218 if test -n "$ac_tool_prefix"; then
5219   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5220   do
5221     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5222 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5223 echo "$as_me:$LINENO: checking for $ac_word" >&5
5224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5225 if test "${ac_cv_prog_F77+set}" = set; then
5226   echo $ECHO_N "(cached) $ECHO_C" >&6
5227 else
5228   if test -n "$F77"; then
5229   ac_cv_prog_F77="$F77" # Let the user override the test.
5230 else
5231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 for as_dir in $PATH
5234   IFS=$as_save_IFS
5235   test -z "$as_dir" && as_dir=.
5236   for ac_exec_ext in '' $ac_executable_extensions; do
5237   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5238     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5240     break 2
5241   fi
5242 done
5243 done
5247 F77=$ac_cv_prog_F77
5248 if test -n "$F77"; then
5249   echo "$as_me:$LINENO: result: $F77" >&5
5250 echo "${ECHO_T}$F77" >&6
5251 else
5252   echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6
5256     test -n "$F77" && break
5257   done
5259 if test -z "$F77"; then
5260   ac_ct_F77=$F77
5261   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5263   # Extract the first word of "$ac_prog", so it can be a program name with args.
5264 set dummy $ac_prog; ac_word=$2
5265 echo "$as_me:$LINENO: checking for $ac_word" >&5
5266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5267 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5268   echo $ECHO_N "(cached) $ECHO_C" >&6
5269 else
5270   if test -n "$ac_ct_F77"; then
5271   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5272 else
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in $PATH
5276   IFS=$as_save_IFS
5277   test -z "$as_dir" && as_dir=.
5278   for ac_exec_ext in '' $ac_executable_extensions; do
5279   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5280     ac_cv_prog_ac_ct_F77="$ac_prog"
5281     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282     break 2
5283   fi
5284 done
5285 done
5289 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5290 if test -n "$ac_ct_F77"; then
5291   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5292 echo "${ECHO_T}$ac_ct_F77" >&6
5293 else
5294   echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6
5298   test -n "$ac_ct_F77" && break
5299 done
5301   F77=$ac_ct_F77
5305 # Provide some information about the compiler.
5306 echo "$as_me:__oline__:" \
5307      "checking for Fortran 77 compiler version" >&5
5308 ac_compiler=`set X $ac_compile; echo $2`
5309 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5310   (eval $ac_compiler --version </dev/null >&5) 2>&5
5311   ac_status=$?
5312   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5313   (exit $ac_status); }
5314 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5315   (eval $ac_compiler -v </dev/null >&5) 2>&5
5316   ac_status=$?
5317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5318   (exit $ac_status); }
5319 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5320   (eval $ac_compiler -V </dev/null >&5) 2>&5
5321   ac_status=$?
5322   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5323   (exit $ac_status); }
5324 rm -f a.out
5326 # If we don't use `.F' as extension, the preprocessor is not run on the
5327 # input file.  (Note that this only needs to work for GNU compilers.)
5328 ac_save_ext=$ac_ext
5329 ac_ext=F
5330 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5331 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5332 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5333   echo $ECHO_N "(cached) $ECHO_C" >&6
5334 else
5335   cat >conftest.$ac_ext <<_ACEOF
5336       program main
5337 #ifndef __GNUC__
5338        choke me
5339 #endif
5341       end
5342 _ACEOF
5343 rm -f conftest.$ac_objext
5344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5345   (eval $ac_compile) 2>conftest.er1
5346   ac_status=$?
5347   grep -v '^ *+' conftest.er1 >conftest.err
5348   rm -f conftest.er1
5349   cat conftest.err >&5
5350   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351   (exit $ac_status); } &&
5352          { ac_try='test -z "$ac_f77_werror_flag"
5353                          || test ! -s conftest.err'
5354   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5355   (eval $ac_try) 2>&5
5356   ac_status=$?
5357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5358   (exit $ac_status); }; } &&
5359          { ac_try='test -s conftest.$ac_objext'
5360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5361   (eval $ac_try) 2>&5
5362   ac_status=$?
5363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5364   (exit $ac_status); }; }; then
5365   ac_compiler_gnu=yes
5366 else
5367   echo "$as_me: failed program was:" >&5
5368 sed 's/^/| /' conftest.$ac_ext >&5
5370 ac_compiler_gnu=no
5372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5373 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5376 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5377 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5378 ac_ext=$ac_save_ext
5379 ac_test_FFLAGS=${FFLAGS+set}
5380 ac_save_FFLAGS=$FFLAGS
5381 FFLAGS=
5382 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5383 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5384 if test "${ac_cv_prog_f77_g+set}" = set; then
5385   echo $ECHO_N "(cached) $ECHO_C" >&6
5386 else
5387   FFLAGS=-g
5388 cat >conftest.$ac_ext <<_ACEOF
5389       program main
5391       end
5392 _ACEOF
5393 rm -f conftest.$ac_objext
5394 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5395   (eval $ac_compile) 2>conftest.er1
5396   ac_status=$?
5397   grep -v '^ *+' conftest.er1 >conftest.err
5398   rm -f conftest.er1
5399   cat conftest.err >&5
5400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5401   (exit $ac_status); } &&
5402          { ac_try='test -z "$ac_f77_werror_flag"
5403                          || test ! -s conftest.err'
5404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5405   (eval $ac_try) 2>&5
5406   ac_status=$?
5407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408   (exit $ac_status); }; } &&
5409          { ac_try='test -s conftest.$ac_objext'
5410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5411   (eval $ac_try) 2>&5
5412   ac_status=$?
5413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5414   (exit $ac_status); }; }; then
5415   ac_cv_prog_f77_g=yes
5416 else
5417   echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5420 ac_cv_prog_f77_g=no
5422 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5425 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5426 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5427 if test "$ac_test_FFLAGS" = set; then
5428   FFLAGS=$ac_save_FFLAGS
5429 elif test $ac_cv_prog_f77_g = yes; then
5430   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5431     FFLAGS="-g -O2"
5432   else
5433     FFLAGS="-g"
5434   fi
5435 else
5436   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5437     FFLAGS="-O2"
5438   else
5439     FFLAGS=
5440   fi
5443 G77=`test $ac_compiler_gnu = yes && echo yes`
5444 ac_ext=c
5445 ac_cpp='$CPP $CPPFLAGS'
5446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5452 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5454 # find the maximum length of command line arguments
5455 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5456 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5457 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5458   echo $ECHO_N "(cached) $ECHO_C" >&6
5459 else
5460     i=0
5461   teststring="ABCD"
5463   case $build_os in
5464   msdosdjgpp*)
5465     # On DJGPP, this test can blow up pretty badly due to problems in libc
5466     # (any single argument exceeding 2000 bytes causes a buffer overrun
5467     # during glob expansion).  Even if it were fixed, the result of this
5468     # check would be larger than it should be.
5469     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5470     ;;
5472   gnu*)
5473     # Under GNU Hurd, this test is not required because there is
5474     # no limit to the length of command line arguments.
5475     # Libtool will interpret -1 as no limit whatsoever
5476     lt_cv_sys_max_cmd_len=-1;
5477     ;;
5479   cygwin* | mingw*)
5480     # On Win9x/ME, this test blows up -- it succeeds, but takes
5481     # about 5 minutes as the teststring grows exponentially.
5482     # Worse, since 9x/ME are not pre-emptively multitasking,
5483     # you end up with a "frozen" computer, even though with patience
5484     # the test eventually succeeds (with a max line length of 256k).
5485     # Instead, let's just punt: use the minimum linelength reported by
5486     # all of the supported platforms: 8192 (on NT/2K/XP).
5487     lt_cv_sys_max_cmd_len=8192;
5488     ;;
5490   amigaos*)
5491     # On AmigaOS with pdksh, this test takes hours, literally.
5492     # So we just punt and use a minimum line length of 8192.
5493     lt_cv_sys_max_cmd_len=8192;
5494     ;;
5496  *)
5497     # If test is not a shell built-in, we'll probably end up computing a
5498     # maximum length that is only half of the actual maximum length, but
5499     # we can't tell.
5500     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5501                = "XX$teststring") >/dev/null 2>&1 &&
5502             new_result=`expr "X$teststring" : ".*" 2>&1` &&
5503             lt_cv_sys_max_cmd_len=$new_result &&
5504             test $i != 17 # 1/2 MB should be enough
5505     do
5506       i=`expr $i + 1`
5507       teststring=$teststring$teststring
5508     done
5509     teststring=
5510     # Add a significant safety factor because C++ compilers can tack on massive
5511     # amounts of additional arguments before passing them to the linker.
5512     # It appears as though 1/2 is a usable value.
5513     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5514     ;;
5515   esac
5519 if test -n $lt_cv_sys_max_cmd_len ; then
5520   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5521 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5522 else
5523   echo "$as_me:$LINENO: result: none" >&5
5524 echo "${ECHO_T}none" >&6
5530 # Check for command to grab the raw symbol name followed by C symbol from nm.
5531 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5532 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5533 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5534   echo $ECHO_N "(cached) $ECHO_C" >&6
5535 else
5536   
5537 # These are sane defaults that work on at least a few old systems.
5538 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5540 # Character class describing NM global symbol codes.
5541 symcode='[BCDEGRST]'
5543 # Regexp to match symbols that can be accessed directly from C.
5544 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5546 # Transform the above into a raw symbol and a C symbol.
5547 symxfrm='\1 \2\3 \3'
5549 # Transform an extracted symbol line into a proper C declaration
5550 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5552 # Transform an extracted symbol line into symbol name and symbol address
5553 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'"
5555 # Define system-specific variables.
5556 case $host_os in
5557 aix*)
5558   symcode='[BCDT]'
5559   ;;
5560 cygwin* | mingw* | pw32*)
5561   symcode='[ABCDGISTW]'
5562   ;;
5563 hpux*) # Its linker distinguishes data from code symbols
5564   if test "$host_cpu" = ia64; then
5565     symcode='[ABCDEGRST]'
5566   fi
5567   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5568   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'"
5569   ;;
5570 irix* | nonstopux*)
5571   symcode='[BCDEGRST]'
5572   ;;
5573 osf*)
5574   symcode='[BCDEGQRST]'
5575   ;;
5576 solaris* | sysv5*)
5577   symcode='[BDRT]'
5578   ;;
5579 sysv4)
5580   symcode='[DFNSTU]'
5581   ;;
5582 esac
5584 # Handle CRLF in mingw tool chain
5585 opt_cr=
5586 case $build_os in
5587 mingw*)
5588   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5589   ;;
5590 esac
5592 # If we're using GNU nm, then use its standard symbol codes.
5593 case `$NM -V 2>&1` in
5594 *GNU* | *'with BFD'*)
5595   symcode='[ABCDGIRSTW]' ;;
5596 esac
5598 # Try without a prefix undercore, then with it.
5599 for ac_symprfx in "" "_"; do
5601   # Write the raw and C identifiers.
5602   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
5604   # Check to see that the pipe works correctly.
5605   pipe_works=no
5607   rm -f conftest*
5608   cat > conftest.$ac_ext <<EOF
5609 #ifdef __cplusplus
5610 extern "C" {
5611 #endif
5612 char nm_test_var;
5613 void nm_test_func(){}
5614 #ifdef __cplusplus
5616 #endif
5617 int main(){nm_test_var='a';nm_test_func();return(0);}
5620   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5621   (eval $ac_compile) 2>&5
5622   ac_status=$?
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); }; then
5625     # Now try to grab the symbols.
5626     nlist=conftest.nm
5627     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5628   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5629   ac_status=$?
5630   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631   (exit $ac_status); } && test -s "$nlist"; then
5632       # Try sorting and uniquifying the output.
5633       if sort "$nlist" | uniq > "$nlist"T; then
5634         mv -f "$nlist"T "$nlist"
5635       else
5636         rm -f "$nlist"T
5637       fi
5639       # Make sure that we snagged all the symbols we need.
5640       if grep ' nm_test_var$' "$nlist" >/dev/null; then
5641         if grep ' nm_test_func$' "$nlist" >/dev/null; then
5642           cat <<EOF > conftest.$ac_ext
5643 #ifdef __cplusplus
5644 extern "C" {
5645 #endif
5648           # Now generate the symbol file.
5649           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5651           cat <<EOF >> conftest.$ac_ext
5652 #if defined (__STDC__) && __STDC__
5653 # define lt_ptr_t void *
5654 #else
5655 # define lt_ptr_t char *
5656 # define const
5657 #endif
5659 /* The mapping between symbol names and symbols. */
5660 const struct {
5661   const char *name;
5662   lt_ptr_t address;
5664 lt_preloaded_symbols[] =
5667           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5668           cat <<\EOF >> conftest.$ac_ext
5669   {0, (lt_ptr_t) 0}
5672 #ifdef __cplusplus
5674 #endif
5676           # Now try linking the two files.
5677           mv conftest.$ac_objext conftstm.$ac_objext
5678           lt_save_LIBS="$LIBS"
5679           lt_save_CFLAGS="$CFLAGS"
5680           LIBS="conftstm.$ac_objext"
5681           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5682           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5683   (eval $ac_link) 2>&5
5684   ac_status=$?
5685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5686   (exit $ac_status); } && test -s conftest${ac_exeext}; then
5687             pipe_works=yes
5688           fi
5689           LIBS="$lt_save_LIBS"
5690           CFLAGS="$lt_save_CFLAGS"
5691         else
5692           echo "cannot find nm_test_func in $nlist" >&5
5693         fi
5694       else
5695         echo "cannot find nm_test_var in $nlist" >&5
5696       fi
5697     else
5698       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5699     fi
5700   else
5701     echo "$progname: failed program was:" >&5
5702     cat conftest.$ac_ext >&5
5703   fi
5704   rm -f conftest* conftst*
5706   # Do not use the global_symbol_pipe unless it works.
5707   if test "$pipe_works" = yes; then
5708     break
5709   else
5710     lt_cv_sys_global_symbol_pipe=
5711   fi
5712 done
5716 if test -z "$lt_cv_sys_global_symbol_pipe"; then
5717   lt_cv_sys_global_symbol_to_cdecl=
5719 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
5720   echo "$as_me:$LINENO: result: failed" >&5
5721 echo "${ECHO_T}failed" >&6
5722 else
5723   echo "$as_me:$LINENO: result: ok" >&5
5724 echo "${ECHO_T}ok" >&6
5727 echo "$as_me:$LINENO: checking for objdir" >&5
5728 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
5729 if test "${lt_cv_objdir+set}" = set; then
5730   echo $ECHO_N "(cached) $ECHO_C" >&6
5731 else
5732   rm -f .libs 2>/dev/null
5733 mkdir .libs 2>/dev/null
5734 if test -d .libs; then
5735   lt_cv_objdir=.libs
5736 else
5737   # MS-DOS does not allow filenames that begin with a dot.
5738   lt_cv_objdir=_libs
5740 rmdir .libs 2>/dev/null
5742 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
5743 echo "${ECHO_T}$lt_cv_objdir" >&6
5744 objdir=$lt_cv_objdir
5750 case $host_os in
5751 aix3*)
5752   # AIX sometimes has problems with the GCC collect2 program.  For some
5753   # reason, if we set the COLLECT_NAMES environment variable, the problems
5754   # vanish in a puff of smoke.
5755   if test "X${COLLECT_NAMES+set}" != Xset; then
5756     COLLECT_NAMES=
5757     export COLLECT_NAMES
5758   fi
5759   ;;
5760 esac
5762 # Sed substitution that helps us do robust quoting.  It backslashifies
5763 # metacharacters that are still active within double-quoted strings.
5764 Xsed='sed -e s/^X//'
5765 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
5767 # Same as above, but do not quote variable references.
5768 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
5770 # Sed substitution to delay expansion of an escaped shell variable in a
5771 # double_quote_subst'ed string.
5772 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5774 # Sed substitution to avoid accidental globbing in evaled expressions
5775 no_glob_subst='s/\*/\\\*/g'
5777 # Constants:
5778 rm="rm -f"
5780 # Global variables:
5781 default_ofile=libtool
5782 can_build_shared=yes
5784 # All known linkers require a `.a' archive for static linking (except M$VC,
5785 # which needs '.lib').
5786 libext=a
5787 ltmain="$ac_aux_dir/ltmain.sh"
5788 ofile="$default_ofile"
5789 with_gnu_ld="$lt_cv_prog_gnu_ld"
5791 if test -n "$ac_tool_prefix"; then
5792   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5793 set dummy ${ac_tool_prefix}ar; ac_word=$2
5794 echo "$as_me:$LINENO: checking for $ac_word" >&5
5795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5796 if test "${ac_cv_prog_AR+set}" = set; then
5797   echo $ECHO_N "(cached) $ECHO_C" >&6
5798 else
5799   if test -n "$AR"; then
5800   ac_cv_prog_AR="$AR" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5805   IFS=$as_save_IFS
5806   test -z "$as_dir" && as_dir=.
5807   for ac_exec_ext in '' $ac_executable_extensions; do
5808   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809     ac_cv_prog_AR="${ac_tool_prefix}ar"
5810     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5811     break 2
5812   fi
5813 done
5814 done
5818 AR=$ac_cv_prog_AR
5819 if test -n "$AR"; then
5820   echo "$as_me:$LINENO: result: $AR" >&5
5821 echo "${ECHO_T}$AR" >&6
5822 else
5823   echo "$as_me:$LINENO: result: no" >&5
5824 echo "${ECHO_T}no" >&6
5828 if test -z "$ac_cv_prog_AR"; then
5829   ac_ct_AR=$AR
5830   # Extract the first word of "ar", so it can be a program name with args.
5831 set dummy ar; ac_word=$2
5832 echo "$as_me:$LINENO: checking for $ac_word" >&5
5833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5834 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
5835   echo $ECHO_N "(cached) $ECHO_C" >&6
5836 else
5837   if test -n "$ac_ct_AR"; then
5838   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5839 else
5840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5841 for as_dir in $PATH
5843   IFS=$as_save_IFS
5844   test -z "$as_dir" && as_dir=.
5845   for ac_exec_ext in '' $ac_executable_extensions; do
5846   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5847     ac_cv_prog_ac_ct_AR="ar"
5848     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849     break 2
5850   fi
5851 done
5852 done
5854   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
5857 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5858 if test -n "$ac_ct_AR"; then
5859   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
5860 echo "${ECHO_T}$ac_ct_AR" >&6
5861 else
5862   echo "$as_me:$LINENO: result: no" >&5
5863 echo "${ECHO_T}no" >&6
5866   AR=$ac_ct_AR
5867 else
5868   AR="$ac_cv_prog_AR"
5871 if test -n "$ac_tool_prefix"; then
5872   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5874 echo "$as_me:$LINENO: checking for $ac_word" >&5
5875 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5876 if test "${ac_cv_prog_RANLIB+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   if test -n "$RANLIB"; then
5880   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5885   IFS=$as_save_IFS
5886   test -z "$as_dir" && as_dir=.
5887   for ac_exec_ext in '' $ac_executable_extensions; do
5888   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5890     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5891     break 2
5892   fi
5893 done
5894 done
5898 RANLIB=$ac_cv_prog_RANLIB
5899 if test -n "$RANLIB"; then
5900   echo "$as_me:$LINENO: result: $RANLIB" >&5
5901 echo "${ECHO_T}$RANLIB" >&6
5902 else
5903   echo "$as_me:$LINENO: result: no" >&5
5904 echo "${ECHO_T}no" >&6
5908 if test -z "$ac_cv_prog_RANLIB"; then
5909   ac_ct_RANLIB=$RANLIB
5910   # Extract the first word of "ranlib", so it can be a program name with args.
5911 set dummy ranlib; ac_word=$2
5912 echo "$as_me:$LINENO: checking for $ac_word" >&5
5913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5914 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5915   echo $ECHO_N "(cached) $ECHO_C" >&6
5916 else
5917   if test -n "$ac_ct_RANLIB"; then
5918   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5919 else
5920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5921 for as_dir in $PATH
5923   IFS=$as_save_IFS
5924   test -z "$as_dir" && as_dir=.
5925   for ac_exec_ext in '' $ac_executable_extensions; do
5926   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5927     ac_cv_prog_ac_ct_RANLIB="ranlib"
5928     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5929     break 2
5930   fi
5931 done
5932 done
5934   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
5937 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5938 if test -n "$ac_ct_RANLIB"; then
5939   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5940 echo "${ECHO_T}$ac_ct_RANLIB" >&6
5941 else
5942   echo "$as_me:$LINENO: result: no" >&5
5943 echo "${ECHO_T}no" >&6
5946   RANLIB=$ac_ct_RANLIB
5947 else
5948   RANLIB="$ac_cv_prog_RANLIB"
5951 if test -n "$ac_tool_prefix"; then
5952   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5953 set dummy ${ac_tool_prefix}strip; ac_word=$2
5954 echo "$as_me:$LINENO: checking for $ac_word" >&5
5955 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5956 if test "${ac_cv_prog_STRIP+set}" = set; then
5957   echo $ECHO_N "(cached) $ECHO_C" >&6
5958 else
5959   if test -n "$STRIP"; then
5960   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5961 else
5962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5963 for as_dir in $PATH
5965   IFS=$as_save_IFS
5966   test -z "$as_dir" && as_dir=.
5967   for ac_exec_ext in '' $ac_executable_extensions; do
5968   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5969     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5970     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5971     break 2
5972   fi
5973 done
5974 done
5978 STRIP=$ac_cv_prog_STRIP
5979 if test -n "$STRIP"; then
5980   echo "$as_me:$LINENO: result: $STRIP" >&5
5981 echo "${ECHO_T}$STRIP" >&6
5982 else
5983   echo "$as_me:$LINENO: result: no" >&5
5984 echo "${ECHO_T}no" >&6
5988 if test -z "$ac_cv_prog_STRIP"; then
5989   ac_ct_STRIP=$STRIP
5990   # Extract the first word of "strip", so it can be a program name with args.
5991 set dummy strip; ac_word=$2
5992 echo "$as_me:$LINENO: checking for $ac_word" >&5
5993 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5994 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
5995   echo $ECHO_N "(cached) $ECHO_C" >&6
5996 else
5997   if test -n "$ac_ct_STRIP"; then
5998   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5999 else
6000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6001 for as_dir in $PATH
6003   IFS=$as_save_IFS
6004   test -z "$as_dir" && as_dir=.
6005   for ac_exec_ext in '' $ac_executable_extensions; do
6006   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6007     ac_cv_prog_ac_ct_STRIP="strip"
6008     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6009     break 2
6010   fi
6011 done
6012 done
6014   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6017 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6018 if test -n "$ac_ct_STRIP"; then
6019   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6020 echo "${ECHO_T}$ac_ct_STRIP" >&6
6021 else
6022   echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6
6026   STRIP=$ac_ct_STRIP
6027 else
6028   STRIP="$ac_cv_prog_STRIP"
6032 old_CC="$CC"
6033 old_CFLAGS="$CFLAGS"
6035 # Set sane defaults for various variables
6036 test -z "$AR" && AR=ar
6037 test -z "$AR_FLAGS" && AR_FLAGS=cru
6038 test -z "$AS" && AS=as
6039 test -z "$CC" && CC=cc
6040 test -z "$LTCC" && LTCC=$CC
6041 test -z "$DLLTOOL" && DLLTOOL=dlltool
6042 test -z "$LD" && LD=ld
6043 test -z "$LN_S" && LN_S="ln -s"
6044 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6045 test -z "$NM" && NM=nm
6046 test -z "$SED" && SED=sed
6047 test -z "$OBJDUMP" && OBJDUMP=objdump
6048 test -z "$RANLIB" && RANLIB=:
6049 test -z "$STRIP" && STRIP=:
6050 test -z "$ac_objext" && ac_objext=o
6052 # Determine commands to create old-style static archives.
6053 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6054 old_postinstall_cmds='chmod 644 $oldlib'
6055 old_postuninstall_cmds=
6057 if test -n "$RANLIB"; then
6058   case $host_os in
6059   openbsd*)
6060     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
6061     ;;
6062   *)
6063     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
6064     ;;
6065   esac
6066   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6069 # Only perform the check for file, if the check method requires it
6070 case $deplibs_check_method in
6071 file_magic*)
6072   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6073     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6074 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6075 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6076   echo $ECHO_N "(cached) $ECHO_C" >&6
6077 else
6078   case $MAGIC_CMD in
6079 [\\/*] |  ?:[\\/]*)
6080   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6081   ;;
6083   lt_save_MAGIC_CMD="$MAGIC_CMD"
6084   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6085   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6086   for ac_dir in $ac_dummy; do
6087     IFS="$lt_save_ifs"
6088     test -z "$ac_dir" && ac_dir=.
6089     if test -f $ac_dir/${ac_tool_prefix}file; then
6090       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6091       if test -n "$file_magic_test_file"; then
6092         case $deplibs_check_method in
6093         "file_magic "*)
6094           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6095           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6096           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6097             $EGREP "$file_magic_regex" > /dev/null; then
6098             :
6099           else
6100             cat <<EOF 1>&2
6102 *** Warning: the command libtool uses to detect shared libraries,
6103 *** $file_magic_cmd, produces output that libtool cannot recognize.
6104 *** The result is that libtool may fail to recognize shared libraries
6105 *** as such.  This will affect the creation of libtool libraries that
6106 *** depend on shared libraries, but programs linked with such libtool
6107 *** libraries will work regardless of this problem.  Nevertheless, you
6108 *** may want to report the problem to your system manager and/or to
6109 *** bug-libtool@gnu.org
6112           fi ;;
6113         esac
6114       fi
6115       break
6116     fi
6117   done
6118   IFS="$lt_save_ifs"
6119   MAGIC_CMD="$lt_save_MAGIC_CMD"
6120   ;;
6121 esac
6124 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6125 if test -n "$MAGIC_CMD"; then
6126   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6127 echo "${ECHO_T}$MAGIC_CMD" >&6
6128 else
6129   echo "$as_me:$LINENO: result: no" >&5
6130 echo "${ECHO_T}no" >&6
6133 if test -z "$lt_cv_path_MAGIC_CMD"; then
6134   if test -n "$ac_tool_prefix"; then
6135     echo "$as_me:$LINENO: checking for file" >&5
6136 echo $ECHO_N "checking for file... $ECHO_C" >&6
6137 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6138   echo $ECHO_N "(cached) $ECHO_C" >&6
6139 else
6140   case $MAGIC_CMD in
6141 [\\/*] |  ?:[\\/]*)
6142   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6143   ;;
6145   lt_save_MAGIC_CMD="$MAGIC_CMD"
6146   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6147   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6148   for ac_dir in $ac_dummy; do
6149     IFS="$lt_save_ifs"
6150     test -z "$ac_dir" && ac_dir=.
6151     if test -f $ac_dir/file; then
6152       lt_cv_path_MAGIC_CMD="$ac_dir/file"
6153       if test -n "$file_magic_test_file"; then
6154         case $deplibs_check_method in
6155         "file_magic "*)
6156           file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
6157           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6158           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6159             $EGREP "$file_magic_regex" > /dev/null; then
6160             :
6161           else
6162             cat <<EOF 1>&2
6164 *** Warning: the command libtool uses to detect shared libraries,
6165 *** $file_magic_cmd, produces output that libtool cannot recognize.
6166 *** The result is that libtool may fail to recognize shared libraries
6167 *** as such.  This will affect the creation of libtool libraries that
6168 *** depend on shared libraries, but programs linked with such libtool
6169 *** libraries will work regardless of this problem.  Nevertheless, you
6170 *** may want to report the problem to your system manager and/or to
6171 *** bug-libtool@gnu.org
6174           fi ;;
6175         esac
6176       fi
6177       break
6178     fi
6179   done
6180   IFS="$lt_save_ifs"
6181   MAGIC_CMD="$lt_save_MAGIC_CMD"
6182   ;;
6183 esac
6186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6187 if test -n "$MAGIC_CMD"; then
6188   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6189 echo "${ECHO_T}$MAGIC_CMD" >&6
6190 else
6191   echo "$as_me:$LINENO: result: no" >&5
6192 echo "${ECHO_T}no" >&6
6195   else
6196     MAGIC_CMD=:
6197   fi
6200   fi
6201   ;;
6202 esac
6204 enable_dlopen=no
6205 enable_win32_dll=no
6207 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6208 if test "${enable_libtool_lock+set}" = set; then
6209   enableval="$enable_libtool_lock"
6210   
6211 fi; 
6212 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6215 # Check whether --with-pic or --without-pic was given.
6216 if test "${with_pic+set}" = set; then
6217   withval="$with_pic"
6218   pic_mode="$withval"
6219 else
6220   pic_mode=default
6221 fi; 
6222 test -z "$pic_mode" && pic_mode=default
6224 # Use C for the default configuration in the libtool script
6225 tagname=
6226 lt_save_CC="$CC"
6227 ac_ext=c
6228 ac_cpp='$CPP $CPPFLAGS'
6229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6234 # Source file extension for C test sources.
6235 ac_ext=c
6237 # Object file extension for compiled C test sources.
6238 objext=o
6239 objext=$objext
6241 # Code to be used in simple compile tests
6242 lt_simple_compile_test_code="int some_variable = 0;\n"
6244 # Code to be used in simple link tests
6245 lt_simple_link_test_code='int main(){return(0);}\n'
6248 # If no C compiler was specified, use CC.
6249 LTCC=${LTCC-"$CC"}
6251 # Allow CC to be a program name with arguments.
6252 compiler=$CC
6256 # Check for any special shared library compilation flags.
6258 lt_prog_cc_shlib=
6259 if test "$GCC" = no; then
6260   case $host_os in
6261   sco3.2v5*)
6262     lt_prog_cc_shlib='-belf'
6263     ;;
6264   esac
6266 if test -n "$lt_prog_cc_shlib"; then
6267   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
6268 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
6269   if echo "$old_CC $old_CFLAGS " | grep "[      ]$lt_prog_cc_shlib[     ]" >/dev/null; then :
6270   else
6271     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
6272 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
6273     lt_cv_prog_cc_can_build_shared=no
6274   fi
6279 # Check to make sure the static flag actually works.
6281 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
6282 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
6283 if test "${lt_prog_compiler_static_works+set}" = set; then
6284   echo $ECHO_N "(cached) $ECHO_C" >&6
6285 else
6286   lt_prog_compiler_static_works=no
6287    save_LDFLAGS="$LDFLAGS"
6288    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
6289    printf "$lt_simple_link_test_code" > conftest.$ac_ext
6290    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
6291      # The compiler can only warn and ignore the option if not recognized
6292      # So say no if there are warnings
6293      if test -s conftest.err; then
6294        # Append any errors to the config.log.
6295        cat conftest.err 1>&5
6296      else
6297        lt_prog_compiler_static_works=yes
6298      fi
6299    fi
6300    $rm conftest*
6301    LDFLAGS="$save_LDFLAGS"
6304 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
6305 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
6307 if test x"$lt_prog_compiler_static_works" = xyes; then
6308     :
6309 else
6310     lt_prog_compiler_static=
6316 lt_prog_compiler_no_builtin_flag=
6318 if test "$GCC" = yes; then
6319   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6321   
6322 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6323 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6324 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6325   echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327   lt_cv_prog_compiler_rtti_exceptions=no
6328   ac_outfile=conftest.$ac_objext
6329    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6330    lt_compiler_flag="-fno-rtti -fno-exceptions"
6331    # Insert the option either (1) after the last *FLAGS variable, or
6332    # (2) before a word containing "conftest.", or (3) at the end.
6333    # Note that $ac_compile itself does not contain backslashes and begins
6334    # with a dollar sign (not a hyphen), so the echo should work correctly.
6335    # The option is referenced via a variable to avoid confusing sed.
6336    lt_compile=`echo "$ac_compile" | $SED \
6337    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6338    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6339    -e 's:$: $lt_compiler_flag:'`
6340    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6341    (eval "$lt_compile" 2>conftest.err)
6342    ac_status=$?
6343    cat conftest.err >&5
6344    echo "$as_me:__oline__: \$? = $ac_status" >&5
6345    if (exit $ac_status) && test -s "$ac_outfile"; then
6346      # The compiler can only warn and ignore the option if not recognized
6347      # So say no if there are warnings
6348      if test ! -s conftest.err; then
6349        lt_cv_prog_compiler_rtti_exceptions=yes
6350      fi
6351    fi
6352    $rm conftest*
6355 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6356 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6358 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6359     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6360 else
6361     :
6366 lt_prog_compiler_wl=
6367 lt_prog_compiler_pic=
6368 lt_prog_compiler_static=
6370 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6371 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6373   if test "$GCC" = yes; then
6374     lt_prog_compiler_wl='-Wl,'
6375     lt_prog_compiler_static='-static'
6377     case $host_os in
6378       aix*)
6379       # All AIX code is PIC.
6380       if test "$host_cpu" = ia64; then
6381         # AIX 5 now supports IA64 processor
6382         lt_prog_compiler_static='-Bstatic'
6383       fi
6384       ;;
6386     amigaos*)
6387       # FIXME: we need at least 68020 code to build shared libraries, but
6388       # adding the `-m68020' flag to GCC prevents building anything better,
6389       # like `-m68040'.
6390       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6391       ;;
6393     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6394       # PIC is the default for these OSes.
6395       ;;
6397     mingw* | pw32* | os2*)
6398       # This hack is so that the source file can tell whether it is being
6399       # built for inclusion in a dll (and should export symbols for example).
6400       lt_prog_compiler_pic='-DDLL_EXPORT'
6401       ;;
6403     darwin* | rhapsody*)
6404       # PIC is the default on this platform
6405       # Common symbols not allowed in MH_DYLIB files
6406       lt_prog_compiler_pic='-fno-common'
6407       ;;
6409     msdosdjgpp*)
6410       # Just because we use GCC doesn't mean we suddenly get shared libraries
6411       # on systems that don't support them.
6412       lt_prog_compiler_can_build_shared=no
6413       enable_shared=no
6414       ;;
6416     sysv4*MP*)
6417       if test -d /usr/nec; then
6418         lt_prog_compiler_pic=-Kconform_pic
6419       fi
6420       ;;
6422     hpux*)
6423       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6424       # not for PA HP-UX.
6425       case "$host_cpu" in
6426       hppa*64*|ia64*)
6427         # +Z the default
6428         ;;
6429       *)
6430         lt_prog_compiler_pic='-fPIC'
6431         ;;
6432       esac
6433       ;;
6435     *)
6436       lt_prog_compiler_pic='-fPIC'
6437       ;;
6438     esac
6439   else
6440     # PORTME Check for flag to pass linker flags through the system compiler.
6441     case $host_os in
6442     aix*)
6443       lt_prog_compiler_wl='-Wl,'
6444       if test "$host_cpu" = ia64; then
6445         # AIX 5 now supports IA64 processor
6446         lt_prog_compiler_static='-Bstatic'
6447       else
6448         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6449       fi
6450       ;;
6452     mingw* | pw32* | os2*)
6453       # This hack is so that the source file can tell whether it is being
6454       # built for inclusion in a dll (and should export symbols for example).
6455       lt_prog_compiler_pic='-DDLL_EXPORT'
6456       ;;
6458     hpux9* | hpux10* | hpux11*)
6459       lt_prog_compiler_wl='-Wl,'
6460       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6461       # not for PA HP-UX.
6462       case "$host_cpu" in
6463       hppa*64*|ia64*)
6464         # +Z the default
6465         ;;
6466       *)
6467         lt_prog_compiler_pic='+Z'
6468         ;;
6469       esac
6470       # Is there a better lt_prog_compiler_static that works with the bundled CC?
6471       lt_prog_compiler_static='${wl}-a ${wl}archive'
6472       ;;
6474     irix5* | irix6* | nonstopux*)
6475       lt_prog_compiler_wl='-Wl,'
6476       # PIC (with -KPIC) is the default.
6477       lt_prog_compiler_static='-non_shared'
6478       ;;
6480     newsos6)
6481       lt_prog_compiler_pic='-KPIC'
6482       lt_prog_compiler_static='-Bstatic'
6483       ;;
6485     linux*)
6486       case $CC in
6487       icc* | ecc*)
6488         lt_prog_compiler_wl='-Wl,'
6489         lt_prog_compiler_pic='-KPIC'
6490         lt_prog_compiler_static='-static'
6491         ;;
6492       ccc*)
6493         lt_prog_compiler_wl='-Wl,'
6494         # All Alpha code is PIC.
6495         lt_prog_compiler_static='-non_shared'
6496         ;;
6497       esac
6498       ;;
6500     osf3* | osf4* | osf5*)
6501       lt_prog_compiler_wl='-Wl,'
6502       # All OSF/1 code is PIC.
6503       lt_prog_compiler_static='-non_shared'
6504       ;;
6506     sco3.2v5*)
6507       lt_prog_compiler_pic='-Kpic'
6508       lt_prog_compiler_static='-dn'
6509       ;;
6511     solaris*)
6512       lt_prog_compiler_wl='-Wl,'
6513       lt_prog_compiler_pic='-KPIC'
6514       lt_prog_compiler_static='-Bstatic'
6515       ;;
6517     sunos4*)
6518       lt_prog_compiler_wl='-Qoption ld '
6519       lt_prog_compiler_pic='-PIC'
6520       lt_prog_compiler_static='-Bstatic'
6521       ;;
6523     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6524       lt_prog_compiler_wl='-Wl,'
6525       lt_prog_compiler_pic='-KPIC'
6526       lt_prog_compiler_static='-Bstatic'
6527       ;;
6529     sysv4*MP*)
6530       if test -d /usr/nec ;then
6531         lt_prog_compiler_pic='-Kconform_pic'
6532         lt_prog_compiler_static='-Bstatic'
6533       fi
6534       ;;
6536     uts4*)
6537       lt_prog_compiler_pic='-pic'
6538       lt_prog_compiler_static='-Bstatic'
6539       ;;
6541     *)
6542       lt_prog_compiler_can_build_shared=no
6543       ;;
6544     esac
6545   fi
6547 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6548 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6551 # Check to make sure the PIC flag actually works.
6553 if test -n "$lt_prog_compiler_pic"; then
6554   
6555 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6556 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6557 if test "${lt_prog_compiler_pic_works+set}" = set; then
6558   echo $ECHO_N "(cached) $ECHO_C" >&6
6559 else
6560   lt_prog_compiler_pic_works=no
6561   ac_outfile=conftest.$ac_objext
6562    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6563    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6564    # Insert the option either (1) after the last *FLAGS variable, or
6565    # (2) before a word containing "conftest.", or (3) at the end.
6566    # Note that $ac_compile itself does not contain backslashes and begins
6567    # with a dollar sign (not a hyphen), so the echo should work correctly.
6568    # The option is referenced via a variable to avoid confusing sed.
6569    lt_compile=`echo "$ac_compile" | $SED \
6570    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6571    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6572    -e 's:$: $lt_compiler_flag:'`
6573    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6574    (eval "$lt_compile" 2>conftest.err)
6575    ac_status=$?
6576    cat conftest.err >&5
6577    echo "$as_me:__oline__: \$? = $ac_status" >&5
6578    if (exit $ac_status) && test -s "$ac_outfile"; then
6579      # The compiler can only warn and ignore the option if not recognized
6580      # So say no if there are warnings
6581      if test ! -s conftest.err; then
6582        lt_prog_compiler_pic_works=yes
6583      fi
6584    fi
6585    $rm conftest*
6588 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6589 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6591 if test x"$lt_prog_compiler_pic_works" = xyes; then
6592     case $lt_prog_compiler_pic in
6593      "" | " "*) ;;
6594      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6595      esac
6596 else
6597     lt_prog_compiler_pic=
6598      lt_prog_compiler_can_build_shared=no
6602 case "$host_os" in
6603   # For platforms which do not support PIC, -DPIC is meaningless:
6604   *djgpp*)
6605     lt_prog_compiler_pic=
6606     ;;
6607   *)
6608     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6609     ;;
6610 esac
6612 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
6613 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
6614 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
6615   echo $ECHO_N "(cached) $ECHO_C" >&6
6616 else
6617   lt_cv_prog_compiler_c_o=no
6618    $rm -r conftest 2>/dev/null
6619    mkdir conftest
6620    cd conftest
6621    mkdir out
6622    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6624    lt_compiler_flag="-o out/conftest2.$ac_objext"
6625    # Insert the option either (1) after the last *FLAGS variable, or
6626    # (2) before a word containing "conftest.", or (3) at the end.
6627    # Note that $ac_compile itself does not contain backslashes and begins
6628    # with a dollar sign (not a hyphen), so the echo should work correctly.
6629    lt_compile=`echo "$ac_compile" | $SED \
6630    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
6631    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6632    -e 's:$: $lt_compiler_flag:'`
6633    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
6634    (eval "$lt_compile" 2>out/conftest.err)
6635    ac_status=$?
6636    cat out/conftest.err >&5
6637    echo "$as_me:__oline__: \$? = $ac_status" >&5
6638    if (exit $ac_status) && test -s out/conftest2.$ac_objext
6639    then
6640      # The compiler can only warn and ignore the option if not recognized
6641      # So say no if there are warnings
6642      if test ! -s out/conftest.err; then
6643        lt_cv_prog_compiler_c_o=yes
6644      fi
6645    fi
6646    chmod u+w .
6647    $rm conftest*
6648    # SGI C++ compiler will create directory out/ii_files/ for
6649    # template instantiation
6650    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
6651    $rm out/* && rmdir out
6652    cd ..
6653    rmdir conftest
6654    $rm conftest*
6657 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
6658 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
6661 hard_links="nottested"
6662 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
6663   # do not overwrite the value of need_locks provided by the user
6664   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
6665 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
6666   hard_links=yes
6667   $rm conftest*
6668   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6669   touch conftest.a
6670   ln conftest.a conftest.b 2>&5 || hard_links=no
6671   ln conftest.a conftest.b 2>/dev/null && hard_links=no
6672   echo "$as_me:$LINENO: result: $hard_links" >&5
6673 echo "${ECHO_T}$hard_links" >&6
6674   if test "$hard_links" = no; then
6675     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
6676 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
6677     need_locks=warn
6678   fi
6679 else
6680   need_locks=no
6683 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
6684 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
6686   runpath_var=
6687   allow_undefined_flag=
6688   enable_shared_with_static_runtimes=no
6689   archive_cmds=
6690   archive_expsym_cmds=
6691   old_archive_From_new_cmds=
6692   old_archive_from_expsyms_cmds=
6693   export_dynamic_flag_spec=
6694   whole_archive_flag_spec=
6695   thread_safe_flag_spec=
6696   hardcode_libdir_flag_spec=
6697   hardcode_libdir_flag_spec_ld=
6698   hardcode_libdir_separator=
6699   hardcode_direct=no
6700   hardcode_minus_L=no
6701   hardcode_shlibpath_var=unsupported
6702   link_all_deplibs=unknown
6703   hardcode_automatic=no
6704   module_cmds=
6705   module_expsym_cmds=
6706   always_export_symbols=no
6707   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
6708   # include_expsyms should be a list of space-separated symbols to be *always*
6709   # included in the symbol list
6710   include_expsyms=
6711   # exclude_expsyms can be an extended regexp of symbols to exclude
6712   # it will be wrapped by ` (' and `)$', so one must not match beginning or
6713   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
6714   # as well as any symbol that contains `d'.
6715   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
6716   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
6717   # platforms (ab)use it in PIC code, but their linkers get confused if
6718   # the symbol is explicitly referenced.  Since portable code cannot
6719   # rely on this symbol name, it's probably fine to never include it in
6720   # preloaded symbol tables.
6721   extract_expsyms_cmds=
6723   case $host_os in
6724   cygwin* | mingw* | pw32*)
6725     # FIXME: the MSVC++ port hasn't been tested in a loooong time
6726     # When not using gcc, we currently assume that we are using
6727     # Microsoft Visual C++.
6728     if test "$GCC" != yes; then
6729       with_gnu_ld=no
6730     fi
6731     ;;
6732   openbsd*)
6733     with_gnu_ld=no
6734     ;;
6735   esac
6737   ld_shlibs=yes
6738   if test "$with_gnu_ld" = yes; then
6739     # If archive_cmds runs LD, not CC, wlarc should be empty
6740     wlarc='${wl}'
6742     # See if GNU ld supports shared libraries.
6743     case $host_os in
6744     aix3* | aix4* | aix5*)
6745       # On AIX/PPC, the GNU linker is very broken
6746       if test "$host_cpu" != ia64; then
6747         ld_shlibs=no
6748         cat <<EOF 1>&2
6750 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
6751 *** to be unable to reliably create shared libraries on AIX.
6752 *** Therefore, libtool is disabling shared libraries support.  If you
6753 *** really care for shared libraries, you may want to modify your PATH
6754 *** so that a non-GNU linker is found, and then restart.
6757       fi
6758       ;;
6760     amigaos*)
6761       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)'
6762       hardcode_libdir_flag_spec='-L$libdir'
6763       hardcode_minus_L=yes
6765       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
6766       # that the semantics of dynamic libraries on AmigaOS, at least up
6767       # to version 4, is to share data among multiple programs linked
6768       # with the same dynamic library.  Since this doesn't match the
6769       # behavior of shared libraries on other platforms, we can't use
6770       # them.
6771       ld_shlibs=no
6772       ;;
6774     beos*)
6775       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6776         allow_undefined_flag=unsupported
6777         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
6778         # support --undefined.  This deserves some investigation.  FIXME
6779         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6780       else
6781         ld_shlibs=no
6782       fi
6783       ;;
6785     cygwin* | mingw* | pw32*)
6786       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
6787       # as there is no search path for DLLs.
6788       hardcode_libdir_flag_spec='-L$libdir'
6789       allow_undefined_flag=unsupported
6790       always_export_symbols=no
6791       enable_shared_with_static_runtimes=yes
6792       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
6794       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
6795         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
6796         # If the export-symbols file already is a .def file (1st line
6797         # is EXPORTS), use it as is; otherwise, prepend...
6798         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
6799           cp $export_symbols $output_objdir/$soname.def;
6800         else
6801           echo EXPORTS > $output_objdir/$soname.def;
6802           cat $export_symbols >> $output_objdir/$soname.def;
6803         fi~
6804         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
6805       else
6806         ld_shlibs=no
6807       fi
6808       ;;
6810     netbsd*)
6811       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
6812         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
6813         wlarc=
6814       else
6815         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6816         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6817       fi
6818       ;;
6820     solaris* | sysv5*)
6821       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
6822         ld_shlibs=no
6823         cat <<EOF 1>&2
6825 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
6826 *** create shared libraries on Solaris systems.  Therefore, libtool
6827 *** is disabling shared libraries support.  We urge you to upgrade GNU
6828 *** binutils to release 2.9.1 or newer.  Another option is to modify
6829 *** your PATH or compiler configuration so that the native linker is
6830 *** used, and then restart.
6833       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6834         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6835         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6836       else
6837         ld_shlibs=no
6838       fi
6839       ;;
6841     sunos4*)
6842       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
6843       wlarc=
6844       hardcode_direct=yes
6845       hardcode_shlibpath_var=no
6846       ;;
6848   linux*)
6849     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6850         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6851         archive_cmds="$tmp_archive_cmds"
6852       supports_anon_versioning=no
6853       case `$LD -v 2>/dev/null` in
6854         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
6855         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
6856         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
6857         *\ 2.11.*) ;; # other 2.11 versions
6858         *) supports_anon_versioning=yes ;;
6859       esac
6860       if test $supports_anon_versioning = yes; then
6861         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
6862 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
6863 $echo "local: *; };" >> $output_objdir/$libname.ver~
6864         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
6865       else
6866         archive_expsym_cmds="$tmp_archive_cmds"
6867       fi
6868     else
6869       ld_shlibs=no
6870     fi
6871     ;;
6873     *)
6874       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
6875         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
6876         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
6877       else
6878         ld_shlibs=no
6879       fi
6880       ;;
6881     esac
6883     if test "$ld_shlibs" = yes; then
6884       runpath_var=LD_RUN_PATH
6885       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
6886       export_dynamic_flag_spec='${wl}--export-dynamic'
6887       # ancient GNU ld didn't support --whole-archive et. al.
6888       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
6889         whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
6890       else
6891         whole_archive_flag_spec=
6892       fi
6893     fi
6894   else
6895     # PORTME fill in a description of your system's linker (not GNU ld)
6896     case $host_os in
6897     aix3*)
6898       allow_undefined_flag=unsupported
6899       always_export_symbols=yes
6900       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'
6901       # Note: this linker hardcodes the directories in LIBPATH if there
6902       # are no directories specified by -L.
6903       hardcode_minus_L=yes
6904       if test "$GCC" = yes && test -z "$link_static_flag"; then
6905         # Neither direct hardcoding nor static linking is supported with a
6906         # broken collect2.
6907         hardcode_direct=unsupported
6908       fi
6909       ;;
6911     aix4* | aix5*)
6912       if test "$host_cpu" = ia64; then
6913         # On IA64, the linker does run time linking by default, so we don't
6914         # have to do anything special.
6915         aix_use_runtimelinking=no
6916         exp_sym_flag='-Bexport'
6917         no_entry_flag=""
6918       else
6919         # If we're using GNU nm, then we don't want the "-C" option.
6920         # -C means demangle to AIX nm, but means don't demangle with GNU nm
6921         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
6922           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'
6923         else
6924           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'
6925         fi
6926         aix_use_runtimelinking=no
6928         # Test if we are trying to use run time linking or normal
6929         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
6930         # need to do runtime linking.
6931         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
6932           for ld_flag in $LDFLAGS; do
6933           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
6934             aix_use_runtimelinking=yes
6935             break
6936           fi
6937           done
6938         esac
6940         exp_sym_flag='-bexport'
6941         no_entry_flag='-bnoentry'
6942       fi
6944       # When large executables or shared objects are built, AIX ld can
6945       # have problems creating the table of contents.  If linking a library
6946       # or program results in "error TOC overflow" add -mminimal-toc to
6947       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
6948       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
6950       archive_cmds=''
6951       hardcode_direct=yes
6952       hardcode_libdir_separator=':'
6953       link_all_deplibs=yes
6955       if test "$GCC" = yes; then
6956         case $host_os in aix4.012|aix4.012.*)
6957         # We only want to do this on AIX 4.2 and lower, the check
6958         # below for broken collect2 doesn't work under 4.3+
6959           collect2name=`${CC} -print-prog-name=collect2`
6960           if test -f "$collect2name" && \
6961            strings "$collect2name" | grep resolve_lib_name >/dev/null
6962           then
6963           # We have reworked collect2
6964           hardcode_direct=yes
6965           else
6966           # We have old collect2
6967           hardcode_direct=unsupported
6968           # It fails to find uninstalled libraries when the uninstalled
6969           # path is not listed in the libpath.  Setting hardcode_minus_L
6970           # to unsupported forces relinking
6971           hardcode_minus_L=yes
6972           hardcode_libdir_flag_spec='-L$libdir'
6973           hardcode_libdir_separator=
6974           fi
6975         esac
6976         shared_flag='-shared'
6977       else
6978         # not using gcc
6979         if test "$host_cpu" = ia64; then
6980         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
6981         # chokes on -Wl,-G. The following line is correct:
6982           shared_flag='-G'
6983         else
6984         if test "$aix_use_runtimelinking" = yes; then
6985             shared_flag='${wl}-G'
6986           else
6987             shared_flag='${wl}-bM:SRE'
6988         fi
6989         fi
6990       fi
6992       # It seems that -bexpall does not export symbols beginning with
6993       # underscore (_), so it is better to generate a list of symbols to export.
6994       always_export_symbols=yes
6995       if test "$aix_use_runtimelinking" = yes; then
6996         # Warning - without using the other runtime loading flags (-brtl),
6997         # -berok will link without error, but may produce a broken library.
6998         allow_undefined_flag='-berok'
6999        # Determine the default libpath from the value encoded in an empty executable.
7000        cat >conftest.$ac_ext <<_ACEOF
7001 /* confdefs.h.  */
7002 _ACEOF
7003 cat confdefs.h >>conftest.$ac_ext
7004 cat >>conftest.$ac_ext <<_ACEOF
7005 /* end confdefs.h.  */
7008 main ()
7011   ;
7012   return 0;
7014 _ACEOF
7015 rm -f conftest.$ac_objext conftest$ac_exeext
7016 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7017   (eval $ac_link) 2>conftest.er1
7018   ac_status=$?
7019   grep -v '^ *+' conftest.er1 >conftest.err
7020   rm -f conftest.er1
7021   cat conftest.err >&5
7022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023   (exit $ac_status); } &&
7024          { ac_try='test -z "$ac_c_werror_flag"
7025                          || test ! -s conftest.err'
7026   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7027   (eval $ac_try) 2>&5
7028   ac_status=$?
7029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7030   (exit $ac_status); }; } &&
7031          { ac_try='test -s conftest$ac_exeext'
7032   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7033   (eval $ac_try) 2>&5
7034   ac_status=$?
7035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7036   (exit $ac_status); }; }; then
7037   
7038 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7040 # Check for a 64-bit object if we didn't find anything.
7041 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; }
7042 }'`; fi
7043 else
7044   echo "$as_me: failed program was:" >&5
7045 sed 's/^/| /' conftest.$ac_ext >&5
7048 rm -f conftest.err conftest.$ac_objext \
7049       conftest$ac_exeext conftest.$ac_ext
7050 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7052        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7053         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"
7054        else
7055         if test "$host_cpu" = ia64; then
7056           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7057           allow_undefined_flag="-z nodefs"
7058           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"
7059         else
7060          # Determine the default libpath from the value encoded in an empty executable.
7061          cat >conftest.$ac_ext <<_ACEOF
7062 /* confdefs.h.  */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h.  */
7069 main ()
7072   ;
7073   return 0;
7075 _ACEOF
7076 rm -f conftest.$ac_objext conftest$ac_exeext
7077 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7078   (eval $ac_link) 2>conftest.er1
7079   ac_status=$?
7080   grep -v '^ *+' conftest.er1 >conftest.err
7081   rm -f conftest.er1
7082   cat conftest.err >&5
7083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084   (exit $ac_status); } &&
7085          { ac_try='test -z "$ac_c_werror_flag"
7086                          || test ! -s conftest.err'
7087   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7088   (eval $ac_try) 2>&5
7089   ac_status=$?
7090   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091   (exit $ac_status); }; } &&
7092          { ac_try='test -s conftest$ac_exeext'
7093   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7094   (eval $ac_try) 2>&5
7095   ac_status=$?
7096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7097   (exit $ac_status); }; }; then
7098   
7099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7101 # Check for a 64-bit object if we didn't find anything.
7102 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; }
7103 }'`; fi
7104 else
7105   echo "$as_me: failed program was:" >&5
7106 sed 's/^/| /' conftest.$ac_ext >&5
7109 rm -f conftest.err conftest.$ac_objext \
7110       conftest$ac_exeext conftest.$ac_ext
7111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7113          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7114           # Warning - without using the other run time loading flags,
7115           # -berok will link without error, but may produce a broken library.
7116           no_undefined_flag=' ${wl}-bernotok'
7117           allow_undefined_flag=' ${wl}-berok'
7118           # -bexpall does not export symbols beginning with underscore (_)
7119           always_export_symbols=yes
7120           # Exported symbols can be pulled into shared objects from archives
7121           whole_archive_flag_spec=' '
7122           archive_cmds_need_lc=yes
7123           # This is similar to how AIX traditionally builds it's shared libraries.
7124           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'
7125         fi
7126       fi
7127       ;;
7129     amigaos*)
7130       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)'
7131       hardcode_libdir_flag_spec='-L$libdir'
7132       hardcode_minus_L=yes
7133       # see comment about different semantics on the GNU ld section
7134       ld_shlibs=no
7135       ;;
7137     bsdi4*)
7138       export_dynamic_flag_spec=-rdynamic
7139       ;;
7141     cygwin* | mingw* | pw32*)
7142       # When not using gcc, we currently assume that we are using
7143       # Microsoft Visual C++.
7144       # hardcode_libdir_flag_spec is actually meaningless, as there is
7145       # no search path for DLLs.
7146       hardcode_libdir_flag_spec=' '
7147       allow_undefined_flag=unsupported
7148       # Tell ltmain to make .lib files, not .a files.
7149       libext=lib
7150       # Tell ltmain to make .dll files, not .so files.
7151       shrext_cmds=".dll"
7152       # FIXME: Setting linknames here is a bad hack.
7153       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7154       # The linker will automatically build a .lib file if we build a DLL.
7155       old_archive_From_new_cmds='true'
7156       # FIXME: Should let the user specify the lib program.
7157       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7158       fix_srcfile_path='`cygpath -w "$srcfile"`'
7159       enable_shared_with_static_runtimes=yes
7160       ;;
7162     darwin* | rhapsody*)
7163     if test "$GXX" = yes ; then
7164       archive_cmds_need_lc=no
7165       case "$host_os" in
7166       rhapsody* | darwin1.[012])
7167         allow_undefined_flag='-undefined suppress'
7168         ;;
7169       *) # Darwin 1.3 on
7170       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7171         allow_undefined_flag='-flat_namespace -undefined suppress'
7172       else
7173         case ${MACOSX_DEPLOYMENT_TARGET} in
7174           10.[012])
7175             allow_undefined_flag='-flat_namespace -undefined suppress'
7176             ;;
7177           10.*)
7178             allow_undefined_flag='-undefined dynamic_lookup'
7179             ;;
7180         esac
7181       fi
7182         ;;
7183       esac
7184         lt_int_apple_cc_single_mod=no
7185         output_verbose_link_cmd='echo'
7186         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
7187           lt_int_apple_cc_single_mod=yes
7188         fi
7189         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7190           archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7191         else
7192         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'
7193       fi
7194       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7195       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
7196         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
7197           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}'
7198         else
7199           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}'
7200         fi
7201           module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7202       hardcode_direct=no
7203       hardcode_automatic=yes
7204       hardcode_shlibpath_var=unsupported
7205       whole_archive_flag_spec='-all_load $convenience'
7206       link_all_deplibs=yes
7207     else
7208       ld_shlibs=no
7209     fi
7210       ;;
7212     dgux*)
7213       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7214       hardcode_libdir_flag_spec='-L$libdir'
7215       hardcode_shlibpath_var=no
7216       ;;
7218     freebsd1*)
7219       ld_shlibs=no
7220       ;;
7222     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7223     # support.  Future versions do this automatically, but an explicit c++rt0.o
7224     # does not break anything, and helps significantly (at the cost of a little
7225     # extra space).
7226     freebsd2.2*)
7227       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7228       hardcode_libdir_flag_spec='-R$libdir'
7229       hardcode_direct=yes
7230       hardcode_shlibpath_var=no
7231       ;;
7233     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7234     freebsd2*)
7235       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7236       hardcode_direct=yes
7237       hardcode_minus_L=yes
7238       hardcode_shlibpath_var=no
7239       ;;
7241     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7242     freebsd* | kfreebsd*-gnu)
7243       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7244       hardcode_libdir_flag_spec='-R$libdir'
7245       hardcode_direct=yes
7246       hardcode_shlibpath_var=no
7247       ;;
7249     hpux9*)
7250       if test "$GCC" = yes; then
7251         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'
7252       else
7253         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'
7254       fi
7255       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7256       hardcode_libdir_separator=:
7257       hardcode_direct=yes
7259       # hardcode_minus_L: Not really in the search PATH,
7260       # but as the default location of the library.
7261       hardcode_minus_L=yes
7262       export_dynamic_flag_spec='${wl}-E'
7263       ;;
7265     hpux10* | hpux11*)
7266       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7267         case "$host_cpu" in
7268         hppa*64*|ia64*)
7269           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7270           ;;
7271         *)
7272           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7273           ;;
7274         esac
7275       else
7276         case "$host_cpu" in
7277         hppa*64*|ia64*)
7278           archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
7279           ;;
7280         *)
7281           archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7282           ;;
7283         esac
7284       fi
7285       if test "$with_gnu_ld" = no; then
7286         case "$host_cpu" in
7287         hppa*64*)
7288           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7289           hardcode_libdir_flag_spec_ld='+b $libdir'
7290           hardcode_libdir_separator=:
7291           hardcode_direct=no
7292           hardcode_shlibpath_var=no
7293           ;;
7294         ia64*)
7295           hardcode_libdir_flag_spec='-L$libdir'
7296           hardcode_direct=no
7297           hardcode_shlibpath_var=no
7299           # hardcode_minus_L: Not really in the search PATH,
7300           # but as the default location of the library.
7301           hardcode_minus_L=yes
7302           ;;
7303         *)
7304           hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7305           hardcode_libdir_separator=:
7306           hardcode_direct=yes
7307           export_dynamic_flag_spec='${wl}-E'
7309           # hardcode_minus_L: Not really in the search PATH,
7310           # but as the default location of the library.
7311           hardcode_minus_L=yes
7312           ;;
7313         esac
7314       fi
7315       ;;
7317     irix5* | irix6* | nonstopux*)
7318       if test "$GCC" = yes; then
7319         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'
7320       else
7321         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'
7322         hardcode_libdir_flag_spec_ld='-rpath $libdir'
7323       fi
7324       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7325       hardcode_libdir_separator=:
7326       link_all_deplibs=yes
7327       ;;
7329     netbsd*)
7330       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7331         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7332       else
7333         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7334       fi
7335       hardcode_libdir_flag_spec='-R$libdir'
7336       hardcode_direct=yes
7337       hardcode_shlibpath_var=no
7338       ;;
7340     newsos6)
7341       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7342       hardcode_direct=yes
7343       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7344       hardcode_libdir_separator=:
7345       hardcode_shlibpath_var=no
7346       ;;
7348     openbsd*)
7349       hardcode_direct=yes
7350       hardcode_shlibpath_var=no
7351       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7352         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7353         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7354         export_dynamic_flag_spec='${wl}-E'
7355       else
7356        case $host_os in
7357          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7358            archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7359            hardcode_libdir_flag_spec='-R$libdir'
7360            ;;
7361          *)
7362            archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7363            hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7364            ;;
7365        esac
7366       fi
7367       ;;
7369     os2*)
7370       hardcode_libdir_flag_spec='-L$libdir'
7371       hardcode_minus_L=yes
7372       allow_undefined_flag=unsupported
7373       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'
7374       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7375       ;;
7377     osf3*)
7378       if test "$GCC" = yes; then
7379         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7380         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'
7381       else
7382         allow_undefined_flag=' -expect_unresolved \*'
7383         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'
7384       fi
7385       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7386       hardcode_libdir_separator=:
7387       ;;
7389     osf4* | osf5*)      # as osf3* with the addition of -msym flag
7390       if test "$GCC" = yes; then
7391         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7392         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'
7393         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7394       else
7395         allow_undefined_flag=' -expect_unresolved \*'
7396         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'
7397         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7398         $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'
7400         # Both c and cxx compiler support -rpath directly
7401         hardcode_libdir_flag_spec='-rpath $libdir'
7402       fi
7403       hardcode_libdir_separator=:
7404       ;;
7406     sco3.2v5*)
7407       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7408       hardcode_shlibpath_var=no
7409       export_dynamic_flag_spec='${wl}-Bexport'
7410       runpath_var=LD_RUN_PATH
7411       hardcode_runpath_var=yes
7412       ;;
7414     solaris*)
7415       no_undefined_flag=' -z text'
7416       if test "$GCC" = yes; then
7417         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7418         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7419           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7420       else
7421         archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7422         archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7423         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7424       fi
7425       hardcode_libdir_flag_spec='-R$libdir'
7426       hardcode_shlibpath_var=no
7427       case $host_os in
7428       solaris2.[0-5] | solaris2.[0-5].*) ;;
7429       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
7430         whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7431       esac
7432       link_all_deplibs=yes
7433       ;;
7435     sunos4*)
7436       if test "x$host_vendor" = xsequent; then
7437         # Use $CC to link under sequent, because it throws in some extra .o
7438         # files that make .init and .fini sections work.
7439         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7440       else
7441         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7442       fi
7443       hardcode_libdir_flag_spec='-L$libdir'
7444       hardcode_direct=yes
7445       hardcode_minus_L=yes
7446       hardcode_shlibpath_var=no
7447       ;;
7449     sysv4)
7450       case $host_vendor in
7451         sni)
7452           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7453           hardcode_direct=yes # is this really true???
7454         ;;
7455         siemens)
7456           ## LD is ld it makes a PLAMLIB
7457           ## CC just makes a GrossModule.
7458           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7459           reload_cmds='$CC -r -o $output$reload_objs'
7460           hardcode_direct=no
7461         ;;
7462         motorola)
7463           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7464           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7465         ;;
7466       esac
7467       runpath_var='LD_RUN_PATH'
7468       hardcode_shlibpath_var=no
7469       ;;
7471     sysv4.3*)
7472       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7473       hardcode_shlibpath_var=no
7474       export_dynamic_flag_spec='-Bexport'
7475       ;;
7477     sysv4*MP*)
7478       if test -d /usr/nec; then
7479         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7480         hardcode_shlibpath_var=no
7481         runpath_var=LD_RUN_PATH
7482         hardcode_runpath_var=yes
7483         ld_shlibs=yes
7484       fi
7485       ;;
7487     sysv4.2uw2*)
7488       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7489       hardcode_direct=yes
7490       hardcode_minus_L=no
7491       hardcode_shlibpath_var=no
7492       hardcode_runpath_var=yes
7493       runpath_var=LD_RUN_PATH
7494       ;;
7496    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
7497       no_undefined_flag='${wl}-z ${wl}text'
7498       if test "$GCC" = yes; then
7499         archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7500       else
7501         archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7502       fi
7503       runpath_var='LD_RUN_PATH'
7504       hardcode_shlibpath_var=no
7505       ;;
7507     sysv5*)
7508       no_undefined_flag=' -z text'
7509       # $CC -shared without GNU ld will not create a library from C++
7510       # object files and a static libstdc++, better avoid it by now
7511       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7512       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7513                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7514       hardcode_libdir_flag_spec=
7515       hardcode_shlibpath_var=no
7516       runpath_var='LD_RUN_PATH'
7517       ;;
7519     uts4*)
7520       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7521       hardcode_libdir_flag_spec='-L$libdir'
7522       hardcode_shlibpath_var=no
7523       ;;
7525     *)
7526       ld_shlibs=no
7527       ;;
7528     esac
7529   fi
7531 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
7532 echo "${ECHO_T}$ld_shlibs" >&6
7533 test "$ld_shlibs" = no && can_build_shared=no
7535 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
7536 if test "$GCC" = yes; then
7537   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
7541 # Do we need to explicitly link libc?
7543 case "x$archive_cmds_need_lc" in
7544 x|xyes)
7545   # Assume -lc should be added
7546   archive_cmds_need_lc=yes
7548   if test "$enable_shared" = yes && test "$GCC" = yes; then
7549     case $archive_cmds in
7550     *'~'*)
7551       # FIXME: we may have to deal with multi-command sequences.
7552       ;;
7553     '$CC '*)
7554       # Test whether the compiler implicitly links with -lc since on some
7555       # systems, -lgcc has to come before -lc. If gcc already passes -lc
7556       # to ld, don't add -lc before -lgcc.
7557       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
7558 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
7559       $rm conftest*
7560       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7562       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7563   (eval $ac_compile) 2>&5
7564   ac_status=$?
7565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7566   (exit $ac_status); } 2>conftest.err; then
7567         soname=conftest
7568         lib=conftest
7569         libobjs=conftest.$ac_objext
7570         deplibs=
7571         wl=$lt_prog_compiler_wl
7572         compiler_flags=-v
7573         linker_flags=-v
7574         verstring=
7575         output_objdir=.
7576         libname=conftest
7577         lt_save_allow_undefined_flag=$allow_undefined_flag
7578         allow_undefined_flag=
7579         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
7580   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
7581   ac_status=$?
7582   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7583   (exit $ac_status); }
7584         then
7585           archive_cmds_need_lc=no
7586         else
7587           archive_cmds_need_lc=yes
7588         fi
7589         allow_undefined_flag=$lt_save_allow_undefined_flag
7590       else
7591         cat conftest.err 1>&5
7592       fi
7593       $rm conftest*
7594       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
7595 echo "${ECHO_T}$archive_cmds_need_lc" >&6
7596       ;;
7597     esac
7598   fi
7599   ;;
7600 esac
7602 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
7603 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
7604 library_names_spec=
7605 libname_spec='lib$name'
7606 soname_spec=
7607 shrext_cmds=".so"
7608 postinstall_cmds=
7609 postuninstall_cmds=
7610 finish_cmds=
7611 finish_eval=
7612 shlibpath_var=
7613 shlibpath_overrides_runpath=unknown
7614 version_type=none
7615 dynamic_linker="$host_os ld.so"
7616 sys_lib_dlsearch_path_spec="/lib /usr/lib"
7617 if test "$GCC" = yes; then
7618   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7619   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
7620     # if the path contains ";" then we assume it to be the separator
7621     # otherwise default to the standard path separator (i.e. ":") - it is
7622     # assumed that no part of a normal pathname contains ";" but that should
7623     # okay in the real world where ";" in dirpaths is itself problematic.
7624     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7625   else
7626     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7627   fi
7628 else
7629   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
7631 need_lib_prefix=unknown
7632 hardcode_into_libs=no
7634 # when you set need_version to no, make sure it does not cause -set_version
7635 # flags to be left without arguments
7636 need_version=unknown
7638 case $host_os in
7639 aix3*)
7640   version_type=linux
7641   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
7642   shlibpath_var=LIBPATH
7644   # AIX 3 has no versioning support, so we append a major version to the name.
7645   soname_spec='${libname}${release}${shared_ext}$major'
7646   ;;
7648 aix4* | aix5*)
7649   version_type=linux
7650   need_lib_prefix=no
7651   need_version=no
7652   hardcode_into_libs=yes
7653   if test "$host_cpu" = ia64; then
7654     # AIX 5 supports IA64
7655     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
7656     shlibpath_var=LD_LIBRARY_PATH
7657   else
7658     # With GCC up to 2.95.x, collect2 would create an import file
7659     # for dependence libraries.  The import file would start with
7660     # the line `#! .'.  This would cause the generated library to
7661     # depend on `.', always an invalid library.  This was fixed in
7662     # development snapshots of GCC prior to 3.0.
7663     case $host_os in
7664       aix4 | aix4.[01] | aix4.[01].*)
7665       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
7666            echo ' yes '
7667            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
7668         :
7669       else
7670         can_build_shared=no
7671       fi
7672       ;;
7673     esac
7674     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
7675     # soname into executable. Probably we can add versioning support to
7676     # collect2, so additional links can be useful in future.
7677     if test "$aix_use_runtimelinking" = yes; then
7678       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
7679       # instead of lib<name>.a to let people know that these are not
7680       # typical AIX shared libraries.
7681       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7682     else
7683       # We preserve .a as extension for shared libraries through AIX4.2
7684       # and later when we are not doing run time linking.
7685       library_names_spec='${libname}${release}.a $libname.a'
7686       soname_spec='${libname}${release}${shared_ext}$major'
7687     fi
7688     shlibpath_var=LIBPATH
7689   fi
7690   ;;
7692 amigaos*)
7693   library_names_spec='$libname.ixlibrary $libname.a'
7694   # Create ${libname}_ixlibrary.a entries in /sys/libs.
7695   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'
7696   ;;
7698 beos*)
7699   library_names_spec='${libname}${shared_ext}'
7700   dynamic_linker="$host_os ld.so"
7701   shlibpath_var=LIBRARY_PATH
7702   ;;
7704 bsdi4*)
7705   version_type=linux
7706   need_version=no
7707   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7708   soname_spec='${libname}${release}${shared_ext}$major'
7709   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
7710   shlibpath_var=LD_LIBRARY_PATH
7711   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
7712   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
7713   # the default ld.so.conf also contains /usr/contrib/lib and
7714   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
7715   # libtool to hard-code these into programs
7716   ;;
7718 cygwin* | mingw* | pw32*)
7719   version_type=windows
7720   shrext_cmds=".dll"
7721   need_version=no
7722   need_lib_prefix=no
7724   case $GCC,$host_os in
7725   yes,cygwin* | yes,mingw* | yes,pw32*)
7726     library_names_spec='$libname.dll.a'
7727     # DLL is installed to $(libdir)/../bin by postinstall_cmds
7728     postinstall_cmds='base_file=`basename \${file}`~
7729       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
7730       dldir=$destdir/`dirname \$dlpath`~
7731       test -d \$dldir || mkdir -p \$dldir~
7732       $install_prog $dir/$dlname \$dldir/$dlname'
7733     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
7734       dlpath=$dir/\$dldll~
7735        $rm \$dlpath'
7736     shlibpath_overrides_runpath=yes
7738     case $host_os in
7739     cygwin*)
7740       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
7741       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7742       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
7743       ;;
7744     mingw*)
7745       # MinGW DLLs use traditional 'lib' prefix
7746       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
7747       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
7748       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
7749         # It is most probably a Windows format PATH printed by
7750         # mingw gcc, but we are running on Cygwin. Gcc prints its search
7751         # path with ; separators, and with drive letters. We can handle the
7752         # drive letters (cygwin fileutils understands them), so leave them,
7753         # especially as we might pass files found there to a mingw objdump,
7754         # which wouldn't understand a cygwinified path. Ahh.
7755         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
7756       else
7757         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
7758       fi
7759       ;;
7760     pw32*)
7761       # pw32 DLLs use 'pw' prefix rather than 'lib'
7762       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
7763       ;;
7764     esac
7765     ;;
7767   *)
7768     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
7769     ;;
7770   esac
7771   dynamic_linker='Win32 ld.exe'
7772   # FIXME: first we should search . and the directory the executable is in
7773   shlibpath_var=PATH
7774   ;;
7776 darwin* | rhapsody*)
7777   dynamic_linker="$host_os dyld"
7778   version_type=darwin
7779   need_lib_prefix=no
7780   need_version=no
7781   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
7782   soname_spec='${libname}${release}${major}$shared_ext'
7783   shlibpath_overrides_runpath=yes
7784   shlibpath_var=DYLD_LIBRARY_PATH
7785   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
7786   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
7787   if test "$GCC" = yes; then
7788     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"`
7789   else
7790     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
7791   fi
7792   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
7793   ;;
7795 dgux*)
7796   version_type=linux
7797   need_lib_prefix=no
7798   need_version=no
7799   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
7800   soname_spec='${libname}${release}${shared_ext}$major'
7801   shlibpath_var=LD_LIBRARY_PATH
7802   ;;
7804 freebsd1*)
7805   dynamic_linker=no
7806   ;;
7808 kfreebsd*-gnu)
7809   version_type=linux
7810   need_lib_prefix=no
7811   need_version=no
7812   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
7813   soname_spec='${libname}${release}${shared_ext}$major'
7814   shlibpath_var=LD_LIBRARY_PATH
7815   shlibpath_overrides_runpath=no
7816   hardcode_into_libs=yes
7817   dynamic_linker='GNU ld.so'
7818   ;;
7820 freebsd*)
7821   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
7822   version_type=freebsd-$objformat
7823   case $version_type in
7824     freebsd-elf*)
7825       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
7826       need_version=no
7827       need_lib_prefix=no
7828       ;;
7829     freebsd-*)
7830       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
7831       need_version=yes
7832       ;;
7833   esac
7834   shlibpath_var=LD_LIBRARY_PATH
7835   case $host_os in
7836   freebsd2*)
7837     shlibpath_overrides_runpath=yes
7838     ;;
7839   freebsd3.01* | freebsdelf3.01*)
7840     shlibpath_overrides_runpath=yes
7841     hardcode_into_libs=yes
7842     ;;
7843   *) # from 3.2 on
7844     shlibpath_overrides_runpath=no
7845     hardcode_into_libs=yes
7846     ;;
7847   esac
7848   ;;
7850 gnu*)
7851   version_type=linux
7852   need_lib_prefix=no
7853   need_version=no
7854   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
7855   soname_spec='${libname}${release}${shared_ext}$major'
7856   shlibpath_var=LD_LIBRARY_PATH
7857   hardcode_into_libs=yes
7858   ;;
7860 hpux9* | hpux10* | hpux11*)
7861   # Give a soname corresponding to the major version so that dld.sl refuses to
7862   # link against other versions.
7863   version_type=sunos
7864   need_lib_prefix=no
7865   need_version=no
7866   case "$host_cpu" in
7867   ia64*)
7868     shrext_cmds='.so'
7869     hardcode_into_libs=yes
7870     dynamic_linker="$host_os dld.so"
7871     shlibpath_var=LD_LIBRARY_PATH
7872     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7873     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7874     soname_spec='${libname}${release}${shared_ext}$major'
7875     if test "X$HPUX_IA64_MODE" = X32; then
7876       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
7877     else
7878       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
7879     fi
7880     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7881     ;;
7882    hppa*64*)
7883      shrext_cmds='.sl'
7884      hardcode_into_libs=yes
7885      dynamic_linker="$host_os dld.sl"
7886      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
7887      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
7888      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7889      soname_spec='${libname}${release}${shared_ext}$major'
7890      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
7891      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
7892      ;;
7893    *)
7894     shrext_cmds='.sl'
7895     dynamic_linker="$host_os dld.sl"
7896     shlibpath_var=SHLIB_PATH
7897     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
7898     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7899     soname_spec='${libname}${release}${shared_ext}$major'
7900     ;;
7901   esac
7902   # HP-UX runs *really* slowly unless shared libraries are mode 555.
7903   postinstall_cmds='chmod 555 $lib'
7904   ;;
7906 irix5* | irix6* | nonstopux*)
7907   case $host_os in
7908     nonstopux*) version_type=nonstopux ;;
7909     *)
7910         if test "$lt_cv_prog_gnu_ld" = yes; then
7911                 version_type=linux
7912         else
7913                 version_type=irix
7914         fi ;;
7915   esac
7916   need_lib_prefix=no
7917   need_version=no
7918   soname_spec='${libname}${release}${shared_ext}$major'
7919   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
7920   case $host_os in
7921   irix5* | nonstopux*)
7922     libsuff= shlibsuff=
7923     ;;
7924   *)
7925     case $LD in # libtool.m4 will add one of these switches to LD
7926     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
7927       libsuff= shlibsuff= libmagic=32-bit;;
7928     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
7929       libsuff=32 shlibsuff=N32 libmagic=N32;;
7930     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
7931       libsuff=64 shlibsuff=64 libmagic=64-bit;;
7932     *) libsuff= shlibsuff= libmagic=never-match;;
7933     esac
7934     ;;
7935   esac
7936   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
7937   shlibpath_overrides_runpath=no
7938   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
7939   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
7940   hardcode_into_libs=yes
7941   ;;
7943 # No shared lib support for Linux oldld, aout, or coff.
7944 linux*oldld* | linux*aout* | linux*coff*)
7945   dynamic_linker=no
7946   ;;
7948 # This must be Linux ELF.
7949 linux*)
7950   version_type=linux
7951   need_lib_prefix=no
7952   need_version=no
7953   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
7954   soname_spec='${libname}${release}${shared_ext}$major'
7955   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
7956   shlibpath_var=LD_LIBRARY_PATH
7957   shlibpath_overrides_runpath=no
7958   # This implies no fast_install, which is unacceptable.
7959   # Some rework will be needed to allow for fast_install
7960   # before this can be enabled.
7961   hardcode_into_libs=yes
7963   # find out which ABI we are using
7964   libsuff=
7965   case "$host_cpu" in
7966   x86_64*|s390x*|powerpc64*)
7967     echo '#line __oline__ "configure"' > conftest.$ac_ext
7968     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7969   (eval $ac_compile) 2>&5
7970   ac_status=$?
7971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972   (exit $ac_status); }; then
7973       case `/usr/bin/file conftest.$ac_objext` in
7974       *64-bit*)
7975         libsuff=64
7976         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
7977         ;;
7978       esac
7979     fi
7980     rm -rf conftest*
7981     ;;
7982   esac
7984   # Append ld.so.conf contents to the search path
7985   if test -f /etc/ld.so.conf; then
7986     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
7987     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
7988   fi
7990   # We used to test for /lib/ld.so.1 and disable shared libraries on
7991   # powerpc, because MkLinux only supported shared libraries with the
7992   # GNU dynamic linker.  Since this was broken with cross compilers,
7993   # most powerpc-linux boxes support dynamic linking these days and
7994   # people can always --disable-shared, the test was removed, and we
7995   # assume the GNU/Linux dynamic linker is in use.
7996   dynamic_linker='GNU/Linux ld.so'
7997   ;;
7999 knetbsd*-gnu)
8000   version_type=linux
8001   need_lib_prefix=no
8002   need_version=no
8003   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8004   soname_spec='${libname}${release}${shared_ext}$major'
8005   shlibpath_var=LD_LIBRARY_PATH
8006   shlibpath_overrides_runpath=no
8007   hardcode_into_libs=yes
8008   dynamic_linker='GNU ld.so'
8009   ;;
8011 netbsd*)
8012   version_type=sunos
8013   need_lib_prefix=no
8014   need_version=no
8015   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8016     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8017     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8018     dynamic_linker='NetBSD (a.out) ld.so'
8019   else
8020     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8021     soname_spec='${libname}${release}${shared_ext}$major'
8022     dynamic_linker='NetBSD ld.elf_so'
8023   fi
8024   shlibpath_var=LD_LIBRARY_PATH
8025   shlibpath_overrides_runpath=yes
8026   hardcode_into_libs=yes
8027   ;;
8029 newsos6)
8030   version_type=linux
8031   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8032   shlibpath_var=LD_LIBRARY_PATH
8033   shlibpath_overrides_runpath=yes
8034   ;;
8036 nto-qnx*)
8037   version_type=linux
8038   need_lib_prefix=no
8039   need_version=no
8040   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8041   soname_spec='${libname}${release}${shared_ext}$major'
8042   shlibpath_var=LD_LIBRARY_PATH
8043   shlibpath_overrides_runpath=yes
8044   ;;
8046 openbsd*)
8047   version_type=sunos
8048   need_lib_prefix=no
8049   need_version=yes
8050   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8051   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8052   shlibpath_var=LD_LIBRARY_PATH
8053   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8054     case $host_os in
8055       openbsd2.[89] | openbsd2.[89].*)
8056         shlibpath_overrides_runpath=no
8057         ;;
8058       *)
8059         shlibpath_overrides_runpath=yes
8060         ;;
8061       esac
8062   else
8063     shlibpath_overrides_runpath=yes
8064   fi
8065   ;;
8067 os2*)
8068   libname_spec='$name'
8069   shrext_cmds=".dll"
8070   need_lib_prefix=no
8071   library_names_spec='$libname${shared_ext} $libname.a'
8072   dynamic_linker='OS/2 ld.exe'
8073   shlibpath_var=LIBPATH
8074   ;;
8076 osf3* | osf4* | osf5*)
8077   version_type=osf
8078   need_lib_prefix=no
8079   need_version=no
8080   soname_spec='${libname}${release}${shared_ext}$major'
8081   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8082   shlibpath_var=LD_LIBRARY_PATH
8083   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8084   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8085   ;;
8087 sco3.2v5*)
8088   version_type=osf
8089   soname_spec='${libname}${release}${shared_ext}$major'
8090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8091   shlibpath_var=LD_LIBRARY_PATH
8092   ;;
8094 solaris*)
8095   version_type=linux
8096   need_lib_prefix=no
8097   need_version=no
8098   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8099   soname_spec='${libname}${release}${shared_ext}$major'
8100   shlibpath_var=LD_LIBRARY_PATH
8101   shlibpath_overrides_runpath=yes
8102   hardcode_into_libs=yes
8103   # ldd complains unless libraries are executable
8104   postinstall_cmds='chmod +x $lib'
8105   ;;
8107 sunos4*)
8108   version_type=sunos
8109   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8110   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8111   shlibpath_var=LD_LIBRARY_PATH
8112   shlibpath_overrides_runpath=yes
8113   if test "$with_gnu_ld" = yes; then
8114     need_lib_prefix=no
8115   fi
8116   need_version=yes
8117   ;;
8119 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8120   version_type=linux
8121   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8122   soname_spec='${libname}${release}${shared_ext}$major'
8123   shlibpath_var=LD_LIBRARY_PATH
8124   case $host_vendor in
8125     sni)
8126       shlibpath_overrides_runpath=no
8127       need_lib_prefix=no
8128       export_dynamic_flag_spec='${wl}-Blargedynsym'
8129       runpath_var=LD_RUN_PATH
8130       ;;
8131     siemens)
8132       need_lib_prefix=no
8133       ;;
8134     motorola)
8135       need_lib_prefix=no
8136       need_version=no
8137       shlibpath_overrides_runpath=no
8138       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8139       ;;
8140   esac
8141   ;;
8143 sysv4*MP*)
8144   if test -d /usr/nec ;then
8145     version_type=linux
8146     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8147     soname_spec='$libname${shared_ext}.$major'
8148     shlibpath_var=LD_LIBRARY_PATH
8149   fi
8150   ;;
8152 uts4*)
8153   version_type=linux
8154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8155   soname_spec='${libname}${release}${shared_ext}$major'
8156   shlibpath_var=LD_LIBRARY_PATH
8157   ;;
8160   dynamic_linker=no
8161   ;;
8162 esac
8163 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8164 echo "${ECHO_T}$dynamic_linker" >&6
8165 test "$dynamic_linker" = no && can_build_shared=no
8167 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8168 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8169 hardcode_action=
8170 if test -n "$hardcode_libdir_flag_spec" || \
8171    test -n "$runpath_var " || \
8172    test "X$hardcode_automatic"="Xyes" ; then
8174   # We can hardcode non-existant directories.
8175   if test "$hardcode_direct" != no &&
8176      # If the only mechanism to avoid hardcoding is shlibpath_var, we
8177      # have to relink, otherwise we might link with an installed library
8178      # when we should be linking with a yet-to-be-installed one
8179      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8180      test "$hardcode_minus_L" != no; then
8181     # Linking always hardcodes the temporary library directory.
8182     hardcode_action=relink
8183   else
8184     # We can link without hardcoding, and we can hardcode nonexisting dirs.
8185     hardcode_action=immediate
8186   fi
8187 else
8188   # We cannot hardcode anything, or else we can only hardcode existing
8189   # directories.
8190   hardcode_action=unsupported
8192 echo "$as_me:$LINENO: result: $hardcode_action" >&5
8193 echo "${ECHO_T}$hardcode_action" >&6
8195 if test "$hardcode_action" = relink; then
8196   # Fast installation is not supported
8197   enable_fast_install=no
8198 elif test "$shlibpath_overrides_runpath" = yes ||
8199      test "$enable_shared" = no; then
8200   # Fast installation is not necessary
8201   enable_fast_install=needless
8204 striplib=
8205 old_striplib=
8206 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8207 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8208 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8209   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8210   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8211   echo "$as_me:$LINENO: result: yes" >&5
8212 echo "${ECHO_T}yes" >&6
8213 else
8214 # FIXME - insert some real tests, host_os isn't really good enough
8215   case $host_os in
8216    darwin*)
8217        if test -n "$STRIP" ; then
8218          striplib="$STRIP -x"
8219          echo "$as_me:$LINENO: result: yes" >&5
8220 echo "${ECHO_T}yes" >&6
8221        else
8222   echo "$as_me:$LINENO: result: no" >&5
8223 echo "${ECHO_T}no" >&6
8225        ;;
8226    *)
8227   echo "$as_me:$LINENO: result: no" >&5
8228 echo "${ECHO_T}no" >&6
8229     ;;
8230   esac
8233 if test "x$enable_dlopen" != xyes; then
8234   enable_dlopen=unknown
8235   enable_dlopen_self=unknown
8236   enable_dlopen_self_static=unknown
8237 else
8238   lt_cv_dlopen=no
8239   lt_cv_dlopen_libs=
8241   case $host_os in
8242   beos*)
8243     lt_cv_dlopen="load_add_on"
8244     lt_cv_dlopen_libs=
8245     lt_cv_dlopen_self=yes
8246     ;;
8248   mingw* | pw32*)
8249     lt_cv_dlopen="LoadLibrary"
8250     lt_cv_dlopen_libs=
8251    ;;
8253   cygwin*)
8254     lt_cv_dlopen="dlopen"
8255     lt_cv_dlopen_libs=
8256    ;;
8258   darwin*)
8259   # if libdl is installed we need to link against it
8260     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8261 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8262 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8263   echo $ECHO_N "(cached) $ECHO_C" >&6
8264 else
8265   ac_check_lib_save_LIBS=$LIBS
8266 LIBS="-ldl  $LIBS"
8267 cat >conftest.$ac_ext <<_ACEOF
8268 /* confdefs.h.  */
8269 _ACEOF
8270 cat confdefs.h >>conftest.$ac_ext
8271 cat >>conftest.$ac_ext <<_ACEOF
8272 /* end confdefs.h.  */
8274 /* Override any gcc2 internal prototype to avoid an error.  */
8275 #ifdef __cplusplus
8276 extern "C"
8277 #endif
8278 /* We use char because int might match the return type of a gcc2
8279    builtin and then its argument prototype would still apply.  */
8280 char dlopen ();
8282 main ()
8284 dlopen ();
8285   ;
8286   return 0;
8288 _ACEOF
8289 rm -f conftest.$ac_objext conftest$ac_exeext
8290 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8291   (eval $ac_link) 2>conftest.er1
8292   ac_status=$?
8293   grep -v '^ *+' conftest.er1 >conftest.err
8294   rm -f conftest.er1
8295   cat conftest.err >&5
8296   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297   (exit $ac_status); } &&
8298          { ac_try='test -z "$ac_c_werror_flag"
8299                          || test ! -s conftest.err'
8300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8301   (eval $ac_try) 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_lib_dl_dlopen=yes
8312 else
8313   echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.$ac_ext >&5
8316 ac_cv_lib_dl_dlopen=no
8318 rm -f conftest.err conftest.$ac_objext \
8319       conftest$ac_exeext conftest.$ac_ext
8320 LIBS=$ac_check_lib_save_LIBS
8322 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8323 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8324 if test $ac_cv_lib_dl_dlopen = yes; then
8325   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8326 else
8327   
8328     lt_cv_dlopen="dyld"
8329     lt_cv_dlopen_libs=
8330     lt_cv_dlopen_self=yes
8331     
8334    ;;
8336   *)
8337     echo "$as_me:$LINENO: checking for shl_load" >&5
8338 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8339 if test "${ac_cv_func_shl_load+set}" = set; then
8340   echo $ECHO_N "(cached) $ECHO_C" >&6
8341 else
8342   cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h.  */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h.  */
8348 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8349    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8350 #define shl_load innocuous_shl_load
8352 /* System header to define __stub macros and hopefully few prototypes,
8353     which can conflict with char shl_load (); below.
8354     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8355     <limits.h> exists even on freestanding compilers.  */
8357 #ifdef __STDC__
8358 # include <limits.h>
8359 #else
8360 # include <assert.h>
8361 #endif
8363 #undef shl_load
8365 /* Override any gcc2 internal prototype to avoid an error.  */
8366 #ifdef __cplusplus
8367 extern "C"
8369 #endif
8370 /* We use char because int might match the return type of a gcc2
8371    builtin and then its argument prototype would still apply.  */
8372 char shl_load ();
8373 /* The GNU C library defines this for functions which it implements
8374     to always fail with ENOSYS.  Some functions are actually named
8375     something starting with __ and the normal name is an alias.  */
8376 #if defined (__stub_shl_load) || defined (__stub___shl_load)
8377 choke me
8378 #else
8379 char (*f) () = shl_load;
8380 #endif
8381 #ifdef __cplusplus
8383 #endif
8386 main ()
8388 return f != shl_load;
8389   ;
8390   return 0;
8392 _ACEOF
8393 rm -f conftest.$ac_objext conftest$ac_exeext
8394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8395   (eval $ac_link) 2>conftest.er1
8396   ac_status=$?
8397   grep -v '^ *+' conftest.er1 >conftest.err
8398   rm -f conftest.er1
8399   cat conftest.err >&5
8400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401   (exit $ac_status); } &&
8402          { ac_try='test -z "$ac_c_werror_flag"
8403                          || test ! -s conftest.err'
8404   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8405   (eval $ac_try) 2>&5
8406   ac_status=$?
8407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408   (exit $ac_status); }; } &&
8409          { ac_try='test -s conftest$ac_exeext'
8410   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411   (eval $ac_try) 2>&5
8412   ac_status=$?
8413   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414   (exit $ac_status); }; }; then
8415   ac_cv_func_shl_load=yes
8416 else
8417   echo "$as_me: failed program was:" >&5
8418 sed 's/^/| /' conftest.$ac_ext >&5
8420 ac_cv_func_shl_load=no
8422 rm -f conftest.err conftest.$ac_objext \
8423       conftest$ac_exeext conftest.$ac_ext
8425 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8426 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8427 if test $ac_cv_func_shl_load = yes; then
8428   lt_cv_dlopen="shl_load"
8429 else
8430   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8431 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8432 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8433   echo $ECHO_N "(cached) $ECHO_C" >&6
8434 else
8435   ac_check_lib_save_LIBS=$LIBS
8436 LIBS="-ldld  $LIBS"
8437 cat >conftest.$ac_ext <<_ACEOF
8438 /* confdefs.h.  */
8439 _ACEOF
8440 cat confdefs.h >>conftest.$ac_ext
8441 cat >>conftest.$ac_ext <<_ACEOF
8442 /* end confdefs.h.  */
8444 /* Override any gcc2 internal prototype to avoid an error.  */
8445 #ifdef __cplusplus
8446 extern "C"
8447 #endif
8448 /* We use char because int might match the return type of a gcc2
8449    builtin and then its argument prototype would still apply.  */
8450 char shl_load ();
8452 main ()
8454 shl_load ();
8455   ;
8456   return 0;
8458 _ACEOF
8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461   (eval $ac_link) 2>conftest.er1
8462   ac_status=$?
8463   grep -v '^ *+' conftest.er1 >conftest.err
8464   rm -f conftest.er1
8465   cat conftest.err >&5
8466   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467   (exit $ac_status); } &&
8468          { ac_try='test -z "$ac_c_werror_flag"
8469                          || test ! -s conftest.err'
8470   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8471   (eval $ac_try) 2>&5
8472   ac_status=$?
8473   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8474   (exit $ac_status); }; } &&
8475          { ac_try='test -s conftest$ac_exeext'
8476   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8477   (eval $ac_try) 2>&5
8478   ac_status=$?
8479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8480   (exit $ac_status); }; }; then
8481   ac_cv_lib_dld_shl_load=yes
8482 else
8483   echo "$as_me: failed program was:" >&5
8484 sed 's/^/| /' conftest.$ac_ext >&5
8486 ac_cv_lib_dld_shl_load=no
8488 rm -f conftest.err conftest.$ac_objext \
8489       conftest$ac_exeext conftest.$ac_ext
8490 LIBS=$ac_check_lib_save_LIBS
8492 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
8493 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
8494 if test $ac_cv_lib_dld_shl_load = yes; then
8495   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
8496 else
8497   echo "$as_me:$LINENO: checking for dlopen" >&5
8498 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
8499 if test "${ac_cv_func_dlopen+set}" = set; then
8500   echo $ECHO_N "(cached) $ECHO_C" >&6
8501 else
8502   cat >conftest.$ac_ext <<_ACEOF
8503 /* confdefs.h.  */
8504 _ACEOF
8505 cat confdefs.h >>conftest.$ac_ext
8506 cat >>conftest.$ac_ext <<_ACEOF
8507 /* end confdefs.h.  */
8508 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
8509    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8510 #define dlopen innocuous_dlopen
8512 /* System header to define __stub macros and hopefully few prototypes,
8513     which can conflict with char dlopen (); below.
8514     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8515     <limits.h> exists even on freestanding compilers.  */
8517 #ifdef __STDC__
8518 # include <limits.h>
8519 #else
8520 # include <assert.h>
8521 #endif
8523 #undef dlopen
8525 /* Override any gcc2 internal prototype to avoid an error.  */
8526 #ifdef __cplusplus
8527 extern "C"
8529 #endif
8530 /* We use char because int might match the return type of a gcc2
8531    builtin and then its argument prototype would still apply.  */
8532 char dlopen ();
8533 /* The GNU C library defines this for functions which it implements
8534     to always fail with ENOSYS.  Some functions are actually named
8535     something starting with __ and the normal name is an alias.  */
8536 #if defined (__stub_dlopen) || defined (__stub___dlopen)
8537 choke me
8538 #else
8539 char (*f) () = dlopen;
8540 #endif
8541 #ifdef __cplusplus
8543 #endif
8546 main ()
8548 return f != dlopen;
8549   ;
8550   return 0;
8552 _ACEOF
8553 rm -f conftest.$ac_objext conftest$ac_exeext
8554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8555   (eval $ac_link) 2>conftest.er1
8556   ac_status=$?
8557   grep -v '^ *+' conftest.er1 >conftest.err
8558   rm -f conftest.er1
8559   cat conftest.err >&5
8560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8561   (exit $ac_status); } &&
8562          { ac_try='test -z "$ac_c_werror_flag"
8563                          || test ! -s conftest.err'
8564   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8565   (eval $ac_try) 2>&5
8566   ac_status=$?
8567   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8568   (exit $ac_status); }; } &&
8569          { ac_try='test -s conftest$ac_exeext'
8570   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8571   (eval $ac_try) 2>&5
8572   ac_status=$?
8573   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574   (exit $ac_status); }; }; then
8575   ac_cv_func_dlopen=yes
8576 else
8577   echo "$as_me: failed program was:" >&5
8578 sed 's/^/| /' conftest.$ac_ext >&5
8580 ac_cv_func_dlopen=no
8582 rm -f conftest.err conftest.$ac_objext \
8583       conftest$ac_exeext conftest.$ac_ext
8585 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
8586 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
8587 if test $ac_cv_func_dlopen = yes; then
8588   lt_cv_dlopen="dlopen"
8589 else
8590   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8591 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8592 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8593   echo $ECHO_N "(cached) $ECHO_C" >&6
8594 else
8595   ac_check_lib_save_LIBS=$LIBS
8596 LIBS="-ldl  $LIBS"
8597 cat >conftest.$ac_ext <<_ACEOF
8598 /* confdefs.h.  */
8599 _ACEOF
8600 cat confdefs.h >>conftest.$ac_ext
8601 cat >>conftest.$ac_ext <<_ACEOF
8602 /* end confdefs.h.  */
8604 /* Override any gcc2 internal prototype to avoid an error.  */
8605 #ifdef __cplusplus
8606 extern "C"
8607 #endif
8608 /* We use char because int might match the return type of a gcc2
8609    builtin and then its argument prototype would still apply.  */
8610 char dlopen ();
8612 main ()
8614 dlopen ();
8615   ;
8616   return 0;
8618 _ACEOF
8619 rm -f conftest.$ac_objext conftest$ac_exeext
8620 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8621   (eval $ac_link) 2>conftest.er1
8622   ac_status=$?
8623   grep -v '^ *+' conftest.er1 >conftest.err
8624   rm -f conftest.er1
8625   cat conftest.err >&5
8626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627   (exit $ac_status); } &&
8628          { ac_try='test -z "$ac_c_werror_flag"
8629                          || test ! -s conftest.err'
8630   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8631   (eval $ac_try) 2>&5
8632   ac_status=$?
8633   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8634   (exit $ac_status); }; } &&
8635          { ac_try='test -s conftest$ac_exeext'
8636   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8637   (eval $ac_try) 2>&5
8638   ac_status=$?
8639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640   (exit $ac_status); }; }; then
8641   ac_cv_lib_dl_dlopen=yes
8642 else
8643   echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8646 ac_cv_lib_dl_dlopen=no
8648 rm -f conftest.err conftest.$ac_objext \
8649       conftest$ac_exeext conftest.$ac_ext
8650 LIBS=$ac_check_lib_save_LIBS
8652 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8653 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8654 if test $ac_cv_lib_dl_dlopen = yes; then
8655   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8656 else
8657   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
8658 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
8659 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
8660   echo $ECHO_N "(cached) $ECHO_C" >&6
8661 else
8662   ac_check_lib_save_LIBS=$LIBS
8663 LIBS="-lsvld  $LIBS"
8664 cat >conftest.$ac_ext <<_ACEOF
8665 /* confdefs.h.  */
8666 _ACEOF
8667 cat confdefs.h >>conftest.$ac_ext
8668 cat >>conftest.$ac_ext <<_ACEOF
8669 /* end confdefs.h.  */
8671 /* Override any gcc2 internal prototype to avoid an error.  */
8672 #ifdef __cplusplus
8673 extern "C"
8674 #endif
8675 /* We use char because int might match the return type of a gcc2
8676    builtin and then its argument prototype would still apply.  */
8677 char dlopen ();
8679 main ()
8681 dlopen ();
8682   ;
8683   return 0;
8685 _ACEOF
8686 rm -f conftest.$ac_objext conftest$ac_exeext
8687 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8688   (eval $ac_link) 2>conftest.er1
8689   ac_status=$?
8690   grep -v '^ *+' conftest.er1 >conftest.err
8691   rm -f conftest.er1
8692   cat conftest.err >&5
8693   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694   (exit $ac_status); } &&
8695          { ac_try='test -z "$ac_c_werror_flag"
8696                          || test ! -s conftest.err'
8697   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8698   (eval $ac_try) 2>&5
8699   ac_status=$?
8700   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8701   (exit $ac_status); }; } &&
8702          { ac_try='test -s conftest$ac_exeext'
8703   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8704   (eval $ac_try) 2>&5
8705   ac_status=$?
8706   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8707   (exit $ac_status); }; }; then
8708   ac_cv_lib_svld_dlopen=yes
8709 else
8710   echo "$as_me: failed program was:" >&5
8711 sed 's/^/| /' conftest.$ac_ext >&5
8713 ac_cv_lib_svld_dlopen=no
8715 rm -f conftest.err conftest.$ac_objext \
8716       conftest$ac_exeext conftest.$ac_ext
8717 LIBS=$ac_check_lib_save_LIBS
8719 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
8720 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
8721 if test $ac_cv_lib_svld_dlopen = yes; then
8722   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
8723 else
8724   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
8725 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
8726 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
8727   echo $ECHO_N "(cached) $ECHO_C" >&6
8728 else
8729   ac_check_lib_save_LIBS=$LIBS
8730 LIBS="-ldld  $LIBS"
8731 cat >conftest.$ac_ext <<_ACEOF
8732 /* confdefs.h.  */
8733 _ACEOF
8734 cat confdefs.h >>conftest.$ac_ext
8735 cat >>conftest.$ac_ext <<_ACEOF
8736 /* end confdefs.h.  */
8738 /* Override any gcc2 internal prototype to avoid an error.  */
8739 #ifdef __cplusplus
8740 extern "C"
8741 #endif
8742 /* We use char because int might match the return type of a gcc2
8743    builtin and then its argument prototype would still apply.  */
8744 char dld_link ();
8746 main ()
8748 dld_link ();
8749   ;
8750   return 0;
8752 _ACEOF
8753 rm -f conftest.$ac_objext conftest$ac_exeext
8754 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8755   (eval $ac_link) 2>conftest.er1
8756   ac_status=$?
8757   grep -v '^ *+' conftest.er1 >conftest.err
8758   rm -f conftest.er1
8759   cat conftest.err >&5
8760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761   (exit $ac_status); } &&
8762          { ac_try='test -z "$ac_c_werror_flag"
8763                          || test ! -s conftest.err'
8764   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8765   (eval $ac_try) 2>&5
8766   ac_status=$?
8767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768   (exit $ac_status); }; } &&
8769          { ac_try='test -s conftest$ac_exeext'
8770   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8771   (eval $ac_try) 2>&5
8772   ac_status=$?
8773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8774   (exit $ac_status); }; }; then
8775   ac_cv_lib_dld_dld_link=yes
8776 else
8777   echo "$as_me: failed program was:" >&5
8778 sed 's/^/| /' conftest.$ac_ext >&5
8780 ac_cv_lib_dld_dld_link=no
8782 rm -f conftest.err conftest.$ac_objext \
8783       conftest$ac_exeext conftest.$ac_ext
8784 LIBS=$ac_check_lib_save_LIBS
8786 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
8787 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
8788 if test $ac_cv_lib_dld_dld_link = yes; then
8789   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
8792               
8795             
8798           
8801         
8804       
8807     ;;
8808   esac
8810   if test "x$lt_cv_dlopen" != xno; then
8811     enable_dlopen=yes
8812   else
8813     enable_dlopen=no
8814   fi
8816   case $lt_cv_dlopen in
8817   dlopen)
8818     save_CPPFLAGS="$CPPFLAGS"
8819     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8821     save_LDFLAGS="$LDFLAGS"
8822     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8824     save_LIBS="$LIBS"
8825     LIBS="$lt_cv_dlopen_libs $LIBS"
8827     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
8828 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
8829 if test "${lt_cv_dlopen_self+set}" = set; then
8830   echo $ECHO_N "(cached) $ECHO_C" >&6
8831 else
8832           if test "$cross_compiling" = yes; then :
8833   lt_cv_dlopen_self=cross
8834 else
8835   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8836   lt_status=$lt_dlunknown
8837   cat > conftest.$ac_ext <<EOF
8838 #line __oline__ "configure"
8839 #include "confdefs.h"
8841 #if HAVE_DLFCN_H
8842 #include <dlfcn.h>
8843 #endif
8845 #include <stdio.h>
8847 #ifdef RTLD_GLOBAL
8848 #  define LT_DLGLOBAL           RTLD_GLOBAL
8849 #else
8850 #  ifdef DL_GLOBAL
8851 #    define LT_DLGLOBAL         DL_GLOBAL
8852 #  else
8853 #    define LT_DLGLOBAL         0
8854 #  endif
8855 #endif
8857 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8858    find out it does not work in some platform. */
8859 #ifndef LT_DLLAZY_OR_NOW
8860 #  ifdef RTLD_LAZY
8861 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8862 #  else
8863 #    ifdef DL_LAZY
8864 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8865 #    else
8866 #      ifdef RTLD_NOW
8867 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8868 #      else
8869 #        ifdef DL_NOW
8870 #          define LT_DLLAZY_OR_NOW      DL_NOW
8871 #        else
8872 #          define LT_DLLAZY_OR_NOW      0
8873 #        endif
8874 #      endif
8875 #    endif
8876 #  endif
8877 #endif
8879 #ifdef __cplusplus
8880 extern "C" void exit (int);
8881 #endif
8883 void fnord() { int i=42;}
8884 int main ()
8886   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8887   int status = $lt_dlunknown;
8889   if (self)
8890     {
8891       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8892       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8893       /* dlclose (self); */
8894     }
8896     exit (status);
8899   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8900   (eval $ac_link) 2>&5
8901   ac_status=$?
8902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8903   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
8904     (./conftest; exit; ) 2>/dev/null
8905     lt_status=$?
8906     case x$lt_status in
8907       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
8908       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
8909       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
8910     esac
8911   else :
8912     # compilation failed
8913     lt_cv_dlopen_self=no
8914   fi
8916 rm -fr conftest*
8918     
8920 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
8921 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
8923     if test "x$lt_cv_dlopen_self" = xyes; then
8924       LDFLAGS="$LDFLAGS $link_static_flag"
8925       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
8926 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
8927 if test "${lt_cv_dlopen_self_static+set}" = set; then
8928   echo $ECHO_N "(cached) $ECHO_C" >&6
8929 else
8930           if test "$cross_compiling" = yes; then :
8931   lt_cv_dlopen_self_static=cross
8932 else
8933   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
8934   lt_status=$lt_dlunknown
8935   cat > conftest.$ac_ext <<EOF
8936 #line __oline__ "configure"
8937 #include "confdefs.h"
8939 #if HAVE_DLFCN_H
8940 #include <dlfcn.h>
8941 #endif
8943 #include <stdio.h>
8945 #ifdef RTLD_GLOBAL
8946 #  define LT_DLGLOBAL           RTLD_GLOBAL
8947 #else
8948 #  ifdef DL_GLOBAL
8949 #    define LT_DLGLOBAL         DL_GLOBAL
8950 #  else
8951 #    define LT_DLGLOBAL         0
8952 #  endif
8953 #endif
8955 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
8956    find out it does not work in some platform. */
8957 #ifndef LT_DLLAZY_OR_NOW
8958 #  ifdef RTLD_LAZY
8959 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
8960 #  else
8961 #    ifdef DL_LAZY
8962 #      define LT_DLLAZY_OR_NOW          DL_LAZY
8963 #    else
8964 #      ifdef RTLD_NOW
8965 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
8966 #      else
8967 #        ifdef DL_NOW
8968 #          define LT_DLLAZY_OR_NOW      DL_NOW
8969 #        else
8970 #          define LT_DLLAZY_OR_NOW      0
8971 #        endif
8972 #      endif
8973 #    endif
8974 #  endif
8975 #endif
8977 #ifdef __cplusplus
8978 extern "C" void exit (int);
8979 #endif
8981 void fnord() { int i=42;}
8982 int main ()
8984   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
8985   int status = $lt_dlunknown;
8987   if (self)
8988     {
8989       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
8990       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
8991       /* dlclose (self); */
8992     }
8994     exit (status);
8997   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8998   (eval $ac_link) 2>&5
8999   ac_status=$?
9000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9002     (./conftest; exit; ) 2>/dev/null
9003     lt_status=$?
9004     case x$lt_status in
9005       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9006       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9007       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
9008     esac
9009   else :
9010     # compilation failed
9011     lt_cv_dlopen_self_static=no
9012   fi
9014 rm -fr conftest*
9016       
9018 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9019 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9020     fi
9022     CPPFLAGS="$save_CPPFLAGS"
9023     LDFLAGS="$save_LDFLAGS"
9024     LIBS="$save_LIBS"
9025     ;;
9026   esac
9028   case $lt_cv_dlopen_self in
9029   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9030   *) enable_dlopen_self=unknown ;;
9031   esac
9033   case $lt_cv_dlopen_self_static in
9034   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9035   *) enable_dlopen_self_static=unknown ;;
9036   esac
9040 # Report which librarie types wil actually be built
9041 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9042 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9043 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9044 echo "${ECHO_T}$can_build_shared" >&6
9046 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9047 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9048 test "$can_build_shared" = "no" && enable_shared=no
9050 # On AIX, shared libraries and static libraries use the same namespace, and
9051 # are all built from PIC.
9052 case "$host_os" in
9053 aix3*)
9054   test "$enable_shared" = yes && enable_static=no
9055   if test -n "$RANLIB"; then
9056     archive_cmds="$archive_cmds~\$RANLIB \$lib"
9057     postinstall_cmds='$RANLIB $lib'
9058   fi
9059   ;;
9061 aix4* | aix5*)
9062   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9063     test "$enable_shared" = yes && enable_static=no
9064   fi
9065   ;;
9066   darwin* | rhapsody*)
9067   if test "$GCC" = yes; then
9068     archive_cmds_need_lc=no
9069     case "$host_os" in
9070     rhapsody* | darwin1.[012])
9071       allow_undefined_flag='-undefined suppress'
9072       ;;
9073     *) # Darwin 1.3 on
9074       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9075         allow_undefined_flag='-flat_namespace -undefined suppress'
9076       else
9077         case ${MACOSX_DEPLOYMENT_TARGET} in
9078           10.[012])
9079             allow_undefined_flag='-flat_namespace -undefined suppress'
9080             ;;
9081           10.*)
9082             allow_undefined_flag='-undefined dynamic_lookup'
9083             ;;
9084         esac
9085       fi
9086       ;;
9087     esac
9088     output_verbose_link_cmd='echo'
9089     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
9090     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9091     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9092     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}'
9093     module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9094     hardcode_direct=no
9095     hardcode_automatic=yes
9096     hardcode_shlibpath_var=unsupported
9097     whole_archive_flag_spec='-all_load $convenience'
9098     link_all_deplibs=yes
9099   else
9100     ld_shlibs=no
9101   fi
9102     ;;
9103 esac
9104 echo "$as_me:$LINENO: result: $enable_shared" >&5
9105 echo "${ECHO_T}$enable_shared" >&6
9107 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9108 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9109 # Make sure either enable_shared or enable_static is yes.
9110 test "$enable_shared" = yes || enable_static=yes
9111 echo "$as_me:$LINENO: result: $enable_static" >&5
9112 echo "${ECHO_T}$enable_static" >&6
9114 # The else clause should only fire when bootstrapping the
9115 # libtool distribution, otherwise you forgot to ship ltmain.sh
9116 # with your package, and you will get complaints that there are
9117 # no rules to generate ltmain.sh.
9118 if test -f "$ltmain"; then
9119   # See if we are running on zsh, and set the options which allow our commands through
9120   # without removal of \ escapes.
9121   if test -n "${ZSH_VERSION+set}" ; then
9122     setopt NO_GLOB_SUBST
9123   fi
9124   # Now quote all the things that may contain metacharacters while being
9125   # careful not to overquote the AC_SUBSTed values.  We take copies of the
9126   # variables and quote the copies for generation of the libtool script.
9127   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
9128     SED SHELL STRIP \
9129     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9130     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9131     deplibs_check_method reload_flag reload_cmds need_locks \
9132     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9133     lt_cv_sys_global_symbol_to_c_name_address \
9134     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9135     old_postinstall_cmds old_postuninstall_cmds \
9136     compiler \
9137     CC \
9138     LD \
9139     lt_prog_compiler_wl \
9140     lt_prog_compiler_pic \
9141     lt_prog_compiler_static \
9142     lt_prog_compiler_no_builtin_flag \
9143     export_dynamic_flag_spec \
9144     thread_safe_flag_spec \
9145     whole_archive_flag_spec \
9146     enable_shared_with_static_runtimes \
9147     old_archive_cmds \
9148     old_archive_from_new_cmds \
9149     predep_objects \
9150     postdep_objects \
9151     predeps \
9152     postdeps \
9153     compiler_lib_search_path \
9154     archive_cmds \
9155     archive_expsym_cmds \
9156     postinstall_cmds \
9157     postuninstall_cmds \
9158     old_archive_from_expsyms_cmds \
9159     allow_undefined_flag \
9160     no_undefined_flag \
9161     export_symbols_cmds \
9162     hardcode_libdir_flag_spec \
9163     hardcode_libdir_flag_spec_ld \
9164     hardcode_libdir_separator \
9165     hardcode_automatic \
9166     module_cmds \
9167     module_expsym_cmds \
9168     lt_cv_prog_compiler_c_o \
9169     exclude_expsyms \
9170     include_expsyms; do
9172     case $var in
9173     old_archive_cmds | \
9174     old_archive_from_new_cmds | \
9175     archive_cmds | \
9176     archive_expsym_cmds | \
9177     module_cmds | \
9178     module_expsym_cmds | \
9179     old_archive_from_expsyms_cmds | \
9180     export_symbols_cmds | \
9181     extract_expsyms_cmds | reload_cmds | finish_cmds | \
9182     postinstall_cmds | postuninstall_cmds | \
9183     old_postinstall_cmds | old_postuninstall_cmds | \
9184     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9185       # Double-quote double-evaled strings.
9186       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9187       ;;
9188     *)
9189       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9190       ;;
9191     esac
9192   done
9194   case $lt_echo in
9195   *'\$0 --fallback-echo"')
9196     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9197     ;;
9198   esac
9200 cfgfile="${ofile}T"
9201   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9202   $rm -f "$cfgfile"
9203   { echo "$as_me:$LINENO: creating $ofile" >&5
9204 echo "$as_me: creating $ofile" >&6;}
9206   cat <<__EOF__ >> "$cfgfile"
9207 #! $SHELL
9209 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9210 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9211 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9213 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9214 # Free Software Foundation, Inc.
9216 # This file is part of GNU Libtool:
9217 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9219 # This program is free software; you can redistribute it and/or modify
9220 # it under the terms of the GNU General Public License as published by
9221 # the Free Software Foundation; either version 2 of the License, or
9222 # (at your option) any later version.
9224 # This program is distributed in the hope that it will be useful, but
9225 # WITHOUT ANY WARRANTY; without even the implied warranty of
9226 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9227 # General Public License for more details.
9229 # You should have received a copy of the GNU General Public License
9230 # along with this program; if not, write to the Free Software
9231 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
9233 # As a special exception to the GNU General Public License, if you
9234 # distribute this file as part of a program that contains a
9235 # configuration script generated by Autoconf, you may include it under
9236 # the same distribution terms that you use for the rest of that program.
9238 # A sed program that does not truncate output.
9239 SED=$lt_SED
9241 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9242 Xsed="$SED -e s/^X//"
9244 # The HP-UX ksh and POSIX shell print the target directory to stdout
9245 # if CDPATH is set.
9246 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
9248 # The names of the tagged configurations supported by this script.
9249 available_tags=
9251 # ### BEGIN LIBTOOL CONFIG
9253 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9255 # Shell to use when invoking shell scripts.
9256 SHELL=$lt_SHELL
9258 # Whether or not to build shared libraries.
9259 build_libtool_libs=$enable_shared
9261 # Whether or not to build static libraries.
9262 build_old_libs=$enable_static
9264 # Whether or not to add -lc for building shared libraries.
9265 build_libtool_need_lc=$archive_cmds_need_lc
9267 # Whether or not to disallow shared libs when runtime libs are static
9268 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9270 # Whether or not to optimize for fast installation.
9271 fast_install=$enable_fast_install
9273 # The host system.
9274 host_alias=$host_alias
9275 host=$host
9277 # An echo program that does not interpret backslashes.
9278 echo=$lt_echo
9280 # The archiver.
9281 AR=$lt_AR
9282 AR_FLAGS=$lt_AR_FLAGS
9284 # A C compiler.
9285 LTCC=$lt_LTCC
9287 # A language-specific compiler.
9288 CC=$lt_compiler
9290 # Is the compiler the GNU C compiler?
9291 with_gcc=$GCC
9293 # An ERE matcher.
9294 EGREP=$lt_EGREP
9296 # The linker used to build libraries.
9297 LD=$lt_LD
9299 # Whether we need hard or soft links.
9300 LN_S=$lt_LN_S
9302 # A BSD-compatible nm program.
9303 NM=$lt_NM
9305 # A symbol stripping program
9306 STRIP=$lt_STRIP
9308 # Used to examine libraries when file_magic_cmd begins "file"
9309 MAGIC_CMD=$MAGIC_CMD
9311 # Used on cygwin: DLL creation program.
9312 DLLTOOL="$DLLTOOL"
9314 # Used on cygwin: object dumper.
9315 OBJDUMP="$OBJDUMP"
9317 # Used on cygwin: assembler.
9318 AS="$AS"
9320 # The name of the directory that contains temporary libtool files.
9321 objdir=$objdir
9323 # How to create reloadable object files.
9324 reload_flag=$lt_reload_flag
9325 reload_cmds=$lt_reload_cmds
9327 # How to pass a linker flag through the compiler.
9328 wl=$lt_lt_prog_compiler_wl
9330 # Object file suffix (normally "o").
9331 objext="$ac_objext"
9333 # Old archive suffix (normally "a").
9334 libext="$libext"
9336 # Shared library suffix (normally ".so").
9337 shrext_cmds='$shrext_cmds'
9339 # Executable file suffix (normally "").
9340 exeext="$exeext"
9342 # Additional compiler flags for building library objects.
9343 pic_flag=$lt_lt_prog_compiler_pic
9344 pic_mode=$pic_mode
9346 # What is the maximum length of a command?
9347 max_cmd_len=$lt_cv_sys_max_cmd_len
9349 # Does compiler simultaneously support -c and -o options?
9350 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9352 # Must we lock files when doing compilation ?
9353 need_locks=$lt_need_locks
9355 # Do we need the lib prefix for modules?
9356 need_lib_prefix=$need_lib_prefix
9358 # Do we need a version for libraries?
9359 need_version=$need_version
9361 # Whether dlopen is supported.
9362 dlopen_support=$enable_dlopen
9364 # Whether dlopen of programs is supported.
9365 dlopen_self=$enable_dlopen_self
9367 # Whether dlopen of statically linked programs is supported.
9368 dlopen_self_static=$enable_dlopen_self_static
9370 # Compiler flag to prevent dynamic linking.
9371 link_static_flag=$lt_lt_prog_compiler_static
9373 # Compiler flag to turn off builtin functions.
9374 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9376 # Compiler flag to allow reflexive dlopens.
9377 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9379 # Compiler flag to generate shared objects directly from archives.
9380 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9382 # Compiler flag to generate thread-safe objects.
9383 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9385 # Library versioning type.
9386 version_type=$version_type
9388 # Format of library name prefix.
9389 libname_spec=$lt_libname_spec
9391 # List of archive names.  First name is the real one, the rest are links.
9392 # The last name is the one that the linker finds with -lNAME.
9393 library_names_spec=$lt_library_names_spec
9395 # The coded name of the library, if different from the real name.
9396 soname_spec=$lt_soname_spec
9398 # Commands used to build and install an old-style archive.
9399 RANLIB=$lt_RANLIB
9400 old_archive_cmds=$lt_old_archive_cmds
9401 old_postinstall_cmds=$lt_old_postinstall_cmds
9402 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9404 # Create an old-style archive from a shared archive.
9405 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9407 # Create a temporary old-style archive to link instead of a shared archive.
9408 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9410 # Commands used to build and install a shared archive.
9411 archive_cmds=$lt_archive_cmds
9412 archive_expsym_cmds=$lt_archive_expsym_cmds
9413 postinstall_cmds=$lt_postinstall_cmds
9414 postuninstall_cmds=$lt_postuninstall_cmds
9416 # Commands used to build a loadable module (assumed same as above if empty)
9417 module_cmds=$lt_module_cmds
9418 module_expsym_cmds=$lt_module_expsym_cmds
9420 # Commands to strip libraries.
9421 old_striplib=$lt_old_striplib
9422 striplib=$lt_striplib
9424 # Dependencies to place before the objects being linked to create a
9425 # shared library.
9426 predep_objects=$lt_predep_objects
9428 # Dependencies to place after the objects being linked to create a
9429 # shared library.
9430 postdep_objects=$lt_postdep_objects
9432 # Dependencies to place before the objects being linked to create a
9433 # shared library.
9434 predeps=$lt_predeps
9436 # Dependencies to place after the objects being linked to create a
9437 # shared library.
9438 postdeps=$lt_postdeps
9440 # The library search path used internally by the compiler when linking
9441 # a shared library.
9442 compiler_lib_search_path=$lt_compiler_lib_search_path
9444 # Method to check whether dependent libraries are shared objects.
9445 deplibs_check_method=$lt_deplibs_check_method
9447 # Command to use when deplibs_check_method == file_magic.
9448 file_magic_cmd=$lt_file_magic_cmd
9450 # Flag that allows shared libraries with undefined symbols to be built.
9451 allow_undefined_flag=$lt_allow_undefined_flag
9453 # Flag that forces no undefined symbols.
9454 no_undefined_flag=$lt_no_undefined_flag
9456 # Commands used to finish a libtool library installation in a directory.
9457 finish_cmds=$lt_finish_cmds
9459 # Same as above, but a single script fragment to be evaled but not shown.
9460 finish_eval=$lt_finish_eval
9462 # Take the output of nm and produce a listing of raw symbols and C names.
9463 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9465 # Transform the output of nm in a proper C declaration
9466 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9468 # Transform the output of nm in a C name address pair
9469 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9471 # This is the shared library runtime path variable.
9472 runpath_var=$runpath_var
9474 # This is the shared library path variable.
9475 shlibpath_var=$shlibpath_var
9477 # Is shlibpath searched before the hard-coded library search path?
9478 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9480 # How to hardcode a shared library path into an executable.
9481 hardcode_action=$hardcode_action
9483 # Whether we should hardcode library paths into libraries.
9484 hardcode_into_libs=$hardcode_into_libs
9486 # Flag to hardcode \$libdir into a binary during linking.
9487 # This must work even if \$libdir does not exist.
9488 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9490 # If ld is used when linking, flag to hardcode \$libdir into
9491 # a binary during linking. This must work even if \$libdir does
9492 # not exist.
9493 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9495 # Whether we need a single -rpath flag with a separated argument.
9496 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9498 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9499 # resulting binary.
9500 hardcode_direct=$hardcode_direct
9502 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9503 # resulting binary.
9504 hardcode_minus_L=$hardcode_minus_L
9506 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9507 # the resulting binary.
9508 hardcode_shlibpath_var=$hardcode_shlibpath_var
9510 # Set to yes if building a shared library automatically hardcodes DIR into the library
9511 # and all subsequent libraries and executables linked against it.
9512 hardcode_automatic=$hardcode_automatic
9514 # Variables whose values should be saved in libtool wrapper scripts and
9515 # restored at relink time.
9516 variables_saved_for_relink="$variables_saved_for_relink"
9518 # Whether libtool must link a program against all its dependency libraries.
9519 link_all_deplibs=$link_all_deplibs
9521 # Compile-time system search path for libraries
9522 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
9524 # Run-time system search path for libraries
9525 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9527 # Fix the shell variable \$srcfile for the compiler.
9528 fix_srcfile_path="$fix_srcfile_path"
9530 # Set to yes if exported symbols are required.
9531 always_export_symbols=$always_export_symbols
9533 # The commands to list exported symbols.
9534 export_symbols_cmds=$lt_export_symbols_cmds
9536 # The commands to extract the exported symbol list from a shared archive.
9537 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9539 # Symbols that should not be listed in the preloaded symbols.
9540 exclude_expsyms=$lt_exclude_expsyms
9542 # Symbols that must always be exported.
9543 include_expsyms=$lt_include_expsyms
9545 # ### END LIBTOOL CONFIG
9547 __EOF__
9550   case $host_os in
9551   aix3*)
9552     cat <<\EOF >> "$cfgfile"
9554 # AIX sometimes has problems with the GCC collect2 program.  For some
9555 # reason, if we set the COLLECT_NAMES environment variable, the problems
9556 # vanish in a puff of smoke.
9557 if test "X${COLLECT_NAMES+set}" != Xset; then
9558   COLLECT_NAMES=
9559   export COLLECT_NAMES
9562     ;;
9563   esac
9565   # We use sed instead of cat because bash on DJGPP gets confused if
9566   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
9567   # text mode, it properly converts lines to CR/LF.  This bash problem
9568   # is reportedly fixed, but why not run on old versions too?
9569   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
9571   mv -f "$cfgfile" "$ofile" || \
9572     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
9573   chmod +x "$ofile"
9575 else
9576   # If there is no Makefile yet, we rely on a make rule to execute
9577   # `config.status --recheck' to rerun these tests and create the
9578   # libtool script then.
9579   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
9580   if test -f "$ltmain_in"; then
9581     test -f Makefile && make "$ltmain"
9582   fi
9586 ac_ext=c
9587 ac_cpp='$CPP $CPPFLAGS'
9588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9592 CC="$lt_save_CC"
9595 # Check whether --with-tags or --without-tags was given.
9596 if test "${with_tags+set}" = set; then
9597   withval="$with_tags"
9598   tagnames="$withval"
9599 fi; 
9601 if test -f "$ltmain" && test -n "$tagnames"; then
9602   if test ! -f "${ofile}"; then
9603     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
9604 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
9605   fi
9607   if test -z "$LTCC"; then
9608     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
9609     if test -z "$LTCC"; then
9610       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
9611 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
9612     else
9613       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
9614 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
9615     fi
9616   fi
9618   # Extract list of available tagged configurations in $ofile.
9619   # Note that this assumes the entire list is on one line.
9620   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
9622   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9623   for tagname in $tagnames; do
9624     IFS="$lt_save_ifs"
9625     # Check whether tagname contains only valid characters
9626     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
9627     "") ;;
9628     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
9629 echo "$as_me: error: invalid tag name: $tagname" >&2;}
9630    { (exit 1); exit 1; }; }
9631         ;;
9632     esac
9634     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
9635     then
9636       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
9637 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
9638    { (exit 1); exit 1; }; }
9639     fi
9641     # Update the list of available tags.
9642     if test -n "$tagname"; then
9643       echo appending configuration tag \"$tagname\" to $ofile
9645       case $tagname in
9646       CXX)
9647         if test -n "$CXX" && test "X$CXX" != "Xno"; then
9648           ac_ext=cc
9649 ac_cpp='$CXXCPP $CPPFLAGS'
9650 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9651 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9652 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9657 archive_cmds_need_lc_CXX=no
9658 allow_undefined_flag_CXX=
9659 always_export_symbols_CXX=no
9660 archive_expsym_cmds_CXX=
9661 export_dynamic_flag_spec_CXX=
9662 hardcode_direct_CXX=no
9663 hardcode_libdir_flag_spec_CXX=
9664 hardcode_libdir_flag_spec_ld_CXX=
9665 hardcode_libdir_separator_CXX=
9666 hardcode_minus_L_CXX=no
9667 hardcode_automatic_CXX=no
9668 module_cmds_CXX=
9669 module_expsym_cmds_CXX=
9670 link_all_deplibs_CXX=unknown
9671 old_archive_cmds_CXX=$old_archive_cmds
9672 no_undefined_flag_CXX=
9673 whole_archive_flag_spec_CXX=
9674 enable_shared_with_static_runtimes_CXX=no
9676 # Dependencies to place before and after the object being linked:
9677 predep_objects_CXX=
9678 postdep_objects_CXX=
9679 predeps_CXX=
9680 postdeps_CXX=
9681 compiler_lib_search_path_CXX=
9683 # Source file extension for C++ test sources.
9684 ac_ext=cc
9686 # Object file extension for compiled C++ test sources.
9687 objext=o
9688 objext_CXX=$objext
9690 # Code to be used in simple compile tests
9691 lt_simple_compile_test_code="int some_variable = 0;\n"
9693 # Code to be used in simple link tests
9694 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
9696 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
9698 # If no C compiler was specified, use CC.
9699 LTCC=${LTCC-"$CC"}
9701 # Allow CC to be a program name with arguments.
9702 compiler=$CC
9705 # Allow CC to be a program name with arguments.
9706 lt_save_CC=$CC
9707 lt_save_LD=$LD
9708 lt_save_GCC=$GCC
9709 GCC=$GXX
9710 lt_save_with_gnu_ld=$with_gnu_ld
9711 lt_save_path_LD=$lt_cv_path_LD
9712 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
9713   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
9714 else
9715   unset lt_cv_prog_gnu_ld
9717 if test -n "${lt_cv_path_LDCXX+set}"; then
9718   lt_cv_path_LD=$lt_cv_path_LDCXX
9719 else
9720   unset lt_cv_path_LD
9722 test -z "${LDCXX+set}" || LD=$LDCXX
9723 CC=${CXX-"c++"}
9724 compiler=$CC
9725 compiler_CXX=$CC
9726 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
9728 # We don't want -fno-exception wen compiling C++ code, so set the
9729 # no_builtin_flag separately
9730 if test "$GXX" = yes; then
9731   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
9732 else
9733   lt_prog_compiler_no_builtin_flag_CXX=
9736 if test "$GXX" = yes; then
9737   # Set up default GNU C++ configuration
9739   
9740 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9741 if test "${with_gnu_ld+set}" = set; then
9742   withval="$with_gnu_ld"
9743   test "$withval" = no || with_gnu_ld=yes
9744 else
9745   with_gnu_ld=no
9746 fi; 
9747 ac_prog=ld
9748 if test "$GCC" = yes; then
9749   # Check if gcc -print-prog-name=ld gives a path.
9750   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9751 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9752   case $host in
9753   *-*-mingw*)
9754     # gcc leaves a trailing carriage return which upsets mingw
9755     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9756   *)
9757     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9758   esac
9759   case $ac_prog in
9760     # Accept absolute paths.
9761     [\\/]* | ?:[\\/]*)
9762       re_direlt='/[^/][^/]*/\.\./'
9763       # Canonicalize the pathname of ld
9764       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9765       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9766         ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9767       done
9768       test -z "$LD" && LD="$ac_prog"
9769       ;;
9770   "")
9771     # If it fails, then pretend we aren't using GCC.
9772     ac_prog=ld
9773     ;;
9774   *)
9775     # If it is relative, then search for the first ld in PATH.
9776     with_gnu_ld=unknown
9777     ;;
9778   esac
9779 elif test "$with_gnu_ld" = yes; then
9780   echo "$as_me:$LINENO: checking for GNU ld" >&5
9781 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9782 else
9783   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9784 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9786 if test "${lt_cv_path_LD+set}" = set; then
9787   echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789   if test -z "$LD"; then
9790   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9791   for ac_dir in $PATH; do
9792     IFS="$lt_save_ifs"
9793     test -z "$ac_dir" && ac_dir=.
9794     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9795       lt_cv_path_LD="$ac_dir/$ac_prog"
9796       # Check to see if the program is GNU ld.  I'd rather use --version,
9797       # but apparently some GNU ld's only accept -v.
9798       # Break only if it was the GNU/non-GNU ld that we prefer.
9799       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9800       *GNU* | *'with BFD'*)
9801         test "$with_gnu_ld" != no && break
9802         ;;
9803       *)
9804         test "$with_gnu_ld" != yes && break
9805         ;;
9806       esac
9807     fi
9808   done
9809   IFS="$lt_save_ifs"
9810 else
9811   lt_cv_path_LD="$LD" # Let the user override the test with a path.
9815 LD="$lt_cv_path_LD"
9816 if test -n "$LD"; then
9817   echo "$as_me:$LINENO: result: $LD" >&5
9818 echo "${ECHO_T}$LD" >&6
9819 else
9820   echo "$as_me:$LINENO: result: no" >&5
9821 echo "${ECHO_T}no" >&6
9823 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
9824 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
9825    { (exit 1); exit 1; }; }
9826 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
9827 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
9828 if test "${lt_cv_prog_gnu_ld+set}" = set; then
9829   echo $ECHO_N "(cached) $ECHO_C" >&6
9830 else
9831   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
9832 case `$LD -v 2>&1 </dev/null` in
9833 *GNU* | *'with BFD'*)
9834   lt_cv_prog_gnu_ld=yes
9835   ;;
9837   lt_cv_prog_gnu_ld=no
9838   ;;
9839 esac
9841 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
9842 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
9843 with_gnu_ld=$lt_cv_prog_gnu_ld
9847   # Check if GNU C++ uses GNU ld as the underlying linker, since the
9848   # archiving commands below assume that GNU ld is being used.
9849   if test "$with_gnu_ld" = yes; then
9850     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
9851     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'
9853     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
9854     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
9856     # If archive_cmds runs LD, not CC, wlarc should be empty
9857     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
9858     #     investigate it a little bit more. (MM)
9859     wlarc='${wl}'
9861     # ancient GNU ld didn't support --whole-archive et. al.
9862     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
9863         grep 'no-whole-archive' > /dev/null; then
9864       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9865     else
9866       whole_archive_flag_spec_CXX=
9867     fi
9868   else
9869     with_gnu_ld=no
9870     wlarc=
9872     # A generic and very simple default shared library creation
9873     # command for GNU C++ for the case where it uses the native
9874     # linker, instead of GNU ld.  If possible, this setting should
9875     # overridden to take advantage of the native linker features on
9876     # the platform it is being used on.
9877     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
9878   fi
9880   # Commands to make compiler produce verbose output that lists
9881   # what "hidden" libraries, object files and flags are used when
9882   # linking a shared library.
9883   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
9885 else
9886   GXX=no
9887   with_gnu_ld=no
9888   wlarc=
9891 # PORTME: fill in a description of your system's C++ link characteristics
9892 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9893 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
9894 ld_shlibs_CXX=yes
9895 case $host_os in
9896   aix3*)
9897     # FIXME: insert proper C++ library support
9898     ld_shlibs_CXX=no
9899     ;;
9900   aix4* | aix5*)
9901     if test "$host_cpu" = ia64; then
9902       # On IA64, the linker does run time linking by default, so we don't
9903       # have to do anything special.
9904       aix_use_runtimelinking=no
9905       exp_sym_flag='-Bexport'
9906       no_entry_flag=""
9907     else
9908       aix_use_runtimelinking=no
9910       # Test if we are trying to use run time linking or normal
9911       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9912       # need to do runtime linking.
9913       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
9914         for ld_flag in $LDFLAGS; do
9915           case $ld_flag in
9916           *-brtl*)
9917             aix_use_runtimelinking=yes
9918             break
9919             ;;
9920           esac
9921         done
9922       esac
9924       exp_sym_flag='-bexport'
9925       no_entry_flag='-bnoentry'
9926     fi
9928     # When large executables or shared objects are built, AIX ld can
9929     # have problems creating the table of contents.  If linking a library
9930     # or program results in "error TOC overflow" add -mminimal-toc to
9931     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9932     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9934     archive_cmds_CXX=''
9935     hardcode_direct_CXX=yes
9936     hardcode_libdir_separator_CXX=':'
9937     link_all_deplibs_CXX=yes
9939     if test "$GXX" = yes; then
9940       case $host_os in aix4.012|aix4.012.*)
9941       # We only want to do this on AIX 4.2 and lower, the check
9942       # below for broken collect2 doesn't work under 4.3+
9943         collect2name=`${CC} -print-prog-name=collect2`
9944         if test -f "$collect2name" && \
9945            strings "$collect2name" | grep resolve_lib_name >/dev/null
9946         then
9947           # We have reworked collect2
9948           hardcode_direct_CXX=yes
9949         else
9950           # We have old collect2
9951           hardcode_direct_CXX=unsupported
9952           # It fails to find uninstalled libraries when the uninstalled
9953           # path is not listed in the libpath.  Setting hardcode_minus_L
9954           # to unsupported forces relinking
9955           hardcode_minus_L_CXX=yes
9956           hardcode_libdir_flag_spec_CXX='-L$libdir'
9957           hardcode_libdir_separator_CXX=
9958         fi
9959       esac
9960       shared_flag='-shared'
9961     else
9962       # not using gcc
9963       if test "$host_cpu" = ia64; then
9964         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9965         # chokes on -Wl,-G. The following line is correct:
9966         shared_flag='-G'
9967       else
9968         if test "$aix_use_runtimelinking" = yes; then
9969           shared_flag='${wl}-G'
9970         else
9971           shared_flag='${wl}-bM:SRE'
9972         fi
9973       fi
9974     fi
9976     # It seems that -bexpall does not export symbols beginning with
9977     # underscore (_), so it is better to generate a list of symbols to export.
9978     always_export_symbols_CXX=yes
9979     if test "$aix_use_runtimelinking" = yes; then
9980       # Warning - without using the other runtime loading flags (-brtl),
9981       # -berok will link without error, but may produce a broken library.
9982       allow_undefined_flag_CXX='-berok'
9983       # Determine the default libpath from the value encoded in an empty executable.
9984       cat >conftest.$ac_ext <<_ACEOF
9985 /* confdefs.h.  */
9986 _ACEOF
9987 cat confdefs.h >>conftest.$ac_ext
9988 cat >>conftest.$ac_ext <<_ACEOF
9989 /* end confdefs.h.  */
9992 main ()
9995   ;
9996   return 0;
9998 _ACEOF
9999 rm -f conftest.$ac_objext conftest$ac_exeext
10000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10001   (eval $ac_link) 2>conftest.er1
10002   ac_status=$?
10003   grep -v '^ *+' conftest.er1 >conftest.err
10004   rm -f conftest.er1
10005   cat conftest.err >&5
10006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007   (exit $ac_status); } &&
10008          { ac_try='test -z "$ac_cxx_werror_flag"
10009                          || test ! -s conftest.err'
10010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10011   (eval $ac_try) 2>&5
10012   ac_status=$?
10013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014   (exit $ac_status); }; } &&
10015          { ac_try='test -s conftest$ac_exeext'
10016   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10017   (eval $ac_try) 2>&5
10018   ac_status=$?
10019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10020   (exit $ac_status); }; }; then
10021   
10022 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10024 # Check for a 64-bit object if we didn't find anything.
10025 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; }
10026 }'`; fi
10027 else
10028   echo "$as_me: failed program was:" >&5
10029 sed 's/^/| /' conftest.$ac_ext >&5
10032 rm -f conftest.err conftest.$ac_objext \
10033       conftest$ac_exeext conftest.$ac_ext
10034 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10036       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10038       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"
10039      else
10040       if test "$host_cpu" = ia64; then
10041         hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10042         allow_undefined_flag_CXX="-z nodefs"
10043         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"
10044       else
10045         # Determine the default libpath from the value encoded in an empty executable.
10046         cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h.  */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h.  */
10054 main ()
10057   ;
10058   return 0;
10060 _ACEOF
10061 rm -f conftest.$ac_objext conftest$ac_exeext
10062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10063   (eval $ac_link) 2>conftest.er1
10064   ac_status=$?
10065   grep -v '^ *+' conftest.er1 >conftest.err
10066   rm -f conftest.er1
10067   cat conftest.err >&5
10068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069   (exit $ac_status); } &&
10070          { ac_try='test -z "$ac_cxx_werror_flag"
10071                          || test ! -s conftest.err'
10072   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10073   (eval $ac_try) 2>&5
10074   ac_status=$?
10075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10076   (exit $ac_status); }; } &&
10077          { ac_try='test -s conftest$ac_exeext'
10078   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10079   (eval $ac_try) 2>&5
10080   ac_status=$?
10081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10082   (exit $ac_status); }; }; then
10083   
10084 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10086 # Check for a 64-bit object if we didn't find anything.
10087 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; }
10088 }'`; fi
10089 else
10090   echo "$as_me: failed program was:" >&5
10091 sed 's/^/| /' conftest.$ac_ext >&5
10094 rm -f conftest.err conftest.$ac_objext \
10095       conftest$ac_exeext conftest.$ac_ext
10096 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10098         hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10099         # Warning - without using the other run time loading flags,
10100         # -berok will link without error, but may produce a broken library.
10101         no_undefined_flag_CXX=' ${wl}-bernotok'
10102         allow_undefined_flag_CXX=' ${wl}-berok'
10103         # -bexpall does not export symbols beginning with underscore (_)
10104         always_export_symbols_CXX=yes
10105         # Exported symbols can be pulled into shared objects from archives
10106         whole_archive_flag_spec_CXX=' '
10107         archive_cmds_need_lc_CXX=yes
10108         # This is similar to how AIX traditionally builds it's shared libraries.
10109         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'
10110       fi
10111     fi
10112     ;;
10113   chorus*)
10114     case $cc_basename in
10115       *)
10116         # FIXME: insert proper C++ library support
10117         ld_shlibs_CXX=no
10118         ;;
10119     esac
10120     ;;
10122   cygwin* | mingw* | pw32*)
10123     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10124     # as there is no search path for DLLs.
10125     hardcode_libdir_flag_spec_CXX='-L$libdir'
10126     allow_undefined_flag_CXX=unsupported
10127     always_export_symbols_CXX=no
10128     enable_shared_with_static_runtimes_CXX=yes
10130     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10131       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'
10132       # If the export-symbols file already is a .def file (1st line
10133       # is EXPORTS), use it as is; otherwise, prepend...
10134       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10135         cp $export_symbols $output_objdir/$soname.def;
10136       else
10137         echo EXPORTS > $output_objdir/$soname.def;
10138         cat $export_symbols >> $output_objdir/$soname.def;
10139       fi~
10140       $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'
10141     else
10142       ld_shlibs_CXX=no
10143     fi
10144   ;;
10146   darwin* | rhapsody*)
10147   if test "$GXX" = yes; then
10148     archive_cmds_need_lc_CXX=no
10149     case "$host_os" in
10150     rhapsody* | darwin1.[012])
10151       allow_undefined_flag_CXX='-undefined suppress'
10152       ;;
10153     *) # Darwin 1.3 on
10154       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10155         allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10156       else
10157         case ${MACOSX_DEPLOYMENT_TARGET} in
10158           10.[012])
10159             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10160             ;;
10161           10.*)
10162             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10163             ;;
10164         esac
10165       fi
10166       ;;
10167     esac
10168     lt_int_apple_cc_single_mod=no
10169     output_verbose_link_cmd='echo'
10170     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10171       lt_int_apple_cc_single_mod=yes
10172     fi
10173     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10174       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10175     else
10176       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'
10177     fi
10178     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10180     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10181     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10182       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}'
10183     else
10184       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}'
10185     fi
10186     module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10187     hardcode_direct_CXX=no
10188     hardcode_automatic_CXX=yes
10189     hardcode_shlibpath_var_CXX=unsupported
10190     whole_archive_flag_spec_CXX='-all_load $convenience'
10191     link_all_deplibs_CXX=yes
10192   else
10193     ld_shlibs_CXX=no
10194   fi
10195     ;;
10197   dgux*)
10198     case $cc_basename in
10199       ec++)
10200         # FIXME: insert proper C++ library support
10201         ld_shlibs_CXX=no
10202         ;;
10203       ghcx)
10204         # Green Hills C++ Compiler
10205         # FIXME: insert proper C++ library support
10206         ld_shlibs_CXX=no
10207         ;;
10208       *)
10209         # FIXME: insert proper C++ library support
10210         ld_shlibs_CXX=no
10211         ;;
10212     esac
10213     ;;
10214   freebsd12*)
10215     # C++ shared libraries reported to be fairly broken before switch to ELF
10216     ld_shlibs_CXX=no
10217     ;;
10218   freebsd-elf*)
10219     archive_cmds_need_lc_CXX=no
10220     ;;
10221   freebsd* | kfreebsd*-gnu)
10222     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10223     # conventions
10224     ld_shlibs_CXX=yes
10225     ;;
10226   gnu*)
10227     ;;
10228   hpux9*)
10229     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10230     hardcode_libdir_separator_CXX=:
10231     export_dynamic_flag_spec_CXX='${wl}-E'
10232     hardcode_direct_CXX=yes
10233     hardcode_minus_L_CXX=yes # Not in the search PATH,
10234                                 # but as the default
10235                                 # location of the library.
10237     case $cc_basename in
10238     CC)
10239       # FIXME: insert proper C++ library support
10240       ld_shlibs_CXX=no
10241       ;;
10242     aCC)
10243       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'
10244       # Commands to make compiler produce verbose output that lists
10245       # what "hidden" libraries, object files and flags are used when
10246       # linking a shared library.
10247       #
10248       # There doesn't appear to be a way to prevent this compiler from
10249       # explicitly linking system object files so we need to strip them
10250       # from the output so that they don't get included in the library
10251       # dependencies.
10252       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'
10253       ;;
10254     *)
10255       if test "$GXX" = yes; then
10256         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'
10257       else
10258         # FIXME: insert proper C++ library support
10259         ld_shlibs_CXX=no
10260       fi
10261       ;;
10262     esac
10263     ;;
10264   hpux10*|hpux11*)
10265     if test $with_gnu_ld = no; then
10266       case "$host_cpu" in
10267       hppa*64*)
10268         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10269         hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10270         hardcode_libdir_separator_CXX=:
10271         ;;
10272       ia64*)
10273         hardcode_libdir_flag_spec_CXX='-L$libdir'
10274         ;;
10275       *)
10276         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10277         hardcode_libdir_separator_CXX=:
10278         export_dynamic_flag_spec_CXX='${wl}-E'
10279         ;;
10280       esac
10281     fi
10282     case "$host_cpu" in
10283     hppa*64*)
10284       hardcode_direct_CXX=no
10285       hardcode_shlibpath_var_CXX=no
10286       ;;
10287     ia64*)
10288       hardcode_direct_CXX=no
10289       hardcode_shlibpath_var_CXX=no
10290       hardcode_minus_L_CXX=yes # Not in the search PATH,
10291                                               # but as the default
10292                                               # location of the library.
10293       ;;
10294     *)
10295       hardcode_direct_CXX=yes
10296       hardcode_minus_L_CXX=yes # Not in the search PATH,
10297                                               # but as the default
10298                                               # location of the library.
10299       ;;
10300     esac
10302     case $cc_basename in
10303       CC)
10304         # FIXME: insert proper C++ library support
10305         ld_shlibs_CXX=no
10306         ;;
10307       aCC)
10308         case "$host_cpu" in
10309         hppa*64*|ia64*)
10310           archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10311           ;;
10312         *)
10313           archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10314           ;;
10315         esac
10316         # Commands to make compiler produce verbose output that lists
10317         # what "hidden" libraries, object files and flags are used when
10318         # linking a shared library.
10319         #
10320         # There doesn't appear to be a way to prevent this compiler from
10321         # explicitly linking system object files so we need to strip them
10322         # from the output so that they don't get included in the library
10323         # dependencies.
10324         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'
10325         ;;
10326       *)
10327         if test "$GXX" = yes; then
10328           if test $with_gnu_ld = no; then
10329             case "$host_cpu" in
10330             ia64*|hppa*64*)
10331               archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10332               ;;
10333             *)
10334               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'
10335               ;;
10336             esac
10337           fi
10338         else
10339           # FIXME: insert proper C++ library support
10340           ld_shlibs_CXX=no
10341         fi
10342         ;;
10343     esac
10344     ;;
10345   irix5* | irix6*)
10346     case $cc_basename in
10347       CC)
10348         # SGI C++
10349         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'
10351         # Archives containing C++ object files must be created using
10352         # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10353         # necessary to make sure instantiated templates are included
10354         # in the archive.
10355         old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10356         ;;
10357       *)
10358         if test "$GXX" = yes; then
10359           if test "$with_gnu_ld" = no; then
10360             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'
10361           else
10362             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'
10363           fi
10364         fi
10365         link_all_deplibs_CXX=yes
10366         ;;
10367     esac
10368     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10369     hardcode_libdir_separator_CXX=:
10370     ;;
10371   linux*)
10372     case $cc_basename in
10373       KCC)
10374         # Kuck and Associates, Inc. (KAI) C++ Compiler
10376         # KCC will only create a shared library if the output file
10377         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10378         # to its proper name (with version) after linking.
10379         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'
10380         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'
10381         # Commands to make compiler produce verbose output that lists
10382         # what "hidden" libraries, object files and flags are used when
10383         # linking a shared library.
10384         #
10385         # There doesn't appear to be a way to prevent this compiler from
10386         # explicitly linking system object files so we need to strip them
10387         # from the output so that they don't get included in the library
10388         # dependencies.
10389         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'
10391         hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10392         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10394         # Archives containing C++ object files must be created using
10395         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10396         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10397         ;;
10398       icpc)
10399         # Intel C++
10400         with_gnu_ld=yes
10401         archive_cmds_need_lc_CXX=no
10402         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10403         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'
10404         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10405         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10406         whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10407         ;;
10408       cxx)
10409         # Compaq C++
10410         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10411         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'
10413         runpath_var=LD_RUN_PATH
10414         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10415         hardcode_libdir_separator_CXX=:
10417         # Commands to make compiler produce verbose output that lists
10418         # what "hidden" libraries, object files and flags are used when
10419         # linking a shared library.
10420         #
10421         # There doesn't appear to be a way to prevent this compiler from
10422         # explicitly linking system object files so we need to strip them
10423         # from the output so that they don't get included in the library
10424         # dependencies.
10425         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'
10426         ;;
10427     esac
10428     ;;
10429   lynxos*)
10430     # FIXME: insert proper C++ library support
10431     ld_shlibs_CXX=no
10432     ;;
10433   m88k*)
10434     # FIXME: insert proper C++ library support
10435     ld_shlibs_CXX=no
10436     ;;
10437   mvs*)
10438     case $cc_basename in
10439       cxx)
10440         # FIXME: insert proper C++ library support
10441         ld_shlibs_CXX=no
10442         ;;
10443       *)
10444         # FIXME: insert proper C++ library support
10445         ld_shlibs_CXX=no
10446         ;;
10447     esac
10448     ;;
10449   netbsd*)
10450     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10451       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10452       wlarc=
10453       hardcode_libdir_flag_spec_CXX='-R$libdir'
10454       hardcode_direct_CXX=yes
10455       hardcode_shlibpath_var_CXX=no
10456     fi
10457     # Workaround some broken pre-1.5 toolchains
10458     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10459     ;;
10460   osf3*)
10461     case $cc_basename in
10462       KCC)
10463         # Kuck and Associates, Inc. (KAI) C++ Compiler
10465         # KCC will only create a shared library if the output file
10466         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10467         # to its proper name (with version) after linking.
10468         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'
10470         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10471         hardcode_libdir_separator_CXX=:
10473         # Archives containing C++ object files must be created using
10474         # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10475         old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10477         ;;
10478       RCC)
10479         # Rational C++ 2.4.1
10480         # FIXME: insert proper C++ library support
10481         ld_shlibs_CXX=no
10482         ;;
10483       cxx)
10484         allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10485         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'
10487         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10488         hardcode_libdir_separator_CXX=:
10490         # Commands to make compiler produce verbose output that lists
10491         # what "hidden" libraries, object files and flags are used when
10492         # linking a shared library.
10493         #
10494         # There doesn't appear to be a way to prevent this compiler from
10495         # explicitly linking system object files so we need to strip them
10496         # from the output so that they don't get included in the library
10497         # dependencies.
10498         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'
10499         ;;
10500       *)
10501         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10502           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10503           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'
10505           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10506           hardcode_libdir_separator_CXX=:
10508           # Commands to make compiler produce verbose output that lists
10509           # what "hidden" libraries, object files and flags are used when
10510           # linking a shared library.
10511           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10513         else
10514           # FIXME: insert proper C++ library support
10515           ld_shlibs_CXX=no
10516         fi
10517         ;;
10518     esac
10519     ;;
10520   osf4* | osf5*)
10521     case $cc_basename in
10522       KCC)
10523         # Kuck and Associates, Inc. (KAI) C++ Compiler
10525         # KCC will only create a shared library if the output file
10526         # ends with ".so" (or ".sl" for HP-UX), so rename the library
10527         # to its proper name (with version) after linking.
10528         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'
10530         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10531         hardcode_libdir_separator_CXX=:
10533         # Archives containing C++ object files must be created using
10534         # the KAI C++ compiler.
10535         old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10536         ;;
10537       RCC)
10538         # Rational C++ 2.4.1
10539         # FIXME: insert proper C++ library support
10540         ld_shlibs_CXX=no
10541         ;;
10542       cxx)
10543         allow_undefined_flag_CXX=' -expect_unresolved \*'
10544         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'
10545         archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10546           echo "-hidden">> $lib.exp~
10547           $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~
10548           $rm $lib.exp'
10550         hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10551         hardcode_libdir_separator_CXX=:
10553         # Commands to make compiler produce verbose output that lists
10554         # what "hidden" libraries, object files and flags are used when
10555         # linking a shared library.
10556         #
10557         # There doesn't appear to be a way to prevent this compiler from
10558         # explicitly linking system object files so we need to strip them
10559         # from the output so that they don't get included in the library
10560         # dependencies.
10561         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'
10562         ;;
10563       *)
10564         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10565           allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10566          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'
10568           hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10569           hardcode_libdir_separator_CXX=:
10571           # Commands to make compiler produce verbose output that lists
10572           # what "hidden" libraries, object files and flags are used when
10573           # linking a shared library.
10574           output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10576         else
10577           # FIXME: insert proper C++ library support
10578           ld_shlibs_CXX=no
10579         fi
10580         ;;
10581     esac
10582     ;;
10583   psos*)
10584     # FIXME: insert proper C++ library support
10585     ld_shlibs_CXX=no
10586     ;;
10587   sco*)
10588     archive_cmds_need_lc_CXX=no
10589     case $cc_basename in
10590       CC)
10591         # FIXME: insert proper C++ library support
10592         ld_shlibs_CXX=no
10593         ;;
10594       *)
10595         # FIXME: insert proper C++ library support
10596         ld_shlibs_CXX=no
10597         ;;
10598     esac
10599     ;;
10600   sunos4*)
10601     case $cc_basename in
10602       CC)
10603         # Sun C++ 4.x
10604         # FIXME: insert proper C++ library support
10605         ld_shlibs_CXX=no
10606         ;;
10607       lcc)
10608         # Lucid
10609         # FIXME: insert proper C++ library support
10610         ld_shlibs_CXX=no
10611         ;;
10612       *)
10613         # FIXME: insert proper C++ library support
10614         ld_shlibs_CXX=no
10615         ;;
10616     esac
10617     ;;
10618   solaris*)
10619     case $cc_basename in
10620       CC)
10621         # Sun C++ 4.2, 5.x and Centerline C++
10622         no_undefined_flag_CXX=' -zdefs'
10623         archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10624         archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10625         $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'
10627         hardcode_libdir_flag_spec_CXX='-R$libdir'
10628         hardcode_shlibpath_var_CXX=no
10629         case $host_os in
10630           solaris2.0-5 | solaris2.0-5.*) ;;
10631           *)
10632             # The C++ compiler is used as linker so we must use $wl
10633             # flag to pass the commands to the underlying system
10634             # linker.
10635             # Supported since Solaris 2.6 (maybe 2.5.1?)
10636             whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10637             ;;
10638         esac
10639         link_all_deplibs_CXX=yes
10641         # Commands to make compiler produce verbose output that lists
10642         # what "hidden" libraries, object files and flags are used when
10643         # linking a shared library.
10644         #
10645         # There doesn't appear to be a way to prevent this compiler from
10646         # explicitly linking system object files so we need to strip them
10647         # from the output so that they don't get included in the library
10648         # dependencies.
10649         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'
10651         # Archives containing C++ object files must be created using
10652         # "CC -xar", where "CC" is the Sun C++ compiler.  This is
10653         # necessary to make sure instantiated templates are included
10654         # in the archive.
10655         old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10656         ;;
10657       gcx)
10658         # Green Hills C++ Compiler
10659         archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10661         # The C++ compiler must be used to create the archive.
10662         old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10663         ;;
10664       *)
10665         # GNU C++ compiler with Solaris linker
10666         if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10667           no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10668           if $CC --version | grep -v '^2\.7' > /dev/null; then
10669             archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10670             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10671                 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10673             # Commands to make compiler produce verbose output that lists
10674             # what "hidden" libraries, object files and flags are used when
10675             # linking a shared library.
10676             output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10677           else
10678             # g++ 2.7 appears to require `-G' NOT `-shared' on this
10679             # platform.
10680             archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10681             archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10682                 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10684             # Commands to make compiler produce verbose output that lists
10685             # what "hidden" libraries, object files and flags are used when
10686             # linking a shared library.
10687             output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10688           fi
10690           hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10691         fi
10692         ;;
10693     esac
10694     ;;
10695   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10696     archive_cmds_need_lc_CXX=no
10697     ;;
10698   tandem*)
10699     case $cc_basename in
10700       NCC)
10701         # NonStop-UX NCC 3.20
10702         # FIXME: insert proper C++ library support
10703         ld_shlibs_CXX=no
10704         ;;
10705       *)
10706         # FIXME: insert proper C++ library support
10707         ld_shlibs_CXX=no
10708         ;;
10709     esac
10710     ;;
10711   vxworks*)
10712     # FIXME: insert proper C++ library support
10713     ld_shlibs_CXX=no
10714     ;;
10715   *)
10716     # FIXME: insert proper C++ library support
10717     ld_shlibs_CXX=no
10718     ;;
10719 esac
10720 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10721 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10722 test "$ld_shlibs_CXX" = no && can_build_shared=no
10724 GCC_CXX="$GXX"
10725 LD_CXX="$LD"
10728 cat > conftest.$ac_ext <<EOF
10729 class Foo
10731 public:
10732   Foo (void) { a = 0; }
10733 private:
10734   int a;
10738 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10739   (eval $ac_compile) 2>&5
10740   ac_status=$?
10741   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742   (exit $ac_status); }; then
10743   # Parse the compiler output and extract the necessary
10744   # objects, libraries and library flags.
10746   # Sentinel used to keep track of whether or not we are before
10747   # the conftest object file.
10748   pre_test_object_deps_done=no
10750   # The `*' in the case matches for architectures that use `case' in
10751   # $output_verbose_cmd can trigger glob expansion during the loop
10752   # eval without this substitution.
10753   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10755   for p in `eval $output_verbose_link_cmd`; do
10756     case $p in
10758     -L* | -R* | -l*)
10759        # Some compilers place space between "-{L,R}" and the path.
10760        # Remove the space.
10761        if test $p = "-L" \
10762           || test $p = "-R"; then
10763          prev=$p
10764          continue
10765        else
10766          prev=
10767        fi
10769        if test "$pre_test_object_deps_done" = no; then
10770          case $p in
10771          -L* | -R*)
10772            # Internal compiler library paths should come after those
10773            # provided the user.  The postdeps already come after the
10774            # user supplied libs so there is no need to process them.
10775            if test -z "$compiler_lib_search_path_CXX"; then
10776              compiler_lib_search_path_CXX="${prev}${p}"
10777            else
10778              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10779            fi
10780            ;;
10781          # The "-l" case would never come before the object being
10782          # linked, so don't bother handling this case.
10783          esac
10784        else
10785          if test -z "$postdeps_CXX"; then
10786            postdeps_CXX="${prev}${p}"
10787          else
10788            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10789          fi
10790        fi
10791        ;;
10793     *.$objext)
10794        # This assumes that the test object file only shows up
10795        # once in the compiler output.
10796        if test "$p" = "conftest.$objext"; then
10797          pre_test_object_deps_done=yes
10798          continue
10799        fi
10801        if test "$pre_test_object_deps_done" = no; then
10802          if test -z "$predep_objects_CXX"; then
10803            predep_objects_CXX="$p"
10804          else
10805            predep_objects_CXX="$predep_objects_CXX $p"
10806          fi
10807        else
10808          if test -z "$postdep_objects_CXX"; then
10809            postdep_objects_CXX="$p"
10810          else
10811            postdep_objects_CXX="$postdep_objects_CXX $p"
10812          fi
10813        fi
10814        ;;
10816     *) ;; # Ignore the rest.
10818     esac
10819   done
10821   # Clean up.
10822   rm -f a.out a.exe
10823 else
10824   echo "libtool.m4: error: problem compiling CXX test program"
10827 $rm -f confest.$objext
10829 case " $postdeps_CXX " in
10830 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10831 esac
10833 lt_prog_compiler_wl_CXX=
10834 lt_prog_compiler_pic_CXX=
10835 lt_prog_compiler_static_CXX=
10837 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10838 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10840   # C++ specific cases for pic, static, wl, etc.
10841   if test "$GXX" = yes; then
10842     lt_prog_compiler_wl_CXX='-Wl,'
10843     lt_prog_compiler_static_CXX='-static'
10845     case $host_os in
10846     aix*)
10847       # All AIX code is PIC.
10848       if test "$host_cpu" = ia64; then
10849         # AIX 5 now supports IA64 processor
10850         lt_prog_compiler_static_CXX='-Bstatic'
10851       fi
10852       ;;
10853     amigaos*)
10854       # FIXME: we need at least 68020 code to build shared libraries, but
10855       # adding the `-m68020' flag to GCC prevents building anything better,
10856       # like `-m68040'.
10857       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10858       ;;
10859     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10860       # PIC is the default for these OSes.
10861       ;;
10862     mingw* | os2* | pw32*)
10863       # This hack is so that the source file can tell whether it is being
10864       # built for inclusion in a dll (and should export symbols for example).
10865       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10866       ;;
10867     darwin* | rhapsody*)
10868       # PIC is the default on this platform
10869       # Common symbols not allowed in MH_DYLIB files
10870       lt_prog_compiler_pic_CXX='-fno-common'
10871       ;;
10872     *djgpp*)
10873       # DJGPP does not support shared libraries at all
10874       lt_prog_compiler_pic_CXX=
10875       ;;
10876     sysv4*MP*)
10877       if test -d /usr/nec; then
10878         lt_prog_compiler_pic_CXX=-Kconform_pic
10879       fi
10880       ;;
10881     hpux*)
10882       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10883       # not for PA HP-UX.
10884       case "$host_cpu" in
10885       hppa*64*|ia64*)
10886         ;;
10887       *)
10888         lt_prog_compiler_pic_CXX='-fPIC'
10889         ;;
10890       esac
10891       ;;
10892     *)
10893       lt_prog_compiler_pic_CXX='-fPIC'
10894       ;;
10895     esac
10896   else
10897     case $host_os in
10898       aix4* | aix5*)
10899         # All AIX code is PIC.
10900         if test "$host_cpu" = ia64; then
10901           # AIX 5 now supports IA64 processor
10902           lt_prog_compiler_static_CXX='-Bstatic'
10903         else
10904           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10905         fi
10906         ;;
10907       chorus*)
10908         case $cc_basename in
10909         cxch68)
10910           # Green Hills C++ Compiler
10911           # _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"
10912           ;;
10913         esac
10914         ;;
10915       dgux*)
10916         case $cc_basename in
10917           ec++)
10918             lt_prog_compiler_pic_CXX='-KPIC'
10919             ;;
10920           ghcx)
10921             # Green Hills C++ Compiler
10922             lt_prog_compiler_pic_CXX='-pic'
10923             ;;
10924           *)
10925             ;;
10926         esac
10927         ;;
10928       freebsd* | kfreebsd*-gnu)
10929         # FreeBSD uses GNU C++
10930         ;;
10931       hpux9* | hpux10* | hpux11*)
10932         case $cc_basename in
10933           CC)
10934             lt_prog_compiler_wl_CXX='-Wl,'
10935             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10936             if test "$host_cpu" != ia64; then
10937               lt_prog_compiler_pic_CXX='+Z'
10938             fi
10939             ;;
10940           aCC)
10941             lt_prog_compiler_wl_CXX='-Wl,'
10942             lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10943             case "$host_cpu" in
10944             hppa*64*|ia64*)
10945               # +Z the default
10946               ;;
10947             *)
10948               lt_prog_compiler_pic_CXX='+Z'
10949               ;;
10950             esac
10951             ;;
10952           *)
10953             ;;
10954         esac
10955         ;;
10956       irix5* | irix6* | nonstopux*)
10957         case $cc_basename in
10958           CC)
10959             lt_prog_compiler_wl_CXX='-Wl,'
10960             lt_prog_compiler_static_CXX='-non_shared'
10961             # CC pic flag -KPIC is the default.
10962             ;;
10963           *)
10964             ;;
10965         esac
10966         ;;
10967       linux*)
10968         case $cc_basename in
10969           KCC)
10970             # KAI C++ Compiler
10971             lt_prog_compiler_wl_CXX='--backend -Wl,'
10972             lt_prog_compiler_pic_CXX='-fPIC'
10973             ;;
10974           icpc)
10975             # Intel C++
10976             lt_prog_compiler_wl_CXX='-Wl,'
10977             lt_prog_compiler_pic_CXX='-KPIC'
10978             lt_prog_compiler_static_CXX='-static'
10979             ;;
10980           cxx)
10981             # Compaq C++
10982             # Make sure the PIC flag is empty.  It appears that all Alpha
10983             # Linux and Compaq Tru64 Unix objects are PIC.
10984             lt_prog_compiler_pic_CXX=
10985             lt_prog_compiler_static_CXX='-non_shared'
10986             ;;
10987           *)
10988             ;;
10989         esac
10990         ;;
10991       lynxos*)
10992         ;;
10993       m88k*)
10994         ;;
10995       mvs*)
10996         case $cc_basename in
10997           cxx)
10998             lt_prog_compiler_pic_CXX='-W c,exportall'
10999             ;;
11000           *)
11001             ;;
11002         esac
11003         ;;
11004       netbsd*)
11005         ;;
11006       osf3* | osf4* | osf5*)
11007         case $cc_basename in
11008           KCC)
11009             lt_prog_compiler_wl_CXX='--backend -Wl,'
11010             ;;
11011           RCC)
11012             # Rational C++ 2.4.1
11013             lt_prog_compiler_pic_CXX='-pic'
11014             ;;
11015           cxx)
11016             # Digital/Compaq C++
11017             lt_prog_compiler_wl_CXX='-Wl,'
11018             # Make sure the PIC flag is empty.  It appears that all Alpha
11019             # Linux and Compaq Tru64 Unix objects are PIC.
11020             lt_prog_compiler_pic_CXX=
11021             lt_prog_compiler_static_CXX='-non_shared'
11022             ;;
11023           *)
11024             ;;
11025         esac
11026         ;;
11027       psos*)
11028         ;;
11029       sco*)
11030         case $cc_basename in
11031           CC)
11032             lt_prog_compiler_pic_CXX='-fPIC'
11033             ;;
11034           *)
11035             ;;
11036         esac
11037         ;;
11038       solaris*)
11039         case $cc_basename in
11040           CC)
11041             # Sun C++ 4.2, 5.x and Centerline C++
11042             lt_prog_compiler_pic_CXX='-KPIC'
11043             lt_prog_compiler_static_CXX='-Bstatic'
11044             lt_prog_compiler_wl_CXX='-Qoption ld '
11045             ;;
11046           gcx)
11047             # Green Hills C++ Compiler
11048             lt_prog_compiler_pic_CXX='-PIC'
11049             ;;
11050           *)
11051             ;;
11052         esac
11053         ;;
11054       sunos4*)
11055         case $cc_basename in
11056           CC)
11057             # Sun C++ 4.x
11058             lt_prog_compiler_pic_CXX='-pic'
11059             lt_prog_compiler_static_CXX='-Bstatic'
11060             ;;
11061           lcc)
11062             # Lucid
11063             lt_prog_compiler_pic_CXX='-pic'
11064             ;;
11065           *)
11066             ;;
11067         esac
11068         ;;
11069       tandem*)
11070         case $cc_basename in
11071           NCC)
11072             # NonStop-UX NCC 3.20
11073             lt_prog_compiler_pic_CXX='-KPIC'
11074             ;;
11075           *)
11076             ;;
11077         esac
11078         ;;
11079       unixware*)
11080         ;;
11081       vxworks*)
11082         ;;
11083       *)
11084         lt_prog_compiler_can_build_shared_CXX=no
11085         ;;
11086     esac
11087   fi
11089 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11090 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11093 # Check to make sure the PIC flag actually works.
11095 if test -n "$lt_prog_compiler_pic_CXX"; then
11096   
11097 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11098 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11099 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11100   echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102   lt_prog_compiler_pic_works_CXX=no
11103   ac_outfile=conftest.$ac_objext
11104    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11105    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11106    # Insert the option either (1) after the last *FLAGS variable, or
11107    # (2) before a word containing "conftest.", or (3) at the end.
11108    # Note that $ac_compile itself does not contain backslashes and begins
11109    # with a dollar sign (not a hyphen), so the echo should work correctly.
11110    # The option is referenced via a variable to avoid confusing sed.
11111    lt_compile=`echo "$ac_compile" | $SED \
11112    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11113    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11114    -e 's:$: $lt_compiler_flag:'`
11115    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11116    (eval "$lt_compile" 2>conftest.err)
11117    ac_status=$?
11118    cat conftest.err >&5
11119    echo "$as_me:__oline__: \$? = $ac_status" >&5
11120    if (exit $ac_status) && test -s "$ac_outfile"; then
11121      # The compiler can only warn and ignore the option if not recognized
11122      # So say no if there are warnings
11123      if test ! -s conftest.err; then
11124        lt_prog_compiler_pic_works_CXX=yes
11125      fi
11126    fi
11127    $rm conftest*
11130 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11131 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11133 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11134     case $lt_prog_compiler_pic_CXX in
11135      "" | " "*) ;;
11136      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11137      esac
11138 else
11139     lt_prog_compiler_pic_CXX=
11140      lt_prog_compiler_can_build_shared_CXX=no
11144 case "$host_os" in
11145   # For platforms which do not support PIC, -DPIC is meaningless:
11146   *djgpp*)
11147     lt_prog_compiler_pic_CXX=
11148     ;;
11149   *)
11150     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11151     ;;
11152 esac
11154 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11155 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11156 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11157   echo $ECHO_N "(cached) $ECHO_C" >&6
11158 else
11159   lt_cv_prog_compiler_c_o_CXX=no
11160    $rm -r conftest 2>/dev/null
11161    mkdir conftest
11162    cd conftest
11163    mkdir out
11164    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11166    lt_compiler_flag="-o out/conftest2.$ac_objext"
11167    # Insert the option either (1) after the last *FLAGS variable, or
11168    # (2) before a word containing "conftest.", or (3) at the end.
11169    # Note that $ac_compile itself does not contain backslashes and begins
11170    # with a dollar sign (not a hyphen), so the echo should work correctly.
11171    lt_compile=`echo "$ac_compile" | $SED \
11172    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11173    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11174    -e 's:$: $lt_compiler_flag:'`
11175    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11176    (eval "$lt_compile" 2>out/conftest.err)
11177    ac_status=$?
11178    cat out/conftest.err >&5
11179    echo "$as_me:__oline__: \$? = $ac_status" >&5
11180    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11181    then
11182      # The compiler can only warn and ignore the option if not recognized
11183      # So say no if there are warnings
11184      if test ! -s out/conftest.err; then
11185        lt_cv_prog_compiler_c_o_CXX=yes
11186      fi
11187    fi
11188    chmod u+w .
11189    $rm conftest*
11190    # SGI C++ compiler will create directory out/ii_files/ for
11191    # template instantiation
11192    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11193    $rm out/* && rmdir out
11194    cd ..
11195    rmdir conftest
11196    $rm conftest*
11199 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11200 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11203 hard_links="nottested"
11204 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11205   # do not overwrite the value of need_locks provided by the user
11206   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11207 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11208   hard_links=yes
11209   $rm conftest*
11210   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11211   touch conftest.a
11212   ln conftest.a conftest.b 2>&5 || hard_links=no
11213   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11214   echo "$as_me:$LINENO: result: $hard_links" >&5
11215 echo "${ECHO_T}$hard_links" >&6
11216   if test "$hard_links" = no; then
11217     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11218 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11219     need_locks=warn
11220   fi
11221 else
11222   need_locks=no
11225 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11226 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11228   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11229   case $host_os in
11230   aix4* | aix5*)
11231     # If we're using GNU nm, then we don't want the "-C" option.
11232     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11233     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11234       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'
11235     else
11236       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'
11237     fi
11238     ;;
11239   pw32*)
11240     export_symbols_cmds_CXX="$ltdll_cmds"
11241   ;;
11242   cygwin* | mingw*)
11243     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11244   ;;
11245   *)
11246     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11247   ;;
11248   esac
11250 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11251 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11252 test "$ld_shlibs_CXX" = no && can_build_shared=no
11254 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11255 if test "$GCC" = yes; then
11256   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11260 # Do we need to explicitly link libc?
11262 case "x$archive_cmds_need_lc_CXX" in
11263 x|xyes)
11264   # Assume -lc should be added
11265   archive_cmds_need_lc_CXX=yes
11267   if test "$enable_shared" = yes && test "$GCC" = yes; then
11268     case $archive_cmds_CXX in
11269     *'~'*)
11270       # FIXME: we may have to deal with multi-command sequences.
11271       ;;
11272     '$CC '*)
11273       # Test whether the compiler implicitly links with -lc since on some
11274       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11275       # to ld, don't add -lc before -lgcc.
11276       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11277 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11278       $rm conftest*
11279       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11281       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11282   (eval $ac_compile) 2>&5
11283   ac_status=$?
11284   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285   (exit $ac_status); } 2>conftest.err; then
11286         soname=conftest
11287         lib=conftest
11288         libobjs=conftest.$ac_objext
11289         deplibs=
11290         wl=$lt_prog_compiler_wl_CXX
11291         compiler_flags=-v
11292         linker_flags=-v
11293         verstring=
11294         output_objdir=.
11295         libname=conftest
11296         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11297         allow_undefined_flag_CXX=
11298         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11299   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11300   ac_status=$?
11301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11302   (exit $ac_status); }
11303         then
11304           archive_cmds_need_lc_CXX=no
11305         else
11306           archive_cmds_need_lc_CXX=yes
11307         fi
11308         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11309       else
11310         cat conftest.err 1>&5
11311       fi
11312       $rm conftest*
11313       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11314 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11315       ;;
11316     esac
11317   fi
11318   ;;
11319 esac
11321 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11322 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11323 library_names_spec=
11324 libname_spec='lib$name'
11325 soname_spec=
11326 shrext_cmds=".so"
11327 postinstall_cmds=
11328 postuninstall_cmds=
11329 finish_cmds=
11330 finish_eval=
11331 shlibpath_var=
11332 shlibpath_overrides_runpath=unknown
11333 version_type=none
11334 dynamic_linker="$host_os ld.so"
11335 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11336 if test "$GCC" = yes; then
11337   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11338   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11339     # if the path contains ";" then we assume it to be the separator
11340     # otherwise default to the standard path separator (i.e. ":") - it is
11341     # assumed that no part of a normal pathname contains ";" but that should
11342     # okay in the real world where ";" in dirpaths is itself problematic.
11343     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11344   else
11345     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11346   fi
11347 else
11348   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11350 need_lib_prefix=unknown
11351 hardcode_into_libs=no
11353 # when you set need_version to no, make sure it does not cause -set_version
11354 # flags to be left without arguments
11355 need_version=unknown
11357 case $host_os in
11358 aix3*)
11359   version_type=linux
11360   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11361   shlibpath_var=LIBPATH
11363   # AIX 3 has no versioning support, so we append a major version to the name.
11364   soname_spec='${libname}${release}${shared_ext}$major'
11365   ;;
11367 aix4* | aix5*)
11368   version_type=linux
11369   need_lib_prefix=no
11370   need_version=no
11371   hardcode_into_libs=yes
11372   if test "$host_cpu" = ia64; then
11373     # AIX 5 supports IA64
11374     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11375     shlibpath_var=LD_LIBRARY_PATH
11376   else
11377     # With GCC up to 2.95.x, collect2 would create an import file
11378     # for dependence libraries.  The import file would start with
11379     # the line `#! .'.  This would cause the generated library to
11380     # depend on `.', always an invalid library.  This was fixed in
11381     # development snapshots of GCC prior to 3.0.
11382     case $host_os in
11383       aix4 | aix4.[01] | aix4.[01].*)
11384       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11385            echo ' yes '
11386            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11387         :
11388       else
11389         can_build_shared=no
11390       fi
11391       ;;
11392     esac
11393     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11394     # soname into executable. Probably we can add versioning support to
11395     # collect2, so additional links can be useful in future.
11396     if test "$aix_use_runtimelinking" = yes; then
11397       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11398       # instead of lib<name>.a to let people know that these are not
11399       # typical AIX shared libraries.
11400       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11401     else
11402       # We preserve .a as extension for shared libraries through AIX4.2
11403       # and later when we are not doing run time linking.
11404       library_names_spec='${libname}${release}.a $libname.a'
11405       soname_spec='${libname}${release}${shared_ext}$major'
11406     fi
11407     shlibpath_var=LIBPATH
11408   fi
11409   ;;
11411 amigaos*)
11412   library_names_spec='$libname.ixlibrary $libname.a'
11413   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11414   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'
11415   ;;
11417 beos*)
11418   library_names_spec='${libname}${shared_ext}'
11419   dynamic_linker="$host_os ld.so"
11420   shlibpath_var=LIBRARY_PATH
11421   ;;
11423 bsdi4*)
11424   version_type=linux
11425   need_version=no
11426   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11427   soname_spec='${libname}${release}${shared_ext}$major'
11428   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11429   shlibpath_var=LD_LIBRARY_PATH
11430   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11431   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11432   # the default ld.so.conf also contains /usr/contrib/lib and
11433   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11434   # libtool to hard-code these into programs
11435   ;;
11437 cygwin* | mingw* | pw32*)
11438   version_type=windows
11439   shrext_cmds=".dll"
11440   need_version=no
11441   need_lib_prefix=no
11443   case $GCC,$host_os in
11444   yes,cygwin* | yes,mingw* | yes,pw32*)
11445     library_names_spec='$libname.dll.a'
11446     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11447     postinstall_cmds='base_file=`basename \${file}`~
11448       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11449       dldir=$destdir/`dirname \$dlpath`~
11450       test -d \$dldir || mkdir -p \$dldir~
11451       $install_prog $dir/$dlname \$dldir/$dlname'
11452     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11453       dlpath=$dir/\$dldll~
11454        $rm \$dlpath'
11455     shlibpath_overrides_runpath=yes
11457     case $host_os in
11458     cygwin*)
11459       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11460       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11461       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11462       ;;
11463     mingw*)
11464       # MinGW DLLs use traditional 'lib' prefix
11465       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11466       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11467       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11468         # It is most probably a Windows format PATH printed by
11469         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11470         # path with ; separators, and with drive letters. We can handle the
11471         # drive letters (cygwin fileutils understands them), so leave them,
11472         # especially as we might pass files found there to a mingw objdump,
11473         # which wouldn't understand a cygwinified path. Ahh.
11474         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11475       else
11476         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11477       fi
11478       ;;
11479     pw32*)
11480       # pw32 DLLs use 'pw' prefix rather than 'lib'
11481       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11482       ;;
11483     esac
11484     ;;
11486   *)
11487     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11488     ;;
11489   esac
11490   dynamic_linker='Win32 ld.exe'
11491   # FIXME: first we should search . and the directory the executable is in
11492   shlibpath_var=PATH
11493   ;;
11495 darwin* | rhapsody*)
11496   dynamic_linker="$host_os dyld"
11497   version_type=darwin
11498   need_lib_prefix=no
11499   need_version=no
11500   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11501   soname_spec='${libname}${release}${major}$shared_ext'
11502   shlibpath_overrides_runpath=yes
11503   shlibpath_var=DYLD_LIBRARY_PATH
11504   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11505   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11506   if test "$GCC" = yes; then
11507     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"`
11508   else
11509     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11510   fi
11511   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11512   ;;
11514 dgux*)
11515   version_type=linux
11516   need_lib_prefix=no
11517   need_version=no
11518   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11519   soname_spec='${libname}${release}${shared_ext}$major'
11520   shlibpath_var=LD_LIBRARY_PATH
11521   ;;
11523 freebsd1*)
11524   dynamic_linker=no
11525   ;;
11527 kfreebsd*-gnu)
11528   version_type=linux
11529   need_lib_prefix=no
11530   need_version=no
11531   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11532   soname_spec='${libname}${release}${shared_ext}$major'
11533   shlibpath_var=LD_LIBRARY_PATH
11534   shlibpath_overrides_runpath=no
11535   hardcode_into_libs=yes
11536   dynamic_linker='GNU ld.so'
11537   ;;
11539 freebsd*)
11540   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11541   version_type=freebsd-$objformat
11542   case $version_type in
11543     freebsd-elf*)
11544       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11545       need_version=no
11546       need_lib_prefix=no
11547       ;;
11548     freebsd-*)
11549       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11550       need_version=yes
11551       ;;
11552   esac
11553   shlibpath_var=LD_LIBRARY_PATH
11554   case $host_os in
11555   freebsd2*)
11556     shlibpath_overrides_runpath=yes
11557     ;;
11558   freebsd3.01* | freebsdelf3.01*)
11559     shlibpath_overrides_runpath=yes
11560     hardcode_into_libs=yes
11561     ;;
11562   *) # from 3.2 on
11563     shlibpath_overrides_runpath=no
11564     hardcode_into_libs=yes
11565     ;;
11566   esac
11567   ;;
11569 gnu*)
11570   version_type=linux
11571   need_lib_prefix=no
11572   need_version=no
11573   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11574   soname_spec='${libname}${release}${shared_ext}$major'
11575   shlibpath_var=LD_LIBRARY_PATH
11576   hardcode_into_libs=yes
11577   ;;
11579 hpux9* | hpux10* | hpux11*)
11580   # Give a soname corresponding to the major version so that dld.sl refuses to
11581   # link against other versions.
11582   version_type=sunos
11583   need_lib_prefix=no
11584   need_version=no
11585   case "$host_cpu" in
11586   ia64*)
11587     shrext_cmds='.so'
11588     hardcode_into_libs=yes
11589     dynamic_linker="$host_os dld.so"
11590     shlibpath_var=LD_LIBRARY_PATH
11591     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11592     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11593     soname_spec='${libname}${release}${shared_ext}$major'
11594     if test "X$HPUX_IA64_MODE" = X32; then
11595       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11596     else
11597       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11598     fi
11599     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11600     ;;
11601    hppa*64*)
11602      shrext_cmds='.sl'
11603      hardcode_into_libs=yes
11604      dynamic_linker="$host_os dld.sl"
11605      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11606      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11607      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11608      soname_spec='${libname}${release}${shared_ext}$major'
11609      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11610      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11611      ;;
11612    *)
11613     shrext_cmds='.sl'
11614     dynamic_linker="$host_os dld.sl"
11615     shlibpath_var=SHLIB_PATH
11616     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11617     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11618     soname_spec='${libname}${release}${shared_ext}$major'
11619     ;;
11620   esac
11621   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11622   postinstall_cmds='chmod 555 $lib'
11623   ;;
11625 irix5* | irix6* | nonstopux*)
11626   case $host_os in
11627     nonstopux*) version_type=nonstopux ;;
11628     *)
11629         if test "$lt_cv_prog_gnu_ld" = yes; then
11630                 version_type=linux
11631         else
11632                 version_type=irix
11633         fi ;;
11634   esac
11635   need_lib_prefix=no
11636   need_version=no
11637   soname_spec='${libname}${release}${shared_ext}$major'
11638   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11639   case $host_os in
11640   irix5* | nonstopux*)
11641     libsuff= shlibsuff=
11642     ;;
11643   *)
11644     case $LD in # libtool.m4 will add one of these switches to LD
11645     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11646       libsuff= shlibsuff= libmagic=32-bit;;
11647     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11648       libsuff=32 shlibsuff=N32 libmagic=N32;;
11649     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11650       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11651     *) libsuff= shlibsuff= libmagic=never-match;;
11652     esac
11653     ;;
11654   esac
11655   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11656   shlibpath_overrides_runpath=no
11657   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11658   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11659   hardcode_into_libs=yes
11660   ;;
11662 # No shared lib support for Linux oldld, aout, or coff.
11663 linux*oldld* | linux*aout* | linux*coff*)
11664   dynamic_linker=no
11665   ;;
11667 # This must be Linux ELF.
11668 linux*)
11669   version_type=linux
11670   need_lib_prefix=no
11671   need_version=no
11672   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11673   soname_spec='${libname}${release}${shared_ext}$major'
11674   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11675   shlibpath_var=LD_LIBRARY_PATH
11676   shlibpath_overrides_runpath=no
11677   # This implies no fast_install, which is unacceptable.
11678   # Some rework will be needed to allow for fast_install
11679   # before this can be enabled.
11680   hardcode_into_libs=yes
11682   # find out which ABI we are using
11683   libsuff=
11684   case "$host_cpu" in
11685   x86_64*|s390x*|powerpc64*)
11686     echo '#line __oline__ "configure"' > conftest.$ac_ext
11687     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11688   (eval $ac_compile) 2>&5
11689   ac_status=$?
11690   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691   (exit $ac_status); }; then
11692       case `/usr/bin/file conftest.$ac_objext` in
11693       *64-bit*)
11694         libsuff=64
11695         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
11696         ;;
11697       esac
11698     fi
11699     rm -rf conftest*
11700     ;;
11701   esac
11703   # Append ld.so.conf contents to the search path
11704   if test -f /etc/ld.so.conf; then
11705     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11706     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
11707   fi
11709   # We used to test for /lib/ld.so.1 and disable shared libraries on
11710   # powerpc, because MkLinux only supported shared libraries with the
11711   # GNU dynamic linker.  Since this was broken with cross compilers,
11712   # most powerpc-linux boxes support dynamic linking these days and
11713   # people can always --disable-shared, the test was removed, and we
11714   # assume the GNU/Linux dynamic linker is in use.
11715   dynamic_linker='GNU/Linux ld.so'
11716   ;;
11718 knetbsd*-gnu)
11719   version_type=linux
11720   need_lib_prefix=no
11721   need_version=no
11722   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11723   soname_spec='${libname}${release}${shared_ext}$major'
11724   shlibpath_var=LD_LIBRARY_PATH
11725   shlibpath_overrides_runpath=no
11726   hardcode_into_libs=yes
11727   dynamic_linker='GNU ld.so'
11728   ;;
11730 netbsd*)
11731   version_type=sunos
11732   need_lib_prefix=no
11733   need_version=no
11734   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11735     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11736     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11737     dynamic_linker='NetBSD (a.out) ld.so'
11738   else
11739     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11740     soname_spec='${libname}${release}${shared_ext}$major'
11741     dynamic_linker='NetBSD ld.elf_so'
11742   fi
11743   shlibpath_var=LD_LIBRARY_PATH
11744   shlibpath_overrides_runpath=yes
11745   hardcode_into_libs=yes
11746   ;;
11748 newsos6)
11749   version_type=linux
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   shlibpath_overrides_runpath=yes
11753   ;;
11755 nto-qnx*)
11756   version_type=linux
11757   need_lib_prefix=no
11758   need_version=no
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   soname_spec='${libname}${release}${shared_ext}$major'
11761   shlibpath_var=LD_LIBRARY_PATH
11762   shlibpath_overrides_runpath=yes
11763   ;;
11765 openbsd*)
11766   version_type=sunos
11767   need_lib_prefix=no
11768   need_version=yes
11769   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11770   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11771   shlibpath_var=LD_LIBRARY_PATH
11772   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11773     case $host_os in
11774       openbsd2.[89] | openbsd2.[89].*)
11775         shlibpath_overrides_runpath=no
11776         ;;
11777       *)
11778         shlibpath_overrides_runpath=yes
11779         ;;
11780       esac
11781   else
11782     shlibpath_overrides_runpath=yes
11783   fi
11784   ;;
11786 os2*)
11787   libname_spec='$name'
11788   shrext_cmds=".dll"
11789   need_lib_prefix=no
11790   library_names_spec='$libname${shared_ext} $libname.a'
11791   dynamic_linker='OS/2 ld.exe'
11792   shlibpath_var=LIBPATH
11793   ;;
11795 osf3* | osf4* | osf5*)
11796   version_type=osf
11797   need_lib_prefix=no
11798   need_version=no
11799   soname_spec='${libname}${release}${shared_ext}$major'
11800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11801   shlibpath_var=LD_LIBRARY_PATH
11802   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11803   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11804   ;;
11806 sco3.2v5*)
11807   version_type=osf
11808   soname_spec='${libname}${release}${shared_ext}$major'
11809   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810   shlibpath_var=LD_LIBRARY_PATH
11811   ;;
11813 solaris*)
11814   version_type=linux
11815   need_lib_prefix=no
11816   need_version=no
11817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11818   soname_spec='${libname}${release}${shared_ext}$major'
11819   shlibpath_var=LD_LIBRARY_PATH
11820   shlibpath_overrides_runpath=yes
11821   hardcode_into_libs=yes
11822   # ldd complains unless libraries are executable
11823   postinstall_cmds='chmod +x $lib'
11824   ;;
11826 sunos4*)
11827   version_type=sunos
11828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11829   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11830   shlibpath_var=LD_LIBRARY_PATH
11831   shlibpath_overrides_runpath=yes
11832   if test "$with_gnu_ld" = yes; then
11833     need_lib_prefix=no
11834   fi
11835   need_version=yes
11836   ;;
11838 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11839   version_type=linux
11840   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11841   soname_spec='${libname}${release}${shared_ext}$major'
11842   shlibpath_var=LD_LIBRARY_PATH
11843   case $host_vendor in
11844     sni)
11845       shlibpath_overrides_runpath=no
11846       need_lib_prefix=no
11847       export_dynamic_flag_spec='${wl}-Blargedynsym'
11848       runpath_var=LD_RUN_PATH
11849       ;;
11850     siemens)
11851       need_lib_prefix=no
11852       ;;
11853     motorola)
11854       need_lib_prefix=no
11855       need_version=no
11856       shlibpath_overrides_runpath=no
11857       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11858       ;;
11859   esac
11860   ;;
11862 sysv4*MP*)
11863   if test -d /usr/nec ;then
11864     version_type=linux
11865     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11866     soname_spec='$libname${shared_ext}.$major'
11867     shlibpath_var=LD_LIBRARY_PATH
11868   fi
11869   ;;
11871 uts4*)
11872   version_type=linux
11873   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874   soname_spec='${libname}${release}${shared_ext}$major'
11875   shlibpath_var=LD_LIBRARY_PATH
11876   ;;
11879   dynamic_linker=no
11880   ;;
11881 esac
11882 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11883 echo "${ECHO_T}$dynamic_linker" >&6
11884 test "$dynamic_linker" = no && can_build_shared=no
11886 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11887 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11888 hardcode_action_CXX=
11889 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11890    test -n "$runpath_var CXX" || \
11891    test "X$hardcode_automatic_CXX"="Xyes" ; then
11893   # We can hardcode non-existant directories.
11894   if test "$hardcode_direct_CXX" != no &&
11895      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11896      # have to relink, otherwise we might link with an installed library
11897      # when we should be linking with a yet-to-be-installed one
11898      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11899      test "$hardcode_minus_L_CXX" != no; then
11900     # Linking always hardcodes the temporary library directory.
11901     hardcode_action_CXX=relink
11902   else
11903     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11904     hardcode_action_CXX=immediate
11905   fi
11906 else
11907   # We cannot hardcode anything, or else we can only hardcode existing
11908   # directories.
11909   hardcode_action_CXX=unsupported
11911 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11912 echo "${ECHO_T}$hardcode_action_CXX" >&6
11914 if test "$hardcode_action_CXX" = relink; then
11915   # Fast installation is not supported
11916   enable_fast_install=no
11917 elif test "$shlibpath_overrides_runpath" = yes ||
11918      test "$enable_shared" = no; then
11919   # Fast installation is not necessary
11920   enable_fast_install=needless
11923 striplib=
11924 old_striplib=
11925 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11926 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11927 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11928   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11929   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11930   echo "$as_me:$LINENO: result: yes" >&5
11931 echo "${ECHO_T}yes" >&6
11932 else
11933 # FIXME - insert some real tests, host_os isn't really good enough
11934   case $host_os in
11935    darwin*)
11936        if test -n "$STRIP" ; then
11937          striplib="$STRIP -x"
11938          echo "$as_me:$LINENO: result: yes" >&5
11939 echo "${ECHO_T}yes" >&6
11940        else
11941   echo "$as_me:$LINENO: result: no" >&5
11942 echo "${ECHO_T}no" >&6
11944        ;;
11945    *)
11946   echo "$as_me:$LINENO: result: no" >&5
11947 echo "${ECHO_T}no" >&6
11948     ;;
11949   esac
11952 if test "x$enable_dlopen" != xyes; then
11953   enable_dlopen=unknown
11954   enable_dlopen_self=unknown
11955   enable_dlopen_self_static=unknown
11956 else
11957   lt_cv_dlopen=no
11958   lt_cv_dlopen_libs=
11960   case $host_os in
11961   beos*)
11962     lt_cv_dlopen="load_add_on"
11963     lt_cv_dlopen_libs=
11964     lt_cv_dlopen_self=yes
11965     ;;
11967   mingw* | pw32*)
11968     lt_cv_dlopen="LoadLibrary"
11969     lt_cv_dlopen_libs=
11970    ;;
11972   cygwin*)
11973     lt_cv_dlopen="dlopen"
11974     lt_cv_dlopen_libs=
11975    ;;
11977   darwin*)
11978   # if libdl is installed we need to link against it
11979     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11980 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11981 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11982   echo $ECHO_N "(cached) $ECHO_C" >&6
11983 else
11984   ac_check_lib_save_LIBS=$LIBS
11985 LIBS="-ldl  $LIBS"
11986 cat >conftest.$ac_ext <<_ACEOF
11987 /* confdefs.h.  */
11988 _ACEOF
11989 cat confdefs.h >>conftest.$ac_ext
11990 cat >>conftest.$ac_ext <<_ACEOF
11991 /* end confdefs.h.  */
11993 /* Override any gcc2 internal prototype to avoid an error.  */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 /* We use char because int might match the return type of a gcc2
11998    builtin and then its argument prototype would still apply.  */
11999 char dlopen ();
12001 main ()
12003 dlopen ();
12004   ;
12005   return 0;
12007 _ACEOF
12008 rm -f conftest.$ac_objext conftest$ac_exeext
12009 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12010   (eval $ac_link) 2>conftest.er1
12011   ac_status=$?
12012   grep -v '^ *+' conftest.er1 >conftest.err
12013   rm -f conftest.er1
12014   cat conftest.err >&5
12015   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12016   (exit $ac_status); } &&
12017          { ac_try='test -z "$ac_cxx_werror_flag"
12018                          || test ! -s conftest.err'
12019   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12020   (eval $ac_try) 2>&5
12021   ac_status=$?
12022   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023   (exit $ac_status); }; } &&
12024          { ac_try='test -s conftest$ac_exeext'
12025   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12026   (eval $ac_try) 2>&5
12027   ac_status=$?
12028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12029   (exit $ac_status); }; }; then
12030   ac_cv_lib_dl_dlopen=yes
12031 else
12032   echo "$as_me: failed program was:" >&5
12033 sed 's/^/| /' conftest.$ac_ext >&5
12035 ac_cv_lib_dl_dlopen=no
12037 rm -f conftest.err conftest.$ac_objext \
12038       conftest$ac_exeext conftest.$ac_ext
12039 LIBS=$ac_check_lib_save_LIBS
12041 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12042 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12043 if test $ac_cv_lib_dl_dlopen = yes; then
12044   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12045 else
12046   
12047     lt_cv_dlopen="dyld"
12048     lt_cv_dlopen_libs=
12049     lt_cv_dlopen_self=yes
12050     
12053    ;;
12055   *)
12056     echo "$as_me:$LINENO: checking for shl_load" >&5
12057 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12058 if test "${ac_cv_func_shl_load+set}" = set; then
12059   echo $ECHO_N "(cached) $ECHO_C" >&6
12060 else
12061   cat >conftest.$ac_ext <<_ACEOF
12062 /* confdefs.h.  */
12063 _ACEOF
12064 cat confdefs.h >>conftest.$ac_ext
12065 cat >>conftest.$ac_ext <<_ACEOF
12066 /* end confdefs.h.  */
12067 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12068    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12069 #define shl_load innocuous_shl_load
12071 /* System header to define __stub macros and hopefully few prototypes,
12072     which can conflict with char shl_load (); below.
12073     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12074     <limits.h> exists even on freestanding compilers.  */
12076 #ifdef __STDC__
12077 # include <limits.h>
12078 #else
12079 # include <assert.h>
12080 #endif
12082 #undef shl_load
12084 /* Override any gcc2 internal prototype to avoid an error.  */
12085 #ifdef __cplusplus
12086 extern "C"
12088 #endif
12089 /* We use char because int might match the return type of a gcc2
12090    builtin and then its argument prototype would still apply.  */
12091 char shl_load ();
12092 /* The GNU C library defines this for functions which it implements
12093     to always fail with ENOSYS.  Some functions are actually named
12094     something starting with __ and the normal name is an alias.  */
12095 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12096 choke me
12097 #else
12098 char (*f) () = shl_load;
12099 #endif
12100 #ifdef __cplusplus
12102 #endif
12105 main ()
12107 return f != shl_load;
12108   ;
12109   return 0;
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12114   (eval $ac_link) 2>conftest.er1
12115   ac_status=$?
12116   grep -v '^ *+' conftest.er1 >conftest.err
12117   rm -f conftest.er1
12118   cat conftest.err >&5
12119   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120   (exit $ac_status); } &&
12121          { ac_try='test -z "$ac_cxx_werror_flag"
12122                          || test ! -s conftest.err'
12123   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12124   (eval $ac_try) 2>&5
12125   ac_status=$?
12126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127   (exit $ac_status); }; } &&
12128          { ac_try='test -s conftest$ac_exeext'
12129   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12130   (eval $ac_try) 2>&5
12131   ac_status=$?
12132   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12133   (exit $ac_status); }; }; then
12134   ac_cv_func_shl_load=yes
12135 else
12136   echo "$as_me: failed program was:" >&5
12137 sed 's/^/| /' conftest.$ac_ext >&5
12139 ac_cv_func_shl_load=no
12141 rm -f conftest.err conftest.$ac_objext \
12142       conftest$ac_exeext conftest.$ac_ext
12144 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12145 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12146 if test $ac_cv_func_shl_load = yes; then
12147   lt_cv_dlopen="shl_load"
12148 else
12149   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12150 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12151 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12152   echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154   ac_check_lib_save_LIBS=$LIBS
12155 LIBS="-ldld  $LIBS"
12156 cat >conftest.$ac_ext <<_ACEOF
12157 /* confdefs.h.  */
12158 _ACEOF
12159 cat confdefs.h >>conftest.$ac_ext
12160 cat >>conftest.$ac_ext <<_ACEOF
12161 /* end confdefs.h.  */
12163 /* Override any gcc2 internal prototype to avoid an error.  */
12164 #ifdef __cplusplus
12165 extern "C"
12166 #endif
12167 /* We use char because int might match the return type of a gcc2
12168    builtin and then its argument prototype would still apply.  */
12169 char shl_load ();
12171 main ()
12173 shl_load ();
12174   ;
12175   return 0;
12177 _ACEOF
12178 rm -f conftest.$ac_objext conftest$ac_exeext
12179 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12180   (eval $ac_link) 2>conftest.er1
12181   ac_status=$?
12182   grep -v '^ *+' conftest.er1 >conftest.err
12183   rm -f conftest.er1
12184   cat conftest.err >&5
12185   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186   (exit $ac_status); } &&
12187          { ac_try='test -z "$ac_cxx_werror_flag"
12188                          || test ! -s conftest.err'
12189   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12190   (eval $ac_try) 2>&5
12191   ac_status=$?
12192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193   (exit $ac_status); }; } &&
12194          { ac_try='test -s conftest$ac_exeext'
12195   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12196   (eval $ac_try) 2>&5
12197   ac_status=$?
12198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12199   (exit $ac_status); }; }; then
12200   ac_cv_lib_dld_shl_load=yes
12201 else
12202   echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12205 ac_cv_lib_dld_shl_load=no
12207 rm -f conftest.err conftest.$ac_objext \
12208       conftest$ac_exeext conftest.$ac_ext
12209 LIBS=$ac_check_lib_save_LIBS
12211 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12212 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12213 if test $ac_cv_lib_dld_shl_load = yes; then
12214   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12215 else
12216   echo "$as_me:$LINENO: checking for dlopen" >&5
12217 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12218 if test "${ac_cv_func_dlopen+set}" = set; then
12219   echo $ECHO_N "(cached) $ECHO_C" >&6
12220 else
12221   cat >conftest.$ac_ext <<_ACEOF
12222 /* confdefs.h.  */
12223 _ACEOF
12224 cat confdefs.h >>conftest.$ac_ext
12225 cat >>conftest.$ac_ext <<_ACEOF
12226 /* end confdefs.h.  */
12227 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12228    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12229 #define dlopen innocuous_dlopen
12231 /* System header to define __stub macros and hopefully few prototypes,
12232     which can conflict with char dlopen (); below.
12233     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12234     <limits.h> exists even on freestanding compilers.  */
12236 #ifdef __STDC__
12237 # include <limits.h>
12238 #else
12239 # include <assert.h>
12240 #endif
12242 #undef dlopen
12244 /* Override any gcc2 internal prototype to avoid an error.  */
12245 #ifdef __cplusplus
12246 extern "C"
12248 #endif
12249 /* We use char because int might match the return type of a gcc2
12250    builtin and then its argument prototype would still apply.  */
12251 char dlopen ();
12252 /* The GNU C library defines this for functions which it implements
12253     to always fail with ENOSYS.  Some functions are actually named
12254     something starting with __ and the normal name is an alias.  */
12255 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12256 choke me
12257 #else
12258 char (*f) () = dlopen;
12259 #endif
12260 #ifdef __cplusplus
12262 #endif
12265 main ()
12267 return f != dlopen;
12268   ;
12269   return 0;
12271 _ACEOF
12272 rm -f conftest.$ac_objext conftest$ac_exeext
12273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12274   (eval $ac_link) 2>conftest.er1
12275   ac_status=$?
12276   grep -v '^ *+' conftest.er1 >conftest.err
12277   rm -f conftest.er1
12278   cat conftest.err >&5
12279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280   (exit $ac_status); } &&
12281          { ac_try='test -z "$ac_cxx_werror_flag"
12282                          || test ! -s conftest.err'
12283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12284   (eval $ac_try) 2>&5
12285   ac_status=$?
12286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12287   (exit $ac_status); }; } &&
12288          { ac_try='test -s conftest$ac_exeext'
12289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12290   (eval $ac_try) 2>&5
12291   ac_status=$?
12292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293   (exit $ac_status); }; }; then
12294   ac_cv_func_dlopen=yes
12295 else
12296   echo "$as_me: failed program was:" >&5
12297 sed 's/^/| /' conftest.$ac_ext >&5
12299 ac_cv_func_dlopen=no
12301 rm -f conftest.err conftest.$ac_objext \
12302       conftest$ac_exeext conftest.$ac_ext
12304 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12305 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12306 if test $ac_cv_func_dlopen = yes; then
12307   lt_cv_dlopen="dlopen"
12308 else
12309   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12310 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12311 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12312   echo $ECHO_N "(cached) $ECHO_C" >&6
12313 else
12314   ac_check_lib_save_LIBS=$LIBS
12315 LIBS="-ldl  $LIBS"
12316 cat >conftest.$ac_ext <<_ACEOF
12317 /* confdefs.h.  */
12318 _ACEOF
12319 cat confdefs.h >>conftest.$ac_ext
12320 cat >>conftest.$ac_ext <<_ACEOF
12321 /* end confdefs.h.  */
12323 /* Override any gcc2 internal prototype to avoid an error.  */
12324 #ifdef __cplusplus
12325 extern "C"
12326 #endif
12327 /* We use char because int might match the return type of a gcc2
12328    builtin and then its argument prototype would still apply.  */
12329 char dlopen ();
12331 main ()
12333 dlopen ();
12334   ;
12335   return 0;
12337 _ACEOF
12338 rm -f conftest.$ac_objext conftest$ac_exeext
12339 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12340   (eval $ac_link) 2>conftest.er1
12341   ac_status=$?
12342   grep -v '^ *+' conftest.er1 >conftest.err
12343   rm -f conftest.er1
12344   cat conftest.err >&5
12345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346   (exit $ac_status); } &&
12347          { ac_try='test -z "$ac_cxx_werror_flag"
12348                          || test ! -s conftest.err'
12349   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12350   (eval $ac_try) 2>&5
12351   ac_status=$?
12352   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12353   (exit $ac_status); }; } &&
12354          { ac_try='test -s conftest$ac_exeext'
12355   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12356   (eval $ac_try) 2>&5
12357   ac_status=$?
12358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12359   (exit $ac_status); }; }; then
12360   ac_cv_lib_dl_dlopen=yes
12361 else
12362   echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.$ac_ext >&5
12365 ac_cv_lib_dl_dlopen=no
12367 rm -f conftest.err conftest.$ac_objext \
12368       conftest$ac_exeext conftest.$ac_ext
12369 LIBS=$ac_check_lib_save_LIBS
12371 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12372 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12373 if test $ac_cv_lib_dl_dlopen = yes; then
12374   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12375 else
12376   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12377 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12378 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12379   echo $ECHO_N "(cached) $ECHO_C" >&6
12380 else
12381   ac_check_lib_save_LIBS=$LIBS
12382 LIBS="-lsvld  $LIBS"
12383 cat >conftest.$ac_ext <<_ACEOF
12384 /* confdefs.h.  */
12385 _ACEOF
12386 cat confdefs.h >>conftest.$ac_ext
12387 cat >>conftest.$ac_ext <<_ACEOF
12388 /* end confdefs.h.  */
12390 /* Override any gcc2 internal prototype to avoid an error.  */
12391 #ifdef __cplusplus
12392 extern "C"
12393 #endif
12394 /* We use char because int might match the return type of a gcc2
12395    builtin and then its argument prototype would still apply.  */
12396 char dlopen ();
12398 main ()
12400 dlopen ();
12401   ;
12402   return 0;
12404 _ACEOF
12405 rm -f conftest.$ac_objext conftest$ac_exeext
12406 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12407   (eval $ac_link) 2>conftest.er1
12408   ac_status=$?
12409   grep -v '^ *+' conftest.er1 >conftest.err
12410   rm -f conftest.er1
12411   cat conftest.err >&5
12412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12413   (exit $ac_status); } &&
12414          { ac_try='test -z "$ac_cxx_werror_flag"
12415                          || test ! -s conftest.err'
12416   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12417   (eval $ac_try) 2>&5
12418   ac_status=$?
12419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420   (exit $ac_status); }; } &&
12421          { ac_try='test -s conftest$ac_exeext'
12422   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12423   (eval $ac_try) 2>&5
12424   ac_status=$?
12425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12426   (exit $ac_status); }; }; then
12427   ac_cv_lib_svld_dlopen=yes
12428 else
12429   echo "$as_me: failed program was:" >&5
12430 sed 's/^/| /' conftest.$ac_ext >&5
12432 ac_cv_lib_svld_dlopen=no
12434 rm -f conftest.err conftest.$ac_objext \
12435       conftest$ac_exeext conftest.$ac_ext
12436 LIBS=$ac_check_lib_save_LIBS
12438 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12439 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12440 if test $ac_cv_lib_svld_dlopen = yes; then
12441   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12442 else
12443   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12444 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12445 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12446   echo $ECHO_N "(cached) $ECHO_C" >&6
12447 else
12448   ac_check_lib_save_LIBS=$LIBS
12449 LIBS="-ldld  $LIBS"
12450 cat >conftest.$ac_ext <<_ACEOF
12451 /* confdefs.h.  */
12452 _ACEOF
12453 cat confdefs.h >>conftest.$ac_ext
12454 cat >>conftest.$ac_ext <<_ACEOF
12455 /* end confdefs.h.  */
12457 /* Override any gcc2 internal prototype to avoid an error.  */
12458 #ifdef __cplusplus
12459 extern "C"
12460 #endif
12461 /* We use char because int might match the return type of a gcc2
12462    builtin and then its argument prototype would still apply.  */
12463 char dld_link ();
12465 main ()
12467 dld_link ();
12468   ;
12469   return 0;
12471 _ACEOF
12472 rm -f conftest.$ac_objext conftest$ac_exeext
12473 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12474   (eval $ac_link) 2>conftest.er1
12475   ac_status=$?
12476   grep -v '^ *+' conftest.er1 >conftest.err
12477   rm -f conftest.er1
12478   cat conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } &&
12481          { ac_try='test -z "$ac_cxx_werror_flag"
12482                          || test ! -s conftest.err'
12483   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12484   (eval $ac_try) 2>&5
12485   ac_status=$?
12486   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487   (exit $ac_status); }; } &&
12488          { ac_try='test -s conftest$ac_exeext'
12489   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12490   (eval $ac_try) 2>&5
12491   ac_status=$?
12492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12493   (exit $ac_status); }; }; then
12494   ac_cv_lib_dld_dld_link=yes
12495 else
12496   echo "$as_me: failed program was:" >&5
12497 sed 's/^/| /' conftest.$ac_ext >&5
12499 ac_cv_lib_dld_dld_link=no
12501 rm -f conftest.err conftest.$ac_objext \
12502       conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12505 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12506 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12507 if test $ac_cv_lib_dld_dld_link = yes; then
12508   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12511               
12514             
12517           
12520         
12523       
12526     ;;
12527   esac
12529   if test "x$lt_cv_dlopen" != xno; then
12530     enable_dlopen=yes
12531   else
12532     enable_dlopen=no
12533   fi
12535   case $lt_cv_dlopen in
12536   dlopen)
12537     save_CPPFLAGS="$CPPFLAGS"
12538     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12540     save_LDFLAGS="$LDFLAGS"
12541     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12543     save_LIBS="$LIBS"
12544     LIBS="$lt_cv_dlopen_libs $LIBS"
12546     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12547 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12548 if test "${lt_cv_dlopen_self+set}" = set; then
12549   echo $ECHO_N "(cached) $ECHO_C" >&6
12550 else
12551           if test "$cross_compiling" = yes; then :
12552   lt_cv_dlopen_self=cross
12553 else
12554   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12555   lt_status=$lt_dlunknown
12556   cat > conftest.$ac_ext <<EOF
12557 #line __oline__ "configure"
12558 #include "confdefs.h"
12560 #if HAVE_DLFCN_H
12561 #include <dlfcn.h>
12562 #endif
12564 #include <stdio.h>
12566 #ifdef RTLD_GLOBAL
12567 #  define LT_DLGLOBAL           RTLD_GLOBAL
12568 #else
12569 #  ifdef DL_GLOBAL
12570 #    define LT_DLGLOBAL         DL_GLOBAL
12571 #  else
12572 #    define LT_DLGLOBAL         0
12573 #  endif
12574 #endif
12576 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12577    find out it does not work in some platform. */
12578 #ifndef LT_DLLAZY_OR_NOW
12579 #  ifdef RTLD_LAZY
12580 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12581 #  else
12582 #    ifdef DL_LAZY
12583 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12584 #    else
12585 #      ifdef RTLD_NOW
12586 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12587 #      else
12588 #        ifdef DL_NOW
12589 #          define LT_DLLAZY_OR_NOW      DL_NOW
12590 #        else
12591 #          define LT_DLLAZY_OR_NOW      0
12592 #        endif
12593 #      endif
12594 #    endif
12595 #  endif
12596 #endif
12598 #ifdef __cplusplus
12599 extern "C" void exit (int);
12600 #endif
12602 void fnord() { int i=42;}
12603 int main ()
12605   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12606   int status = $lt_dlunknown;
12608   if (self)
12609     {
12610       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12611       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12612       /* dlclose (self); */
12613     }
12615     exit (status);
12618   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12619   (eval $ac_link) 2>&5
12620   ac_status=$?
12621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12622   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12623     (./conftest; exit; ) 2>/dev/null
12624     lt_status=$?
12625     case x$lt_status in
12626       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12627       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12628       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12629     esac
12630   else :
12631     # compilation failed
12632     lt_cv_dlopen_self=no
12633   fi
12635 rm -fr conftest*
12637     
12639 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12640 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12642     if test "x$lt_cv_dlopen_self" = xyes; then
12643       LDFLAGS="$LDFLAGS $link_static_flag"
12644       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12645 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12646 if test "${lt_cv_dlopen_self_static+set}" = set; then
12647   echo $ECHO_N "(cached) $ECHO_C" >&6
12648 else
12649           if test "$cross_compiling" = yes; then :
12650   lt_cv_dlopen_self_static=cross
12651 else
12652   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12653   lt_status=$lt_dlunknown
12654   cat > conftest.$ac_ext <<EOF
12655 #line __oline__ "configure"
12656 #include "confdefs.h"
12658 #if HAVE_DLFCN_H
12659 #include <dlfcn.h>
12660 #endif
12662 #include <stdio.h>
12664 #ifdef RTLD_GLOBAL
12665 #  define LT_DLGLOBAL           RTLD_GLOBAL
12666 #else
12667 #  ifdef DL_GLOBAL
12668 #    define LT_DLGLOBAL         DL_GLOBAL
12669 #  else
12670 #    define LT_DLGLOBAL         0
12671 #  endif
12672 #endif
12674 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12675    find out it does not work in some platform. */
12676 #ifndef LT_DLLAZY_OR_NOW
12677 #  ifdef RTLD_LAZY
12678 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
12679 #  else
12680 #    ifdef DL_LAZY
12681 #      define LT_DLLAZY_OR_NOW          DL_LAZY
12682 #    else
12683 #      ifdef RTLD_NOW
12684 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
12685 #      else
12686 #        ifdef DL_NOW
12687 #          define LT_DLLAZY_OR_NOW      DL_NOW
12688 #        else
12689 #          define LT_DLLAZY_OR_NOW      0
12690 #        endif
12691 #      endif
12692 #    endif
12693 #  endif
12694 #endif
12696 #ifdef __cplusplus
12697 extern "C" void exit (int);
12698 #endif
12700 void fnord() { int i=42;}
12701 int main ()
12703   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12704   int status = $lt_dlunknown;
12706   if (self)
12707     {
12708       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12709       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12710       /* dlclose (self); */
12711     }
12713     exit (status);
12716   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12717   (eval $ac_link) 2>&5
12718   ac_status=$?
12719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12720   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12721     (./conftest; exit; ) 2>/dev/null
12722     lt_status=$?
12723     case x$lt_status in
12724       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12725       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12726       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12727     esac
12728   else :
12729     # compilation failed
12730     lt_cv_dlopen_self_static=no
12731   fi
12733 rm -fr conftest*
12735       
12737 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12738 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12739     fi
12741     CPPFLAGS="$save_CPPFLAGS"
12742     LDFLAGS="$save_LDFLAGS"
12743     LIBS="$save_LIBS"
12744     ;;
12745   esac
12747   case $lt_cv_dlopen_self in
12748   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12749   *) enable_dlopen_self=unknown ;;
12750   esac
12752   case $lt_cv_dlopen_self_static in
12753   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12754   *) enable_dlopen_self_static=unknown ;;
12755   esac
12759 # The else clause should only fire when bootstrapping the
12760 # libtool distribution, otherwise you forgot to ship ltmain.sh
12761 # with your package, and you will get complaints that there are
12762 # no rules to generate ltmain.sh.
12763 if test -f "$ltmain"; then
12764   # See if we are running on zsh, and set the options which allow our commands through
12765   # without removal of \ escapes.
12766   if test -n "${ZSH_VERSION+set}" ; then
12767     setopt NO_GLOB_SUBST
12768   fi
12769   # Now quote all the things that may contain metacharacters while being
12770   # careful not to overquote the AC_SUBSTed values.  We take copies of the
12771   # variables and quote the copies for generation of the libtool script.
12772   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
12773     SED SHELL STRIP \
12774     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12775     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12776     deplibs_check_method reload_flag reload_cmds need_locks \
12777     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12778     lt_cv_sys_global_symbol_to_c_name_address \
12779     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12780     old_postinstall_cmds old_postuninstall_cmds \
12781     compiler_CXX \
12782     CC_CXX \
12783     LD_CXX \
12784     lt_prog_compiler_wl_CXX \
12785     lt_prog_compiler_pic_CXX \
12786     lt_prog_compiler_static_CXX \
12787     lt_prog_compiler_no_builtin_flag_CXX \
12788     export_dynamic_flag_spec_CXX \
12789     thread_safe_flag_spec_CXX \
12790     whole_archive_flag_spec_CXX \
12791     enable_shared_with_static_runtimes_CXX \
12792     old_archive_cmds_CXX \
12793     old_archive_from_new_cmds_CXX \
12794     predep_objects_CXX \
12795     postdep_objects_CXX \
12796     predeps_CXX \
12797     postdeps_CXX \
12798     compiler_lib_search_path_CXX \
12799     archive_cmds_CXX \
12800     archive_expsym_cmds_CXX \
12801     postinstall_cmds_CXX \
12802     postuninstall_cmds_CXX \
12803     old_archive_from_expsyms_cmds_CXX \
12804     allow_undefined_flag_CXX \
12805     no_undefined_flag_CXX \
12806     export_symbols_cmds_CXX \
12807     hardcode_libdir_flag_spec_CXX \
12808     hardcode_libdir_flag_spec_ld_CXX \
12809     hardcode_libdir_separator_CXX \
12810     hardcode_automatic_CXX \
12811     module_cmds_CXX \
12812     module_expsym_cmds_CXX \
12813     lt_cv_prog_compiler_c_o_CXX \
12814     exclude_expsyms_CXX \
12815     include_expsyms_CXX; do
12817     case $var in
12818     old_archive_cmds_CXX | \
12819     old_archive_from_new_cmds_CXX | \
12820     archive_cmds_CXX | \
12821     archive_expsym_cmds_CXX | \
12822     module_cmds_CXX | \
12823     module_expsym_cmds_CXX | \
12824     old_archive_from_expsyms_cmds_CXX | \
12825     export_symbols_cmds_CXX | \
12826     extract_expsyms_cmds | reload_cmds | finish_cmds | \
12827     postinstall_cmds | postuninstall_cmds | \
12828     old_postinstall_cmds | old_postuninstall_cmds | \
12829     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12830       # Double-quote double-evaled strings.
12831       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12832       ;;
12833     *)
12834       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12835       ;;
12836     esac
12837   done
12839   case $lt_echo in
12840   *'\$0 --fallback-echo"')
12841     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12842     ;;
12843   esac
12845 cfgfile="$ofile"
12847   cat <<__EOF__ >> "$cfgfile"
12848 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12850 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12852 # Shell to use when invoking shell scripts.
12853 SHELL=$lt_SHELL
12855 # Whether or not to build shared libraries.
12856 build_libtool_libs=$enable_shared
12858 # Whether or not to build static libraries.
12859 build_old_libs=$enable_static
12861 # Whether or not to add -lc for building shared libraries.
12862 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12864 # Whether or not to disallow shared libs when runtime libs are static
12865 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12867 # Whether or not to optimize for fast installation.
12868 fast_install=$enable_fast_install
12870 # The host system.
12871 host_alias=$host_alias
12872 host=$host
12874 # An echo program that does not interpret backslashes.
12875 echo=$lt_echo
12877 # The archiver.
12878 AR=$lt_AR
12879 AR_FLAGS=$lt_AR_FLAGS
12881 # A C compiler.
12882 LTCC=$lt_LTCC
12884 # A language-specific compiler.
12885 CC=$lt_compiler_CXX
12887 # Is the compiler the GNU C compiler?
12888 with_gcc=$GCC_CXX
12890 # An ERE matcher.
12891 EGREP=$lt_EGREP
12893 # The linker used to build libraries.
12894 LD=$lt_LD_CXX
12896 # Whether we need hard or soft links.
12897 LN_S=$lt_LN_S
12899 # A BSD-compatible nm program.
12900 NM=$lt_NM
12902 # A symbol stripping program
12903 STRIP=$lt_STRIP
12905 # Used to examine libraries when file_magic_cmd begins "file"
12906 MAGIC_CMD=$MAGIC_CMD
12908 # Used on cygwin: DLL creation program.
12909 DLLTOOL="$DLLTOOL"
12911 # Used on cygwin: object dumper.
12912 OBJDUMP="$OBJDUMP"
12914 # Used on cygwin: assembler.
12915 AS="$AS"
12917 # The name of the directory that contains temporary libtool files.
12918 objdir=$objdir
12920 # How to create reloadable object files.
12921 reload_flag=$lt_reload_flag
12922 reload_cmds=$lt_reload_cmds
12924 # How to pass a linker flag through the compiler.
12925 wl=$lt_lt_prog_compiler_wl_CXX
12927 # Object file suffix (normally "o").
12928 objext="$ac_objext"
12930 # Old archive suffix (normally "a").
12931 libext="$libext"
12933 # Shared library suffix (normally ".so").
12934 shrext_cmds='$shrext_cmds'
12936 # Executable file suffix (normally "").
12937 exeext="$exeext"
12939 # Additional compiler flags for building library objects.
12940 pic_flag=$lt_lt_prog_compiler_pic_CXX
12941 pic_mode=$pic_mode
12943 # What is the maximum length of a command?
12944 max_cmd_len=$lt_cv_sys_max_cmd_len
12946 # Does compiler simultaneously support -c and -o options?
12947 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12949 # Must we lock files when doing compilation ?
12950 need_locks=$lt_need_locks
12952 # Do we need the lib prefix for modules?
12953 need_lib_prefix=$need_lib_prefix
12955 # Do we need a version for libraries?
12956 need_version=$need_version
12958 # Whether dlopen is supported.
12959 dlopen_support=$enable_dlopen
12961 # Whether dlopen of programs is supported.
12962 dlopen_self=$enable_dlopen_self
12964 # Whether dlopen of statically linked programs is supported.
12965 dlopen_self_static=$enable_dlopen_self_static
12967 # Compiler flag to prevent dynamic linking.
12968 link_static_flag=$lt_lt_prog_compiler_static_CXX
12970 # Compiler flag to turn off builtin functions.
12971 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12973 # Compiler flag to allow reflexive dlopens.
12974 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12976 # Compiler flag to generate shared objects directly from archives.
12977 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12979 # Compiler flag to generate thread-safe objects.
12980 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12982 # Library versioning type.
12983 version_type=$version_type
12985 # Format of library name prefix.
12986 libname_spec=$lt_libname_spec
12988 # List of archive names.  First name is the real one, the rest are links.
12989 # The last name is the one that the linker finds with -lNAME.
12990 library_names_spec=$lt_library_names_spec
12992 # The coded name of the library, if different from the real name.
12993 soname_spec=$lt_soname_spec
12995 # Commands used to build and install an old-style archive.
12996 RANLIB=$lt_RANLIB
12997 old_archive_cmds=$lt_old_archive_cmds_CXX
12998 old_postinstall_cmds=$lt_old_postinstall_cmds
12999 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13001 # Create an old-style archive from a shared archive.
13002 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13004 # Create a temporary old-style archive to link instead of a shared archive.
13005 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13007 # Commands used to build and install a shared archive.
13008 archive_cmds=$lt_archive_cmds_CXX
13009 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13010 postinstall_cmds=$lt_postinstall_cmds
13011 postuninstall_cmds=$lt_postuninstall_cmds
13013 # Commands used to build a loadable module (assumed same as above if empty)
13014 module_cmds=$lt_module_cmds_CXX
13015 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13017 # Commands to strip libraries.
13018 old_striplib=$lt_old_striplib
13019 striplib=$lt_striplib
13021 # Dependencies to place before the objects being linked to create a
13022 # shared library.
13023 predep_objects=$lt_predep_objects_CXX
13025 # Dependencies to place after the objects being linked to create a
13026 # shared library.
13027 postdep_objects=$lt_postdep_objects_CXX
13029 # Dependencies to place before the objects being linked to create a
13030 # shared library.
13031 predeps=$lt_predeps_CXX
13033 # Dependencies to place after the objects being linked to create a
13034 # shared library.
13035 postdeps=$lt_postdeps_CXX
13037 # The library search path used internally by the compiler when linking
13038 # a shared library.
13039 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13041 # Method to check whether dependent libraries are shared objects.
13042 deplibs_check_method=$lt_deplibs_check_method
13044 # Command to use when deplibs_check_method == file_magic.
13045 file_magic_cmd=$lt_file_magic_cmd
13047 # Flag that allows shared libraries with undefined symbols to be built.
13048 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13050 # Flag that forces no undefined symbols.
13051 no_undefined_flag=$lt_no_undefined_flag_CXX
13053 # Commands used to finish a libtool library installation in a directory.
13054 finish_cmds=$lt_finish_cmds
13056 # Same as above, but a single script fragment to be evaled but not shown.
13057 finish_eval=$lt_finish_eval
13059 # Take the output of nm and produce a listing of raw symbols and C names.
13060 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13062 # Transform the output of nm in a proper C declaration
13063 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13065 # Transform the output of nm in a C name address pair
13066 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13068 # This is the shared library runtime path variable.
13069 runpath_var=$runpath_var
13071 # This is the shared library path variable.
13072 shlibpath_var=$shlibpath_var
13074 # Is shlibpath searched before the hard-coded library search path?
13075 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13077 # How to hardcode a shared library path into an executable.
13078 hardcode_action=$hardcode_action_CXX
13080 # Whether we should hardcode library paths into libraries.
13081 hardcode_into_libs=$hardcode_into_libs
13083 # Flag to hardcode \$libdir into a binary during linking.
13084 # This must work even if \$libdir does not exist.
13085 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13087 # If ld is used when linking, flag to hardcode \$libdir into
13088 # a binary during linking. This must work even if \$libdir does
13089 # not exist.
13090 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13092 # Whether we need a single -rpath flag with a separated argument.
13093 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13095 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13096 # resulting binary.
13097 hardcode_direct=$hardcode_direct_CXX
13099 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13100 # resulting binary.
13101 hardcode_minus_L=$hardcode_minus_L_CXX
13103 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13104 # the resulting binary.
13105 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13107 # Set to yes if building a shared library automatically hardcodes DIR into the library
13108 # and all subsequent libraries and executables linked against it.
13109 hardcode_automatic=$hardcode_automatic_CXX
13111 # Variables whose values should be saved in libtool wrapper scripts and
13112 # restored at relink time.
13113 variables_saved_for_relink="$variables_saved_for_relink"
13115 # Whether libtool must link a program against all its dependency libraries.
13116 link_all_deplibs=$link_all_deplibs_CXX
13118 # Compile-time system search path for libraries
13119 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13121 # Run-time system search path for libraries
13122 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13124 # Fix the shell variable \$srcfile for the compiler.
13125 fix_srcfile_path="$fix_srcfile_path_CXX"
13127 # Set to yes if exported symbols are required.
13128 always_export_symbols=$always_export_symbols_CXX
13130 # The commands to list exported symbols.
13131 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13133 # The commands to extract the exported symbol list from a shared archive.
13134 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13136 # Symbols that should not be listed in the preloaded symbols.
13137 exclude_expsyms=$lt_exclude_expsyms_CXX
13139 # Symbols that must always be exported.
13140 include_expsyms=$lt_include_expsyms_CXX
13142 # ### END LIBTOOL TAG CONFIG: $tagname
13144 __EOF__
13147 else
13148   # If there is no Makefile yet, we rely on a make rule to execute
13149   # `config.status --recheck' to rerun these tests and create the
13150   # libtool script then.
13151   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13152   if test -f "$ltmain_in"; then
13153     test -f Makefile && make "$ltmain"
13154   fi
13158 ac_ext=c
13159 ac_cpp='$CPP $CPPFLAGS'
13160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13164 CC=$lt_save_CC
13165 LDCXX=$LD
13166 LD=$lt_save_LD
13167 GCC=$lt_save_GCC
13168 with_gnu_ldcxx=$with_gnu_ld
13169 with_gnu_ld=$lt_save_with_gnu_ld
13170 lt_cv_path_LDCXX=$lt_cv_path_LD
13171 lt_cv_path_LD=$lt_save_path_LD
13172 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13173 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13175         else
13176           tagname=""
13177         fi
13178         ;;
13180       F77)
13181         if test -n "$F77" && test "X$F77" != "Xno"; then
13182           
13183 ac_ext=f
13184 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13185 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13186 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13189 archive_cmds_need_lc_F77=no
13190 allow_undefined_flag_F77=
13191 always_export_symbols_F77=no
13192 archive_expsym_cmds_F77=
13193 export_dynamic_flag_spec_F77=
13194 hardcode_direct_F77=no
13195 hardcode_libdir_flag_spec_F77=
13196 hardcode_libdir_flag_spec_ld_F77=
13197 hardcode_libdir_separator_F77=
13198 hardcode_minus_L_F77=no
13199 hardcode_automatic_F77=no
13200 module_cmds_F77=
13201 module_expsym_cmds_F77=
13202 link_all_deplibs_F77=unknown
13203 old_archive_cmds_F77=$old_archive_cmds
13204 no_undefined_flag_F77=
13205 whole_archive_flag_spec_F77=
13206 enable_shared_with_static_runtimes_F77=no
13208 # Source file extension for f77 test sources.
13209 ac_ext=f
13211 # Object file extension for compiled f77 test sources.
13212 objext=o
13213 objext_F77=$objext
13215 # Code to be used in simple compile tests
13216 lt_simple_compile_test_code="      subroutine t\n      return\n      end\n"
13218 # Code to be used in simple link tests
13219 lt_simple_link_test_code="      program t\n      end\n"
13221 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13223 # If no C compiler was specified, use CC.
13224 LTCC=${LTCC-"$CC"}
13226 # Allow CC to be a program name with arguments.
13227 compiler=$CC
13230 # Allow CC to be a program name with arguments.
13231 lt_save_CC="$CC"
13232 CC=${F77-"f77"}
13233 compiler=$CC
13234 compiler_F77=$CC
13235 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
13237 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13238 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13239 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13240 echo "${ECHO_T}$can_build_shared" >&6
13242 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13243 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13244 test "$can_build_shared" = "no" && enable_shared=no
13246 # On AIX, shared libraries and static libraries use the same namespace, and
13247 # are all built from PIC.
13248 case "$host_os" in
13249 aix3*)
13250   test "$enable_shared" = yes && enable_static=no
13251   if test -n "$RANLIB"; then
13252     archive_cmds="$archive_cmds~\$RANLIB \$lib"
13253     postinstall_cmds='$RANLIB $lib'
13254   fi
13255   ;;
13256 aix4* | aix5*)
13257   test "$enable_shared" = yes && enable_static=no
13258   ;;
13259 esac
13260 echo "$as_me:$LINENO: result: $enable_shared" >&5
13261 echo "${ECHO_T}$enable_shared" >&6
13263 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13264 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13265 # Make sure either enable_shared or enable_static is yes.
13266 test "$enable_shared" = yes || enable_static=yes
13267 echo "$as_me:$LINENO: result: $enable_static" >&5
13268 echo "${ECHO_T}$enable_static" >&6
13270 test "$ld_shlibs_F77" = no && can_build_shared=no
13272 GCC_F77="$G77"
13273 LD_F77="$LD"
13275 lt_prog_compiler_wl_F77=
13276 lt_prog_compiler_pic_F77=
13277 lt_prog_compiler_static_F77=
13279 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13280 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13282   if test "$GCC" = yes; then
13283     lt_prog_compiler_wl_F77='-Wl,'
13284     lt_prog_compiler_static_F77='-static'
13286     case $host_os in
13287       aix*)
13288       # All AIX code is PIC.
13289       if test "$host_cpu" = ia64; then
13290         # AIX 5 now supports IA64 processor
13291         lt_prog_compiler_static_F77='-Bstatic'
13292       fi
13293       ;;
13295     amigaos*)
13296       # FIXME: we need at least 68020 code to build shared libraries, but
13297       # adding the `-m68020' flag to GCC prevents building anything better,
13298       # like `-m68040'.
13299       lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13300       ;;
13302     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13303       # PIC is the default for these OSes.
13304       ;;
13306     mingw* | pw32* | os2*)
13307       # This hack is so that the source file can tell whether it is being
13308       # built for inclusion in a dll (and should export symbols for example).
13309       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13310       ;;
13312     darwin* | rhapsody*)
13313       # PIC is the default on this platform
13314       # Common symbols not allowed in MH_DYLIB files
13315       lt_prog_compiler_pic_F77='-fno-common'
13316       ;;
13318     msdosdjgpp*)
13319       # Just because we use GCC doesn't mean we suddenly get shared libraries
13320       # on systems that don't support them.
13321       lt_prog_compiler_can_build_shared_F77=no
13322       enable_shared=no
13323       ;;
13325     sysv4*MP*)
13326       if test -d /usr/nec; then
13327         lt_prog_compiler_pic_F77=-Kconform_pic
13328       fi
13329       ;;
13331     hpux*)
13332       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13333       # not for PA HP-UX.
13334       case "$host_cpu" in
13335       hppa*64*|ia64*)
13336         # +Z the default
13337         ;;
13338       *)
13339         lt_prog_compiler_pic_F77='-fPIC'
13340         ;;
13341       esac
13342       ;;
13344     *)
13345       lt_prog_compiler_pic_F77='-fPIC'
13346       ;;
13347     esac
13348   else
13349     # PORTME Check for flag to pass linker flags through the system compiler.
13350     case $host_os in
13351     aix*)
13352       lt_prog_compiler_wl_F77='-Wl,'
13353       if test "$host_cpu" = ia64; then
13354         # AIX 5 now supports IA64 processor
13355         lt_prog_compiler_static_F77='-Bstatic'
13356       else
13357         lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13358       fi
13359       ;;
13361     mingw* | pw32* | os2*)
13362       # This hack is so that the source file can tell whether it is being
13363       # built for inclusion in a dll (and should export symbols for example).
13364       lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13365       ;;
13367     hpux9* | hpux10* | hpux11*)
13368       lt_prog_compiler_wl_F77='-Wl,'
13369       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13370       # not for PA HP-UX.
13371       case "$host_cpu" in
13372       hppa*64*|ia64*)
13373         # +Z the default
13374         ;;
13375       *)
13376         lt_prog_compiler_pic_F77='+Z'
13377         ;;
13378       esac
13379       # Is there a better lt_prog_compiler_static that works with the bundled CC?
13380       lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13381       ;;
13383     irix5* | irix6* | nonstopux*)
13384       lt_prog_compiler_wl_F77='-Wl,'
13385       # PIC (with -KPIC) is the default.
13386       lt_prog_compiler_static_F77='-non_shared'
13387       ;;
13389     newsos6)
13390       lt_prog_compiler_pic_F77='-KPIC'
13391       lt_prog_compiler_static_F77='-Bstatic'
13392       ;;
13394     linux*)
13395       case $CC in
13396       icc* | ecc*)
13397         lt_prog_compiler_wl_F77='-Wl,'
13398         lt_prog_compiler_pic_F77='-KPIC'
13399         lt_prog_compiler_static_F77='-static'
13400         ;;
13401       ccc*)
13402         lt_prog_compiler_wl_F77='-Wl,'
13403         # All Alpha code is PIC.
13404         lt_prog_compiler_static_F77='-non_shared'
13405         ;;
13406       esac
13407       ;;
13409     osf3* | osf4* | osf5*)
13410       lt_prog_compiler_wl_F77='-Wl,'
13411       # All OSF/1 code is PIC.
13412       lt_prog_compiler_static_F77='-non_shared'
13413       ;;
13415     sco3.2v5*)
13416       lt_prog_compiler_pic_F77='-Kpic'
13417       lt_prog_compiler_static_F77='-dn'
13418       ;;
13420     solaris*)
13421       lt_prog_compiler_wl_F77='-Wl,'
13422       lt_prog_compiler_pic_F77='-KPIC'
13423       lt_prog_compiler_static_F77='-Bstatic'
13424       ;;
13426     sunos4*)
13427       lt_prog_compiler_wl_F77='-Qoption ld '
13428       lt_prog_compiler_pic_F77='-PIC'
13429       lt_prog_compiler_static_F77='-Bstatic'
13430       ;;
13432     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13433       lt_prog_compiler_wl_F77='-Wl,'
13434       lt_prog_compiler_pic_F77='-KPIC'
13435       lt_prog_compiler_static_F77='-Bstatic'
13436       ;;
13438     sysv4*MP*)
13439       if test -d /usr/nec ;then
13440         lt_prog_compiler_pic_F77='-Kconform_pic'
13441         lt_prog_compiler_static_F77='-Bstatic'
13442       fi
13443       ;;
13445     uts4*)
13446       lt_prog_compiler_pic_F77='-pic'
13447       lt_prog_compiler_static_F77='-Bstatic'
13448       ;;
13450     *)
13451       lt_prog_compiler_can_build_shared_F77=no
13452       ;;
13453     esac
13454   fi
13456 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13457 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13460 # Check to make sure the PIC flag actually works.
13462 if test -n "$lt_prog_compiler_pic_F77"; then
13463   
13464 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13465 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13466 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
13467   echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469   lt_prog_compiler_pic_works_F77=no
13470   ac_outfile=conftest.$ac_objext
13471    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13472    lt_compiler_flag="$lt_prog_compiler_pic_F77"
13473    # Insert the option either (1) after the last *FLAGS variable, or
13474    # (2) before a word containing "conftest.", or (3) at the end.
13475    # Note that $ac_compile itself does not contain backslashes and begins
13476    # with a dollar sign (not a hyphen), so the echo should work correctly.
13477    # The option is referenced via a variable to avoid confusing sed.
13478    lt_compile=`echo "$ac_compile" | $SED \
13479    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13480    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13481    -e 's:$: $lt_compiler_flag:'`
13482    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13483    (eval "$lt_compile" 2>conftest.err)
13484    ac_status=$?
13485    cat conftest.err >&5
13486    echo "$as_me:__oline__: \$? = $ac_status" >&5
13487    if (exit $ac_status) && test -s "$ac_outfile"; then
13488      # The compiler can only warn and ignore the option if not recognized
13489      # So say no if there are warnings
13490      if test ! -s conftest.err; then
13491        lt_prog_compiler_pic_works_F77=yes
13492      fi
13493    fi
13494    $rm conftest*
13497 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
13498 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
13500 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13501     case $lt_prog_compiler_pic_F77 in
13502      "" | " "*) ;;
13503      *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13504      esac
13505 else
13506     lt_prog_compiler_pic_F77=
13507      lt_prog_compiler_can_build_shared_F77=no
13511 case "$host_os" in
13512   # For platforms which do not support PIC, -DPIC is meaningless:
13513   *djgpp*)
13514     lt_prog_compiler_pic_F77=
13515     ;;
13516   *)
13517     lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13518     ;;
13519 esac
13521 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13522 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13523 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13524   echo $ECHO_N "(cached) $ECHO_C" >&6
13525 else
13526   lt_cv_prog_compiler_c_o_F77=no
13527    $rm -r conftest 2>/dev/null
13528    mkdir conftest
13529    cd conftest
13530    mkdir out
13531    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13533    lt_compiler_flag="-o out/conftest2.$ac_objext"
13534    # Insert the option either (1) after the last *FLAGS variable, or
13535    # (2) before a word containing "conftest.", or (3) at the end.
13536    # Note that $ac_compile itself does not contain backslashes and begins
13537    # with a dollar sign (not a hyphen), so the echo should work correctly.
13538    lt_compile=`echo "$ac_compile" | $SED \
13539    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13541    -e 's:$: $lt_compiler_flag:'`
13542    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
13543    (eval "$lt_compile" 2>out/conftest.err)
13544    ac_status=$?
13545    cat out/conftest.err >&5
13546    echo "$as_me:__oline__: \$? = $ac_status" >&5
13547    if (exit $ac_status) && test -s out/conftest2.$ac_objext
13548    then
13549      # The compiler can only warn and ignore the option if not recognized
13550      # So say no if there are warnings
13551      if test ! -s out/conftest.err; then
13552        lt_cv_prog_compiler_c_o_F77=yes
13553      fi
13554    fi
13555    chmod u+w .
13556    $rm conftest*
13557    # SGI C++ compiler will create directory out/ii_files/ for
13558    # template instantiation
13559    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13560    $rm out/* && rmdir out
13561    cd ..
13562    rmdir conftest
13563    $rm conftest*
13566 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
13567 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
13570 hard_links="nottested"
13571 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13572   # do not overwrite the value of need_locks provided by the user
13573   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13574 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13575   hard_links=yes
13576   $rm conftest*
13577   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13578   touch conftest.a
13579   ln conftest.a conftest.b 2>&5 || hard_links=no
13580   ln conftest.a conftest.b 2>/dev/null && hard_links=no
13581   echo "$as_me:$LINENO: result: $hard_links" >&5
13582 echo "${ECHO_T}$hard_links" >&6
13583   if test "$hard_links" = no; then
13584     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13585 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13586     need_locks=warn
13587   fi
13588 else
13589   need_locks=no
13592 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13593 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13595   runpath_var=
13596   allow_undefined_flag_F77=
13597   enable_shared_with_static_runtimes_F77=no
13598   archive_cmds_F77=
13599   archive_expsym_cmds_F77=
13600   old_archive_From_new_cmds_F77=
13601   old_archive_from_expsyms_cmds_F77=
13602   export_dynamic_flag_spec_F77=
13603   whole_archive_flag_spec_F77=
13604   thread_safe_flag_spec_F77=
13605   hardcode_libdir_flag_spec_F77=
13606   hardcode_libdir_flag_spec_ld_F77=
13607   hardcode_libdir_separator_F77=
13608   hardcode_direct_F77=no
13609   hardcode_minus_L_F77=no
13610   hardcode_shlibpath_var_F77=unsupported
13611   link_all_deplibs_F77=unknown
13612   hardcode_automatic_F77=no
13613   module_cmds_F77=
13614   module_expsym_cmds_F77=
13615   always_export_symbols_F77=no
13616   export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13617   # include_expsyms should be a list of space-separated symbols to be *always*
13618   # included in the symbol list
13619   include_expsyms_F77=
13620   # exclude_expsyms can be an extended regexp of symbols to exclude
13621   # it will be wrapped by ` (' and `)$', so one must not match beginning or
13622   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13623   # as well as any symbol that contains `d'.
13624   exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13625   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13626   # platforms (ab)use it in PIC code, but their linkers get confused if
13627   # the symbol is explicitly referenced.  Since portable code cannot
13628   # rely on this symbol name, it's probably fine to never include it in
13629   # preloaded symbol tables.
13630   extract_expsyms_cmds=
13632   case $host_os in
13633   cygwin* | mingw* | pw32*)
13634     # FIXME: the MSVC++ port hasn't been tested in a loooong time
13635     # When not using gcc, we currently assume that we are using
13636     # Microsoft Visual C++.
13637     if test "$GCC" != yes; then
13638       with_gnu_ld=no
13639     fi
13640     ;;
13641   openbsd*)
13642     with_gnu_ld=no
13643     ;;
13644   esac
13646   ld_shlibs_F77=yes
13647   if test "$with_gnu_ld" = yes; then
13648     # If archive_cmds runs LD, not CC, wlarc should be empty
13649     wlarc='${wl}'
13651     # See if GNU ld supports shared libraries.
13652     case $host_os in
13653     aix3* | aix4* | aix5*)
13654       # On AIX/PPC, the GNU linker is very broken
13655       if test "$host_cpu" != ia64; then
13656         ld_shlibs_F77=no
13657         cat <<EOF 1>&2
13659 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13660 *** to be unable to reliably create shared libraries on AIX.
13661 *** Therefore, libtool is disabling shared libraries support.  If you
13662 *** really care for shared libraries, you may want to modify your PATH
13663 *** so that a non-GNU linker is found, and then restart.
13666       fi
13667       ;;
13669     amigaos*)
13670       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)'
13671       hardcode_libdir_flag_spec_F77='-L$libdir'
13672       hardcode_minus_L_F77=yes
13674       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
13675       # that the semantics of dynamic libraries on AmigaOS, at least up
13676       # to version 4, is to share data among multiple programs linked
13677       # with the same dynamic library.  Since this doesn't match the
13678       # behavior of shared libraries on other platforms, we can't use
13679       # them.
13680       ld_shlibs_F77=no
13681       ;;
13683     beos*)
13684       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13685         allow_undefined_flag_F77=unsupported
13686         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13687         # support --undefined.  This deserves some investigation.  FIXME
13688         archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13689       else
13690         ld_shlibs_F77=no
13691       fi
13692       ;;
13694     cygwin* | mingw* | pw32*)
13695       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13696       # as there is no search path for DLLs.
13697       hardcode_libdir_flag_spec_F77='-L$libdir'
13698       allow_undefined_flag_F77=unsupported
13699       always_export_symbols_F77=no
13700       enable_shared_with_static_runtimes_F77=yes
13701       export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13703       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13704         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
13705         # If the export-symbols file already is a .def file (1st line
13706         # is EXPORTS), use it as is; otherwise, prepend...
13707         archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13708           cp $export_symbols $output_objdir/$soname.def;
13709         else
13710           echo EXPORTS > $output_objdir/$soname.def;
13711           cat $export_symbols >> $output_objdir/$soname.def;
13712         fi~
13713         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
13714       else
13715         ld_shlibs=no
13716       fi
13717       ;;
13719     netbsd*)
13720       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13721         archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13722         wlarc=
13723       else
13724         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13725         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13726       fi
13727       ;;
13729     solaris* | sysv5*)
13730       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13731         ld_shlibs_F77=no
13732         cat <<EOF 1>&2
13734 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13735 *** create shared libraries on Solaris systems.  Therefore, libtool
13736 *** is disabling shared libraries support.  We urge you to upgrade GNU
13737 *** binutils to release 2.9.1 or newer.  Another option is to modify
13738 *** your PATH or compiler configuration so that the native linker is
13739 *** used, and then restart.
13742       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13743         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13744         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13745       else
13746         ld_shlibs_F77=no
13747       fi
13748       ;;
13750     sunos4*)
13751       archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13752       wlarc=
13753       hardcode_direct_F77=yes
13754       hardcode_shlibpath_var_F77=no
13755       ;;
13757   linux*)
13758     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13759         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13760         archive_cmds_F77="$tmp_archive_cmds"
13761       supports_anon_versioning=no
13762       case `$LD -v 2>/dev/null` in
13763         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13764         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13765         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13766         *\ 2.11.*) ;; # other 2.11 versions
13767         *) supports_anon_versioning=yes ;;
13768       esac
13769       if test $supports_anon_versioning = yes; then
13770         archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13771 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13772 $echo "local: *; };" >> $output_objdir/$libname.ver~
13773         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13774       else
13775         archive_expsym_cmds_F77="$tmp_archive_cmds"
13776       fi
13777     else
13778       ld_shlibs_F77=no
13779     fi
13780     ;;
13782     *)
13783       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13784         archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13785         archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13786       else
13787         ld_shlibs_F77=no
13788       fi
13789       ;;
13790     esac
13792     if test "$ld_shlibs_F77" = yes; then
13793       runpath_var=LD_RUN_PATH
13794       hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13795       export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13796       # ancient GNU ld didn't support --whole-archive et. al.
13797       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13798         whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13799       else
13800         whole_archive_flag_spec_F77=
13801       fi
13802     fi
13803   else
13804     # PORTME fill in a description of your system's linker (not GNU ld)
13805     case $host_os in
13806     aix3*)
13807       allow_undefined_flag_F77=unsupported
13808       always_export_symbols_F77=yes
13809       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'
13810       # Note: this linker hardcodes the directories in LIBPATH if there
13811       # are no directories specified by -L.
13812       hardcode_minus_L_F77=yes
13813       if test "$GCC" = yes && test -z "$link_static_flag"; then
13814         # Neither direct hardcoding nor static linking is supported with a
13815         # broken collect2.
13816         hardcode_direct_F77=unsupported
13817       fi
13818       ;;
13820     aix4* | aix5*)
13821       if test "$host_cpu" = ia64; then
13822         # On IA64, the linker does run time linking by default, so we don't
13823         # have to do anything special.
13824         aix_use_runtimelinking=no
13825         exp_sym_flag='-Bexport'
13826         no_entry_flag=""
13827       else
13828         # If we're using GNU nm, then we don't want the "-C" option.
13829         # -C means demangle to AIX nm, but means don't demangle with GNU nm
13830         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13831           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'
13832         else
13833           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'
13834         fi
13835         aix_use_runtimelinking=no
13837         # Test if we are trying to use run time linking or normal
13838         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13839         # need to do runtime linking.
13840         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13841           for ld_flag in $LDFLAGS; do
13842           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13843             aix_use_runtimelinking=yes
13844             break
13845           fi
13846           done
13847         esac
13849         exp_sym_flag='-bexport'
13850         no_entry_flag='-bnoentry'
13851       fi
13853       # When large executables or shared objects are built, AIX ld can
13854       # have problems creating the table of contents.  If linking a library
13855       # or program results in "error TOC overflow" add -mminimal-toc to
13856       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13857       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13859       archive_cmds_F77=''
13860       hardcode_direct_F77=yes
13861       hardcode_libdir_separator_F77=':'
13862       link_all_deplibs_F77=yes
13864       if test "$GCC" = yes; then
13865         case $host_os in aix4.012|aix4.012.*)
13866         # We only want to do this on AIX 4.2 and lower, the check
13867         # below for broken collect2 doesn't work under 4.3+
13868           collect2name=`${CC} -print-prog-name=collect2`
13869           if test -f "$collect2name" && \
13870            strings "$collect2name" | grep resolve_lib_name >/dev/null
13871           then
13872           # We have reworked collect2
13873           hardcode_direct_F77=yes
13874           else
13875           # We have old collect2
13876           hardcode_direct_F77=unsupported
13877           # It fails to find uninstalled libraries when the uninstalled
13878           # path is not listed in the libpath.  Setting hardcode_minus_L
13879           # to unsupported forces relinking
13880           hardcode_minus_L_F77=yes
13881           hardcode_libdir_flag_spec_F77='-L$libdir'
13882           hardcode_libdir_separator_F77=
13883           fi
13884         esac
13885         shared_flag='-shared'
13886       else
13887         # not using gcc
13888         if test "$host_cpu" = ia64; then
13889         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13890         # chokes on -Wl,-G. The following line is correct:
13891           shared_flag='-G'
13892         else
13893         if test "$aix_use_runtimelinking" = yes; then
13894             shared_flag='${wl}-G'
13895           else
13896             shared_flag='${wl}-bM:SRE'
13897         fi
13898         fi
13899       fi
13901       # It seems that -bexpall does not export symbols beginning with
13902       # underscore (_), so it is better to generate a list of symbols to export.
13903       always_export_symbols_F77=yes
13904       if test "$aix_use_runtimelinking" = yes; then
13905         # Warning - without using the other runtime loading flags (-brtl),
13906         # -berok will link without error, but may produce a broken library.
13907         allow_undefined_flag_F77='-berok'
13908        # Determine the default libpath from the value encoded in an empty executable.
13909        cat >conftest.$ac_ext <<_ACEOF
13910       program main
13912       end
13913 _ACEOF
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13916   (eval $ac_link) 2>conftest.er1
13917   ac_status=$?
13918   grep -v '^ *+' conftest.er1 >conftest.err
13919   rm -f conftest.er1
13920   cat conftest.err >&5
13921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922   (exit $ac_status); } &&
13923          { ac_try='test -z "$ac_f77_werror_flag"
13924                          || test ! -s conftest.err'
13925   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13926   (eval $ac_try) 2>&5
13927   ac_status=$?
13928   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13929   (exit $ac_status); }; } &&
13930          { ac_try='test -s conftest$ac_exeext'
13931   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13932   (eval $ac_try) 2>&5
13933   ac_status=$?
13934   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935   (exit $ac_status); }; }; then
13936   
13937 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13939 # Check for a 64-bit object if we didn't find anything.
13940 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; }
13941 }'`; fi
13942 else
13943   echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13947 rm -f conftest.err conftest.$ac_objext \
13948       conftest$ac_exeext conftest.$ac_ext
13949 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13951        hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13952         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"
13953        else
13954         if test "$host_cpu" = ia64; then
13955           hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13956           allow_undefined_flag_F77="-z nodefs"
13957           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"
13958         else
13959          # Determine the default libpath from the value encoded in an empty executable.
13960          cat >conftest.$ac_ext <<_ACEOF
13961       program main
13963       end
13964 _ACEOF
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13967   (eval $ac_link) 2>conftest.er1
13968   ac_status=$?
13969   grep -v '^ *+' conftest.er1 >conftest.err
13970   rm -f conftest.er1
13971   cat conftest.err >&5
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); } &&
13974          { ac_try='test -z "$ac_f77_werror_flag"
13975                          || test ! -s conftest.err'
13976   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13977   (eval $ac_try) 2>&5
13978   ac_status=$?
13979   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13980   (exit $ac_status); }; } &&
13981          { ac_try='test -s conftest$ac_exeext'
13982   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13983   (eval $ac_try) 2>&5
13984   ac_status=$?
13985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13986   (exit $ac_status); }; }; then
13987   
13988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
13990 # Check for a 64-bit object if we didn't find anything.
13991 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; }
13992 }'`; fi
13993 else
13994   echo "$as_me: failed program was:" >&5
13995 sed 's/^/| /' conftest.$ac_ext >&5
13998 rm -f conftest.err conftest.$ac_objext \
13999       conftest$ac_exeext conftest.$ac_ext
14000 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14002          hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14003           # Warning - without using the other run time loading flags,
14004           # -berok will link without error, but may produce a broken library.
14005           no_undefined_flag_F77=' ${wl}-bernotok'
14006           allow_undefined_flag_F77=' ${wl}-berok'
14007           # -bexpall does not export symbols beginning with underscore (_)
14008           always_export_symbols_F77=yes
14009           # Exported symbols can be pulled into shared objects from archives
14010           whole_archive_flag_spec_F77=' '
14011           archive_cmds_need_lc_F77=yes
14012           # This is similar to how AIX traditionally builds it's shared libraries.
14013           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'
14014         fi
14015       fi
14016       ;;
14018     amigaos*)
14019       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)'
14020       hardcode_libdir_flag_spec_F77='-L$libdir'
14021       hardcode_minus_L_F77=yes
14022       # see comment about different semantics on the GNU ld section
14023       ld_shlibs_F77=no
14024       ;;
14026     bsdi4*)
14027       export_dynamic_flag_spec_F77=-rdynamic
14028       ;;
14030     cygwin* | mingw* | pw32*)
14031       # When not using gcc, we currently assume that we are using
14032       # Microsoft Visual C++.
14033       # hardcode_libdir_flag_spec is actually meaningless, as there is
14034       # no search path for DLLs.
14035       hardcode_libdir_flag_spec_F77=' '
14036       allow_undefined_flag_F77=unsupported
14037       # Tell ltmain to make .lib files, not .a files.
14038       libext=lib
14039       # Tell ltmain to make .dll files, not .so files.
14040       shrext_cmds=".dll"
14041       # FIXME: Setting linknames here is a bad hack.
14042       archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14043       # The linker will automatically build a .lib file if we build a DLL.
14044       old_archive_From_new_cmds_F77='true'
14045       # FIXME: Should let the user specify the lib program.
14046       old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14047       fix_srcfile_path='`cygpath -w "$srcfile"`'
14048       enable_shared_with_static_runtimes_F77=yes
14049       ;;
14051     darwin* | rhapsody*)
14052     if test "$GXX" = yes ; then
14053       archive_cmds_need_lc_F77=no
14054       case "$host_os" in
14055       rhapsody* | darwin1.[012])
14056         allow_undefined_flag_F77='-undefined suppress'
14057         ;;
14058       *) # Darwin 1.3 on
14059       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14060         allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14061       else
14062         case ${MACOSX_DEPLOYMENT_TARGET} in
14063           10.[012])
14064             allow_undefined_flag_F77='-flat_namespace -undefined suppress'
14065             ;;
14066           10.*)
14067             allow_undefined_flag_F77='-undefined dynamic_lookup'
14068             ;;
14069         esac
14070       fi
14071         ;;
14072       esac
14073         lt_int_apple_cc_single_mod=no
14074         output_verbose_link_cmd='echo'
14075         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
14076           lt_int_apple_cc_single_mod=yes
14077         fi
14078         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14079           archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14080         else
14081         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'
14082       fi
14083       module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14084       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14085         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
14086           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}'
14087         else
14088           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}'
14089         fi
14090           module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14091       hardcode_direct_F77=no
14092       hardcode_automatic_F77=yes
14093       hardcode_shlibpath_var_F77=unsupported
14094       whole_archive_flag_spec_F77='-all_load $convenience'
14095       link_all_deplibs_F77=yes
14096     else
14097       ld_shlibs_F77=no
14098     fi
14099       ;;
14101     dgux*)
14102       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14103       hardcode_libdir_flag_spec_F77='-L$libdir'
14104       hardcode_shlibpath_var_F77=no
14105       ;;
14107     freebsd1*)
14108       ld_shlibs_F77=no
14109       ;;
14111     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14112     # support.  Future versions do this automatically, but an explicit c++rt0.o
14113     # does not break anything, and helps significantly (at the cost of a little
14114     # extra space).
14115     freebsd2.2*)
14116       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14117       hardcode_libdir_flag_spec_F77='-R$libdir'
14118       hardcode_direct_F77=yes
14119       hardcode_shlibpath_var_F77=no
14120       ;;
14122     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14123     freebsd2*)
14124       archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14125       hardcode_direct_F77=yes
14126       hardcode_minus_L_F77=yes
14127       hardcode_shlibpath_var_F77=no
14128       ;;
14130     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14131     freebsd* | kfreebsd*-gnu)
14132       archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14133       hardcode_libdir_flag_spec_F77='-R$libdir'
14134       hardcode_direct_F77=yes
14135       hardcode_shlibpath_var_F77=no
14136       ;;
14138     hpux9*)
14139       if test "$GCC" = yes; then
14140         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'
14141       else
14142         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'
14143       fi
14144       hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14145       hardcode_libdir_separator_F77=:
14146       hardcode_direct_F77=yes
14148       # hardcode_minus_L: Not really in the search PATH,
14149       # but as the default location of the library.
14150       hardcode_minus_L_F77=yes
14151       export_dynamic_flag_spec_F77='${wl}-E'
14152       ;;
14154     hpux10* | hpux11*)
14155       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14156         case "$host_cpu" in
14157         hppa*64*|ia64*)
14158           archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14159           ;;
14160         *)
14161           archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14162           ;;
14163         esac
14164       else
14165         case "$host_cpu" in
14166         hppa*64*|ia64*)
14167           archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
14168           ;;
14169         *)
14170           archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14171           ;;
14172         esac
14173       fi
14174       if test "$with_gnu_ld" = no; then
14175         case "$host_cpu" in
14176         hppa*64*)
14177           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14178           hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14179           hardcode_libdir_separator_F77=:
14180           hardcode_direct_F77=no
14181           hardcode_shlibpath_var_F77=no
14182           ;;
14183         ia64*)
14184           hardcode_libdir_flag_spec_F77='-L$libdir'
14185           hardcode_direct_F77=no
14186           hardcode_shlibpath_var_F77=no
14188           # hardcode_minus_L: Not really in the search PATH,
14189           # but as the default location of the library.
14190           hardcode_minus_L_F77=yes
14191           ;;
14192         *)
14193           hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14194           hardcode_libdir_separator_F77=:
14195           hardcode_direct_F77=yes
14196           export_dynamic_flag_spec_F77='${wl}-E'
14198           # hardcode_minus_L: Not really in the search PATH,
14199           # but as the default location of the library.
14200           hardcode_minus_L_F77=yes
14201           ;;
14202         esac
14203       fi
14204       ;;
14206     irix5* | irix6* | nonstopux*)
14207       if test "$GCC" = yes; then
14208         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'
14209       else
14210         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'
14211         hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14212       fi
14213       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14214       hardcode_libdir_separator_F77=:
14215       link_all_deplibs_F77=yes
14216       ;;
14218     netbsd*)
14219       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14220         archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
14221       else
14222         archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
14223       fi
14224       hardcode_libdir_flag_spec_F77='-R$libdir'
14225       hardcode_direct_F77=yes
14226       hardcode_shlibpath_var_F77=no
14227       ;;
14229     newsos6)
14230       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14231       hardcode_direct_F77=yes
14232       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14233       hardcode_libdir_separator_F77=:
14234       hardcode_shlibpath_var_F77=no
14235       ;;
14237     openbsd*)
14238       hardcode_direct_F77=yes
14239       hardcode_shlibpath_var_F77=no
14240       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14241         archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14242         hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14243         export_dynamic_flag_spec_F77='${wl}-E'
14244       else
14245        case $host_os in
14246          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14247            archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14248            hardcode_libdir_flag_spec_F77='-R$libdir'
14249            ;;
14250          *)
14251            archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14252            hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14253            ;;
14254        esac
14255       fi
14256       ;;
14258     os2*)
14259       hardcode_libdir_flag_spec_F77='-L$libdir'
14260       hardcode_minus_L_F77=yes
14261       allow_undefined_flag_F77=unsupported
14262       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'
14263       old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14264       ;;
14266     osf3*)
14267       if test "$GCC" = yes; then
14268         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14269         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'
14270       else
14271         allow_undefined_flag_F77=' -expect_unresolved \*'
14272         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'
14273       fi
14274       hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14275       hardcode_libdir_separator_F77=:
14276       ;;
14278     osf4* | osf5*)      # as osf3* with the addition of -msym flag
14279       if test "$GCC" = yes; then
14280         allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14281         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'
14282         hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14283       else
14284         allow_undefined_flag_F77=' -expect_unresolved \*'
14285         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'
14286         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~
14287         $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'
14289         # Both c and cxx compiler support -rpath directly
14290         hardcode_libdir_flag_spec_F77='-rpath $libdir'
14291       fi
14292       hardcode_libdir_separator_F77=:
14293       ;;
14295     sco3.2v5*)
14296       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14297       hardcode_shlibpath_var_F77=no
14298       export_dynamic_flag_spec_F77='${wl}-Bexport'
14299       runpath_var=LD_RUN_PATH
14300       hardcode_runpath_var=yes
14301       ;;
14303     solaris*)
14304       no_undefined_flag_F77=' -z text'
14305       if test "$GCC" = yes; then
14306         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14307         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14308           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14309       else
14310         archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14311         archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14312         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14313       fi
14314       hardcode_libdir_flag_spec_F77='-R$libdir'
14315       hardcode_shlibpath_var_F77=no
14316       case $host_os in
14317       solaris2.[0-5] | solaris2.[0-5].*) ;;
14318       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
14319         whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14320       esac
14321       link_all_deplibs_F77=yes
14322       ;;
14324     sunos4*)
14325       if test "x$host_vendor" = xsequent; then
14326         # Use $CC to link under sequent, because it throws in some extra .o
14327         # files that make .init and .fini sections work.
14328         archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14329       else
14330         archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14331       fi
14332       hardcode_libdir_flag_spec_F77='-L$libdir'
14333       hardcode_direct_F77=yes
14334       hardcode_minus_L_F77=yes
14335       hardcode_shlibpath_var_F77=no
14336       ;;
14338     sysv4)
14339       case $host_vendor in
14340         sni)
14341           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14342           hardcode_direct_F77=yes # is this really true???
14343         ;;
14344         siemens)
14345           ## LD is ld it makes a PLAMLIB
14346           ## CC just makes a GrossModule.
14347           archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14348           reload_cmds_F77='$CC -r -o $output$reload_objs'
14349           hardcode_direct_F77=no
14350         ;;
14351         motorola)
14352           archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14353           hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14354         ;;
14355       esac
14356       runpath_var='LD_RUN_PATH'
14357       hardcode_shlibpath_var_F77=no
14358       ;;
14360     sysv4.3*)
14361       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14362       hardcode_shlibpath_var_F77=no
14363       export_dynamic_flag_spec_F77='-Bexport'
14364       ;;
14366     sysv4*MP*)
14367       if test -d /usr/nec; then
14368         archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14369         hardcode_shlibpath_var_F77=no
14370         runpath_var=LD_RUN_PATH
14371         hardcode_runpath_var=yes
14372         ld_shlibs_F77=yes
14373       fi
14374       ;;
14376     sysv4.2uw2*)
14377       archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14378       hardcode_direct_F77=yes
14379       hardcode_minus_L_F77=no
14380       hardcode_shlibpath_var_F77=no
14381       hardcode_runpath_var=yes
14382       runpath_var=LD_RUN_PATH
14383       ;;
14385    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
14386       no_undefined_flag_F77='${wl}-z ${wl}text'
14387       if test "$GCC" = yes; then
14388         archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14389       else
14390         archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14391       fi
14392       runpath_var='LD_RUN_PATH'
14393       hardcode_shlibpath_var_F77=no
14394       ;;
14396     sysv5*)
14397       no_undefined_flag_F77=' -z text'
14398       # $CC -shared without GNU ld will not create a library from C++
14399       # object files and a static libstdc++, better avoid it by now
14400       archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14401       archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14402                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14403       hardcode_libdir_flag_spec_F77=
14404       hardcode_shlibpath_var_F77=no
14405       runpath_var='LD_RUN_PATH'
14406       ;;
14408     uts4*)
14409       archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14410       hardcode_libdir_flag_spec_F77='-L$libdir'
14411       hardcode_shlibpath_var_F77=no
14412       ;;
14414     *)
14415       ld_shlibs_F77=no
14416       ;;
14417     esac
14418   fi
14420 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
14421 echo "${ECHO_T}$ld_shlibs_F77" >&6
14422 test "$ld_shlibs_F77" = no && can_build_shared=no
14424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14425 if test "$GCC" = yes; then
14426   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14430 # Do we need to explicitly link libc?
14432 case "x$archive_cmds_need_lc_F77" in
14433 x|xyes)
14434   # Assume -lc should be added
14435   archive_cmds_need_lc_F77=yes
14437   if test "$enable_shared" = yes && test "$GCC" = yes; then
14438     case $archive_cmds_F77 in
14439     *'~'*)
14440       # FIXME: we may have to deal with multi-command sequences.
14441       ;;
14442     '$CC '*)
14443       # Test whether the compiler implicitly links with -lc since on some
14444       # systems, -lgcc has to come before -lc. If gcc already passes -lc
14445       # to ld, don't add -lc before -lgcc.
14446       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
14447 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
14448       $rm conftest*
14449       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14451       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14452   (eval $ac_compile) 2>&5
14453   ac_status=$?
14454   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455   (exit $ac_status); } 2>conftest.err; then
14456         soname=conftest
14457         lib=conftest
14458         libobjs=conftest.$ac_objext
14459         deplibs=
14460         wl=$lt_prog_compiler_wl_F77
14461         compiler_flags=-v
14462         linker_flags=-v
14463         verstring=
14464         output_objdir=.
14465         libname=conftest
14466         lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14467         allow_undefined_flag_F77=
14468         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
14469   (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14470   ac_status=$?
14471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472   (exit $ac_status); }
14473         then
14474           archive_cmds_need_lc_F77=no
14475         else
14476           archive_cmds_need_lc_F77=yes
14477         fi
14478         allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14479       else
14480         cat conftest.err 1>&5
14481       fi
14482       $rm conftest*
14483       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
14484 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
14485       ;;
14486     esac
14487   fi
14488   ;;
14489 esac
14491 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
14492 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
14493 library_names_spec=
14494 libname_spec='lib$name'
14495 soname_spec=
14496 shrext_cmds=".so"
14497 postinstall_cmds=
14498 postuninstall_cmds=
14499 finish_cmds=
14500 finish_eval=
14501 shlibpath_var=
14502 shlibpath_overrides_runpath=unknown
14503 version_type=none
14504 dynamic_linker="$host_os ld.so"
14505 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14506 if test "$GCC" = yes; then
14507   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14508   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14509     # if the path contains ";" then we assume it to be the separator
14510     # otherwise default to the standard path separator (i.e. ":") - it is
14511     # assumed that no part of a normal pathname contains ";" but that should
14512     # okay in the real world where ";" in dirpaths is itself problematic.
14513     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14514   else
14515     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14516   fi
14517 else
14518   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14520 need_lib_prefix=unknown
14521 hardcode_into_libs=no
14523 # when you set need_version to no, make sure it does not cause -set_version
14524 # flags to be left without arguments
14525 need_version=unknown
14527 case $host_os in
14528 aix3*)
14529   version_type=linux
14530   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14531   shlibpath_var=LIBPATH
14533   # AIX 3 has no versioning support, so we append a major version to the name.
14534   soname_spec='${libname}${release}${shared_ext}$major'
14535   ;;
14537 aix4* | aix5*)
14538   version_type=linux
14539   need_lib_prefix=no
14540   need_version=no
14541   hardcode_into_libs=yes
14542   if test "$host_cpu" = ia64; then
14543     # AIX 5 supports IA64
14544     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14545     shlibpath_var=LD_LIBRARY_PATH
14546   else
14547     # With GCC up to 2.95.x, collect2 would create an import file
14548     # for dependence libraries.  The import file would start with
14549     # the line `#! .'.  This would cause the generated library to
14550     # depend on `.', always an invalid library.  This was fixed in
14551     # development snapshots of GCC prior to 3.0.
14552     case $host_os in
14553       aix4 | aix4.[01] | aix4.[01].*)
14554       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14555            echo ' yes '
14556            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14557         :
14558       else
14559         can_build_shared=no
14560       fi
14561       ;;
14562     esac
14563     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14564     # soname into executable. Probably we can add versioning support to
14565     # collect2, so additional links can be useful in future.
14566     if test "$aix_use_runtimelinking" = yes; then
14567       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14568       # instead of lib<name>.a to let people know that these are not
14569       # typical AIX shared libraries.
14570       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14571     else
14572       # We preserve .a as extension for shared libraries through AIX4.2
14573       # and later when we are not doing run time linking.
14574       library_names_spec='${libname}${release}.a $libname.a'
14575       soname_spec='${libname}${release}${shared_ext}$major'
14576     fi
14577     shlibpath_var=LIBPATH
14578   fi
14579   ;;
14581 amigaos*)
14582   library_names_spec='$libname.ixlibrary $libname.a'
14583   # Create ${libname}_ixlibrary.a entries in /sys/libs.
14584   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'
14585   ;;
14587 beos*)
14588   library_names_spec='${libname}${shared_ext}'
14589   dynamic_linker="$host_os ld.so"
14590   shlibpath_var=LIBRARY_PATH
14591   ;;
14593 bsdi4*)
14594   version_type=linux
14595   need_version=no
14596   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14597   soname_spec='${libname}${release}${shared_ext}$major'
14598   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14599   shlibpath_var=LD_LIBRARY_PATH
14600   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14601   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14602   # the default ld.so.conf also contains /usr/contrib/lib and
14603   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14604   # libtool to hard-code these into programs
14605   ;;
14607 cygwin* | mingw* | pw32*)
14608   version_type=windows
14609   shrext_cmds=".dll"
14610   need_version=no
14611   need_lib_prefix=no
14613   case $GCC,$host_os in
14614   yes,cygwin* | yes,mingw* | yes,pw32*)
14615     library_names_spec='$libname.dll.a'
14616     # DLL is installed to $(libdir)/../bin by postinstall_cmds
14617     postinstall_cmds='base_file=`basename \${file}`~
14618       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14619       dldir=$destdir/`dirname \$dlpath`~
14620       test -d \$dldir || mkdir -p \$dldir~
14621       $install_prog $dir/$dlname \$dldir/$dlname'
14622     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14623       dlpath=$dir/\$dldll~
14624        $rm \$dlpath'
14625     shlibpath_overrides_runpath=yes
14627     case $host_os in
14628     cygwin*)
14629       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14630       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14631       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14632       ;;
14633     mingw*)
14634       # MinGW DLLs use traditional 'lib' prefix
14635       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14636       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14637       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14638         # It is most probably a Windows format PATH printed by
14639         # mingw gcc, but we are running on Cygwin. Gcc prints its search
14640         # path with ; separators, and with drive letters. We can handle the
14641         # drive letters (cygwin fileutils understands them), so leave them,
14642         # especially as we might pass files found there to a mingw objdump,
14643         # which wouldn't understand a cygwinified path. Ahh.
14644         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14645       else
14646         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
14647       fi
14648       ;;
14649     pw32*)
14650       # pw32 DLLs use 'pw' prefix rather than 'lib'
14651       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
14652       ;;
14653     esac
14654     ;;
14656   *)
14657     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14658     ;;
14659   esac
14660   dynamic_linker='Win32 ld.exe'
14661   # FIXME: first we should search . and the directory the executable is in
14662   shlibpath_var=PATH
14663   ;;
14665 darwin* | rhapsody*)
14666   dynamic_linker="$host_os dyld"
14667   version_type=darwin
14668   need_lib_prefix=no
14669   need_version=no
14670   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14671   soname_spec='${libname}${release}${major}$shared_ext'
14672   shlibpath_overrides_runpath=yes
14673   shlibpath_var=DYLD_LIBRARY_PATH
14674   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
14675   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14676   if test "$GCC" = yes; then
14677     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"`
14678   else
14679     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14680   fi
14681   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14682   ;;
14684 dgux*)
14685   version_type=linux
14686   need_lib_prefix=no
14687   need_version=no
14688   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14689   soname_spec='${libname}${release}${shared_ext}$major'
14690   shlibpath_var=LD_LIBRARY_PATH
14691   ;;
14693 freebsd1*)
14694   dynamic_linker=no
14695   ;;
14697 kfreebsd*-gnu)
14698   version_type=linux
14699   need_lib_prefix=no
14700   need_version=no
14701   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14702   soname_spec='${libname}${release}${shared_ext}$major'
14703   shlibpath_var=LD_LIBRARY_PATH
14704   shlibpath_overrides_runpath=no
14705   hardcode_into_libs=yes
14706   dynamic_linker='GNU ld.so'
14707   ;;
14709 freebsd*)
14710   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
14711   version_type=freebsd-$objformat
14712   case $version_type in
14713     freebsd-elf*)
14714       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14715       need_version=no
14716       need_lib_prefix=no
14717       ;;
14718     freebsd-*)
14719       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14720       need_version=yes
14721       ;;
14722   esac
14723   shlibpath_var=LD_LIBRARY_PATH
14724   case $host_os in
14725   freebsd2*)
14726     shlibpath_overrides_runpath=yes
14727     ;;
14728   freebsd3.01* | freebsdelf3.01*)
14729     shlibpath_overrides_runpath=yes
14730     hardcode_into_libs=yes
14731     ;;
14732   *) # from 3.2 on
14733     shlibpath_overrides_runpath=no
14734     hardcode_into_libs=yes
14735     ;;
14736   esac
14737   ;;
14739 gnu*)
14740   version_type=linux
14741   need_lib_prefix=no
14742   need_version=no
14743   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14744   soname_spec='${libname}${release}${shared_ext}$major'
14745   shlibpath_var=LD_LIBRARY_PATH
14746   hardcode_into_libs=yes
14747   ;;
14749 hpux9* | hpux10* | hpux11*)
14750   # Give a soname corresponding to the major version so that dld.sl refuses to
14751   # link against other versions.
14752   version_type=sunos
14753   need_lib_prefix=no
14754   need_version=no
14755   case "$host_cpu" in
14756   ia64*)
14757     shrext_cmds='.so'
14758     hardcode_into_libs=yes
14759     dynamic_linker="$host_os dld.so"
14760     shlibpath_var=LD_LIBRARY_PATH
14761     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14762     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763     soname_spec='${libname}${release}${shared_ext}$major'
14764     if test "X$HPUX_IA64_MODE" = X32; then
14765       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14766     else
14767       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14768     fi
14769     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14770     ;;
14771    hppa*64*)
14772      shrext_cmds='.sl'
14773      hardcode_into_libs=yes
14774      dynamic_linker="$host_os dld.sl"
14775      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14776      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14777      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14778      soname_spec='${libname}${release}${shared_ext}$major'
14779      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14780      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14781      ;;
14782    *)
14783     shrext_cmds='.sl'
14784     dynamic_linker="$host_os dld.sl"
14785     shlibpath_var=SHLIB_PATH
14786     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14787     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788     soname_spec='${libname}${release}${shared_ext}$major'
14789     ;;
14790   esac
14791   # HP-UX runs *really* slowly unless shared libraries are mode 555.
14792   postinstall_cmds='chmod 555 $lib'
14793   ;;
14795 irix5* | irix6* | nonstopux*)
14796   case $host_os in
14797     nonstopux*) version_type=nonstopux ;;
14798     *)
14799         if test "$lt_cv_prog_gnu_ld" = yes; then
14800                 version_type=linux
14801         else
14802                 version_type=irix
14803         fi ;;
14804   esac
14805   need_lib_prefix=no
14806   need_version=no
14807   soname_spec='${libname}${release}${shared_ext}$major'
14808   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14809   case $host_os in
14810   irix5* | nonstopux*)
14811     libsuff= shlibsuff=
14812     ;;
14813   *)
14814     case $LD in # libtool.m4 will add one of these switches to LD
14815     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14816       libsuff= shlibsuff= libmagic=32-bit;;
14817     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14818       libsuff=32 shlibsuff=N32 libmagic=N32;;
14819     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14820       libsuff=64 shlibsuff=64 libmagic=64-bit;;
14821     *) libsuff= shlibsuff= libmagic=never-match;;
14822     esac
14823     ;;
14824   esac
14825   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14826   shlibpath_overrides_runpath=no
14827   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14828   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14829   hardcode_into_libs=yes
14830   ;;
14832 # No shared lib support for Linux oldld, aout, or coff.
14833 linux*oldld* | linux*aout* | linux*coff*)
14834   dynamic_linker=no
14835   ;;
14837 # This must be Linux ELF.
14838 linux*)
14839   version_type=linux
14840   need_lib_prefix=no
14841   need_version=no
14842   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14843   soname_spec='${libname}${release}${shared_ext}$major'
14844   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14845   shlibpath_var=LD_LIBRARY_PATH
14846   shlibpath_overrides_runpath=no
14847   # This implies no fast_install, which is unacceptable.
14848   # Some rework will be needed to allow for fast_install
14849   # before this can be enabled.
14850   hardcode_into_libs=yes
14852   # find out which ABI we are using
14853   libsuff=
14854   case "$host_cpu" in
14855   x86_64*|s390x*|powerpc64*)
14856     echo '#line __oline__ "configure"' > conftest.$ac_ext
14857     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14858   (eval $ac_compile) 2>&5
14859   ac_status=$?
14860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861   (exit $ac_status); }; then
14862       case `/usr/bin/file conftest.$ac_objext` in
14863       *64-bit*)
14864         libsuff=64
14865         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14866         ;;
14867       esac
14868     fi
14869     rm -rf conftest*
14870     ;;
14871   esac
14873   # Append ld.so.conf contents to the search path
14874   if test -f /etc/ld.so.conf; then
14875     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
14876     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14877   fi
14879   # We used to test for /lib/ld.so.1 and disable shared libraries on
14880   # powerpc, because MkLinux only supported shared libraries with the
14881   # GNU dynamic linker.  Since this was broken with cross compilers,
14882   # most powerpc-linux boxes support dynamic linking these days and
14883   # people can always --disable-shared, the test was removed, and we
14884   # assume the GNU/Linux dynamic linker is in use.
14885   dynamic_linker='GNU/Linux ld.so'
14886   ;;
14888 knetbsd*-gnu)
14889   version_type=linux
14890   need_lib_prefix=no
14891   need_version=no
14892   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14893   soname_spec='${libname}${release}${shared_ext}$major'
14894   shlibpath_var=LD_LIBRARY_PATH
14895   shlibpath_overrides_runpath=no
14896   hardcode_into_libs=yes
14897   dynamic_linker='GNU ld.so'
14898   ;;
14900 netbsd*)
14901   version_type=sunos
14902   need_lib_prefix=no
14903   need_version=no
14904   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14905     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14906     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14907     dynamic_linker='NetBSD (a.out) ld.so'
14908   else
14909     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14910     soname_spec='${libname}${release}${shared_ext}$major'
14911     dynamic_linker='NetBSD ld.elf_so'
14912   fi
14913   shlibpath_var=LD_LIBRARY_PATH
14914   shlibpath_overrides_runpath=yes
14915   hardcode_into_libs=yes
14916   ;;
14918 newsos6)
14919   version_type=linux
14920   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14921   shlibpath_var=LD_LIBRARY_PATH
14922   shlibpath_overrides_runpath=yes
14923   ;;
14925 nto-qnx*)
14926   version_type=linux
14927   need_lib_prefix=no
14928   need_version=no
14929   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14930   soname_spec='${libname}${release}${shared_ext}$major'
14931   shlibpath_var=LD_LIBRARY_PATH
14932   shlibpath_overrides_runpath=yes
14933   ;;
14935 openbsd*)
14936   version_type=sunos
14937   need_lib_prefix=no
14938   need_version=yes
14939   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14940   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14941   shlibpath_var=LD_LIBRARY_PATH
14942   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14943     case $host_os in
14944       openbsd2.[89] | openbsd2.[89].*)
14945         shlibpath_overrides_runpath=no
14946         ;;
14947       *)
14948         shlibpath_overrides_runpath=yes
14949         ;;
14950       esac
14951   else
14952     shlibpath_overrides_runpath=yes
14953   fi
14954   ;;
14956 os2*)
14957   libname_spec='$name'
14958   shrext_cmds=".dll"
14959   need_lib_prefix=no
14960   library_names_spec='$libname${shared_ext} $libname.a'
14961   dynamic_linker='OS/2 ld.exe'
14962   shlibpath_var=LIBPATH
14963   ;;
14965 osf3* | osf4* | osf5*)
14966   version_type=osf
14967   need_lib_prefix=no
14968   need_version=no
14969   soname_spec='${libname}${release}${shared_ext}$major'
14970   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14971   shlibpath_var=LD_LIBRARY_PATH
14972   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14973   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14974   ;;
14976 sco3.2v5*)
14977   version_type=osf
14978   soname_spec='${libname}${release}${shared_ext}$major'
14979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14980   shlibpath_var=LD_LIBRARY_PATH
14981   ;;
14983 solaris*)
14984   version_type=linux
14985   need_lib_prefix=no
14986   need_version=no
14987   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14988   soname_spec='${libname}${release}${shared_ext}$major'
14989   shlibpath_var=LD_LIBRARY_PATH
14990   shlibpath_overrides_runpath=yes
14991   hardcode_into_libs=yes
14992   # ldd complains unless libraries are executable
14993   postinstall_cmds='chmod +x $lib'
14994   ;;
14996 sunos4*)
14997   version_type=sunos
14998   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14999   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15000   shlibpath_var=LD_LIBRARY_PATH
15001   shlibpath_overrides_runpath=yes
15002   if test "$with_gnu_ld" = yes; then
15003     need_lib_prefix=no
15004   fi
15005   need_version=yes
15006   ;;
15008 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15009   version_type=linux
15010   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15011   soname_spec='${libname}${release}${shared_ext}$major'
15012   shlibpath_var=LD_LIBRARY_PATH
15013   case $host_vendor in
15014     sni)
15015       shlibpath_overrides_runpath=no
15016       need_lib_prefix=no
15017       export_dynamic_flag_spec='${wl}-Blargedynsym'
15018       runpath_var=LD_RUN_PATH
15019       ;;
15020     siemens)
15021       need_lib_prefix=no
15022       ;;
15023     motorola)
15024       need_lib_prefix=no
15025       need_version=no
15026       shlibpath_overrides_runpath=no
15027       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15028       ;;
15029   esac
15030   ;;
15032 sysv4*MP*)
15033   if test -d /usr/nec ;then
15034     version_type=linux
15035     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15036     soname_spec='$libname${shared_ext}.$major'
15037     shlibpath_var=LD_LIBRARY_PATH
15038   fi
15039   ;;
15041 uts4*)
15042   version_type=linux
15043   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15044   soname_spec='${libname}${release}${shared_ext}$major'
15045   shlibpath_var=LD_LIBRARY_PATH
15046   ;;
15049   dynamic_linker=no
15050   ;;
15051 esac
15052 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15053 echo "${ECHO_T}$dynamic_linker" >&6
15054 test "$dynamic_linker" = no && can_build_shared=no
15056 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15057 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15058 hardcode_action_F77=
15059 if test -n "$hardcode_libdir_flag_spec_F77" || \
15060    test -n "$runpath_var F77" || \
15061    test "X$hardcode_automatic_F77"="Xyes" ; then
15063   # We can hardcode non-existant directories.
15064   if test "$hardcode_direct_F77" != no &&
15065      # If the only mechanism to avoid hardcoding is shlibpath_var, we
15066      # have to relink, otherwise we might link with an installed library
15067      # when we should be linking with a yet-to-be-installed one
15068      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15069      test "$hardcode_minus_L_F77" != no; then
15070     # Linking always hardcodes the temporary library directory.
15071     hardcode_action_F77=relink
15072   else
15073     # We can link without hardcoding, and we can hardcode nonexisting dirs.
15074     hardcode_action_F77=immediate
15075   fi
15076 else
15077   # We cannot hardcode anything, or else we can only hardcode existing
15078   # directories.
15079   hardcode_action_F77=unsupported
15081 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15082 echo "${ECHO_T}$hardcode_action_F77" >&6
15084 if test "$hardcode_action_F77" = relink; then
15085   # Fast installation is not supported
15086   enable_fast_install=no
15087 elif test "$shlibpath_overrides_runpath" = yes ||
15088      test "$enable_shared" = no; then
15089   # Fast installation is not necessary
15090   enable_fast_install=needless
15093 striplib=
15094 old_striplib=
15095 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
15096 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
15097 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
15098   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15099   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15100   echo "$as_me:$LINENO: result: yes" >&5
15101 echo "${ECHO_T}yes" >&6
15102 else
15103 # FIXME - insert some real tests, host_os isn't really good enough
15104   case $host_os in
15105    darwin*)
15106        if test -n "$STRIP" ; then
15107          striplib="$STRIP -x"
15108          echo "$as_me:$LINENO: result: yes" >&5
15109 echo "${ECHO_T}yes" >&6
15110        else
15111   echo "$as_me:$LINENO: result: no" >&5
15112 echo "${ECHO_T}no" >&6
15114        ;;
15115    *)
15116   echo "$as_me:$LINENO: result: no" >&5
15117 echo "${ECHO_T}no" >&6
15118     ;;
15119   esac
15124 # The else clause should only fire when bootstrapping the
15125 # libtool distribution, otherwise you forgot to ship ltmain.sh
15126 # with your package, and you will get complaints that there are
15127 # no rules to generate ltmain.sh.
15128 if test -f "$ltmain"; then
15129   # See if we are running on zsh, and set the options which allow our commands through
15130   # without removal of \ escapes.
15131   if test -n "${ZSH_VERSION+set}" ; then
15132     setopt NO_GLOB_SUBST
15133   fi
15134   # Now quote all the things that may contain metacharacters while being
15135   # careful not to overquote the AC_SUBSTed values.  We take copies of the
15136   # variables and quote the copies for generation of the libtool script.
15137   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
15138     SED SHELL STRIP \
15139     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15140     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15141     deplibs_check_method reload_flag reload_cmds need_locks \
15142     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15143     lt_cv_sys_global_symbol_to_c_name_address \
15144     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15145     old_postinstall_cmds old_postuninstall_cmds \
15146     compiler_F77 \
15147     CC_F77 \
15148     LD_F77 \
15149     lt_prog_compiler_wl_F77 \
15150     lt_prog_compiler_pic_F77 \
15151     lt_prog_compiler_static_F77 \
15152     lt_prog_compiler_no_builtin_flag_F77 \
15153     export_dynamic_flag_spec_F77 \
15154     thread_safe_flag_spec_F77 \
15155     whole_archive_flag_spec_F77 \
15156     enable_shared_with_static_runtimes_F77 \
15157     old_archive_cmds_F77 \
15158     old_archive_from_new_cmds_F77 \
15159     predep_objects_F77 \
15160     postdep_objects_F77 \
15161     predeps_F77 \
15162     postdeps_F77 \
15163     compiler_lib_search_path_F77 \
15164     archive_cmds_F77 \
15165     archive_expsym_cmds_F77 \
15166     postinstall_cmds_F77 \
15167     postuninstall_cmds_F77 \
15168     old_archive_from_expsyms_cmds_F77 \
15169     allow_undefined_flag_F77 \
15170     no_undefined_flag_F77 \
15171     export_symbols_cmds_F77 \
15172     hardcode_libdir_flag_spec_F77 \
15173     hardcode_libdir_flag_spec_ld_F77 \
15174     hardcode_libdir_separator_F77 \
15175     hardcode_automatic_F77 \
15176     module_cmds_F77 \
15177     module_expsym_cmds_F77 \
15178     lt_cv_prog_compiler_c_o_F77 \
15179     exclude_expsyms_F77 \
15180     include_expsyms_F77; do
15182     case $var in
15183     old_archive_cmds_F77 | \
15184     old_archive_from_new_cmds_F77 | \
15185     archive_cmds_F77 | \
15186     archive_expsym_cmds_F77 | \
15187     module_cmds_F77 | \
15188     module_expsym_cmds_F77 | \
15189     old_archive_from_expsyms_cmds_F77 | \
15190     export_symbols_cmds_F77 | \
15191     extract_expsyms_cmds | reload_cmds | finish_cmds | \
15192     postinstall_cmds | postuninstall_cmds | \
15193     old_postinstall_cmds | old_postuninstall_cmds | \
15194     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15195       # Double-quote double-evaled strings.
15196       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15197       ;;
15198     *)
15199       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15200       ;;
15201     esac
15202   done
15204   case $lt_echo in
15205   *'\$0 --fallback-echo"')
15206     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15207     ;;
15208   esac
15210 cfgfile="$ofile"
15212   cat <<__EOF__ >> "$cfgfile"
15213 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15215 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15217 # Shell to use when invoking shell scripts.
15218 SHELL=$lt_SHELL
15220 # Whether or not to build shared libraries.
15221 build_libtool_libs=$enable_shared
15223 # Whether or not to build static libraries.
15224 build_old_libs=$enable_static
15226 # Whether or not to add -lc for building shared libraries.
15227 build_libtool_need_lc=$archive_cmds_need_lc_F77
15229 # Whether or not to disallow shared libs when runtime libs are static
15230 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15232 # Whether or not to optimize for fast installation.
15233 fast_install=$enable_fast_install
15235 # The host system.
15236 host_alias=$host_alias
15237 host=$host
15239 # An echo program that does not interpret backslashes.
15240 echo=$lt_echo
15242 # The archiver.
15243 AR=$lt_AR
15244 AR_FLAGS=$lt_AR_FLAGS
15246 # A C compiler.
15247 LTCC=$lt_LTCC
15249 # A language-specific compiler.
15250 CC=$lt_compiler_F77
15252 # Is the compiler the GNU C compiler?
15253 with_gcc=$GCC_F77
15255 # An ERE matcher.
15256 EGREP=$lt_EGREP
15258 # The linker used to build libraries.
15259 LD=$lt_LD_F77
15261 # Whether we need hard or soft links.
15262 LN_S=$lt_LN_S
15264 # A BSD-compatible nm program.
15265 NM=$lt_NM
15267 # A symbol stripping program
15268 STRIP=$lt_STRIP
15270 # Used to examine libraries when file_magic_cmd begins "file"
15271 MAGIC_CMD=$MAGIC_CMD
15273 # Used on cygwin: DLL creation program.
15274 DLLTOOL="$DLLTOOL"
15276 # Used on cygwin: object dumper.
15277 OBJDUMP="$OBJDUMP"
15279 # Used on cygwin: assembler.
15280 AS="$AS"
15282 # The name of the directory that contains temporary libtool files.
15283 objdir=$objdir
15285 # How to create reloadable object files.
15286 reload_flag=$lt_reload_flag
15287 reload_cmds=$lt_reload_cmds
15289 # How to pass a linker flag through the compiler.
15290 wl=$lt_lt_prog_compiler_wl_F77
15292 # Object file suffix (normally "o").
15293 objext="$ac_objext"
15295 # Old archive suffix (normally "a").
15296 libext="$libext"
15298 # Shared library suffix (normally ".so").
15299 shrext_cmds='$shrext_cmds'
15301 # Executable file suffix (normally "").
15302 exeext="$exeext"
15304 # Additional compiler flags for building library objects.
15305 pic_flag=$lt_lt_prog_compiler_pic_F77
15306 pic_mode=$pic_mode
15308 # What is the maximum length of a command?
15309 max_cmd_len=$lt_cv_sys_max_cmd_len
15311 # Does compiler simultaneously support -c and -o options?
15312 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15314 # Must we lock files when doing compilation ?
15315 need_locks=$lt_need_locks
15317 # Do we need the lib prefix for modules?
15318 need_lib_prefix=$need_lib_prefix
15320 # Do we need a version for libraries?
15321 need_version=$need_version
15323 # Whether dlopen is supported.
15324 dlopen_support=$enable_dlopen
15326 # Whether dlopen of programs is supported.
15327 dlopen_self=$enable_dlopen_self
15329 # Whether dlopen of statically linked programs is supported.
15330 dlopen_self_static=$enable_dlopen_self_static
15332 # Compiler flag to prevent dynamic linking.
15333 link_static_flag=$lt_lt_prog_compiler_static_F77
15335 # Compiler flag to turn off builtin functions.
15336 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15338 # Compiler flag to allow reflexive dlopens.
15339 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15341 # Compiler flag to generate shared objects directly from archives.
15342 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15344 # Compiler flag to generate thread-safe objects.
15345 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15347 # Library versioning type.
15348 version_type=$version_type
15350 # Format of library name prefix.
15351 libname_spec=$lt_libname_spec
15353 # List of archive names.  First name is the real one, the rest are links.
15354 # The last name is the one that the linker finds with -lNAME.
15355 library_names_spec=$lt_library_names_spec
15357 # The coded name of the library, if different from the real name.
15358 soname_spec=$lt_soname_spec
15360 # Commands used to build and install an old-style archive.
15361 RANLIB=$lt_RANLIB
15362 old_archive_cmds=$lt_old_archive_cmds_F77
15363 old_postinstall_cmds=$lt_old_postinstall_cmds
15364 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15366 # Create an old-style archive from a shared archive.
15367 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15369 # Create a temporary old-style archive to link instead of a shared archive.
15370 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15372 # Commands used to build and install a shared archive.
15373 archive_cmds=$lt_archive_cmds_F77
15374 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15375 postinstall_cmds=$lt_postinstall_cmds
15376 postuninstall_cmds=$lt_postuninstall_cmds
15378 # Commands used to build a loadable module (assumed same as above if empty)
15379 module_cmds=$lt_module_cmds_F77
15380 module_expsym_cmds=$lt_module_expsym_cmds_F77
15382 # Commands to strip libraries.
15383 old_striplib=$lt_old_striplib
15384 striplib=$lt_striplib
15386 # Dependencies to place before the objects being linked to create a
15387 # shared library.
15388 predep_objects=$lt_predep_objects_F77
15390 # Dependencies to place after the objects being linked to create a
15391 # shared library.
15392 postdep_objects=$lt_postdep_objects_F77
15394 # Dependencies to place before the objects being linked to create a
15395 # shared library.
15396 predeps=$lt_predeps_F77
15398 # Dependencies to place after the objects being linked to create a
15399 # shared library.
15400 postdeps=$lt_postdeps_F77
15402 # The library search path used internally by the compiler when linking
15403 # a shared library.
15404 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15406 # Method to check whether dependent libraries are shared objects.
15407 deplibs_check_method=$lt_deplibs_check_method
15409 # Command to use when deplibs_check_method == file_magic.
15410 file_magic_cmd=$lt_file_magic_cmd
15412 # Flag that allows shared libraries with undefined symbols to be built.
15413 allow_undefined_flag=$lt_allow_undefined_flag_F77
15415 # Flag that forces no undefined symbols.
15416 no_undefined_flag=$lt_no_undefined_flag_F77
15418 # Commands used to finish a libtool library installation in a directory.
15419 finish_cmds=$lt_finish_cmds
15421 # Same as above, but a single script fragment to be evaled but not shown.
15422 finish_eval=$lt_finish_eval
15424 # Take the output of nm and produce a listing of raw symbols and C names.
15425 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15427 # Transform the output of nm in a proper C declaration
15428 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15430 # Transform the output of nm in a C name address pair
15431 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15433 # This is the shared library runtime path variable.
15434 runpath_var=$runpath_var
15436 # This is the shared library path variable.
15437 shlibpath_var=$shlibpath_var
15439 # Is shlibpath searched before the hard-coded library search path?
15440 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15442 # How to hardcode a shared library path into an executable.
15443 hardcode_action=$hardcode_action_F77
15445 # Whether we should hardcode library paths into libraries.
15446 hardcode_into_libs=$hardcode_into_libs
15448 # Flag to hardcode \$libdir into a binary during linking.
15449 # This must work even if \$libdir does not exist.
15450 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15452 # If ld is used when linking, flag to hardcode \$libdir into
15453 # a binary during linking. This must work even if \$libdir does
15454 # not exist.
15455 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15457 # Whether we need a single -rpath flag with a separated argument.
15458 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15460 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15461 # resulting binary.
15462 hardcode_direct=$hardcode_direct_F77
15464 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15465 # resulting binary.
15466 hardcode_minus_L=$hardcode_minus_L_F77
15468 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15469 # the resulting binary.
15470 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15472 # Set to yes if building a shared library automatically hardcodes DIR into the library
15473 # and all subsequent libraries and executables linked against it.
15474 hardcode_automatic=$hardcode_automatic_F77
15476 # Variables whose values should be saved in libtool wrapper scripts and
15477 # restored at relink time.
15478 variables_saved_for_relink="$variables_saved_for_relink"
15480 # Whether libtool must link a program against all its dependency libraries.
15481 link_all_deplibs=$link_all_deplibs_F77
15483 # Compile-time system search path for libraries
15484 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15486 # Run-time system search path for libraries
15487 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15489 # Fix the shell variable \$srcfile for the compiler.
15490 fix_srcfile_path="$fix_srcfile_path_F77"
15492 # Set to yes if exported symbols are required.
15493 always_export_symbols=$always_export_symbols_F77
15495 # The commands to list exported symbols.
15496 export_symbols_cmds=$lt_export_symbols_cmds_F77
15498 # The commands to extract the exported symbol list from a shared archive.
15499 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15501 # Symbols that should not be listed in the preloaded symbols.
15502 exclude_expsyms=$lt_exclude_expsyms_F77
15504 # Symbols that must always be exported.
15505 include_expsyms=$lt_include_expsyms_F77
15507 # ### END LIBTOOL TAG CONFIG: $tagname
15509 __EOF__
15512 else
15513   # If there is no Makefile yet, we rely on a make rule to execute
15514   # `config.status --recheck' to rerun these tests and create the
15515   # libtool script then.
15516   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15517   if test -f "$ltmain_in"; then
15518     test -f Makefile && make "$ltmain"
15519   fi
15523 ac_ext=c
15524 ac_cpp='$CPP $CPPFLAGS'
15525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15529 CC="$lt_save_CC"
15531         else
15532           tagname=""
15533         fi
15534         ;;
15536       GCJ)
15537         if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15538           
15541 # Source file extension for Java test sources.
15542 ac_ext=java
15544 # Object file extension for compiled Java test sources.
15545 objext=o
15546 objext_GCJ=$objext
15548 # Code to be used in simple compile tests
15549 lt_simple_compile_test_code="class foo {}\n"
15551 # Code to be used in simple link tests
15552 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
15554 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15556 # If no C compiler was specified, use CC.
15557 LTCC=${LTCC-"$CC"}
15559 # Allow CC to be a program name with arguments.
15560 compiler=$CC
15563 # Allow CC to be a program name with arguments.
15564 lt_save_CC="$CC"
15565 CC=${GCJ-"gcj"}
15566 compiler=$CC
15567 compiler_GCJ=$CC
15569 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15570 archive_cmds_need_lc_GCJ=no
15573 lt_prog_compiler_no_builtin_flag_GCJ=
15575 if test "$GCC" = yes; then
15576   lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15578   
15579 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15580 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
15581 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
15582   echo $ECHO_N "(cached) $ECHO_C" >&6
15583 else
15584   lt_cv_prog_compiler_rtti_exceptions=no
15585   ac_outfile=conftest.$ac_objext
15586    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15587    lt_compiler_flag="-fno-rtti -fno-exceptions"
15588    # Insert the option either (1) after the last *FLAGS variable, or
15589    # (2) before a word containing "conftest.", or (3) at the end.
15590    # Note that $ac_compile itself does not contain backslashes and begins
15591    # with a dollar sign (not a hyphen), so the echo should work correctly.
15592    # The option is referenced via a variable to avoid confusing sed.
15593    lt_compile=`echo "$ac_compile" | $SED \
15594    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15595    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15596    -e 's:$: $lt_compiler_flag:'`
15597    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15598    (eval "$lt_compile" 2>conftest.err)
15599    ac_status=$?
15600    cat conftest.err >&5
15601    echo "$as_me:__oline__: \$? = $ac_status" >&5
15602    if (exit $ac_status) && test -s "$ac_outfile"; then
15603      # The compiler can only warn and ignore the option if not recognized
15604      # So say no if there are warnings
15605      if test ! -s conftest.err; then
15606        lt_cv_prog_compiler_rtti_exceptions=yes
15607      fi
15608    fi
15609    $rm conftest*
15612 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15613 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
15615 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15616     lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15617 else
15618     :
15623 lt_prog_compiler_wl_GCJ=
15624 lt_prog_compiler_pic_GCJ=
15625 lt_prog_compiler_static_GCJ=
15627 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15628 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15630   if test "$GCC" = yes; then
15631     lt_prog_compiler_wl_GCJ='-Wl,'
15632     lt_prog_compiler_static_GCJ='-static'
15634     case $host_os in
15635       aix*)
15636       # All AIX code is PIC.
15637       if test "$host_cpu" = ia64; then
15638         # AIX 5 now supports IA64 processor
15639         lt_prog_compiler_static_GCJ='-Bstatic'
15640       fi
15641       ;;
15643     amigaos*)
15644       # FIXME: we need at least 68020 code to build shared libraries, but
15645       # adding the `-m68020' flag to GCC prevents building anything better,
15646       # like `-m68040'.
15647       lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15648       ;;
15650     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15651       # PIC is the default for these OSes.
15652       ;;
15654     mingw* | pw32* | os2*)
15655       # This hack is so that the source file can tell whether it is being
15656       # built for inclusion in a dll (and should export symbols for example).
15657       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15658       ;;
15660     darwin* | rhapsody*)
15661       # PIC is the default on this platform
15662       # Common symbols not allowed in MH_DYLIB files
15663       lt_prog_compiler_pic_GCJ='-fno-common'
15664       ;;
15666     msdosdjgpp*)
15667       # Just because we use GCC doesn't mean we suddenly get shared libraries
15668       # on systems that don't support them.
15669       lt_prog_compiler_can_build_shared_GCJ=no
15670       enable_shared=no
15671       ;;
15673     sysv4*MP*)
15674       if test -d /usr/nec; then
15675         lt_prog_compiler_pic_GCJ=-Kconform_pic
15676       fi
15677       ;;
15679     hpux*)
15680       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15681       # not for PA HP-UX.
15682       case "$host_cpu" in
15683       hppa*64*|ia64*)
15684         # +Z the default
15685         ;;
15686       *)
15687         lt_prog_compiler_pic_GCJ='-fPIC'
15688         ;;
15689       esac
15690       ;;
15692     *)
15693       lt_prog_compiler_pic_GCJ='-fPIC'
15694       ;;
15695     esac
15696   else
15697     # PORTME Check for flag to pass linker flags through the system compiler.
15698     case $host_os in
15699     aix*)
15700       lt_prog_compiler_wl_GCJ='-Wl,'
15701       if test "$host_cpu" = ia64; then
15702         # AIX 5 now supports IA64 processor
15703         lt_prog_compiler_static_GCJ='-Bstatic'
15704       else
15705         lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15706       fi
15707       ;;
15709     mingw* | pw32* | os2*)
15710       # This hack is so that the source file can tell whether it is being
15711       # built for inclusion in a dll (and should export symbols for example).
15712       lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15713       ;;
15715     hpux9* | hpux10* | hpux11*)
15716       lt_prog_compiler_wl_GCJ='-Wl,'
15717       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15718       # not for PA HP-UX.
15719       case "$host_cpu" in
15720       hppa*64*|ia64*)
15721         # +Z the default
15722         ;;
15723       *)
15724         lt_prog_compiler_pic_GCJ='+Z'
15725         ;;
15726       esac
15727       # Is there a better lt_prog_compiler_static that works with the bundled CC?
15728       lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15729       ;;
15731     irix5* | irix6* | nonstopux*)
15732       lt_prog_compiler_wl_GCJ='-Wl,'
15733       # PIC (with -KPIC) is the default.
15734       lt_prog_compiler_static_GCJ='-non_shared'
15735       ;;
15737     newsos6)
15738       lt_prog_compiler_pic_GCJ='-KPIC'
15739       lt_prog_compiler_static_GCJ='-Bstatic'
15740       ;;
15742     linux*)
15743       case $CC in
15744       icc* | ecc*)
15745         lt_prog_compiler_wl_GCJ='-Wl,'
15746         lt_prog_compiler_pic_GCJ='-KPIC'
15747         lt_prog_compiler_static_GCJ='-static'
15748         ;;
15749       ccc*)
15750         lt_prog_compiler_wl_GCJ='-Wl,'
15751         # All Alpha code is PIC.
15752         lt_prog_compiler_static_GCJ='-non_shared'
15753         ;;
15754       esac
15755       ;;
15757     osf3* | osf4* | osf5*)
15758       lt_prog_compiler_wl_GCJ='-Wl,'
15759       # All OSF/1 code is PIC.
15760       lt_prog_compiler_static_GCJ='-non_shared'
15761       ;;
15763     sco3.2v5*)
15764       lt_prog_compiler_pic_GCJ='-Kpic'
15765       lt_prog_compiler_static_GCJ='-dn'
15766       ;;
15768     solaris*)
15769       lt_prog_compiler_wl_GCJ='-Wl,'
15770       lt_prog_compiler_pic_GCJ='-KPIC'
15771       lt_prog_compiler_static_GCJ='-Bstatic'
15772       ;;
15774     sunos4*)
15775       lt_prog_compiler_wl_GCJ='-Qoption ld '
15776       lt_prog_compiler_pic_GCJ='-PIC'
15777       lt_prog_compiler_static_GCJ='-Bstatic'
15778       ;;
15780     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15781       lt_prog_compiler_wl_GCJ='-Wl,'
15782       lt_prog_compiler_pic_GCJ='-KPIC'
15783       lt_prog_compiler_static_GCJ='-Bstatic'
15784       ;;
15786     sysv4*MP*)
15787       if test -d /usr/nec ;then
15788         lt_prog_compiler_pic_GCJ='-Kconform_pic'
15789         lt_prog_compiler_static_GCJ='-Bstatic'
15790       fi
15791       ;;
15793     uts4*)
15794       lt_prog_compiler_pic_GCJ='-pic'
15795       lt_prog_compiler_static_GCJ='-Bstatic'
15796       ;;
15798     *)
15799       lt_prog_compiler_can_build_shared_GCJ=no
15800       ;;
15801     esac
15802   fi
15804 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
15805 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
15808 # Check to make sure the PIC flag actually works.
15810 if test -n "$lt_prog_compiler_pic_GCJ"; then
15811   
15812 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15813 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
15814 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
15815   echo $ECHO_N "(cached) $ECHO_C" >&6
15816 else
15817   lt_prog_compiler_pic_works_GCJ=no
15818   ac_outfile=conftest.$ac_objext
15819    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15820    lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15821    # Insert the option either (1) after the last *FLAGS variable, or
15822    # (2) before a word containing "conftest.", or (3) at the end.
15823    # Note that $ac_compile itself does not contain backslashes and begins
15824    # with a dollar sign (not a hyphen), so the echo should work correctly.
15825    # The option is referenced via a variable to avoid confusing sed.
15826    lt_compile=`echo "$ac_compile" | $SED \
15827    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15828    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15829    -e 's:$: $lt_compiler_flag:'`
15830    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15831    (eval "$lt_compile" 2>conftest.err)
15832    ac_status=$?
15833    cat conftest.err >&5
15834    echo "$as_me:__oline__: \$? = $ac_status" >&5
15835    if (exit $ac_status) && test -s "$ac_outfile"; then
15836      # The compiler can only warn and ignore the option if not recognized
15837      # So say no if there are warnings
15838      if test ! -s conftest.err; then
15839        lt_prog_compiler_pic_works_GCJ=yes
15840      fi
15841    fi
15842    $rm conftest*
15845 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
15846 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
15848 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15849     case $lt_prog_compiler_pic_GCJ in
15850      "" | " "*) ;;
15851      *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15852      esac
15853 else
15854     lt_prog_compiler_pic_GCJ=
15855      lt_prog_compiler_can_build_shared_GCJ=no
15859 case "$host_os" in
15860   # For platforms which do not support PIC, -DPIC is meaningless:
15861   *djgpp*)
15862     lt_prog_compiler_pic_GCJ=
15863     ;;
15864   *)
15865     lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15866     ;;
15867 esac
15869 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15870 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15871 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
15872   echo $ECHO_N "(cached) $ECHO_C" >&6
15873 else
15874   lt_cv_prog_compiler_c_o_GCJ=no
15875    $rm -r conftest 2>/dev/null
15876    mkdir conftest
15877    cd conftest
15878    mkdir out
15879    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15881    lt_compiler_flag="-o out/conftest2.$ac_objext"
15882    # Insert the option either (1) after the last *FLAGS variable, or
15883    # (2) before a word containing "conftest.", or (3) at the end.
15884    # Note that $ac_compile itself does not contain backslashes and begins
15885    # with a dollar sign (not a hyphen), so the echo should work correctly.
15886    lt_compile=`echo "$ac_compile" | $SED \
15887    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15888    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15889    -e 's:$: $lt_compiler_flag:'`
15890    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
15891    (eval "$lt_compile" 2>out/conftest.err)
15892    ac_status=$?
15893    cat out/conftest.err >&5
15894    echo "$as_me:__oline__: \$? = $ac_status" >&5
15895    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15896    then
15897      # The compiler can only warn and ignore the option if not recognized
15898      # So say no if there are warnings
15899      if test ! -s out/conftest.err; then
15900        lt_cv_prog_compiler_c_o_GCJ=yes
15901      fi
15902    fi
15903    chmod u+w .
15904    $rm conftest*
15905    # SGI C++ compiler will create directory out/ii_files/ for
15906    # template instantiation
15907    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15908    $rm out/* && rmdir out
15909    cd ..
15910    rmdir conftest
15911    $rm conftest*
15914 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
15915 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
15918 hard_links="nottested"
15919 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
15920   # do not overwrite the value of need_locks provided by the user
15921   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15922 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15923   hard_links=yes
15924   $rm conftest*
15925   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15926   touch conftest.a
15927   ln conftest.a conftest.b 2>&5 || hard_links=no
15928   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15929   echo "$as_me:$LINENO: result: $hard_links" >&5
15930 echo "${ECHO_T}$hard_links" >&6
15931   if test "$hard_links" = no; then
15932     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15933 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15934     need_locks=warn
15935   fi
15936 else
15937   need_locks=no
15940 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15941 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15943   runpath_var=
15944   allow_undefined_flag_GCJ=
15945   enable_shared_with_static_runtimes_GCJ=no
15946   archive_cmds_GCJ=
15947   archive_expsym_cmds_GCJ=
15948   old_archive_From_new_cmds_GCJ=
15949   old_archive_from_expsyms_cmds_GCJ=
15950   export_dynamic_flag_spec_GCJ=
15951   whole_archive_flag_spec_GCJ=
15952   thread_safe_flag_spec_GCJ=
15953   hardcode_libdir_flag_spec_GCJ=
15954   hardcode_libdir_flag_spec_ld_GCJ=
15955   hardcode_libdir_separator_GCJ=
15956   hardcode_direct_GCJ=no
15957   hardcode_minus_L_GCJ=no
15958   hardcode_shlibpath_var_GCJ=unsupported
15959   link_all_deplibs_GCJ=unknown
15960   hardcode_automatic_GCJ=no
15961   module_cmds_GCJ=
15962   module_expsym_cmds_GCJ=
15963   always_export_symbols_GCJ=no
15964   export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15965   # include_expsyms should be a list of space-separated symbols to be *always*
15966   # included in the symbol list
15967   include_expsyms_GCJ=
15968   # exclude_expsyms can be an extended regexp of symbols to exclude
15969   # it will be wrapped by ` (' and `)$', so one must not match beginning or
15970   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15971   # as well as any symbol that contains `d'.
15972   exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
15973   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15974   # platforms (ab)use it in PIC code, but their linkers get confused if
15975   # the symbol is explicitly referenced.  Since portable code cannot
15976   # rely on this symbol name, it's probably fine to never include it in
15977   # preloaded symbol tables.
15978   extract_expsyms_cmds=
15980   case $host_os in
15981   cygwin* | mingw* | pw32*)
15982     # FIXME: the MSVC++ port hasn't been tested in a loooong time
15983     # When not using gcc, we currently assume that we are using
15984     # Microsoft Visual C++.
15985     if test "$GCC" != yes; then
15986       with_gnu_ld=no
15987     fi
15988     ;;
15989   openbsd*)
15990     with_gnu_ld=no
15991     ;;
15992   esac
15994   ld_shlibs_GCJ=yes
15995   if test "$with_gnu_ld" = yes; then
15996     # If archive_cmds runs LD, not CC, wlarc should be empty
15997     wlarc='${wl}'
15999     # See if GNU ld supports shared libraries.
16000     case $host_os in
16001     aix3* | aix4* | aix5*)
16002       # On AIX/PPC, the GNU linker is very broken
16003       if test "$host_cpu" != ia64; then
16004         ld_shlibs_GCJ=no
16005         cat <<EOF 1>&2
16007 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16008 *** to be unable to reliably create shared libraries on AIX.
16009 *** Therefore, libtool is disabling shared libraries support.  If you
16010 *** really care for shared libraries, you may want to modify your PATH
16011 *** so that a non-GNU linker is found, and then restart.
16014       fi
16015       ;;
16017     amigaos*)
16018       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)'
16019       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16020       hardcode_minus_L_GCJ=yes
16022       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16023       # that the semantics of dynamic libraries on AmigaOS, at least up
16024       # to version 4, is to share data among multiple programs linked
16025       # with the same dynamic library.  Since this doesn't match the
16026       # behavior of shared libraries on other platforms, we can't use
16027       # them.
16028       ld_shlibs_GCJ=no
16029       ;;
16031     beos*)
16032       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16033         allow_undefined_flag_GCJ=unsupported
16034         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16035         # support --undefined.  This deserves some investigation.  FIXME
16036         archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16037       else
16038         ld_shlibs_GCJ=no
16039       fi
16040       ;;
16042     cygwin* | mingw* | pw32*)
16043       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16044       # as there is no search path for DLLs.
16045       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16046       allow_undefined_flag_GCJ=unsupported
16047       always_export_symbols_GCJ=no
16048       enable_shared_with_static_runtimes_GCJ=yes
16049       export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16051       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16052         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
16053         # If the export-symbols file already is a .def file (1st line
16054         # is EXPORTS), use it as is; otherwise, prepend...
16055         archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16056           cp $export_symbols $output_objdir/$soname.def;
16057         else
16058           echo EXPORTS > $output_objdir/$soname.def;
16059           cat $export_symbols >> $output_objdir/$soname.def;
16060         fi~
16061         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
16062       else
16063         ld_shlibs=no
16064       fi
16065       ;;
16067     netbsd*)
16068       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16069         archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16070         wlarc=
16071       else
16072         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16073         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16074       fi
16075       ;;
16077     solaris* | sysv5*)
16078       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16079         ld_shlibs_GCJ=no
16080         cat <<EOF 1>&2
16082 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16083 *** create shared libraries on Solaris systems.  Therefore, libtool
16084 *** is disabling shared libraries support.  We urge you to upgrade GNU
16085 *** binutils to release 2.9.1 or newer.  Another option is to modify
16086 *** your PATH or compiler configuration so that the native linker is
16087 *** used, and then restart.
16090       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16091         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16092         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16093       else
16094         ld_shlibs_GCJ=no
16095       fi
16096       ;;
16098     sunos4*)
16099       archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16100       wlarc=
16101       hardcode_direct_GCJ=yes
16102       hardcode_shlibpath_var_GCJ=no
16103       ;;
16105   linux*)
16106     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16107         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16108         archive_cmds_GCJ="$tmp_archive_cmds"
16109       supports_anon_versioning=no
16110       case `$LD -v 2>/dev/null` in
16111         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16112         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16113         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16114         *\ 2.11.*) ;; # other 2.11 versions
16115         *) supports_anon_versioning=yes ;;
16116       esac
16117       if test $supports_anon_versioning = yes; then
16118         archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16119 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16120 $echo "local: *; };" >> $output_objdir/$libname.ver~
16121         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16122       else
16123         archive_expsym_cmds_GCJ="$tmp_archive_cmds"
16124       fi
16125     else
16126       ld_shlibs_GCJ=no
16127     fi
16128     ;;
16130     *)
16131       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16132         archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16133         archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16134       else
16135         ld_shlibs_GCJ=no
16136       fi
16137       ;;
16138     esac
16140     if test "$ld_shlibs_GCJ" = yes; then
16141       runpath_var=LD_RUN_PATH
16142       hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16143       export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16144       # ancient GNU ld didn't support --whole-archive et. al.
16145       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16146         whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16147       else
16148         whole_archive_flag_spec_GCJ=
16149       fi
16150     fi
16151   else
16152     # PORTME fill in a description of your system's linker (not GNU ld)
16153     case $host_os in
16154     aix3*)
16155       allow_undefined_flag_GCJ=unsupported
16156       always_export_symbols_GCJ=yes
16157       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'
16158       # Note: this linker hardcodes the directories in LIBPATH if there
16159       # are no directories specified by -L.
16160       hardcode_minus_L_GCJ=yes
16161       if test "$GCC" = yes && test -z "$link_static_flag"; then
16162         # Neither direct hardcoding nor static linking is supported with a
16163         # broken collect2.
16164         hardcode_direct_GCJ=unsupported
16165       fi
16166       ;;
16168     aix4* | aix5*)
16169       if test "$host_cpu" = ia64; then
16170         # On IA64, the linker does run time linking by default, so we don't
16171         # have to do anything special.
16172         aix_use_runtimelinking=no
16173         exp_sym_flag='-Bexport'
16174         no_entry_flag=""
16175       else
16176         # If we're using GNU nm, then we don't want the "-C" option.
16177         # -C means demangle to AIX nm, but means don't demangle with GNU nm
16178         if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16179           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'
16180         else
16181           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'
16182         fi
16183         aix_use_runtimelinking=no
16185         # Test if we are trying to use run time linking or normal
16186         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16187         # need to do runtime linking.
16188         case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16189           for ld_flag in $LDFLAGS; do
16190           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16191             aix_use_runtimelinking=yes
16192             break
16193           fi
16194           done
16195         esac
16197         exp_sym_flag='-bexport'
16198         no_entry_flag='-bnoentry'
16199       fi
16201       # When large executables or shared objects are built, AIX ld can
16202       # have problems creating the table of contents.  If linking a library
16203       # or program results in "error TOC overflow" add -mminimal-toc to
16204       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
16205       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16207       archive_cmds_GCJ=''
16208       hardcode_direct_GCJ=yes
16209       hardcode_libdir_separator_GCJ=':'
16210       link_all_deplibs_GCJ=yes
16212       if test "$GCC" = yes; then
16213         case $host_os in aix4.012|aix4.012.*)
16214         # We only want to do this on AIX 4.2 and lower, the check
16215         # below for broken collect2 doesn't work under 4.3+
16216           collect2name=`${CC} -print-prog-name=collect2`
16217           if test -f "$collect2name" && \
16218            strings "$collect2name" | grep resolve_lib_name >/dev/null
16219           then
16220           # We have reworked collect2
16221           hardcode_direct_GCJ=yes
16222           else
16223           # We have old collect2
16224           hardcode_direct_GCJ=unsupported
16225           # It fails to find uninstalled libraries when the uninstalled
16226           # path is not listed in the libpath.  Setting hardcode_minus_L
16227           # to unsupported forces relinking
16228           hardcode_minus_L_GCJ=yes
16229           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16230           hardcode_libdir_separator_GCJ=
16231           fi
16232         esac
16233         shared_flag='-shared'
16234       else
16235         # not using gcc
16236         if test "$host_cpu" = ia64; then
16237         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16238         # chokes on -Wl,-G. The following line is correct:
16239           shared_flag='-G'
16240         else
16241         if test "$aix_use_runtimelinking" = yes; then
16242             shared_flag='${wl}-G'
16243           else
16244             shared_flag='${wl}-bM:SRE'
16245         fi
16246         fi
16247       fi
16249       # It seems that -bexpall does not export symbols beginning with
16250       # underscore (_), so it is better to generate a list of symbols to export.
16251       always_export_symbols_GCJ=yes
16252       if test "$aix_use_runtimelinking" = yes; then
16253         # Warning - without using the other runtime loading flags (-brtl),
16254         # -berok will link without error, but may produce a broken library.
16255         allow_undefined_flag_GCJ='-berok'
16256        # Determine the default libpath from the value encoded in an empty executable.
16257        cat >conftest.$ac_ext <<_ACEOF
16258 /* confdefs.h.  */
16259 _ACEOF
16260 cat confdefs.h >>conftest.$ac_ext
16261 cat >>conftest.$ac_ext <<_ACEOF
16262 /* end confdefs.h.  */
16265 main ()
16268   ;
16269   return 0;
16271 _ACEOF
16272 rm -f conftest.$ac_objext conftest$ac_exeext
16273 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16274   (eval $ac_link) 2>conftest.er1
16275   ac_status=$?
16276   grep -v '^ *+' conftest.er1 >conftest.err
16277   rm -f conftest.er1
16278   cat conftest.err >&5
16279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16280   (exit $ac_status); } &&
16281          { ac_try='test -z "$ac_c_werror_flag"
16282                          || test ! -s conftest.err'
16283   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16284   (eval $ac_try) 2>&5
16285   ac_status=$?
16286   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16287   (exit $ac_status); }; } &&
16288          { ac_try='test -s conftest$ac_exeext'
16289   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16290   (eval $ac_try) 2>&5
16291   ac_status=$?
16292   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16293   (exit $ac_status); }; }; then
16294   
16295 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16297 # Check for a 64-bit object if we didn't find anything.
16298 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; }
16299 }'`; fi
16300 else
16301   echo "$as_me: failed program was:" >&5
16302 sed 's/^/| /' conftest.$ac_ext >&5
16305 rm -f conftest.err conftest.$ac_objext \
16306       conftest$ac_exeext conftest.$ac_ext
16307 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16309        hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16310         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"
16311        else
16312         if test "$host_cpu" = ia64; then
16313           hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16314           allow_undefined_flag_GCJ="-z nodefs"
16315           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"
16316         else
16317          # Determine the default libpath from the value encoded in an empty executable.
16318          cat >conftest.$ac_ext <<_ACEOF
16319 /* confdefs.h.  */
16320 _ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h.  */
16326 main ()
16329   ;
16330   return 0;
16332 _ACEOF
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16335   (eval $ac_link) 2>conftest.er1
16336   ac_status=$?
16337   grep -v '^ *+' conftest.er1 >conftest.err
16338   rm -f conftest.er1
16339   cat conftest.err >&5
16340   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16341   (exit $ac_status); } &&
16342          { ac_try='test -z "$ac_c_werror_flag"
16343                          || test ! -s conftest.err'
16344   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16345   (eval $ac_try) 2>&5
16346   ac_status=$?
16347   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348   (exit $ac_status); }; } &&
16349          { ac_try='test -s conftest$ac_exeext'
16350   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16351   (eval $ac_try) 2>&5
16352   ac_status=$?
16353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16354   (exit $ac_status); }; }; then
16355   
16356 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
16358 # Check for a 64-bit object if we didn't find anything.
16359 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; }
16360 }'`; fi
16361 else
16362   echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16366 rm -f conftest.err conftest.$ac_objext \
16367       conftest$ac_exeext conftest.$ac_ext
16368 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16370          hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16371           # Warning - without using the other run time loading flags,
16372           # -berok will link without error, but may produce a broken library.
16373           no_undefined_flag_GCJ=' ${wl}-bernotok'
16374           allow_undefined_flag_GCJ=' ${wl}-berok'
16375           # -bexpall does not export symbols beginning with underscore (_)
16376           always_export_symbols_GCJ=yes
16377           # Exported symbols can be pulled into shared objects from archives
16378           whole_archive_flag_spec_GCJ=' '
16379           archive_cmds_need_lc_GCJ=yes
16380           # This is similar to how AIX traditionally builds it's shared libraries.
16381           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'
16382         fi
16383       fi
16384       ;;
16386     amigaos*)
16387       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)'
16388       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16389       hardcode_minus_L_GCJ=yes
16390       # see comment about different semantics on the GNU ld section
16391       ld_shlibs_GCJ=no
16392       ;;
16394     bsdi4*)
16395       export_dynamic_flag_spec_GCJ=-rdynamic
16396       ;;
16398     cygwin* | mingw* | pw32*)
16399       # When not using gcc, we currently assume that we are using
16400       # Microsoft Visual C++.
16401       # hardcode_libdir_flag_spec is actually meaningless, as there is
16402       # no search path for DLLs.
16403       hardcode_libdir_flag_spec_GCJ=' '
16404       allow_undefined_flag_GCJ=unsupported
16405       # Tell ltmain to make .lib files, not .a files.
16406       libext=lib
16407       # Tell ltmain to make .dll files, not .so files.
16408       shrext_cmds=".dll"
16409       # FIXME: Setting linknames here is a bad hack.
16410       archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16411       # The linker will automatically build a .lib file if we build a DLL.
16412       old_archive_From_new_cmds_GCJ='true'
16413       # FIXME: Should let the user specify the lib program.
16414       old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16415       fix_srcfile_path='`cygpath -w "$srcfile"`'
16416       enable_shared_with_static_runtimes_GCJ=yes
16417       ;;
16419     darwin* | rhapsody*)
16420     if test "$GXX" = yes ; then
16421       archive_cmds_need_lc_GCJ=no
16422       case "$host_os" in
16423       rhapsody* | darwin1.[012])
16424         allow_undefined_flag_GCJ='-undefined suppress'
16425         ;;
16426       *) # Darwin 1.3 on
16427       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16428         allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16429       else
16430         case ${MACOSX_DEPLOYMENT_TARGET} in
16431           10.[012])
16432             allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
16433             ;;
16434           10.*)
16435             allow_undefined_flag_GCJ='-undefined dynamic_lookup'
16436             ;;
16437         esac
16438       fi
16439         ;;
16440       esac
16441         lt_int_apple_cc_single_mod=no
16442         output_verbose_link_cmd='echo'
16443         if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
16444           lt_int_apple_cc_single_mod=yes
16445         fi
16446         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16447           archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16448         else
16449         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'
16450       fi
16451       module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16452       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16453         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16454           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}'
16455         else
16456           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}'
16457         fi
16458           module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16459       hardcode_direct_GCJ=no
16460       hardcode_automatic_GCJ=yes
16461       hardcode_shlibpath_var_GCJ=unsupported
16462       whole_archive_flag_spec_GCJ='-all_load $convenience'
16463       link_all_deplibs_GCJ=yes
16464     else
16465       ld_shlibs_GCJ=no
16466     fi
16467       ;;
16469     dgux*)
16470       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16471       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16472       hardcode_shlibpath_var_GCJ=no
16473       ;;
16475     freebsd1*)
16476       ld_shlibs_GCJ=no
16477       ;;
16479     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16480     # support.  Future versions do this automatically, but an explicit c++rt0.o
16481     # does not break anything, and helps significantly (at the cost of a little
16482     # extra space).
16483     freebsd2.2*)
16484       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16485       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16486       hardcode_direct_GCJ=yes
16487       hardcode_shlibpath_var_GCJ=no
16488       ;;
16490     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16491     freebsd2*)
16492       archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16493       hardcode_direct_GCJ=yes
16494       hardcode_minus_L_GCJ=yes
16495       hardcode_shlibpath_var_GCJ=no
16496       ;;
16498     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16499     freebsd* | kfreebsd*-gnu)
16500       archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16501       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16502       hardcode_direct_GCJ=yes
16503       hardcode_shlibpath_var_GCJ=no
16504       ;;
16506     hpux9*)
16507       if test "$GCC" = yes; then
16508         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'
16509       else
16510         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'
16511       fi
16512       hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16513       hardcode_libdir_separator_GCJ=:
16514       hardcode_direct_GCJ=yes
16516       # hardcode_minus_L: Not really in the search PATH,
16517       # but as the default location of the library.
16518       hardcode_minus_L_GCJ=yes
16519       export_dynamic_flag_spec_GCJ='${wl}-E'
16520       ;;
16522     hpux10* | hpux11*)
16523       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16524         case "$host_cpu" in
16525         hppa*64*|ia64*)
16526           archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16527           ;;
16528         *)
16529           archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16530           ;;
16531         esac
16532       else
16533         case "$host_cpu" in
16534         hppa*64*|ia64*)
16535           archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16536           ;;
16537         *)
16538           archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16539           ;;
16540         esac
16541       fi
16542       if test "$with_gnu_ld" = no; then
16543         case "$host_cpu" in
16544         hppa*64*)
16545           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16546           hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16547           hardcode_libdir_separator_GCJ=:
16548           hardcode_direct_GCJ=no
16549           hardcode_shlibpath_var_GCJ=no
16550           ;;
16551         ia64*)
16552           hardcode_libdir_flag_spec_GCJ='-L$libdir'
16553           hardcode_direct_GCJ=no
16554           hardcode_shlibpath_var_GCJ=no
16556           # hardcode_minus_L: Not really in the search PATH,
16557           # but as the default location of the library.
16558           hardcode_minus_L_GCJ=yes
16559           ;;
16560         *)
16561           hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16562           hardcode_libdir_separator_GCJ=:
16563           hardcode_direct_GCJ=yes
16564           export_dynamic_flag_spec_GCJ='${wl}-E'
16566           # hardcode_minus_L: Not really in the search PATH,
16567           # but as the default location of the library.
16568           hardcode_minus_L_GCJ=yes
16569           ;;
16570         esac
16571       fi
16572       ;;
16574     irix5* | irix6* | nonstopux*)
16575       if test "$GCC" = yes; then
16576         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'
16577       else
16578         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'
16579         hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16580       fi
16581       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16582       hardcode_libdir_separator_GCJ=:
16583       link_all_deplibs_GCJ=yes
16584       ;;
16586     netbsd*)
16587       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16588         archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
16589       else
16590         archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
16591       fi
16592       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16593       hardcode_direct_GCJ=yes
16594       hardcode_shlibpath_var_GCJ=no
16595       ;;
16597     newsos6)
16598       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16599       hardcode_direct_GCJ=yes
16600       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16601       hardcode_libdir_separator_GCJ=:
16602       hardcode_shlibpath_var_GCJ=no
16603       ;;
16605     openbsd*)
16606       hardcode_direct_GCJ=yes
16607       hardcode_shlibpath_var_GCJ=no
16608       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16609         archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16610         hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16611         export_dynamic_flag_spec_GCJ='${wl}-E'
16612       else
16613        case $host_os in
16614          openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16615            archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16616            hardcode_libdir_flag_spec_GCJ='-R$libdir'
16617            ;;
16618          *)
16619            archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16620            hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16621            ;;
16622        esac
16623       fi
16624       ;;
16626     os2*)
16627       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16628       hardcode_minus_L_GCJ=yes
16629       allow_undefined_flag_GCJ=unsupported
16630       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'
16631       old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16632       ;;
16634     osf3*)
16635       if test "$GCC" = yes; then
16636         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16637         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'
16638       else
16639         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16640         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'
16641       fi
16642       hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16643       hardcode_libdir_separator_GCJ=:
16644       ;;
16646     osf4* | osf5*)      # as osf3* with the addition of -msym flag
16647       if test "$GCC" = yes; then
16648         allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16649         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'
16650         hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16651       else
16652         allow_undefined_flag_GCJ=' -expect_unresolved \*'
16653         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'
16654         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~
16655         $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'
16657         # Both c and cxx compiler support -rpath directly
16658         hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16659       fi
16660       hardcode_libdir_separator_GCJ=:
16661       ;;
16663     sco3.2v5*)
16664       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16665       hardcode_shlibpath_var_GCJ=no
16666       export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16667       runpath_var=LD_RUN_PATH
16668       hardcode_runpath_var=yes
16669       ;;
16671     solaris*)
16672       no_undefined_flag_GCJ=' -z text'
16673       if test "$GCC" = yes; then
16674         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16675         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16676           $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16677       else
16678         archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16679         archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16680         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16681       fi
16682       hardcode_libdir_flag_spec_GCJ='-R$libdir'
16683       hardcode_shlibpath_var_GCJ=no
16684       case $host_os in
16685       solaris2.[0-5] | solaris2.[0-5].*) ;;
16686       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16687         whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16688       esac
16689       link_all_deplibs_GCJ=yes
16690       ;;
16692     sunos4*)
16693       if test "x$host_vendor" = xsequent; then
16694         # Use $CC to link under sequent, because it throws in some extra .o
16695         # files that make .init and .fini sections work.
16696         archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16697       else
16698         archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16699       fi
16700       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16701       hardcode_direct_GCJ=yes
16702       hardcode_minus_L_GCJ=yes
16703       hardcode_shlibpath_var_GCJ=no
16704       ;;
16706     sysv4)
16707       case $host_vendor in
16708         sni)
16709           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16710           hardcode_direct_GCJ=yes # is this really true???
16711         ;;
16712         siemens)
16713           ## LD is ld it makes a PLAMLIB
16714           ## CC just makes a GrossModule.
16715           archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16716           reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16717           hardcode_direct_GCJ=no
16718         ;;
16719         motorola)
16720           archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16721           hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16722         ;;
16723       esac
16724       runpath_var='LD_RUN_PATH'
16725       hardcode_shlibpath_var_GCJ=no
16726       ;;
16728     sysv4.3*)
16729       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16730       hardcode_shlibpath_var_GCJ=no
16731       export_dynamic_flag_spec_GCJ='-Bexport'
16732       ;;
16734     sysv4*MP*)
16735       if test -d /usr/nec; then
16736         archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16737         hardcode_shlibpath_var_GCJ=no
16738         runpath_var=LD_RUN_PATH
16739         hardcode_runpath_var=yes
16740         ld_shlibs_GCJ=yes
16741       fi
16742       ;;
16744     sysv4.2uw2*)
16745       archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16746       hardcode_direct_GCJ=yes
16747       hardcode_minus_L_GCJ=no
16748       hardcode_shlibpath_var_GCJ=no
16749       hardcode_runpath_var=yes
16750       runpath_var=LD_RUN_PATH
16751       ;;
16753    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
16754       no_undefined_flag_GCJ='${wl}-z ${wl}text'
16755       if test "$GCC" = yes; then
16756         archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16757       else
16758         archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16759       fi
16760       runpath_var='LD_RUN_PATH'
16761       hardcode_shlibpath_var_GCJ=no
16762       ;;
16764     sysv5*)
16765       no_undefined_flag_GCJ=' -z text'
16766       # $CC -shared without GNU ld will not create a library from C++
16767       # object files and a static libstdc++, better avoid it by now
16768       archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16769       archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16770                 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16771       hardcode_libdir_flag_spec_GCJ=
16772       hardcode_shlibpath_var_GCJ=no
16773       runpath_var='LD_RUN_PATH'
16774       ;;
16776     uts4*)
16777       archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16778       hardcode_libdir_flag_spec_GCJ='-L$libdir'
16779       hardcode_shlibpath_var_GCJ=no
16780       ;;
16782     *)
16783       ld_shlibs_GCJ=no
16784       ;;
16785     esac
16786   fi
16788 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
16789 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
16790 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16792 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16793 if test "$GCC" = yes; then
16794   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16798 # Do we need to explicitly link libc?
16800 case "x$archive_cmds_need_lc_GCJ" in
16801 x|xyes)
16802   # Assume -lc should be added
16803   archive_cmds_need_lc_GCJ=yes
16805   if test "$enable_shared" = yes && test "$GCC" = yes; then
16806     case $archive_cmds_GCJ in
16807     *'~'*)
16808       # FIXME: we may have to deal with multi-command sequences.
16809       ;;
16810     '$CC '*)
16811       # Test whether the compiler implicitly links with -lc since on some
16812       # systems, -lgcc has to come before -lc. If gcc already passes -lc
16813       # to ld, don't add -lc before -lgcc.
16814       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16815 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16816       $rm conftest*
16817       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16819       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16820   (eval $ac_compile) 2>&5
16821   ac_status=$?
16822   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823   (exit $ac_status); } 2>conftest.err; then
16824         soname=conftest
16825         lib=conftest
16826         libobjs=conftest.$ac_objext
16827         deplibs=
16828         wl=$lt_prog_compiler_wl_GCJ
16829         compiler_flags=-v
16830         linker_flags=-v
16831         verstring=
16832         output_objdir=.
16833         libname=conftest
16834         lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
16835         allow_undefined_flag_GCJ=
16836         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16837   (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16838   ac_status=$?
16839   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840   (exit $ac_status); }
16841         then
16842           archive_cmds_need_lc_GCJ=no
16843         else
16844           archive_cmds_need_lc_GCJ=yes
16845         fi
16846         allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
16847       else
16848         cat conftest.err 1>&5
16849       fi
16850       $rm conftest*
16851       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
16852 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
16853       ;;
16854     esac
16855   fi
16856   ;;
16857 esac
16859 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16860 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16861 library_names_spec=
16862 libname_spec='lib$name'
16863 soname_spec=
16864 shrext_cmds=".so"
16865 postinstall_cmds=
16866 postuninstall_cmds=
16867 finish_cmds=
16868 finish_eval=
16869 shlibpath_var=
16870 shlibpath_overrides_runpath=unknown
16871 version_type=none
16872 dynamic_linker="$host_os ld.so"
16873 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16874 if test "$GCC" = yes; then
16875   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16876   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16877     # if the path contains ";" then we assume it to be the separator
16878     # otherwise default to the standard path separator (i.e. ":") - it is
16879     # assumed that no part of a normal pathname contains ";" but that should
16880     # okay in the real world where ";" in dirpaths is itself problematic.
16881     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16882   else
16883     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
16884   fi
16885 else
16886   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16888 need_lib_prefix=unknown
16889 hardcode_into_libs=no
16891 # when you set need_version to no, make sure it does not cause -set_version
16892 # flags to be left without arguments
16893 need_version=unknown
16895 case $host_os in
16896 aix3*)
16897   version_type=linux
16898   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16899   shlibpath_var=LIBPATH
16901   # AIX 3 has no versioning support, so we append a major version to the name.
16902   soname_spec='${libname}${release}${shared_ext}$major'
16903   ;;
16905 aix4* | aix5*)
16906   version_type=linux
16907   need_lib_prefix=no
16908   need_version=no
16909   hardcode_into_libs=yes
16910   if test "$host_cpu" = ia64; then
16911     # AIX 5 supports IA64
16912     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16913     shlibpath_var=LD_LIBRARY_PATH
16914   else
16915     # With GCC up to 2.95.x, collect2 would create an import file
16916     # for dependence libraries.  The import file would start with
16917     # the line `#! .'.  This would cause the generated library to
16918     # depend on `.', always an invalid library.  This was fixed in
16919     # development snapshots of GCC prior to 3.0.
16920     case $host_os in
16921       aix4 | aix4.[01] | aix4.[01].*)
16922       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16923            echo ' yes '
16924            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16925         :
16926       else
16927         can_build_shared=no
16928       fi
16929       ;;
16930     esac
16931     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16932     # soname into executable. Probably we can add versioning support to
16933     # collect2, so additional links can be useful in future.
16934     if test "$aix_use_runtimelinking" = yes; then
16935       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16936       # instead of lib<name>.a to let people know that these are not
16937       # typical AIX shared libraries.
16938       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16939     else
16940       # We preserve .a as extension for shared libraries through AIX4.2
16941       # and later when we are not doing run time linking.
16942       library_names_spec='${libname}${release}.a $libname.a'
16943       soname_spec='${libname}${release}${shared_ext}$major'
16944     fi
16945     shlibpath_var=LIBPATH
16946   fi
16947   ;;
16949 amigaos*)
16950   library_names_spec='$libname.ixlibrary $libname.a'
16951   # Create ${libname}_ixlibrary.a entries in /sys/libs.
16952   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'
16953   ;;
16955 beos*)
16956   library_names_spec='${libname}${shared_ext}'
16957   dynamic_linker="$host_os ld.so"
16958   shlibpath_var=LIBRARY_PATH
16959   ;;
16961 bsdi4*)
16962   version_type=linux
16963   need_version=no
16964   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16965   soname_spec='${libname}${release}${shared_ext}$major'
16966   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16967   shlibpath_var=LD_LIBRARY_PATH
16968   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16969   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16970   # the default ld.so.conf also contains /usr/contrib/lib and
16971   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16972   # libtool to hard-code these into programs
16973   ;;
16975 cygwin* | mingw* | pw32*)
16976   version_type=windows
16977   shrext_cmds=".dll"
16978   need_version=no
16979   need_lib_prefix=no
16981   case $GCC,$host_os in
16982   yes,cygwin* | yes,mingw* | yes,pw32*)
16983     library_names_spec='$libname.dll.a'
16984     # DLL is installed to $(libdir)/../bin by postinstall_cmds
16985     postinstall_cmds='base_file=`basename \${file}`~
16986       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16987       dldir=$destdir/`dirname \$dlpath`~
16988       test -d \$dldir || mkdir -p \$dldir~
16989       $install_prog $dir/$dlname \$dldir/$dlname'
16990     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16991       dlpath=$dir/\$dldll~
16992        $rm \$dlpath'
16993     shlibpath_overrides_runpath=yes
16995     case $host_os in
16996     cygwin*)
16997       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16998       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16999       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17000       ;;
17001     mingw*)
17002       # MinGW DLLs use traditional 'lib' prefix
17003       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17004       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17005       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17006         # It is most probably a Windows format PATH printed by
17007         # mingw gcc, but we are running on Cygwin. Gcc prints its search
17008         # path with ; separators, and with drive letters. We can handle the
17009         # drive letters (cygwin fileutils understands them), so leave them,
17010         # especially as we might pass files found there to a mingw objdump,
17011         # which wouldn't understand a cygwinified path. Ahh.
17012         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17013       else
17014         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
17015       fi
17016       ;;
17017     pw32*)
17018       # pw32 DLLs use 'pw' prefix rather than 'lib'
17019       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
17020       ;;
17021     esac
17022     ;;
17024   *)
17025     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17026     ;;
17027   esac
17028   dynamic_linker='Win32 ld.exe'
17029   # FIXME: first we should search . and the directory the executable is in
17030   shlibpath_var=PATH
17031   ;;
17033 darwin* | rhapsody*)
17034   dynamic_linker="$host_os dyld"
17035   version_type=darwin
17036   need_lib_prefix=no
17037   need_version=no
17038   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17039   soname_spec='${libname}${release}${major}$shared_ext'
17040   shlibpath_overrides_runpath=yes
17041   shlibpath_var=DYLD_LIBRARY_PATH
17042   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
17043   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17044   if test "$GCC" = yes; then
17045     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"`
17046   else
17047     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17048   fi
17049   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17050   ;;
17052 dgux*)
17053   version_type=linux
17054   need_lib_prefix=no
17055   need_version=no
17056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17057   soname_spec='${libname}${release}${shared_ext}$major'
17058   shlibpath_var=LD_LIBRARY_PATH
17059   ;;
17061 freebsd1*)
17062   dynamic_linker=no
17063   ;;
17065 kfreebsd*-gnu)
17066   version_type=linux
17067   need_lib_prefix=no
17068   need_version=no
17069   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17070   soname_spec='${libname}${release}${shared_ext}$major'
17071   shlibpath_var=LD_LIBRARY_PATH
17072   shlibpath_overrides_runpath=no
17073   hardcode_into_libs=yes
17074   dynamic_linker='GNU ld.so'
17075   ;;
17077 freebsd*)
17078   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
17079   version_type=freebsd-$objformat
17080   case $version_type in
17081     freebsd-elf*)
17082       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17083       need_version=no
17084       need_lib_prefix=no
17085       ;;
17086     freebsd-*)
17087       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17088       need_version=yes
17089       ;;
17090   esac
17091   shlibpath_var=LD_LIBRARY_PATH
17092   case $host_os in
17093   freebsd2*)
17094     shlibpath_overrides_runpath=yes
17095     ;;
17096   freebsd3.01* | freebsdelf3.01*)
17097     shlibpath_overrides_runpath=yes
17098     hardcode_into_libs=yes
17099     ;;
17100   *) # from 3.2 on
17101     shlibpath_overrides_runpath=no
17102     hardcode_into_libs=yes
17103     ;;
17104   esac
17105   ;;
17107 gnu*)
17108   version_type=linux
17109   need_lib_prefix=no
17110   need_version=no
17111   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17112   soname_spec='${libname}${release}${shared_ext}$major'
17113   shlibpath_var=LD_LIBRARY_PATH
17114   hardcode_into_libs=yes
17115   ;;
17117 hpux9* | hpux10* | hpux11*)
17118   # Give a soname corresponding to the major version so that dld.sl refuses to
17119   # link against other versions.
17120   version_type=sunos
17121   need_lib_prefix=no
17122   need_version=no
17123   case "$host_cpu" in
17124   ia64*)
17125     shrext_cmds='.so'
17126     hardcode_into_libs=yes
17127     dynamic_linker="$host_os dld.so"
17128     shlibpath_var=LD_LIBRARY_PATH
17129     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17130     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131     soname_spec='${libname}${release}${shared_ext}$major'
17132     if test "X$HPUX_IA64_MODE" = X32; then
17133       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17134     else
17135       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17136     fi
17137     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17138     ;;
17139    hppa*64*)
17140      shrext_cmds='.sl'
17141      hardcode_into_libs=yes
17142      dynamic_linker="$host_os dld.sl"
17143      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17144      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17145      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146      soname_spec='${libname}${release}${shared_ext}$major'
17147      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17148      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17149      ;;
17150    *)
17151     shrext_cmds='.sl'
17152     dynamic_linker="$host_os dld.sl"
17153     shlibpath_var=SHLIB_PATH
17154     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17155     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17156     soname_spec='${libname}${release}${shared_ext}$major'
17157     ;;
17158   esac
17159   # HP-UX runs *really* slowly unless shared libraries are mode 555.
17160   postinstall_cmds='chmod 555 $lib'
17161   ;;
17163 irix5* | irix6* | nonstopux*)
17164   case $host_os in
17165     nonstopux*) version_type=nonstopux ;;
17166     *)
17167         if test "$lt_cv_prog_gnu_ld" = yes; then
17168                 version_type=linux
17169         else
17170                 version_type=irix
17171         fi ;;
17172   esac
17173   need_lib_prefix=no
17174   need_version=no
17175   soname_spec='${libname}${release}${shared_ext}$major'
17176   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17177   case $host_os in
17178   irix5* | nonstopux*)
17179     libsuff= shlibsuff=
17180     ;;
17181   *)
17182     case $LD in # libtool.m4 will add one of these switches to LD
17183     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17184       libsuff= shlibsuff= libmagic=32-bit;;
17185     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17186       libsuff=32 shlibsuff=N32 libmagic=N32;;
17187     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17188       libsuff=64 shlibsuff=64 libmagic=64-bit;;
17189     *) libsuff= shlibsuff= libmagic=never-match;;
17190     esac
17191     ;;
17192   esac
17193   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17194   shlibpath_overrides_runpath=no
17195   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17196   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17197   hardcode_into_libs=yes
17198   ;;
17200 # No shared lib support for Linux oldld, aout, or coff.
17201 linux*oldld* | linux*aout* | linux*coff*)
17202   dynamic_linker=no
17203   ;;
17205 # This must be Linux ELF.
17206 linux*)
17207   version_type=linux
17208   need_lib_prefix=no
17209   need_version=no
17210   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17211   soname_spec='${libname}${release}${shared_ext}$major'
17212   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17213   shlibpath_var=LD_LIBRARY_PATH
17214   shlibpath_overrides_runpath=no
17215   # This implies no fast_install, which is unacceptable.
17216   # Some rework will be needed to allow for fast_install
17217   # before this can be enabled.
17218   hardcode_into_libs=yes
17220   # find out which ABI we are using
17221   libsuff=
17222   case "$host_cpu" in
17223   x86_64*|s390x*|powerpc64*)
17224     echo '#line __oline__ "configure"' > conftest.$ac_ext
17225     if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17226   (eval $ac_compile) 2>&5
17227   ac_status=$?
17228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229   (exit $ac_status); }; then
17230       case `/usr/bin/file conftest.$ac_objext` in
17231       *64-bit*)
17232         libsuff=64
17233         sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17234         ;;
17235       esac
17236     fi
17237     rm -rf conftest*
17238     ;;
17239   esac
17241   # Append ld.so.conf contents to the search path
17242   if test -f /etc/ld.so.conf; then
17243     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17244     sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17245   fi
17247   # We used to test for /lib/ld.so.1 and disable shared libraries on
17248   # powerpc, because MkLinux only supported shared libraries with the
17249   # GNU dynamic linker.  Since this was broken with cross compilers,
17250   # most powerpc-linux boxes support dynamic linking these days and
17251   # people can always --disable-shared, the test was removed, and we
17252   # assume the GNU/Linux dynamic linker is in use.
17253   dynamic_linker='GNU/Linux ld.so'
17254   ;;
17256 knetbsd*-gnu)
17257   version_type=linux
17258   need_lib_prefix=no
17259   need_version=no
17260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17261   soname_spec='${libname}${release}${shared_ext}$major'
17262   shlibpath_var=LD_LIBRARY_PATH
17263   shlibpath_overrides_runpath=no
17264   hardcode_into_libs=yes
17265   dynamic_linker='GNU ld.so'
17266   ;;
17268 netbsd*)
17269   version_type=sunos
17270   need_lib_prefix=no
17271   need_version=no
17272   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17273     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17274     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17275     dynamic_linker='NetBSD (a.out) ld.so'
17276   else
17277     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17278     soname_spec='${libname}${release}${shared_ext}$major'
17279     dynamic_linker='NetBSD ld.elf_so'
17280   fi
17281   shlibpath_var=LD_LIBRARY_PATH
17282   shlibpath_overrides_runpath=yes
17283   hardcode_into_libs=yes
17284   ;;
17286 newsos6)
17287   version_type=linux
17288   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17289   shlibpath_var=LD_LIBRARY_PATH
17290   shlibpath_overrides_runpath=yes
17291   ;;
17293 nto-qnx*)
17294   version_type=linux
17295   need_lib_prefix=no
17296   need_version=no
17297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17298   soname_spec='${libname}${release}${shared_ext}$major'
17299   shlibpath_var=LD_LIBRARY_PATH
17300   shlibpath_overrides_runpath=yes
17301   ;;
17303 openbsd*)
17304   version_type=sunos
17305   need_lib_prefix=no
17306   need_version=yes
17307   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17308   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17309   shlibpath_var=LD_LIBRARY_PATH
17310   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17311     case $host_os in
17312       openbsd2.[89] | openbsd2.[89].*)
17313         shlibpath_overrides_runpath=no
17314         ;;
17315       *)
17316         shlibpath_overrides_runpath=yes
17317         ;;
17318       esac
17319   else
17320     shlibpath_overrides_runpath=yes
17321   fi
17322   ;;
17324 os2*)
17325   libname_spec='$name'
17326   shrext_cmds=".dll"
17327   need_lib_prefix=no
17328   library_names_spec='$libname${shared_ext} $libname.a'
17329   dynamic_linker='OS/2 ld.exe'
17330   shlibpath_var=LIBPATH
17331   ;;
17333 osf3* | osf4* | osf5*)
17334   version_type=osf
17335   need_lib_prefix=no
17336   need_version=no
17337   soname_spec='${libname}${release}${shared_ext}$major'
17338   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17339   shlibpath_var=LD_LIBRARY_PATH
17340   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17341   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17342   ;;
17344 sco3.2v5*)
17345   version_type=osf
17346   soname_spec='${libname}${release}${shared_ext}$major'
17347   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348   shlibpath_var=LD_LIBRARY_PATH
17349   ;;
17351 solaris*)
17352   version_type=linux
17353   need_lib_prefix=no
17354   need_version=no
17355   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17356   soname_spec='${libname}${release}${shared_ext}$major'
17357   shlibpath_var=LD_LIBRARY_PATH
17358   shlibpath_overrides_runpath=yes
17359   hardcode_into_libs=yes
17360   # ldd complains unless libraries are executable
17361   postinstall_cmds='chmod +x $lib'
17362   ;;
17364 sunos4*)
17365   version_type=sunos
17366   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17367   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17368   shlibpath_var=LD_LIBRARY_PATH
17369   shlibpath_overrides_runpath=yes
17370   if test "$with_gnu_ld" = yes; then
17371     need_lib_prefix=no
17372   fi
17373   need_version=yes
17374   ;;
17376 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17377   version_type=linux
17378   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17379   soname_spec='${libname}${release}${shared_ext}$major'
17380   shlibpath_var=LD_LIBRARY_PATH
17381   case $host_vendor in
17382     sni)
17383       shlibpath_overrides_runpath=no
17384       need_lib_prefix=no
17385       export_dynamic_flag_spec='${wl}-Blargedynsym'
17386       runpath_var=LD_RUN_PATH
17387       ;;
17388     siemens)
17389       need_lib_prefix=no
17390       ;;
17391     motorola)
17392       need_lib_prefix=no
17393       need_version=no
17394       shlibpath_overrides_runpath=no
17395       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17396       ;;
17397   esac
17398   ;;
17400 sysv4*MP*)
17401   if test -d /usr/nec ;then
17402     version_type=linux
17403     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17404     soname_spec='$libname${shared_ext}.$major'
17405     shlibpath_var=LD_LIBRARY_PATH
17406   fi
17407   ;;
17409 uts4*)
17410   version_type=linux
17411   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17412   soname_spec='${libname}${release}${shared_ext}$major'
17413   shlibpath_var=LD_LIBRARY_PATH
17414   ;;
17417   dynamic_linker=no
17418   ;;
17419 esac
17420 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17421 echo "${ECHO_T}$dynamic_linker" >&6
17422 test "$dynamic_linker" = no && can_build_shared=no
17424 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17425 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17426 hardcode_action_GCJ=
17427 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17428    test -n "$runpath_var GCJ" || \
17429    test "X$hardcode_automatic_GCJ"="Xyes" ; then
17431   # We can hardcode non-existant directories.
17432   if test "$hardcode_direct_GCJ" != no &&
17433      # If the only mechanism to avoid hardcoding is shlibpath_var, we
17434      # have to relink, otherwise we might link with an installed library
17435      # when we should be linking with a yet-to-be-installed one
17436      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17437      test "$hardcode_minus_L_GCJ" != no; then
17438     # Linking always hardcodes the temporary library directory.
17439     hardcode_action_GCJ=relink
17440   else
17441     # We can link without hardcoding, and we can hardcode nonexisting dirs.
17442     hardcode_action_GCJ=immediate
17443   fi
17444 else
17445   # We cannot hardcode anything, or else we can only hardcode existing
17446   # directories.
17447   hardcode_action_GCJ=unsupported
17449 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
17450 echo "${ECHO_T}$hardcode_action_GCJ" >&6
17452 if test "$hardcode_action_GCJ" = relink; then
17453   # Fast installation is not supported
17454   enable_fast_install=no
17455 elif test "$shlibpath_overrides_runpath" = yes ||
17456      test "$enable_shared" = no; then
17457   # Fast installation is not necessary
17458   enable_fast_install=needless
17461 striplib=
17462 old_striplib=
17463 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17464 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17465 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17466   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17467   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17468   echo "$as_me:$LINENO: result: yes" >&5
17469 echo "${ECHO_T}yes" >&6
17470 else
17471 # FIXME - insert some real tests, host_os isn't really good enough
17472   case $host_os in
17473    darwin*)
17474        if test -n "$STRIP" ; then
17475          striplib="$STRIP -x"
17476          echo "$as_me:$LINENO: result: yes" >&5
17477 echo "${ECHO_T}yes" >&6
17478        else
17479   echo "$as_me:$LINENO: result: no" >&5
17480 echo "${ECHO_T}no" >&6
17482        ;;
17483    *)
17484   echo "$as_me:$LINENO: result: no" >&5
17485 echo "${ECHO_T}no" >&6
17486     ;;
17487   esac
17490 if test "x$enable_dlopen" != xyes; then
17491   enable_dlopen=unknown
17492   enable_dlopen_self=unknown
17493   enable_dlopen_self_static=unknown
17494 else
17495   lt_cv_dlopen=no
17496   lt_cv_dlopen_libs=
17498   case $host_os in
17499   beos*)
17500     lt_cv_dlopen="load_add_on"
17501     lt_cv_dlopen_libs=
17502     lt_cv_dlopen_self=yes
17503     ;;
17505   mingw* | pw32*)
17506     lt_cv_dlopen="LoadLibrary"
17507     lt_cv_dlopen_libs=
17508    ;;
17510   cygwin*)
17511     lt_cv_dlopen="dlopen"
17512     lt_cv_dlopen_libs=
17513    ;;
17515   darwin*)
17516   # if libdl is installed we need to link against it
17517     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17518 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17519 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17520   echo $ECHO_N "(cached) $ECHO_C" >&6
17521 else
17522   ac_check_lib_save_LIBS=$LIBS
17523 LIBS="-ldl  $LIBS"
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h.  */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h.  */
17531 /* Override any gcc2 internal prototype to avoid an error.  */
17532 #ifdef __cplusplus
17533 extern "C"
17534 #endif
17535 /* We use char because int might match the return type of a gcc2
17536    builtin and then its argument prototype would still apply.  */
17537 char dlopen ();
17539 main ()
17541 dlopen ();
17542   ;
17543   return 0;
17545 _ACEOF
17546 rm -f conftest.$ac_objext conftest$ac_exeext
17547 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17548   (eval $ac_link) 2>conftest.er1
17549   ac_status=$?
17550   grep -v '^ *+' conftest.er1 >conftest.err
17551   rm -f conftest.er1
17552   cat conftest.err >&5
17553   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17554   (exit $ac_status); } &&
17555          { ac_try='test -z "$ac_c_werror_flag"
17556                          || test ! -s conftest.err'
17557   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17558   (eval $ac_try) 2>&5
17559   ac_status=$?
17560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17561   (exit $ac_status); }; } &&
17562          { ac_try='test -s conftest$ac_exeext'
17563   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17564   (eval $ac_try) 2>&5
17565   ac_status=$?
17566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567   (exit $ac_status); }; }; then
17568   ac_cv_lib_dl_dlopen=yes
17569 else
17570   echo "$as_me: failed program was:" >&5
17571 sed 's/^/| /' conftest.$ac_ext >&5
17573 ac_cv_lib_dl_dlopen=no
17575 rm -f conftest.err conftest.$ac_objext \
17576       conftest$ac_exeext conftest.$ac_ext
17577 LIBS=$ac_check_lib_save_LIBS
17579 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17580 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17581 if test $ac_cv_lib_dl_dlopen = yes; then
17582   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17583 else
17584   
17585     lt_cv_dlopen="dyld"
17586     lt_cv_dlopen_libs=
17587     lt_cv_dlopen_self=yes
17588     
17591    ;;
17593   *)
17594     echo "$as_me:$LINENO: checking for shl_load" >&5
17595 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17596 if test "${ac_cv_func_shl_load+set}" = set; then
17597   echo $ECHO_N "(cached) $ECHO_C" >&6
17598 else
17599   cat >conftest.$ac_ext <<_ACEOF
17600 /* confdefs.h.  */
17601 _ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h.  */
17605 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17606    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17607 #define shl_load innocuous_shl_load
17609 /* System header to define __stub macros and hopefully few prototypes,
17610     which can conflict with char shl_load (); below.
17611     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17612     <limits.h> exists even on freestanding compilers.  */
17614 #ifdef __STDC__
17615 # include <limits.h>
17616 #else
17617 # include <assert.h>
17618 #endif
17620 #undef shl_load
17622 /* Override any gcc2 internal prototype to avoid an error.  */
17623 #ifdef __cplusplus
17624 extern "C"
17626 #endif
17627 /* We use char because int might match the return type of a gcc2
17628    builtin and then its argument prototype would still apply.  */
17629 char shl_load ();
17630 /* The GNU C library defines this for functions which it implements
17631     to always fail with ENOSYS.  Some functions are actually named
17632     something starting with __ and the normal name is an alias.  */
17633 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17634 choke me
17635 #else
17636 char (*f) () = shl_load;
17637 #endif
17638 #ifdef __cplusplus
17640 #endif
17643 main ()
17645 return f != shl_load;
17646   ;
17647   return 0;
17649 _ACEOF
17650 rm -f conftest.$ac_objext conftest$ac_exeext
17651 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17652   (eval $ac_link) 2>conftest.er1
17653   ac_status=$?
17654   grep -v '^ *+' conftest.er1 >conftest.err
17655   rm -f conftest.er1
17656   cat conftest.err >&5
17657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658   (exit $ac_status); } &&
17659          { ac_try='test -z "$ac_c_werror_flag"
17660                          || test ! -s conftest.err'
17661   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17662   (eval $ac_try) 2>&5
17663   ac_status=$?
17664   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665   (exit $ac_status); }; } &&
17666          { ac_try='test -s conftest$ac_exeext'
17667   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17668   (eval $ac_try) 2>&5
17669   ac_status=$?
17670   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17671   (exit $ac_status); }; }; then
17672   ac_cv_func_shl_load=yes
17673 else
17674   echo "$as_me: failed program was:" >&5
17675 sed 's/^/| /' conftest.$ac_ext >&5
17677 ac_cv_func_shl_load=no
17679 rm -f conftest.err conftest.$ac_objext \
17680       conftest$ac_exeext conftest.$ac_ext
17682 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17683 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17684 if test $ac_cv_func_shl_load = yes; then
17685   lt_cv_dlopen="shl_load"
17686 else
17687   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17688 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17689 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17690   echo $ECHO_N "(cached) $ECHO_C" >&6
17691 else
17692   ac_check_lib_save_LIBS=$LIBS
17693 LIBS="-ldld  $LIBS"
17694 cat >conftest.$ac_ext <<_ACEOF
17695 /* confdefs.h.  */
17696 _ACEOF
17697 cat confdefs.h >>conftest.$ac_ext
17698 cat >>conftest.$ac_ext <<_ACEOF
17699 /* end confdefs.h.  */
17701 /* Override any gcc2 internal prototype to avoid an error.  */
17702 #ifdef __cplusplus
17703 extern "C"
17704 #endif
17705 /* We use char because int might match the return type of a gcc2
17706    builtin and then its argument prototype would still apply.  */
17707 char shl_load ();
17709 main ()
17711 shl_load ();
17712   ;
17713   return 0;
17715 _ACEOF
17716 rm -f conftest.$ac_objext conftest$ac_exeext
17717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17718   (eval $ac_link) 2>conftest.er1
17719   ac_status=$?
17720   grep -v '^ *+' conftest.er1 >conftest.err
17721   rm -f conftest.er1
17722   cat conftest.err >&5
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); } &&
17725          { ac_try='test -z "$ac_c_werror_flag"
17726                          || test ! -s conftest.err'
17727   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17728   (eval $ac_try) 2>&5
17729   ac_status=$?
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); }; } &&
17732          { ac_try='test -s conftest$ac_exeext'
17733   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17734   (eval $ac_try) 2>&5
17735   ac_status=$?
17736   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737   (exit $ac_status); }; }; then
17738   ac_cv_lib_dld_shl_load=yes
17739 else
17740   echo "$as_me: failed program was:" >&5
17741 sed 's/^/| /' conftest.$ac_ext >&5
17743 ac_cv_lib_dld_shl_load=no
17745 rm -f conftest.err conftest.$ac_objext \
17746       conftest$ac_exeext conftest.$ac_ext
17747 LIBS=$ac_check_lib_save_LIBS
17749 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17750 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17751 if test $ac_cv_lib_dld_shl_load = yes; then
17752   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17753 else
17754   echo "$as_me:$LINENO: checking for dlopen" >&5
17755 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17756 if test "${ac_cv_func_dlopen+set}" = set; then
17757   echo $ECHO_N "(cached) $ECHO_C" >&6
17758 else
17759   cat >conftest.$ac_ext <<_ACEOF
17760 /* confdefs.h.  */
17761 _ACEOF
17762 cat confdefs.h >>conftest.$ac_ext
17763 cat >>conftest.$ac_ext <<_ACEOF
17764 /* end confdefs.h.  */
17765 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17766    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17767 #define dlopen innocuous_dlopen
17769 /* System header to define __stub macros and hopefully few prototypes,
17770     which can conflict with char dlopen (); below.
17771     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17772     <limits.h> exists even on freestanding compilers.  */
17774 #ifdef __STDC__
17775 # include <limits.h>
17776 #else
17777 # include <assert.h>
17778 #endif
17780 #undef dlopen
17782 /* Override any gcc2 internal prototype to avoid an error.  */
17783 #ifdef __cplusplus
17784 extern "C"
17786 #endif
17787 /* We use char because int might match the return type of a gcc2
17788    builtin and then its argument prototype would still apply.  */
17789 char dlopen ();
17790 /* The GNU C library defines this for functions which it implements
17791     to always fail with ENOSYS.  Some functions are actually named
17792     something starting with __ and the normal name is an alias.  */
17793 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17794 choke me
17795 #else
17796 char (*f) () = dlopen;
17797 #endif
17798 #ifdef __cplusplus
17800 #endif
17803 main ()
17805 return f != dlopen;
17806   ;
17807   return 0;
17809 _ACEOF
17810 rm -f conftest.$ac_objext conftest$ac_exeext
17811 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17812   (eval $ac_link) 2>conftest.er1
17813   ac_status=$?
17814   grep -v '^ *+' conftest.er1 >conftest.err
17815   rm -f conftest.er1
17816   cat conftest.err >&5
17817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17818   (exit $ac_status); } &&
17819          { ac_try='test -z "$ac_c_werror_flag"
17820                          || test ! -s conftest.err'
17821   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17822   (eval $ac_try) 2>&5
17823   ac_status=$?
17824   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825   (exit $ac_status); }; } &&
17826          { ac_try='test -s conftest$ac_exeext'
17827   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17828   (eval $ac_try) 2>&5
17829   ac_status=$?
17830   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831   (exit $ac_status); }; }; then
17832   ac_cv_func_dlopen=yes
17833 else
17834   echo "$as_me: failed program was:" >&5
17835 sed 's/^/| /' conftest.$ac_ext >&5
17837 ac_cv_func_dlopen=no
17839 rm -f conftest.err conftest.$ac_objext \
17840       conftest$ac_exeext conftest.$ac_ext
17842 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17843 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17844 if test $ac_cv_func_dlopen = yes; then
17845   lt_cv_dlopen="dlopen"
17846 else
17847   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17848 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17849 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17850   echo $ECHO_N "(cached) $ECHO_C" >&6
17851 else
17852   ac_check_lib_save_LIBS=$LIBS
17853 LIBS="-ldl  $LIBS"
17854 cat >conftest.$ac_ext <<_ACEOF
17855 /* confdefs.h.  */
17856 _ACEOF
17857 cat confdefs.h >>conftest.$ac_ext
17858 cat >>conftest.$ac_ext <<_ACEOF
17859 /* end confdefs.h.  */
17861 /* Override any gcc2 internal prototype to avoid an error.  */
17862 #ifdef __cplusplus
17863 extern "C"
17864 #endif
17865 /* We use char because int might match the return type of a gcc2
17866    builtin and then its argument prototype would still apply.  */
17867 char dlopen ();
17869 main ()
17871 dlopen ();
17872   ;
17873   return 0;
17875 _ACEOF
17876 rm -f conftest.$ac_objext conftest$ac_exeext
17877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17878   (eval $ac_link) 2>conftest.er1
17879   ac_status=$?
17880   grep -v '^ *+' conftest.er1 >conftest.err
17881   rm -f conftest.er1
17882   cat conftest.err >&5
17883   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17884   (exit $ac_status); } &&
17885          { ac_try='test -z "$ac_c_werror_flag"
17886                          || test ! -s conftest.err'
17887   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17888   (eval $ac_try) 2>&5
17889   ac_status=$?
17890   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891   (exit $ac_status); }; } &&
17892          { ac_try='test -s conftest$ac_exeext'
17893   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17894   (eval $ac_try) 2>&5
17895   ac_status=$?
17896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897   (exit $ac_status); }; }; then
17898   ac_cv_lib_dl_dlopen=yes
17899 else
17900   echo "$as_me: failed program was:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_cv_lib_dl_dlopen=no
17905 rm -f conftest.err conftest.$ac_objext \
17906       conftest$ac_exeext conftest.$ac_ext
17907 LIBS=$ac_check_lib_save_LIBS
17909 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17910 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17911 if test $ac_cv_lib_dl_dlopen = yes; then
17912   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17913 else
17914   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17915 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17916 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17917   echo $ECHO_N "(cached) $ECHO_C" >&6
17918 else
17919   ac_check_lib_save_LIBS=$LIBS
17920 LIBS="-lsvld  $LIBS"
17921 cat >conftest.$ac_ext <<_ACEOF
17922 /* confdefs.h.  */
17923 _ACEOF
17924 cat confdefs.h >>conftest.$ac_ext
17925 cat >>conftest.$ac_ext <<_ACEOF
17926 /* end confdefs.h.  */
17928 /* Override any gcc2 internal prototype to avoid an error.  */
17929 #ifdef __cplusplus
17930 extern "C"
17931 #endif
17932 /* We use char because int might match the return type of a gcc2
17933    builtin and then its argument prototype would still apply.  */
17934 char dlopen ();
17936 main ()
17938 dlopen ();
17939   ;
17940   return 0;
17942 _ACEOF
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17945   (eval $ac_link) 2>conftest.er1
17946   ac_status=$?
17947   grep -v '^ *+' conftest.er1 >conftest.err
17948   rm -f conftest.er1
17949   cat conftest.err >&5
17950   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17951   (exit $ac_status); } &&
17952          { ac_try='test -z "$ac_c_werror_flag"
17953                          || test ! -s conftest.err'
17954   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17955   (eval $ac_try) 2>&5
17956   ac_status=$?
17957   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958   (exit $ac_status); }; } &&
17959          { ac_try='test -s conftest$ac_exeext'
17960   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17961   (eval $ac_try) 2>&5
17962   ac_status=$?
17963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17964   (exit $ac_status); }; }; then
17965   ac_cv_lib_svld_dlopen=yes
17966 else
17967   echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17970 ac_cv_lib_svld_dlopen=no
17972 rm -f conftest.err conftest.$ac_objext \
17973       conftest$ac_exeext conftest.$ac_ext
17974 LIBS=$ac_check_lib_save_LIBS
17976 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17977 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17978 if test $ac_cv_lib_svld_dlopen = yes; then
17979   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17980 else
17981   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17982 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17983 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17984   echo $ECHO_N "(cached) $ECHO_C" >&6
17985 else
17986   ac_check_lib_save_LIBS=$LIBS
17987 LIBS="-ldld  $LIBS"
17988 cat >conftest.$ac_ext <<_ACEOF
17989 /* confdefs.h.  */
17990 _ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h.  */
17995 /* Override any gcc2 internal prototype to avoid an error.  */
17996 #ifdef __cplusplus
17997 extern "C"
17998 #endif
17999 /* We use char because int might match the return type of a gcc2
18000    builtin and then its argument prototype would still apply.  */
18001 char dld_link ();
18003 main ()
18005 dld_link ();
18006   ;
18007   return 0;
18009 _ACEOF
18010 rm -f conftest.$ac_objext conftest$ac_exeext
18011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18012   (eval $ac_link) 2>conftest.er1
18013   ac_status=$?
18014   grep -v '^ *+' conftest.er1 >conftest.err
18015   rm -f conftest.er1
18016   cat conftest.err >&5
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); } &&
18019          { ac_try='test -z "$ac_c_werror_flag"
18020                          || test ! -s conftest.err'
18021   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18022   (eval $ac_try) 2>&5
18023   ac_status=$?
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); }; } &&
18026          { ac_try='test -s conftest$ac_exeext'
18027   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18028   (eval $ac_try) 2>&5
18029   ac_status=$?
18030   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18031   (exit $ac_status); }; }; then
18032   ac_cv_lib_dld_dld_link=yes
18033 else
18034   echo "$as_me: failed program was:" >&5
18035 sed 's/^/| /' conftest.$ac_ext >&5
18037 ac_cv_lib_dld_dld_link=no
18039 rm -f conftest.err conftest.$ac_objext \
18040       conftest$ac_exeext conftest.$ac_ext
18041 LIBS=$ac_check_lib_save_LIBS
18043 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
18044 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
18045 if test $ac_cv_lib_dld_dld_link = yes; then
18046   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
18049               
18052             
18055           
18058         
18061       
18064     ;;
18065   esac
18067   if test "x$lt_cv_dlopen" != xno; then
18068     enable_dlopen=yes
18069   else
18070     enable_dlopen=no
18071   fi
18073   case $lt_cv_dlopen in
18074   dlopen)
18075     save_CPPFLAGS="$CPPFLAGS"
18076     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18078     save_LDFLAGS="$LDFLAGS"
18079     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18081     save_LIBS="$LIBS"
18082     LIBS="$lt_cv_dlopen_libs $LIBS"
18084     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
18085 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
18086 if test "${lt_cv_dlopen_self+set}" = set; then
18087   echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089           if test "$cross_compiling" = yes; then :
18090   lt_cv_dlopen_self=cross
18091 else
18092   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18093   lt_status=$lt_dlunknown
18094   cat > conftest.$ac_ext <<EOF
18095 #line __oline__ "configure"
18096 #include "confdefs.h"
18098 #if HAVE_DLFCN_H
18099 #include <dlfcn.h>
18100 #endif
18102 #include <stdio.h>
18104 #ifdef RTLD_GLOBAL
18105 #  define LT_DLGLOBAL           RTLD_GLOBAL
18106 #else
18107 #  ifdef DL_GLOBAL
18108 #    define LT_DLGLOBAL         DL_GLOBAL
18109 #  else
18110 #    define LT_DLGLOBAL         0
18111 #  endif
18112 #endif
18114 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18115    find out it does not work in some platform. */
18116 #ifndef LT_DLLAZY_OR_NOW
18117 #  ifdef RTLD_LAZY
18118 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18119 #  else
18120 #    ifdef DL_LAZY
18121 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18122 #    else
18123 #      ifdef RTLD_NOW
18124 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18125 #      else
18126 #        ifdef DL_NOW
18127 #          define LT_DLLAZY_OR_NOW      DL_NOW
18128 #        else
18129 #          define LT_DLLAZY_OR_NOW      0
18130 #        endif
18131 #      endif
18132 #    endif
18133 #  endif
18134 #endif
18136 #ifdef __cplusplus
18137 extern "C" void exit (int);
18138 #endif
18140 void fnord() { int i=42;}
18141 int main ()
18143   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18144   int status = $lt_dlunknown;
18146   if (self)
18147     {
18148       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18149       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18150       /* dlclose (self); */
18151     }
18153     exit (status);
18156   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18157   (eval $ac_link) 2>&5
18158   ac_status=$?
18159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18160   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18161     (./conftest; exit; ) 2>/dev/null
18162     lt_status=$?
18163     case x$lt_status in
18164       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18165       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18166       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
18167     esac
18168   else :
18169     # compilation failed
18170     lt_cv_dlopen_self=no
18171   fi
18173 rm -fr conftest*
18175     
18177 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
18178 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
18180     if test "x$lt_cv_dlopen_self" = xyes; then
18181       LDFLAGS="$LDFLAGS $link_static_flag"
18182       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
18183 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
18184 if test "${lt_cv_dlopen_self_static+set}" = set; then
18185   echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187           if test "$cross_compiling" = yes; then :
18188   lt_cv_dlopen_self_static=cross
18189 else
18190   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18191   lt_status=$lt_dlunknown
18192   cat > conftest.$ac_ext <<EOF
18193 #line __oline__ "configure"
18194 #include "confdefs.h"
18196 #if HAVE_DLFCN_H
18197 #include <dlfcn.h>
18198 #endif
18200 #include <stdio.h>
18202 #ifdef RTLD_GLOBAL
18203 #  define LT_DLGLOBAL           RTLD_GLOBAL
18204 #else
18205 #  ifdef DL_GLOBAL
18206 #    define LT_DLGLOBAL         DL_GLOBAL
18207 #  else
18208 #    define LT_DLGLOBAL         0
18209 #  endif
18210 #endif
18212 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18213    find out it does not work in some platform. */
18214 #ifndef LT_DLLAZY_OR_NOW
18215 #  ifdef RTLD_LAZY
18216 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
18217 #  else
18218 #    ifdef DL_LAZY
18219 #      define LT_DLLAZY_OR_NOW          DL_LAZY
18220 #    else
18221 #      ifdef RTLD_NOW
18222 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
18223 #      else
18224 #        ifdef DL_NOW
18225 #          define LT_DLLAZY_OR_NOW      DL_NOW
18226 #        else
18227 #          define LT_DLLAZY_OR_NOW      0
18228 #        endif
18229 #      endif
18230 #    endif
18231 #  endif
18232 #endif
18234 #ifdef __cplusplus
18235 extern "C" void exit (int);
18236 #endif
18238 void fnord() { int i=42;}
18239 int main ()
18241   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18242   int status = $lt_dlunknown;
18244   if (self)
18245     {
18246       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
18247       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18248       /* dlclose (self); */
18249     }
18251     exit (status);
18254   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18255   (eval $ac_link) 2>&5
18256   ac_status=$?
18257   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18259     (./conftest; exit; ) 2>/dev/null
18260     lt_status=$?
18261     case x$lt_status in
18262       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18263       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18264       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18265     esac
18266   else :
18267     # compilation failed
18268     lt_cv_dlopen_self_static=no
18269   fi
18271 rm -fr conftest*
18273       
18275 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18276 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18277     fi
18279     CPPFLAGS="$save_CPPFLAGS"
18280     LDFLAGS="$save_LDFLAGS"
18281     LIBS="$save_LIBS"
18282     ;;
18283   esac
18285   case $lt_cv_dlopen_self in
18286   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18287   *) enable_dlopen_self=unknown ;;
18288   esac
18290   case $lt_cv_dlopen_self_static in
18291   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18292   *) enable_dlopen_self_static=unknown ;;
18293   esac
18297 # The else clause should only fire when bootstrapping the
18298 # libtool distribution, otherwise you forgot to ship ltmain.sh
18299 # with your package, and you will get complaints that there are
18300 # no rules to generate ltmain.sh.
18301 if test -f "$ltmain"; then
18302   # See if we are running on zsh, and set the options which allow our commands through
18303   # without removal of \ escapes.
18304   if test -n "${ZSH_VERSION+set}" ; then
18305     setopt NO_GLOB_SUBST
18306   fi
18307   # Now quote all the things that may contain metacharacters while being
18308   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18309   # variables and quote the copies for generation of the libtool script.
18310   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18311     SED SHELL STRIP \
18312     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18313     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18314     deplibs_check_method reload_flag reload_cmds need_locks \
18315     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18316     lt_cv_sys_global_symbol_to_c_name_address \
18317     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18318     old_postinstall_cmds old_postuninstall_cmds \
18319     compiler_GCJ \
18320     CC_GCJ \
18321     LD_GCJ \
18322     lt_prog_compiler_wl_GCJ \
18323     lt_prog_compiler_pic_GCJ \
18324     lt_prog_compiler_static_GCJ \
18325     lt_prog_compiler_no_builtin_flag_GCJ \
18326     export_dynamic_flag_spec_GCJ \
18327     thread_safe_flag_spec_GCJ \
18328     whole_archive_flag_spec_GCJ \
18329     enable_shared_with_static_runtimes_GCJ \
18330     old_archive_cmds_GCJ \
18331     old_archive_from_new_cmds_GCJ \
18332     predep_objects_GCJ \
18333     postdep_objects_GCJ \
18334     predeps_GCJ \
18335     postdeps_GCJ \
18336     compiler_lib_search_path_GCJ \
18337     archive_cmds_GCJ \
18338     archive_expsym_cmds_GCJ \
18339     postinstall_cmds_GCJ \
18340     postuninstall_cmds_GCJ \
18341     old_archive_from_expsyms_cmds_GCJ \
18342     allow_undefined_flag_GCJ \
18343     no_undefined_flag_GCJ \
18344     export_symbols_cmds_GCJ \
18345     hardcode_libdir_flag_spec_GCJ \
18346     hardcode_libdir_flag_spec_ld_GCJ \
18347     hardcode_libdir_separator_GCJ \
18348     hardcode_automatic_GCJ \
18349     module_cmds_GCJ \
18350     module_expsym_cmds_GCJ \
18351     lt_cv_prog_compiler_c_o_GCJ \
18352     exclude_expsyms_GCJ \
18353     include_expsyms_GCJ; do
18355     case $var in
18356     old_archive_cmds_GCJ | \
18357     old_archive_from_new_cmds_GCJ | \
18358     archive_cmds_GCJ | \
18359     archive_expsym_cmds_GCJ | \
18360     module_cmds_GCJ | \
18361     module_expsym_cmds_GCJ | \
18362     old_archive_from_expsyms_cmds_GCJ | \
18363     export_symbols_cmds_GCJ | \
18364     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18365     postinstall_cmds | postuninstall_cmds | \
18366     old_postinstall_cmds | old_postuninstall_cmds | \
18367     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18368       # Double-quote double-evaled strings.
18369       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18370       ;;
18371     *)
18372       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18373       ;;
18374     esac
18375   done
18377   case $lt_echo in
18378   *'\$0 --fallback-echo"')
18379     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18380     ;;
18381   esac
18383 cfgfile="$ofile"
18385   cat <<__EOF__ >> "$cfgfile"
18386 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18388 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18390 # Shell to use when invoking shell scripts.
18391 SHELL=$lt_SHELL
18393 # Whether or not to build shared libraries.
18394 build_libtool_libs=$enable_shared
18396 # Whether or not to build static libraries.
18397 build_old_libs=$enable_static
18399 # Whether or not to add -lc for building shared libraries.
18400 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18402 # Whether or not to disallow shared libs when runtime libs are static
18403 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18405 # Whether or not to optimize for fast installation.
18406 fast_install=$enable_fast_install
18408 # The host system.
18409 host_alias=$host_alias
18410 host=$host
18412 # An echo program that does not interpret backslashes.
18413 echo=$lt_echo
18415 # The archiver.
18416 AR=$lt_AR
18417 AR_FLAGS=$lt_AR_FLAGS
18419 # A C compiler.
18420 LTCC=$lt_LTCC
18422 # A language-specific compiler.
18423 CC=$lt_compiler_GCJ
18425 # Is the compiler the GNU C compiler?
18426 with_gcc=$GCC_GCJ
18428 # An ERE matcher.
18429 EGREP=$lt_EGREP
18431 # The linker used to build libraries.
18432 LD=$lt_LD_GCJ
18434 # Whether we need hard or soft links.
18435 LN_S=$lt_LN_S
18437 # A BSD-compatible nm program.
18438 NM=$lt_NM
18440 # A symbol stripping program
18441 STRIP=$lt_STRIP
18443 # Used to examine libraries when file_magic_cmd begins "file"
18444 MAGIC_CMD=$MAGIC_CMD
18446 # Used on cygwin: DLL creation program.
18447 DLLTOOL="$DLLTOOL"
18449 # Used on cygwin: object dumper.
18450 OBJDUMP="$OBJDUMP"
18452 # Used on cygwin: assembler.
18453 AS="$AS"
18455 # The name of the directory that contains temporary libtool files.
18456 objdir=$objdir
18458 # How to create reloadable object files.
18459 reload_flag=$lt_reload_flag
18460 reload_cmds=$lt_reload_cmds
18462 # How to pass a linker flag through the compiler.
18463 wl=$lt_lt_prog_compiler_wl_GCJ
18465 # Object file suffix (normally "o").
18466 objext="$ac_objext"
18468 # Old archive suffix (normally "a").
18469 libext="$libext"
18471 # Shared library suffix (normally ".so").
18472 shrext_cmds='$shrext_cmds'
18474 # Executable file suffix (normally "").
18475 exeext="$exeext"
18477 # Additional compiler flags for building library objects.
18478 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18479 pic_mode=$pic_mode
18481 # What is the maximum length of a command?
18482 max_cmd_len=$lt_cv_sys_max_cmd_len
18484 # Does compiler simultaneously support -c and -o options?
18485 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18487 # Must we lock files when doing compilation ?
18488 need_locks=$lt_need_locks
18490 # Do we need the lib prefix for modules?
18491 need_lib_prefix=$need_lib_prefix
18493 # Do we need a version for libraries?
18494 need_version=$need_version
18496 # Whether dlopen is supported.
18497 dlopen_support=$enable_dlopen
18499 # Whether dlopen of programs is supported.
18500 dlopen_self=$enable_dlopen_self
18502 # Whether dlopen of statically linked programs is supported.
18503 dlopen_self_static=$enable_dlopen_self_static
18505 # Compiler flag to prevent dynamic linking.
18506 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18508 # Compiler flag to turn off builtin functions.
18509 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18511 # Compiler flag to allow reflexive dlopens.
18512 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18514 # Compiler flag to generate shared objects directly from archives.
18515 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18517 # Compiler flag to generate thread-safe objects.
18518 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18520 # Library versioning type.
18521 version_type=$version_type
18523 # Format of library name prefix.
18524 libname_spec=$lt_libname_spec
18526 # List of archive names.  First name is the real one, the rest are links.
18527 # The last name is the one that the linker finds with -lNAME.
18528 library_names_spec=$lt_library_names_spec
18530 # The coded name of the library, if different from the real name.
18531 soname_spec=$lt_soname_spec
18533 # Commands used to build and install an old-style archive.
18534 RANLIB=$lt_RANLIB
18535 old_archive_cmds=$lt_old_archive_cmds_GCJ
18536 old_postinstall_cmds=$lt_old_postinstall_cmds
18537 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18539 # Create an old-style archive from a shared archive.
18540 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18542 # Create a temporary old-style archive to link instead of a shared archive.
18543 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18545 # Commands used to build and install a shared archive.
18546 archive_cmds=$lt_archive_cmds_GCJ
18547 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18548 postinstall_cmds=$lt_postinstall_cmds
18549 postuninstall_cmds=$lt_postuninstall_cmds
18551 # Commands used to build a loadable module (assumed same as above if empty)
18552 module_cmds=$lt_module_cmds_GCJ
18553 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18555 # Commands to strip libraries.
18556 old_striplib=$lt_old_striplib
18557 striplib=$lt_striplib
18559 # Dependencies to place before the objects being linked to create a
18560 # shared library.
18561 predep_objects=$lt_predep_objects_GCJ
18563 # Dependencies to place after the objects being linked to create a
18564 # shared library.
18565 postdep_objects=$lt_postdep_objects_GCJ
18567 # Dependencies to place before the objects being linked to create a
18568 # shared library.
18569 predeps=$lt_predeps_GCJ
18571 # Dependencies to place after the objects being linked to create a
18572 # shared library.
18573 postdeps=$lt_postdeps_GCJ
18575 # The library search path used internally by the compiler when linking
18576 # a shared library.
18577 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18579 # Method to check whether dependent libraries are shared objects.
18580 deplibs_check_method=$lt_deplibs_check_method
18582 # Command to use when deplibs_check_method == file_magic.
18583 file_magic_cmd=$lt_file_magic_cmd
18585 # Flag that allows shared libraries with undefined symbols to be built.
18586 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18588 # Flag that forces no undefined symbols.
18589 no_undefined_flag=$lt_no_undefined_flag_GCJ
18591 # Commands used to finish a libtool library installation in a directory.
18592 finish_cmds=$lt_finish_cmds
18594 # Same as above, but a single script fragment to be evaled but not shown.
18595 finish_eval=$lt_finish_eval
18597 # Take the output of nm and produce a listing of raw symbols and C names.
18598 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18600 # Transform the output of nm in a proper C declaration
18601 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18603 # Transform the output of nm in a C name address pair
18604 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18606 # This is the shared library runtime path variable.
18607 runpath_var=$runpath_var
18609 # This is the shared library path variable.
18610 shlibpath_var=$shlibpath_var
18612 # Is shlibpath searched before the hard-coded library search path?
18613 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18615 # How to hardcode a shared library path into an executable.
18616 hardcode_action=$hardcode_action_GCJ
18618 # Whether we should hardcode library paths into libraries.
18619 hardcode_into_libs=$hardcode_into_libs
18621 # Flag to hardcode \$libdir into a binary during linking.
18622 # This must work even if \$libdir does not exist.
18623 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18625 # If ld is used when linking, flag to hardcode \$libdir into
18626 # a binary during linking. This must work even if \$libdir does
18627 # not exist.
18628 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18630 # Whether we need a single -rpath flag with a separated argument.
18631 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18633 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18634 # resulting binary.
18635 hardcode_direct=$hardcode_direct_GCJ
18637 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18638 # resulting binary.
18639 hardcode_minus_L=$hardcode_minus_L_GCJ
18641 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18642 # the resulting binary.
18643 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18645 # Set to yes if building a shared library automatically hardcodes DIR into the library
18646 # and all subsequent libraries and executables linked against it.
18647 hardcode_automatic=$hardcode_automatic_GCJ
18649 # Variables whose values should be saved in libtool wrapper scripts and
18650 # restored at relink time.
18651 variables_saved_for_relink="$variables_saved_for_relink"
18653 # Whether libtool must link a program against all its dependency libraries.
18654 link_all_deplibs=$link_all_deplibs_GCJ
18656 # Compile-time system search path for libraries
18657 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18659 # Run-time system search path for libraries
18660 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18662 # Fix the shell variable \$srcfile for the compiler.
18663 fix_srcfile_path="$fix_srcfile_path_GCJ"
18665 # Set to yes if exported symbols are required.
18666 always_export_symbols=$always_export_symbols_GCJ
18668 # The commands to list exported symbols.
18669 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18671 # The commands to extract the exported symbol list from a shared archive.
18672 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18674 # Symbols that should not be listed in the preloaded symbols.
18675 exclude_expsyms=$lt_exclude_expsyms_GCJ
18677 # Symbols that must always be exported.
18678 include_expsyms=$lt_include_expsyms_GCJ
18680 # ### END LIBTOOL TAG CONFIG: $tagname
18682 __EOF__
18685 else
18686   # If there is no Makefile yet, we rely on a make rule to execute
18687   # `config.status --recheck' to rerun these tests and create the
18688   # libtool script then.
18689   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18690   if test -f "$ltmain_in"; then
18691     test -f Makefile && make "$ltmain"
18692   fi
18696 ac_ext=c
18697 ac_cpp='$CPP $CPPFLAGS'
18698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18702 CC="$lt_save_CC"
18704         else
18705           tagname=""
18706         fi
18707         ;;
18709       RC)
18710         
18713 # Source file extension for RC test sources.
18714 ac_ext=rc
18716 # Object file extension for compiled RC test sources.
18717 objext=o
18718 objext_RC=$objext
18720 # Code to be used in simple compile tests
18721 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18723 # Code to be used in simple link tests
18724 lt_simple_link_test_code="$lt_simple_compile_test_code"
18726 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18728 # If no C compiler was specified, use CC.
18729 LTCC=${LTCC-"$CC"}
18731 # Allow CC to be a program name with arguments.
18732 compiler=$CC
18735 # Allow CC to be a program name with arguments.
18736 lt_save_CC="$CC"
18737 CC=${RC-"windres"}
18738 compiler=$CC
18739 compiler_RC=$CC
18740 lt_cv_prog_compiler_c_o_RC=yes
18742 # The else clause should only fire when bootstrapping the
18743 # libtool distribution, otherwise you forgot to ship ltmain.sh
18744 # with your package, and you will get complaints that there are
18745 # no rules to generate ltmain.sh.
18746 if test -f "$ltmain"; then
18747   # See if we are running on zsh, and set the options which allow our commands through
18748   # without removal of \ escapes.
18749   if test -n "${ZSH_VERSION+set}" ; then
18750     setopt NO_GLOB_SUBST
18751   fi
18752   # Now quote all the things that may contain metacharacters while being
18753   # careful not to overquote the AC_SUBSTed values.  We take copies of the
18754   # variables and quote the copies for generation of the libtool script.
18755   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18756     SED SHELL STRIP \
18757     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18758     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18759     deplibs_check_method reload_flag reload_cmds need_locks \
18760     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18761     lt_cv_sys_global_symbol_to_c_name_address \
18762     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18763     old_postinstall_cmds old_postuninstall_cmds \
18764     compiler_RC \
18765     CC_RC \
18766     LD_RC \
18767     lt_prog_compiler_wl_RC \
18768     lt_prog_compiler_pic_RC \
18769     lt_prog_compiler_static_RC \
18770     lt_prog_compiler_no_builtin_flag_RC \
18771     export_dynamic_flag_spec_RC \
18772     thread_safe_flag_spec_RC \
18773     whole_archive_flag_spec_RC \
18774     enable_shared_with_static_runtimes_RC \
18775     old_archive_cmds_RC \
18776     old_archive_from_new_cmds_RC \
18777     predep_objects_RC \
18778     postdep_objects_RC \
18779     predeps_RC \
18780     postdeps_RC \
18781     compiler_lib_search_path_RC \
18782     archive_cmds_RC \
18783     archive_expsym_cmds_RC \
18784     postinstall_cmds_RC \
18785     postuninstall_cmds_RC \
18786     old_archive_from_expsyms_cmds_RC \
18787     allow_undefined_flag_RC \
18788     no_undefined_flag_RC \
18789     export_symbols_cmds_RC \
18790     hardcode_libdir_flag_spec_RC \
18791     hardcode_libdir_flag_spec_ld_RC \
18792     hardcode_libdir_separator_RC \
18793     hardcode_automatic_RC \
18794     module_cmds_RC \
18795     module_expsym_cmds_RC \
18796     lt_cv_prog_compiler_c_o_RC \
18797     exclude_expsyms_RC \
18798     include_expsyms_RC; do
18800     case $var in
18801     old_archive_cmds_RC | \
18802     old_archive_from_new_cmds_RC | \
18803     archive_cmds_RC | \
18804     archive_expsym_cmds_RC | \
18805     module_cmds_RC | \
18806     module_expsym_cmds_RC | \
18807     old_archive_from_expsyms_cmds_RC | \
18808     export_symbols_cmds_RC | \
18809     extract_expsyms_cmds | reload_cmds | finish_cmds | \
18810     postinstall_cmds | postuninstall_cmds | \
18811     old_postinstall_cmds | old_postuninstall_cmds | \
18812     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18813       # Double-quote double-evaled strings.
18814       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18815       ;;
18816     *)
18817       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18818       ;;
18819     esac
18820   done
18822   case $lt_echo in
18823   *'\$0 --fallback-echo"')
18824     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18825     ;;
18826   esac
18828 cfgfile="$ofile"
18830   cat <<__EOF__ >> "$cfgfile"
18831 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18833 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18835 # Shell to use when invoking shell scripts.
18836 SHELL=$lt_SHELL
18838 # Whether or not to build shared libraries.
18839 build_libtool_libs=$enable_shared
18841 # Whether or not to build static libraries.
18842 build_old_libs=$enable_static
18844 # Whether or not to add -lc for building shared libraries.
18845 build_libtool_need_lc=$archive_cmds_need_lc_RC
18847 # Whether or not to disallow shared libs when runtime libs are static
18848 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18850 # Whether or not to optimize for fast installation.
18851 fast_install=$enable_fast_install
18853 # The host system.
18854 host_alias=$host_alias
18855 host=$host
18857 # An echo program that does not interpret backslashes.
18858 echo=$lt_echo
18860 # The archiver.
18861 AR=$lt_AR
18862 AR_FLAGS=$lt_AR_FLAGS
18864 # A C compiler.
18865 LTCC=$lt_LTCC
18867 # A language-specific compiler.
18868 CC=$lt_compiler_RC
18870 # Is the compiler the GNU C compiler?
18871 with_gcc=$GCC_RC
18873 # An ERE matcher.
18874 EGREP=$lt_EGREP
18876 # The linker used to build libraries.
18877 LD=$lt_LD_RC
18879 # Whether we need hard or soft links.
18880 LN_S=$lt_LN_S
18882 # A BSD-compatible nm program.
18883 NM=$lt_NM
18885 # A symbol stripping program
18886 STRIP=$lt_STRIP
18888 # Used to examine libraries when file_magic_cmd begins "file"
18889 MAGIC_CMD=$MAGIC_CMD
18891 # Used on cygwin: DLL creation program.
18892 DLLTOOL="$DLLTOOL"
18894 # Used on cygwin: object dumper.
18895 OBJDUMP="$OBJDUMP"
18897 # Used on cygwin: assembler.
18898 AS="$AS"
18900 # The name of the directory that contains temporary libtool files.
18901 objdir=$objdir
18903 # How to create reloadable object files.
18904 reload_flag=$lt_reload_flag
18905 reload_cmds=$lt_reload_cmds
18907 # How to pass a linker flag through the compiler.
18908 wl=$lt_lt_prog_compiler_wl_RC
18910 # Object file suffix (normally "o").
18911 objext="$ac_objext"
18913 # Old archive suffix (normally "a").
18914 libext="$libext"
18916 # Shared library suffix (normally ".so").
18917 shrext_cmds='$shrext_cmds'
18919 # Executable file suffix (normally "").
18920 exeext="$exeext"
18922 # Additional compiler flags for building library objects.
18923 pic_flag=$lt_lt_prog_compiler_pic_RC
18924 pic_mode=$pic_mode
18926 # What is the maximum length of a command?
18927 max_cmd_len=$lt_cv_sys_max_cmd_len
18929 # Does compiler simultaneously support -c and -o options?
18930 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18932 # Must we lock files when doing compilation ?
18933 need_locks=$lt_need_locks
18935 # Do we need the lib prefix for modules?
18936 need_lib_prefix=$need_lib_prefix
18938 # Do we need a version for libraries?
18939 need_version=$need_version
18941 # Whether dlopen is supported.
18942 dlopen_support=$enable_dlopen
18944 # Whether dlopen of programs is supported.
18945 dlopen_self=$enable_dlopen_self
18947 # Whether dlopen of statically linked programs is supported.
18948 dlopen_self_static=$enable_dlopen_self_static
18950 # Compiler flag to prevent dynamic linking.
18951 link_static_flag=$lt_lt_prog_compiler_static_RC
18953 # Compiler flag to turn off builtin functions.
18954 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18956 # Compiler flag to allow reflexive dlopens.
18957 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18959 # Compiler flag to generate shared objects directly from archives.
18960 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18962 # Compiler flag to generate thread-safe objects.
18963 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18965 # Library versioning type.
18966 version_type=$version_type
18968 # Format of library name prefix.
18969 libname_spec=$lt_libname_spec
18971 # List of archive names.  First name is the real one, the rest are links.
18972 # The last name is the one that the linker finds with -lNAME.
18973 library_names_spec=$lt_library_names_spec
18975 # The coded name of the library, if different from the real name.
18976 soname_spec=$lt_soname_spec
18978 # Commands used to build and install an old-style archive.
18979 RANLIB=$lt_RANLIB
18980 old_archive_cmds=$lt_old_archive_cmds_RC
18981 old_postinstall_cmds=$lt_old_postinstall_cmds
18982 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18984 # Create an old-style archive from a shared archive.
18985 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18987 # Create a temporary old-style archive to link instead of a shared archive.
18988 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18990 # Commands used to build and install a shared archive.
18991 archive_cmds=$lt_archive_cmds_RC
18992 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18993 postinstall_cmds=$lt_postinstall_cmds
18994 postuninstall_cmds=$lt_postuninstall_cmds
18996 # Commands used to build a loadable module (assumed same as above if empty)
18997 module_cmds=$lt_module_cmds_RC
18998 module_expsym_cmds=$lt_module_expsym_cmds_RC
19000 # Commands to strip libraries.
19001 old_striplib=$lt_old_striplib
19002 striplib=$lt_striplib
19004 # Dependencies to place before the objects being linked to create a
19005 # shared library.
19006 predep_objects=$lt_predep_objects_RC
19008 # Dependencies to place after the objects being linked to create a
19009 # shared library.
19010 postdep_objects=$lt_postdep_objects_RC
19012 # Dependencies to place before the objects being linked to create a
19013 # shared library.
19014 predeps=$lt_predeps_RC
19016 # Dependencies to place after the objects being linked to create a
19017 # shared library.
19018 postdeps=$lt_postdeps_RC
19020 # The library search path used internally by the compiler when linking
19021 # a shared library.
19022 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19024 # Method to check whether dependent libraries are shared objects.
19025 deplibs_check_method=$lt_deplibs_check_method
19027 # Command to use when deplibs_check_method == file_magic.
19028 file_magic_cmd=$lt_file_magic_cmd
19030 # Flag that allows shared libraries with undefined symbols to be built.
19031 allow_undefined_flag=$lt_allow_undefined_flag_RC
19033 # Flag that forces no undefined symbols.
19034 no_undefined_flag=$lt_no_undefined_flag_RC
19036 # Commands used to finish a libtool library installation in a directory.
19037 finish_cmds=$lt_finish_cmds
19039 # Same as above, but a single script fragment to be evaled but not shown.
19040 finish_eval=$lt_finish_eval
19042 # Take the output of nm and produce a listing of raw symbols and C names.
19043 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19045 # Transform the output of nm in a proper C declaration
19046 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19048 # Transform the output of nm in a C name address pair
19049 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19051 # This is the shared library runtime path variable.
19052 runpath_var=$runpath_var
19054 # This is the shared library path variable.
19055 shlibpath_var=$shlibpath_var
19057 # Is shlibpath searched before the hard-coded library search path?
19058 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19060 # How to hardcode a shared library path into an executable.
19061 hardcode_action=$hardcode_action_RC
19063 # Whether we should hardcode library paths into libraries.
19064 hardcode_into_libs=$hardcode_into_libs
19066 # Flag to hardcode \$libdir into a binary during linking.
19067 # This must work even if \$libdir does not exist.
19068 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19070 # If ld is used when linking, flag to hardcode \$libdir into
19071 # a binary during linking. This must work even if \$libdir does
19072 # not exist.
19073 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19075 # Whether we need a single -rpath flag with a separated argument.
19076 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19078 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19079 # resulting binary.
19080 hardcode_direct=$hardcode_direct_RC
19082 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19083 # resulting binary.
19084 hardcode_minus_L=$hardcode_minus_L_RC
19086 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19087 # the resulting binary.
19088 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19090 # Set to yes if building a shared library automatically hardcodes DIR into the library
19091 # and all subsequent libraries and executables linked against it.
19092 hardcode_automatic=$hardcode_automatic_RC
19094 # Variables whose values should be saved in libtool wrapper scripts and
19095 # restored at relink time.
19096 variables_saved_for_relink="$variables_saved_for_relink"
19098 # Whether libtool must link a program against all its dependency libraries.
19099 link_all_deplibs=$link_all_deplibs_RC
19101 # Compile-time system search path for libraries
19102 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19104 # Run-time system search path for libraries
19105 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19107 # Fix the shell variable \$srcfile for the compiler.
19108 fix_srcfile_path="$fix_srcfile_path_RC"
19110 # Set to yes if exported symbols are required.
19111 always_export_symbols=$always_export_symbols_RC
19113 # The commands to list exported symbols.
19114 export_symbols_cmds=$lt_export_symbols_cmds_RC
19116 # The commands to extract the exported symbol list from a shared archive.
19117 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19119 # Symbols that should not be listed in the preloaded symbols.
19120 exclude_expsyms=$lt_exclude_expsyms_RC
19122 # Symbols that must always be exported.
19123 include_expsyms=$lt_include_expsyms_RC
19125 # ### END LIBTOOL TAG CONFIG: $tagname
19127 __EOF__
19130 else
19131   # If there is no Makefile yet, we rely on a make rule to execute
19132   # `config.status --recheck' to rerun these tests and create the
19133   # libtool script then.
19134   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19135   if test -f "$ltmain_in"; then
19136     test -f Makefile && make "$ltmain"
19137   fi
19141 ac_ext=c
19142 ac_cpp='$CPP $CPPFLAGS'
19143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19147 CC="$lt_save_CC"
19149         ;;
19151       *)
19152         { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19153 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19154    { (exit 1); exit 1; }; }
19155         ;;
19156       esac
19158       # Append the new tag name to the list of available tags.
19159       if test -n "$tagname" ; then
19160       available_tags="$available_tags $tagname"
19161     fi
19162     fi
19163   done
19164   IFS="$lt_save_ifs"
19166   # Now substitute the updated list of available tags.
19167   if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19168     mv "${ofile}T" "$ofile"
19169     chmod +x "$ofile"
19170   else
19171     rm -f "${ofile}T"
19172     { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19173 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19174    { (exit 1); exit 1; }; }
19175   fi
19180 # This can be used to rebuild libtool when needed
19181 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19183 # Always use our own libtool.
19184 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19186 # Prevent multiple expansion
19198   
19200   
19203   
19204        
19205        
19209   echo "$as_me:$LINENO: checking to see if compiler understands -Wall" >&5
19210 echo $ECHO_N "checking to see if compiler understands -Wall... $ECHO_C" >&6
19212   save_CFLAGS="$CFLAGS"
19213   CFLAGS="$CFLAGS -Wall"
19215   cat >conftest.$ac_ext <<_ACEOF
19216 /* confdefs.h.  */
19217 _ACEOF
19218 cat confdefs.h >>conftest.$ac_ext
19219 cat >>conftest.$ac_ext <<_ACEOF
19220 /* end confdefs.h.  */
19223 main ()
19226   ;
19227   return 0;
19229 _ACEOF
19230 rm -f conftest.$ac_objext
19231 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19232   (eval $ac_compile) 2>conftest.er1
19233   ac_status=$?
19234   grep -v '^ *+' conftest.er1 >conftest.err
19235   rm -f conftest.er1
19236   cat conftest.err >&5
19237   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238   (exit $ac_status); } &&
19239          { ac_try='test -z "$ac_c_werror_flag"
19240                          || test ! -s conftest.err'
19241   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19242   (eval $ac_try) 2>&5
19243   ac_status=$?
19244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19245   (exit $ac_status); }; } &&
19246          { ac_try='test -s conftest.$ac_objext'
19247   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19248   (eval $ac_try) 2>&5
19249   ac_status=$?
19250   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251   (exit $ac_status); }; }; then
19252   flag_ok=yes
19253 else
19254   echo "$as_me: failed program was:" >&5
19255 sed 's/^/| /' conftest.$ac_ext >&5
19257 flag_ok=no
19259 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19260   CFLAGS="$save_CFLAGS"
19262   if test "X$flag_ok" = Xyes ; then
19263     GST_WALL="yes"
19264     true
19265   else
19266     GST_WALL="no"
19267     true
19268   fi
19269   echo "$as_me:$LINENO: result: $flag_ok" >&5
19270 echo "${ECHO_T}$flag_ok" >&6
19272                                                                                 
19273 if test "x$GST_WALL" = "xyes"; then
19274    GST_ERROR="$GST_ERROR -Wall"
19275                                                                                 
19276    if test "x$GST_PLUGIN_TRUNK" = "xyes"; then
19277      
19278   echo "$as_me:$LINENO: checking to see if compiler understands -Werror" >&5
19279 echo $ECHO_N "checking to see if compiler understands -Werror... $ECHO_C" >&6
19281   save_CFLAGS="$CFLAGS"
19282   CFLAGS="$CFLAGS -Werror"
19284   cat >conftest.$ac_ext <<_ACEOF
19285 /* confdefs.h.  */
19286 _ACEOF
19287 cat confdefs.h >>conftest.$ac_ext
19288 cat >>conftest.$ac_ext <<_ACEOF
19289 /* end confdefs.h.  */
19292 main ()
19295   ;
19296   return 0;
19298 _ACEOF
19299 rm -f conftest.$ac_objext
19300 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19301   (eval $ac_compile) 2>conftest.er1
19302   ac_status=$?
19303   grep -v '^ *+' conftest.er1 >conftest.err
19304   rm -f conftest.er1
19305   cat conftest.err >&5
19306   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19307   (exit $ac_status); } &&
19308          { ac_try='test -z "$ac_c_werror_flag"
19309                          || test ! -s conftest.err'
19310   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19311   (eval $ac_try) 2>&5
19312   ac_status=$?
19313   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19314   (exit $ac_status); }; } &&
19315          { ac_try='test -s conftest.$ac_objext'
19316   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19317   (eval $ac_try) 2>&5
19318   ac_status=$?
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); }; }; then
19321   flag_ok=yes
19322 else
19323   echo "$as_me: failed program was:" >&5
19324 sed 's/^/| /' conftest.$ac_ext >&5
19326 flag_ok=no
19328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19329   CFLAGS="$save_CFLAGS"
19331   if test "X$flag_ok" = Xyes ; then
19332     GST_ERROR="$GST_ERROR -Werror"
19333     true
19334   else
19335     GST_ERROR="$GST_ERROR"
19336     true
19337   fi
19338   echo "$as_me:$LINENO: result: $flag_ok" >&5
19339 echo "${ECHO_T}$flag_ok" >&6
19341    fi
19344 # Extract the first word of "pkg-config", so it can be a program name with args.
19345 set dummy pkg-config; ac_word=$2
19346 echo "$as_me:$LINENO: checking for $ac_word" >&5
19347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19348 if test "${ac_cv_prog_HAVE_PKGCONFIG+set}" = set; then
19349   echo $ECHO_N "(cached) $ECHO_C" >&6
19350 else
19351   if test -n "$HAVE_PKGCONFIG"; then
19352   ac_cv_prog_HAVE_PKGCONFIG="$HAVE_PKGCONFIG" # Let the user override the test.
19353 else
19354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19355 for as_dir in $PATH
19357   IFS=$as_save_IFS
19358   test -z "$as_dir" && as_dir=.
19359   for ac_exec_ext in '' $ac_executable_extensions; do
19360   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19361     ac_cv_prog_HAVE_PKGCONFIG="yes"
19362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19363     break 2
19364   fi
19365 done
19366 done
19368   test -z "$ac_cv_prog_HAVE_PKGCONFIG" && ac_cv_prog_HAVE_PKGCONFIG="no"
19371 HAVE_PKGCONFIG=$ac_cv_prog_HAVE_PKGCONFIG
19372 if test -n "$HAVE_PKGCONFIG"; then
19373   echo "$as_me:$LINENO: result: $HAVE_PKGCONFIG" >&5
19374 echo "${ECHO_T}$HAVE_PKGCONFIG" >&6
19375 else
19376   echo "$as_me:$LINENO: result: no" >&5
19377 echo "${ECHO_T}no" >&6
19381 if test "x$HAVE_PKGCONFIG" = "xno"; then
19382   { { echo "$as_me:$LINENO: error: you need to have pkgconfig installed !" >&5
19383 echo "$as_me: error: you need to have pkgconfig installed !" >&2;}
19384    { (exit 1); exit 1; }; }
19388 GST_REQUIRED=0.9.7
19390 GST_MAJORMINOR=0.10
19392   succeeded=no
19394   if test -z "$PKG_CONFIG"; then
19395     # Extract the first word of "pkg-config", so it can be a program name with args.
19396 set dummy pkg-config; ac_word=$2
19397 echo "$as_me:$LINENO: checking for $ac_word" >&5
19398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19399 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19400   echo $ECHO_N "(cached) $ECHO_C" >&6
19401 else
19402   case $PKG_CONFIG in
19403   [\\/]* | ?:[\\/]*)
19404   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19405   ;;
19406   *)
19407   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19408 for as_dir in $PATH
19410   IFS=$as_save_IFS
19411   test -z "$as_dir" && as_dir=.
19412   for ac_exec_ext in '' $ac_executable_extensions; do
19413   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19414     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19415     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19416     break 2
19417   fi
19418 done
19419 done
19421   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19422   ;;
19423 esac
19425 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19427 if test -n "$PKG_CONFIG"; then
19428   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19429 echo "${ECHO_T}$PKG_CONFIG" >&6
19430 else
19431   echo "$as_me:$LINENO: result: no" >&5
19432 echo "${ECHO_T}no" >&6
19435   fi
19437   if test "$PKG_CONFIG" = "no" ; then
19438      echo "*** The pkg-config script could not be found. Make sure it is"
19439      echo "*** in your path, or set the PKG_CONFIG environment variable"
19440      echo "*** to the full path to pkg-config."
19441      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19442   else
19443      PKG_CONFIG_MIN_VERSION=0.9.0
19444      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19445         echo "$as_me:$LINENO: checking for \
19446   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
19447 echo $ECHO_N "checking for \
19448   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
19450         if $PKG_CONFIG --exists "\
19451   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
19452             echo "$as_me:$LINENO: result: yes" >&5
19453 echo "${ECHO_T}yes" >&6
19454             succeeded=yes
19456             echo "$as_me:$LINENO: checking GST_CFLAGS" >&5
19457 echo $ECHO_N "checking GST_CFLAGS... $ECHO_C" >&6
19458             GST_CFLAGS=`$PKG_CONFIG --cflags "\
19459   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
19460             echo "$as_me:$LINENO: result: $GST_CFLAGS" >&5
19461 echo "${ECHO_T}$GST_CFLAGS" >&6
19463             echo "$as_me:$LINENO: checking GST_LIBS" >&5
19464 echo $ECHO_N "checking GST_LIBS... $ECHO_C" >&6
19465             GST_LIBS=`$PKG_CONFIG --libs "\
19466   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
19467             echo "$as_me:$LINENO: result: $GST_LIBS" >&5
19468 echo "${ECHO_T}$GST_LIBS" >&6
19469         else
19470             GST_CFLAGS=""
19471             GST_LIBS=""
19472             ## If we have a custom action on failure, don't print errors, but 
19473             ## do set a variable so people can do so.
19474             GST_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
19475   gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
19476             
19477         fi
19479         
19480         
19481      else
19482         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19483         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19484      fi
19485   fi
19487   if test $succeeded = yes; then
19488      HAVE_GST=yes
19489   else
19490      HAVE_GST=no
19491   fi
19494 if test "x$HAVE_GST" = "xno"; then
19495   { { echo "$as_me:$LINENO: error: you need gstreamer development packages installed !" >&5
19496 echo "$as_me: error: you need gstreamer development packages installed !" >&2;}
19497    { (exit 1); exit 1; }; }
19501   succeeded=no
19503   if test -z "$PKG_CONFIG"; then
19504     # Extract the first word of "pkg-config", so it can be a program name with args.
19505 set dummy pkg-config; ac_word=$2
19506 echo "$as_me:$LINENO: checking for $ac_word" >&5
19507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19508 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19509   echo $ECHO_N "(cached) $ECHO_C" >&6
19510 else
19511   case $PKG_CONFIG in
19512   [\\/]* | ?:[\\/]*)
19513   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19514   ;;
19515   *)
19516   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19517 for as_dir in $PATH
19519   IFS=$as_save_IFS
19520   test -z "$as_dir" && as_dir=.
19521   for ac_exec_ext in '' $ac_executable_extensions; do
19522   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19523     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19524     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19525     break 2
19526   fi
19527 done
19528 done
19530   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19531   ;;
19532 esac
19534 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19536 if test -n "$PKG_CONFIG"; then
19537   echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19538 echo "${ECHO_T}$PKG_CONFIG" >&6
19539 else
19540   echo "$as_me:$LINENO: result: no" >&5
19541 echo "${ECHO_T}no" >&6
19544   fi
19546   if test "$PKG_CONFIG" = "no" ; then
19547      echo "*** The pkg-config script could not be found. Make sure it is"
19548      echo "*** in your path, or set the PKG_CONFIG environment variable"
19549      echo "*** to the full path to pkg-config."
19550      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19551   else
19552      PKG_CONFIG_MIN_VERSION=0.9.0
19553      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19554         echo "$as_me:$LINENO: checking for \
19555   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
19556 echo $ECHO_N "checking for \
19557   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... $ECHO_C" >&6
19559         if $PKG_CONFIG --exists "\
19560   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
19561             echo "$as_me:$LINENO: result: yes" >&5
19562 echo "${ECHO_T}yes" >&6
19563             succeeded=yes
19565             echo "$as_me:$LINENO: checking GST_BASE_CFLAGS" >&5
19566 echo $ECHO_N "checking GST_BASE_CFLAGS... $ECHO_C" >&6
19567             GST_BASE_CFLAGS=`$PKG_CONFIG --cflags "\
19568   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
19569             echo "$as_me:$LINENO: result: $GST_BASE_CFLAGS" >&5
19570 echo "${ECHO_T}$GST_BASE_CFLAGS" >&6
19572             echo "$as_me:$LINENO: checking GST_BASE_LIBS" >&5
19573 echo $ECHO_N "checking GST_BASE_LIBS... $ECHO_C" >&6
19574             GST_BASE_LIBS=`$PKG_CONFIG --libs "\
19575   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
19576             echo "$as_me:$LINENO: result: $GST_BASE_LIBS" >&5
19577 echo "${ECHO_T}$GST_BASE_LIBS" >&6
19578         else
19579             GST_BASE_CFLAGS=""
19580             GST_BASE_LIBS=""
19581             ## If we have a custom action on failure, don't print errors, but 
19582             ## do set a variable so people can do so.
19583             GST_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "\
19584   gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
19585             
19586         fi
19588         
19589         
19590      else
19591         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19592         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19593      fi
19594   fi
19596   if test $succeeded = yes; then
19597      HAVE_GST_BASE=yes
19598   else
19599      HAVE_GST_BASE=no
19600   fi
19603 if test "x$HAVE_GST_BASE" = "xno"; then
19604   { { echo "$as_me:$LINENO: error: you need gstreamer base development packages installed !" >&5
19605 echo "$as_me: error: you need gstreamer base development packages installed !" >&2;}
19606    { (exit 1); exit 1; }; }
19609 GST_CFLAGS="$GST_CFLAGS $GST_ERROR"
19620 plugindir="\$(libdir)/gstreamer-$GST_MAJORMINOR"
19623 GST_PLUGIN_LDFLAGS='-module -avoid-version -export-symbols-regex _*\(gst_\|Gst\|GST_\).*'
19626                                                             ac_config_files="$ac_config_files Makefile m4/Makefile video/Makefile src/Makefile common/Makefile gst-fbvideosink.spec"
19627 cat >confcache <<\_ACEOF
19628 # This file is a shell script that caches the results of configure
19629 # tests run on this system so they can be shared between configure
19630 # scripts and configure runs, see configure's option --config-cache.
19631 # It is not useful on other systems.  If it contains results you don't
19632 # want to keep, you may remove or edit it.
19634 # config.status only pays attention to the cache file if you give it
19635 # the --recheck option to rerun configure.
19637 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19638 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19639 # following values.
19641 _ACEOF
19643 # The following way of writing the cache mishandles newlines in values,
19644 # but we know of no workaround that is simple, portable, and efficient.
19645 # So, don't put newlines in cache variables' values.
19646 # Ultrix sh set writes to stderr and can't be redirected directly,
19647 # and sets the high bit in the cache file unless we assign to the vars.
19649   (set) 2>&1 |
19650     case `(ac_space=' '; set | grep ac_space) 2>&1` in
19651     *ac_space=\ *)
19652       # `set' does not quote correctly, so add quotes (double-quote
19653       # substitution turns \\\\ into \\, and sed turns \\ into \).
19654       sed -n \
19655         "s/'/'\\\\''/g;
19656           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19657       ;;
19658     *)
19659       # `set' quotes correctly as required by POSIX, so do not add quotes.
19660       sed -n \
19661         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
19662       ;;
19663     esac;
19664 } |
19665   sed '
19666      t clear
19667      : clear
19668      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19669      t end
19670      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19671      : end' >>confcache
19672 if diff $cache_file confcache >/dev/null 2>&1; then :; else
19673   if test -w $cache_file; then
19674     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
19675     cat confcache >$cache_file
19676   else
19677     echo "not updating unwritable cache $cache_file"
19678   fi
19680 rm -f confcache
19682 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19683 # Let make expand exec_prefix.
19684 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19686 # VPATH may cause trouble with some makes, so we remove $(srcdir),
19687 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
19688 # trailing colons and then remove the whole line if VPATH becomes empty
19689 # (actually we leave an empty line to preserve line numbers).
19690 if test "x$srcdir" = x.; then
19691   ac_vpsub='/^[  ]*VPATH[        ]*=/{
19692 s/:*\$(srcdir):*/:/;
19693 s/:*\${srcdir}:*/:/;
19694 s/:*@srcdir@:*/:/;
19695 s/^\([^=]*=[     ]*\):*/\1/;
19696 s/:*$//;
19697 s/^[^=]*=[       ]*$//;
19701 DEFS=-DHAVE_CONFIG_H
19703 ac_libobjs=
19704 ac_ltlibobjs=
19705 for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
19706   # 1. Remove the extension, and $U if already installed.
19707   ac_i=`echo "$ac_i" |
19708          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
19709   # 2. Add them.
19710   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
19711   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
19712 done
19713 LIB@&t@OBJS=$ac_libobjs
19715 LTLIBOBJS=$ac_ltlibobjs
19718 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19719   { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
19720 Usually this means the macro was only invoked conditionally." >&5
19721 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
19722 Usually this means the macro was only invoked conditionally." >&2;}
19723    { (exit 1); exit 1; }; }
19725 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19726   { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
19727 Usually this means the macro was only invoked conditionally." >&5
19728 echo "$as_me: error: conditional \"AMDEP\" was never defined.
19729 Usually this means the macro was only invoked conditionally." >&2;}
19730    { (exit 1); exit 1; }; }
19732 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19733   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
19734 Usually this means the macro was only invoked conditionally." >&5
19735 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
19736 Usually this means the macro was only invoked conditionally." >&2;}
19737    { (exit 1); exit 1; }; }
19739 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19740   { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
19741 Usually this means the macro was only invoked conditionally." >&5
19742 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
19743 Usually this means the macro was only invoked conditionally." >&2;}
19744    { (exit 1); exit 1; }; }
19747 : ${CONFIG_STATUS=./config.status}
19748 ac_clean_files_save=$ac_clean_files
19749 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19750 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
19751 echo "$as_me: creating $CONFIG_STATUS" >&6;}
19752 cat >$CONFIG_STATUS <<_ACEOF
19753 #! $SHELL
19754 # Generated by $as_me.
19755 # Run this file to recreate the current configuration.
19756 # Compiler output produced by configure, useful for debugging
19757 # configure, is in config.log if it exists.
19759 debug=false
19760 ac_cs_recheck=false
19761 ac_cs_silent=false
19762 SHELL=\${CONFIG_SHELL-$SHELL}
19763 _ACEOF
19765 cat >>$CONFIG_STATUS <<\_ACEOF
19766 ## --------------------- ##
19767 ## M4sh Initialization.  ##
19768 ## --------------------- ##
19770 # Be Bourne compatible
19771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19772   emulate sh
19773   NULLCMD=:
19774   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19775   # is contrary to our usage.  Disable this feature.
19776   alias -g '${1+"$@"}'='"$@"'
19777 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
19778   set -o posix
19780 DUALCASE=1; export DUALCASE # for MKS sh
19782 # Support unset when possible.
19783 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
19784   as_unset=unset
19785 else
19786   as_unset=false
19790 # Work around bugs in pre-3.0 UWIN ksh.
19791 $as_unset ENV MAIL MAILPATH
19792 PS1='$ '
19793 PS2='> '
19794 PS4='+ '
19796 # NLS nuisances.
19797 for as_var in \
19798   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
19799   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
19800   LC_TELEPHONE LC_TIME
19802   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
19803     eval $as_var=C; export $as_var
19804   else
19805     $as_unset $as_var
19806   fi
19807 done
19809 # Required to use basename.
19810 if expr a : '\(a\)' >/dev/null 2>&1; then
19811   as_expr=expr
19812 else
19813   as_expr=false
19816 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
19817   as_basename=basename
19818 else
19819   as_basename=false
19823 # Name of the executable.
19824 as_me=`$as_basename "$0" ||
19825 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19826          X"$0" : 'X\(//\)$' \| \
19827          X"$0" : 'X\(/\)$' \| \
19828          .     : '\(.\)' 2>/dev/null ||
19829 echo X/"$0" |
19830     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
19831           /^X\/\(\/\/\)$/{ s//\1/; q; }
19832           /^X\/\(\/\).*/{ s//\1/; q; }
19833           s/.*/./; q'`
19836 # PATH needs CR, and LINENO needs CR and PATH.
19837 # Avoid depending upon Character Ranges.
19838 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19839 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19840 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19841 as_cr_digits='0123456789'
19842 as_cr_alnum=$as_cr_Letters$as_cr_digits
19844 # The user is always right.
19845 if test "${PATH_SEPARATOR+set}" != set; then
19846   echo "#! /bin/sh" >conf$$.sh
19847   echo  "exit 0"   >>conf$$.sh
19848   chmod +x conf$$.sh
19849   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19850     PATH_SEPARATOR=';'
19851   else
19852     PATH_SEPARATOR=:
19853   fi
19854   rm -f conf$$.sh
19858   as_lineno_1=$LINENO
19859   as_lineno_2=$LINENO
19860   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19861   test "x$as_lineno_1" != "x$as_lineno_2" &&
19862   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
19863   # Find who we are.  Look in the path if we contain no path at all
19864   # relative or not.
19865   case $0 in
19866     *[\\/]* ) as_myself=$0 ;;
19867     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19868 for as_dir in $PATH
19870   IFS=$as_save_IFS
19871   test -z "$as_dir" && as_dir=.
19872   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19873 done
19875        ;;
19876   esac
19877   # We did not find ourselves, most probably we were run as `sh COMMAND'
19878   # in which case we are not to be found in the path.
19879   if test "x$as_myself" = x; then
19880     as_myself=$0
19881   fi
19882   if test ! -f "$as_myself"; then
19883     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
19884 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
19885    { (exit 1); exit 1; }; }
19886   fi
19887   case $CONFIG_SHELL in
19888   '')
19889     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19890 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
19892   IFS=$as_save_IFS
19893   test -z "$as_dir" && as_dir=.
19894   for as_base in sh bash ksh sh5; do
19895          case $as_dir in
19896          /*)
19897            if ("$as_dir/$as_base" -c '
19898   as_lineno_1=$LINENO
19899   as_lineno_2=$LINENO
19900   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
19901   test "x$as_lineno_1" != "x$as_lineno_2" &&
19902   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
19903              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
19904              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
19905              CONFIG_SHELL=$as_dir/$as_base
19906              export CONFIG_SHELL
19907              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
19908            fi;;
19909          esac
19910        done
19911 done
19913   esac
19915   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
19916   # uniformly replaced by the line number.  The first 'sed' inserts a
19917   # line-number line before each line; the second 'sed' does the real
19918   # work.  The second script uses 'N' to pair each line-number line
19919   # with the numbered line, and appends trailing '-' during
19920   # substitution so that $LINENO is not a special case at line end.
19921   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
19922   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
19923   sed '=' <$as_myself |
19924     sed '
19925       N
19926       s,$,-,
19927       : loop
19928       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
19929       t loop
19930       s,-$,,
19931       s,^['$as_cr_digits']*\n,,
19932     ' >$as_me.lineno &&
19933   chmod +x $as_me.lineno ||
19934     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
19935 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
19936    { (exit 1); exit 1; }; }
19938   # Don't try to exec as it changes $[0], causing all sort of problems
19939   # (the dirname of $[0] is not the place where we might find the
19940   # original and so on.  Autoconf is especially sensible to this).
19941   . ./$as_me.lineno
19942   # Exit status is that of the last command.
19943   exit
19947 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
19948   *c*,-n*) ECHO_N= ECHO_C='
19949 ' ECHO_T='      ' ;;
19950   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
19951   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
19952 esac
19954 if expr a : '\(a\)' >/dev/null 2>&1; then
19955   as_expr=expr
19956 else
19957   as_expr=false
19960 rm -f conf$$ conf$$.exe conf$$.file
19961 echo >conf$$.file
19962 if ln -s conf$$.file conf$$ 2>/dev/null; then
19963   # We could just check for DJGPP; but this test a) works b) is more generic
19964   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
19965   if test -f conf$$.exe; then
19966     # Don't use ln at all; we don't have any links
19967     as_ln_s='cp -p'
19968   else
19969     as_ln_s='ln -s'
19970   fi
19971 elif ln conf$$.file conf$$ 2>/dev/null; then
19972   as_ln_s=ln
19973 else
19974   as_ln_s='cp -p'
19976 rm -f conf$$ conf$$.exe conf$$.file
19978 if mkdir -p . 2>/dev/null; then
19979   as_mkdir_p=:
19980 else
19981   test -d ./-p && rmdir ./-p
19982   as_mkdir_p=false
19985 as_executable_p="test -f"
19987 # Sed expression to map a string onto a valid CPP name.
19988 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19990 # Sed expression to map a string onto a valid variable name.
19991 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19994 # IFS
19995 # We need space, tab and new line, in precisely that order.
19996 as_nl='
19998 IFS="   $as_nl"
20000 # CDPATH.
20001 $as_unset CDPATH
20003 exec 6>&1
20005 # Open the log real soon, to keep \$[0] and so on meaningful, and to
20006 # report actual input values of CONFIG_FILES etc. instead of their
20007 # values after options handling.  Logging --version etc. is OK.
20008 exec 5>>config.log
20010   echo
20011   sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
20012 @%:@@%:@ Running $as_me. @%:@@%:@
20013 _ASBOX
20014 } >&5
20015 cat >&5 <<_CSEOF
20017 This file was extended by $as_me, which was
20018 generated by GNU Autoconf 2.59.  Invocation command line was
20020   CONFIG_FILES    = $CONFIG_FILES
20021   CONFIG_HEADERS  = $CONFIG_HEADERS
20022   CONFIG_LINKS    = $CONFIG_LINKS
20023   CONFIG_COMMANDS = $CONFIG_COMMANDS
20024   $ $0 $@
20026 _CSEOF
20027 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
20028 echo >&5
20029 _ACEOF
20031 # Files that config.status was made for.
20032 if test -n "$ac_config_files"; then
20033   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
20036 if test -n "$ac_config_headers"; then
20037   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
20040 if test -n "$ac_config_links"; then
20041   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
20044 if test -n "$ac_config_commands"; then
20045   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
20048 cat >>$CONFIG_STATUS <<\_ACEOF
20050 ac_cs_usage="\
20051 \`$as_me' instantiates files from templates according to the
20052 current configuration.
20054 Usage: $0 [OPTIONS] [FILE]...
20056   -h, --help       print this help, then exit
20057   -V, --version    print version number, then exit
20058   -q, --quiet      do not print progress messages
20059   -d, --debug      don't remove temporary files
20060       --recheck    update $as_me by reconfiguring in the same conditions
20061   --file=FILE[:TEMPLATE]
20062                    instantiate the configuration file FILE
20063   --header=FILE[:TEMPLATE]
20064                    instantiate the configuration header FILE
20066 Configuration files:
20067 $config_files
20069 Configuration headers:
20070 $config_headers
20072 Configuration commands:
20073 $config_commands
20075 Report bugs to <bug-autoconf@gnu.org>."
20076 _ACEOF
20078 cat >>$CONFIG_STATUS <<_ACEOF
20079 ac_cs_version="\\
20080 config.status
20081 configured by $0, generated by GNU Autoconf 2.59,
20082   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
20084 Copyright (C) 2003 Free Software Foundation, Inc.
20085 This config.status script is free software; the Free Software Foundation
20086 gives unlimited permission to copy, distribute and modify it."
20087 srcdir=$srcdir
20088 INSTALL="$INSTALL"
20089 _ACEOF
20091 cat >>$CONFIG_STATUS <<\_ACEOF
20092 # If no file are specified by the user, then we need to provide default
20093 # value.  By we need to know if files were specified by the user.
20094 ac_need_defaults=:
20095 while test $# != 0
20097   case $1 in
20098   --*=*)
20099     ac_option=`expr "x$1" : 'x\([^=]*\)='`
20100     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
20101     ac_shift=:
20102     ;;
20103   -*)
20104     ac_option=$1
20105     ac_optarg=$2
20106     ac_shift=shift
20107     ;;
20108   *) # This is not an option, so the user has probably given explicit
20109      # arguments.
20110      ac_option=$1
20111      ac_need_defaults=false;;
20112   esac
20114   case $ac_option in
20115   # Handling of the options.
20116 _ACEOF
20117 cat >>$CONFIG_STATUS <<\_ACEOF
20118   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20119     ac_cs_recheck=: ;;
20120   --version | --vers* | -V )
20121     echo "$ac_cs_version"; exit 0 ;;
20122   --he | --h)
20123     # Conflict between --help and --header
20124     { { echo "$as_me:$LINENO: error: ambiguous option: $1
20125 Try \`$0 --help' for more information." >&5
20126 echo "$as_me: error: ambiguous option: $1
20127 Try \`$0 --help' for more information." >&2;}
20128    { (exit 1); exit 1; }; };;
20129   --help | --hel | -h )
20130     echo "$ac_cs_usage"; exit 0 ;;
20131   --debug | --d* | -d )
20132     debug=: ;;
20133   --file | --fil | --fi | --f )
20134     $ac_shift
20135     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20136     ac_need_defaults=false;;
20137   --header | --heade | --head | --hea )
20138     $ac_shift
20139     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20140     ac_need_defaults=false;;
20141   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20142   | -silent | --silent | --silen | --sile | --sil | --si | --s)
20143     ac_cs_silent=: ;;
20145   # This is an error.
20146   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
20147 Try \`$0 --help' for more information." >&5
20148 echo "$as_me: error: unrecognized option: $1
20149 Try \`$0 --help' for more information." >&2;}
20150    { (exit 1); exit 1; }; } ;;
20152   *) ac_config_targets="$ac_config_targets $1" ;;
20154   esac
20155   shift
20156 done
20158 ac_configure_extra_args=
20160 if $ac_cs_silent; then
20161   exec 6>/dev/null
20162   ac_configure_extra_args="$ac_configure_extra_args --silent"
20165 _ACEOF
20166 cat >>$CONFIG_STATUS <<_ACEOF
20167 if \$ac_cs_recheck; then
20168   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20169   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20172 _ACEOF
20174 cat >>$CONFIG_STATUS <<_ACEOF
20176 # INIT-COMMANDS section.
20179 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20181 _ACEOF
20185 cat >>$CONFIG_STATUS <<\_ACEOF
20186 for ac_config_target in $ac_config_targets
20188   case "$ac_config_target" in
20189   # Handling of arguments.
20190   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20191   "m4/Makefile" ) CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;;
20192   "video/Makefile" ) CONFIG_FILES="$CONFIG_FILES video/Makefile" ;;
20193   "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20194   "common/Makefile" ) CONFIG_FILES="$CONFIG_FILES common/Makefile" ;;
20195   "gst-fbvideosink.spec" ) CONFIG_FILES="$CONFIG_FILES gst-fbvideosink.spec" ;;
20196   "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20197   "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20198   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20199 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20200    { (exit 1); exit 1; }; };;
20201   esac
20202 done
20204 # If the user did not use the arguments to specify the items to instantiate,
20205 # then the envvar interface is used.  Set only those that are not.
20206 # We use the long form for the default assignment because of an extremely
20207 # bizarre bug on SunOS 4.1.3.
20208 if $ac_need_defaults; then
20209   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20210   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20211   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20214 # Have a temporary directory for convenience.  Make it in the build tree
20215 # simply because there is no reason to put it here, and in addition,
20216 # creating and moving files from /tmp can sometimes cause problems.
20217 # Create a temporary directory, and hook for its removal unless debugging.
20218 $debug ||
20220   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
20221   trap '{ (exit 1); exit 1; }' 1 2 13 15
20224 # Create a (secure) tmp directory for tmp files.
20227   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
20228   test -n "$tmp" && test -d "$tmp"
20229 }  ||
20231   tmp=./confstat$$-$RANDOM
20232   (umask 077 && mkdir $tmp)
20233 } ||
20235    echo "$me: cannot create a temporary directory in ." >&2
20236    { (exit 1); exit 1; }
20239 _ACEOF
20241 cat >>$CONFIG_STATUS <<_ACEOF
20244 # CONFIG_FILES section.
20247 # No need to generate the scripts if there are no CONFIG_FILES.
20248 # This happens for instance when ./config.status config.h
20249 if test -n "\$CONFIG_FILES"; then
20250   # Protect against being on the right side of a sed subst in config.status.
20251   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
20252    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
20253 s,@SHELL@,$SHELL,;t t
20254 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
20255 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
20256 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
20257 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
20258 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
20259 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
20260 s,@exec_prefix@,$exec_prefix,;t t
20261 s,@prefix@,$prefix,;t t
20262 s,@program_transform_name@,$program_transform_name,;t t
20263 s,@bindir@,$bindir,;t t
20264 s,@sbindir@,$sbindir,;t t
20265 s,@libexecdir@,$libexecdir,;t t
20266 s,@datadir@,$datadir,;t t
20267 s,@sysconfdir@,$sysconfdir,;t t
20268 s,@sharedstatedir@,$sharedstatedir,;t t
20269 s,@localstatedir@,$localstatedir,;t t
20270 s,@libdir@,$libdir,;t t
20271 s,@includedir@,$includedir,;t t
20272 s,@oldincludedir@,$oldincludedir,;t t
20273 s,@infodir@,$infodir,;t t
20274 s,@mandir@,$mandir,;t t
20275 s,@build_alias@,$build_alias,;t t
20276 s,@host_alias@,$host_alias,;t t
20277 s,@target_alias@,$target_alias,;t t
20278 s,@DEFS@,$DEFS,;t t
20279 s,@ECHO_C@,$ECHO_C,;t t
20280 s,@ECHO_N@,$ECHO_N,;t t
20281 s,@ECHO_T@,$ECHO_T,;t t
20282 s,@LIBS@,$LIBS,;t t
20283 s,@GST_PLUGIN_VERSION@,$GST_PLUGIN_VERSION,;t t
20284 s,@GST_PLUGIN_VERSION_RELEASE@,$GST_PLUGIN_VERSION_RELEASE,;t t
20285 s,@GST_PLUGIN_VERSION_MAJOR@,$GST_PLUGIN_VERSION_MAJOR,;t t
20286 s,@GST_PLUGIN_VERSION_MINOR@,$GST_PLUGIN_VERSION_MINOR,;t t
20287 s,@GST_PLUGIN_VERSION_MICRO@,$GST_PLUGIN_VERSION_MICRO,;t t
20288 s,@GST_PLUGIN_VERSION_NANO@,$GST_PLUGIN_VERSION_NANO,;t t
20289 s,@PACKAGE@,$PACKAGE,;t t
20290 s,@VERSION@,$VERSION,;t t
20291 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
20292 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
20293 s,@MAINT@,$MAINT,;t t
20294 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
20295 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
20296 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
20297 s,@CYGPATH_W@,$CYGPATH_W,;t t
20298 s,@ACLOCAL@,$ACLOCAL,;t t
20299 s,@AUTOCONF@,$AUTOCONF,;t t
20300 s,@AUTOMAKE@,$AUTOMAKE,;t t
20301 s,@AUTOHEADER@,$AUTOHEADER,;t t
20302 s,@MAKEINFO@,$MAKEINFO,;t t
20303 s,@install_sh@,$install_sh,;t t
20304 s,@STRIP@,$STRIP,;t t
20305 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
20306 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
20307 s,@mkdir_p@,$mkdir_p,;t t
20308 s,@AWK@,$AWK,;t t
20309 s,@SET_MAKE@,$SET_MAKE,;t t
20310 s,@am__leading_dot@,$am__leading_dot,;t t
20311 s,@AMTAR@,$AMTAR,;t t
20312 s,@am__tar@,$am__tar,;t t
20313 s,@am__untar@,$am__untar,;t t
20314 s,@ACLOCAL_AMFLAGS@,$ACLOCAL_AMFLAGS,;t t
20315 s,@CC@,$CC,;t t
20316 s,@CFLAGS@,$CFLAGS,;t t
20317 s,@LDFLAGS@,$LDFLAGS,;t t
20318 s,@CPPFLAGS@,$CPPFLAGS,;t t
20319 s,@ac_ct_CC@,$ac_ct_CC,;t t
20320 s,@EXEEXT@,$EXEEXT,;t t
20321 s,@OBJEXT@,$OBJEXT,;t t
20322 s,@DEPDIR@,$DEPDIR,;t t
20323 s,@am__include@,$am__include,;t t
20324 s,@am__quote@,$am__quote,;t t
20325 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
20326 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
20327 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
20328 s,@CCDEPMODE@,$CCDEPMODE,;t t
20329 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
20330 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
20331 s,@build@,$build,;t t
20332 s,@build_cpu@,$build_cpu,;t t
20333 s,@build_vendor@,$build_vendor,;t t
20334 s,@build_os@,$build_os,;t t
20335 s,@host@,$host,;t t
20336 s,@host_cpu@,$host_cpu,;t t
20337 s,@host_vendor@,$host_vendor,;t t
20338 s,@host_os@,$host_os,;t t
20339 s,@EGREP@,$EGREP,;t t
20340 s,@LN_S@,$LN_S,;t t
20341 s,@ECHO@,$ECHO,;t t
20342 s,@AR@,$AR,;t t
20343 s,@ac_ct_AR@,$ac_ct_AR,;t t
20344 s,@RANLIB@,$RANLIB,;t t
20345 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
20346 s,@CPP@,$CPP,;t t
20347 s,@CXX@,$CXX,;t t
20348 s,@CXXFLAGS@,$CXXFLAGS,;t t
20349 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
20350 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
20351 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
20352 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
20353 s,@CXXCPP@,$CXXCPP,;t t
20354 s,@F77@,$F77,;t t
20355 s,@FFLAGS@,$FFLAGS,;t t
20356 s,@ac_ct_F77@,$ac_ct_F77,;t t
20357 s,@LIBTOOL@,$LIBTOOL,;t t
20358 s,@HAVE_PKGCONFIG@,$HAVE_PKGCONFIG,;t t
20359 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
20360 s,@GST_CFLAGS@,$GST_CFLAGS,;t t
20361 s,@GST_LIBS@,$GST_LIBS,;t t
20362 s,@GST_BASE_CFLAGS@,$GST_BASE_CFLAGS,;t t
20363 s,@GST_BASE_LIBS@,$GST_BASE_LIBS,;t t
20364 s,@GST_LIB_LDFLAGS@,$GST_LIB_LDFLAGS,;t t
20365 s,@GST_ALL_LDFLAGS@,$GST_ALL_LDFLAGS,;t t
20366 s,@GST_LT_LDFLAGS@,$GST_LT_LDFLAGS,;t t
20367 s,@GST_MAJORMINOR@,$GST_MAJORMINOR,;t t
20368 s,@plugindir@,$plugindir,;t t
20369 s,@GST_PLUGIN_LDFLAGS@,$GST_PLUGIN_LDFLAGS,;t t
20370 s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t
20371 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
20372 CEOF
20374 _ACEOF
20376   cat >>$CONFIG_STATUS <<\_ACEOF
20377   # Split the substitutions into bite-sized pieces for seds with
20378   # small command number limits, like on Digital OSF/1 and HP-UX.
20379   ac_max_sed_lines=48
20380   ac_sed_frag=1 # Number of current file.
20381   ac_beg=1 # First line for current file.
20382   ac_end=$ac_max_sed_lines # Line after last line for current file.
20383   ac_more_lines=:
20384   ac_sed_cmds=
20385   while $ac_more_lines; do
20386     if test $ac_beg -gt 1; then
20387       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20388     else
20389       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
20390     fi
20391     if test ! -s $tmp/subs.frag; then
20392       ac_more_lines=false
20393     else
20394       # The purpose of the label and of the branching condition is to
20395       # speed up the sed processing (if there are no `@' at all, there
20396       # is no need to browse any of the substitutions).
20397       # These are the two extra sed commands mentioned above.
20398       (echo ':t
20399   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
20400       if test -z "$ac_sed_cmds"; then
20401         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
20402       else
20403         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
20404       fi
20405       ac_sed_frag=`expr $ac_sed_frag + 1`
20406       ac_beg=$ac_end
20407       ac_end=`expr $ac_end + $ac_max_sed_lines`
20408     fi
20409   done
20410   if test -z "$ac_sed_cmds"; then
20411     ac_sed_cmds=cat
20412   fi
20413 fi # test -n "$CONFIG_FILES"
20415 _ACEOF
20416 cat >>$CONFIG_STATUS <<\_ACEOF
20417 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
20418   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20419   case $ac_file in
20420   - | *:- | *:-:* ) # input from stdin
20421         cat >$tmp/stdin
20422         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20423         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20424   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20425         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20426   * )   ac_file_in=$ac_file.in ;;
20427   esac
20429   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
20430   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20431 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20432          X"$ac_file" : 'X\(//\)[^/]' \| \
20433          X"$ac_file" : 'X\(//\)$' \| \
20434          X"$ac_file" : 'X\(/\)' \| \
20435          .     : '\(.\)' 2>/dev/null ||
20436 echo X"$ac_file" |
20437     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20438           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20439           /^X\(\/\/\)$/{ s//\1/; q; }
20440           /^X\(\/\).*/{ s//\1/; q; }
20441           s/.*/./; q'`
20442   { if $as_mkdir_p; then
20443     mkdir -p "$ac_dir"
20444   else
20445     as_dir="$ac_dir"
20446     as_dirs=
20447     while test ! -d "$as_dir"; do
20448       as_dirs="$as_dir $as_dirs"
20449       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20450 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20451          X"$as_dir" : 'X\(//\)[^/]' \| \
20452          X"$as_dir" : 'X\(//\)$' \| \
20453          X"$as_dir" : 'X\(/\)' \| \
20454          .     : '\(.\)' 2>/dev/null ||
20455 echo X"$as_dir" |
20456     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20457           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20458           /^X\(\/\/\)$/{ s//\1/; q; }
20459           /^X\(\/\).*/{ s//\1/; q; }
20460           s/.*/./; q'`
20461     done
20462     test ! -n "$as_dirs" || mkdir $as_dirs
20463   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20464 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20465    { (exit 1); exit 1; }; }; }
20467   ac_builddir=.
20469 if test "$ac_dir" != .; then
20470   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20471   # A "../" for each directory in $ac_dir_suffix.
20472   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20473 else
20474   ac_dir_suffix= ac_top_builddir=
20477 case $srcdir in
20478   .)  # No --srcdir option.  We are building in place.
20479     ac_srcdir=.
20480     if test -z "$ac_top_builddir"; then
20481        ac_top_srcdir=.
20482     else
20483        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20484     fi ;;
20485   [\\/]* | ?:[\\/]* )  # Absolute path.
20486     ac_srcdir=$srcdir$ac_dir_suffix;
20487     ac_top_srcdir=$srcdir ;;
20488   *) # Relative path.
20489     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20490     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20491 esac
20493 # Do not use `cd foo && pwd` to compute absolute paths, because
20494 # the directories may not exist.
20495 case `pwd` in
20496 .) ac_abs_builddir="$ac_dir";;
20498   case "$ac_dir" in
20499   .) ac_abs_builddir=`pwd`;;
20500   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20501   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20502   esac;;
20503 esac
20504 case $ac_abs_builddir in
20505 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20507   case ${ac_top_builddir}. in
20508   .) ac_abs_top_builddir=$ac_abs_builddir;;
20509   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20510   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20511   esac;;
20512 esac
20513 case $ac_abs_builddir in
20514 .) ac_abs_srcdir=$ac_srcdir;;
20516   case $ac_srcdir in
20517   .) ac_abs_srcdir=$ac_abs_builddir;;
20518   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20519   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20520   esac;;
20521 esac
20522 case $ac_abs_builddir in
20523 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20525   case $ac_top_srcdir in
20526   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20527   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20528   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20529   esac;;
20530 esac
20533   case $INSTALL in
20534   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
20535   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
20536   esac
20538   if test x"$ac_file" != x-; then
20539     { echo "$as_me:$LINENO: creating $ac_file" >&5
20540 echo "$as_me: creating $ac_file" >&6;}
20541     rm -f "$ac_file"
20542   fi
20543   # Let's still pretend it is `configure' which instantiates (i.e., don't
20544   # use $as_me), people would be surprised to read:
20545   #    /* config.h.  Generated by config.status.  */
20546   if test x"$ac_file" = x-; then
20547     configure_input=
20548   else
20549     configure_input="$ac_file.  "
20550   fi
20551   configure_input=$configure_input"Generated from `echo $ac_file_in |
20552                                      sed 's,.*/,,'` by configure."
20554   # First look for the input files in the build tree, otherwise in the
20555   # src tree.
20556   ac_file_inputs=`IFS=:
20557     for f in $ac_file_in; do
20558       case $f in
20559       -) echo $tmp/stdin ;;
20560       [\\/$]*)
20561          # Absolute (can't be DOS-style, as IFS=:)
20562          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20563 echo "$as_me: error: cannot find input file: $f" >&2;}
20564    { (exit 1); exit 1; }; }
20565          echo "$f";;
20566       *) # Relative
20567          if test -f "$f"; then
20568            # Build tree
20569            echo "$f"
20570          elif test -f "$srcdir/$f"; then
20571            # Source tree
20572            echo "$srcdir/$f"
20573          else
20574            # /dev/null tree
20575            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20576 echo "$as_me: error: cannot find input file: $f" >&2;}
20577    { (exit 1); exit 1; }; }
20578          fi;;
20579       esac
20580     done` || { (exit 1); exit 1; }
20581 _ACEOF
20582 cat >>$CONFIG_STATUS <<_ACEOF
20583   sed "$ac_vpsub
20584 $extrasub
20585 _ACEOF
20586 cat >>$CONFIG_STATUS <<\_ACEOF
20588 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20589 s,@configure_input@,$configure_input,;t t
20590 s,@srcdir@,$ac_srcdir,;t t
20591 s,@abs_srcdir@,$ac_abs_srcdir,;t t
20592 s,@top_srcdir@,$ac_top_srcdir,;t t
20593 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
20594 s,@builddir@,$ac_builddir,;t t
20595 s,@abs_builddir@,$ac_abs_builddir,;t t
20596 s,@top_builddir@,$ac_top_builddir,;t t
20597 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
20598 s,@INSTALL@,$ac_INSTALL,;t t
20599 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
20600   rm -f $tmp/stdin
20601   if test x"$ac_file" != x-; then
20602     mv $tmp/out $ac_file
20603   else
20604     cat $tmp/out
20605     rm -f $tmp/out
20606   fi
20608 done
20609 _ACEOF
20610 cat >>$CONFIG_STATUS <<\_ACEOF
20613 # CONFIG_HEADER section.
20616 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
20617 # NAME is the cpp macro being defined and VALUE is the value it is being given.
20619 # ac_d sets the value in "#define NAME VALUE" lines.
20620 ac_dA='s,^\([    ]*\)#\([        ]*define[       ][      ]*\)'
20621 ac_dB='[         ].*$,\1#\2'
20622 ac_dC=' '
20623 ac_dD=',;t'
20624 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
20625 ac_uA='s,^\([    ]*\)#\([        ]*\)undef\([    ][      ]*\)'
20626 ac_uB='$,\1#\2define\3'
20627 ac_uC=' '
20628 ac_uD=',;t'
20630 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
20631   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
20632   case $ac_file in
20633   - | *:- | *:-:* ) # input from stdin
20634         cat >$tmp/stdin
20635         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20636         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20637   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
20638         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
20639   * )   ac_file_in=$ac_file.in ;;
20640   esac
20642   test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
20643 echo "$as_me: creating $ac_file" >&6;}
20645   # First look for the input files in the build tree, otherwise in the
20646   # src tree.
20647   ac_file_inputs=`IFS=:
20648     for f in $ac_file_in; do
20649       case $f in
20650       -) echo $tmp/stdin ;;
20651       [\\/$]*)
20652          # Absolute (can't be DOS-style, as IFS=:)
20653          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20654 echo "$as_me: error: cannot find input file: $f" >&2;}
20655    { (exit 1); exit 1; }; }
20656          # Do quote $f, to prevent DOS paths from being IFS'd.
20657          echo "$f";;
20658       *) # Relative
20659          if test -f "$f"; then
20660            # Build tree
20661            echo "$f"
20662          elif test -f "$srcdir/$f"; then
20663            # Source tree
20664            echo "$srcdir/$f"
20665          else
20666            # /dev/null tree
20667            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
20668 echo "$as_me: error: cannot find input file: $f" >&2;}
20669    { (exit 1); exit 1; }; }
20670          fi;;
20671       esac
20672     done` || { (exit 1); exit 1; }
20673   # Remove the trailing spaces.
20674   sed 's/[       ]*$//' $ac_file_inputs >$tmp/in
20676 _ACEOF
20678 # Transform confdefs.h into two sed scripts, `conftest.defines' and
20679 # `conftest.undefs', that substitutes the proper values into
20680 # config.h.in to produce config.h.  The first handles `#define'
20681 # templates, and the second `#undef' templates.
20682 # And first: Protect against being on the right side of a sed subst in
20683 # config.status.  Protect against being in an unquoted here document
20684 # in config.status.
20685 rm -f conftest.defines conftest.undefs
20686 # Using a here document instead of a string reduces the quoting nightmare.
20687 # Putting comments in sed scripts is not portable.
20689 # `end' is used to avoid that the second main sed command (meant for
20690 # 0-ary CPP macros) applies to n-ary macro definitions.
20691 # See the Autoconf documentation for `clear'.
20692 cat >confdef2sed.sed <<\_ACEOF
20693 s/[\\&,]/\\&/g
20694 s,[\\$`],\\&,g
20695 t clear
20696 : clear
20697 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*\)\(([^)]*)\)[       ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
20698 t end
20699 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
20700 : end
20701 _ACEOF
20702 # If some macros were called several times there might be several times
20703 # the same #defines, which is useless.  Nevertheless, we may not want to
20704 # sort them, since we want the *last* AC-DEFINE to be honored.
20705 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
20706 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
20707 rm -f confdef2sed.sed
20709 # This sed command replaces #undef with comments.  This is necessary, for
20710 # example, in the case of _POSIX_SOURCE, which is predefined and required
20711 # on some systems where configure will not decide to define it.
20712 cat >>conftest.undefs <<\_ACEOF
20713 s,^[     ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
20714 _ACEOF
20716 # Break up conftest.defines because some shells have a limit on the size
20717 # of here documents, and old seds have small limits too (100 cmds).
20718 echo '  # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
20719 echo '  if grep "^[      ]*#[    ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
20720 echo '  # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
20721 echo '  :' >>$CONFIG_STATUS
20722 rm -f conftest.tail
20723 while grep . conftest.defines >/dev/null
20725   # Write a limited-size here document to $tmp/defines.sed.
20726   echo '  cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
20727   # Speed up: don't consider the non `#define' lines.
20728   echo '/^[      ]*#[    ]*define/!b' >>$CONFIG_STATUS
20729   # Work around the forget-to-reset-the-flag bug.
20730   echo 't clr' >>$CONFIG_STATUS
20731   echo ': clr' >>$CONFIG_STATUS
20732   sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
20733   echo 'CEOF
20734   sed -f $tmp/defines.sed $tmp/in >$tmp/out
20735   rm -f $tmp/in
20736   mv $tmp/out $tmp/in
20737 ' >>$CONFIG_STATUS
20738   sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
20739   rm -f conftest.defines
20740   mv conftest.tail conftest.defines
20741 done
20742 rm -f conftest.defines
20743 echo '  fi # grep' >>$CONFIG_STATUS
20744 echo >>$CONFIG_STATUS
20746 # Break up conftest.undefs because some shells have a limit on the size
20747 # of here documents, and old seds have small limits too (100 cmds).
20748 echo '  # Handle all the #undef templates' >>$CONFIG_STATUS
20749 rm -f conftest.tail
20750 while grep . conftest.undefs >/dev/null
20752   # Write a limited-size here document to $tmp/undefs.sed.
20753   echo '  cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
20754   # Speed up: don't consider the non `#undef'
20755   echo '/^[      ]*#[    ]*undef/!b' >>$CONFIG_STATUS
20756   # Work around the forget-to-reset-the-flag bug.
20757   echo 't clr' >>$CONFIG_STATUS
20758   echo ': clr' >>$CONFIG_STATUS
20759   sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
20760   echo 'CEOF
20761   sed -f $tmp/undefs.sed $tmp/in >$tmp/out
20762   rm -f $tmp/in
20763   mv $tmp/out $tmp/in
20764 ' >>$CONFIG_STATUS
20765   sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
20766   rm -f conftest.undefs
20767   mv conftest.tail conftest.undefs
20768 done
20769 rm -f conftest.undefs
20771 cat >>$CONFIG_STATUS <<\_ACEOF
20772   # Let's still pretend it is `configure' which instantiates (i.e., don't
20773   # use $as_me), people would be surprised to read:
20774   #    /* config.h.  Generated by config.status.  */
20775   if test x"$ac_file" = x-; then
20776     echo "/* Generated by configure.  */" >$tmp/config.h
20777   else
20778     echo "/* $ac_file.  Generated by configure.  */" >$tmp/config.h
20779   fi
20780   cat $tmp/in >>$tmp/config.h
20781   rm -f $tmp/in
20782   if test x"$ac_file" != x-; then
20783     if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
20784       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
20785 echo "$as_me: $ac_file is unchanged" >&6;}
20786     else
20787       ac_dir=`(dirname "$ac_file") 2>/dev/null ||
20788 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20789          X"$ac_file" : 'X\(//\)[^/]' \| \
20790          X"$ac_file" : 'X\(//\)$' \| \
20791          X"$ac_file" : 'X\(/\)' \| \
20792          .     : '\(.\)' 2>/dev/null ||
20793 echo X"$ac_file" |
20794     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20795           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20796           /^X\(\/\/\)$/{ s//\1/; q; }
20797           /^X\(\/\).*/{ s//\1/; q; }
20798           s/.*/./; q'`
20799       { if $as_mkdir_p; then
20800     mkdir -p "$ac_dir"
20801   else
20802     as_dir="$ac_dir"
20803     as_dirs=
20804     while test ! -d "$as_dir"; do
20805       as_dirs="$as_dir $as_dirs"
20806       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20807 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20808          X"$as_dir" : 'X\(//\)[^/]' \| \
20809          X"$as_dir" : 'X\(//\)$' \| \
20810          X"$as_dir" : 'X\(/\)' \| \
20811          .     : '\(.\)' 2>/dev/null ||
20812 echo X"$as_dir" |
20813     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20814           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20815           /^X\(\/\/\)$/{ s//\1/; q; }
20816           /^X\(\/\).*/{ s//\1/; q; }
20817           s/.*/./; q'`
20818     done
20819     test ! -n "$as_dirs" || mkdir $as_dirs
20820   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20821 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20822    { (exit 1); exit 1; }; }; }
20824       rm -f $ac_file
20825       mv $tmp/config.h $ac_file
20826     fi
20827   else
20828     cat $tmp/config.h
20829     rm -f $tmp/config.h
20830   fi
20831 # Compute $ac_file's index in $config_headers.
20832 _am_stamp_count=1
20833 for _am_header in $config_headers :; do
20834   case $_am_header in
20835     $ac_file | $ac_file:* )
20836       break ;;
20837     * )
20838       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
20839   esac
20840 done
20841 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
20842 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20843          X$ac_file : 'X\(//\)[^/]' \| \
20844          X$ac_file : 'X\(//\)$' \| \
20845          X$ac_file : 'X\(/\)' \| \
20846          .     : '\(.\)' 2>/dev/null ||
20847 echo X$ac_file |
20848     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20849           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20850           /^X\(\/\/\)$/{ s//\1/; q; }
20851           /^X\(\/\).*/{ s//\1/; q; }
20852           s/.*/./; q'`/stamp-h$_am_stamp_count
20853 done
20854 _ACEOF
20855 cat >>$CONFIG_STATUS <<\_ACEOF
20858 # CONFIG_COMMANDS section.
20860 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
20861   ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
20862   ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
20863   ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
20864 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20865          X"$ac_dest" : 'X\(//\)[^/]' \| \
20866          X"$ac_dest" : 'X\(//\)$' \| \
20867          X"$ac_dest" : 'X\(/\)' \| \
20868          .     : '\(.\)' 2>/dev/null ||
20869 echo X"$ac_dest" |
20870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20871           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20872           /^X\(\/\/\)$/{ s//\1/; q; }
20873           /^X\(\/\).*/{ s//\1/; q; }
20874           s/.*/./; q'`
20875   { if $as_mkdir_p; then
20876     mkdir -p "$ac_dir"
20877   else
20878     as_dir="$ac_dir"
20879     as_dirs=
20880     while test ! -d "$as_dir"; do
20881       as_dirs="$as_dir $as_dirs"
20882       as_dir=`(dirname "$as_dir") 2>/dev/null ||
20883 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20884          X"$as_dir" : 'X\(//\)[^/]' \| \
20885          X"$as_dir" : 'X\(//\)$' \| \
20886          X"$as_dir" : 'X\(/\)' \| \
20887          .     : '\(.\)' 2>/dev/null ||
20888 echo X"$as_dir" |
20889     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20890           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20891           /^X\(\/\/\)$/{ s//\1/; q; }
20892           /^X\(\/\).*/{ s//\1/; q; }
20893           s/.*/./; q'`
20894     done
20895     test ! -n "$as_dirs" || mkdir $as_dirs
20896   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
20897 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
20898    { (exit 1); exit 1; }; }; }
20900   ac_builddir=.
20902 if test "$ac_dir" != .; then
20903   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
20904   # A "../" for each directory in $ac_dir_suffix.
20905   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
20906 else
20907   ac_dir_suffix= ac_top_builddir=
20910 case $srcdir in
20911   .)  # No --srcdir option.  We are building in place.
20912     ac_srcdir=.
20913     if test -z "$ac_top_builddir"; then
20914        ac_top_srcdir=.
20915     else
20916        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
20917     fi ;;
20918   [\\/]* | ?:[\\/]* )  # Absolute path.
20919     ac_srcdir=$srcdir$ac_dir_suffix;
20920     ac_top_srcdir=$srcdir ;;
20921   *) # Relative path.
20922     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
20923     ac_top_srcdir=$ac_top_builddir$srcdir ;;
20924 esac
20926 # Do not use `cd foo && pwd` to compute absolute paths, because
20927 # the directories may not exist.
20928 case `pwd` in
20929 .) ac_abs_builddir="$ac_dir";;
20931   case "$ac_dir" in
20932   .) ac_abs_builddir=`pwd`;;
20933   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
20934   *) ac_abs_builddir=`pwd`/"$ac_dir";;
20935   esac;;
20936 esac
20937 case $ac_abs_builddir in
20938 .) ac_abs_top_builddir=${ac_top_builddir}.;;
20940   case ${ac_top_builddir}. in
20941   .) ac_abs_top_builddir=$ac_abs_builddir;;
20942   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
20943   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
20944   esac;;
20945 esac
20946 case $ac_abs_builddir in
20947 .) ac_abs_srcdir=$ac_srcdir;;
20949   case $ac_srcdir in
20950   .) ac_abs_srcdir=$ac_abs_builddir;;
20951   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
20952   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
20953   esac;;
20954 esac
20955 case $ac_abs_builddir in
20956 .) ac_abs_top_srcdir=$ac_top_srcdir;;
20958   case $ac_top_srcdir in
20959   .) ac_abs_top_srcdir=$ac_abs_builddir;;
20960   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
20961   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
20962   esac;;
20963 esac
20966   { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
20967 echo "$as_me: executing $ac_dest commands" >&6;}
20968   case $ac_dest in
20969     depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
20970   # Strip MF so we end up with the name of the file.
20971   mf=`echo "$mf" | sed -e 's/:.*$//'`
20972   # Check whether this is an Automake generated Makefile or not.
20973   # We used to match only the files named `Makefile.in', but
20974   # some people rename them; so instead we look at the file content.
20975   # Grep'ing the first line is not enough: some people post-process
20976   # each Makefile.in and add a new line on top of each file to say so.
20977   # So let's grep whole file.
20978   if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
20979     dirpart=`(dirname "$mf") 2>/dev/null ||
20980 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20981          X"$mf" : 'X\(//\)[^/]' \| \
20982          X"$mf" : 'X\(//\)$' \| \
20983          X"$mf" : 'X\(/\)' \| \
20984          .     : '\(.\)' 2>/dev/null ||
20985 echo X"$mf" |
20986     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
20987           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
20988           /^X\(\/\/\)$/{ s//\1/; q; }
20989           /^X\(\/\).*/{ s//\1/; q; }
20990           s/.*/./; q'`
20991   else
20992     continue
20993   fi
20994   # Extract the definition of DEPDIR, am__include, and am__quote
20995   # from the Makefile without running `make'.
20996   DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
20997   test -z "$DEPDIR" && continue
20998   am__include=`sed -n 's/^am__include = //p' < "$mf"`
20999   test -z "am__include" && continue
21000   am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21001   # When using ansi2knr, U may be empty or an underscore; expand it
21002   U=`sed -n 's/^U = //p' < "$mf"`
21003   # Find all dependency output files, they are included files with
21004   # $(DEPDIR) in their names.  We invoke sed twice because it is the
21005   # simplest approach to changing $(DEPDIR) to its actual value in the
21006   # expansion.
21007   for file in `sed -n "
21008     s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21009        sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21010     # Make sure the directory exists.
21011     test -f "$dirpart/$file" && continue
21012     fdir=`(dirname "$file") 2>/dev/null ||
21013 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21014          X"$file" : 'X\(//\)[^/]' \| \
21015          X"$file" : 'X\(//\)$' \| \
21016          X"$file" : 'X\(/\)' \| \
21017          .     : '\(.\)' 2>/dev/null ||
21018 echo X"$file" |
21019     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21020           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21021           /^X\(\/\/\)$/{ s//\1/; q; }
21022           /^X\(\/\).*/{ s//\1/; q; }
21023           s/.*/./; q'`
21024     { if $as_mkdir_p; then
21025     mkdir -p $dirpart/$fdir
21026   else
21027     as_dir=$dirpart/$fdir
21028     as_dirs=
21029     while test ! -d "$as_dir"; do
21030       as_dirs="$as_dir $as_dirs"
21031       as_dir=`(dirname "$as_dir") 2>/dev/null ||
21032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21033          X"$as_dir" : 'X\(//\)[^/]' \| \
21034          X"$as_dir" : 'X\(//\)$' \| \
21035          X"$as_dir" : 'X\(/\)' \| \
21036          .     : '\(.\)' 2>/dev/null ||
21037 echo X"$as_dir" |
21038     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
21039           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
21040           /^X\(\/\/\)$/{ s//\1/; q; }
21041           /^X\(\/\).*/{ s//\1/; q; }
21042           s/.*/./; q'`
21043     done
21044     test ! -n "$as_dirs" || mkdir $as_dirs
21045   fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
21046 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
21047    { (exit 1); exit 1; }; }; }
21049     # echo "creating $dirpart/$file"
21050     echo '# dummy' > "$dirpart/$file"
21051   done
21052 done
21053  ;;
21054   esac
21055 done
21056 _ACEOF
21058 cat >>$CONFIG_STATUS <<\_ACEOF
21060 { (exit 0); exit 0; }
21061 _ACEOF
21062 chmod +x $CONFIG_STATUS
21063 ac_clean_files=$ac_clean_files_save
21066 # configure is writing to config.log, and then calls config.status.
21067 # config.status does its own redirection, appending to config.log.
21068 # Unfortunately, on DOS this fails, as config.log is still kept open
21069 # by configure, so config.status won't be able to write to it; its
21070 # output is simply discarded.  So we exec the FD to /dev/null,
21071 # effectively closing config.log, so it can be properly (re)opened and
21072 # appended to by config.status.  When coming back to configure, we
21073 # need to make the FD available again.
21074 if test "$no_create" != yes; then
21075   ac_cs_success=:
21076   ac_config_status_args=
21077   test "$silent" = yes &&
21078     ac_config_status_args="$ac_config_status_args --quiet"
21079   exec 5>/dev/null
21080   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21081   exec 5>>config.log
21082   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21083   # would make configure fail if this is the last instruction.
21084   $ac_cs_success || { (exit 1); exit 1; }