"Fossies" - the Fresh Open Source Software Archive

Member "mapgenerator-1.1.2/autom4te.cache/output.1" (20 Aug 2005, 680816 Bytes) of package /linux/www/old/mapgenerator-1.1.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 @%:@! /bin/sh
    2 @%:@ Guess values for system-dependent variables and create Makefiles.
    3 @%:@ Generated by GNU Autoconf 2.59.
    4 @%:@ 
    5 @%:@ Copyright (C) 2003 Free Software Foundation, Inc.
    6 @%:@ This configure script is free software; the Free Software Foundation
    7 @%:@ gives unlimited permission to copy, distribute and modify it.
    8 ## --------------------- ##
    9 ## M4sh Initialization.  ##
   10 ## --------------------- ##
   11 
   12 # Be Bourne compatible
   13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
   14   emulate sh
   15   NULLCMD=:
   16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
   17   # is contrary to our usage.  Disable this feature.
   18   alias -g '${1+"$@"}'='"$@"'
   19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
   20   set -o posix
   21 fi
   22 DUALCASE=1; export DUALCASE # for MKS sh
   23 
   24 # Support unset when possible.
   25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
   26   as_unset=unset
   27 else
   28   as_unset=false
   29 fi
   30 
   31 
   32 # Work around bugs in pre-3.0 UWIN ksh.
   33 $as_unset ENV MAIL MAILPATH
   34 PS1='$ '
   35 PS2='> '
   36 PS4='+ '
   37 
   38 # NLS nuisances.
   39 for as_var in \
   40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
   41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
   42   LC_TELEPHONE LC_TIME
   43 do
   44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
   45     eval $as_var=C; export $as_var
   46   else
   47     $as_unset $as_var
   48   fi
   49 done
   50 
   51 # Required to use basename.
   52 if expr a : '\(a\)' >/dev/null 2>&1; then
   53   as_expr=expr
   54 else
   55   as_expr=false
   56 fi
   57 
   58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
   59   as_basename=basename
   60 else
   61   as_basename=false
   62 fi
   63 
   64 
   65 # Name of the executable.
   66 as_me=`$as_basename "$0" ||
   67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
   68 	 X"$0" : 'X\(//\)$' \| \
   69 	 X"$0" : 'X\(/\)$' \| \
   70 	 .     : '\(.\)' 2>/dev/null ||
   71 echo X/"$0" |
   72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
   73   	  /^X\/\(\/\/\)$/{ s//\1/; q; }
   74   	  /^X\/\(\/\).*/{ s//\1/; q; }
   75   	  s/.*/./; q'`
   76 
   77 
   78 # PATH needs CR, and LINENO needs CR and PATH.
   79 # Avoid depending upon Character Ranges.
   80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
   81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
   82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
   83 as_cr_digits='0123456789'
   84 as_cr_alnum=$as_cr_Letters$as_cr_digits
   85 
   86 # The user is always right.
   87 if test "${PATH_SEPARATOR+set}" != set; then
   88   echo "#! /bin/sh" >conf$$.sh
   89   echo  "exit 0"   >>conf$$.sh
   90   chmod +x conf$$.sh
   91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
   92     PATH_SEPARATOR=';'
   93   else
   94     PATH_SEPARATOR=:
   95   fi
   96   rm -f conf$$.sh
   97 fi
   98 
   99 
  100   as_lineno_1=$LINENO
  101   as_lineno_2=$LINENO
  102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  103   test "x$as_lineno_1" != "x$as_lineno_2" &&
  104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
  105   # Find who we are.  Look in the path if we contain no path at all
  106   # relative or not.
  107   case $0 in
  108     *[\\/]* ) as_myself=$0 ;;
  109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  110 for as_dir in $PATH
  111 do
  112   IFS=$as_save_IFS
  113   test -z "$as_dir" && as_dir=.
  114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  115 done
  116 
  117        ;;
  118   esac
  119   # We did not find ourselves, most probably we were run as `sh COMMAND'
  120   # in which case we are not to be found in the path.
  121   if test "x$as_myself" = x; then
  122     as_myself=$0
  123   fi
  124   if test ! -f "$as_myself"; then
  125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  126    { (exit 1); exit 1; }; }
  127   fi
  128   case $CONFIG_SHELL in
  129   '')
  130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  132 do
  133   IFS=$as_save_IFS
  134   test -z "$as_dir" && as_dir=.
  135   for as_base in sh bash ksh sh5; do
  136 	 case $as_dir in
  137 	 /*)
  138 	   if ("$as_dir/$as_base" -c '
  139   as_lineno_1=$LINENO
  140   as_lineno_2=$LINENO
  141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  142   test "x$as_lineno_1" != "x$as_lineno_2" &&
  143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
  144 	     $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  145 	     $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  146 	     CONFIG_SHELL=$as_dir/$as_base
  147 	     export CONFIG_SHELL
  148 	     exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  149 	   fi;;
  150 	 esac
  151        done
  152 done
  153 ;;
  154   esac
  155 
  156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  157   # uniformly replaced by the line number.  The first 'sed' inserts a
  158   # line-number line before each line; the second 'sed' does the real
  159   # work.  The second script uses 'N' to pair each line-number line
  160   # with the numbered line, and appends trailing '-' during
  161   # substitution so that $LINENO is not a special case at line end.
  162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
  164   sed '=' <$as_myself |
  165     sed '
  166       N
  167       s,$,-,
  168       : loop
  169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  170       t loop
  171       s,-$,,
  172       s,^['$as_cr_digits']*\n,,
  173     ' >$as_me.lineno &&
  174   chmod +x $as_me.lineno ||
  175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  176    { (exit 1); exit 1; }; }
  177 
  178   # Don't try to exec as it changes $[0], causing all sort of problems
  179   # (the dirname of $[0] is not the place where we might find the
  180   # original and so on.  Autoconf is especially sensible to this).
  181   . ./$as_me.lineno
  182   # Exit status is that of the last command.
  183   exit
  184 }
  185 
  186 
  187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  188   *c*,-n*) ECHO_N= ECHO_C='
  189 ' ECHO_T='	' ;;
  190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
  192 esac
  193 
  194 if expr a : '\(a\)' >/dev/null 2>&1; then
  195   as_expr=expr
  196 else
  197   as_expr=false
  198 fi
  199 
  200 rm -f conf$$ conf$$.exe conf$$.file
  201 echo >conf$$.file
  202 if ln -s conf$$.file conf$$ 2>/dev/null; then
  203   # We could just check for DJGPP; but this test a) works b) is more generic
  204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  205   if test -f conf$$.exe; then
  206     # Don't use ln at all; we don't have any links
  207     as_ln_s='cp -p'
  208   else
  209     as_ln_s='ln -s'
  210   fi
  211 elif ln conf$$.file conf$$ 2>/dev/null; then
  212   as_ln_s=ln
  213 else
  214   as_ln_s='cp -p'
  215 fi
  216 rm -f conf$$ conf$$.exe conf$$.file
  217 
  218 if mkdir -p . 2>/dev/null; then
  219   as_mkdir_p=:
  220 else
  221   test -d ./-p && rmdir ./-p
  222   as_mkdir_p=false
  223 fi
  224 
  225 as_executable_p="test -f"
  226 
  227 # Sed expression to map a string onto a valid CPP name.
  228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  229 
  230 # Sed expression to map a string onto a valid variable name.
  231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  232 
  233 
  234 # IFS
  235 # We need space, tab and new line, in precisely that order.
  236 as_nl='
  237 '
  238 IFS=" 	$as_nl"
  239 
  240 # CDPATH.
  241 $as_unset CDPATH
  242 
  243 
  244 
  245 # Check that we are running under the correct shell.
  246 SHELL=${CONFIG_SHELL-/bin/sh}
  247 
  248 case X$ECHO in
  249 X*--fallback-echo)
  250   # Remove one level of quotation (which was required for Make).
  251   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  252   ;;
  253 esac
  254 
  255 echo=${ECHO-echo}
  256 if test "X$1" = X--no-reexec; then
  257   # Discard the --no-reexec flag, and continue.
  258   shift
  259 elif test "X$1" = X--fallback-echo; then
  260   # Avoid inline document here, it may be left over
  261   :
  262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  263   # Yippee, $echo works!
  264   :
  265 else
  266   # Restart under the correct shell.
  267   exec $SHELL "$0" --no-reexec ${1+"$@"}
  268 fi
  269 
  270 if test "X$1" = X--fallback-echo; then
  271   # used as fallback echo
  272   shift
  273   cat <<EOF
  274 $*
  275 EOF
  276   exit 0
  277 fi
  278 
  279 # The HP-UX ksh and POSIX shell print the target directory to stdout
  280 # if CDPATH is set.
  281 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  282 
  283 if test -z "$ECHO"; then
  284 if test "X${echo_test_string+set}" != Xset; then
  285 # find a string as large as possible, as long as the shell can cope with it
  286   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  287     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  288     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  289        echo_test_string="`eval $cmd`" &&
  290        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  291     then
  292       break
  293     fi
  294   done
  295 fi
  296 
  297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  298    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  299    test "X$echo_testing_string" = "X$echo_test_string"; then
  300   :
  301 else
  302   # The Solaris, AIX, and Digital Unix default echo programs unquote
  303   # backslashes.  This makes it impossible to quote backslashes using
  304   #   echo "$something" | sed 's/\\/\\\\/g'
  305   #
  306   # So, first we look for a working echo in the user's PATH.
  307 
  308   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  309   for dir in $PATH /usr/ucb; do
  310     IFS="$lt_save_ifs"
  311     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  312        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  313        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  314        test "X$echo_testing_string" = "X$echo_test_string"; then
  315       echo="$dir/echo"
  316       break
  317     fi
  318   done
  319   IFS="$lt_save_ifs"
  320 
  321   if test "X$echo" = Xecho; then
  322     # We didn't find a better echo, so look for alternatives.
  323     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  324        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  325        test "X$echo_testing_string" = "X$echo_test_string"; then
  326       # This shell has a builtin print -r that does the trick.
  327       echo='print -r'
  328     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  329 	 test "X$CONFIG_SHELL" != X/bin/ksh; then
  330       # If we have ksh, try running configure again with it.
  331       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  332       export ORIGINAL_CONFIG_SHELL
  333       CONFIG_SHELL=/bin/ksh
  334       export CONFIG_SHELL
  335       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  336     else
  337       # Try using printf.
  338       echo='printf %s\n'
  339       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  340 	 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  341 	 test "X$echo_testing_string" = "X$echo_test_string"; then
  342 	# Cool, printf works
  343 	:
  344       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  345 	   test "X$echo_testing_string" = 'X\t' &&
  346 	   echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  347 	   test "X$echo_testing_string" = "X$echo_test_string"; then
  348 	CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  349 	export CONFIG_SHELL
  350 	SHELL="$CONFIG_SHELL"
  351 	export SHELL
  352 	echo="$CONFIG_SHELL $0 --fallback-echo"
  353       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  354 	   test "X$echo_testing_string" = 'X\t' &&
  355 	   echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  356 	   test "X$echo_testing_string" = "X$echo_test_string"; then
  357 	echo="$CONFIG_SHELL $0 --fallback-echo"
  358       else
  359 	# maybe with a smaller string...
  360 	prev=:
  361 
  362 	for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  363 	  if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  364 	  then
  365 	    break
  366 	  fi
  367 	  prev="$cmd"
  368 	done
  369 
  370 	if test "$prev" != 'sed 50q "$0"'; then
  371 	  echo_test_string=`eval $prev`
  372 	  export echo_test_string
  373 	  exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  374 	else
  375 	  # Oops.  We lost completely, so just stick with echo.
  376 	  echo=echo
  377 	fi
  378       fi
  379     fi
  380   fi
  381 fi
  382 fi
  383 
  384 # Copy echo and quote the copy suitably for passing to libtool from
  385 # the Makefile, instead of quoting the original, which is used later.
  386 ECHO=$echo
  387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  388    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  389 fi
  390 
  391 
  392 
  393 
  394 tagnames=${tagnames+${tagnames},}CXX
  395 
  396 tagnames=${tagnames+${tagnames},}F77
  397 
  398 # Name of the host.
  399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  400 # so uname gets run too.
  401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  402 
  403 exec 6>&1
  404 
  405 #
  406 # Initializations.
  407 #
  408 ac_default_prefix=/usr/local
  409 ac_config_libobj_dir=.
  410 cross_compiling=no
  411 subdirs=
  412 MFLAGS=
  413 MAKEFLAGS=
  414 SHELL=${CONFIG_SHELL-/bin/sh}
  415 
  416 # Maximum number of lines to put in a shell here document.
  417 # This variable seems obsolete.  It should probably be removed, and
  418 # only ac_max_sed_lines should be used.
  419 : ${ac_max_here_lines=38}
  420 
  421 # Identity of this package.
  422 PACKAGE_NAME=
  423 PACKAGE_TARNAME=
  424 PACKAGE_VERSION=
  425 PACKAGE_STRING=
  426 PACKAGE_BUGREPORT=
  427 
  428 ac_unique_file="src/main.cpp"
  429 # Factoring default headers for most tests.
  430 ac_includes_default="\
  431 #include <stdio.h>
  432 #if HAVE_SYS_TYPES_H
  433 # include <sys/types.h>
  434 #endif
  435 #if HAVE_SYS_STAT_H
  436 # include <sys/stat.h>
  437 #endif
  438 #if STDC_HEADERS
  439 # include <stdlib.h>
  440 # include <stddef.h>
  441 #else
  442 # if HAVE_STDLIB_H
  443 #  include <stdlib.h>
  444 # endif
  445 #endif
  446 #if HAVE_STRING_H
  447 # if !STDC_HEADERS && HAVE_MEMORY_H
  448 #  include <memory.h>
  449 # endif
  450 # include <string.h>
  451 #endif
  452 #if HAVE_STRINGS_H
  453 # include <strings.h>
  454 #endif
  455 #if HAVE_INTTYPES_H
  456 # include <inttypes.h>
  457 #else
  458 # if HAVE_STDINT_H
  459 #  include <stdint.h>
  460 # endif
  461 #endif
  462 #if HAVE_UNISTD_H
  463 # include <unistd.h>
  464 #endif"
  465 
  466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar 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 CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL FLTKConf FLTK_LIBS FLTK_FLAGS PKG_CONFIG DEPS_CFLAGS DEPS_LIBS LIB@&t@OBJS LTLIBOBJS'
  467 ac_subst_files=''
  468 
  469 # Initialize some variables set by options.
  470 ac_init_help=
  471 ac_init_version=false
  472 # The variables have the same names as the options, with
  473 # dashes changed to underlines.
  474 cache_file=/dev/null
  475 exec_prefix=NONE
  476 no_create=
  477 no_recursion=
  478 prefix=NONE
  479 program_prefix=NONE
  480 program_suffix=NONE
  481 program_transform_name=s,x,x,
  482 silent=
  483 site=
  484 srcdir=
  485 verbose=
  486 x_includes=NONE
  487 x_libraries=NONE
  488 
  489 # Installation directory options.
  490 # These are left unexpanded so users can "make install exec_prefix=/foo"
  491 # and all the variables that are supposed to be based on exec_prefix
  492 # by default will actually change.
  493 # Use braces instead of parens because sh, perl, etc. also accept them.
  494 bindir='${exec_prefix}/bin'
  495 sbindir='${exec_prefix}/sbin'
  496 libexecdir='${exec_prefix}/libexec'
  497 datadir='${prefix}/share'
  498 sysconfdir='${prefix}/etc'
  499 sharedstatedir='${prefix}/com'
  500 localstatedir='${prefix}/var'
  501 libdir='${exec_prefix}/lib'
  502 includedir='${prefix}/include'
  503 oldincludedir='/usr/include'
  504 infodir='${prefix}/info'
  505 mandir='${prefix}/man'
  506 
  507 ac_prev=
  508 for ac_option
  509 do
  510   # If the previous option needs an argument, assign it.
  511   if test -n "$ac_prev"; then
  512     eval "$ac_prev=\$ac_option"
  513     ac_prev=
  514     continue
  515   fi
  516 
  517   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  518 
  519   # Accept the important Cygnus configure options, so we can diagnose typos.
  520 
  521   case $ac_option in
  522 
  523   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  524     ac_prev=bindir ;;
  525   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  526     bindir=$ac_optarg ;;
  527 
  528   -build | --build | --buil | --bui | --bu)
  529     ac_prev=build_alias ;;
  530   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  531     build_alias=$ac_optarg ;;
  532 
  533   -cache-file | --cache-file | --cache-fil | --cache-fi \
  534   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  535     ac_prev=cache_file ;;
  536   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  537   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  538     cache_file=$ac_optarg ;;
  539 
  540   --config-cache | -C)
  541     cache_file=config.cache ;;
  542 
  543   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  544     ac_prev=datadir ;;
  545   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  546   | --da=*)
  547     datadir=$ac_optarg ;;
  548 
  549   -disable-* | --disable-*)
  550     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  551     # Reject names that are not valid shell variable names.
  552     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  553       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  554    { (exit 1); exit 1; }; }
  555     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  556     eval "enable_$ac_feature=no" ;;
  557 
  558   -enable-* | --enable-*)
  559     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  560     # Reject names that are not valid shell variable names.
  561     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  562       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  563    { (exit 1); exit 1; }; }
  564     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  565     case $ac_option in
  566       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  567       *) ac_optarg=yes ;;
  568     esac
  569     eval "enable_$ac_feature='$ac_optarg'" ;;
  570 
  571   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  572   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  573   | --exec | --exe | --ex)
  574     ac_prev=exec_prefix ;;
  575   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  576   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  577   | --exec=* | --exe=* | --ex=*)
  578     exec_prefix=$ac_optarg ;;
  579 
  580   -gas | --gas | --ga | --g)
  581     # Obsolete; use --with-gas.
  582     with_gas=yes ;;
  583 
  584   -help | --help | --hel | --he | -h)
  585     ac_init_help=long ;;
  586   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  587     ac_init_help=recursive ;;
  588   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  589     ac_init_help=short ;;
  590 
  591   -host | --host | --hos | --ho)
  592     ac_prev=host_alias ;;
  593   -host=* | --host=* | --hos=* | --ho=*)
  594     host_alias=$ac_optarg ;;
  595 
  596   -includedir | --includedir | --includedi | --included | --include \
  597   | --includ | --inclu | --incl | --inc)
  598     ac_prev=includedir ;;
  599   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  600   | --includ=* | --inclu=* | --incl=* | --inc=*)
  601     includedir=$ac_optarg ;;
  602 
  603   -infodir | --infodir | --infodi | --infod | --info | --inf)
  604     ac_prev=infodir ;;
  605   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  606     infodir=$ac_optarg ;;
  607 
  608   -libdir | --libdir | --libdi | --libd)
  609     ac_prev=libdir ;;
  610   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  611     libdir=$ac_optarg ;;
  612 
  613   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  614   | --libexe | --libex | --libe)
  615     ac_prev=libexecdir ;;
  616   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  617   | --libexe=* | --libex=* | --libe=*)
  618     libexecdir=$ac_optarg ;;
  619 
  620   -localstatedir | --localstatedir | --localstatedi | --localstated \
  621   | --localstate | --localstat | --localsta | --localst \
  622   | --locals | --local | --loca | --loc | --lo)
  623     ac_prev=localstatedir ;;
  624   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  625   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  626   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  627     localstatedir=$ac_optarg ;;
  628 
  629   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  630     ac_prev=mandir ;;
  631   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  632     mandir=$ac_optarg ;;
  633 
  634   -nfp | --nfp | --nf)
  635     # Obsolete; use --without-fp.
  636     with_fp=no ;;
  637 
  638   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  639   | --no-cr | --no-c | -n)
  640     no_create=yes ;;
  641 
  642   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  643   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  644     no_recursion=yes ;;
  645 
  646   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  647   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  648   | --oldin | --oldi | --old | --ol | --o)
  649     ac_prev=oldincludedir ;;
  650   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  651   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  652   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  653     oldincludedir=$ac_optarg ;;
  654 
  655   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  656     ac_prev=prefix ;;
  657   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  658     prefix=$ac_optarg ;;
  659 
  660   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  661   | --program-pre | --program-pr | --program-p)
  662     ac_prev=program_prefix ;;
  663   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  664   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  665     program_prefix=$ac_optarg ;;
  666 
  667   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  668   | --program-suf | --program-su | --program-s)
  669     ac_prev=program_suffix ;;
  670   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  671   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  672     program_suffix=$ac_optarg ;;
  673 
  674   -program-transform-name | --program-transform-name \
  675   | --program-transform-nam | --program-transform-na \
  676   | --program-transform-n | --program-transform- \
  677   | --program-transform | --program-transfor \
  678   | --program-transfo | --program-transf \
  679   | --program-trans | --program-tran \
  680   | --progr-tra | --program-tr | --program-t)
  681     ac_prev=program_transform_name ;;
  682   -program-transform-name=* | --program-transform-name=* \
  683   | --program-transform-nam=* | --program-transform-na=* \
  684   | --program-transform-n=* | --program-transform-=* \
  685   | --program-transform=* | --program-transfor=* \
  686   | --program-transfo=* | --program-transf=* \
  687   | --program-trans=* | --program-tran=* \
  688   | --progr-tra=* | --program-tr=* | --program-t=*)
  689     program_transform_name=$ac_optarg ;;
  690 
  691   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  692   | -silent | --silent | --silen | --sile | --sil)
  693     silent=yes ;;
  694 
  695   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  696     ac_prev=sbindir ;;
  697   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  698   | --sbi=* | --sb=*)
  699     sbindir=$ac_optarg ;;
  700 
  701   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  702   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  703   | --sharedst | --shareds | --shared | --share | --shar \
  704   | --sha | --sh)
  705     ac_prev=sharedstatedir ;;
  706   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  707   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  708   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  709   | --sha=* | --sh=*)
  710     sharedstatedir=$ac_optarg ;;
  711 
  712   -site | --site | --sit)
  713     ac_prev=site ;;
  714   -site=* | --site=* | --sit=*)
  715     site=$ac_optarg ;;
  716 
  717   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  718     ac_prev=srcdir ;;
  719   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  720     srcdir=$ac_optarg ;;
  721 
  722   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  723   | --syscon | --sysco | --sysc | --sys | --sy)
  724     ac_prev=sysconfdir ;;
  725   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  726   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  727     sysconfdir=$ac_optarg ;;
  728 
  729   -target | --target | --targe | --targ | --tar | --ta | --t)
  730     ac_prev=target_alias ;;
  731   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  732     target_alias=$ac_optarg ;;
  733 
  734   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  735     verbose=yes ;;
  736 
  737   -version | --version | --versio | --versi | --vers | -V)
  738     ac_init_version=: ;;
  739 
  740   -with-* | --with-*)
  741     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  742     # Reject names that are not valid shell variable names.
  743     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  744       { echo "$as_me: error: invalid package name: $ac_package" >&2
  745    { (exit 1); exit 1; }; }
  746     ac_package=`echo $ac_package| sed 's/-/_/g'`
  747     case $ac_option in
  748       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  749       *) ac_optarg=yes ;;
  750     esac
  751     eval "with_$ac_package='$ac_optarg'" ;;
  752 
  753   -without-* | --without-*)
  754     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  755     # Reject names that are not valid shell variable names.
  756     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  757       { echo "$as_me: error: invalid package name: $ac_package" >&2
  758    { (exit 1); exit 1; }; }
  759     ac_package=`echo $ac_package | sed 's/-/_/g'`
  760     eval "with_$ac_package=no" ;;
  761 
  762   --x)
  763     # Obsolete; use --with-x.
  764     with_x=yes ;;
  765 
  766   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  767   | --x-incl | --x-inc | --x-in | --x-i)
  768     ac_prev=x_includes ;;
  769   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  770   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  771     x_includes=$ac_optarg ;;
  772 
  773   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  774   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  775     ac_prev=x_libraries ;;
  776   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  777   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  778     x_libraries=$ac_optarg ;;
  779 
  780   -*) { echo "$as_me: error: unrecognized option: $ac_option
  781 Try \`$0 --help' for more information." >&2
  782    { (exit 1); exit 1; }; }
  783     ;;
  784 
  785   *=*)
  786     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  787     # Reject names that are not valid shell variable names.
  788     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  789       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  790    { (exit 1); exit 1; }; }
  791     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  792     eval "$ac_envvar='$ac_optarg'"
  793     export $ac_envvar ;;
  794 
  795   *)
  796     # FIXME: should be removed in autoconf 3.0.
  797     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  798     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  799       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  800     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  801     ;;
  802 
  803   esac
  804 done
  805 
  806 if test -n "$ac_prev"; then
  807   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  808   { echo "$as_me: error: missing argument to $ac_option" >&2
  809    { (exit 1); exit 1; }; }
  810 fi
  811 
  812 # Be sure to have absolute paths.
  813 for ac_var in exec_prefix prefix
  814 do
  815   eval ac_val=$`echo $ac_var`
  816   case $ac_val in
  817     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  818     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  819    { (exit 1); exit 1; }; };;
  820   esac
  821 done
  822 
  823 # Be sure to have absolute paths.
  824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  825 	      localstatedir libdir includedir oldincludedir infodir mandir
  826 do
  827   eval ac_val=$`echo $ac_var`
  828   case $ac_val in
  829     [\\/$]* | ?:[\\/]* ) ;;
  830     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  831    { (exit 1); exit 1; }; };;
  832   esac
  833 done
  834 
  835 # There might be people who depend on the old broken behavior: `$host'
  836 # used to hold the argument of --host etc.
  837 # FIXME: To remove some day.
  838 build=$build_alias
  839 host=$host_alias
  840 target=$target_alias
  841 
  842 # FIXME: To remove some day.
  843 if test "x$host_alias" != x; then
  844   if test "x$build_alias" = x; then
  845     cross_compiling=maybe
  846     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  847     If a cross compiler is detected then cross compile mode will be used." >&2
  848   elif test "x$build_alias" != "x$host_alias"; then
  849     cross_compiling=yes
  850   fi
  851 fi
  852 
  853 ac_tool_prefix=
  854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
  855 
  856 test "$silent" = yes && exec 6>/dev/null
  857 
  858 
  859 # Find the source files, if location was not specified.
  860 if test -z "$srcdir"; then
  861   ac_srcdir_defaulted=yes
  862   # Try the directory containing this script, then its parent.
  863   ac_confdir=`(dirname "$0") 2>/dev/null ||
  864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  865 	 X"$0" : 'X\(//\)[^/]' \| \
  866 	 X"$0" : 'X\(//\)$' \| \
  867 	 X"$0" : 'X\(/\)' \| \
  868 	 .     : '\(.\)' 2>/dev/null ||
  869 echo X"$0" |
  870     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  871   	  /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  872   	  /^X\(\/\/\)$/{ s//\1/; q; }
  873   	  /^X\(\/\).*/{ s//\1/; q; }
  874   	  s/.*/./; q'`
  875   srcdir=$ac_confdir
  876   if test ! -r $srcdir/$ac_unique_file; then
  877     srcdir=..
  878   fi
  879 else
  880   ac_srcdir_defaulted=no
  881 fi
  882 if test ! -r $srcdir/$ac_unique_file; then
  883   if test "$ac_srcdir_defaulted" = yes; then
  884     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  885    { (exit 1); exit 1; }; }
  886   else
  887     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  888    { (exit 1); exit 1; }; }
  889   fi
  890 fi
  891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  892   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  893    { (exit 1); exit 1; }; }
  894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  895 ac_env_build_alias_set=${build_alias+set}
  896 ac_env_build_alias_value=$build_alias
  897 ac_cv_env_build_alias_set=${build_alias+set}
  898 ac_cv_env_build_alias_value=$build_alias
  899 ac_env_host_alias_set=${host_alias+set}
  900 ac_env_host_alias_value=$host_alias
  901 ac_cv_env_host_alias_set=${host_alias+set}
  902 ac_cv_env_host_alias_value=$host_alias
  903 ac_env_target_alias_set=${target_alias+set}
  904 ac_env_target_alias_value=$target_alias
  905 ac_cv_env_target_alias_set=${target_alias+set}
  906 ac_cv_env_target_alias_value=$target_alias
  907 ac_env_CC_set=${CC+set}
  908 ac_env_CC_value=$CC
  909 ac_cv_env_CC_set=${CC+set}
  910 ac_cv_env_CC_value=$CC
  911 ac_env_CFLAGS_set=${CFLAGS+set}
  912 ac_env_CFLAGS_value=$CFLAGS
  913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
  914 ac_cv_env_CFLAGS_value=$CFLAGS
  915 ac_env_LDFLAGS_set=${LDFLAGS+set}
  916 ac_env_LDFLAGS_value=$LDFLAGS
  917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  918 ac_cv_env_LDFLAGS_value=$LDFLAGS
  919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  920 ac_env_CPPFLAGS_value=$CPPFLAGS
  921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  923 ac_env_CXX_set=${CXX+set}
  924 ac_env_CXX_value=$CXX
  925 ac_cv_env_CXX_set=${CXX+set}
  926 ac_cv_env_CXX_value=$CXX
  927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  928 ac_env_CXXFLAGS_value=$CXXFLAGS
  929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  931 ac_env_CPP_set=${CPP+set}
  932 ac_env_CPP_value=$CPP
  933 ac_cv_env_CPP_set=${CPP+set}
  934 ac_cv_env_CPP_value=$CPP
  935 ac_env_CXXCPP_set=${CXXCPP+set}
  936 ac_env_CXXCPP_value=$CXXCPP
  937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
  938 ac_cv_env_CXXCPP_value=$CXXCPP
  939 ac_env_F77_set=${F77+set}
  940 ac_env_F77_value=$F77
  941 ac_cv_env_F77_set=${F77+set}
  942 ac_cv_env_F77_value=$F77
  943 ac_env_FFLAGS_set=${FFLAGS+set}
  944 ac_env_FFLAGS_value=$FFLAGS
  945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
  946 ac_cv_env_FFLAGS_value=$FFLAGS
  947 
  948 #
  949 # Report the --help message.
  950 #
  951 if test "$ac_init_help" = "long"; then
  952   # Omit some internal or obsolete options to make the list less imposing.
  953   # This message is too long to be a string in the A/UX 3.1 sh.
  954   cat <<_ACEOF
  955 \`configure' configures this package to adapt to many kinds of systems.
  956 
  957 Usage: $0 [OPTION]... [VAR=VALUE]...
  958 
  959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
  960 VAR=VALUE.  See below for descriptions of some of the useful variables.
  961 
  962 Defaults for the options are specified in brackets.
  963 
  964 Configuration:
  965   -h, --help              display this help and exit
  966       --help=short        display options specific to this package
  967       --help=recursive    display the short help of all the included packages
  968   -V, --version           display version information and exit
  969   -q, --quiet, --silent   do not print \`checking...' messages
  970       --cache-file=FILE   cache test results in FILE [disabled]
  971   -C, --config-cache      alias for \`--cache-file=config.cache'
  972   -n, --no-create         do not create output files
  973       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
  974 
  975 _ACEOF
  976 
  977   cat <<_ACEOF
  978 Installation directories:
  979   --prefix=PREFIX         install architecture-independent files in PREFIX
  980 			  [$ac_default_prefix]
  981   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  982 			  [PREFIX]
  983 
  984 By default, \`make install' will install all the files in
  985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
  986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  987 for instance \`--prefix=\$HOME'.
  988 
  989 For better control, use the options below.
  990 
  991 Fine tuning of the installation directories:
  992   --bindir=DIR           user executables [EPREFIX/bin]
  993   --sbindir=DIR          system admin executables [EPREFIX/sbin]
  994   --libexecdir=DIR       program executables [EPREFIX/libexec]
  995   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
  996   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
  997   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
  998   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
  999   --libdir=DIR           object code libraries [EPREFIX/lib]
 1000   --includedir=DIR       C header files [PREFIX/include]
 1001   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
 1002   --infodir=DIR          info documentation [PREFIX/info]
 1003   --mandir=DIR           man documentation [PREFIX/man]
 1004 _ACEOF
 1005 
 1006   cat <<\_ACEOF
 1007 
 1008 Program names:
 1009   --program-prefix=PREFIX            prepend PREFIX to installed program names
 1010   --program-suffix=SUFFIX            append SUFFIX to installed program names
 1011   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
 1012 
 1013 System types:
 1014   --build=BUILD     configure for building on BUILD [guessed]
 1015   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
 1016 _ACEOF
 1017 fi
 1018 
 1019 if test -n "$ac_init_help"; then
 1020 
 1021   cat <<\_ACEOF
 1022 
 1023 Optional Features:
 1024   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
 1025   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
 1026   --disable-dependency-tracking  speeds up one-time build
 1027   --enable-dependency-tracking   do not reject slow dependency extractors
 1028   --enable-shared@<:@=PKGS@:>@ 
 1029                           build shared libraries @<:@default=yes@:>@
 1030   --enable-static@<:@=PKGS@:>@ 
 1031                           build static libraries @<:@default=yes@:>@
 1032   --enable-fast-install@<:@=PKGS@:>@ 
 1033                           optimize for fast installation @<:@default=yes@:>@
 1034   --disable-libtool-lock  avoid locking (might break parallel builds)
 1035   --enable-debug          use to enable debug (only defines DEBUG, maybe you also want to set CXXFLAGS!)
 1036 
 1037 Optional Packages:
 1038   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
 1039   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
 1040   --with-gnu-ld           assume the C compiler uses GNU ld @<:@default=no@:>@
 1041   --with-pic              try to use only PIC/non-PIC objects @<:@default=use
 1042                           both@:>@
 1043   --with-tags@<:@=TAGS@:>@ 
 1044                           include additional configurations @<:@automatic@:>@
 1045 
 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   CXX         C++ compiler command
 1054   CXXFLAGS    C++ compiler flags
 1055   CPP         C preprocessor
 1056   CXXCPP      C++ preprocessor
 1057   F77         Fortran 77 compiler command
 1058   FFLAGS      Fortran 77 compiler flags
 1059 
 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.
 1062 
 1063 _ACEOF
 1064 fi
 1065 
 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=.
 1072 
 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=
 1079 fi
 1080 
 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
 1096 
 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";;
 1101 *)
 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}.;;
 1110 *)
 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;;
 1119 *)
 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;;
 1128 *)
 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
 1135 
 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
 1153 fi
 1154 
 1155 test -n "$ac_init_help" && exit 0
 1156 if $ac_init_version; then
 1157   cat <<\_ACEOF
 1158 
 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
 1164 fi
 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.
 1169 
 1170 It was created by $as_me, which was
 1171 generated by GNU Autoconf 2.59.  Invocation command line was
 1172 
 1173   $ $0 $@
 1174 
 1175 _ACEOF
 1176 {
 1177 cat <<_ASUNAME
 1178 @%:@@%:@ --------- @%:@@%:@
 1179 @%:@@%:@ Platform. @%:@@%:@
 1180 @%:@@%:@ --------- @%:@@%:@
 1181 
 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`
 1187 
 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`
 1190 
 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`
 1198 
 1199 _ASUNAME
 1200 
 1201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1202 for as_dir in $PATH
 1203 do
 1204   IFS=$as_save_IFS
 1205   test -z "$as_dir" && as_dir=.
 1206   echo "PATH: $as_dir"
 1207 done
 1208 
 1209 } >&5
 1210 
 1211 cat >&5 <<_ACEOF
 1212 
 1213 
 1214 @%:@@%:@ ----------- @%:@@%:@
 1215 @%:@@%:@ Core tests. @%:@@%:@
 1216 @%:@@%:@ ----------- @%:@@%:@
 1217 
 1218 _ACEOF
 1219 
 1220 
 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
 1232 do
 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; }
 1271 
 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
 1281 
 1282     cat <<\_ASBOX
 1283 @%:@@%:@ ---------------- @%:@@%:@
 1284 @%:@@%:@ Cache variables. @%:@@%:@
 1285 @%:@@%:@ ---------------- @%:@@%:@
 1286 _ASBOX
 1287     echo
 1288     # The following way of writing the cache mishandles newlines in values,
 1289 {
 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;
 1302 }
 1303     echo
 1304 
 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
 1317 
 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
 1332 
 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
 1355 
 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
 1360 
 1361 # Predefined preprocessor variables.
 1362 
 1363 cat >>confdefs.h <<_ACEOF
 1364 @%:@define PACKAGE_NAME "$PACKAGE_NAME"
 1365 _ACEOF
 1366 
 1367 
 1368 cat >>confdefs.h <<_ACEOF
 1369 @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
 1370 _ACEOF
 1371 
 1372 
 1373 cat >>confdefs.h <<_ACEOF
 1374 @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
 1375 _ACEOF
 1376 
 1377 
 1378 cat >>confdefs.h <<_ACEOF
 1379 @%:@define PACKAGE_STRING "$PACKAGE_STRING"
 1380 _ACEOF
 1381 
 1382 
 1383 cat >>confdefs.h <<_ACEOF
 1384 @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
 1385 _ACEOF
 1386 
 1387 
 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
 1396 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
 1405 
 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
 1421 fi
 1422 
 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; }; }
 1472 fi
 1473 
 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
 1479 
 1480 
 1481 
 1482 
 1483 
 1484 
 1485 
 1486 
 1487 
 1488 
 1489 
 1490 
 1491 
 1492 
 1493 
 1494 
 1495 
 1496 
 1497 
 1498 
 1499 am__api_version="1.9"
 1500 ac_aux_dir=
 1501 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
 1502   if test -f $ac_dir/install-sh; then
 1503     ac_aux_dir=$ac_dir
 1504     ac_install_sh="$ac_aux_dir/install-sh -c"
 1505     break
 1506   elif test -f $ac_dir/install.sh; then
 1507     ac_aux_dir=$ac_dir
 1508     ac_install_sh="$ac_aux_dir/install.sh -c"
 1509     break
 1510   elif test -f $ac_dir/shtool; then
 1511     ac_aux_dir=$ac_dir
 1512     ac_install_sh="$ac_aux_dir/shtool install -c"
 1513     break
 1514   fi
 1515 done
 1516 if test -z "$ac_aux_dir"; then
 1517   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
 1518 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
 1519    { (exit 1); exit 1; }; }
 1520 fi
 1521 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
 1522 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
 1523 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
 1524 
 1525 # Find a good install program.  We prefer a C program (faster),
 1526 # so one script is as good as another.  But avoid the broken or
 1527 # incompatible versions:
 1528 # SysV /etc/install, /usr/sbin/install
 1529 # SunOS /usr/etc/install
 1530 # IRIX /sbin/install
 1531 # AIX /bin/install
 1532 # AmigaOS /C/install, which installs bootblocks on floppy discs
 1533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 1534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 1535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 1536 # OS/2's system install, which has a completely different semantic
 1537 # ./install, which can be erroneously created by make from ./install.sh.
 1538 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 1539 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 1540 if test -z "$INSTALL"; then
 1541 if test "${ac_cv_path_install+set}" = set; then
 1542   echo $ECHO_N "(cached) $ECHO_C" >&6
 1543 else
 1544   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1545 for as_dir in $PATH
 1546 do
 1547   IFS=$as_save_IFS
 1548   test -z "$as_dir" && as_dir=.
 1549   # Account for people who put trailing slashes in PATH elements.
 1550 case $as_dir/ in
 1551   ./ | .// | /cC/* | \
 1552   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 1553   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 1554   /usr/ucb/* ) ;;
 1555   *)
 1556     # OSF1 and SCO ODT 3.0 have their own names for install.
 1557     # Don't use installbsd from OSF since it installs stuff as root
 1558     # by default.
 1559     for ac_prog in ginstall scoinst install; do
 1560       for ac_exec_ext in '' $ac_executable_extensions; do
 1561 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 1562 	  if test $ac_prog = install &&
 1563 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 1564 	    # AIX install.  It has an incompatible calling convention.
 1565 	    :
 1566 	  elif test $ac_prog = install &&
 1567 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 1568 	    # program-specific install script used by HP pwplus--don't use.
 1569 	    :
 1570 	  else
 1571 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 1572 	    break 3
 1573 	  fi
 1574 	fi
 1575       done
 1576     done
 1577     ;;
 1578 esac
 1579 done
 1580 
 1581 
 1582 fi
 1583   if test "${ac_cv_path_install+set}" = set; then
 1584     INSTALL=$ac_cv_path_install
 1585   else
 1586     # As a last resort, use the slow shell script.  We don't cache a
 1587     # path for INSTALL within a source directory, because that will
 1588     # break other packages using the cache if that directory is
 1589     # removed, or if the path is relative.
 1590     INSTALL=$ac_install_sh
 1591   fi
 1592 fi
 1593 echo "$as_me:$LINENO: result: $INSTALL" >&5
 1594 echo "${ECHO_T}$INSTALL" >&6
 1595 
 1596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 1597 # It thinks the first close brace ends the variable substitution.
 1598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 1599 
 1600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 1601 
 1602 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 1603 
 1604 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
 1605 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
 1606 # Just in case
 1607 sleep 1
 1608 echo timestamp > conftest.file
 1609 # Do `set' in a subshell so we don't clobber the current shell's
 1610 # arguments.  Must try -L first in case configure is actually a
 1611 # symlink; some systems play weird games with the mod time of symlinks
 1612 # (eg FreeBSD returns the mod time of the symlink's containing
 1613 # directory).
 1614 if (
 1615    set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
 1616    if test "$*" = "X"; then
 1617       # -L didn't work.
 1618       set X `ls -t $srcdir/configure conftest.file`
 1619    fi
 1620    rm -f conftest.file
 1621    if test "$*" != "X $srcdir/configure conftest.file" \
 1622       && test "$*" != "X conftest.file $srcdir/configure"; then
 1623 
 1624       # If neither matched, then we have a broken ls.  This can happen
 1625       # if, for instance, CONFIG_SHELL is bash and it inherits a
 1626       # broken ls alias from the environment.  This has actually
 1627       # happened.  Such a system could not be considered "sane".
 1628       { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
 1629 alias in your environment" >&5
 1630 echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
 1631 alias in your environment" >&2;}
 1632    { (exit 1); exit 1; }; }
 1633    fi
 1634 
 1635    test "$2" = conftest.file
 1636    )
 1637 then
 1638    # Ok.
 1639    :
 1640 else
 1641    { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
 1642 Check your system clock" >&5
 1643 echo "$as_me: error: newly created file is older than distributed files!
 1644 Check your system clock" >&2;}
 1645    { (exit 1); exit 1; }; }
 1646 fi
 1647 echo "$as_me:$LINENO: result: yes" >&5
 1648 echo "${ECHO_T}yes" >&6
 1649 test "$program_prefix" != NONE &&
 1650   program_transform_name="s,^,$program_prefix,;$program_transform_name"
 1651 # Use a double $ so make ignores it.
 1652 test "$program_suffix" != NONE &&
 1653   program_transform_name="s,\$,$program_suffix,;$program_transform_name"
 1654 # Double any \ or $.  echo might interpret backslashes.
 1655 # By default was `s,x,x', remove it if useless.
 1656 cat <<\_ACEOF >conftest.sed
 1657 s/[\\$]/&&/g;s/;s,x,x,$//
 1658 _ACEOF
 1659 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
 1660 rm conftest.sed
 1661 
 1662 # expand $ac_aux_dir to an absolute path
 1663 am_aux_dir=`cd $ac_aux_dir && pwd`
 1664 
 1665 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
 1666 # Use eval to expand $SHELL
 1667 if eval "$MISSING --run true"; then
 1668   am_missing_run="$MISSING --run "
 1669 else
 1670   am_missing_run=
 1671   { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
 1672 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
 1673 fi
 1674 
 1675 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
 1676   # We used to keeping the `.' as first argument, in order to
 1677   # allow $(mkdir_p) to be used without argument.  As in
 1678   #   $(mkdir_p) $(somedir)
 1679   # where $(somedir) is conditionally defined.  However this is wrong
 1680   # for two reasons:
 1681   #  1. if the package is installed by a user who cannot write `.'
 1682   #     make install will fail,
 1683   #  2. the above comment should most certainly read
 1684   #     $(mkdir_p) $(DESTDIR)$(somedir)
 1685   #     so it does not work when $(somedir) is undefined and
 1686   #     $(DESTDIR) is not.
 1687   #  To support the latter case, we have to write
 1688   #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
 1689   #  so the `.' trick is pointless.
 1690   mkdir_p='mkdir -p --'
 1691 else
 1692   # On NextStep and OpenStep, the `mkdir' command does not
 1693   # recognize any option.  It will interpret all options as
 1694   # directories to create, and then abort because `.' already
 1695   # exists.
 1696   for d in ./-p ./--version;
 1697   do
 1698     test -d $d && rmdir $d
 1699   done
 1700   # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
 1701   if test -f "$ac_aux_dir/mkinstalldirs"; then
 1702     mkdir_p='$(mkinstalldirs)'
 1703   else
 1704     mkdir_p='$(install_sh) -d'
 1705   fi
 1706 fi
 1707 
 1708 for ac_prog in gawk mawk nawk awk
 1709 do
 1710   # Extract the first word of "$ac_prog", so it can be a program name with args.
 1711 set dummy $ac_prog; ac_word=$2
 1712 echo "$as_me:$LINENO: checking for $ac_word" >&5
 1713 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1714 if test "${ac_cv_prog_AWK+set}" = set; then
 1715   echo $ECHO_N "(cached) $ECHO_C" >&6
 1716 else
 1717   if test -n "$AWK"; then
 1718   ac_cv_prog_AWK="$AWK" # Let the user override the test.
 1719 else
 1720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1721 for as_dir in $PATH
 1722 do
 1723   IFS=$as_save_IFS
 1724   test -z "$as_dir" && as_dir=.
 1725   for ac_exec_ext in '' $ac_executable_extensions; do
 1726   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 1727     ac_cv_prog_AWK="$ac_prog"
 1728     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 1729     break 2
 1730   fi
 1731 done
 1732 done
 1733 
 1734 fi
 1735 fi
 1736 AWK=$ac_cv_prog_AWK
 1737 if test -n "$AWK"; then
 1738   echo "$as_me:$LINENO: result: $AWK" >&5
 1739 echo "${ECHO_T}$AWK" >&6
 1740 else
 1741   echo "$as_me:$LINENO: result: no" >&5
 1742 echo "${ECHO_T}no" >&6
 1743 fi
 1744 
 1745   test -n "$AWK" && break
 1746 done
 1747 
 1748 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
 1749 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
 1750 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
 1751 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
 1752   echo $ECHO_N "(cached) $ECHO_C" >&6
 1753 else
 1754   cat >conftest.make <<\_ACEOF
 1755 all:
 1756 	@echo 'ac_maketemp="$(MAKE)"'
 1757 _ACEOF
 1758 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
 1759 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
 1760 if test -n "$ac_maketemp"; then
 1761   eval ac_cv_prog_make_${ac_make}_set=yes
 1762 else
 1763   eval ac_cv_prog_make_${ac_make}_set=no
 1764 fi
 1765 rm -f conftest.make
 1766 fi
 1767 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
 1768   echo "$as_me:$LINENO: result: yes" >&5
 1769 echo "${ECHO_T}yes" >&6
 1770   SET_MAKE=
 1771 else
 1772   echo "$as_me:$LINENO: result: no" >&5
 1773 echo "${ECHO_T}no" >&6
 1774   SET_MAKE="MAKE=${MAKE-make}"
 1775 fi
 1776 
 1777 rm -rf .tst 2>/dev/null
 1778 mkdir .tst 2>/dev/null
 1779 if test -d .tst; then
 1780   am__leading_dot=.
 1781 else
 1782   am__leading_dot=_
 1783 fi
 1784 rmdir .tst 2>/dev/null
 1785 
 1786 # test to see if srcdir already configured
 1787 if test "`cd $srcdir && pwd`" != "`pwd`" &&
 1788    test -f $srcdir/config.status; then
 1789   { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
 1790 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
 1791    { (exit 1); exit 1; }; }
 1792 fi
 1793 
 1794 # test whether we have cygpath
 1795 if test -z "$CYGPATH_W"; then
 1796   if (cygpath --version) >/dev/null 2>/dev/null; then
 1797     CYGPATH_W='cygpath -w'
 1798   else
 1799     CYGPATH_W=echo
 1800   fi
 1801 fi
 1802 
 1803 
 1804 # Define the identity of the package.
 1805  PACKAGE=src/mapgenerator
 1806  VERSION=1.1.2
 1807 
 1808 
 1809 cat >>confdefs.h <<_ACEOF
 1810 @%:@define PACKAGE "$PACKAGE"
 1811 _ACEOF
 1812 
 1813  
 1814 cat >>confdefs.h <<_ACEOF
 1815 @%:@define VERSION "$VERSION"
 1816 _ACEOF
 1817 
 1818 # Some tools Automake needs.
 1819 
 1820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
 1821 
 1822 
 1823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
 1824 
 1825 
 1826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
 1827 
 1828 
 1829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
 1830 
 1831 
 1832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
 1833 
 1834 install_sh=${install_sh-"$am_aux_dir/install-sh"}
 1835 
 1836 # Installed binaries are usually stripped using `strip' when the user
 1837 # run `make install-strip'.  However `strip' might not be the right
 1838 # tool to use in cross-compilation environments, therefore Automake
 1839 # will honor the `STRIP' environment variable to overrule this program.
 1840 if test "$cross_compiling" != no; then
 1841   if test -n "$ac_tool_prefix"; then
 1842   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 1843 set dummy ${ac_tool_prefix}strip; ac_word=$2
 1844 echo "$as_me:$LINENO: checking for $ac_word" >&5
 1845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1846 if test "${ac_cv_prog_STRIP+set}" = set; then
 1847   echo $ECHO_N "(cached) $ECHO_C" >&6
 1848 else
 1849   if test -n "$STRIP"; then
 1850   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 1851 else
 1852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1853 for as_dir in $PATH
 1854 do
 1855   IFS=$as_save_IFS
 1856   test -z "$as_dir" && as_dir=.
 1857   for ac_exec_ext in '' $ac_executable_extensions; do
 1858   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 1859     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 1860     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 1861     break 2
 1862   fi
 1863 done
 1864 done
 1865 
 1866 fi
 1867 fi
 1868 STRIP=$ac_cv_prog_STRIP
 1869 if test -n "$STRIP"; then
 1870   echo "$as_me:$LINENO: result: $STRIP" >&5
 1871 echo "${ECHO_T}$STRIP" >&6
 1872 else
 1873   echo "$as_me:$LINENO: result: no" >&5
 1874 echo "${ECHO_T}no" >&6
 1875 fi
 1876 
 1877 fi
 1878 if test -z "$ac_cv_prog_STRIP"; then
 1879   ac_ct_STRIP=$STRIP
 1880   # Extract the first word of "strip", so it can be a program name with args.
 1881 set dummy strip; ac_word=$2
 1882 echo "$as_me:$LINENO: checking for $ac_word" >&5
 1883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1884 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 1885   echo $ECHO_N "(cached) $ECHO_C" >&6
 1886 else
 1887   if test -n "$ac_ct_STRIP"; then
 1888   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 1889 else
 1890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1891 for as_dir in $PATH
 1892 do
 1893   IFS=$as_save_IFS
 1894   test -z "$as_dir" && as_dir=.
 1895   for ac_exec_ext in '' $ac_executable_extensions; do
 1896   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 1897     ac_cv_prog_ac_ct_STRIP="strip"
 1898     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 1899     break 2
 1900   fi
 1901 done
 1902 done
 1903 
 1904   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 1905 fi
 1906 fi
 1907 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 1908 if test -n "$ac_ct_STRIP"; then
 1909   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 1910 echo "${ECHO_T}$ac_ct_STRIP" >&6
 1911 else
 1912   echo "$as_me:$LINENO: result: no" >&5
 1913 echo "${ECHO_T}no" >&6
 1914 fi
 1915 
 1916   STRIP=$ac_ct_STRIP
 1917 else
 1918   STRIP="$ac_cv_prog_STRIP"
 1919 fi
 1920 
 1921 fi
 1922 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
 1923 
 1924 # We need awk for the "check" target.  The system "awk" is bad on
 1925 # some platforms.
 1926 # Always define AMTAR for backward compatibility.
 1927 
 1928 AMTAR=${AMTAR-"${am_missing_run}tar"}
 1929 
 1930 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
 1931 
 1932 
 1933 
 1934 
 1935 
 1936 
 1937           ac_config_headers="$ac_config_headers config.h"
 1938 
 1939 
 1940 ac_ext=c
 1941 ac_cpp='$CPP $CPPFLAGS'
 1942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 1943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 1944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 1945 if test -n "$ac_tool_prefix"; then
 1946   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
 1947 set dummy ${ac_tool_prefix}gcc; ac_word=$2
 1948 echo "$as_me:$LINENO: checking for $ac_word" >&5
 1949 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1950 if test "${ac_cv_prog_CC+set}" = set; then
 1951   echo $ECHO_N "(cached) $ECHO_C" >&6
 1952 else
 1953   if test -n "$CC"; then
 1954   ac_cv_prog_CC="$CC" # Let the user override the test.
 1955 else
 1956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1957 for as_dir in $PATH
 1958 do
 1959   IFS=$as_save_IFS
 1960   test -z "$as_dir" && as_dir=.
 1961   for ac_exec_ext in '' $ac_executable_extensions; do
 1962   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 1963     ac_cv_prog_CC="${ac_tool_prefix}gcc"
 1964     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 1965     break 2
 1966   fi
 1967 done
 1968 done
 1969 
 1970 fi
 1971 fi
 1972 CC=$ac_cv_prog_CC
 1973 if test -n "$CC"; then
 1974   echo "$as_me:$LINENO: result: $CC" >&5
 1975 echo "${ECHO_T}$CC" >&6
 1976 else
 1977   echo "$as_me:$LINENO: result: no" >&5
 1978 echo "${ECHO_T}no" >&6
 1979 fi
 1980 
 1981 fi
 1982 if test -z "$ac_cv_prog_CC"; then
 1983   ac_ct_CC=$CC
 1984   # Extract the first word of "gcc", so it can be a program name with args.
 1985 set dummy gcc; ac_word=$2
 1986 echo "$as_me:$LINENO: checking for $ac_word" >&5
 1987 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 1988 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 1989   echo $ECHO_N "(cached) $ECHO_C" >&6
 1990 else
 1991   if test -n "$ac_ct_CC"; then
 1992   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 1993 else
 1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1995 for as_dir in $PATH
 1996 do
 1997   IFS=$as_save_IFS
 1998   test -z "$as_dir" && as_dir=.
 1999   for ac_exec_ext in '' $ac_executable_extensions; do
 2000   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2001     ac_cv_prog_ac_ct_CC="gcc"
 2002     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 2003     break 2
 2004   fi
 2005 done
 2006 done
 2007 
 2008 fi
 2009 fi
 2010 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2011 if test -n "$ac_ct_CC"; then
 2012   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 2013 echo "${ECHO_T}$ac_ct_CC" >&6
 2014 else
 2015   echo "$as_me:$LINENO: result: no" >&5
 2016 echo "${ECHO_T}no" >&6
 2017 fi
 2018 
 2019   CC=$ac_ct_CC
 2020 else
 2021   CC="$ac_cv_prog_CC"
 2022 fi
 2023 
 2024 if test -z "$CC"; then
 2025   if test -n "$ac_tool_prefix"; then
 2026   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
 2027 set dummy ${ac_tool_prefix}cc; ac_word=$2
 2028 echo "$as_me:$LINENO: checking for $ac_word" >&5
 2029 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 2030 if test "${ac_cv_prog_CC+set}" = set; then
 2031   echo $ECHO_N "(cached) $ECHO_C" >&6
 2032 else
 2033   if test -n "$CC"; then
 2034   ac_cv_prog_CC="$CC" # Let the user override the test.
 2035 else
 2036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2037 for as_dir in $PATH
 2038 do
 2039   IFS=$as_save_IFS
 2040   test -z "$as_dir" && as_dir=.
 2041   for ac_exec_ext in '' $ac_executable_extensions; do
 2042   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2043     ac_cv_prog_CC="${ac_tool_prefix}cc"
 2044     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 2045     break 2
 2046   fi
 2047 done
 2048 done
 2049 
 2050 fi
 2051 fi
 2052 CC=$ac_cv_prog_CC
 2053 if test -n "$CC"; then
 2054   echo "$as_me:$LINENO: result: $CC" >&5
 2055 echo "${ECHO_T}$CC" >&6
 2056 else
 2057   echo "$as_me:$LINENO: result: no" >&5
 2058 echo "${ECHO_T}no" >&6
 2059 fi
 2060 
 2061 fi
 2062 if test -z "$ac_cv_prog_CC"; then
 2063   ac_ct_CC=$CC
 2064   # Extract the first word of "cc", so it can be a program name with args.
 2065 set dummy cc; ac_word=$2
 2066 echo "$as_me:$LINENO: checking for $ac_word" >&5
 2067 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 2068 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 2069   echo $ECHO_N "(cached) $ECHO_C" >&6
 2070 else
 2071   if test -n "$ac_ct_CC"; then
 2072   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2073 else
 2074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2075 for as_dir in $PATH
 2076 do
 2077   IFS=$as_save_IFS
 2078   test -z "$as_dir" && as_dir=.
 2079   for ac_exec_ext in '' $ac_executable_extensions; do
 2080   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2081     ac_cv_prog_ac_ct_CC="cc"
 2082     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 2083     break 2
 2084   fi
 2085 done
 2086 done
 2087 
 2088 fi
 2089 fi
 2090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2091 if test -n "$ac_ct_CC"; then
 2092   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 2093 echo "${ECHO_T}$ac_ct_CC" >&6
 2094 else
 2095   echo "$as_me:$LINENO: result: no" >&5
 2096 echo "${ECHO_T}no" >&6
 2097 fi
 2098 
 2099   CC=$ac_ct_CC
 2100 else
 2101   CC="$ac_cv_prog_CC"
 2102 fi
 2103 
 2104 fi
 2105 if test -z "$CC"; then
 2106   # Extract the first word of "cc", so it can be a program name with args.
 2107 set dummy cc; ac_word=$2
 2108 echo "$as_me:$LINENO: checking for $ac_word" >&5
 2109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 2110 if test "${ac_cv_prog_CC+set}" = set; then
 2111   echo $ECHO_N "(cached) $ECHO_C" >&6
 2112 else
 2113   if test -n "$CC"; then
 2114   ac_cv_prog_CC="$CC" # Let the user override the test.
 2115 else
 2116   ac_prog_rejected=no
 2117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2118 for as_dir in $PATH
 2119 do
 2120   IFS=$as_save_IFS
 2121   test -z "$as_dir" && as_dir=.
 2122   for ac_exec_ext in '' $ac_executable_extensions; do
 2123   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2124     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
 2125        ac_prog_rejected=yes
 2126        continue
 2127      fi
 2128     ac_cv_prog_CC="cc"
 2129     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 2130     break 2
 2131   fi
 2132 done
 2133 done
 2134 
 2135 if test $ac_prog_rejected = yes; then
 2136   # We found a bogon in the path, so make sure we never use it.
 2137   set dummy $ac_cv_prog_CC
 2138   shift
 2139   if test $@%:@ != 0; then
 2140     # We chose a different compiler from the bogus one.
 2141     # However, it has the same basename, so the bogon will be chosen
 2142     # first if we set CC to just the basename; use the full file name.
 2143     shift
 2144     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
 2145   fi
 2146 fi
 2147 fi
 2148 fi
 2149 CC=$ac_cv_prog_CC
 2150 if test -n "$CC"; then
 2151   echo "$as_me:$LINENO: result: $CC" >&5
 2152 echo "${ECHO_T}$CC" >&6
 2153 else
 2154   echo "$as_me:$LINENO: result: no" >&5
 2155 echo "${ECHO_T}no" >&6
 2156 fi
 2157 
 2158 fi
 2159 if test -z "$CC"; then
 2160   if test -n "$ac_tool_prefix"; then
 2161   for ac_prog in cl
 2162   do
 2163     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 2164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 2165 echo "$as_me:$LINENO: checking for $ac_word" >&5
 2166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 2167 if test "${ac_cv_prog_CC+set}" = set; then
 2168   echo $ECHO_N "(cached) $ECHO_C" >&6
 2169 else
 2170   if test -n "$CC"; then
 2171   ac_cv_prog_CC="$CC" # Let the user override the test.
 2172 else
 2173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2174 for as_dir in $PATH
 2175 do
 2176   IFS=$as_save_IFS
 2177   test -z "$as_dir" && as_dir=.
 2178   for ac_exec_ext in '' $ac_executable_extensions; do
 2179   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2180     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
 2181     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 2182     break 2
 2183   fi
 2184 done
 2185 done
 2186 
 2187 fi
 2188 fi
 2189 CC=$ac_cv_prog_CC
 2190 if test -n "$CC"; then
 2191   echo "$as_me:$LINENO: result: $CC" >&5
 2192 echo "${ECHO_T}$CC" >&6
 2193 else
 2194   echo "$as_me:$LINENO: result: no" >&5
 2195 echo "${ECHO_T}no" >&6
 2196 fi
 2197 
 2198     test -n "$CC" && break
 2199   done
 2200 fi
 2201 if test -z "$CC"; then
 2202   ac_ct_CC=$CC
 2203   for ac_prog in cl
 2204 do
 2205   # Extract the first word of "$ac_prog", so it can be a program name with args.
 2206 set dummy $ac_prog; ac_word=$2
 2207 echo "$as_me:$LINENO: checking for $ac_word" >&5
 2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 2209 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
 2210   echo $ECHO_N "(cached) $ECHO_C" >&6
 2211 else
 2212   if test -n "$ac_ct_CC"; then
 2213   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
 2214 else
 2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 2216 for as_dir in $PATH
 2217 do
 2218   IFS=$as_save_IFS
 2219   test -z "$as_dir" && as_dir=.
 2220   for ac_exec_ext in '' $ac_executable_extensions; do
 2221   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 2222     ac_cv_prog_ac_ct_CC="$ac_prog"
 2223     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 2224     break 2
 2225   fi
 2226 done
 2227 done
 2228 
 2229 fi
 2230 fi
 2231 ac_ct_CC=$ac_cv_prog_ac_ct_CC
 2232 if test -n "$ac_ct_CC"; then
 2233   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
 2234 echo "${ECHO_T}$ac_ct_CC" >&6
 2235 else
 2236   echo "$as_me:$LINENO: result: no" >&5
 2237 echo "${ECHO_T}no" >&6
 2238 fi
 2239 
 2240   test -n "$ac_ct_CC" && break
 2241 done
 2242 
 2243   CC=$ac_ct_CC
 2244 fi
 2245 
 2246 fi
 2247 
 2248 
 2249 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
 2250 See \`config.log' for more details." >&5
 2251 echo "$as_me: error: no acceptable C compiler found in \$PATH
 2252 See \`config.log' for more details." >&2;}
 2253    { (exit 1); exit 1; }; }
 2254 
 2255 # Provide some information about the compiler.
 2256 echo "$as_me:$LINENO:" \
 2257      "checking for C compiler version" >&5
 2258 ac_compiler=`set X $ac_compile; echo $2`
 2259 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 2260   (eval $ac_compiler --version </dev/null >&5) 2>&5
 2261   ac_status=$?
 2262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2263   (exit $ac_status); }
 2264 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 2265   (eval $ac_compiler -v </dev/null >&5) 2>&5
 2266   ac_status=$?
 2267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2268   (exit $ac_status); }
 2269 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 2270   (eval $ac_compiler -V </dev/null >&5) 2>&5
 2271   ac_status=$?
 2272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2273   (exit $ac_status); }
 2274 
 2275 cat >conftest.$ac_ext <<_ACEOF
 2276 /* confdefs.h.  */
 2277 _ACEOF
 2278 cat confdefs.h >>conftest.$ac_ext
 2279 cat >>conftest.$ac_ext <<_ACEOF
 2280 /* end confdefs.h.  */
 2281 
 2282 int
 2283 main ()
 2284 {
 2285 
 2286   ;
 2287   return 0;
 2288 }
 2289 _ACEOF
 2290 ac_clean_files_save=$ac_clean_files
 2291 ac_clean_files="$ac_clean_files a.out a.exe b.out"
 2292 # Try to create an executable without -o first, disregard a.out.
 2293 # It will help us diagnose broken compilers, and finding out an intuition
 2294 # of exeext.
 2295 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
 2296 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
 2297 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
 2298 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
 2299   (eval $ac_link_default) 2>&5
 2300   ac_status=$?
 2301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2302   (exit $ac_status); }; then
 2303   # Find the output, starting from the most likely.  This scheme is
 2304 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
 2305 # resort.
 2306 
 2307 # Be careful to initialize this variable, since it used to be cached.
 2308 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
 2309 ac_cv_exeext=
 2310 # b.out is created by i960 compilers.
 2311 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
 2312 do
 2313   test -f "$ac_file" || continue
 2314   case $ac_file in
 2315     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
 2316 	;;
 2317     conftest.$ac_ext )
 2318 	# This is the source file.
 2319 	;;
 2320     [ab].out )
 2321 	# We found the default executable, but exeext='' is most
 2322 	# certainly right.
 2323 	break;;
 2324     *.* )
 2325 	ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2326 	# FIXME: I believe we export ac_cv_exeext for Libtool,
 2327 	# but it would be cool to find out if it's true.  Does anybody
 2328 	# maintain Libtool? --akim.
 2329 	export ac_cv_exeext
 2330 	break;;
 2331     * )
 2332 	break;;
 2333   esac
 2334 done
 2335 else
 2336   echo "$as_me: failed program was:" >&5
 2337 sed 's/^/| /' conftest.$ac_ext >&5
 2338 
 2339 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
 2340 See \`config.log' for more details." >&5
 2341 echo "$as_me: error: C compiler cannot create executables
 2342 See \`config.log' for more details." >&2;}
 2343    { (exit 77); exit 77; }; }
 2344 fi
 2345 
 2346 ac_exeext=$ac_cv_exeext
 2347 echo "$as_me:$LINENO: result: $ac_file" >&5
 2348 echo "${ECHO_T}$ac_file" >&6
 2349 
 2350 # Check the compiler produces executables we can run.  If not, either
 2351 # the compiler is broken, or we cross compile.
 2352 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
 2353 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
 2354 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
 2355 # If not cross compiling, check that we can run a simple program.
 2356 if test "$cross_compiling" != yes; then
 2357   if { ac_try='./$ac_file'
 2358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2359   (eval $ac_try) 2>&5
 2360   ac_status=$?
 2361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2362   (exit $ac_status); }; }; then
 2363     cross_compiling=no
 2364   else
 2365     if test "$cross_compiling" = maybe; then
 2366 	cross_compiling=yes
 2367     else
 2368 	{ { echo "$as_me:$LINENO: error: cannot run C compiled programs.
 2369 If you meant to cross compile, use \`--host'.
 2370 See \`config.log' for more details." >&5
 2371 echo "$as_me: error: cannot run C compiled programs.
 2372 If you meant to cross compile, use \`--host'.
 2373 See \`config.log' for more details." >&2;}
 2374    { (exit 1); exit 1; }; }
 2375     fi
 2376   fi
 2377 fi
 2378 echo "$as_me:$LINENO: result: yes" >&5
 2379 echo "${ECHO_T}yes" >&6
 2380 
 2381 rm -f a.out a.exe conftest$ac_cv_exeext b.out
 2382 ac_clean_files=$ac_clean_files_save
 2383 # Check the compiler produces executables we can run.  If not, either
 2384 # the compiler is broken, or we cross compile.
 2385 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
 2386 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
 2387 echo "$as_me:$LINENO: result: $cross_compiling" >&5
 2388 echo "${ECHO_T}$cross_compiling" >&6
 2389 
 2390 echo "$as_me:$LINENO: checking for suffix of executables" >&5
 2391 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
 2392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 2393   (eval $ac_link) 2>&5
 2394   ac_status=$?
 2395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2396   (exit $ac_status); }; then
 2397   # If both `conftest.exe' and `conftest' are `present' (well, observable)
 2398 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
 2399 # work properly (i.e., refer to `conftest.exe'), while it won't with
 2400 # `rm'.
 2401 for ac_file in conftest.exe conftest conftest.*; do
 2402   test -f "$ac_file" || continue
 2403   case $ac_file in
 2404     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
 2405     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
 2406 	  export ac_cv_exeext
 2407 	  break;;
 2408     * ) break;;
 2409   esac
 2410 done
 2411 else
 2412   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
 2413 See \`config.log' for more details." >&5
 2414 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
 2415 See \`config.log' for more details." >&2;}
 2416    { (exit 1); exit 1; }; }
 2417 fi
 2418 
 2419 rm -f conftest$ac_cv_exeext
 2420 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
 2421 echo "${ECHO_T}$ac_cv_exeext" >&6
 2422 
 2423 rm -f conftest.$ac_ext
 2424 EXEEXT=$ac_cv_exeext
 2425 ac_exeext=$EXEEXT
 2426 echo "$as_me:$LINENO: checking for suffix of object files" >&5
 2427 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
 2428 if test "${ac_cv_objext+set}" = set; then
 2429   echo $ECHO_N "(cached) $ECHO_C" >&6
 2430 else
 2431   cat >conftest.$ac_ext <<_ACEOF
 2432 /* confdefs.h.  */
 2433 _ACEOF
 2434 cat confdefs.h >>conftest.$ac_ext
 2435 cat >>conftest.$ac_ext <<_ACEOF
 2436 /* end confdefs.h.  */
 2437 
 2438 int
 2439 main ()
 2440 {
 2441 
 2442   ;
 2443   return 0;
 2444 }
 2445 _ACEOF
 2446 rm -f conftest.o conftest.obj
 2447 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 2448   (eval $ac_compile) 2>&5
 2449   ac_status=$?
 2450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2451   (exit $ac_status); }; then
 2452   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
 2453   case $ac_file in
 2454     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
 2455     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
 2456        break;;
 2457   esac
 2458 done
 2459 else
 2460   echo "$as_me: failed program was:" >&5
 2461 sed 's/^/| /' conftest.$ac_ext >&5
 2462 
 2463 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
 2464 See \`config.log' for more details." >&5
 2465 echo "$as_me: error: cannot compute suffix of object files: cannot compile
 2466 See \`config.log' for more details." >&2;}
 2467    { (exit 1); exit 1; }; }
 2468 fi
 2469 
 2470 rm -f conftest.$ac_cv_objext conftest.$ac_ext
 2471 fi
 2472 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
 2473 echo "${ECHO_T}$ac_cv_objext" >&6
 2474 OBJEXT=$ac_cv_objext
 2475 ac_objext=$OBJEXT
 2476 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
 2477 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
 2478 if test "${ac_cv_c_compiler_gnu+set}" = set; then
 2479   echo $ECHO_N "(cached) $ECHO_C" >&6
 2480 else
 2481   cat >conftest.$ac_ext <<_ACEOF
 2482 /* confdefs.h.  */
 2483 _ACEOF
 2484 cat confdefs.h >>conftest.$ac_ext
 2485 cat >>conftest.$ac_ext <<_ACEOF
 2486 /* end confdefs.h.  */
 2487 
 2488 int
 2489 main ()
 2490 {
 2491 #ifndef __GNUC__
 2492        choke me
 2493 #endif
 2494 
 2495   ;
 2496   return 0;
 2497 }
 2498 _ACEOF
 2499 rm -f conftest.$ac_objext
 2500 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 2501   (eval $ac_compile) 2>conftest.er1
 2502   ac_status=$?
 2503   grep -v '^ *+' conftest.er1 >conftest.err
 2504   rm -f conftest.er1
 2505   cat conftest.err >&5
 2506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2507   (exit $ac_status); } &&
 2508 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 2509   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2510   (eval $ac_try) 2>&5
 2511   ac_status=$?
 2512   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2513   (exit $ac_status); }; } &&
 2514 	 { ac_try='test -s conftest.$ac_objext'
 2515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2516   (eval $ac_try) 2>&5
 2517   ac_status=$?
 2518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2519   (exit $ac_status); }; }; then
 2520   ac_compiler_gnu=yes
 2521 else
 2522   echo "$as_me: failed program was:" >&5
 2523 sed 's/^/| /' conftest.$ac_ext >&5
 2524 
 2525 ac_compiler_gnu=no
 2526 fi
 2527 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 2528 ac_cv_c_compiler_gnu=$ac_compiler_gnu
 2529 
 2530 fi
 2531 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
 2532 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
 2533 GCC=`test $ac_compiler_gnu = yes && echo yes`
 2534 ac_test_CFLAGS=${CFLAGS+set}
 2535 ac_save_CFLAGS=$CFLAGS
 2536 CFLAGS="-g"
 2537 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
 2538 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
 2539 if test "${ac_cv_prog_cc_g+set}" = set; then
 2540   echo $ECHO_N "(cached) $ECHO_C" >&6
 2541 else
 2542   cat >conftest.$ac_ext <<_ACEOF
 2543 /* confdefs.h.  */
 2544 _ACEOF
 2545 cat confdefs.h >>conftest.$ac_ext
 2546 cat >>conftest.$ac_ext <<_ACEOF
 2547 /* end confdefs.h.  */
 2548 
 2549 int
 2550 main ()
 2551 {
 2552 
 2553   ;
 2554   return 0;
 2555 }
 2556 _ACEOF
 2557 rm -f conftest.$ac_objext
 2558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 2559   (eval $ac_compile) 2>conftest.er1
 2560   ac_status=$?
 2561   grep -v '^ *+' conftest.er1 >conftest.err
 2562   rm -f conftest.er1
 2563   cat conftest.err >&5
 2564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2565   (exit $ac_status); } &&
 2566 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 2567   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2568   (eval $ac_try) 2>&5
 2569   ac_status=$?
 2570   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2571   (exit $ac_status); }; } &&
 2572 	 { ac_try='test -s conftest.$ac_objext'
 2573   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2574   (eval $ac_try) 2>&5
 2575   ac_status=$?
 2576   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2577   (exit $ac_status); }; }; then
 2578   ac_cv_prog_cc_g=yes
 2579 else
 2580   echo "$as_me: failed program was:" >&5
 2581 sed 's/^/| /' conftest.$ac_ext >&5
 2582 
 2583 ac_cv_prog_cc_g=no
 2584 fi
 2585 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 2586 fi
 2587 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
 2588 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
 2589 if test "$ac_test_CFLAGS" = set; then
 2590   CFLAGS=$ac_save_CFLAGS
 2591 elif test $ac_cv_prog_cc_g = yes; then
 2592   if test "$GCC" = yes; then
 2593     CFLAGS="-g -O2"
 2594   else
 2595     CFLAGS="-g"
 2596   fi
 2597 else
 2598   if test "$GCC" = yes; then
 2599     CFLAGS="-O2"
 2600   else
 2601     CFLAGS=
 2602   fi
 2603 fi
 2604 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
 2605 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
 2606 if test "${ac_cv_prog_cc_stdc+set}" = set; then
 2607   echo $ECHO_N "(cached) $ECHO_C" >&6
 2608 else
 2609   ac_cv_prog_cc_stdc=no
 2610 ac_save_CC=$CC
 2611 cat >conftest.$ac_ext <<_ACEOF
 2612 /* confdefs.h.  */
 2613 _ACEOF
 2614 cat confdefs.h >>conftest.$ac_ext
 2615 cat >>conftest.$ac_ext <<_ACEOF
 2616 /* end confdefs.h.  */
 2617 #include <stdarg.h>
 2618 #include <stdio.h>
 2619 #include <sys/types.h>
 2620 #include <sys/stat.h>
 2621 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
 2622 struct buf { int x; };
 2623 FILE * (*rcsopen) (struct buf *, struct stat *, int);
 2624 static char *e (p, i)
 2625      char **p;
 2626      int i;
 2627 {
 2628   return p[i];
 2629 }
 2630 static char *f (char * (*g) (char **, int), char **p, ...)
 2631 {
 2632   char *s;
 2633   va_list v;
 2634   va_start (v,p);
 2635   s = g (p, va_arg (v,int));
 2636   va_end (v);
 2637   return s;
 2638 }
 2639 
 2640 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
 2641    function prototypes and stuff, but not '\xHH' hex character constants.
 2642    These don't provoke an error unfortunately, instead are silently treated
 2643    as 'x'.  The following induces an error, until -std1 is added to get
 2644    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
 2645    array size at least.  It's necessary to write '\x00'==0 to get something
 2646    that's true only with -std1.  */
 2647 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
 2648 
 2649 int test (int i, double x);
 2650 struct s1 {int (*f) (int a);};
 2651 struct s2 {int (*f) (double a);};
 2652 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
 2653 int argc;
 2654 char **argv;
 2655 int
 2656 main ()
 2657 {
 2658 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
 2659   ;
 2660   return 0;
 2661 }
 2662 _ACEOF
 2663 # Don't try gcc -ansi; that turns off useful extensions and
 2664 # breaks some systems' header files.
 2665 # AIX			-qlanglvl=ansi
 2666 # Ultrix and OSF/1	-std1
 2667 # HP-UX 10.20 and later	-Ae
 2668 # HP-UX older versions	-Aa -D_HPUX_SOURCE
 2669 # SVR4			-Xc -D__EXTENSIONS__
 2670 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
 2671 do
 2672   CC="$ac_save_CC $ac_arg"
 2673   rm -f conftest.$ac_objext
 2674 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 2675   (eval $ac_compile) 2>conftest.er1
 2676   ac_status=$?
 2677   grep -v '^ *+' conftest.er1 >conftest.err
 2678   rm -f conftest.er1
 2679   cat conftest.err >&5
 2680   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2681   (exit $ac_status); } &&
 2682 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 2683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2684   (eval $ac_try) 2>&5
 2685   ac_status=$?
 2686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2687   (exit $ac_status); }; } &&
 2688 	 { ac_try='test -s conftest.$ac_objext'
 2689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2690   (eval $ac_try) 2>&5
 2691   ac_status=$?
 2692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2693   (exit $ac_status); }; }; then
 2694   ac_cv_prog_cc_stdc=$ac_arg
 2695 break
 2696 else
 2697   echo "$as_me: failed program was:" >&5
 2698 sed 's/^/| /' conftest.$ac_ext >&5
 2699 
 2700 fi
 2701 rm -f conftest.err conftest.$ac_objext 
 2702 done
 2703 rm -f conftest.$ac_ext conftest.$ac_objext
 2704 CC=$ac_save_CC
 2705 
 2706 fi
 2707 
 2708 case "x$ac_cv_prog_cc_stdc" in
 2709   x|xno)
 2710     echo "$as_me:$LINENO: result: none needed" >&5
 2711 echo "${ECHO_T}none needed" >&6 ;;
 2712   *)
 2713     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
 2714 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
 2715     CC="$CC $ac_cv_prog_cc_stdc" ;;
 2716 esac
 2717 
 2718 # Some people use a C++ compiler to compile C.  Since we use `exit',
 2719 # in C++ we need to declare it.  In case someone uses the same compiler
 2720 # for both compiling C and C++ we need to have the C++ compiler decide
 2721 # the declaration of exit, since it's the most demanding environment.
 2722 cat >conftest.$ac_ext <<_ACEOF
 2723 @%:@ifndef __cplusplus
 2724   choke me
 2725 @%:@endif
 2726 _ACEOF
 2727 rm -f conftest.$ac_objext
 2728 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 2729   (eval $ac_compile) 2>conftest.er1
 2730   ac_status=$?
 2731   grep -v '^ *+' conftest.er1 >conftest.err
 2732   rm -f conftest.er1
 2733   cat conftest.err >&5
 2734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2735   (exit $ac_status); } &&
 2736 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 2737   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2738   (eval $ac_try) 2>&5
 2739   ac_status=$?
 2740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2741   (exit $ac_status); }; } &&
 2742 	 { ac_try='test -s conftest.$ac_objext'
 2743   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2744   (eval $ac_try) 2>&5
 2745   ac_status=$?
 2746   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2747   (exit $ac_status); }; }; then
 2748   for ac_declaration in \
 2749    '' \
 2750    'extern "C" void std::exit (int) throw (); using std::exit;' \
 2751    'extern "C" void std::exit (int); using std::exit;' \
 2752    'extern "C" void exit (int) throw ();' \
 2753    'extern "C" void exit (int);' \
 2754    'void exit (int);'
 2755 do
 2756   cat >conftest.$ac_ext <<_ACEOF
 2757 /* confdefs.h.  */
 2758 _ACEOF
 2759 cat confdefs.h >>conftest.$ac_ext
 2760 cat >>conftest.$ac_ext <<_ACEOF
 2761 /* end confdefs.h.  */
 2762 $ac_declaration
 2763 @%:@include <stdlib.h>
 2764 int
 2765 main ()
 2766 {
 2767 exit (42);
 2768   ;
 2769   return 0;
 2770 }
 2771 _ACEOF
 2772 rm -f conftest.$ac_objext
 2773 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 2774   (eval $ac_compile) 2>conftest.er1
 2775   ac_status=$?
 2776   grep -v '^ *+' conftest.er1 >conftest.err
 2777   rm -f conftest.er1
 2778   cat conftest.err >&5
 2779   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2780   (exit $ac_status); } &&
 2781 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 2782   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2783   (eval $ac_try) 2>&5
 2784   ac_status=$?
 2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2786   (exit $ac_status); }; } &&
 2787 	 { ac_try='test -s conftest.$ac_objext'
 2788   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2789   (eval $ac_try) 2>&5
 2790   ac_status=$?
 2791   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2792   (exit $ac_status); }; }; then
 2793   :
 2794 else
 2795   echo "$as_me: failed program was:" >&5
 2796 sed 's/^/| /' conftest.$ac_ext >&5
 2797 
 2798 continue
 2799 fi
 2800 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 2801   cat >conftest.$ac_ext <<_ACEOF
 2802 /* confdefs.h.  */
 2803 _ACEOF
 2804 cat confdefs.h >>conftest.$ac_ext
 2805 cat >>conftest.$ac_ext <<_ACEOF
 2806 /* end confdefs.h.  */
 2807 $ac_declaration
 2808 int
 2809 main ()
 2810 {
 2811 exit (42);
 2812   ;
 2813   return 0;
 2814 }
 2815 _ACEOF
 2816 rm -f conftest.$ac_objext
 2817 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 2818   (eval $ac_compile) 2>conftest.er1
 2819   ac_status=$?
 2820   grep -v '^ *+' conftest.er1 >conftest.err
 2821   rm -f conftest.er1
 2822   cat conftest.err >&5
 2823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2824   (exit $ac_status); } &&
 2825 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 2826   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2827   (eval $ac_try) 2>&5
 2828   ac_status=$?
 2829   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2830   (exit $ac_status); }; } &&
 2831 	 { ac_try='test -s conftest.$ac_objext'
 2832   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 2833   (eval $ac_try) 2>&5
 2834   ac_status=$?
 2835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 2836   (exit $ac_status); }; }; then
 2837   break
 2838 else
 2839   echo "$as_me: failed program was:" >&5
 2840 sed 's/^/| /' conftest.$ac_ext >&5
 2841 
 2842 fi
 2843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 2844 done
 2845 rm -f conftest*
 2846 if test -n "$ac_declaration"; then
 2847   echo '#ifdef __cplusplus' >>confdefs.h
 2848   echo $ac_declaration      >>confdefs.h
 2849   echo '#endif'             >>confdefs.h
 2850 fi
 2851 
 2852 else
 2853   echo "$as_me: failed program was:" >&5
 2854 sed 's/^/| /' conftest.$ac_ext >&5
 2855 
 2856 fi
 2857 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 2858 ac_ext=c
 2859 ac_cpp='$CPP $CPPFLAGS'
 2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 2863 DEPDIR="${am__leading_dot}deps"
 2864 
 2865           ac_config_commands="$ac_config_commands depfiles"
 2866 
 2867 
 2868 am_make=${MAKE-make}
 2869 cat > confinc << 'END'
 2870 am__doit:
 2871 	@echo done
 2872 .PHONY: am__doit
 2873 END
 2874 # If we don't find an include directive, just comment out the code.
 2875 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
 2876 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
 2877 am__include="#"
 2878 am__quote=
 2879 _am_result=none
 2880 # First try GNU make style include.
 2881 echo "include confinc" > confmf
 2882 # We grep out `Entering directory' and `Leaving directory'
 2883 # messages which can occur if `w' ends up in MAKEFLAGS.
 2884 # In particular we don't look at `^make:' because GNU make might
 2885 # be invoked under some other name (usually "gmake"), in which
 2886 # case it prints its new name instead of `make'.
 2887 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
 2888    am__include=include
 2889    am__quote=
 2890    _am_result=GNU
 2891 fi
 2892 # Now try BSD make style include.
 2893 if test "$am__include" = "#"; then
 2894    echo '.include "confinc"' > confmf
 2895    if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
 2896       am__include=.include
 2897       am__quote="\""
 2898       _am_result=BSD
 2899    fi
 2900 fi
 2901 
 2902 
 2903 echo "$as_me:$LINENO: result: $_am_result" >&5
 2904 echo "${ECHO_T}$_am_result" >&6
 2905 rm -f confinc confmf
 2906 
 2907 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
 2908 if test "${enable_dependency_tracking+set}" = set; then
 2909   enableval="$enable_dependency_tracking"
 2910   
 2911 fi; 
 2912 if test "x$enable_dependency_tracking" != xno; then
 2913   am_depcomp="$ac_aux_dir/depcomp"
 2914   AMDEPBACKSLASH='\'
 2915 fi
 2916  
 2917 
 2918 if test "x$enable_dependency_tracking" != xno; then
 2919   AMDEP_TRUE=
 2920   AMDEP_FALSE='#'
 2921 else
 2922   AMDEP_TRUE='#'
 2923   AMDEP_FALSE=
 2924 fi
 2925 
 2926 
 2927 
 2928 
 2929 depcc="$CC"   am_compiler_list=
 2930 
 2931 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 2932 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 2933 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
 2934   echo $ECHO_N "(cached) $ECHO_C" >&6
 2935 else
 2936   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 2937   # We make a subdir and do the tests there.  Otherwise we can end up
 2938   # making bogus files that we don't know about and never remove.  For
 2939   # instance it was reported that on HP-UX the gcc test will end up
 2940   # making a dummy file named `D' -- because `-MD' means `put the output
 2941   # in D'.
 2942   mkdir conftest.dir
 2943   # Copy depcomp to subdir because otherwise we won't find it if we're
 2944   # using a relative directory.
 2945   cp "$am_depcomp" conftest.dir
 2946   cd conftest.dir
 2947   # We will build objects and dependencies in a subdirectory because
 2948   # it helps to detect inapplicable dependency modes.  For instance
 2949   # both Tru64's cc and ICC support -MD to output dependencies as a
 2950   # side effect of compilation, but ICC will put the dependencies in
 2951   # the current directory while Tru64 will put them in the object
 2952   # directory.
 2953   mkdir sub
 2954 
 2955   am_cv_CC_dependencies_compiler_type=none
 2956   if test "$am_compiler_list" = ""; then
 2957      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 2958   fi
 2959   for depmode in $am_compiler_list; do
 2960     # Setup a source with many dependencies, because some compilers
 2961     # like to wrap large dependency lists on column 80 (with \), and
 2962     # we should not choose a depcomp mode which is confused by this.
 2963     #
 2964     # We need to recreate these files for each test, as the compiler may
 2965     # overwrite some of them when testing with obscure command lines.
 2966     # This happens at least with the AIX C compiler.
 2967     : > sub/conftest.c
 2968     for i in 1 2 3 4 5 6; do
 2969       echo '#include "conftst'$i'.h"' >> sub/conftest.c
 2970       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 2971       # Solaris 8's {/usr,}/bin/sh.
 2972       touch sub/conftst$i.h
 2973     done
 2974     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 2975 
 2976     case $depmode in
 2977     nosideeffect)
 2978       # after this tag, mechanisms are not by side-effect, so they'll
 2979       # only be used when explicitly requested
 2980       if test "x$enable_dependency_tracking" = xyes; then
 2981 	continue
 2982       else
 2983 	break
 2984       fi
 2985       ;;
 2986     none) break ;;
 2987     esac
 2988     # We check with `-c' and `-o' for the sake of the "dashmstdout"
 2989     # mode.  It turns out that the SunPro C++ compiler does not properly
 2990     # handle `-M -o', and we need to detect this.
 2991     if depmode=$depmode \
 2992        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 2993        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 2994        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 2995          >/dev/null 2>conftest.err &&
 2996        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 2997        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 2998        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 2999       # icc doesn't choke on unknown options, it will just issue warnings
 3000       # or remarks (even with -Werror).  So we grep stderr for any message
 3001       # that says an option was ignored or not supported.
 3002       # When given -MP, icc 7.0 and 7.1 complain thusly:
 3003       #   icc: Command line warning: ignoring option '-M'; no argument required
 3004       # The diagnosis changed in icc 8.0:
 3005       #   icc: Command line remark: option '-MP' not supported
 3006       if (grep 'ignoring option' conftest.err ||
 3007           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 3008         am_cv_CC_dependencies_compiler_type=$depmode
 3009         break
 3010       fi
 3011     fi
 3012   done
 3013 
 3014   cd ..
 3015   rm -rf conftest.dir
 3016 else
 3017   am_cv_CC_dependencies_compiler_type=none
 3018 fi
 3019 
 3020 fi
 3021 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
 3022 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
 3023 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
 3024 
 3025  
 3026 
 3027 if 
 3028   test "x$enable_dependency_tracking" != xno \
 3029   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
 3030   am__fastdepCC_TRUE=
 3031   am__fastdepCC_FALSE='#'
 3032 else
 3033   am__fastdepCC_TRUE='#'
 3034   am__fastdepCC_FALSE=
 3035 fi
 3036 
 3037 
 3038 
 3039 ac_ext=cc
 3040 ac_cpp='$CXXCPP $CPPFLAGS'
 3041 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3042 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3043 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 3044 if test -n "$ac_tool_prefix"; then
 3045   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 3046   do
 3047     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 3048 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 3049 echo "$as_me:$LINENO: checking for $ac_word" >&5
 3050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 3051 if test "${ac_cv_prog_CXX+set}" = set; then
 3052   echo $ECHO_N "(cached) $ECHO_C" >&6
 3053 else
 3054   if test -n "$CXX"; then
 3055   ac_cv_prog_CXX="$CXX" # Let the user override the test.
 3056 else
 3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3058 for as_dir in $PATH
 3059 do
 3060   IFS=$as_save_IFS
 3061   test -z "$as_dir" && as_dir=.
 3062   for ac_exec_ext in '' $ac_executable_extensions; do
 3063   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3064     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
 3065     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 3066     break 2
 3067   fi
 3068 done
 3069 done
 3070 
 3071 fi
 3072 fi
 3073 CXX=$ac_cv_prog_CXX
 3074 if test -n "$CXX"; then
 3075   echo "$as_me:$LINENO: result: $CXX" >&5
 3076 echo "${ECHO_T}$CXX" >&6
 3077 else
 3078   echo "$as_me:$LINENO: result: no" >&5
 3079 echo "${ECHO_T}no" >&6
 3080 fi
 3081 
 3082     test -n "$CXX" && break
 3083   done
 3084 fi
 3085 if test -z "$CXX"; then
 3086   ac_ct_CXX=$CXX
 3087   for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
 3088 do
 3089   # Extract the first word of "$ac_prog", so it can be a program name with args.
 3090 set dummy $ac_prog; ac_word=$2
 3091 echo "$as_me:$LINENO: checking for $ac_word" >&5
 3092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 3093 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
 3094   echo $ECHO_N "(cached) $ECHO_C" >&6
 3095 else
 3096   if test -n "$ac_ct_CXX"; then
 3097   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
 3098 else
 3099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3100 for as_dir in $PATH
 3101 do
 3102   IFS=$as_save_IFS
 3103   test -z "$as_dir" && as_dir=.
 3104   for ac_exec_ext in '' $ac_executable_extensions; do
 3105   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 3106     ac_cv_prog_ac_ct_CXX="$ac_prog"
 3107     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 3108     break 2
 3109   fi
 3110 done
 3111 done
 3112 
 3113 fi
 3114 fi
 3115 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
 3116 if test -n "$ac_ct_CXX"; then
 3117   echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
 3118 echo "${ECHO_T}$ac_ct_CXX" >&6
 3119 else
 3120   echo "$as_me:$LINENO: result: no" >&5
 3121 echo "${ECHO_T}no" >&6
 3122 fi
 3123 
 3124   test -n "$ac_ct_CXX" && break
 3125 done
 3126 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
 3127 
 3128   CXX=$ac_ct_CXX
 3129 fi
 3130 
 3131 
 3132 # Provide some information about the compiler.
 3133 echo "$as_me:$LINENO:" \
 3134      "checking for C++ compiler version" >&5
 3135 ac_compiler=`set X $ac_compile; echo $2`
 3136 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 3137   (eval $ac_compiler --version </dev/null >&5) 2>&5
 3138   ac_status=$?
 3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3140   (exit $ac_status); }
 3141 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 3142   (eval $ac_compiler -v </dev/null >&5) 2>&5
 3143   ac_status=$?
 3144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3145   (exit $ac_status); }
 3146 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 3147   (eval $ac_compiler -V </dev/null >&5) 2>&5
 3148   ac_status=$?
 3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3150   (exit $ac_status); }
 3151 
 3152 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
 3153 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
 3154 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
 3155   echo $ECHO_N "(cached) $ECHO_C" >&6
 3156 else
 3157   cat >conftest.$ac_ext <<_ACEOF
 3158 /* confdefs.h.  */
 3159 _ACEOF
 3160 cat confdefs.h >>conftest.$ac_ext
 3161 cat >>conftest.$ac_ext <<_ACEOF
 3162 /* end confdefs.h.  */
 3163 
 3164 int
 3165 main ()
 3166 {
 3167 #ifndef __GNUC__
 3168        choke me
 3169 #endif
 3170 
 3171   ;
 3172   return 0;
 3173 }
 3174 _ACEOF
 3175 rm -f conftest.$ac_objext
 3176 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 3177   (eval $ac_compile) 2>conftest.er1
 3178   ac_status=$?
 3179   grep -v '^ *+' conftest.er1 >conftest.err
 3180   rm -f conftest.er1
 3181   cat conftest.err >&5
 3182   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3183   (exit $ac_status); } &&
 3184 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
 3185   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 3186   (eval $ac_try) 2>&5
 3187   ac_status=$?
 3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3189   (exit $ac_status); }; } &&
 3190 	 { ac_try='test -s conftest.$ac_objext'
 3191   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 3192   (eval $ac_try) 2>&5
 3193   ac_status=$?
 3194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3195   (exit $ac_status); }; }; then
 3196   ac_compiler_gnu=yes
 3197 else
 3198   echo "$as_me: failed program was:" >&5
 3199 sed 's/^/| /' conftest.$ac_ext >&5
 3200 
 3201 ac_compiler_gnu=no
 3202 fi
 3203 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 3204 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
 3205 
 3206 fi
 3207 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
 3208 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
 3209 GXX=`test $ac_compiler_gnu = yes && echo yes`
 3210 ac_test_CXXFLAGS=${CXXFLAGS+set}
 3211 ac_save_CXXFLAGS=$CXXFLAGS
 3212 CXXFLAGS="-g"
 3213 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
 3214 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
 3215 if test "${ac_cv_prog_cxx_g+set}" = set; then
 3216   echo $ECHO_N "(cached) $ECHO_C" >&6
 3217 else
 3218   cat >conftest.$ac_ext <<_ACEOF
 3219 /* confdefs.h.  */
 3220 _ACEOF
 3221 cat confdefs.h >>conftest.$ac_ext
 3222 cat >>conftest.$ac_ext <<_ACEOF
 3223 /* end confdefs.h.  */
 3224 
 3225 int
 3226 main ()
 3227 {
 3228 
 3229   ;
 3230   return 0;
 3231 }
 3232 _ACEOF
 3233 rm -f conftest.$ac_objext
 3234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 3235   (eval $ac_compile) 2>conftest.er1
 3236   ac_status=$?
 3237   grep -v '^ *+' conftest.er1 >conftest.err
 3238   rm -f conftest.er1
 3239   cat conftest.err >&5
 3240   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3241   (exit $ac_status); } &&
 3242 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
 3243   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 3244   (eval $ac_try) 2>&5
 3245   ac_status=$?
 3246   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3247   (exit $ac_status); }; } &&
 3248 	 { ac_try='test -s conftest.$ac_objext'
 3249   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 3250   (eval $ac_try) 2>&5
 3251   ac_status=$?
 3252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3253   (exit $ac_status); }; }; then
 3254   ac_cv_prog_cxx_g=yes
 3255 else
 3256   echo "$as_me: failed program was:" >&5
 3257 sed 's/^/| /' conftest.$ac_ext >&5
 3258 
 3259 ac_cv_prog_cxx_g=no
 3260 fi
 3261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 3262 fi
 3263 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
 3264 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
 3265 if test "$ac_test_CXXFLAGS" = set; then
 3266   CXXFLAGS=$ac_save_CXXFLAGS
 3267 elif test $ac_cv_prog_cxx_g = yes; then
 3268   if test "$GXX" = yes; then
 3269     CXXFLAGS="-g -O2"
 3270   else
 3271     CXXFLAGS="-g"
 3272   fi
 3273 else
 3274   if test "$GXX" = yes; then
 3275     CXXFLAGS="-O2"
 3276   else
 3277     CXXFLAGS=
 3278   fi
 3279 fi
 3280 for ac_declaration in \
 3281    '' \
 3282    'extern "C" void std::exit (int) throw (); using std::exit;' \
 3283    'extern "C" void std::exit (int); using std::exit;' \
 3284    'extern "C" void exit (int) throw ();' \
 3285    'extern "C" void exit (int);' \
 3286    'void exit (int);'
 3287 do
 3288   cat >conftest.$ac_ext <<_ACEOF
 3289 /* confdefs.h.  */
 3290 _ACEOF
 3291 cat confdefs.h >>conftest.$ac_ext
 3292 cat >>conftest.$ac_ext <<_ACEOF
 3293 /* end confdefs.h.  */
 3294 $ac_declaration
 3295 @%:@include <stdlib.h>
 3296 int
 3297 main ()
 3298 {
 3299 exit (42);
 3300   ;
 3301   return 0;
 3302 }
 3303 _ACEOF
 3304 rm -f conftest.$ac_objext
 3305 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 3306   (eval $ac_compile) 2>conftest.er1
 3307   ac_status=$?
 3308   grep -v '^ *+' conftest.er1 >conftest.err
 3309   rm -f conftest.er1
 3310   cat conftest.err >&5
 3311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3312   (exit $ac_status); } &&
 3313 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
 3314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 3315   (eval $ac_try) 2>&5
 3316   ac_status=$?
 3317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3318   (exit $ac_status); }; } &&
 3319 	 { ac_try='test -s conftest.$ac_objext'
 3320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 3321   (eval $ac_try) 2>&5
 3322   ac_status=$?
 3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3324   (exit $ac_status); }; }; then
 3325   :
 3326 else
 3327   echo "$as_me: failed program was:" >&5
 3328 sed 's/^/| /' conftest.$ac_ext >&5
 3329 
 3330 continue
 3331 fi
 3332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 3333   cat >conftest.$ac_ext <<_ACEOF
 3334 /* confdefs.h.  */
 3335 _ACEOF
 3336 cat confdefs.h >>conftest.$ac_ext
 3337 cat >>conftest.$ac_ext <<_ACEOF
 3338 /* end confdefs.h.  */
 3339 $ac_declaration
 3340 int
 3341 main ()
 3342 {
 3343 exit (42);
 3344   ;
 3345   return 0;
 3346 }
 3347 _ACEOF
 3348 rm -f conftest.$ac_objext
 3349 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 3350   (eval $ac_compile) 2>conftest.er1
 3351   ac_status=$?
 3352   grep -v '^ *+' conftest.er1 >conftest.err
 3353   rm -f conftest.er1
 3354   cat conftest.err >&5
 3355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3356   (exit $ac_status); } &&
 3357 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
 3358   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 3359   (eval $ac_try) 2>&5
 3360   ac_status=$?
 3361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3362   (exit $ac_status); }; } &&
 3363 	 { ac_try='test -s conftest.$ac_objext'
 3364   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 3365   (eval $ac_try) 2>&5
 3366   ac_status=$?
 3367   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 3368   (exit $ac_status); }; }; then
 3369   break
 3370 else
 3371   echo "$as_me: failed program was:" >&5
 3372 sed 's/^/| /' conftest.$ac_ext >&5
 3373 
 3374 fi
 3375 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 3376 done
 3377 rm -f conftest*
 3378 if test -n "$ac_declaration"; then
 3379   echo '#ifdef __cplusplus' >>confdefs.h
 3380   echo $ac_declaration      >>confdefs.h
 3381   echo '#endif'             >>confdefs.h
 3382 fi
 3383 
 3384 ac_ext=c
 3385 ac_cpp='$CPP $CPPFLAGS'
 3386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 3387 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 3388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 3389 
 3390 depcc="$CXX"  am_compiler_list=
 3391 
 3392 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
 3393 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
 3394 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
 3395   echo $ECHO_N "(cached) $ECHO_C" >&6
 3396 else
 3397   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
 3398   # We make a subdir and do the tests there.  Otherwise we can end up
 3399   # making bogus files that we don't know about and never remove.  For
 3400   # instance it was reported that on HP-UX the gcc test will end up
 3401   # making a dummy file named `D' -- because `-MD' means `put the output
 3402   # in D'.
 3403   mkdir conftest.dir
 3404   # Copy depcomp to subdir because otherwise we won't find it if we're
 3405   # using a relative directory.
 3406   cp "$am_depcomp" conftest.dir
 3407   cd conftest.dir
 3408   # We will build objects and dependencies in a subdirectory because
 3409   # it helps to detect inapplicable dependency modes.  For instance
 3410   # both Tru64's cc and ICC support -MD to output dependencies as a
 3411   # side effect of compilation, but ICC will put the dependencies in
 3412   # the current directory while Tru64 will put them in the object
 3413   # directory.
 3414   mkdir sub
 3415 
 3416   am_cv_CXX_dependencies_compiler_type=none
 3417   if test "$am_compiler_list" = ""; then
 3418      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
 3419   fi
 3420   for depmode in $am_compiler_list; do
 3421     # Setup a source with many dependencies, because some compilers
 3422     # like to wrap large dependency lists on column 80 (with \), and
 3423     # we should not choose a depcomp mode which is confused by this.
 3424     #
 3425     # We need to recreate these files for each test, as the compiler may
 3426     # overwrite some of them when testing with obscure command lines.
 3427     # This happens at least with the AIX C compiler.
 3428     : > sub/conftest.c
 3429     for i in 1 2 3 4 5 6; do
 3430       echo '#include "conftst'$i'.h"' >> sub/conftest.c
 3431       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
 3432       # Solaris 8's {/usr,}/bin/sh.
 3433       touch sub/conftst$i.h
 3434     done
 3435     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
 3436 
 3437     case $depmode in
 3438     nosideeffect)
 3439       # after this tag, mechanisms are not by side-effect, so they'll
 3440       # only be used when explicitly requested
 3441       if test "x$enable_dependency_tracking" = xyes; then
 3442 	continue
 3443       else
 3444 	break
 3445       fi
 3446       ;;
 3447     none) break ;;
 3448     esac
 3449     # We check with `-c' and `-o' for the sake of the "dashmstdout"
 3450     # mode.  It turns out that the SunPro C++ compiler does not properly
 3451     # handle `-M -o', and we need to detect this.
 3452     if depmode=$depmode \
 3453        source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
 3454        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
 3455        $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
 3456          >/dev/null 2>conftest.err &&
 3457        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
 3458        grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
 3459        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
 3460       # icc doesn't choke on unknown options, it will just issue warnings
 3461       # or remarks (even with -Werror).  So we grep stderr for any message
 3462       # that says an option was ignored or not supported.
 3463       # When given -MP, icc 7.0 and 7.1 complain thusly:
 3464       #   icc: Command line warning: ignoring option '-M'; no argument required
 3465       # The diagnosis changed in icc 8.0:
 3466       #   icc: Command line remark: option '-MP' not supported
 3467       if (grep 'ignoring option' conftest.err ||
 3468           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
 3469         am_cv_CXX_dependencies_compiler_type=$depmode
 3470         break
 3471       fi
 3472     fi
 3473   done
 3474 
 3475   cd ..
 3476   rm -rf conftest.dir
 3477 else
 3478   am_cv_CXX_dependencies_compiler_type=none
 3479 fi
 3480 
 3481 fi
 3482 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
 3483 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
 3484 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
 3485 
 3486  
 3487 
 3488 if 
 3489   test "x$enable_dependency_tracking" != xno \
 3490   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
 3491   am__fastdepCXX_TRUE=
 3492   am__fastdepCXX_FALSE='#'
 3493 else
 3494   am__fastdepCXX_TRUE='#'
 3495   am__fastdepCXX_FALSE=
 3496 fi
 3497 
 3498 
 3499 
 3500 # Find a good install program.  We prefer a C program (faster),
 3501 # so one script is as good as another.  But avoid the broken or
 3502 # incompatible versions:
 3503 # SysV /etc/install, /usr/sbin/install
 3504 # SunOS /usr/etc/install
 3505 # IRIX /sbin/install
 3506 # AIX /bin/install
 3507 # AmigaOS /C/install, which installs bootblocks on floppy discs
 3508 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
 3509 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
 3510 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
 3511 # OS/2's system install, which has a completely different semantic
 3512 # ./install, which can be erroneously created by make from ./install.sh.
 3513 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
 3514 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
 3515 if test -z "$INSTALL"; then
 3516 if test "${ac_cv_path_install+set}" = set; then
 3517   echo $ECHO_N "(cached) $ECHO_C" >&6
 3518 else
 3519   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3520 for as_dir in $PATH
 3521 do
 3522   IFS=$as_save_IFS
 3523   test -z "$as_dir" && as_dir=.
 3524   # Account for people who put trailing slashes in PATH elements.
 3525 case $as_dir/ in
 3526   ./ | .// | /cC/* | \
 3527   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
 3528   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
 3529   /usr/ucb/* ) ;;
 3530   *)
 3531     # OSF1 and SCO ODT 3.0 have their own names for install.
 3532     # Don't use installbsd from OSF since it installs stuff as root
 3533     # by default.
 3534     for ac_prog in ginstall scoinst install; do
 3535       for ac_exec_ext in '' $ac_executable_extensions; do
 3536 	if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 3537 	  if test $ac_prog = install &&
 3538 	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 3539 	    # AIX install.  It has an incompatible calling convention.
 3540 	    :
 3541 	  elif test $ac_prog = install &&
 3542 	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
 3543 	    # program-specific install script used by HP pwplus--don't use.
 3544 	    :
 3545 	  else
 3546 	    ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
 3547 	    break 3
 3548 	  fi
 3549 	fi
 3550       done
 3551     done
 3552     ;;
 3553 esac
 3554 done
 3555 
 3556 
 3557 fi
 3558   if test "${ac_cv_path_install+set}" = set; then
 3559     INSTALL=$ac_cv_path_install
 3560   else
 3561     # As a last resort, use the slow shell script.  We don't cache a
 3562     # path for INSTALL within a source directory, because that will
 3563     # break other packages using the cache if that directory is
 3564     # removed, or if the path is relative.
 3565     INSTALL=$ac_install_sh
 3566   fi
 3567 fi
 3568 echo "$as_me:$LINENO: result: $INSTALL" >&5
 3569 echo "${ECHO_T}$INSTALL" >&6
 3570 
 3571 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
 3572 # It thinks the first close brace ends the variable substitution.
 3573 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
 3574 
 3575 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
 3576 
 3577 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
 3578 
 3579 
 3580 # Check whether --enable-shared or --disable-shared was given.
 3581 if test "${enable_shared+set}" = set; then
 3582   enableval="$enable_shared"
 3583   p=${PACKAGE-default}
 3584     case $enableval in
 3585     yes) enable_shared=yes ;;
 3586     no) enable_shared=no ;;
 3587     *)
 3588       enable_shared=no
 3589       # Look at the argument we got.  We use all the common list separators.
 3590       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 3591       for pkg in $enableval; do
 3592 	IFS="$lt_save_ifs"
 3593 	if test "X$pkg" = "X$p"; then
 3594 	  enable_shared=yes
 3595 	fi
 3596       done
 3597       IFS="$lt_save_ifs"
 3598       ;;
 3599     esac
 3600 else
 3601   enable_shared=yes
 3602 fi; 
 3603 
 3604 # Check whether --enable-static or --disable-static was given.
 3605 if test "${enable_static+set}" = set; then
 3606   enableval="$enable_static"
 3607   p=${PACKAGE-default}
 3608     case $enableval in
 3609     yes) enable_static=yes ;;
 3610     no) enable_static=no ;;
 3611     *)
 3612      enable_static=no
 3613       # Look at the argument we got.  We use all the common list separators.
 3614       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 3615       for pkg in $enableval; do
 3616 	IFS="$lt_save_ifs"
 3617 	if test "X$pkg" = "X$p"; then
 3618 	  enable_static=yes
 3619 	fi
 3620       done
 3621       IFS="$lt_save_ifs"
 3622       ;;
 3623     esac
 3624 else
 3625   enable_static=yes
 3626 fi; 
 3627 
 3628 # Check whether --enable-fast-install or --disable-fast-install was given.
 3629 if test "${enable_fast_install+set}" = set; then
 3630   enableval="$enable_fast_install"
 3631   p=${PACKAGE-default}
 3632     case $enableval in
 3633     yes) enable_fast_install=yes ;;
 3634     no) enable_fast_install=no ;;
 3635     *)
 3636       enable_fast_install=no
 3637       # Look at the argument we got.  We use all the common list separators.
 3638       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 3639       for pkg in $enableval; do
 3640 	IFS="$lt_save_ifs"
 3641 	if test "X$pkg" = "X$p"; then
 3642 	  enable_fast_install=yes
 3643 	fi
 3644       done
 3645       IFS="$lt_save_ifs"
 3646       ;;
 3647     esac
 3648 else
 3649   enable_fast_install=yes
 3650 fi; 
 3651 
 3652 # Make sure we can run config.sub.
 3653 $ac_config_sub sun4 >/dev/null 2>&1 ||
 3654   { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
 3655 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
 3656    { (exit 1); exit 1; }; }
 3657 
 3658 echo "$as_me:$LINENO: checking build system type" >&5
 3659 echo $ECHO_N "checking build system type... $ECHO_C" >&6
 3660 if test "${ac_cv_build+set}" = set; then
 3661   echo $ECHO_N "(cached) $ECHO_C" >&6
 3662 else
 3663   ac_cv_build_alias=$build_alias
 3664 test -z "$ac_cv_build_alias" &&
 3665   ac_cv_build_alias=`$ac_config_guess`
 3666 test -z "$ac_cv_build_alias" &&
 3667   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
 3668 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
 3669    { (exit 1); exit 1; }; }
 3670 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
 3671   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
 3672 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
 3673    { (exit 1); exit 1; }; }
 3674 
 3675 fi
 3676 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
 3677 echo "${ECHO_T}$ac_cv_build" >&6
 3678 build=$ac_cv_build
 3679 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 3680 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 3681 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 3682 
 3683 
 3684 echo "$as_me:$LINENO: checking host system type" >&5
 3685 echo $ECHO_N "checking host system type... $ECHO_C" >&6
 3686 if test "${ac_cv_host+set}" = set; then
 3687   echo $ECHO_N "(cached) $ECHO_C" >&6
 3688 else
 3689   ac_cv_host_alias=$host_alias
 3690 test -z "$ac_cv_host_alias" &&
 3691   ac_cv_host_alias=$ac_cv_build_alias
 3692 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
 3693   { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
 3694 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
 3695    { (exit 1); exit 1; }; }
 3696 
 3697 fi
 3698 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
 3699 echo "${ECHO_T}$ac_cv_host" >&6
 3700 host=$ac_cv_host
 3701 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 3702 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 3703 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 3704 
 3705 
 3706 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
 3707 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
 3708 if test "${lt_cv_path_SED+set}" = set; then
 3709   echo $ECHO_N "(cached) $ECHO_C" >&6
 3710 else
 3711   # Loop through the user's path and test for sed and gsed.
 3712 # Then use that list of sed's as ones to test for truncation.
 3713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 3714 for as_dir in $PATH
 3715 do
 3716   IFS=$as_save_IFS
 3717   test -z "$as_dir" && as_dir=.
 3718   for lt_ac_prog in sed gsed; do
 3719     for ac_exec_ext in '' $ac_executable_extensions; do
 3720       if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
 3721         lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
 3722       fi
 3723     done
 3724   done
 3725 done
 3726 lt_ac_max=0
 3727 lt_ac_count=0
 3728 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 3729 # along with /bin/sed that truncates output.
 3730 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
 3731   test ! -f $lt_ac_sed && break
 3732   cat /dev/null > conftest.in
 3733   lt_ac_count=0
 3734   echo $ECHO_N "0123456789$ECHO_C" >conftest.in
 3735   # Check for GNU sed and select it if it is found.
 3736   if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
 3737     lt_cv_path_SED=$lt_ac_sed
 3738     break
 3739   fi
 3740   while true; do
 3741     cat conftest.in conftest.in >conftest.tmp
 3742     mv conftest.tmp conftest.in
 3743     cp conftest.in conftest.nl
 3744     echo >>conftest.nl
 3745     $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
 3746     cmp -s conftest.out conftest.nl || break
 3747     # 10000 chars as input seems more than enough
 3748     test $lt_ac_count -gt 10 && break
 3749     lt_ac_count=`expr $lt_ac_count + 1`
 3750     if test $lt_ac_count -gt $lt_ac_max; then
 3751       lt_ac_max=$lt_ac_count
 3752       lt_cv_path_SED=$lt_ac_sed
 3753     fi
 3754   done
 3755 done
 3756 SED=$lt_cv_path_SED
 3757 
 3758 fi
 3759 
 3760 echo "$as_me:$LINENO: result: $SED" >&5
 3761 echo "${ECHO_T}$SED" >&6
 3762 
 3763 echo "$as_me:$LINENO: checking for egrep" >&5
 3764 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
 3765 if test "${ac_cv_prog_egrep+set}" = set; then
 3766   echo $ECHO_N "(cached) $ECHO_C" >&6
 3767 else
 3768   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
 3769     then ac_cv_prog_egrep='grep -E'
 3770     else ac_cv_prog_egrep='egrep'
 3771     fi
 3772 fi
 3773 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
 3774 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
 3775  EGREP=$ac_cv_prog_egrep
 3776  
 3777 
 3778 
 3779 # Check whether --with-gnu-ld or --without-gnu-ld was given.
 3780 if test "${with_gnu_ld+set}" = set; then
 3781   withval="$with_gnu_ld"
 3782   test "$withval" = no || with_gnu_ld=yes
 3783 else
 3784   with_gnu_ld=no
 3785 fi; 
 3786 ac_prog=ld
 3787 if test "$GCC" = yes; then
 3788   # Check if gcc -print-prog-name=ld gives a path.
 3789   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 3790 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 3791   case $host in
 3792   *-*-mingw*)
 3793     # gcc leaves a trailing carriage return which upsets mingw
 3794     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 3795   *)
 3796     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 3797   esac
 3798   case $ac_prog in
 3799     # Accept absolute paths.
 3800     [\\/]* | ?:[\\/]*)
 3801       re_direlt='/[^/][^/]*/\.\./'
 3802       # Canonicalize the pathname of ld
 3803       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 3804       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 3805 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 3806       done
 3807       test -z "$LD" && LD="$ac_prog"
 3808       ;;
 3809   "")
 3810     # If it fails, then pretend we aren't using GCC.
 3811     ac_prog=ld
 3812     ;;
 3813   *)
 3814     # If it is relative, then search for the first ld in PATH.
 3815     with_gnu_ld=unknown
 3816     ;;
 3817   esac
 3818 elif test "$with_gnu_ld" = yes; then
 3819   echo "$as_me:$LINENO: checking for GNU ld" >&5
 3820 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 3821 else
 3822   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 3823 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 3824 fi
 3825 if test "${lt_cv_path_LD+set}" = set; then
 3826   echo $ECHO_N "(cached) $ECHO_C" >&6
 3827 else
 3828   if test -z "$LD"; then
 3829   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 3830   for ac_dir in $PATH; do
 3831     IFS="$lt_save_ifs"
 3832     test -z "$ac_dir" && ac_dir=.
 3833     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 3834       lt_cv_path_LD="$ac_dir/$ac_prog"
 3835       # Check to see if the program is GNU ld.  I'd rather use --version,
 3836       # but apparently some GNU ld's only accept -v.
 3837       # Break only if it was the GNU/non-GNU ld that we prefer.
 3838       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 3839       *GNU* | *'with BFD'*)
 3840 	test "$with_gnu_ld" != no && break
 3841 	;;
 3842       *)
 3843 	test "$with_gnu_ld" != yes && break
 3844 	;;
 3845       esac
 3846     fi
 3847   done
 3848   IFS="$lt_save_ifs"
 3849 else
 3850   lt_cv_path_LD="$LD" # Let the user override the test with a path.
 3851 fi
 3852 fi
 3853 
 3854 LD="$lt_cv_path_LD"
 3855 if test -n "$LD"; then
 3856   echo "$as_me:$LINENO: result: $LD" >&5
 3857 echo "${ECHO_T}$LD" >&6
 3858 else
 3859   echo "$as_me:$LINENO: result: no" >&5
 3860 echo "${ECHO_T}no" >&6
 3861 fi
 3862 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 3863 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 3864    { (exit 1); exit 1; }; }
 3865 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 3866 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 3867 if test "${lt_cv_prog_gnu_ld+set}" = set; then
 3868   echo $ECHO_N "(cached) $ECHO_C" >&6
 3869 else
 3870   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 3871 case `$LD -v 2>&1 </dev/null` in
 3872 *GNU* | *'with BFD'*)
 3873   lt_cv_prog_gnu_ld=yes
 3874   ;;
 3875 *)
 3876   lt_cv_prog_gnu_ld=no
 3877   ;;
 3878 esac
 3879 fi
 3880 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 3881 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 3882 with_gnu_ld=$lt_cv_prog_gnu_ld
 3883 
 3884 
 3885 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
 3886 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
 3887 if test "${lt_cv_ld_reload_flag+set}" = set; then
 3888   echo $ECHO_N "(cached) $ECHO_C" >&6
 3889 else
 3890   lt_cv_ld_reload_flag='-r'
 3891 fi
 3892 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
 3893 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
 3894 reload_flag=$lt_cv_ld_reload_flag
 3895 case $reload_flag in
 3896 "" | " "*) ;;
 3897 *) reload_flag=" $reload_flag" ;;
 3898 esac
 3899 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 3900 
 3901 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
 3902 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
 3903 if test "${lt_cv_path_NM+set}" = set; then
 3904   echo $ECHO_N "(cached) $ECHO_C" >&6
 3905 else
 3906   if test -n "$NM"; then
 3907   # Let the user override the test.
 3908   lt_cv_path_NM="$NM"
 3909 else
 3910   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 3911   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 3912     IFS="$lt_save_ifs"
 3913     test -z "$ac_dir" && ac_dir=.
 3914     tmp_nm="$ac_dir/${ac_tool_prefix}nm"
 3915     if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
 3916       # Check to see if the nm accepts a BSD-compat flag.
 3917       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 3918       #   nm: unknown option "B" ignored
 3919       # Tru64's nm complains that /dev/null is an invalid object file
 3920       case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
 3921       */dev/null* | *'Invalid file or object type'*)
 3922 	lt_cv_path_NM="$tmp_nm -B"
 3923 	break
 3924         ;;
 3925       *)
 3926 	case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
 3927 	*/dev/null*)
 3928 	  lt_cv_path_NM="$tmp_nm -p"
 3929 	  break
 3930 	  ;;
 3931 	*)
 3932 	  lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 3933 	  continue # so that we can try to find one that supports BSD flags
 3934 	  ;;
 3935 	esac
 3936       esac
 3937     fi
 3938   done
 3939   IFS="$lt_save_ifs"
 3940   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 3941 fi
 3942 fi
 3943 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
 3944 echo "${ECHO_T}$lt_cv_path_NM" >&6
 3945 NM="$lt_cv_path_NM"
 3946 
 3947 echo "$as_me:$LINENO: checking whether ln -s works" >&5
 3948 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
 3949 LN_S=$as_ln_s
 3950 if test "$LN_S" = "ln -s"; then
 3951   echo "$as_me:$LINENO: result: yes" >&5
 3952 echo "${ECHO_T}yes" >&6
 3953 else
 3954   echo "$as_me:$LINENO: result: no, using $LN_S" >&5
 3955 echo "${ECHO_T}no, using $LN_S" >&6
 3956 fi
 3957 
 3958 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
 3959 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
 3960 if test "${lt_cv_deplibs_check_method+set}" = set; then
 3961   echo $ECHO_N "(cached) $ECHO_C" >&6
 3962 else
 3963   lt_cv_file_magic_cmd='$MAGIC_CMD'
 3964 lt_cv_file_magic_test_file=
 3965 lt_cv_deplibs_check_method='unknown'
 3966 # Need to set the preceding variable on all platforms that support
 3967 # interlibrary dependencies.
 3968 # 'none' -- dependencies not supported.
 3969 # `unknown' -- same as none, but documents that we really don't know.
 3970 # 'pass_all' -- all dependencies passed with no checks.
 3971 # 'test_compile' -- check by making test program.
 3972 # 'file_magic [[regex]]' -- check by looking for files in library path
 3973 # which responds to the $file_magic_cmd with a given extended regex.
 3974 # If you have `file' or equivalent on your system and you're not sure
 3975 # whether `pass_all' will *always* work, you probably want this one.
 3976 
 3977 case $host_os in
 3978 aix4* | aix5*)
 3979   lt_cv_deplibs_check_method=pass_all
 3980   ;;
 3981 
 3982 beos*)
 3983   lt_cv_deplibs_check_method=pass_all
 3984   ;;
 3985 
 3986 bsdi4*)
 3987   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 3988   lt_cv_file_magic_cmd='/usr/bin/file -L'
 3989   lt_cv_file_magic_test_file=/shlib/libc.so
 3990   ;;
 3991 
 3992 cygwin*)
 3993   # func_win32_libid is a shell function defined in ltmain.sh
 3994   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
 3995   lt_cv_file_magic_cmd='func_win32_libid'
 3996   ;;
 3997 
 3998 mingw* | pw32*)
 3999   # Base MSYS/MinGW do not provide the 'file' command needed by
 4000   # func_win32_libid shell function, so use a weaker test based on 'objdump'.
 4001   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 4002   lt_cv_file_magic_cmd='$OBJDUMP -f'
 4003   ;;
 4004 
 4005 darwin* | rhapsody*)
 4006   lt_cv_deplibs_check_method=pass_all
 4007   ;;
 4008 
 4009 freebsd* | kfreebsd*-gnu)
 4010   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 4011     case $host_cpu in
 4012     i*86 )
 4013       # Not sure whether the presence of OpenBSD here was a mistake.
 4014       # Let's accept both of them until this is cleared up.
 4015       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 4016       lt_cv_file_magic_cmd=/usr/bin/file
 4017       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 4018       ;;
 4019     esac
 4020   else
 4021     lt_cv_deplibs_check_method=pass_all
 4022   fi
 4023   ;;
 4024 
 4025 gnu*)
 4026   lt_cv_deplibs_check_method=pass_all
 4027   ;;
 4028 
 4029 hpux10.20* | hpux11*)
 4030   lt_cv_file_magic_cmd=/usr/bin/file
 4031   case "$host_cpu" in
 4032   ia64*)
 4033     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
 4034     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
 4035     ;;
 4036   hppa*64*)
 4037     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]'
 4038     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
 4039     ;;
 4040   *)
 4041     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 4042     lt_cv_file_magic_test_file=/usr/lib/libc.sl
 4043     ;;
 4044   esac
 4045   ;;
 4046 
 4047 irix5* | irix6* | nonstopux*)
 4048   case $LD in
 4049   *-32|*"-32 ") libmagic=32-bit;;
 4050   *-n32|*"-n32 ") libmagic=N32;;
 4051   *-64|*"-64 ") libmagic=64-bit;;
 4052   *) libmagic=never-match;;
 4053   esac
 4054   lt_cv_deplibs_check_method=pass_all
 4055   ;;
 4056 
 4057 # This must be Linux ELF.
 4058 linux*)
 4059   lt_cv_deplibs_check_method=pass_all
 4060   ;;
 4061 
 4062 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 4063   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 4064     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
 4065   else
 4066     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
 4067   fi
 4068   ;;
 4069 
 4070 newos6*)
 4071   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 4072   lt_cv_file_magic_cmd=/usr/bin/file
 4073   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 4074   ;;
 4075 
 4076 nto-qnx*)
 4077   lt_cv_deplibs_check_method=unknown
 4078   ;;
 4079 
 4080 openbsd*)
 4081   lt_cv_file_magic_cmd=/usr/bin/file
 4082   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 4083   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 4084     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 4085   else
 4086     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 4087   fi
 4088   ;;
 4089 
 4090 osf3* | osf4* | osf5*)
 4091   lt_cv_deplibs_check_method=pass_all
 4092   ;;
 4093 
 4094 sco3.2v5*)
 4095   lt_cv_deplibs_check_method=pass_all
 4096   ;;
 4097 
 4098 solaris*)
 4099   lt_cv_deplibs_check_method=pass_all
 4100   ;;
 4101 
 4102 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 4103   case $host_vendor in
 4104   motorola)
 4105     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]'
 4106     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 4107     ;;
 4108   ncr)
 4109     lt_cv_deplibs_check_method=pass_all
 4110     ;;
 4111   sequent)
 4112     lt_cv_file_magic_cmd='/bin/file'
 4113     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 4114     ;;
 4115   sni)
 4116     lt_cv_file_magic_cmd='/bin/file'
 4117     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 4118     lt_cv_file_magic_test_file=/lib/libc.so
 4119     ;;
 4120   siemens)
 4121     lt_cv_deplibs_check_method=pass_all
 4122     ;;
 4123   esac
 4124   ;;
 4125 
 4126 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
 4127   lt_cv_deplibs_check_method=pass_all
 4128   ;;
 4129 esac
 4130 
 4131 fi
 4132 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
 4133 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
 4134 file_magic_cmd=$lt_cv_file_magic_cmd
 4135 deplibs_check_method=$lt_cv_deplibs_check_method
 4136 test -z "$deplibs_check_method" && deplibs_check_method=unknown
 4137 
 4138 
 4139 
 4140 
 4141 # If no C compiler was specified, use CC.
 4142 LTCC=${LTCC-"$CC"}
 4143 
 4144 # Allow CC to be a program name with arguments.
 4145 compiler=$CC
 4146 
 4147 
 4148 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 4149 if test "${enable_libtool_lock+set}" = set; then
 4150   enableval="$enable_libtool_lock"
 4151   
 4152 fi; 
 4153 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 4154 
 4155 # Some flags need to be propagated to the compiler or linker for good
 4156 # libtool support.
 4157 case $host in
 4158 ia64-*-hpux*)
 4159   # Find out which ABI we are using.
 4160   echo 'int i;' > conftest.$ac_ext
 4161   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 4162   (eval $ac_compile) 2>&5
 4163   ac_status=$?
 4164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4165   (exit $ac_status); }; then
 4166     case `/usr/bin/file conftest.$ac_objext` in
 4167     *ELF-32*)
 4168       HPUX_IA64_MODE="32"
 4169       ;;
 4170     *ELF-64*)
 4171       HPUX_IA64_MODE="64"
 4172       ;;
 4173     esac
 4174   fi
 4175   rm -rf conftest*
 4176   ;;
 4177 *-*-irix6*)
 4178   # Find out which ABI we are using.
 4179   echo '#line __oline__ "configure"' > conftest.$ac_ext
 4180   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 4181   (eval $ac_compile) 2>&5
 4182   ac_status=$?
 4183   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4184   (exit $ac_status); }; then
 4185    if test "$lt_cv_prog_gnu_ld" = yes; then
 4186     case `/usr/bin/file conftest.$ac_objext` in
 4187     *32-bit*)
 4188       LD="${LD-ld} -melf32bsmip"
 4189       ;;
 4190     *N32*)
 4191       LD="${LD-ld} -melf32bmipn32"
 4192       ;;
 4193     *64-bit*)
 4194       LD="${LD-ld} -melf64bmip"
 4195       ;;
 4196     esac
 4197    else
 4198     case `/usr/bin/file conftest.$ac_objext` in
 4199     *32-bit*)
 4200       LD="${LD-ld} -32"
 4201       ;;
 4202     *N32*)
 4203       LD="${LD-ld} -n32"
 4204       ;;
 4205     *64-bit*)
 4206       LD="${LD-ld} -64"
 4207       ;;
 4208     esac
 4209    fi
 4210   fi
 4211   rm -rf conftest*
 4212   ;;
 4213 
 4214 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
 4215   # Find out which ABI we are using.
 4216   echo 'int i;' > conftest.$ac_ext
 4217   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 4218   (eval $ac_compile) 2>&5
 4219   ac_status=$?
 4220   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4221   (exit $ac_status); }; then
 4222     case "`/usr/bin/file conftest.o`" in
 4223     *32-bit*)
 4224       case $host in
 4225         x86_64-*linux*)
 4226           LD="${LD-ld} -m elf_i386"
 4227           ;;
 4228         ppc64-*linux*|powerpc64-*linux*)
 4229           LD="${LD-ld} -m elf32ppclinux"
 4230           ;;
 4231         s390x-*linux*)
 4232           LD="${LD-ld} -m elf_s390"
 4233           ;;
 4234         sparc64-*linux*)
 4235           LD="${LD-ld} -m elf32_sparc"
 4236           ;;
 4237       esac
 4238       ;;
 4239     *64-bit*)
 4240       case $host in
 4241         x86_64-*linux*)
 4242           LD="${LD-ld} -m elf_x86_64"
 4243           ;;
 4244         ppc*-*linux*|powerpc*-*linux*)
 4245           LD="${LD-ld} -m elf64ppc"
 4246           ;;
 4247         s390*-*linux*)
 4248           LD="${LD-ld} -m elf64_s390"
 4249           ;;
 4250         sparc*-*linux*)
 4251           LD="${LD-ld} -m elf64_sparc"
 4252           ;;
 4253       esac
 4254       ;;
 4255     esac
 4256   fi
 4257   rm -rf conftest*
 4258   ;;
 4259 
 4260 *-*-sco3.2v5*)
 4261   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 4262   SAVE_CFLAGS="$CFLAGS"
 4263   CFLAGS="$CFLAGS -belf"
 4264   echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
 4265 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
 4266 if test "${lt_cv_cc_needs_belf+set}" = set; then
 4267   echo $ECHO_N "(cached) $ECHO_C" >&6
 4268 else
 4269   ac_ext=c
 4270 ac_cpp='$CPP $CPPFLAGS'
 4271 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4272 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4273 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4274 
 4275      cat >conftest.$ac_ext <<_ACEOF
 4276 /* confdefs.h.  */
 4277 _ACEOF
 4278 cat confdefs.h >>conftest.$ac_ext
 4279 cat >>conftest.$ac_ext <<_ACEOF
 4280 /* end confdefs.h.  */
 4281 
 4282 int
 4283 main ()
 4284 {
 4285 
 4286   ;
 4287   return 0;
 4288 }
 4289 _ACEOF
 4290 rm -f conftest.$ac_objext conftest$ac_exeext
 4291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 4292   (eval $ac_link) 2>conftest.er1
 4293   ac_status=$?
 4294   grep -v '^ *+' conftest.er1 >conftest.err
 4295   rm -f conftest.er1
 4296   cat conftest.err >&5
 4297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4298   (exit $ac_status); } &&
 4299 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 4300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 4301   (eval $ac_try) 2>&5
 4302   ac_status=$?
 4303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4304   (exit $ac_status); }; } &&
 4305 	 { ac_try='test -s conftest$ac_exeext'
 4306   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 4307   (eval $ac_try) 2>&5
 4308   ac_status=$?
 4309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4310   (exit $ac_status); }; }; then
 4311   lt_cv_cc_needs_belf=yes
 4312 else
 4313   echo "$as_me: failed program was:" >&5
 4314 sed 's/^/| /' conftest.$ac_ext >&5
 4315 
 4316 lt_cv_cc_needs_belf=no
 4317 fi
 4318 rm -f conftest.err conftest.$ac_objext \
 4319       conftest$ac_exeext conftest.$ac_ext
 4320      ac_ext=c
 4321 ac_cpp='$CPP $CPPFLAGS'
 4322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4325 
 4326 fi
 4327 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
 4328 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
 4329   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 4330     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 4331     CFLAGS="$SAVE_CFLAGS"
 4332   fi
 4333   ;;
 4334 
 4335 esac
 4336 
 4337 need_locks="$enable_libtool_lock"
 4338 
 4339 
 4340 ac_ext=c
 4341 ac_cpp='$CPP $CPPFLAGS'
 4342 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4343 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4344 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4345 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
 4346 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
 4347 # On Suns, sometimes $CPP names a directory.
 4348 if test -n "$CPP" && test -d "$CPP"; then
 4349   CPP=
 4350 fi
 4351 if test -z "$CPP"; then
 4352   if test "${ac_cv_prog_CPP+set}" = set; then
 4353   echo $ECHO_N "(cached) $ECHO_C" >&6
 4354 else
 4355       # Double quotes because CPP needs to be expanded
 4356     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
 4357     do
 4358       ac_preproc_ok=false
 4359 for ac_c_preproc_warn_flag in '' yes
 4360 do
 4361   # Use a header file that comes with gcc, so configuring glibc
 4362   # with a fresh cross-compiler works.
 4363   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4364   # <limits.h> exists even on freestanding compilers.
 4365   # On the NeXT, cc -E runs the code through the compiler's parser,
 4366   # not just through cpp. "Syntax error" is here to catch this case.
 4367   cat >conftest.$ac_ext <<_ACEOF
 4368 /* confdefs.h.  */
 4369 _ACEOF
 4370 cat confdefs.h >>conftest.$ac_ext
 4371 cat >>conftest.$ac_ext <<_ACEOF
 4372 /* end confdefs.h.  */
 4373 @%:@ifdef __STDC__
 4374 @%:@ include <limits.h>
 4375 @%:@else
 4376 @%:@ include <assert.h>
 4377 @%:@endif
 4378 		     Syntax error
 4379 _ACEOF
 4380 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 4381   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 4382   ac_status=$?
 4383   grep -v '^ *+' conftest.er1 >conftest.err
 4384   rm -f conftest.er1
 4385   cat conftest.err >&5
 4386   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4387   (exit $ac_status); } >/dev/null; then
 4388   if test -s conftest.err; then
 4389     ac_cpp_err=$ac_c_preproc_warn_flag
 4390     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 4391   else
 4392     ac_cpp_err=
 4393   fi
 4394 else
 4395   ac_cpp_err=yes
 4396 fi
 4397 if test -z "$ac_cpp_err"; then
 4398   :
 4399 else
 4400   echo "$as_me: failed program was:" >&5
 4401 sed 's/^/| /' conftest.$ac_ext >&5
 4402 
 4403   # Broken: fails on valid input.
 4404 continue
 4405 fi
 4406 rm -f conftest.err conftest.$ac_ext
 4407 
 4408   # OK, works on sane cases.  Now check whether non-existent headers
 4409   # can be detected and how.
 4410   cat >conftest.$ac_ext <<_ACEOF
 4411 /* confdefs.h.  */
 4412 _ACEOF
 4413 cat confdefs.h >>conftest.$ac_ext
 4414 cat >>conftest.$ac_ext <<_ACEOF
 4415 /* end confdefs.h.  */
 4416 @%:@include <ac_nonexistent.h>
 4417 _ACEOF
 4418 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 4419   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 4420   ac_status=$?
 4421   grep -v '^ *+' conftest.er1 >conftest.err
 4422   rm -f conftest.er1
 4423   cat conftest.err >&5
 4424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4425   (exit $ac_status); } >/dev/null; then
 4426   if test -s conftest.err; then
 4427     ac_cpp_err=$ac_c_preproc_warn_flag
 4428     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 4429   else
 4430     ac_cpp_err=
 4431   fi
 4432 else
 4433   ac_cpp_err=yes
 4434 fi
 4435 if test -z "$ac_cpp_err"; then
 4436   # Broken: success on invalid input.
 4437 continue
 4438 else
 4439   echo "$as_me: failed program was:" >&5
 4440 sed 's/^/| /' conftest.$ac_ext >&5
 4441 
 4442   # Passes both tests.
 4443 ac_preproc_ok=:
 4444 break
 4445 fi
 4446 rm -f conftest.err conftest.$ac_ext
 4447 
 4448 done
 4449 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4450 rm -f conftest.err conftest.$ac_ext
 4451 if $ac_preproc_ok; then
 4452   break
 4453 fi
 4454 
 4455     done
 4456     ac_cv_prog_CPP=$CPP
 4457   
 4458 fi
 4459   CPP=$ac_cv_prog_CPP
 4460 else
 4461   ac_cv_prog_CPP=$CPP
 4462 fi
 4463 echo "$as_me:$LINENO: result: $CPP" >&5
 4464 echo "${ECHO_T}$CPP" >&6
 4465 ac_preproc_ok=false
 4466 for ac_c_preproc_warn_flag in '' yes
 4467 do
 4468   # Use a header file that comes with gcc, so configuring glibc
 4469   # with a fresh cross-compiler works.
 4470   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4471   # <limits.h> exists even on freestanding compilers.
 4472   # On the NeXT, cc -E runs the code through the compiler's parser,
 4473   # not just through cpp. "Syntax error" is here to catch this case.
 4474   cat >conftest.$ac_ext <<_ACEOF
 4475 /* confdefs.h.  */
 4476 _ACEOF
 4477 cat confdefs.h >>conftest.$ac_ext
 4478 cat >>conftest.$ac_ext <<_ACEOF
 4479 /* end confdefs.h.  */
 4480 @%:@ifdef __STDC__
 4481 @%:@ include <limits.h>
 4482 @%:@else
 4483 @%:@ include <assert.h>
 4484 @%:@endif
 4485 		     Syntax error
 4486 _ACEOF
 4487 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 4488   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 4489   ac_status=$?
 4490   grep -v '^ *+' conftest.er1 >conftest.err
 4491   rm -f conftest.er1
 4492   cat conftest.err >&5
 4493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4494   (exit $ac_status); } >/dev/null; then
 4495   if test -s conftest.err; then
 4496     ac_cpp_err=$ac_c_preproc_warn_flag
 4497     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 4498   else
 4499     ac_cpp_err=
 4500   fi
 4501 else
 4502   ac_cpp_err=yes
 4503 fi
 4504 if test -z "$ac_cpp_err"; then
 4505   :
 4506 else
 4507   echo "$as_me: failed program was:" >&5
 4508 sed 's/^/| /' conftest.$ac_ext >&5
 4509 
 4510   # Broken: fails on valid input.
 4511 continue
 4512 fi
 4513 rm -f conftest.err conftest.$ac_ext
 4514 
 4515   # OK, works on sane cases.  Now check whether non-existent headers
 4516   # can be detected and how.
 4517   cat >conftest.$ac_ext <<_ACEOF
 4518 /* confdefs.h.  */
 4519 _ACEOF
 4520 cat confdefs.h >>conftest.$ac_ext
 4521 cat >>conftest.$ac_ext <<_ACEOF
 4522 /* end confdefs.h.  */
 4523 @%:@include <ac_nonexistent.h>
 4524 _ACEOF
 4525 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 4526   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 4527   ac_status=$?
 4528   grep -v '^ *+' conftest.er1 >conftest.err
 4529   rm -f conftest.er1
 4530   cat conftest.err >&5
 4531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4532   (exit $ac_status); } >/dev/null; then
 4533   if test -s conftest.err; then
 4534     ac_cpp_err=$ac_c_preproc_warn_flag
 4535     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 4536   else
 4537     ac_cpp_err=
 4538   fi
 4539 else
 4540   ac_cpp_err=yes
 4541 fi
 4542 if test -z "$ac_cpp_err"; then
 4543   # Broken: success on invalid input.
 4544 continue
 4545 else
 4546   echo "$as_me: failed program was:" >&5
 4547 sed 's/^/| /' conftest.$ac_ext >&5
 4548 
 4549   # Passes both tests.
 4550 ac_preproc_ok=:
 4551 break
 4552 fi
 4553 rm -f conftest.err conftest.$ac_ext
 4554 
 4555 done
 4556 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 4557 rm -f conftest.err conftest.$ac_ext
 4558 if $ac_preproc_ok; then
 4559   :
 4560 else
 4561   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
 4562 See \`config.log' for more details." >&5
 4563 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
 4564 See \`config.log' for more details." >&2;}
 4565    { (exit 1); exit 1; }; }
 4566 fi
 4567 
 4568 ac_ext=c
 4569 ac_cpp='$CPP $CPPFLAGS'
 4570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 4573 
 4574 
 4575 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
 4576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
 4577 if test "${ac_cv_header_stdc+set}" = set; then
 4578   echo $ECHO_N "(cached) $ECHO_C" >&6
 4579 else
 4580   cat >conftest.$ac_ext <<_ACEOF
 4581 /* confdefs.h.  */
 4582 _ACEOF
 4583 cat confdefs.h >>conftest.$ac_ext
 4584 cat >>conftest.$ac_ext <<_ACEOF
 4585 /* end confdefs.h.  */
 4586 #include <stdlib.h>
 4587 #include <stdarg.h>
 4588 #include <string.h>
 4589 #include <float.h>
 4590 
 4591 int
 4592 main ()
 4593 {
 4594 
 4595   ;
 4596   return 0;
 4597 }
 4598 _ACEOF
 4599 rm -f conftest.$ac_objext
 4600 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 4601   (eval $ac_compile) 2>conftest.er1
 4602   ac_status=$?
 4603   grep -v '^ *+' conftest.er1 >conftest.err
 4604   rm -f conftest.er1
 4605   cat conftest.err >&5
 4606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4607   (exit $ac_status); } &&
 4608 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 4609   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 4610   (eval $ac_try) 2>&5
 4611   ac_status=$?
 4612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4613   (exit $ac_status); }; } &&
 4614 	 { ac_try='test -s conftest.$ac_objext'
 4615   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 4616   (eval $ac_try) 2>&5
 4617   ac_status=$?
 4618   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4619   (exit $ac_status); }; }; then
 4620   ac_cv_header_stdc=yes
 4621 else
 4622   echo "$as_me: failed program was:" >&5
 4623 sed 's/^/| /' conftest.$ac_ext >&5
 4624 
 4625 ac_cv_header_stdc=no
 4626 fi
 4627 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 4628 
 4629 if test $ac_cv_header_stdc = yes; then
 4630   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
 4631   cat >conftest.$ac_ext <<_ACEOF
 4632 /* confdefs.h.  */
 4633 _ACEOF
 4634 cat confdefs.h >>conftest.$ac_ext
 4635 cat >>conftest.$ac_ext <<_ACEOF
 4636 /* end confdefs.h.  */
 4637 #include <string.h>
 4638 
 4639 _ACEOF
 4640 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4641   $EGREP "memchr" >/dev/null 2>&1; then
 4642   :
 4643 else
 4644   ac_cv_header_stdc=no
 4645 fi
 4646 rm -f conftest*
 4647 
 4648 fi
 4649 
 4650 if test $ac_cv_header_stdc = yes; then
 4651   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
 4652   cat >conftest.$ac_ext <<_ACEOF
 4653 /* confdefs.h.  */
 4654 _ACEOF
 4655 cat confdefs.h >>conftest.$ac_ext
 4656 cat >>conftest.$ac_ext <<_ACEOF
 4657 /* end confdefs.h.  */
 4658 #include <stdlib.h>
 4659 
 4660 _ACEOF
 4661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
 4662   $EGREP "free" >/dev/null 2>&1; then
 4663   :
 4664 else
 4665   ac_cv_header_stdc=no
 4666 fi
 4667 rm -f conftest*
 4668 
 4669 fi
 4670 
 4671 if test $ac_cv_header_stdc = yes; then
 4672   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
 4673   if test "$cross_compiling" = yes; then
 4674   :
 4675 else
 4676   cat >conftest.$ac_ext <<_ACEOF
 4677 /* confdefs.h.  */
 4678 _ACEOF
 4679 cat confdefs.h >>conftest.$ac_ext
 4680 cat >>conftest.$ac_ext <<_ACEOF
 4681 /* end confdefs.h.  */
 4682 #include <ctype.h>
 4683 #if ((' ' & 0x0FF) == 0x020)
 4684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
 4685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
 4686 #else
 4687 # define ISLOWER(c) \
 4688 		   (('a' <= (c) && (c) <= 'i') \
 4689 		     || ('j' <= (c) && (c) <= 'r') \
 4690 		     || ('s' <= (c) && (c) <= 'z'))
 4691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
 4692 #endif
 4693 
 4694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
 4695 int
 4696 main ()
 4697 {
 4698   int i;
 4699   for (i = 0; i < 256; i++)
 4700     if (XOR (islower (i), ISLOWER (i))
 4701 	|| toupper (i) != TOUPPER (i))
 4702       exit(2);
 4703   exit (0);
 4704 }
 4705 _ACEOF
 4706 rm -f conftest$ac_exeext
 4707 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 4708   (eval $ac_link) 2>&5
 4709   ac_status=$?
 4710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4711   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
 4712   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 4713   (eval $ac_try) 2>&5
 4714   ac_status=$?
 4715   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4716   (exit $ac_status); }; }; then
 4717   :
 4718 else
 4719   echo "$as_me: program exited with status $ac_status" >&5
 4720 echo "$as_me: failed program was:" >&5
 4721 sed 's/^/| /' conftest.$ac_ext >&5
 4722 
 4723 ( exit $ac_status )
 4724 ac_cv_header_stdc=no
 4725 fi
 4726 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
 4727 fi
 4728 fi
 4729 fi
 4730 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
 4731 echo "${ECHO_T}$ac_cv_header_stdc" >&6
 4732 if test $ac_cv_header_stdc = yes; then
 4733   
 4734 cat >>confdefs.h <<\_ACEOF
 4735 @%:@define STDC_HEADERS 1
 4736 _ACEOF
 4737 
 4738 fi
 4739 
 4740 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
 4741 
 4742 
 4743 
 4744 
 4745 
 4746 
 4747 
 4748 
 4749 
 4750 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
 4751 		  inttypes.h stdint.h unistd.h
 4752 do
 4753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4754 echo "$as_me:$LINENO: checking for $ac_header" >&5
 4755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 4756 if eval "test \"\${$as_ac_Header+set}\" = set"; then
 4757   echo $ECHO_N "(cached) $ECHO_C" >&6
 4758 else
 4759   cat >conftest.$ac_ext <<_ACEOF
 4760 /* confdefs.h.  */
 4761 _ACEOF
 4762 cat confdefs.h >>conftest.$ac_ext
 4763 cat >>conftest.$ac_ext <<_ACEOF
 4764 /* end confdefs.h.  */
 4765 $ac_includes_default
 4766 
 4767 @%:@include <$ac_header>
 4768 _ACEOF
 4769 rm -f conftest.$ac_objext
 4770 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 4771   (eval $ac_compile) 2>conftest.er1
 4772   ac_status=$?
 4773   grep -v '^ *+' conftest.er1 >conftest.err
 4774   rm -f conftest.er1
 4775   cat conftest.err >&5
 4776   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4777   (exit $ac_status); } &&
 4778 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 4779   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 4780   (eval $ac_try) 2>&5
 4781   ac_status=$?
 4782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4783   (exit $ac_status); }; } &&
 4784 	 { ac_try='test -s conftest.$ac_objext'
 4785   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 4786   (eval $ac_try) 2>&5
 4787   ac_status=$?
 4788   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4789   (exit $ac_status); }; }; then
 4790   eval "$as_ac_Header=yes"
 4791 else
 4792   echo "$as_me: failed program was:" >&5
 4793 sed 's/^/| /' conftest.$ac_ext >&5
 4794 
 4795 eval "$as_ac_Header=no"
 4796 fi
 4797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 4798 fi
 4799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 4800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 4801 if test `eval echo '${'$as_ac_Header'}'` = yes; then
 4802   cat >>confdefs.h <<_ACEOF
 4803 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4804 _ACEOF
 4805  
 4806 fi
 4807 
 4808 done
 4809 
 4810 
 4811 
 4812 for ac_header in dlfcn.h
 4813 do
 4814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
 4815 if eval "test \"\${$as_ac_Header+set}\" = set"; then
 4816   echo "$as_me:$LINENO: checking for $ac_header" >&5
 4817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 4818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
 4819   echo $ECHO_N "(cached) $ECHO_C" >&6
 4820 fi
 4821 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 4822 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 4823 else
 4824   # Is the header compilable?
 4825 echo "$as_me:$LINENO: checking $ac_header usability" >&5
 4826 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
 4827 cat >conftest.$ac_ext <<_ACEOF
 4828 /* confdefs.h.  */
 4829 _ACEOF
 4830 cat confdefs.h >>conftest.$ac_ext
 4831 cat >>conftest.$ac_ext <<_ACEOF
 4832 /* end confdefs.h.  */
 4833 $ac_includes_default
 4834 @%:@include <$ac_header>
 4835 _ACEOF
 4836 rm -f conftest.$ac_objext
 4837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 4838   (eval $ac_compile) 2>conftest.er1
 4839   ac_status=$?
 4840   grep -v '^ *+' conftest.er1 >conftest.err
 4841   rm -f conftest.er1
 4842   cat conftest.err >&5
 4843   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4844   (exit $ac_status); } &&
 4845 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 4846   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 4847   (eval $ac_try) 2>&5
 4848   ac_status=$?
 4849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4850   (exit $ac_status); }; } &&
 4851 	 { ac_try='test -s conftest.$ac_objext'
 4852   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 4853   (eval $ac_try) 2>&5
 4854   ac_status=$?
 4855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4856   (exit $ac_status); }; }; then
 4857   ac_header_compiler=yes
 4858 else
 4859   echo "$as_me: failed program was:" >&5
 4860 sed 's/^/| /' conftest.$ac_ext >&5
 4861 
 4862 ac_header_compiler=no
 4863 fi
 4864 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 4865 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
 4866 echo "${ECHO_T}$ac_header_compiler" >&6
 4867 
 4868 # Is the header present?
 4869 echo "$as_me:$LINENO: checking $ac_header presence" >&5
 4870 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
 4871 cat >conftest.$ac_ext <<_ACEOF
 4872 /* confdefs.h.  */
 4873 _ACEOF
 4874 cat confdefs.h >>conftest.$ac_ext
 4875 cat >>conftest.$ac_ext <<_ACEOF
 4876 /* end confdefs.h.  */
 4877 @%:@include <$ac_header>
 4878 _ACEOF
 4879 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 4880   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 4881   ac_status=$?
 4882   grep -v '^ *+' conftest.er1 >conftest.err
 4883   rm -f conftest.er1
 4884   cat conftest.err >&5
 4885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 4886   (exit $ac_status); } >/dev/null; then
 4887   if test -s conftest.err; then
 4888     ac_cpp_err=$ac_c_preproc_warn_flag
 4889     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
 4890   else
 4891     ac_cpp_err=
 4892   fi
 4893 else
 4894   ac_cpp_err=yes
 4895 fi
 4896 if test -z "$ac_cpp_err"; then
 4897   ac_header_preproc=yes
 4898 else
 4899   echo "$as_me: failed program was:" >&5
 4900 sed 's/^/| /' conftest.$ac_ext >&5
 4901 
 4902   ac_header_preproc=no
 4903 fi
 4904 rm -f conftest.err conftest.$ac_ext
 4905 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
 4906 echo "${ECHO_T}$ac_header_preproc" >&6
 4907 
 4908 # So?  What about this header?
 4909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
 4910   yes:no: )
 4911     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
 4912 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
 4913     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
 4914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
 4915     ac_header_preproc=yes
 4916     ;;
 4917   no:yes:* )
 4918     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
 4919 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
 4920     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
 4921 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
 4922     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
 4923 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
 4924     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
 4925 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
 4926     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
 4927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
 4928     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
 4929 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
 4930     (
 4931       cat <<\_ASBOX
 4932 @%:@@%:@ ------------------------------------------ @%:@@%:@
 4933 @%:@@%:@ Report this to the AC_PACKAGE_NAME lists.  @%:@@%:@
 4934 @%:@@%:@ ------------------------------------------ @%:@@%:@
 4935 _ASBOX
 4936     ) |
 4937       sed "s/^/$as_me: WARNING:     /" >&2
 4938     ;;
 4939 esac
 4940 echo "$as_me:$LINENO: checking for $ac_header" >&5
 4941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
 4942 if eval "test \"\${$as_ac_Header+set}\" = set"; then
 4943   echo $ECHO_N "(cached) $ECHO_C" >&6
 4944 else
 4945   eval "$as_ac_Header=\$ac_header_preproc"
 4946 fi
 4947 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
 4948 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
 4949 
 4950 fi
 4951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
 4952   cat >>confdefs.h <<_ACEOF
 4953 @%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
 4954 _ACEOF
 4955  
 4956 fi
 4957 
 4958 done
 4959 
 4960 ac_ext=cc
 4961 ac_cpp='$CXXCPP $CPPFLAGS'
 4962 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 4963 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 4964 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 4965 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
 4966 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
 4967 if test -z "$CXXCPP"; then
 4968   if test "${ac_cv_prog_CXXCPP+set}" = set; then
 4969   echo $ECHO_N "(cached) $ECHO_C" >&6
 4970 else
 4971       # Double quotes because CXXCPP needs to be expanded
 4972     for CXXCPP in "$CXX -E" "/lib/cpp"
 4973     do
 4974       ac_preproc_ok=false
 4975 for ac_cxx_preproc_warn_flag in '' yes
 4976 do
 4977   # Use a header file that comes with gcc, so configuring glibc
 4978   # with a fresh cross-compiler works.
 4979   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 4980   # <limits.h> exists even on freestanding compilers.
 4981   # On the NeXT, cc -E runs the code through the compiler's parser,
 4982   # not just through cpp. "Syntax error" is here to catch this case.
 4983   cat >conftest.$ac_ext <<_ACEOF
 4984 /* confdefs.h.  */
 4985 _ACEOF
 4986 cat confdefs.h >>conftest.$ac_ext
 4987 cat >>conftest.$ac_ext <<_ACEOF
 4988 /* end confdefs.h.  */
 4989 @%:@ifdef __STDC__
 4990 @%:@ include <limits.h>
 4991 @%:@else
 4992 @%:@ include <assert.h>
 4993 @%:@endif
 4994 		     Syntax error
 4995 _ACEOF
 4996 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 4997   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 4998   ac_status=$?
 4999   grep -v '^ *+' conftest.er1 >conftest.err
 5000   rm -f conftest.er1
 5001   cat conftest.err >&5
 5002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5003   (exit $ac_status); } >/dev/null; then
 5004   if test -s conftest.err; then
 5005     ac_cpp_err=$ac_cxx_preproc_warn_flag
 5006     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 5007   else
 5008     ac_cpp_err=
 5009   fi
 5010 else
 5011   ac_cpp_err=yes
 5012 fi
 5013 if test -z "$ac_cpp_err"; then
 5014   :
 5015 else
 5016   echo "$as_me: failed program was:" >&5
 5017 sed 's/^/| /' conftest.$ac_ext >&5
 5018 
 5019   # Broken: fails on valid input.
 5020 continue
 5021 fi
 5022 rm -f conftest.err conftest.$ac_ext
 5023 
 5024   # OK, works on sane cases.  Now check whether non-existent headers
 5025   # can be detected and how.
 5026   cat >conftest.$ac_ext <<_ACEOF
 5027 /* confdefs.h.  */
 5028 _ACEOF
 5029 cat confdefs.h >>conftest.$ac_ext
 5030 cat >>conftest.$ac_ext <<_ACEOF
 5031 /* end confdefs.h.  */
 5032 @%:@include <ac_nonexistent.h>
 5033 _ACEOF
 5034 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 5035   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 5036   ac_status=$?
 5037   grep -v '^ *+' conftest.er1 >conftest.err
 5038   rm -f conftest.er1
 5039   cat conftest.err >&5
 5040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5041   (exit $ac_status); } >/dev/null; then
 5042   if test -s conftest.err; then
 5043     ac_cpp_err=$ac_cxx_preproc_warn_flag
 5044     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 5045   else
 5046     ac_cpp_err=
 5047   fi
 5048 else
 5049   ac_cpp_err=yes
 5050 fi
 5051 if test -z "$ac_cpp_err"; then
 5052   # Broken: success on invalid input.
 5053 continue
 5054 else
 5055   echo "$as_me: failed program was:" >&5
 5056 sed 's/^/| /' conftest.$ac_ext >&5
 5057 
 5058   # Passes both tests.
 5059 ac_preproc_ok=:
 5060 break
 5061 fi
 5062 rm -f conftest.err conftest.$ac_ext
 5063 
 5064 done
 5065 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 5066 rm -f conftest.err conftest.$ac_ext
 5067 if $ac_preproc_ok; then
 5068   break
 5069 fi
 5070 
 5071     done
 5072     ac_cv_prog_CXXCPP=$CXXCPP
 5073   
 5074 fi
 5075   CXXCPP=$ac_cv_prog_CXXCPP
 5076 else
 5077   ac_cv_prog_CXXCPP=$CXXCPP
 5078 fi
 5079 echo "$as_me:$LINENO: result: $CXXCPP" >&5
 5080 echo "${ECHO_T}$CXXCPP" >&6
 5081 ac_preproc_ok=false
 5082 for ac_cxx_preproc_warn_flag in '' yes
 5083 do
 5084   # Use a header file that comes with gcc, so configuring glibc
 5085   # with a fresh cross-compiler works.
 5086   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 5087   # <limits.h> exists even on freestanding compilers.
 5088   # On the NeXT, cc -E runs the code through the compiler's parser,
 5089   # not just through cpp. "Syntax error" is here to catch this case.
 5090   cat >conftest.$ac_ext <<_ACEOF
 5091 /* confdefs.h.  */
 5092 _ACEOF
 5093 cat confdefs.h >>conftest.$ac_ext
 5094 cat >>conftest.$ac_ext <<_ACEOF
 5095 /* end confdefs.h.  */
 5096 @%:@ifdef __STDC__
 5097 @%:@ include <limits.h>
 5098 @%:@else
 5099 @%:@ include <assert.h>
 5100 @%:@endif
 5101 		     Syntax error
 5102 _ACEOF
 5103 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 5104   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 5105   ac_status=$?
 5106   grep -v '^ *+' conftest.er1 >conftest.err
 5107   rm -f conftest.er1
 5108   cat conftest.err >&5
 5109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5110   (exit $ac_status); } >/dev/null; then
 5111   if test -s conftest.err; then
 5112     ac_cpp_err=$ac_cxx_preproc_warn_flag
 5113     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 5114   else
 5115     ac_cpp_err=
 5116   fi
 5117 else
 5118   ac_cpp_err=yes
 5119 fi
 5120 if test -z "$ac_cpp_err"; then
 5121   :
 5122 else
 5123   echo "$as_me: failed program was:" >&5
 5124 sed 's/^/| /' conftest.$ac_ext >&5
 5125 
 5126   # Broken: fails on valid input.
 5127 continue
 5128 fi
 5129 rm -f conftest.err conftest.$ac_ext
 5130 
 5131   # OK, works on sane cases.  Now check whether non-existent headers
 5132   # can be detected and how.
 5133   cat >conftest.$ac_ext <<_ACEOF
 5134 /* confdefs.h.  */
 5135 _ACEOF
 5136 cat confdefs.h >>conftest.$ac_ext
 5137 cat >>conftest.$ac_ext <<_ACEOF
 5138 /* end confdefs.h.  */
 5139 @%:@include <ac_nonexistent.h>
 5140 _ACEOF
 5141 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
 5142   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
 5143   ac_status=$?
 5144   grep -v '^ *+' conftest.er1 >conftest.err
 5145   rm -f conftest.er1
 5146   cat conftest.err >&5
 5147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5148   (exit $ac_status); } >/dev/null; then
 5149   if test -s conftest.err; then
 5150     ac_cpp_err=$ac_cxx_preproc_warn_flag
 5151     ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
 5152   else
 5153     ac_cpp_err=
 5154   fi
 5155 else
 5156   ac_cpp_err=yes
 5157 fi
 5158 if test -z "$ac_cpp_err"; then
 5159   # Broken: success on invalid input.
 5160 continue
 5161 else
 5162   echo "$as_me: failed program was:" >&5
 5163 sed 's/^/| /' conftest.$ac_ext >&5
 5164 
 5165   # Passes both tests.
 5166 ac_preproc_ok=:
 5167 break
 5168 fi
 5169 rm -f conftest.err conftest.$ac_ext
 5170 
 5171 done
 5172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
 5173 rm -f conftest.err conftest.$ac_ext
 5174 if $ac_preproc_ok; then
 5175   :
 5176 else
 5177   { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 5178 See \`config.log' for more details." >&5
 5179 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
 5180 See \`config.log' for more details." >&2;}
 5181    { (exit 1); exit 1; }; }
 5182 fi
 5183 
 5184 ac_ext=cc
 5185 ac_cpp='$CXXCPP $CPPFLAGS'
 5186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 5189 
 5190 
 5191 ac_ext=f
 5192 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
 5193 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5194 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
 5195 if test -n "$ac_tool_prefix"; then
 5196   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 5197   do
 5198     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
 5199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
 5200 echo "$as_me:$LINENO: checking for $ac_word" >&5
 5201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5202 if test "${ac_cv_prog_F77+set}" = set; then
 5203   echo $ECHO_N "(cached) $ECHO_C" >&6
 5204 else
 5205   if test -n "$F77"; then
 5206   ac_cv_prog_F77="$F77" # Let the user override the test.
 5207 else
 5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5209 for as_dir in $PATH
 5210 do
 5211   IFS=$as_save_IFS
 5212   test -z "$as_dir" && as_dir=.
 5213   for ac_exec_ext in '' $ac_executable_extensions; do
 5214   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5215     ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
 5216     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 5217     break 2
 5218   fi
 5219 done
 5220 done
 5221 
 5222 fi
 5223 fi
 5224 F77=$ac_cv_prog_F77
 5225 if test -n "$F77"; then
 5226   echo "$as_me:$LINENO: result: $F77" >&5
 5227 echo "${ECHO_T}$F77" >&6
 5228 else
 5229   echo "$as_me:$LINENO: result: no" >&5
 5230 echo "${ECHO_T}no" >&6
 5231 fi
 5232 
 5233     test -n "$F77" && break
 5234   done
 5235 fi
 5236 if test -z "$F77"; then
 5237   ac_ct_F77=$F77
 5238   for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
 5239 do
 5240   # Extract the first word of "$ac_prog", so it can be a program name with args.
 5241 set dummy $ac_prog; ac_word=$2
 5242 echo "$as_me:$LINENO: checking for $ac_word" >&5
 5243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5244 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
 5245   echo $ECHO_N "(cached) $ECHO_C" >&6
 5246 else
 5247   if test -n "$ac_ct_F77"; then
 5248   ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
 5249 else
 5250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5251 for as_dir in $PATH
 5252 do
 5253   IFS=$as_save_IFS
 5254   test -z "$as_dir" && as_dir=.
 5255   for ac_exec_ext in '' $ac_executable_extensions; do
 5256   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5257     ac_cv_prog_ac_ct_F77="$ac_prog"
 5258     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 5259     break 2
 5260   fi
 5261 done
 5262 done
 5263 
 5264 fi
 5265 fi
 5266 ac_ct_F77=$ac_cv_prog_ac_ct_F77
 5267 if test -n "$ac_ct_F77"; then
 5268   echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
 5269 echo "${ECHO_T}$ac_ct_F77" >&6
 5270 else
 5271   echo "$as_me:$LINENO: result: no" >&5
 5272 echo "${ECHO_T}no" >&6
 5273 fi
 5274 
 5275   test -n "$ac_ct_F77" && break
 5276 done
 5277 
 5278   F77=$ac_ct_F77
 5279 fi
 5280 
 5281 
 5282 # Provide some information about the compiler.
 5283 echo "$as_me:__oline__:" \
 5284      "checking for Fortran 77 compiler version" >&5
 5285 ac_compiler=`set X $ac_compile; echo $2`
 5286 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
 5287   (eval $ac_compiler --version </dev/null >&5) 2>&5
 5288   ac_status=$?
 5289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5290   (exit $ac_status); }
 5291 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
 5292   (eval $ac_compiler -v </dev/null >&5) 2>&5
 5293   ac_status=$?
 5294   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5295   (exit $ac_status); }
 5296 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
 5297   (eval $ac_compiler -V </dev/null >&5) 2>&5
 5298   ac_status=$?
 5299   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5300   (exit $ac_status); }
 5301 rm -f a.out
 5302 
 5303 # If we don't use `.F' as extension, the preprocessor is not run on the
 5304 # input file.  (Note that this only needs to work for GNU compilers.)
 5305 ac_save_ext=$ac_ext
 5306 ac_ext=F
 5307 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
 5308 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
 5309 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
 5310   echo $ECHO_N "(cached) $ECHO_C" >&6
 5311 else
 5312   cat >conftest.$ac_ext <<_ACEOF
 5313       program main
 5314 #ifndef __GNUC__
 5315        choke me
 5316 #endif
 5317 
 5318       end
 5319 _ACEOF
 5320 rm -f conftest.$ac_objext
 5321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 5322   (eval $ac_compile) 2>conftest.er1
 5323   ac_status=$?
 5324   grep -v '^ *+' conftest.er1 >conftest.err
 5325   rm -f conftest.er1
 5326   cat conftest.err >&5
 5327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5328   (exit $ac_status); } &&
 5329 	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
 5330   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 5331   (eval $ac_try) 2>&5
 5332   ac_status=$?
 5333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5334   (exit $ac_status); }; } &&
 5335 	 { ac_try='test -s conftest.$ac_objext'
 5336   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 5337   (eval $ac_try) 2>&5
 5338   ac_status=$?
 5339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5340   (exit $ac_status); }; }; then
 5341   ac_compiler_gnu=yes
 5342 else
 5343   echo "$as_me: failed program was:" >&5
 5344 sed 's/^/| /' conftest.$ac_ext >&5
 5345 
 5346 ac_compiler_gnu=no
 5347 fi
 5348 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 5349 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
 5350 
 5351 fi
 5352 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
 5353 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
 5354 ac_ext=$ac_save_ext
 5355 ac_test_FFLAGS=${FFLAGS+set}
 5356 ac_save_FFLAGS=$FFLAGS
 5357 FFLAGS=
 5358 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
 5359 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
 5360 if test "${ac_cv_prog_f77_g+set}" = set; then
 5361   echo $ECHO_N "(cached) $ECHO_C" >&6
 5362 else
 5363   FFLAGS=-g
 5364 cat >conftest.$ac_ext <<_ACEOF
 5365       program main
 5366 
 5367       end
 5368 _ACEOF
 5369 rm -f conftest.$ac_objext
 5370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 5371   (eval $ac_compile) 2>conftest.er1
 5372   ac_status=$?
 5373   grep -v '^ *+' conftest.er1 >conftest.err
 5374   rm -f conftest.er1
 5375   cat conftest.err >&5
 5376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5377   (exit $ac_status); } &&
 5378 	 { ac_try='test -z "$ac_f77_werror_flag"			 || test ! -s conftest.err'
 5379   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 5380   (eval $ac_try) 2>&5
 5381   ac_status=$?
 5382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5383   (exit $ac_status); }; } &&
 5384 	 { ac_try='test -s conftest.$ac_objext'
 5385   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 5386   (eval $ac_try) 2>&5
 5387   ac_status=$?
 5388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5389   (exit $ac_status); }; }; then
 5390   ac_cv_prog_f77_g=yes
 5391 else
 5392   echo "$as_me: failed program was:" >&5
 5393 sed 's/^/| /' conftest.$ac_ext >&5
 5394 
 5395 ac_cv_prog_f77_g=no
 5396 fi
 5397 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
 5398 
 5399 fi
 5400 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
 5401 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
 5402 if test "$ac_test_FFLAGS" = set; then
 5403   FFLAGS=$ac_save_FFLAGS
 5404 elif test $ac_cv_prog_f77_g = yes; then
 5405   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 5406     FFLAGS="-g -O2"
 5407   else
 5408     FFLAGS="-g"
 5409   fi
 5410 else
 5411   if test "x$ac_cv_f77_compiler_gnu" = xyes; then
 5412     FFLAGS="-O2"
 5413   else
 5414     FFLAGS=
 5415   fi
 5416 fi
 5417 
 5418 G77=`test $ac_compiler_gnu = yes && echo yes`
 5419 ac_ext=c
 5420 ac_cpp='$CPP $CPPFLAGS'
 5421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 5422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 5423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 5424 
 5425 
 5426 
 5427 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
 5428 
 5429 # find the maximum length of command line arguments
 5430 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
 5431 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
 5432 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
 5433   echo $ECHO_N "(cached) $ECHO_C" >&6
 5434 else
 5435     i=0
 5436   teststring="ABCD"
 5437 
 5438   case $build_os in
 5439   msdosdjgpp*)
 5440     # On DJGPP, this test can blow up pretty badly due to problems in libc
 5441     # (any single argument exceeding 2000 bytes causes a buffer overrun
 5442     # during glob expansion).  Even if it were fixed, the result of this
 5443     # check would be larger than it should be.
 5444     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
 5445     ;;
 5446 
 5447   gnu*)
 5448     # Under GNU Hurd, this test is not required because there is
 5449     # no limit to the length of command line arguments.
 5450     # Libtool will interpret -1 as no limit whatsoever
 5451     lt_cv_sys_max_cmd_len=-1;
 5452     ;;
 5453 
 5454   cygwin* | mingw*)
 5455     # On Win9x/ME, this test blows up -- it succeeds, but takes
 5456     # about 5 minutes as the teststring grows exponentially.
 5457     # Worse, since 9x/ME are not pre-emptively multitasking,
 5458     # you end up with a "frozen" computer, even though with patience
 5459     # the test eventually succeeds (with a max line length of 256k).
 5460     # Instead, let's just punt: use the minimum linelength reported by
 5461     # all of the supported platforms: 8192 (on NT/2K/XP).
 5462     lt_cv_sys_max_cmd_len=8192;
 5463     ;;
 5464 
 5465   amigaos*)
 5466     # On AmigaOS with pdksh, this test takes hours, literally.
 5467     # So we just punt and use a minimum line length of 8192.
 5468     lt_cv_sys_max_cmd_len=8192;
 5469     ;;
 5470 
 5471  *)
 5472     # If test is not a shell built-in, we'll probably end up computing a
 5473     # maximum length that is only half of the actual maximum length, but
 5474     # we can't tell.
 5475     while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
 5476 	       = "XX$teststring") >/dev/null 2>&1 &&
 5477 	    new_result=`expr "X$teststring" : ".*" 2>&1` &&
 5478 	    lt_cv_sys_max_cmd_len=$new_result &&
 5479 	    test $i != 17 # 1/2 MB should be enough
 5480     do
 5481       i=`expr $i + 1`
 5482       teststring=$teststring$teststring
 5483     done
 5484     teststring=
 5485     # Add a significant safety factor because C++ compilers can tack on massive
 5486     # amounts of additional arguments before passing them to the linker.
 5487     # It appears as though 1/2 is a usable value.
 5488     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
 5489     ;;
 5490   esac
 5491 
 5492 fi
 5493 
 5494 if test -n $lt_cv_sys_max_cmd_len ; then
 5495   echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
 5496 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
 5497 else
 5498   echo "$as_me:$LINENO: result: none" >&5
 5499 echo "${ECHO_T}none" >&6
 5500 fi
 5501 
 5502 
 5503 
 5504 
 5505 # Check for command to grab the raw symbol name followed by C symbol from nm.
 5506 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
 5507 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
 5508 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
 5509   echo $ECHO_N "(cached) $ECHO_C" >&6
 5510 else
 5511   
 5512 # These are sane defaults that work on at least a few old systems.
 5513 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 5514 
 5515 # Character class describing NM global symbol codes.
 5516 symcode='[BCDEGRST]'
 5517 
 5518 # Regexp to match symbols that can be accessed directly from C.
 5519 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 5520 
 5521 # Transform the above into a raw symbol and a C symbol.
 5522 symxfrm='\1 \2\3 \3'
 5523 
 5524 # Transform an extracted symbol line into a proper C declaration
 5525 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
 5526 
 5527 # Transform an extracted symbol line into symbol name and symbol address
 5528 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'"
 5529 
 5530 # Define system-specific variables.
 5531 case $host_os in
 5532 aix*)
 5533   symcode='[BCDT]'
 5534   ;;
 5535 cygwin* | mingw* | pw32*)
 5536   symcode='[ABCDGISTW]'
 5537   ;;
 5538 hpux*) # Its linker distinguishes data from code symbols
 5539   if test "$host_cpu" = ia64; then
 5540     symcode='[ABCDEGRST]'
 5541   fi
 5542   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 5543   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'"
 5544   ;;
 5545 irix* | nonstopux*)
 5546   symcode='[BCDEGRST]'
 5547   ;;
 5548 osf*)
 5549   symcode='[BCDEGQRST]'
 5550   ;;
 5551 solaris* | sysv5*)
 5552   symcode='[BDRT]'
 5553   ;;
 5554 sysv4)
 5555   symcode='[DFNSTU]'
 5556   ;;
 5557 esac
 5558 
 5559 # Handle CRLF in mingw tool chain
 5560 opt_cr=
 5561 case $build_os in
 5562 mingw*)
 5563   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 5564   ;;
 5565 esac
 5566 
 5567 # If we're using GNU nm, then use its standard symbol codes.
 5568 case `$NM -V 2>&1` in
 5569 *GNU* | *'with BFD'*)
 5570   symcode='[ABCDGIRSTW]' ;;
 5571 esac
 5572 
 5573 # Try without a prefix undercore, then with it.
 5574 for ac_symprfx in "" "_"; do
 5575 
 5576   # Write the raw and C identifiers.
 5577   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ 	]\($symcode$symcode*\)[ 	][ 	]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 5578 
 5579   # Check to see that the pipe works correctly.
 5580   pipe_works=no
 5581 
 5582   rm -f conftest*
 5583   cat > conftest.$ac_ext <<EOF
 5584 #ifdef __cplusplus
 5585 extern "C" {
 5586 #endif
 5587 char nm_test_var;
 5588 void nm_test_func(){}
 5589 #ifdef __cplusplus
 5590 }
 5591 #endif
 5592 int main(){nm_test_var='a';nm_test_func();return(0);}
 5593 EOF
 5594 
 5595   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 5596   (eval $ac_compile) 2>&5
 5597   ac_status=$?
 5598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5599   (exit $ac_status); }; then
 5600     # Now try to grab the symbols.
 5601     nlist=conftest.nm
 5602     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
 5603   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
 5604   ac_status=$?
 5605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5606   (exit $ac_status); } && test -s "$nlist"; then
 5607       # Try sorting and uniquifying the output.
 5608       if sort "$nlist" | uniq > "$nlist"T; then
 5609 	mv -f "$nlist"T "$nlist"
 5610       else
 5611 	rm -f "$nlist"T
 5612       fi
 5613 
 5614       # Make sure that we snagged all the symbols we need.
 5615       if grep ' nm_test_var$' "$nlist" >/dev/null; then
 5616 	if grep ' nm_test_func$' "$nlist" >/dev/null; then
 5617 	  cat <<EOF > conftest.$ac_ext
 5618 #ifdef __cplusplus
 5619 extern "C" {
 5620 #endif
 5621 
 5622 EOF
 5623 	  # Now generate the symbol file.
 5624 	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
 5625 
 5626 	  cat <<EOF >> conftest.$ac_ext
 5627 #if defined (__STDC__) && __STDC__
 5628 # define lt_ptr_t void *
 5629 #else
 5630 # define lt_ptr_t char *
 5631 # define const
 5632 #endif
 5633 
 5634 /* The mapping between symbol names and symbols. */
 5635 const struct {
 5636   const char *name;
 5637   lt_ptr_t address;
 5638 }
 5639 lt_preloaded_symbols[] =
 5640 {
 5641 EOF
 5642 	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
 5643 	  cat <<\EOF >> conftest.$ac_ext
 5644   {0, (lt_ptr_t) 0}
 5645 };
 5646 
 5647 #ifdef __cplusplus
 5648 }
 5649 #endif
 5650 EOF
 5651 	  # Now try linking the two files.
 5652 	  mv conftest.$ac_objext conftstm.$ac_objext
 5653 	  lt_save_LIBS="$LIBS"
 5654 	  lt_save_CFLAGS="$CFLAGS"
 5655 	  LIBS="conftstm.$ac_objext"
 5656 	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
 5657 	  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 5658   (eval $ac_link) 2>&5
 5659   ac_status=$?
 5660   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 5661   (exit $ac_status); } && test -s conftest${ac_exeext}; then
 5662 	    pipe_works=yes
 5663 	  fi
 5664 	  LIBS="$lt_save_LIBS"
 5665 	  CFLAGS="$lt_save_CFLAGS"
 5666 	else
 5667 	  echo "cannot find nm_test_func in $nlist" >&5
 5668 	fi
 5669       else
 5670 	echo "cannot find nm_test_var in $nlist" >&5
 5671       fi
 5672     else
 5673       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 5674     fi
 5675   else
 5676     echo "$progname: failed program was:" >&5
 5677     cat conftest.$ac_ext >&5
 5678   fi
 5679   rm -f conftest* conftst*
 5680 
 5681   # Do not use the global_symbol_pipe unless it works.
 5682   if test "$pipe_works" = yes; then
 5683     break
 5684   else
 5685     lt_cv_sys_global_symbol_pipe=
 5686   fi
 5687 done
 5688 
 5689 fi
 5690 
 5691 if test -z "$lt_cv_sys_global_symbol_pipe"; then
 5692   lt_cv_sys_global_symbol_to_cdecl=
 5693 fi
 5694 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
 5695   echo "$as_me:$LINENO: result: failed" >&5
 5696 echo "${ECHO_T}failed" >&6
 5697 else
 5698   echo "$as_me:$LINENO: result: ok" >&5
 5699 echo "${ECHO_T}ok" >&6
 5700 fi
 5701 
 5702 echo "$as_me:$LINENO: checking for objdir" >&5
 5703 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
 5704 if test "${lt_cv_objdir+set}" = set; then
 5705   echo $ECHO_N "(cached) $ECHO_C" >&6
 5706 else
 5707   rm -f .libs 2>/dev/null
 5708 mkdir .libs 2>/dev/null
 5709 if test -d .libs; then
 5710   lt_cv_objdir=.libs
 5711 else
 5712   # MS-DOS does not allow filenames that begin with a dot.
 5713   lt_cv_objdir=_libs
 5714 fi
 5715 rmdir .libs 2>/dev/null
 5716 fi
 5717 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
 5718 echo "${ECHO_T}$lt_cv_objdir" >&6
 5719 objdir=$lt_cv_objdir
 5720 
 5721 
 5722 
 5723 
 5724 
 5725 case $host_os in
 5726 aix3*)
 5727   # AIX sometimes has problems with the GCC collect2 program.  For some
 5728   # reason, if we set the COLLECT_NAMES environment variable, the problems
 5729   # vanish in a puff of smoke.
 5730   if test "X${COLLECT_NAMES+set}" != Xset; then
 5731     COLLECT_NAMES=
 5732     export COLLECT_NAMES
 5733   fi
 5734   ;;
 5735 esac
 5736 
 5737 # Sed substitution that helps us do robust quoting.  It backslashifies
 5738 # metacharacters that are still active within double-quoted strings.
 5739 Xsed='sed -e s/^X//'
 5740 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 5741 
 5742 # Same as above, but do not quote variable references.
 5743 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 5744 
 5745 # Sed substitution to delay expansion of an escaped shell variable in a
 5746 # double_quote_subst'ed string.
 5747 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 5748 
 5749 # Sed substitution to avoid accidental globbing in evaled expressions
 5750 no_glob_subst='s/\*/\\\*/g'
 5751 
 5752 # Constants:
 5753 rm="rm -f"
 5754 
 5755 # Global variables:
 5756 default_ofile=libtool
 5757 can_build_shared=yes
 5758 
 5759 # All known linkers require a `.a' archive for static linking (except M$VC,
 5760 # which needs '.lib').
 5761 libext=a
 5762 ltmain="$ac_aux_dir/ltmain.sh"
 5763 ofile="$default_ofile"
 5764 with_gnu_ld="$lt_cv_prog_gnu_ld"
 5765 
 5766 if test -n "$ac_tool_prefix"; then
 5767   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
 5768 set dummy ${ac_tool_prefix}ar; ac_word=$2
 5769 echo "$as_me:$LINENO: checking for $ac_word" >&5
 5770 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5771 if test "${ac_cv_prog_AR+set}" = set; then
 5772   echo $ECHO_N "(cached) $ECHO_C" >&6
 5773 else
 5774   if test -n "$AR"; then
 5775   ac_cv_prog_AR="$AR" # Let the user override the test.
 5776 else
 5777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5778 for as_dir in $PATH
 5779 do
 5780   IFS=$as_save_IFS
 5781   test -z "$as_dir" && as_dir=.
 5782   for ac_exec_ext in '' $ac_executable_extensions; do
 5783   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5784     ac_cv_prog_AR="${ac_tool_prefix}ar"
 5785     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 5786     break 2
 5787   fi
 5788 done
 5789 done
 5790 
 5791 fi
 5792 fi
 5793 AR=$ac_cv_prog_AR
 5794 if test -n "$AR"; then
 5795   echo "$as_me:$LINENO: result: $AR" >&5
 5796 echo "${ECHO_T}$AR" >&6
 5797 else
 5798   echo "$as_me:$LINENO: result: no" >&5
 5799 echo "${ECHO_T}no" >&6
 5800 fi
 5801 
 5802 fi
 5803 if test -z "$ac_cv_prog_AR"; then
 5804   ac_ct_AR=$AR
 5805   # Extract the first word of "ar", so it can be a program name with args.
 5806 set dummy ar; ac_word=$2
 5807 echo "$as_me:$LINENO: checking for $ac_word" >&5
 5808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5809 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
 5810   echo $ECHO_N "(cached) $ECHO_C" >&6
 5811 else
 5812   if test -n "$ac_ct_AR"; then
 5813   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
 5814 else
 5815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5816 for as_dir in $PATH
 5817 do
 5818   IFS=$as_save_IFS
 5819   test -z "$as_dir" && as_dir=.
 5820   for ac_exec_ext in '' $ac_executable_extensions; do
 5821   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5822     ac_cv_prog_ac_ct_AR="ar"
 5823     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 5824     break 2
 5825   fi
 5826 done
 5827 done
 5828 
 5829   test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
 5830 fi
 5831 fi
 5832 ac_ct_AR=$ac_cv_prog_ac_ct_AR
 5833 if test -n "$ac_ct_AR"; then
 5834   echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
 5835 echo "${ECHO_T}$ac_ct_AR" >&6
 5836 else
 5837   echo "$as_me:$LINENO: result: no" >&5
 5838 echo "${ECHO_T}no" >&6
 5839 fi
 5840 
 5841   AR=$ac_ct_AR
 5842 else
 5843   AR="$ac_cv_prog_AR"
 5844 fi
 5845 
 5846 if test -n "$ac_tool_prefix"; then
 5847   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 5848 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 5849 echo "$as_me:$LINENO: checking for $ac_word" >&5
 5850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5851 if test "${ac_cv_prog_RANLIB+set}" = set; then
 5852   echo $ECHO_N "(cached) $ECHO_C" >&6
 5853 else
 5854   if test -n "$RANLIB"; then
 5855   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 5856 else
 5857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5858 for as_dir in $PATH
 5859 do
 5860   IFS=$as_save_IFS
 5861   test -z "$as_dir" && as_dir=.
 5862   for ac_exec_ext in '' $ac_executable_extensions; do
 5863   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5864     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 5865     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 5866     break 2
 5867   fi
 5868 done
 5869 done
 5870 
 5871 fi
 5872 fi
 5873 RANLIB=$ac_cv_prog_RANLIB
 5874 if test -n "$RANLIB"; then
 5875   echo "$as_me:$LINENO: result: $RANLIB" >&5
 5876 echo "${ECHO_T}$RANLIB" >&6
 5877 else
 5878   echo "$as_me:$LINENO: result: no" >&5
 5879 echo "${ECHO_T}no" >&6
 5880 fi
 5881 
 5882 fi
 5883 if test -z "$ac_cv_prog_RANLIB"; then
 5884   ac_ct_RANLIB=$RANLIB
 5885   # Extract the first word of "ranlib", so it can be a program name with args.
 5886 set dummy ranlib; ac_word=$2
 5887 echo "$as_me:$LINENO: checking for $ac_word" >&5
 5888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5889 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
 5890   echo $ECHO_N "(cached) $ECHO_C" >&6
 5891 else
 5892   if test -n "$ac_ct_RANLIB"; then
 5893   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
 5894 else
 5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5896 for as_dir in $PATH
 5897 do
 5898   IFS=$as_save_IFS
 5899   test -z "$as_dir" && as_dir=.
 5900   for ac_exec_ext in '' $ac_executable_extensions; do
 5901   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5902     ac_cv_prog_ac_ct_RANLIB="ranlib"
 5903     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 5904     break 2
 5905   fi
 5906 done
 5907 done
 5908 
 5909   test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
 5910 fi
 5911 fi
 5912 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
 5913 if test -n "$ac_ct_RANLIB"; then
 5914   echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
 5915 echo "${ECHO_T}$ac_ct_RANLIB" >&6
 5916 else
 5917   echo "$as_me:$LINENO: result: no" >&5
 5918 echo "${ECHO_T}no" >&6
 5919 fi
 5920 
 5921   RANLIB=$ac_ct_RANLIB
 5922 else
 5923   RANLIB="$ac_cv_prog_RANLIB"
 5924 fi
 5925 
 5926 if test -n "$ac_tool_prefix"; then
 5927   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 5928 set dummy ${ac_tool_prefix}strip; ac_word=$2
 5929 echo "$as_me:$LINENO: checking for $ac_word" >&5
 5930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5931 if test "${ac_cv_prog_STRIP+set}" = set; then
 5932   echo $ECHO_N "(cached) $ECHO_C" >&6
 5933 else
 5934   if test -n "$STRIP"; then
 5935   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 5936 else
 5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5938 for as_dir in $PATH
 5939 do
 5940   IFS=$as_save_IFS
 5941   test -z "$as_dir" && as_dir=.
 5942   for ac_exec_ext in '' $ac_executable_extensions; do
 5943   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5944     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 5945     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 5946     break 2
 5947   fi
 5948 done
 5949 done
 5950 
 5951 fi
 5952 fi
 5953 STRIP=$ac_cv_prog_STRIP
 5954 if test -n "$STRIP"; then
 5955   echo "$as_me:$LINENO: result: $STRIP" >&5
 5956 echo "${ECHO_T}$STRIP" >&6
 5957 else
 5958   echo "$as_me:$LINENO: result: no" >&5
 5959 echo "${ECHO_T}no" >&6
 5960 fi
 5961 
 5962 fi
 5963 if test -z "$ac_cv_prog_STRIP"; then
 5964   ac_ct_STRIP=$STRIP
 5965   # Extract the first word of "strip", so it can be a program name with args.
 5966 set dummy strip; ac_word=$2
 5967 echo "$as_me:$LINENO: checking for $ac_word" >&5
 5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
 5969 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
 5970   echo $ECHO_N "(cached) $ECHO_C" >&6
 5971 else
 5972   if test -n "$ac_ct_STRIP"; then
 5973   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
 5974 else
 5975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 5976 for as_dir in $PATH
 5977 do
 5978   IFS=$as_save_IFS
 5979   test -z "$as_dir" && as_dir=.
 5980   for ac_exec_ext in '' $ac_executable_extensions; do
 5981   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
 5982     ac_cv_prog_ac_ct_STRIP="strip"
 5983     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
 5984     break 2
 5985   fi
 5986 done
 5987 done
 5988 
 5989   test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
 5990 fi
 5991 fi
 5992 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
 5993 if test -n "$ac_ct_STRIP"; then
 5994   echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
 5995 echo "${ECHO_T}$ac_ct_STRIP" >&6
 5996 else
 5997   echo "$as_me:$LINENO: result: no" >&5
 5998 echo "${ECHO_T}no" >&6
 5999 fi
 6000 
 6001   STRIP=$ac_ct_STRIP
 6002 else
 6003   STRIP="$ac_cv_prog_STRIP"
 6004 fi
 6005 
 6006 
 6007 old_CC="$CC"
 6008 old_CFLAGS="$CFLAGS"
 6009 
 6010 # Set sane defaults for various variables
 6011 test -z "$AR" && AR=ar
 6012 test -z "$AR_FLAGS" && AR_FLAGS=cru
 6013 test -z "$AS" && AS=as
 6014 test -z "$CC" && CC=cc
 6015 test -z "$LTCC" && LTCC=$CC
 6016 test -z "$DLLTOOL" && DLLTOOL=dlltool
 6017 test -z "$LD" && LD=ld
 6018 test -z "$LN_S" && LN_S="ln -s"
 6019 test -z "$MAGIC_CMD" && MAGIC_CMD=file
 6020 test -z "$NM" && NM=nm
 6021 test -z "$SED" && SED=sed
 6022 test -z "$OBJDUMP" && OBJDUMP=objdump
 6023 test -z "$RANLIB" && RANLIB=:
 6024 test -z "$STRIP" && STRIP=:
 6025 test -z "$ac_objext" && ac_objext=o
 6026 
 6027 # Determine commands to create old-style static archives.
 6028 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 6029 old_postinstall_cmds='chmod 644 $oldlib'
 6030 old_postuninstall_cmds=
 6031 
 6032 if test -n "$RANLIB"; then
 6033   case $host_os in
 6034   openbsd*)
 6035     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 6036     ;;
 6037   *)
 6038     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 6039     ;;
 6040   esac
 6041   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 6042 fi
 6043 
 6044 # Only perform the check for file, if the check method requires it
 6045 case $deplibs_check_method in
 6046 file_magic*)
 6047   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 6048     echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
 6049 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
 6050 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 6051   echo $ECHO_N "(cached) $ECHO_C" >&6
 6052 else
 6053   case $MAGIC_CMD in
 6054 [\\/*] |  ?:[\\/]*)
 6055   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 6056   ;;
 6057 *)
 6058   lt_save_MAGIC_CMD="$MAGIC_CMD"
 6059   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 6060   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 6061   for ac_dir in $ac_dummy; do
 6062     IFS="$lt_save_ifs"
 6063     test -z "$ac_dir" && ac_dir=.
 6064     if test -f $ac_dir/${ac_tool_prefix}file; then
 6065       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 6066       if test -n "$file_magic_test_file"; then
 6067 	case $deplibs_check_method in
 6068 	"file_magic "*)
 6069 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 6070 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 6071 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 6072 	    $EGREP "$file_magic_regex" > /dev/null; then
 6073 	    :
 6074 	  else
 6075 	    cat <<EOF 1>&2
 6076 
 6077 *** Warning: the command libtool uses to detect shared libraries,
 6078 *** $file_magic_cmd, produces output that libtool cannot recognize.
 6079 *** The result is that libtool may fail to recognize shared libraries
 6080 *** as such.  This will affect the creation of libtool libraries that
 6081 *** depend on shared libraries, but programs linked with such libtool
 6082 *** libraries will work regardless of this problem.  Nevertheless, you
 6083 *** may want to report the problem to your system manager and/or to
 6084 *** bug-libtool@gnu.org
 6085 
 6086 EOF
 6087 	  fi ;;
 6088 	esac
 6089       fi
 6090       break
 6091     fi
 6092   done
 6093   IFS="$lt_save_ifs"
 6094   MAGIC_CMD="$lt_save_MAGIC_CMD"
 6095   ;;
 6096 esac
 6097 fi
 6098 
 6099 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 6100 if test -n "$MAGIC_CMD"; then
 6101   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 6102 echo "${ECHO_T}$MAGIC_CMD" >&6
 6103 else
 6104   echo "$as_me:$LINENO: result: no" >&5
 6105 echo "${ECHO_T}no" >&6
 6106 fi
 6107 
 6108 if test -z "$lt_cv_path_MAGIC_CMD"; then
 6109   if test -n "$ac_tool_prefix"; then
 6110     echo "$as_me:$LINENO: checking for file" >&5
 6111 echo $ECHO_N "checking for file... $ECHO_C" >&6
 6112 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
 6113   echo $ECHO_N "(cached) $ECHO_C" >&6
 6114 else
 6115   case $MAGIC_CMD in
 6116 [\\/*] |  ?:[\\/]*)
 6117   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 6118   ;;
 6119 *)
 6120   lt_save_MAGIC_CMD="$MAGIC_CMD"
 6121   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 6122   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
 6123   for ac_dir in $ac_dummy; do
 6124     IFS="$lt_save_ifs"
 6125     test -z "$ac_dir" && ac_dir=.
 6126     if test -f $ac_dir/file; then
 6127       lt_cv_path_MAGIC_CMD="$ac_dir/file"
 6128       if test -n "$file_magic_test_file"; then
 6129 	case $deplibs_check_method in
 6130 	"file_magic "*)
 6131 	  file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 6132 	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 6133 	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 6134 	    $EGREP "$file_magic_regex" > /dev/null; then
 6135 	    :
 6136 	  else
 6137 	    cat <<EOF 1>&2
 6138 
 6139 *** Warning: the command libtool uses to detect shared libraries,
 6140 *** $file_magic_cmd, produces output that libtool cannot recognize.
 6141 *** The result is that libtool may fail to recognize shared libraries
 6142 *** as such.  This will affect the creation of libtool libraries that
 6143 *** depend on shared libraries, but programs linked with such libtool
 6144 *** libraries will work regardless of this problem.  Nevertheless, you
 6145 *** may want to report the problem to your system manager and/or to
 6146 *** bug-libtool@gnu.org
 6147 
 6148 EOF
 6149 	  fi ;;
 6150 	esac
 6151       fi
 6152       break
 6153     fi
 6154   done
 6155   IFS="$lt_save_ifs"
 6156   MAGIC_CMD="$lt_save_MAGIC_CMD"
 6157   ;;
 6158 esac
 6159 fi
 6160 
 6161 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 6162 if test -n "$MAGIC_CMD"; then
 6163   echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
 6164 echo "${ECHO_T}$MAGIC_CMD" >&6
 6165 else
 6166   echo "$as_me:$LINENO: result: no" >&5
 6167 echo "${ECHO_T}no" >&6
 6168 fi
 6169 
 6170   else
 6171     MAGIC_CMD=:
 6172   fi
 6173 fi
 6174 
 6175   fi
 6176   ;;
 6177 esac
 6178 
 6179 enable_dlopen=no
 6180 enable_win32_dll=no
 6181 
 6182 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 6183 if test "${enable_libtool_lock+set}" = set; then
 6184   enableval="$enable_libtool_lock"
 6185   
 6186 fi; 
 6187 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 6188 
 6189 
 6190 # Check whether --with-pic or --without-pic was given.
 6191 if test "${with_pic+set}" = set; then
 6192   withval="$with_pic"
 6193   pic_mode="$withval"
 6194 else
 6195   pic_mode=default
 6196 fi; 
 6197 test -z "$pic_mode" && pic_mode=default
 6198 
 6199 # Use C for the default configuration in the libtool script
 6200 tagname=
 6201 lt_save_CC="$CC"
 6202 ac_ext=c
 6203 ac_cpp='$CPP $CPPFLAGS'
 6204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 6205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 6206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 6207 
 6208 
 6209 # Source file extension for C test sources.
 6210 ac_ext=c
 6211 
 6212 # Object file extension for compiled C test sources.
 6213 objext=o
 6214 objext=$objext
 6215 
 6216 # Code to be used in simple compile tests
 6217 lt_simple_compile_test_code="int some_variable = 0;\n"
 6218 
 6219 # Code to be used in simple link tests
 6220 lt_simple_link_test_code='int main(){return(0);}\n'
 6221 
 6222 
 6223 # If no C compiler was specified, use CC.
 6224 LTCC=${LTCC-"$CC"}
 6225 
 6226 # Allow CC to be a program name with arguments.
 6227 compiler=$CC
 6228 
 6229 
 6230 #
 6231 # Check for any special shared library compilation flags.
 6232 #
 6233 lt_prog_cc_shlib=
 6234 if test "$GCC" = no; then
 6235   case $host_os in
 6236   sco3.2v5*)
 6237     lt_prog_cc_shlib='-belf'
 6238     ;;
 6239   esac
 6240 fi
 6241 if test -n "$lt_prog_cc_shlib"; then
 6242   { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
 6243 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
 6244   if echo "$old_CC $old_CFLAGS " | grep "[ 	]$lt_prog_cc_shlib[ 	]" >/dev/null; then :
 6245   else
 6246     { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
 6247 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
 6248     lt_cv_prog_cc_can_build_shared=no
 6249   fi
 6250 fi
 6251 
 6252 
 6253 #
 6254 # Check to make sure the static flag actually works.
 6255 #
 6256 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
 6257 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
 6258 if test "${lt_prog_compiler_static_works+set}" = set; then
 6259   echo $ECHO_N "(cached) $ECHO_C" >&6
 6260 else
 6261   lt_prog_compiler_static_works=no
 6262    save_LDFLAGS="$LDFLAGS"
 6263    LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
 6264    printf "$lt_simple_link_test_code" > conftest.$ac_ext
 6265    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
 6266      # The compiler can only warn and ignore the option if not recognized
 6267      # So say no if there are warnings
 6268      if test -s conftest.err; then
 6269        # Append any errors to the config.log.
 6270        cat conftest.err 1>&5
 6271      else
 6272        lt_prog_compiler_static_works=yes
 6273      fi
 6274    fi
 6275    $rm conftest*
 6276    LDFLAGS="$save_LDFLAGS"
 6277 
 6278 fi
 6279 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
 6280 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
 6281 
 6282 if test x"$lt_prog_compiler_static_works" = xyes; then
 6283     :
 6284 else
 6285     lt_prog_compiler_static=
 6286 fi
 6287 
 6288 
 6289 
 6290 
 6291 lt_prog_compiler_no_builtin_flag=
 6292 
 6293 if test "$GCC" = yes; then
 6294   lt_prog_compiler_no_builtin_flag=' -fno-builtin'
 6295 
 6296   
 6297 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 6298 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
 6299 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
 6300   echo $ECHO_N "(cached) $ECHO_C" >&6
 6301 else
 6302   lt_cv_prog_compiler_rtti_exceptions=no
 6303   ac_outfile=conftest.$ac_objext
 6304    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 6305    lt_compiler_flag="-fno-rtti -fno-exceptions"
 6306    # Insert the option either (1) after the last *FLAGS variable, or
 6307    # (2) before a word containing "conftest.", or (3) at the end.
 6308    # Note that $ac_compile itself does not contain backslashes and begins
 6309    # with a dollar sign (not a hyphen), so the echo should work correctly.
 6310    # The option is referenced via a variable to avoid confusing sed.
 6311    lt_compile=`echo "$ac_compile" | $SED \
 6312    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 6313    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 6314    -e 's:$: $lt_compiler_flag:'`
 6315    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 6316    (eval "$lt_compile" 2>conftest.err)
 6317    ac_status=$?
 6318    cat conftest.err >&5
 6319    echo "$as_me:__oline__: \$? = $ac_status" >&5
 6320    if (exit $ac_status) && test -s "$ac_outfile"; then
 6321      # The compiler can only warn and ignore the option if not recognized
 6322      # So say no if there are warnings
 6323      if test ! -s conftest.err; then
 6324        lt_cv_prog_compiler_rtti_exceptions=yes
 6325      fi
 6326    fi
 6327    $rm conftest*
 6328 
 6329 fi
 6330 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
 6331 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
 6332 
 6333 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
 6334     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
 6335 else
 6336     :
 6337 fi
 6338 
 6339 fi
 6340 
 6341 lt_prog_compiler_wl=
 6342 lt_prog_compiler_pic=
 6343 lt_prog_compiler_static=
 6344 
 6345 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
 6346 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
 6347  
 6348   if test "$GCC" = yes; then
 6349     lt_prog_compiler_wl='-Wl,'
 6350     lt_prog_compiler_static='-static'
 6351 
 6352     case $host_os in
 6353       aix*)
 6354       # All AIX code is PIC.
 6355       if test "$host_cpu" = ia64; then
 6356 	# AIX 5 now supports IA64 processor
 6357 	lt_prog_compiler_static='-Bstatic'
 6358       fi
 6359       ;;
 6360 
 6361     amigaos*)
 6362       # FIXME: we need at least 68020 code to build shared libraries, but
 6363       # adding the `-m68020' flag to GCC prevents building anything better,
 6364       # like `-m68040'.
 6365       lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
 6366       ;;
 6367 
 6368     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 6369       # PIC is the default for these OSes.
 6370       ;;
 6371 
 6372     mingw* | pw32* | os2*)
 6373       # This hack is so that the source file can tell whether it is being
 6374       # built for inclusion in a dll (and should export symbols for example).
 6375       lt_prog_compiler_pic='-DDLL_EXPORT'
 6376       ;;
 6377 
 6378     darwin* | rhapsody*)
 6379       # PIC is the default on this platform
 6380       # Common symbols not allowed in MH_DYLIB files
 6381       lt_prog_compiler_pic='-fno-common'
 6382       ;;
 6383 
 6384     msdosdjgpp*)
 6385       # Just because we use GCC doesn't mean we suddenly get shared libraries
 6386       # on systems that don't support them.
 6387       lt_prog_compiler_can_build_shared=no
 6388       enable_shared=no
 6389       ;;
 6390 
 6391     sysv4*MP*)
 6392       if test -d /usr/nec; then
 6393 	lt_prog_compiler_pic=-Kconform_pic
 6394       fi
 6395       ;;
 6396 
 6397     hpux*)
 6398       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 6399       # not for PA HP-UX.
 6400       case "$host_cpu" in
 6401       hppa*64*|ia64*)
 6402 	# +Z the default
 6403 	;;
 6404       *)
 6405 	lt_prog_compiler_pic='-fPIC'
 6406 	;;
 6407       esac
 6408       ;;
 6409 
 6410     *)
 6411       lt_prog_compiler_pic='-fPIC'
 6412       ;;
 6413     esac
 6414   else
 6415     # PORTME Check for flag to pass linker flags through the system compiler.
 6416     case $host_os in
 6417     aix*)
 6418       lt_prog_compiler_wl='-Wl,'
 6419       if test "$host_cpu" = ia64; then
 6420 	# AIX 5 now supports IA64 processor
 6421 	lt_prog_compiler_static='-Bstatic'
 6422       else
 6423 	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
 6424       fi
 6425       ;;
 6426 
 6427     mingw* | pw32* | os2*)
 6428       # This hack is so that the source file can tell whether it is being
 6429       # built for inclusion in a dll (and should export symbols for example).
 6430       lt_prog_compiler_pic='-DDLL_EXPORT'
 6431       ;;
 6432 
 6433     hpux9* | hpux10* | hpux11*)
 6434       lt_prog_compiler_wl='-Wl,'
 6435       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
 6436       # not for PA HP-UX.
 6437       case "$host_cpu" in
 6438       hppa*64*|ia64*)
 6439 	# +Z the default
 6440 	;;
 6441       *)
 6442 	lt_prog_compiler_pic='+Z'
 6443 	;;
 6444       esac
 6445       # Is there a better lt_prog_compiler_static that works with the bundled CC?
 6446       lt_prog_compiler_static='${wl}-a ${wl}archive'
 6447       ;;
 6448 
 6449     irix5* | irix6* | nonstopux*)
 6450       lt_prog_compiler_wl='-Wl,'
 6451       # PIC (with -KPIC) is the default.
 6452       lt_prog_compiler_static='-non_shared'
 6453       ;;
 6454 
 6455     newsos6)
 6456       lt_prog_compiler_pic='-KPIC'
 6457       lt_prog_compiler_static='-Bstatic'
 6458       ;;
 6459 
 6460     linux*)
 6461       case $CC in
 6462       icc* | ecc*)
 6463 	lt_prog_compiler_wl='-Wl,'
 6464 	lt_prog_compiler_pic='-KPIC'
 6465 	lt_prog_compiler_static='-static'
 6466         ;;
 6467       ccc*)
 6468         lt_prog_compiler_wl='-Wl,'
 6469         # All Alpha code is PIC.
 6470         lt_prog_compiler_static='-non_shared'
 6471         ;;
 6472       esac
 6473       ;;
 6474 
 6475     osf3* | osf4* | osf5*)
 6476       lt_prog_compiler_wl='-Wl,'
 6477       # All OSF/1 code is PIC.
 6478       lt_prog_compiler_static='-non_shared'
 6479       ;;
 6480 
 6481     sco3.2v5*)
 6482       lt_prog_compiler_pic='-Kpic'
 6483       lt_prog_compiler_static='-dn'
 6484       ;;
 6485 
 6486     solaris*)
 6487       lt_prog_compiler_wl='-Wl,'
 6488       lt_prog_compiler_pic='-KPIC'
 6489       lt_prog_compiler_static='-Bstatic'
 6490       ;;
 6491 
 6492     sunos4*)
 6493       lt_prog_compiler_wl='-Qoption ld '
 6494       lt_prog_compiler_pic='-PIC'
 6495       lt_prog_compiler_static='-Bstatic'
 6496       ;;
 6497 
 6498     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 6499       lt_prog_compiler_wl='-Wl,'
 6500       lt_prog_compiler_pic='-KPIC'
 6501       lt_prog_compiler_static='-Bstatic'
 6502       ;;
 6503 
 6504     sysv4*MP*)
 6505       if test -d /usr/nec ;then
 6506 	lt_prog_compiler_pic='-Kconform_pic'
 6507 	lt_prog_compiler_static='-Bstatic'
 6508       fi
 6509       ;;
 6510 
 6511     uts4*)
 6512       lt_prog_compiler_pic='-pic'
 6513       lt_prog_compiler_static='-Bstatic'
 6514       ;;
 6515 
 6516     *)
 6517       lt_prog_compiler_can_build_shared=no
 6518       ;;
 6519     esac
 6520   fi
 6521 
 6522 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
 6523 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
 6524 
 6525 #
 6526 # Check to make sure the PIC flag actually works.
 6527 #
 6528 if test -n "$lt_prog_compiler_pic"; then
 6529   
 6530 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
 6531 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
 6532 if test "${lt_prog_compiler_pic_works+set}" = set; then
 6533   echo $ECHO_N "(cached) $ECHO_C" >&6
 6534 else
 6535   lt_prog_compiler_pic_works=no
 6536   ac_outfile=conftest.$ac_objext
 6537    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 6538    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
 6539    # Insert the option either (1) after the last *FLAGS variable, or
 6540    # (2) before a word containing "conftest.", or (3) at the end.
 6541    # Note that $ac_compile itself does not contain backslashes and begins
 6542    # with a dollar sign (not a hyphen), so the echo should work correctly.
 6543    # The option is referenced via a variable to avoid confusing sed.
 6544    lt_compile=`echo "$ac_compile" | $SED \
 6545    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 6546    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 6547    -e 's:$: $lt_compiler_flag:'`
 6548    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 6549    (eval "$lt_compile" 2>conftest.err)
 6550    ac_status=$?
 6551    cat conftest.err >&5
 6552    echo "$as_me:__oline__: \$? = $ac_status" >&5
 6553    if (exit $ac_status) && test -s "$ac_outfile"; then
 6554      # The compiler can only warn and ignore the option if not recognized
 6555      # So say no if there are warnings
 6556      if test ! -s conftest.err; then
 6557        lt_prog_compiler_pic_works=yes
 6558      fi
 6559    fi
 6560    $rm conftest*
 6561 
 6562 fi
 6563 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
 6564 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
 6565 
 6566 if test x"$lt_prog_compiler_pic_works" = xyes; then
 6567     case $lt_prog_compiler_pic in
 6568      "" | " "*) ;;
 6569      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
 6570      esac
 6571 else
 6572     lt_prog_compiler_pic=
 6573      lt_prog_compiler_can_build_shared=no
 6574 fi
 6575 
 6576 fi
 6577 case "$host_os" in
 6578   # For platforms which do not support PIC, -DPIC is meaningless:
 6579   *djgpp*)
 6580     lt_prog_compiler_pic=
 6581     ;;
 6582   *)
 6583     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
 6584     ;;
 6585 esac
 6586 
 6587 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
 6588 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
 6589 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
 6590   echo $ECHO_N "(cached) $ECHO_C" >&6
 6591 else
 6592   lt_cv_prog_compiler_c_o=no
 6593    $rm -r conftest 2>/dev/null
 6594    mkdir conftest
 6595    cd conftest
 6596    mkdir out
 6597    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 6598 
 6599    lt_compiler_flag="-o out/conftest2.$ac_objext"
 6600    # Insert the option either (1) after the last *FLAGS variable, or
 6601    # (2) before a word containing "conftest.", or (3) at the end.
 6602    # Note that $ac_compile itself does not contain backslashes and begins
 6603    # with a dollar sign (not a hyphen), so the echo should work correctly.
 6604    lt_compile=`echo "$ac_compile" | $SED \
 6605    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
 6606    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
 6607    -e 's:$: $lt_compiler_flag:'`
 6608    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
 6609    (eval "$lt_compile" 2>out/conftest.err)
 6610    ac_status=$?
 6611    cat out/conftest.err >&5
 6612    echo "$as_me:__oline__: \$? = $ac_status" >&5
 6613    if (exit $ac_status) && test -s out/conftest2.$ac_objext
 6614    then
 6615      # The compiler can only warn and ignore the option if not recognized
 6616      # So say no if there are warnings
 6617      if test ! -s out/conftest.err; then
 6618        lt_cv_prog_compiler_c_o=yes
 6619      fi
 6620    fi
 6621    chmod u+w .
 6622    $rm conftest*
 6623    # SGI C++ compiler will create directory out/ii_files/ for
 6624    # template instantiation
 6625    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
 6626    $rm out/* && rmdir out
 6627    cd ..
 6628    rmdir conftest
 6629    $rm conftest*
 6630 
 6631 fi
 6632 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
 6633 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
 6634 
 6635 
 6636 hard_links="nottested"
 6637 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
 6638   # do not overwrite the value of need_locks provided by the user
 6639   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
 6640 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
 6641   hard_links=yes
 6642   $rm conftest*
 6643   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 6644   touch conftest.a
 6645   ln conftest.a conftest.b 2>&5 || hard_links=no
 6646   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 6647   echo "$as_me:$LINENO: result: $hard_links" >&5
 6648 echo "${ECHO_T}$hard_links" >&6
 6649   if test "$hard_links" = no; then
 6650     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
 6651 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
 6652     need_locks=warn
 6653   fi
 6654 else
 6655   need_locks=no
 6656 fi
 6657 
 6658 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 6659 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 6660 
 6661   runpath_var=
 6662   allow_undefined_flag=
 6663   enable_shared_with_static_runtimes=no
 6664   archive_cmds=
 6665   archive_expsym_cmds=
 6666   old_archive_From_new_cmds=
 6667   old_archive_from_expsyms_cmds=
 6668   export_dynamic_flag_spec=
 6669   whole_archive_flag_spec=
 6670   thread_safe_flag_spec=
 6671   hardcode_libdir_flag_spec=
 6672   hardcode_libdir_flag_spec_ld=
 6673   hardcode_libdir_separator=
 6674   hardcode_direct=no
 6675   hardcode_minus_L=no
 6676   hardcode_shlibpath_var=unsupported
 6677   link_all_deplibs=unknown
 6678   hardcode_automatic=no
 6679   module_cmds=
 6680   module_expsym_cmds=
 6681   always_export_symbols=no
 6682   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
 6683   # include_expsyms should be a list of space-separated symbols to be *always*
 6684   # included in the symbol list
 6685   include_expsyms=
 6686   # exclude_expsyms can be an extended regexp of symbols to exclude
 6687   # it will be wrapped by ` (' and `)$', so one must not match beginning or
 6688   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 6689   # as well as any symbol that contains `d'.
 6690   exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 6691   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 6692   # platforms (ab)use it in PIC code, but their linkers get confused if
 6693   # the symbol is explicitly referenced.  Since portable code cannot
 6694   # rely on this symbol name, it's probably fine to never include it in
 6695   # preloaded symbol tables.
 6696   extract_expsyms_cmds=
 6697 
 6698   case $host_os in
 6699   cygwin* | mingw* | pw32*)
 6700     # FIXME: the MSVC++ port hasn't been tested in a loooong time
 6701     # When not using gcc, we currently assume that we are using
 6702     # Microsoft Visual C++.
 6703     if test "$GCC" != yes; then
 6704       with_gnu_ld=no
 6705     fi
 6706     ;;
 6707   openbsd*)
 6708     with_gnu_ld=no
 6709     ;;
 6710   esac
 6711 
 6712   ld_shlibs=yes
 6713   if test "$with_gnu_ld" = yes; then
 6714     # If archive_cmds runs LD, not CC, wlarc should be empty
 6715     wlarc='${wl}'
 6716 
 6717     # See if GNU ld supports shared libraries.
 6718     case $host_os in
 6719     aix3* | aix4* | aix5*)
 6720       # On AIX/PPC, the GNU linker is very broken
 6721       if test "$host_cpu" != ia64; then
 6722 	ld_shlibs=no
 6723 	cat <<EOF 1>&2
 6724 
 6725 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
 6726 *** to be unable to reliably create shared libraries on AIX.
 6727 *** Therefore, libtool is disabling shared libraries support.  If you
 6728 *** really care for shared libraries, you may want to modify your PATH
 6729 *** so that a non-GNU linker is found, and then restart.
 6730 
 6731 EOF
 6732       fi
 6733       ;;
 6734 
 6735     amigaos*)
 6736       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)'
 6737       hardcode_libdir_flag_spec='-L$libdir'
 6738       hardcode_minus_L=yes
 6739 
 6740       # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 6741       # that the semantics of dynamic libraries on AmigaOS, at least up
 6742       # to version 4, is to share data among multiple programs linked
 6743       # with the same dynamic library.  Since this doesn't match the
 6744       # behavior of shared libraries on other platforms, we can't use
 6745       # them.
 6746       ld_shlibs=no
 6747       ;;
 6748 
 6749     beos*)
 6750       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 6751 	allow_undefined_flag=unsupported
 6752 	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 6753 	# support --undefined.  This deserves some investigation.  FIXME
 6754 	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 6755       else
 6756 	ld_shlibs=no
 6757       fi
 6758       ;;
 6759 
 6760     cygwin* | mingw* | pw32*)
 6761       # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
 6762       # as there is no search path for DLLs.
 6763       hardcode_libdir_flag_spec='-L$libdir'
 6764       allow_undefined_flag=unsupported
 6765       always_export_symbols=no
 6766       enable_shared_with_static_runtimes=yes
 6767       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
 6768 
 6769       if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
 6770         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
 6771 	# If the export-symbols file already is a .def file (1st line
 6772 	# is EXPORTS), use it as is; otherwise, prepend...
 6773 	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
 6774 	  cp $export_symbols $output_objdir/$soname.def;
 6775 	else
 6776 	  echo EXPORTS > $output_objdir/$soname.def;
 6777 	  cat $export_symbols >> $output_objdir/$soname.def;
 6778 	fi~
 6779 	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000  ${wl}--out-implib,$lib'
 6780       else
 6781 	ld_shlibs=no
 6782       fi
 6783       ;;
 6784 
 6785     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 6786       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 6787 	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 6788 	wlarc=
 6789       else
 6790 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 6791 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 6792       fi
 6793       ;;
 6794 
 6795     solaris* | sysv5*)
 6796       if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
 6797 	ld_shlibs=no
 6798 	cat <<EOF 1>&2
 6799 
 6800 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
 6801 *** create shared libraries on Solaris systems.  Therefore, libtool
 6802 *** is disabling shared libraries support.  We urge you to upgrade GNU
 6803 *** binutils to release 2.9.1 or newer.  Another option is to modify
 6804 *** your PATH or compiler configuration so that the native linker is
 6805 *** used, and then restart.
 6806 
 6807 EOF
 6808       elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 6809 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 6810 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 6811       else
 6812 	ld_shlibs=no
 6813       fi
 6814       ;;
 6815 
 6816     sunos4*)
 6817       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 6818       wlarc=
 6819       hardcode_direct=yes
 6820       hardcode_shlibpath_var=no
 6821       ;;
 6822 
 6823   linux*)
 6824     if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 6825         tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 6826 	archive_cmds="$tmp_archive_cmds"
 6827       supports_anon_versioning=no
 6828       case `$LD -v 2>/dev/null` in
 6829         *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
 6830         *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
 6831         *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
 6832         *\ 2.11.*) ;; # other 2.11 versions
 6833         *) supports_anon_versioning=yes ;;
 6834       esac
 6835       if test $supports_anon_versioning = yes; then
 6836         archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
 6837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
 6838 $echo "local: *; };" >> $output_objdir/$libname.ver~
 6839         $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
 6840       else
 6841         archive_expsym_cmds="$tmp_archive_cmds"
 6842       fi
 6843       link_all_deplibs=no
 6844     else
 6845       ld_shlibs=no
 6846     fi
 6847     ;;
 6848 
 6849     *)
 6850       if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
 6851 	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 6852 	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 6853       else
 6854 	ld_shlibs=no
 6855       fi
 6856       ;;
 6857     esac
 6858 
 6859     if test "$ld_shlibs" = yes; then
 6860       runpath_var=LD_RUN_PATH
 6861       hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 6862       export_dynamic_flag_spec='${wl}--export-dynamic'
 6863       # ancient GNU ld didn't support --whole-archive et. al.
 6864       if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
 6865  	whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 6866       else
 6867   	whole_archive_flag_spec=
 6868       fi
 6869     fi
 6870   else
 6871     # PORTME fill in a description of your system's linker (not GNU ld)
 6872     case $host_os in
 6873     aix3*)
 6874       allow_undefined_flag=unsupported
 6875       always_export_symbols=yes
 6876       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'
 6877       # Note: this linker hardcodes the directories in LIBPATH if there
 6878       # are no directories specified by -L.
 6879       hardcode_minus_L=yes
 6880       if test "$GCC" = yes && test -z "$link_static_flag"; then
 6881 	# Neither direct hardcoding nor static linking is supported with a
 6882 	# broken collect2.
 6883 	hardcode_direct=unsupported
 6884       fi
 6885       ;;
 6886 
 6887     aix4* | aix5*)
 6888       if test "$host_cpu" = ia64; then
 6889 	# On IA64, the linker does run time linking by default, so we don't
 6890 	# have to do anything special.
 6891 	aix_use_runtimelinking=no
 6892 	exp_sym_flag='-Bexport'
 6893 	no_entry_flag=""
 6894       else
 6895 	# If we're using GNU nm, then we don't want the "-C" option.
 6896 	# -C means demangle to AIX nm, but means don't demangle with GNU nm
 6897 	if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
 6898 	  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'
 6899 	else
 6900 	  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'
 6901 	fi
 6902 	aix_use_runtimelinking=no
 6903 
 6904 	# Test if we are trying to use run time linking or normal
 6905 	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
 6906 	# need to do runtime linking.
 6907 	case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 6908 	  for ld_flag in $LDFLAGS; do
 6909   	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
 6910   	    aix_use_runtimelinking=yes
 6911   	    break
 6912   	  fi
 6913 	  done
 6914 	esac
 6915 
 6916 	exp_sym_flag='-bexport'
 6917 	no_entry_flag='-bnoentry'
 6918       fi
 6919 
 6920       # When large executables or shared objects are built, AIX ld can
 6921       # have problems creating the table of contents.  If linking a library
 6922       # or program results in "error TOC overflow" add -mminimal-toc to
 6923       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 6924       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 6925 
 6926       archive_cmds=''
 6927       hardcode_direct=yes
 6928       hardcode_libdir_separator=':'
 6929       link_all_deplibs=yes
 6930 
 6931       if test "$GCC" = yes; then
 6932 	case $host_os in aix4.012|aix4.012.*)
 6933 	# We only want to do this on AIX 4.2 and lower, the check
 6934 	# below for broken collect2 doesn't work under 4.3+
 6935 	  collect2name=`${CC} -print-prog-name=collect2`
 6936 	  if test -f "$collect2name" && \
 6937   	   strings "$collect2name" | grep resolve_lib_name >/dev/null
 6938 	  then
 6939   	  # We have reworked collect2
 6940   	  hardcode_direct=yes
 6941 	  else
 6942   	  # We have old collect2
 6943   	  hardcode_direct=unsupported
 6944   	  # It fails to find uninstalled libraries when the uninstalled
 6945   	  # path is not listed in the libpath.  Setting hardcode_minus_L
 6946   	  # to unsupported forces relinking
 6947   	  hardcode_minus_L=yes
 6948   	  hardcode_libdir_flag_spec='-L$libdir'
 6949   	  hardcode_libdir_separator=
 6950 	  fi
 6951 	esac
 6952 	shared_flag='-shared'
 6953       else
 6954 	# not using gcc
 6955 	if test "$host_cpu" = ia64; then
 6956   	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 6957   	# chokes on -Wl,-G. The following line is correct:
 6958 	  shared_flag='-G'
 6959 	else
 6960   	if test "$aix_use_runtimelinking" = yes; then
 6961 	    shared_flag='${wl}-G'
 6962 	  else
 6963 	    shared_flag='${wl}-bM:SRE'
 6964   	fi
 6965 	fi
 6966       fi
 6967 
 6968       # It seems that -bexpall does not export symbols beginning with
 6969       # underscore (_), so it is better to generate a list of symbols to export.
 6970       always_export_symbols=yes
 6971       if test "$aix_use_runtimelinking" = yes; then
 6972 	# Warning - without using the other runtime loading flags (-brtl),
 6973 	# -berok will link without error, but may produce a broken library.
 6974 	allow_undefined_flag='-berok'
 6975        # Determine the default libpath from the value encoded in an empty executable.
 6976        cat >conftest.$ac_ext <<_ACEOF
 6977 /* confdefs.h.  */
 6978 _ACEOF
 6979 cat confdefs.h >>conftest.$ac_ext
 6980 cat >>conftest.$ac_ext <<_ACEOF
 6981 /* end confdefs.h.  */
 6982 
 6983 int
 6984 main ()
 6985 {
 6986 
 6987   ;
 6988   return 0;
 6989 }
 6990 _ACEOF
 6991 rm -f conftest.$ac_objext conftest$ac_exeext
 6992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 6993   (eval $ac_link) 2>conftest.er1
 6994   ac_status=$?
 6995   grep -v '^ *+' conftest.er1 >conftest.err
 6996   rm -f conftest.er1
 6997   cat conftest.err >&5
 6998   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 6999   (exit $ac_status); } &&
 7000 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 7001   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 7002   (eval $ac_try) 2>&5
 7003   ac_status=$?
 7004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 7005   (exit $ac_status); }; } &&
 7006 	 { ac_try='test -s conftest$ac_exeext'
 7007   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 7008   (eval $ac_try) 2>&5
 7009   ac_status=$?
 7010   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 7011   (exit $ac_status); }; }; then
 7012   
 7013 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 7014 }'`
 7015 # Check for a 64-bit object if we didn't find anything.
 7016 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; }
 7017 }'`; fi
 7018 else
 7019   echo "$as_me: failed program was:" >&5
 7020 sed 's/^/| /' conftest.$ac_ext >&5
 7021 
 7022 fi
 7023 rm -f conftest.err conftest.$ac_objext \
 7024       conftest$ac_exeext conftest.$ac_ext
 7025 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 7026 
 7027        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 7028 	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"
 7029        else
 7030 	if test "$host_cpu" = ia64; then
 7031 	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 7032 	  allow_undefined_flag="-z nodefs"
 7033 	  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"
 7034 	else
 7035 	 # Determine the default libpath from the value encoded in an empty executable.
 7036 	 cat >conftest.$ac_ext <<_ACEOF
 7037 /* confdefs.h.  */
 7038 _ACEOF
 7039 cat confdefs.h >>conftest.$ac_ext
 7040 cat >>conftest.$ac_ext <<_ACEOF
 7041 /* end confdefs.h.  */
 7042 
 7043 int
 7044 main ()
 7045 {
 7046 
 7047   ;
 7048   return 0;
 7049 }
 7050 _ACEOF
 7051 rm -f conftest.$ac_objext conftest$ac_exeext
 7052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 7053   (eval $ac_link) 2>conftest.er1
 7054   ac_status=$?
 7055   grep -v '^ *+' conftest.er1 >conftest.err
 7056   rm -f conftest.er1
 7057   cat conftest.err >&5
 7058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 7059   (exit $ac_status); } &&
 7060 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 7061   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 7062   (eval $ac_try) 2>&5
 7063   ac_status=$?
 7064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 7065   (exit $ac_status); }; } &&
 7066 	 { ac_try='test -s conftest$ac_exeext'
 7067   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 7068   (eval $ac_try) 2>&5
 7069   ac_status=$?
 7070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 7071   (exit $ac_status); }; }; then
 7072   
 7073 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 7074 }'`
 7075 # Check for a 64-bit object if we didn't find anything.
 7076 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; }
 7077 }'`; fi
 7078 else
 7079   echo "$as_me: failed program was:" >&5
 7080 sed 's/^/| /' conftest.$ac_ext >&5
 7081 
 7082 fi
 7083 rm -f conftest.err conftest.$ac_objext \
 7084       conftest$ac_exeext conftest.$ac_ext
 7085 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 7086 
 7087 	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
 7088 	  # Warning - without using the other run time loading flags,
 7089 	  # -berok will link without error, but may produce a broken library.
 7090 	  no_undefined_flag=' ${wl}-bernotok'
 7091 	  allow_undefined_flag=' ${wl}-berok'
 7092 	  # -bexpall does not export symbols beginning with underscore (_)
 7093 	  always_export_symbols=yes
 7094 	  # Exported symbols can be pulled into shared objects from archives
 7095 	  whole_archive_flag_spec=' '
 7096 	  archive_cmds_need_lc=yes
 7097 	  # This is similar to how AIX traditionally builds it's shared libraries.
 7098 	  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'
 7099 	fi
 7100       fi
 7101       ;;
 7102 
 7103     amigaos*)
 7104       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)'
 7105       hardcode_libdir_flag_spec='-L$libdir'
 7106       hardcode_minus_L=yes
 7107       # see comment about different semantics on the GNU ld section
 7108       ld_shlibs=no
 7109       ;;
 7110 
 7111     bsdi4*)
 7112       export_dynamic_flag_spec=-rdynamic
 7113       ;;
 7114 
 7115     cygwin* | mingw* | pw32*)
 7116       # When not using gcc, we currently assume that we are using
 7117       # Microsoft Visual C++.
 7118       # hardcode_libdir_flag_spec is actually meaningless, as there is
 7119       # no search path for DLLs.
 7120       hardcode_libdir_flag_spec=' '
 7121       allow_undefined_flag=unsupported
 7122       # Tell ltmain to make .lib files, not .a files.
 7123       libext=lib
 7124       # Tell ltmain to make .dll files, not .so files.
 7125       shrext_cmds=".dll"
 7126       # FIXME: Setting linknames here is a bad hack.
 7127       archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
 7128       # The linker will automatically build a .lib file if we build a DLL.
 7129       old_archive_From_new_cmds='true'
 7130       # FIXME: Should let the user specify the lib program.
 7131       old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 7132       fix_srcfile_path='`cygpath -w "$srcfile"`'
 7133       enable_shared_with_static_runtimes=yes
 7134       ;;
 7135 
 7136     darwin* | rhapsody*)
 7137     if test "$GXX" = yes ; then
 7138       archive_cmds_need_lc=no
 7139       case "$host_os" in
 7140       rhapsody* | darwin1.[012])
 7141 	allow_undefined_flag='-undefined suppress'
 7142 	;;
 7143       *) # Darwin 1.3 on
 7144       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 7145       	allow_undefined_flag='-flat_namespace -undefined suppress'
 7146       else
 7147         case ${MACOSX_DEPLOYMENT_TARGET} in
 7148           10.[012])
 7149             allow_undefined_flag='-flat_namespace -undefined suppress'
 7150             ;;
 7151           10.*)
 7152             allow_undefined_flag='-undefined dynamic_lookup'
 7153             ;;
 7154         esac
 7155       fi
 7156 	;;
 7157       esac
 7158     	lt_int_apple_cc_single_mod=no
 7159     	output_verbose_link_cmd='echo'
 7160     	if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
 7161     	  lt_int_apple_cc_single_mod=yes
 7162     	fi
 7163     	if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 7164     	  archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
 7165     	else
 7166         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'
 7167       fi
 7168       module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 7169       # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 7170         if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
 7171           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}'
 7172         else
 7173           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}'
 7174         fi
 7175           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}'
 7176       hardcode_direct=no
 7177       hardcode_automatic=yes
 7178       hardcode_shlibpath_var=unsupported
 7179       whole_archive_flag_spec='-all_load $convenience'
 7180       link_all_deplibs=yes
 7181     else
 7182       ld_shlibs=no
 7183     fi
 7184       ;;
 7185 
 7186     dgux*)
 7187       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7188       hardcode_libdir_flag_spec='-L$libdir'
 7189       hardcode_shlibpath_var=no
 7190       ;;
 7191 
 7192     freebsd1*)
 7193       ld_shlibs=no
 7194       ;;
 7195 
 7196     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 7197     # support.  Future versions do this automatically, but an explicit c++rt0.o
 7198     # does not break anything, and helps significantly (at the cost of a little
 7199     # extra space).
 7200     freebsd2.2*)
 7201       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 7202       hardcode_libdir_flag_spec='-R$libdir'
 7203       hardcode_direct=yes
 7204       hardcode_shlibpath_var=no
 7205       ;;
 7206 
 7207     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 7208     freebsd2*)
 7209       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 7210       hardcode_direct=yes
 7211       hardcode_minus_L=yes
 7212       hardcode_shlibpath_var=no
 7213       ;;
 7214 
 7215     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 7216     freebsd* | kfreebsd*-gnu)
 7217       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 7218       hardcode_libdir_flag_spec='-R$libdir'
 7219       hardcode_direct=yes
 7220       hardcode_shlibpath_var=no
 7221       ;;
 7222 
 7223     hpux9*)
 7224       if test "$GCC" = yes; then
 7225 	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'
 7226       else
 7227 	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'
 7228       fi
 7229       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 7230       hardcode_libdir_separator=:
 7231       hardcode_direct=yes
 7232 
 7233       # hardcode_minus_L: Not really in the search PATH,
 7234       # but as the default location of the library.
 7235       hardcode_minus_L=yes
 7236       export_dynamic_flag_spec='${wl}-E'
 7237       ;;
 7238 
 7239     hpux10* | hpux11*)
 7240       if test "$GCC" = yes -a "$with_gnu_ld" = no; then
 7241 	case "$host_cpu" in
 7242 	hppa*64*|ia64*)
 7243 	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 7244 	  ;;
 7245 	*)
 7246 	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
 7247 	  ;;
 7248 	esac
 7249       else
 7250 	case "$host_cpu" in
 7251 	hppa*64*|ia64*)
 7252 	  archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
 7253 	  ;;
 7254 	*)
 7255 	  archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
 7256 	  ;;
 7257 	esac
 7258       fi
 7259       if test "$with_gnu_ld" = no; then
 7260 	case "$host_cpu" in
 7261 	hppa*64*)
 7262 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 7263 	  hardcode_libdir_flag_spec_ld='+b $libdir'
 7264 	  hardcode_libdir_separator=:
 7265 	  hardcode_direct=no
 7266 	  hardcode_shlibpath_var=no
 7267 	  ;;
 7268 	ia64*)
 7269 	  hardcode_libdir_flag_spec='-L$libdir'
 7270 	  hardcode_direct=no
 7271 	  hardcode_shlibpath_var=no
 7272 
 7273 	  # hardcode_minus_L: Not really in the search PATH,
 7274 	  # but as the default location of the library.
 7275 	  hardcode_minus_L=yes
 7276 	  ;;
 7277 	*)
 7278 	  hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 7279 	  hardcode_libdir_separator=:
 7280 	  hardcode_direct=yes
 7281 	  export_dynamic_flag_spec='${wl}-E'
 7282 
 7283 	  # hardcode_minus_L: Not really in the search PATH,
 7284 	  # but as the default location of the library.
 7285 	  hardcode_minus_L=yes
 7286 	  ;;
 7287 	esac
 7288       fi
 7289       ;;
 7290 
 7291     irix5* | irix6* | nonstopux*)
 7292       if test "$GCC" = yes; then
 7293 	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'
 7294       else
 7295 	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'
 7296 	hardcode_libdir_flag_spec_ld='-rpath $libdir'
 7297       fi
 7298       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 7299       hardcode_libdir_separator=:
 7300       link_all_deplibs=yes
 7301       ;;
 7302 
 7303     netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
 7304       if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 7305 	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 7306       else
 7307 	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 7308       fi
 7309       hardcode_libdir_flag_spec='-R$libdir'
 7310       hardcode_direct=yes
 7311       hardcode_shlibpath_var=no
 7312       ;;
 7313 
 7314     newsos6)
 7315       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7316       hardcode_direct=yes
 7317       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 7318       hardcode_libdir_separator=:
 7319       hardcode_shlibpath_var=no
 7320       ;;
 7321 
 7322     openbsd*)
 7323       hardcode_direct=yes
 7324       hardcode_shlibpath_var=no
 7325       if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 7326 	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 7327 	hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 7328 	export_dynamic_flag_spec='${wl}-E'
 7329       else
 7330        case $host_os in
 7331 	 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 7332 	   archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 7333 	   hardcode_libdir_flag_spec='-R$libdir'
 7334 	   ;;
 7335 	 *)
 7336 	   archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 7337 	   hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 7338 	   ;;
 7339        esac
 7340       fi
 7341       ;;
 7342 
 7343     os2*)
 7344       hardcode_libdir_flag_spec='-L$libdir'
 7345       hardcode_minus_L=yes
 7346       allow_undefined_flag=unsupported
 7347       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'
 7348       old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 7349       ;;
 7350 
 7351     osf3*)
 7352       if test "$GCC" = yes; then
 7353 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 7354 	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'
 7355       else
 7356 	allow_undefined_flag=' -expect_unresolved \*'
 7357 	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'
 7358       fi
 7359       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 7360       hardcode_libdir_separator=:
 7361       ;;
 7362 
 7363     osf4* | osf5*)	# as osf3* with the addition of -msym flag
 7364       if test "$GCC" = yes; then
 7365 	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 7366 	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'
 7367 	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 7368       else
 7369 	allow_undefined_flag=' -expect_unresolved \*'
 7370 	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'
 7371 	archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 7372 	$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'
 7373 
 7374 	# Both c and cxx compiler support -rpath directly
 7375 	hardcode_libdir_flag_spec='-rpath $libdir'
 7376       fi
 7377       hardcode_libdir_separator=:
 7378       ;;
 7379 
 7380     sco3.2v5*)
 7381       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7382       hardcode_shlibpath_var=no
 7383       export_dynamic_flag_spec='${wl}-Bexport'
 7384       runpath_var=LD_RUN_PATH
 7385       hardcode_runpath_var=yes
 7386       ;;
 7387 
 7388     solaris*)
 7389       no_undefined_flag=' -z text'
 7390       if test "$GCC" = yes; then
 7391 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 7392 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 7393 	  $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
 7394       else
 7395 	archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7396 	archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 7397   	$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 7398       fi
 7399       hardcode_libdir_flag_spec='-R$libdir'
 7400       hardcode_shlibpath_var=no
 7401       case $host_os in
 7402       solaris2.[0-5] | solaris2.[0-5].*) ;;
 7403       *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 7404 	whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 7405       esac
 7406       link_all_deplibs=yes
 7407       ;;
 7408 
 7409     sunos4*)
 7410       if test "x$host_vendor" = xsequent; then
 7411 	# Use $CC to link under sequent, because it throws in some extra .o
 7412 	# files that make .init and .fini sections work.
 7413 	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 7414       else
 7415 	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 7416       fi
 7417       hardcode_libdir_flag_spec='-L$libdir'
 7418       hardcode_direct=yes
 7419       hardcode_minus_L=yes
 7420       hardcode_shlibpath_var=no
 7421       ;;
 7422 
 7423     sysv4)
 7424       case $host_vendor in
 7425 	sni)
 7426 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7427 	  hardcode_direct=yes # is this really true???
 7428 	;;
 7429 	siemens)
 7430 	  ## LD is ld it makes a PLAMLIB
 7431 	  ## CC just makes a GrossModule.
 7432 	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 7433 	  reload_cmds='$CC -r -o $output$reload_objs'
 7434 	  hardcode_direct=no
 7435         ;;
 7436 	motorola)
 7437 	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7438 	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 7439 	;;
 7440       esac
 7441       runpath_var='LD_RUN_PATH'
 7442       hardcode_shlibpath_var=no
 7443       ;;
 7444 
 7445     sysv4.3*)
 7446       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7447       hardcode_shlibpath_var=no
 7448       export_dynamic_flag_spec='-Bexport'
 7449       ;;
 7450 
 7451     sysv4*MP*)
 7452       if test -d /usr/nec; then
 7453 	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7454 	hardcode_shlibpath_var=no
 7455 	runpath_var=LD_RUN_PATH
 7456 	hardcode_runpath_var=yes
 7457 	ld_shlibs=yes
 7458       fi
 7459       ;;
 7460 
 7461     sysv4.2uw2*)
 7462       archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 7463       hardcode_direct=yes
 7464       hardcode_minus_L=no
 7465       hardcode_shlibpath_var=no
 7466       hardcode_runpath_var=yes
 7467       runpath_var=LD_RUN_PATH
 7468       ;;
 7469 
 7470    sysv5OpenUNIX8* | sysv5UnixWare7* |  sysv5uw[78]* | unixware7*)
 7471       no_undefined_flag='${wl}-z ${wl}text'
 7472       if test "$GCC" = yes; then
 7473 	archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 7474       else
 7475 	archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 7476       fi
 7477       runpath_var='LD_RUN_PATH'
 7478       hardcode_shlibpath_var=no
 7479       ;;
 7480 
 7481     sysv5*)
 7482       no_undefined_flag=' -z text'
 7483       # $CC -shared without GNU ld will not create a library from C++
 7484       # object files and a static libstdc++, better avoid it by now
 7485       archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7486       archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 7487   		$LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 7488       hardcode_libdir_flag_spec=
 7489       hardcode_shlibpath_var=no
 7490       runpath_var='LD_RUN_PATH'
 7491       ;;
 7492 
 7493     uts4*)
 7494       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 7495       hardcode_libdir_flag_spec='-L$libdir'
 7496       hardcode_shlibpath_var=no
 7497       ;;
 7498 
 7499     *)
 7500       ld_shlibs=no
 7501       ;;
 7502     esac
 7503   fi
 7504 
 7505 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
 7506 echo "${ECHO_T}$ld_shlibs" >&6
 7507 test "$ld_shlibs" = no && can_build_shared=no
 7508 
 7509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 7510 if test "$GCC" = yes; then
 7511   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 7512 fi
 7513 
 7514 #
 7515 # Do we need to explicitly link libc?
 7516 #
 7517 case "x$archive_cmds_need_lc" in
 7518 x|xyes)
 7519   # Assume -lc should be added
 7520   archive_cmds_need_lc=yes
 7521 
 7522   if test "$enable_shared" = yes && test "$GCC" = yes; then
 7523     case $archive_cmds in
 7524     *'~'*)
 7525       # FIXME: we may have to deal with multi-command sequences.
 7526       ;;
 7527     '$CC '*)
 7528       # Test whether the compiler implicitly links with -lc since on some
 7529       # systems, -lgcc has to come before -lc. If gcc already passes -lc
 7530       # to ld, don't add -lc before -lgcc.
 7531       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
 7532 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
 7533       $rm conftest*
 7534       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
 7535 
 7536       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
 7537   (eval $ac_compile) 2>&5
 7538   ac_status=$?
 7539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 7540   (exit $ac_status); } 2>conftest.err; then
 7541         soname=conftest
 7542         lib=conftest
 7543         libobjs=conftest.$ac_objext
 7544         deplibs=
 7545         wl=$lt_prog_compiler_wl
 7546         compiler_flags=-v
 7547         linker_flags=-v
 7548         verstring=
 7549         output_objdir=.
 7550         libname=conftest
 7551         lt_save_allow_undefined_flag=$allow_undefined_flag
 7552         allow_undefined_flag=
 7553         if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
 7554   (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
 7555   ac_status=$?
 7556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 7557   (exit $ac_status); }
 7558         then
 7559 	  archive_cmds_need_lc=no
 7560         else
 7561 	  archive_cmds_need_lc=yes
 7562         fi
 7563         allow_undefined_flag=$lt_save_allow_undefined_flag
 7564       else
 7565         cat conftest.err 1>&5
 7566       fi
 7567       $rm conftest*
 7568       echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
 7569 echo "${ECHO_T}$archive_cmds_need_lc" >&6
 7570       ;;
 7571     esac
 7572   fi
 7573   ;;
 7574 esac
 7575 
 7576 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
 7577 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
 7578 library_names_spec=
 7579 libname_spec='lib$name'
 7580 soname_spec=
 7581 shrext_cmds=".so"
 7582 postinstall_cmds=
 7583 postuninstall_cmds=
 7584 finish_cmds=
 7585 finish_eval=
 7586 shlibpath_var=
 7587 shlibpath_overrides_runpath=unknown
 7588 version_type=none
 7589 dynamic_linker="$host_os ld.so"
 7590 sys_lib_dlsearch_path_spec="/lib /usr/lib"
 7591 if test "$GCC" = yes; then
 7592   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 7593   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
 7594     # if the path contains ";" then we assume it to be the separator
 7595     # otherwise default to the standard path separator (i.e. ":") - it is
 7596     # assumed that no part of a normal pathname contains ";" but that should
 7597     # okay in the real world where ";" in dirpaths is itself problematic.
 7598     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 7599   else
 7600     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 7601   fi
 7602 else
 7603   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 7604 fi
 7605 need_lib_prefix=unknown
 7606 hardcode_into_libs=no
 7607 
 7608 # when you set need_version to no, make sure it does not cause -set_version
 7609 # flags to be left without arguments
 7610 need_version=unknown
 7611 
 7612 case $host_os in
 7613 aix3*)
 7614   version_type=linux
 7615   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
 7616   shlibpath_var=LIBPATH
 7617 
 7618   # AIX 3 has no versioning support, so we append a major version to the name.
 7619   soname_spec='${libname}${release}${shared_ext}$major'
 7620   ;;
 7621 
 7622 aix4* | aix5*)
 7623   version_type=linux
 7624   need_lib_prefix=no
 7625   need_version=no
 7626   hardcode_into_libs=yes
 7627   if test "$host_cpu" = ia64; then
 7628     # AIX 5 supports IA64
 7629     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
 7630     shlibpath_var=LD_LIBRARY_PATH
 7631   else
 7632     # With GCC up to 2.95.x, collect2 would create an import file
 7633     # for dependence libraries.  The import file would start with
 7634     # the line `#! .'.  This would cause the generated library to
 7635     # depend on `.', always an invalid library.  This was fixed in
 7636     # development snapshots of GCC prior to 3.0.
 7637     case $host_os in
 7638       aix4 | aix4.[01] | aix4.[01].*)
 7639       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 7640 	   echo ' yes '
 7641 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 7642 	:
 7643       else
 7644 	can_build_shared=no
 7645       fi
 7646       ;;
 7647     esac
 7648     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
 7649     # soname into executable. Probably we can add versioning support to
 7650     # collect2, so additional links can be useful in future.
 7651     if test "$aix_use_runtimelinking" = yes; then
 7652       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 7653       # instead of lib<name>.a to let people know that these are not
 7654       # typical AIX shared libraries.
 7655       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 7656     else
 7657       # We preserve .a as extension for shared libraries through AIX4.2
 7658       # and later when we are not doing run time linking.
 7659       library_names_spec='${libname}${release}.a $libname.a'
 7660       soname_spec='${libname}${release}${shared_ext}$major'
 7661     fi
 7662     shlibpath_var=LIBPATH
 7663   fi
 7664   ;;
 7665 
 7666 amigaos*)
 7667   library_names_spec='$libname.ixlibrary $libname.a'
 7668   # Create ${libname}_ixlibrary.a entries in /sys/libs.
 7669   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'
 7670   ;;
 7671 
 7672 beos*)
 7673   library_names_spec='${libname}${shared_ext}'
 7674   dynamic_linker="$host_os ld.so"
 7675   shlibpath_var=LIBRARY_PATH
 7676   ;;
 7677 
 7678 bsdi4*)
 7679   version_type=linux
 7680   need_version=no
 7681   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 7682   soname_spec='${libname}${release}${shared_ext}$major'
 7683   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 7684   shlibpath_var=LD_LIBRARY_PATH
 7685   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 7686   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 7687   # the default ld.so.conf also contains /usr/contrib/lib and
 7688   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 7689   # libtool to hard-code these into programs
 7690   ;;
 7691 
 7692 cygwin* | mingw* | pw32*)
 7693   version_type=windows
 7694   shrext_cmds=".dll"
 7695   need_version=no
 7696   need_lib_prefix=no
 7697 
 7698   case $GCC,$host_os in
 7699   yes,cygwin* | yes,mingw* | yes,pw32*)
 7700     library_names_spec='$libname.dll.a'
 7701     # DLL is installed to $(libdir)/../bin by postinstall_cmds
 7702     postinstall_cmds='base_file=`basename \${file}`~
 7703       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
 7704       dldir=$destdir/`dirname \$dlpath`~
 7705       test -d \$dldir || mkdir -p \$dldir~
 7706       $install_prog $dir/$dlname \$dldir/$dlname'
 7707     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
 7708       dlpath=$dir/\$dldll~
 7709        $rm \$dlpath'
 7710     shlibpath_overrides_runpath=yes
 7711 
 7712     case $host_os in
 7713     cygwin*)
 7714       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
 7715       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 7716       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
 7717       ;;
 7718     mingw*)
 7719       # MinGW DLLs use traditional 'lib' prefix
 7720       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
 7721       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
 7722       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
 7723         # It is most probably a Windows format PATH printed by
 7724         # mingw gcc, but we are running on Cygwin. Gcc prints its search
 7725         # path with ; separators, and with drive letters. We can handle the
 7726         # drive letters (cygwin fileutils understands them), so leave them,
 7727         # especially as we might pass files found there to a mingw objdump,
 7728         # which wouldn't understand a cygwinified path. Ahh.
 7729         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
 7730       else
 7731         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
 7732       fi
 7733       ;;
 7734     pw32*)
 7735       # pw32 DLLs use 'pw' prefix rather than 'lib'
 7736       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
 7737       ;;
 7738     esac
 7739     ;;
 7740 
 7741   *)
 7742     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
 7743     ;;
 7744   esac
 7745   dynamic_linker='Win32 ld.exe'
 7746   # FIXME: first we should search . and the directory the executable is in
 7747   shlibpath_var=PATH
 7748   ;;
 7749 
 7750 darwin* | rhapsody*)
 7751   dynamic_linker="$host_os dyld"
 7752   version_type=darwin
 7753   need_lib_prefix=no
 7754   need_version=no
 7755   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
 7756   soname_spec='${libname}${release}${major}$shared_ext'
 7757   shlibpath_overrides_runpath=yes
 7758   shlibpath_var=DYLD_LIBRARY_PATH
 7759   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
 7760   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
 7761   if test "$GCC" = yes; then
 7762     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"`
 7763   else
 7764     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
 7765   fi
 7766   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
 7767   ;;
 7768 
 7769 dgux*)
 7770   version_type=linux
 7771   need_lib_prefix=no
 7772   need_version=no
 7773   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
 7774   soname_spec='${libname}${release}${shared_ext}$major'
 7775   shlibpath_var=LD_LIBRARY_PATH
 7776   ;;
 7777 
 7778 freebsd1*)
 7779   dynamic_linker=no
 7780   ;;
 7781 
 7782 kfreebsd*-gnu)
 7783   version_type=linux
 7784   need_lib_prefix=no
 7785   need_version=no
 7786   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 7787   soname_spec='${libname}${release}${shared_ext}$major'
 7788   shlibpath_var=LD_LIBRARY_PATH
 7789   shlibpath_overrides_runpath=no
 7790   hardcode_into_libs=yes
 7791   dynamic_linker='GNU ld.so'
 7792   ;;
 7793 
 7794 freebsd*)
 7795   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 7796   version_type=freebsd-$objformat
 7797   case $version_type in
 7798     freebsd-elf*)
 7799       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
 7800       need_version=no
 7801       need_lib_prefix=no
 7802       ;;
 7803     freebsd-*)
 7804       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
 7805       need_version=yes
 7806       ;;
 7807   esac
 7808   shlibpath_var=LD_LIBRARY_PATH
 7809   case $host_os in
 7810   freebsd2*)
 7811     shlibpath_overrides_runpath=yes
 7812     ;;
 7813   freebsd3.01* | freebsdelf3.01*)
 7814     shlibpath_overrides_runpath=yes
 7815     hardcode_into_libs=yes
 7816     ;;
 7817   *) # from 3.2 on
 7818     shlibpath_overrides_runpath=no
 7819     hardcode_into_libs=yes
 7820     ;;
 7821   esac
 7822   ;;
 7823 
 7824 gnu*)
 7825   version_type=linux
 7826   need_lib_prefix=no
 7827   need_version=no
 7828   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
 7829   soname_spec='${libname}${release}${shared_ext}$major'
 7830   shlibpath_var=LD_LIBRARY_PATH
 7831   hardcode_into_libs=yes
 7832   ;;
 7833 
 7834 hpux9* | hpux10* | hpux11*)
 7835   # Give a soname corresponding to the major version so that dld.sl refuses to
 7836   # link against other versions.
 7837   version_type=sunos
 7838   need_lib_prefix=no
 7839   need_version=no
 7840   case "$host_cpu" in
 7841   ia64*)
 7842     shrext_cmds='.so'
 7843     hardcode_into_libs=yes
 7844     dynamic_linker="$host_os dld.so"
 7845     shlibpath_var=LD_LIBRARY_PATH
 7846     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 7847     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 7848     soname_spec='${libname}${release}${shared_ext}$major'
 7849     if test "X$HPUX_IA64_MODE" = X32; then
 7850       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
 7851     else
 7852       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
 7853     fi
 7854     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 7855     ;;
 7856    hppa*64*)
 7857      shrext_cmds='.sl'
 7858      hardcode_into_libs=yes
 7859      dynamic_linker="$host_os dld.sl"
 7860      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
 7861      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
 7862      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 7863      soname_spec='${libname}${release}${shared_ext}$major'
 7864      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
 7865      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
 7866      ;;
 7867    *)
 7868     shrext_cmds='.sl'
 7869     dynamic_linker="$host_os dld.sl"
 7870     shlibpath_var=SHLIB_PATH
 7871     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 7872     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 7873     soname_spec='${libname}${release}${shared_ext}$major'
 7874     ;;
 7875   esac
 7876   # HP-UX runs *really* slowly unless shared libraries are mode 555.
 7877   postinstall_cmds='chmod 555 $lib'
 7878   ;;
 7879 
 7880 irix5* | irix6* | nonstopux*)
 7881   case $host_os in
 7882     nonstopux*) version_type=nonstopux ;;
 7883     *)
 7884 	if test "$lt_cv_prog_gnu_ld" = yes; then
 7885 		version_type=linux
 7886 	else
 7887 		version_type=irix
 7888 	fi ;;
 7889   esac
 7890   need_lib_prefix=no
 7891   need_version=no
 7892   soname_spec='${libname}${release}${shared_ext}$major'
 7893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
 7894   case $host_os in
 7895   irix5* | nonstopux*)
 7896     libsuff= shlibsuff=
 7897     ;;
 7898   *)
 7899     case $LD in # libtool.m4 will add one of these switches to LD
 7900     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
 7901       libsuff= shlibsuff= libmagic=32-bit;;
 7902     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
 7903       libsuff=32 shlibsuff=N32 libmagic=N32;;
 7904     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
 7905       libsuff=64 shlibsuff=64 libmagic=64-bit;;
 7906     *) libsuff= shlibsuff= libmagic=never-match;;
 7907     esac
 7908     ;;
 7909   esac
 7910   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 7911   shlibpath_overrides_runpath=no
 7912   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 7913   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 7914   hardcode_into_libs=yes
 7915   ;;
 7916 
 7917 # No shared lib support for Linux oldld, aout, or coff.
 7918 linux*oldld* | linux*aout* | linux*coff*)
 7919   dynamic_linker=no
 7920   ;;
 7921 
 7922 # This must be Linux ELF.
 7923 linux*)
 7924   version_type=linux
 7925   need_lib_prefix=no
 7926   need_version=no
 7927   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 7928   soname_spec='${libname}${release}${shared_ext}$major'
 7929   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 7930   shlibpath_var=LD_LIBRARY_PATH
 7931   shlibpath_overrides_runpath=no
 7932   # This implies no fast_install, which is unacceptable.
 7933   # Some rework will be needed to allow for fast_install
 7934   # before this can be enabled.
 7935   hardcode_into_libs=yes
 7936 
 7937   # Append ld.so.conf contents to the search path
 7938   if test -f /etc/ld.so.conf; then
 7939     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
 7940     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
 7941   fi
 7942 
 7943   # We used to test for /lib/ld.so.1 and disable shared libraries on
 7944   # powerpc, because MkLinux only supported shared libraries with the
 7945   # GNU dynamic linker.  Since this was broken with cross compilers,
 7946   # most powerpc-linux boxes support dynamic linking these days and
 7947   # people can always --disable-shared, the test was removed, and we
 7948   # assume the GNU/Linux dynamic linker is in use.
 7949   dynamic_linker='GNU/Linux ld.so'
 7950   ;;
 7951 
 7952 netbsdelf*-gnu)
 7953   version_type=linux
 7954   need_lib_prefix=no
 7955   need_version=no
 7956   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 7957   soname_spec='${libname}${release}${shared_ext}$major'
 7958   shlibpath_var=LD_LIBRARY_PATH
 7959   shlibpath_overrides_runpath=no
 7960   hardcode_into_libs=yes
 7961   dynamic_linker='NetBSD ld.elf_so'
 7962   ;;
 7963 
 7964 knetbsd*-gnu)
 7965   version_type=linux
 7966   need_lib_prefix=no
 7967   need_version=no
 7968   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 7969   soname_spec='${libname}${release}${shared_ext}$major'
 7970   shlibpath_var=LD_LIBRARY_PATH
 7971   shlibpath_overrides_runpath=no
 7972   hardcode_into_libs=yes
 7973   dynamic_linker='GNU ld.so'
 7974   ;;
 7975 
 7976 netbsd*)
 7977   version_type=sunos
 7978   need_lib_prefix=no
 7979   need_version=no
 7980   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 7981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 7982     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 7983     dynamic_linker='NetBSD (a.out) ld.so'
 7984   else
 7985     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
 7986     soname_spec='${libname}${release}${shared_ext}$major'
 7987     dynamic_linker='NetBSD ld.elf_so'
 7988   fi
 7989   shlibpath_var=LD_LIBRARY_PATH
 7990   shlibpath_overrides_runpath=yes
 7991   hardcode_into_libs=yes
 7992   ;;
 7993 
 7994 newsos6)
 7995   version_type=linux
 7996   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 7997   shlibpath_var=LD_LIBRARY_PATH
 7998   shlibpath_overrides_runpath=yes
 7999   ;;
 8000 
 8001 nto-qnx*)
 8002   version_type=linux
 8003   need_lib_prefix=no
 8004   need_version=no
 8005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 8006   soname_spec='${libname}${release}${shared_ext}$major'
 8007   shlibpath_var=LD_LIBRARY_PATH
 8008   shlibpath_overrides_runpath=yes
 8009   ;;
 8010 
 8011 openbsd*)
 8012   version_type=sunos
 8013   need_lib_prefix=no
 8014   need_version=yes
 8015   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 8016   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 8017   shlibpath_var=LD_LIBRARY_PATH
 8018   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 8019     case $host_os in
 8020       openbsd2.[89] | openbsd2.[89].*)
 8021 	shlibpath_overrides_runpath=no
 8022 	;;
 8023       *)
 8024 	shlibpath_overrides_runpath=yes
 8025 	;;
 8026       esac
 8027   else
 8028     shlibpath_overrides_runpath=yes
 8029   fi
 8030   ;;
 8031 
 8032 os2*)
 8033   libname_spec='$name'
 8034   shrext_cmds=".dll"
 8035   need_lib_prefix=no
 8036   library_names_spec='$libname${shared_ext} $libname.a'
 8037   dynamic_linker='OS/2 ld.exe'
 8038   shlibpath_var=LIBPATH
 8039   ;;
 8040 
 8041 osf3* | osf4* | osf5*)
 8042   version_type=osf
 8043   need_lib_prefix=no
 8044   need_version=no
 8045   soname_spec='${libname}${release}${shared_ext}$major'
 8046   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 8047   shlibpath_var=LD_LIBRARY_PATH
 8048   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 8049   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 8050   ;;
 8051 
 8052 sco3.2v5*)
 8053   version_type=osf
 8054   soname_spec='${libname}${release}${shared_ext}$major'
 8055   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 8056   shlibpath_var=LD_LIBRARY_PATH
 8057   ;;
 8058 
 8059 solaris*)
 8060   version_type=linux
 8061   need_lib_prefix=no
 8062   need_version=no
 8063   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 8064   soname_spec='${libname}${release}${shared_ext}$major'
 8065   shlibpath_var=LD_LIBRARY_PATH
 8066   shlibpath_overrides_runpath=yes
 8067   hardcode_into_libs=yes
 8068   # ldd complains unless libraries are executable
 8069   postinstall_cmds='chmod +x $lib'
 8070   ;;
 8071 
 8072 sunos4*)
 8073   version_type=sunos
 8074   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
 8075   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 8076   shlibpath_var=LD_LIBRARY_PATH
 8077   shlibpath_overrides_runpath=yes
 8078   if test "$with_gnu_ld" = yes; then
 8079     need_lib_prefix=no
 8080   fi
 8081   need_version=yes
 8082   ;;
 8083 
 8084 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 8085   version_type=linux
 8086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 8087   soname_spec='${libname}${release}${shared_ext}$major'
 8088   shlibpath_var=LD_LIBRARY_PATH
 8089   case $host_vendor in
 8090     sni)
 8091       shlibpath_overrides_runpath=no
 8092       need_lib_prefix=no
 8093       export_dynamic_flag_spec='${wl}-Blargedynsym'
 8094       runpath_var=LD_RUN_PATH
 8095       ;;
 8096     siemens)
 8097       need_lib_prefix=no
 8098       ;;
 8099     motorola)
 8100       need_lib_prefix=no
 8101       need_version=no
 8102       shlibpath_overrides_runpath=no
 8103       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 8104       ;;
 8105   esac
 8106   ;;
 8107 
 8108 sysv4*MP*)
 8109   if test -d /usr/nec ;then
 8110     version_type=linux
 8111     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
 8112     soname_spec='$libname${shared_ext}.$major'
 8113     shlibpath_var=LD_LIBRARY_PATH
 8114   fi
 8115   ;;
 8116 
 8117 uts4*)
 8118   version_type=linux
 8119   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
 8120   soname_spec='${libname}${release}${shared_ext}$major'
 8121   shlibpath_var=LD_LIBRARY_PATH
 8122   ;;
 8123 
 8124 *)
 8125   dynamic_linker=no
 8126   ;;
 8127 esac
 8128 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
 8129 echo "${ECHO_T}$dynamic_linker" >&6
 8130 test "$dynamic_linker" = no && can_build_shared=no
 8131 
 8132 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
 8133 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
 8134 hardcode_action=
 8135 if test -n "$hardcode_libdir_flag_spec" || \
 8136    test -n "$runpath_var " || \
 8137    test "X$hardcode_automatic"="Xyes" ; then
 8138 
 8139   # We can hardcode non-existant directories.
 8140   if test "$hardcode_direct" != no &&
 8141      # If the only mechanism to avoid hardcoding is shlibpath_var, we
 8142      # have to relink, otherwise we might link with an installed library
 8143      # when we should be linking with a yet-to-be-installed one
 8144      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
 8145      test "$hardcode_minus_L" != no; then
 8146     # Linking always hardcodes the temporary library directory.
 8147     hardcode_action=relink
 8148   else
 8149     # We can link without hardcoding, and we can hardcode nonexisting dirs.
 8150     hardcode_action=immediate
 8151   fi
 8152 else
 8153   # We cannot hardcode anything, or else we can only hardcode existing
 8154   # directories.
 8155   hardcode_action=unsupported
 8156 fi
 8157 echo "$as_me:$LINENO: result: $hardcode_action" >&5
 8158 echo "${ECHO_T}$hardcode_action" >&6
 8159 
 8160 if test "$hardcode_action" = relink; then
 8161   # Fast installation is not supported
 8162   enable_fast_install=no
 8163 elif test "$shlibpath_overrides_runpath" = yes ||
 8164      test "$enable_shared" = no; then
 8165   # Fast installation is not necessary
 8166   enable_fast_install=needless
 8167 fi
 8168 
 8169 striplib=
 8170 old_striplib=
 8171 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
 8172 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
 8173 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 8174   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 8175   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 8176   echo "$as_me:$LINENO: result: yes" >&5
 8177 echo "${ECHO_T}yes" >&6
 8178 else
 8179 # FIXME - insert some real tests, host_os isn't really good enough
 8180   case $host_os in
 8181    darwin*)
 8182        if test -n "$STRIP" ; then
 8183          striplib="$STRIP -x"
 8184          echo "$as_me:$LINENO: result: yes" >&5
 8185 echo "${ECHO_T}yes" >&6
 8186        else
 8187   echo "$as_me:$LINENO: result: no" >&5
 8188 echo "${ECHO_T}no" >&6
 8189 fi
 8190        ;;
 8191    *)
 8192   echo "$as_me:$LINENO: result: no" >&5
 8193 echo "${ECHO_T}no" >&6
 8194     ;;
 8195   esac
 8196 fi
 8197 
 8198 if test "x$enable_dlopen" != xyes; then
 8199   enable_dlopen=unknown
 8200   enable_dlopen_self=unknown
 8201   enable_dlopen_self_static=unknown
 8202 else
 8203   lt_cv_dlopen=no
 8204   lt_cv_dlopen_libs=
 8205 
 8206   case $host_os in
 8207   beos*)
 8208     lt_cv_dlopen="load_add_on"
 8209     lt_cv_dlopen_libs=
 8210     lt_cv_dlopen_self=yes
 8211     ;;
 8212 
 8213   mingw* | pw32*)
 8214     lt_cv_dlopen="LoadLibrary"
 8215     lt_cv_dlopen_libs=
 8216    ;;
 8217 
 8218   cygwin*)
 8219     lt_cv_dlopen="dlopen"
 8220     lt_cv_dlopen_libs=
 8221    ;;
 8222 
 8223   darwin*)
 8224   # if libdl is installed we need to link against it
 8225     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 8226 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 8227 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 8228   echo $ECHO_N "(cached) $ECHO_C" >&6
 8229 else
 8230   ac_check_lib_save_LIBS=$LIBS
 8231 LIBS="-ldl  $LIBS"
 8232 cat >conftest.$ac_ext <<_ACEOF
 8233 /* confdefs.h.  */
 8234 _ACEOF
 8235 cat confdefs.h >>conftest.$ac_ext
 8236 cat >>conftest.$ac_ext <<_ACEOF
 8237 /* end confdefs.h.  */
 8238 
 8239 /* Override any gcc2 internal prototype to avoid an error.  */
 8240 #ifdef __cplusplus
 8241 extern "C"
 8242 #endif
 8243 /* We use char because int might match the return type of a gcc2
 8244    builtin and then its argument prototype would still apply.  */
 8245 char dlopen ();
 8246 int
 8247 main ()
 8248 {
 8249 dlopen ();
 8250   ;
 8251   return 0;
 8252 }
 8253 _ACEOF
 8254 rm -f conftest.$ac_objext conftest$ac_exeext
 8255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 8256   (eval $ac_link) 2>conftest.er1
 8257   ac_status=$?
 8258   grep -v '^ *+' conftest.er1 >conftest.err
 8259   rm -f conftest.er1
 8260   cat conftest.err >&5
 8261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8262   (exit $ac_status); } &&
 8263 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 8264   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8265   (eval $ac_try) 2>&5
 8266   ac_status=$?
 8267   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8268   (exit $ac_status); }; } &&
 8269 	 { ac_try='test -s conftest$ac_exeext'
 8270   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8271   (eval $ac_try) 2>&5
 8272   ac_status=$?
 8273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8274   (exit $ac_status); }; }; then
 8275   ac_cv_lib_dl_dlopen=yes
 8276 else
 8277   echo "$as_me: failed program was:" >&5
 8278 sed 's/^/| /' conftest.$ac_ext >&5
 8279 
 8280 ac_cv_lib_dl_dlopen=no
 8281 fi
 8282 rm -f conftest.err conftest.$ac_objext \
 8283       conftest$ac_exeext conftest.$ac_ext
 8284 LIBS=$ac_check_lib_save_LIBS
 8285 fi
 8286 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 8287 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 8288 if test $ac_cv_lib_dl_dlopen = yes; then
 8289   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 8290 else
 8291   
 8292     lt_cv_dlopen="dyld"
 8293     lt_cv_dlopen_libs=
 8294     lt_cv_dlopen_self=yes
 8295     
 8296 fi
 8297 
 8298    ;;
 8299 
 8300   *)
 8301     echo "$as_me:$LINENO: checking for shl_load" >&5
 8302 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
 8303 if test "${ac_cv_func_shl_load+set}" = set; then
 8304   echo $ECHO_N "(cached) $ECHO_C" >&6
 8305 else
 8306   cat >conftest.$ac_ext <<_ACEOF
 8307 /* confdefs.h.  */
 8308 _ACEOF
 8309 cat confdefs.h >>conftest.$ac_ext
 8310 cat >>conftest.$ac_ext <<_ACEOF
 8311 /* end confdefs.h.  */
 8312 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
 8313    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 8314 #define shl_load innocuous_shl_load
 8315 
 8316 /* System header to define __stub macros and hopefully few prototypes,
 8317     which can conflict with char shl_load (); below.
 8318     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 8319     <limits.h> exists even on freestanding compilers.  */
 8320 
 8321 #ifdef __STDC__
 8322 # include <limits.h>
 8323 #else
 8324 # include <assert.h>
 8325 #endif
 8326 
 8327 #undef shl_load
 8328 
 8329 /* Override any gcc2 internal prototype to avoid an error.  */
 8330 #ifdef __cplusplus
 8331 extern "C"
 8332 {
 8333 #endif
 8334 /* We use char because int might match the return type of a gcc2
 8335    builtin and then its argument prototype would still apply.  */
 8336 char shl_load ();
 8337 /* The GNU C library defines this for functions which it implements
 8338     to always fail with ENOSYS.  Some functions are actually named
 8339     something starting with __ and the normal name is an alias.  */
 8340 #if defined (__stub_shl_load) || defined (__stub___shl_load)
 8341 choke me
 8342 #else
 8343 char (*f) () = shl_load;
 8344 #endif
 8345 #ifdef __cplusplus
 8346 }
 8347 #endif
 8348 
 8349 int
 8350 main ()
 8351 {
 8352 return f != shl_load;
 8353   ;
 8354   return 0;
 8355 }
 8356 _ACEOF
 8357 rm -f conftest.$ac_objext conftest$ac_exeext
 8358 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 8359   (eval $ac_link) 2>conftest.er1
 8360   ac_status=$?
 8361   grep -v '^ *+' conftest.er1 >conftest.err
 8362   rm -f conftest.er1
 8363   cat conftest.err >&5
 8364   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8365   (exit $ac_status); } &&
 8366 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 8367   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8368   (eval $ac_try) 2>&5
 8369   ac_status=$?
 8370   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8371   (exit $ac_status); }; } &&
 8372 	 { ac_try='test -s conftest$ac_exeext'
 8373   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8374   (eval $ac_try) 2>&5
 8375   ac_status=$?
 8376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8377   (exit $ac_status); }; }; then
 8378   ac_cv_func_shl_load=yes
 8379 else
 8380   echo "$as_me: failed program was:" >&5
 8381 sed 's/^/| /' conftest.$ac_ext >&5
 8382 
 8383 ac_cv_func_shl_load=no
 8384 fi
 8385 rm -f conftest.err conftest.$ac_objext \
 8386       conftest$ac_exeext conftest.$ac_ext
 8387 fi
 8388 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
 8389 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
 8390 if test $ac_cv_func_shl_load = yes; then
 8391   lt_cv_dlopen="shl_load"
 8392 else
 8393   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
 8394 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
 8395 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
 8396   echo $ECHO_N "(cached) $ECHO_C" >&6
 8397 else
 8398   ac_check_lib_save_LIBS=$LIBS
 8399 LIBS="-ldld  $LIBS"
 8400 cat >conftest.$ac_ext <<_ACEOF
 8401 /* confdefs.h.  */
 8402 _ACEOF
 8403 cat confdefs.h >>conftest.$ac_ext
 8404 cat >>conftest.$ac_ext <<_ACEOF
 8405 /* end confdefs.h.  */
 8406 
 8407 /* Override any gcc2 internal prototype to avoid an error.  */
 8408 #ifdef __cplusplus
 8409 extern "C"
 8410 #endif
 8411 /* We use char because int might match the return type of a gcc2
 8412    builtin and then its argument prototype would still apply.  */
 8413 char shl_load ();
 8414 int
 8415 main ()
 8416 {
 8417 shl_load ();
 8418   ;
 8419   return 0;
 8420 }
 8421 _ACEOF
 8422 rm -f conftest.$ac_objext conftest$ac_exeext
 8423 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 8424   (eval $ac_link) 2>conftest.er1
 8425   ac_status=$?
 8426   grep -v '^ *+' conftest.er1 >conftest.err
 8427   rm -f conftest.er1
 8428   cat conftest.err >&5
 8429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8430   (exit $ac_status); } &&
 8431 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 8432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8433   (eval $ac_try) 2>&5
 8434   ac_status=$?
 8435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8436   (exit $ac_status); }; } &&
 8437 	 { ac_try='test -s conftest$ac_exeext'
 8438   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8439   (eval $ac_try) 2>&5
 8440   ac_status=$?
 8441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8442   (exit $ac_status); }; }; then
 8443   ac_cv_lib_dld_shl_load=yes
 8444 else
 8445   echo "$as_me: failed program was:" >&5
 8446 sed 's/^/| /' conftest.$ac_ext >&5
 8447 
 8448 ac_cv_lib_dld_shl_load=no
 8449 fi
 8450 rm -f conftest.err conftest.$ac_objext \
 8451       conftest$ac_exeext conftest.$ac_ext
 8452 LIBS=$ac_check_lib_save_LIBS
 8453 fi
 8454 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
 8455 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
 8456 if test $ac_cv_lib_dld_shl_load = yes; then
 8457   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 8458 else
 8459   echo "$as_me:$LINENO: checking for dlopen" >&5
 8460 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
 8461 if test "${ac_cv_func_dlopen+set}" = set; then
 8462   echo $ECHO_N "(cached) $ECHO_C" >&6
 8463 else
 8464   cat >conftest.$ac_ext <<_ACEOF
 8465 /* confdefs.h.  */
 8466 _ACEOF
 8467 cat confdefs.h >>conftest.$ac_ext
 8468 cat >>conftest.$ac_ext <<_ACEOF
 8469 /* end confdefs.h.  */
 8470 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
 8471    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
 8472 #define dlopen innocuous_dlopen
 8473 
 8474 /* System header to define __stub macros and hopefully few prototypes,
 8475     which can conflict with char dlopen (); below.
 8476     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
 8477     <limits.h> exists even on freestanding compilers.  */
 8478 
 8479 #ifdef __STDC__
 8480 # include <limits.h>
 8481 #else
 8482 # include <assert.h>
 8483 #endif
 8484 
 8485 #undef dlopen
 8486 
 8487 /* Override any gcc2 internal prototype to avoid an error.  */
 8488 #ifdef __cplusplus
 8489 extern "C"
 8490 {
 8491 #endif
 8492 /* We use char because int might match the return type of a gcc2
 8493    builtin and then its argument prototype would still apply.  */
 8494 char dlopen ();
 8495 /* The GNU C library defines this for functions which it implements
 8496     to always fail with ENOSYS.  Some functions are actually named
 8497     something starting with __ and the normal name is an alias.  */
 8498 #if defined (__stub_dlopen) || defined (__stub___dlopen)
 8499 choke me
 8500 #else
 8501 char (*f) () = dlopen;
 8502 #endif
 8503 #ifdef __cplusplus
 8504 }
 8505 #endif
 8506 
 8507 int
 8508 main ()
 8509 {
 8510 return f != dlopen;
 8511   ;
 8512   return 0;
 8513 }
 8514 _ACEOF
 8515 rm -f conftest.$ac_objext conftest$ac_exeext
 8516 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 8517   (eval $ac_link) 2>conftest.er1
 8518   ac_status=$?
 8519   grep -v '^ *+' conftest.er1 >conftest.err
 8520   rm -f conftest.er1
 8521   cat conftest.err >&5
 8522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8523   (exit $ac_status); } &&
 8524 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 8525   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8526   (eval $ac_try) 2>&5
 8527   ac_status=$?
 8528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8529   (exit $ac_status); }; } &&
 8530 	 { ac_try='test -s conftest$ac_exeext'
 8531   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8532   (eval $ac_try) 2>&5
 8533   ac_status=$?
 8534   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8535   (exit $ac_status); }; }; then
 8536   ac_cv_func_dlopen=yes
 8537 else
 8538   echo "$as_me: failed program was:" >&5
 8539 sed 's/^/| /' conftest.$ac_ext >&5
 8540 
 8541 ac_cv_func_dlopen=no
 8542 fi
 8543 rm -f conftest.err conftest.$ac_objext \
 8544       conftest$ac_exeext conftest.$ac_ext
 8545 fi
 8546 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
 8547 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
 8548 if test $ac_cv_func_dlopen = yes; then
 8549   lt_cv_dlopen="dlopen"
 8550 else
 8551   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
 8552 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
 8553 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
 8554   echo $ECHO_N "(cached) $ECHO_C" >&6
 8555 else
 8556   ac_check_lib_save_LIBS=$LIBS
 8557 LIBS="-ldl  $LIBS"
 8558 cat >conftest.$ac_ext <<_ACEOF
 8559 /* confdefs.h.  */
 8560 _ACEOF
 8561 cat confdefs.h >>conftest.$ac_ext
 8562 cat >>conftest.$ac_ext <<_ACEOF
 8563 /* end confdefs.h.  */
 8564 
 8565 /* Override any gcc2 internal prototype to avoid an error.  */
 8566 #ifdef __cplusplus
 8567 extern "C"
 8568 #endif
 8569 /* We use char because int might match the return type of a gcc2
 8570    builtin and then its argument prototype would still apply.  */
 8571 char dlopen ();
 8572 int
 8573 main ()
 8574 {
 8575 dlopen ();
 8576   ;
 8577   return 0;
 8578 }
 8579 _ACEOF
 8580 rm -f conftest.$ac_objext conftest$ac_exeext
 8581 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 8582   (eval $ac_link) 2>conftest.er1
 8583   ac_status=$?
 8584   grep -v '^ *+' conftest.er1 >conftest.err
 8585   rm -f conftest.er1
 8586   cat conftest.err >&5
 8587   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8588   (exit $ac_status); } &&
 8589 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 8590   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8591   (eval $ac_try) 2>&5
 8592   ac_status=$?
 8593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8594   (exit $ac_status); }; } &&
 8595 	 { ac_try='test -s conftest$ac_exeext'
 8596   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8597   (eval $ac_try) 2>&5
 8598   ac_status=$?
 8599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8600   (exit $ac_status); }; }; then
 8601   ac_cv_lib_dl_dlopen=yes
 8602 else
 8603   echo "$as_me: failed program was:" >&5
 8604 sed 's/^/| /' conftest.$ac_ext >&5
 8605 
 8606 ac_cv_lib_dl_dlopen=no
 8607 fi
 8608 rm -f conftest.err conftest.$ac_objext \
 8609       conftest$ac_exeext conftest.$ac_ext
 8610 LIBS=$ac_check_lib_save_LIBS
 8611 fi
 8612 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
 8613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
 8614 if test $ac_cv_lib_dl_dlopen = yes; then
 8615   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 8616 else
 8617   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
 8618 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
 8619 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
 8620   echo $ECHO_N "(cached) $ECHO_C" >&6
 8621 else
 8622   ac_check_lib_save_LIBS=$LIBS
 8623 LIBS="-lsvld  $LIBS"
 8624 cat >conftest.$ac_ext <<_ACEOF
 8625 /* confdefs.h.  */
 8626 _ACEOF
 8627 cat confdefs.h >>conftest.$ac_ext
 8628 cat >>conftest.$ac_ext <<_ACEOF
 8629 /* end confdefs.h.  */
 8630 
 8631 /* Override any gcc2 internal prototype to avoid an error.  */
 8632 #ifdef __cplusplus
 8633 extern "C"
 8634 #endif
 8635 /* We use char because int might match the return type of a gcc2
 8636    builtin and then its argument prototype would still apply.  */
 8637 char dlopen ();
 8638 int
 8639 main ()
 8640 {
 8641 dlopen ();
 8642   ;
 8643   return 0;
 8644 }
 8645 _ACEOF
 8646 rm -f conftest.$ac_objext conftest$ac_exeext
 8647 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 8648   (eval $ac_link) 2>conftest.er1
 8649   ac_status=$?
 8650   grep -v '^ *+' conftest.er1 >conftest.err
 8651   rm -f conftest.er1
 8652   cat conftest.err >&5
 8653   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8654   (exit $ac_status); } &&
 8655 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 8656   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8657   (eval $ac_try) 2>&5
 8658   ac_status=$?
 8659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8660   (exit $ac_status); }; } &&
 8661 	 { ac_try='test -s conftest$ac_exeext'
 8662   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8663   (eval $ac_try) 2>&5
 8664   ac_status=$?
 8665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8666   (exit $ac_status); }; }; then
 8667   ac_cv_lib_svld_dlopen=yes
 8668 else
 8669   echo "$as_me: failed program was:" >&5
 8670 sed 's/^/| /' conftest.$ac_ext >&5
 8671 
 8672 ac_cv_lib_svld_dlopen=no
 8673 fi
 8674 rm -f conftest.err conftest.$ac_objext \
 8675       conftest$ac_exeext conftest.$ac_ext
 8676 LIBS=$ac_check_lib_save_LIBS
 8677 fi
 8678 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
 8679 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
 8680 if test $ac_cv_lib_svld_dlopen = yes; then
 8681   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 8682 else
 8683   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
 8684 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
 8685 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
 8686   echo $ECHO_N "(cached) $ECHO_C" >&6
 8687 else
 8688   ac_check_lib_save_LIBS=$LIBS
 8689 LIBS="-ldld  $LIBS"
 8690 cat >conftest.$ac_ext <<_ACEOF
 8691 /* confdefs.h.  */
 8692 _ACEOF
 8693 cat confdefs.h >>conftest.$ac_ext
 8694 cat >>conftest.$ac_ext <<_ACEOF
 8695 /* end confdefs.h.  */
 8696 
 8697 /* Override any gcc2 internal prototype to avoid an error.  */
 8698 #ifdef __cplusplus
 8699 extern "C"
 8700 #endif
 8701 /* We use char because int might match the return type of a gcc2
 8702    builtin and then its argument prototype would still apply.  */
 8703 char dld_link ();
 8704 int
 8705 main ()
 8706 {
 8707 dld_link ();
 8708   ;
 8709   return 0;
 8710 }
 8711 _ACEOF
 8712 rm -f conftest.$ac_objext conftest$ac_exeext
 8713 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 8714   (eval $ac_link) 2>conftest.er1
 8715   ac_status=$?
 8716   grep -v '^ *+' conftest.er1 >conftest.err
 8717   rm -f conftest.er1
 8718   cat conftest.err >&5
 8719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8720   (exit $ac_status); } &&
 8721 	 { ac_try='test -z "$ac_c_werror_flag"			 || test ! -s conftest.err'
 8722   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8723   (eval $ac_try) 2>&5
 8724   ac_status=$?
 8725   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8726   (exit $ac_status); }; } &&
 8727 	 { ac_try='test -s conftest$ac_exeext'
 8728   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 8729   (eval $ac_try) 2>&5
 8730   ac_status=$?
 8731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8732   (exit $ac_status); }; }; then
 8733   ac_cv_lib_dld_dld_link=yes
 8734 else
 8735   echo "$as_me: failed program was:" >&5
 8736 sed 's/^/| /' conftest.$ac_ext >&5
 8737 
 8738 ac_cv_lib_dld_dld_link=no
 8739 fi
 8740 rm -f conftest.err conftest.$ac_objext \
 8741       conftest$ac_exeext conftest.$ac_ext
 8742 LIBS=$ac_check_lib_save_LIBS
 8743 fi
 8744 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
 8745 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
 8746 if test $ac_cv_lib_dld_dld_link = yes; then
 8747   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
 8748 fi
 8749 
 8750 	      
 8751 fi
 8752 
 8753 	    
 8754 fi
 8755 
 8756 	  
 8757 fi
 8758 
 8759 	
 8760 fi
 8761 
 8762       
 8763 fi
 8764 
 8765     ;;
 8766   esac
 8767 
 8768   if test "x$lt_cv_dlopen" != xno; then
 8769     enable_dlopen=yes
 8770   else
 8771     enable_dlopen=no
 8772   fi
 8773 
 8774   case $lt_cv_dlopen in
 8775   dlopen)
 8776     save_CPPFLAGS="$CPPFLAGS"
 8777     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
 8778 
 8779     save_LDFLAGS="$LDFLAGS"
 8780     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
 8781 
 8782     save_LIBS="$LIBS"
 8783     LIBS="$lt_cv_dlopen_libs $LIBS"
 8784 
 8785     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
 8786 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
 8787 if test "${lt_cv_dlopen_self+set}" = set; then
 8788   echo $ECHO_N "(cached) $ECHO_C" >&6
 8789 else
 8790   	  if test "$cross_compiling" = yes; then :
 8791   lt_cv_dlopen_self=cross
 8792 else
 8793   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 8794   lt_status=$lt_dlunknown
 8795   cat > conftest.$ac_ext <<EOF
 8796 #line __oline__ "configure"
 8797 #include "confdefs.h"
 8798 
 8799 #if HAVE_DLFCN_H
 8800 #include <dlfcn.h>
 8801 #endif
 8802 
 8803 #include <stdio.h>
 8804 
 8805 #ifdef RTLD_GLOBAL
 8806 #  define LT_DLGLOBAL		RTLD_GLOBAL
 8807 #else
 8808 #  ifdef DL_GLOBAL
 8809 #    define LT_DLGLOBAL		DL_GLOBAL
 8810 #  else
 8811 #    define LT_DLGLOBAL		0
 8812 #  endif
 8813 #endif
 8814 
 8815 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 8816    find out it does not work in some platform. */
 8817 #ifndef LT_DLLAZY_OR_NOW
 8818 #  ifdef RTLD_LAZY
 8819 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 8820 #  else
 8821 #    ifdef DL_LAZY
 8822 #      define LT_DLLAZY_OR_NOW		DL_LAZY
 8823 #    else
 8824 #      ifdef RTLD_NOW
 8825 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
 8826 #      else
 8827 #        ifdef DL_NOW
 8828 #          define LT_DLLAZY_OR_NOW	DL_NOW
 8829 #        else
 8830 #          define LT_DLLAZY_OR_NOW	0
 8831 #        endif
 8832 #      endif
 8833 #    endif
 8834 #  endif
 8835 #endif
 8836 
 8837 #ifdef __cplusplus
 8838 extern "C" void exit (int);
 8839 #endif
 8840 
 8841 void fnord() { int i=42;}
 8842 int main ()
 8843 {
 8844   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 8845   int status = $lt_dlunknown;
 8846 
 8847   if (self)
 8848     {
 8849       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 8850       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 8851       /* dlclose (self); */
 8852     }
 8853 
 8854     exit (status);
 8855 }
 8856 EOF
 8857   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 8858   (eval $ac_link) 2>&5
 8859   ac_status=$?
 8860   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8861   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 8862     (./conftest; exit; ) 2>/dev/null
 8863     lt_status=$?
 8864     case x$lt_status in
 8865       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
 8866       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
 8867       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
 8868     esac
 8869   else :
 8870     # compilation failed
 8871     lt_cv_dlopen_self=no
 8872   fi
 8873 fi
 8874 rm -fr conftest*
 8875 
 8876     
 8877 fi
 8878 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
 8879 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
 8880 
 8881     if test "x$lt_cv_dlopen_self" = xyes; then
 8882       LDFLAGS="$LDFLAGS $link_static_flag"
 8883       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
 8884 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
 8885 if test "${lt_cv_dlopen_self_static+set}" = set; then
 8886   echo $ECHO_N "(cached) $ECHO_C" >&6
 8887 else
 8888   	  if test "$cross_compiling" = yes; then :
 8889   lt_cv_dlopen_self_static=cross
 8890 else
 8891   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
 8892   lt_status=$lt_dlunknown
 8893   cat > conftest.$ac_ext <<EOF
 8894 #line __oline__ "configure"
 8895 #include "confdefs.h"
 8896 
 8897 #if HAVE_DLFCN_H
 8898 #include <dlfcn.h>
 8899 #endif
 8900 
 8901 #include <stdio.h>
 8902 
 8903 #ifdef RTLD_GLOBAL
 8904 #  define LT_DLGLOBAL		RTLD_GLOBAL
 8905 #else
 8906 #  ifdef DL_GLOBAL
 8907 #    define LT_DLGLOBAL		DL_GLOBAL
 8908 #  else
 8909 #    define LT_DLGLOBAL		0
 8910 #  endif
 8911 #endif
 8912 
 8913 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
 8914    find out it does not work in some platform. */
 8915 #ifndef LT_DLLAZY_OR_NOW
 8916 #  ifdef RTLD_LAZY
 8917 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
 8918 #  else
 8919 #    ifdef DL_LAZY
 8920 #      define LT_DLLAZY_OR_NOW		DL_LAZY
 8921 #    else
 8922 #      ifdef RTLD_NOW
 8923 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
 8924 #      else
 8925 #        ifdef DL_NOW
 8926 #          define LT_DLLAZY_OR_NOW	DL_NOW
 8927 #        else
 8928 #          define LT_DLLAZY_OR_NOW	0
 8929 #        endif
 8930 #      endif
 8931 #    endif
 8932 #  endif
 8933 #endif
 8934 
 8935 #ifdef __cplusplus
 8936 extern "C" void exit (int);
 8937 #endif
 8938 
 8939 void fnord() { int i=42;}
 8940 int main ()
 8941 {
 8942   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
 8943   int status = $lt_dlunknown;
 8944 
 8945   if (self)
 8946     {
 8947       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
 8948       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
 8949       /* dlclose (self); */
 8950     }
 8951 
 8952     exit (status);
 8953 }
 8954 EOF
 8955   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 8956   (eval $ac_link) 2>&5
 8957   ac_status=$?
 8958   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 8959   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
 8960     (./conftest; exit; ) 2>/dev/null
 8961     lt_status=$?
 8962     case x$lt_status in
 8963       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
 8964       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
 8965       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
 8966     esac
 8967   else :
 8968     # compilation failed
 8969     lt_cv_dlopen_self_static=no
 8970   fi
 8971 fi
 8972 rm -fr conftest*
 8973 
 8974       
 8975 fi
 8976 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
 8977 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
 8978     fi
 8979 
 8980     CPPFLAGS="$save_CPPFLAGS"
 8981     LDFLAGS="$save_LDFLAGS"
 8982     LIBS="$save_LIBS"
 8983     ;;
 8984   esac
 8985 
 8986   case $lt_cv_dlopen_self in
 8987   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
 8988   *) enable_dlopen_self=unknown ;;
 8989   esac
 8990 
 8991   case $lt_cv_dlopen_self_static in
 8992   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
 8993   *) enable_dlopen_self_static=unknown ;;
 8994   esac
 8995 fi
 8996 
 8997 
 8998 # Report which librarie types wil actually be built
 8999 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
 9000 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
 9001 echo "$as_me:$LINENO: result: $can_build_shared" >&5
 9002 echo "${ECHO_T}$can_build_shared" >&6
 9003 
 9004 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
 9005 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
 9006 test "$can_build_shared" = "no" && enable_shared=no
 9007 
 9008 # On AIX, shared libraries and static libraries use the same namespace, and
 9009 # are all built from PIC.
 9010 case "$host_os" in
 9011 aix3*)
 9012   test "$enable_shared" = yes && enable_static=no
 9013   if test -n "$RANLIB"; then
 9014     archive_cmds="$archive_cmds~\$RANLIB \$lib"
 9015     postinstall_cmds='$RANLIB $lib'
 9016   fi
 9017   ;;
 9018 
 9019 aix4* | aix5*)
 9020   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 9021     test "$enable_shared" = yes && enable_static=no
 9022   fi
 9023   ;;
 9024   darwin* | rhapsody*)
 9025   if test "$GCC" = yes; then
 9026     archive_cmds_need_lc=no
 9027     case "$host_os" in
 9028     rhapsody* | darwin1.[012])
 9029       allow_undefined_flag='-undefined suppress'
 9030       ;;
 9031     *) # Darwin 1.3 on
 9032       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
 9033       	allow_undefined_flag='-flat_namespace -undefined suppress'
 9034       else
 9035         case ${MACOSX_DEPLOYMENT_TARGET} in
 9036           10.[012])
 9037             allow_undefined_flag='-flat_namespace -undefined suppress'
 9038             ;;
 9039           10.*)
 9040             allow_undefined_flag='-undefined dynamic_lookup'
 9041             ;;
 9042         esac
 9043       fi
 9044       ;;
 9045     esac
 9046     output_verbose_link_cmd='echo'
 9047     archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
 9048     module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
 9049     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
 9050     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}'
 9051     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}'
 9052     hardcode_direct=no
 9053     hardcode_automatic=yes
 9054     hardcode_shlibpath_var=unsupported
 9055     whole_archive_flag_spec='-all_load $convenience'
 9056     link_all_deplibs=yes
 9057   else
 9058     ld_shlibs=no
 9059   fi
 9060     ;;
 9061 esac
 9062 echo "$as_me:$LINENO: result: $enable_shared" >&5
 9063 echo "${ECHO_T}$enable_shared" >&6
 9064 
 9065 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
 9066 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
 9067 # Make sure either enable_shared or enable_static is yes.
 9068 test "$enable_shared" = yes || enable_static=yes
 9069 echo "$as_me:$LINENO: result: $enable_static" >&5
 9070 echo "${ECHO_T}$enable_static" >&6
 9071 
 9072 # The else clause should only fire when bootstrapping the
 9073 # libtool distribution, otherwise you forgot to ship ltmain.sh
 9074 # with your package, and you will get complaints that there are
 9075 # no rules to generate ltmain.sh.
 9076 if test -f "$ltmain"; then
 9077   # See if we are running on zsh, and set the options which allow our commands through
 9078   # without removal of \ escapes.
 9079   if test -n "${ZSH_VERSION+set}" ; then
 9080     setopt NO_GLOB_SUBST
 9081   fi
 9082   # Now quote all the things that may contain metacharacters while being
 9083   # careful not to overquote the AC_SUBSTed values.  We take copies of the
 9084   # variables and quote the copies for generation of the libtool script.
 9085   for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
 9086     SED SHELL STRIP \
 9087     libname_spec library_names_spec soname_spec extract_expsyms_cmds \
 9088     old_striplib striplib file_magic_cmd finish_cmds finish_eval \
 9089     deplibs_check_method reload_flag reload_cmds need_locks \
 9090     lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
 9091     lt_cv_sys_global_symbol_to_c_name_address \
 9092     sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
 9093     old_postinstall_cmds old_postuninstall_cmds \
 9094     compiler \
 9095     CC \
 9096     LD \
 9097     lt_prog_compiler_wl \
 9098     lt_prog_compiler_pic \
 9099     lt_prog_compiler_static \
 9100     lt_prog_compiler_no_builtin_flag \
 9101     export_dynamic_flag_spec \
 9102     thread_safe_flag_spec \
 9103     whole_archive_flag_spec \
 9104     enable_shared_with_static_runtimes \
 9105     old_archive_cmds \
 9106     old_archive_from_new_cmds \
 9107     predep_objects \
 9108     postdep_objects \
 9109     predeps \
 9110     postdeps \
 9111     compiler_lib_search_path \
 9112     archive_cmds \
 9113     archive_expsym_cmds \
 9114     postinstall_cmds \
 9115     postuninstall_cmds \
 9116     old_archive_from_expsyms_cmds \
 9117     allow_undefined_flag \
 9118     no_undefined_flag \
 9119     export_symbols_cmds \
 9120     hardcode_libdir_flag_spec \
 9121     hardcode_libdir_flag_spec_ld \
 9122     hardcode_libdir_separator \
 9123     hardcode_automatic \
 9124     module_cmds \
 9125     module_expsym_cmds \
 9126     lt_cv_prog_compiler_c_o \
 9127     exclude_expsyms \
 9128     include_expsyms; do
 9129 
 9130     case $var in
 9131     old_archive_cmds | \
 9132     old_archive_from_new_cmds | \
 9133     archive_cmds | \
 9134     archive_expsym_cmds | \
 9135     module_cmds | \
 9136     module_expsym_cmds | \
 9137     old_archive_from_expsyms_cmds | \
 9138     export_symbols_cmds | \
 9139     extract_expsyms_cmds | reload_cmds | finish_cmds | \
 9140     postinstall_cmds | postuninstall_cmds | \
 9141     old_postinstall_cmds | old_postuninstall_cmds | \
 9142     sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
 9143       # Double-quote double-evaled strings.
 9144       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
 9145       ;;
 9146     *)
 9147       eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
 9148       ;;
 9149     esac
 9150   done
 9151 
 9152   case $lt_echo in
 9153   *'\$0 --fallback-echo"')
 9154     lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
 9155     ;;
 9156   esac
 9157 
 9158 cfgfile="${ofile}T"
 9159   trap "$rm \"$cfgfile\"; exit 1" 1 2 15
 9160   $rm -f "$cfgfile"
 9161   { echo "$as_me:$LINENO: creating $ofile" >&5
 9162 echo "$as_me: creating $ofile" >&6;}
 9163 
 9164   cat <<__EOF__ >> "$cfgfile"
 9165 #! $SHELL
 9166 
 9167 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
 9168 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
 9169 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
 9170 #
 9171 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
 9172 # Free Software Foundation, Inc.
 9173 #
 9174 # This file is part of GNU Libtool:
 9175 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
 9176 #
 9177 # This program is free software; you can redistribute it and/or modify
 9178 # it under the terms of the GNU General Public License as published by
 9179 # the Free Software Foundation; either version 2 of the License, or
 9180 # (at your option) any later version.
 9181 #
 9182 # This program is distributed in the hope that it will be useful, but
 9183 # WITHOUT ANY WARRANTY; without even the implied warranty of
 9184 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 9185 # General Public License for more details.
 9186 #
 9187 # You should have received a copy of the GNU General Public License
 9188 # along with this program; if not, write to the Free Software
 9189 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 9190 #
 9191 # As a special exception to the GNU General Public License, if you
 9192 # distribute this file as part of a program that contains a
 9193 # configuration script generated by Autoconf, you may include it under
 9194 # the same distribution terms that you use for the rest of that program.
 9195 
 9196 # A sed program that does not truncate output.
 9197 SED=$lt_SED
 9198 
 9199 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
 9200 Xsed="$SED -e s/^X//"
 9201 
 9202 # The HP-UX ksh and POSIX shell print the target directory to stdout
 9203 # if CDPATH is set.
 9204 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
 9205 
 9206 # The names of the tagged configurations supported by this script.
 9207 available_tags=
 9208 
 9209 # ### BEGIN LIBTOOL CONFIG
 9210 
 9211 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
 9212 
 9213 # Shell to use when invoking shell scripts.
 9214 SHELL=$lt_SHELL
 9215 
 9216 # Whether or not to build shared libraries.
 9217 build_libtool_libs=$enable_shared
 9218 
 9219 # Whether or not to build static libraries.
 9220 build_old_libs=$enable_static
 9221 
 9222 # Whether or not to add -lc for building shared libraries.
 9223 build_libtool_need_lc=$archive_cmds_need_lc
 9224 
 9225 # Whether or not to disallow shared libs when runtime libs are static
 9226 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
 9227 
 9228 # Whether or not to optimize for fast installation.
 9229 fast_install=$enable_fast_install
 9230 
 9231 # The host system.
 9232 host_alias=$host_alias
 9233 host=$host
 9234 
 9235 # An echo program that does not interpret backslashes.
 9236 echo=$lt_echo
 9237 
 9238 # The archiver.
 9239 AR=$lt_AR
 9240 AR_FLAGS=$lt_AR_FLAGS
 9241 
 9242 # A C compiler.
 9243 LTCC=$lt_LTCC
 9244 
 9245 # A language-specific compiler.
 9246 CC=$lt_compiler
 9247 
 9248 # Is the compiler the GNU C compiler?
 9249 with_gcc=$GCC
 9250 
 9251 # An ERE matcher.
 9252 EGREP=$lt_EGREP
 9253 
 9254 # The linker used to build libraries.
 9255 LD=$lt_LD
 9256 
 9257 # Whether we need hard or soft links.
 9258 LN_S=$lt_LN_S
 9259 
 9260 # A BSD-compatible nm program.
 9261 NM=$lt_NM
 9262 
 9263 # A symbol stripping program
 9264 STRIP=$lt_STRIP
 9265 
 9266 # Used to examine libraries when file_magic_cmd begins "file"
 9267 MAGIC_CMD=$MAGIC_CMD
 9268 
 9269 # Used on cygwin: DLL creation program.
 9270 DLLTOOL="$DLLTOOL"
 9271 
 9272 # Used on cygwin: object dumper.
 9273 OBJDUMP="$OBJDUMP"
 9274 
 9275 # Used on cygwin: assembler.
 9276 AS="$AS"
 9277 
 9278 # The name of the directory that contains temporary libtool files.
 9279 objdir=$objdir
 9280 
 9281 # How to create reloadable object files.
 9282 reload_flag=$lt_reload_flag
 9283 reload_cmds=$lt_reload_cmds
 9284 
 9285 # How to pass a linker flag through the compiler.
 9286 wl=$lt_lt_prog_compiler_wl
 9287 
 9288 # Object file suffix (normally "o").
 9289 objext="$ac_objext"
 9290 
 9291 # Old archive suffix (normally "a").
 9292 libext="$libext"
 9293 
 9294 # Shared library suffix (normally ".so").
 9295 shrext_cmds='$shrext_cmds'
 9296 
 9297 # Executable file suffix (normally "").
 9298 exeext="$exeext"
 9299 
 9300 # Additional compiler flags for building library objects.
 9301 pic_flag=$lt_lt_prog_compiler_pic
 9302 pic_mode=$pic_mode
 9303 
 9304 # What is the maximum length of a command?
 9305 max_cmd_len=$lt_cv_sys_max_cmd_len
 9306 
 9307 # Does compiler simultaneously support -c and -o options?
 9308 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
 9309 
 9310 # Must we lock files when doing compilation ?
 9311 need_locks=$lt_need_locks
 9312 
 9313 # Do we need the lib prefix for modules?
 9314 need_lib_prefix=$need_lib_prefix
 9315 
 9316 # Do we need a version for libraries?
 9317 need_version=$need_version
 9318 
 9319 # Whether dlopen is supported.
 9320 dlopen_support=$enable_dlopen
 9321 
 9322 # Whether dlopen of programs is supported.
 9323 dlopen_self=$enable_dlopen_self
 9324 
 9325 # Whether dlopen of statically linked programs is supported.
 9326 dlopen_self_static=$enable_dlopen_self_static
 9327 
 9328 # Compiler flag to prevent dynamic linking.
 9329 link_static_flag=$lt_lt_prog_compiler_static
 9330 
 9331 # Compiler flag to turn off builtin functions.
 9332 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
 9333 
 9334 # Compiler flag to allow reflexive dlopens.
 9335 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
 9336 
 9337 # Compiler flag to generate shared objects directly from archives.
 9338 whole_archive_flag_spec=$lt_whole_archive_flag_spec
 9339 
 9340 # Compiler flag to generate thread-safe objects.
 9341 thread_safe_flag_spec=$lt_thread_safe_flag_spec
 9342 
 9343 # Library versioning type.
 9344 version_type=$version_type
 9345 
 9346 # Format of library name prefix.
 9347 libname_spec=$lt_libname_spec
 9348 
 9349 # List of archive names.  First name is the real one, the rest are links.
 9350 # The last name is the one that the linker finds with -lNAME.
 9351 library_names_spec=$lt_library_names_spec
 9352 
 9353 # The coded name of the library, if different from the real name.
 9354 soname_spec=$lt_soname_spec
 9355 
 9356 # Commands used to build and install an old-style archive.
 9357 RANLIB=$lt_RANLIB
 9358 old_archive_cmds=$lt_old_archive_cmds
 9359 old_postinstall_cmds=$lt_old_postinstall_cmds
 9360 old_postuninstall_cmds=$lt_old_postuninstall_cmds
 9361 
 9362 # Create an old-style archive from a shared archive.
 9363 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
 9364 
 9365 # Create a temporary old-style archive to link instead of a shared archive.
 9366 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
 9367 
 9368 # Commands used to build and install a shared archive.
 9369 archive_cmds=$lt_archive_cmds
 9370 archive_expsym_cmds=$lt_archive_expsym_cmds
 9371 postinstall_cmds=$lt_postinstall_cmds
 9372 postuninstall_cmds=$lt_postuninstall_cmds
 9373 
 9374 # Commands used to build a loadable module (assumed same as above if empty)
 9375 module_cmds=$lt_module_cmds
 9376 module_expsym_cmds=$lt_module_expsym_cmds
 9377 
 9378 # Commands to strip libraries.
 9379 old_striplib=$lt_old_striplib
 9380 striplib=$lt_striplib
 9381 
 9382 # Dependencies to place before the objects being linked to create a
 9383 # shared library.
 9384 predep_objects=$lt_predep_objects
 9385 
 9386 # Dependencies to place after the objects being linked to create a
 9387 # shared library.
 9388 postdep_objects=$lt_postdep_objects
 9389 
 9390 # Dependencies to place before the objects being linked to create a
 9391 # shared library.
 9392 predeps=$lt_predeps
 9393 
 9394 # Dependencies to place after the objects being linked to create a
 9395 # shared library.
 9396 postdeps=$lt_postdeps
 9397 
 9398 # The library search path used internally by the compiler when linking
 9399 # a shared library.
 9400 compiler_lib_search_path=$lt_compiler_lib_search_path
 9401 
 9402 # Method to check whether dependent libraries are shared objects.
 9403 deplibs_check_method=$lt_deplibs_check_method
 9404 
 9405 # Command to use when deplibs_check_method == file_magic.
 9406 file_magic_cmd=$lt_file_magic_cmd
 9407 
 9408 # Flag that allows shared libraries with undefined symbols to be built.
 9409 allow_undefined_flag=$lt_allow_undefined_flag
 9410 
 9411 # Flag that forces no undefined symbols.
 9412 no_undefined_flag=$lt_no_undefined_flag
 9413 
 9414 # Commands used to finish a libtool library installation in a directory.
 9415 finish_cmds=$lt_finish_cmds
 9416 
 9417 # Same as above, but a single script fragment to be evaled but not shown.
 9418 finish_eval=$lt_finish_eval
 9419 
 9420 # Take the output of nm and produce a listing of raw symbols and C names.
 9421 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
 9422 
 9423 # Transform the output of nm in a proper C declaration
 9424 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
 9425 
 9426 # Transform the output of nm in a C name address pair
 9427 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
 9428 
 9429 # This is the shared library runtime path variable.
 9430 runpath_var=$runpath_var
 9431 
 9432 # This is the shared library path variable.
 9433 shlibpath_var=$shlibpath_var
 9434 
 9435 # Is shlibpath searched before the hard-coded library search path?
 9436 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
 9437 
 9438 # How to hardcode a shared library path into an executable.
 9439 hardcode_action=$hardcode_action
 9440 
 9441 # Whether we should hardcode library paths into libraries.
 9442 hardcode_into_libs=$hardcode_into_libs
 9443 
 9444 # Flag to hardcode \$libdir into a binary during linking.
 9445 # This must work even if \$libdir does not exist.
 9446 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
 9447 
 9448 # If ld is used when linking, flag to hardcode \$libdir into
 9449 # a binary during linking. This must work even if \$libdir does
 9450 # not exist.
 9451 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
 9452 
 9453 # Whether we need a single -rpath flag with a separated argument.
 9454 hardcode_libdir_separator=$lt_hardcode_libdir_separator
 9455 
 9456 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
 9457 # resulting binary.
 9458 hardcode_direct=$hardcode_direct
 9459 
 9460 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
 9461 # resulting binary.
 9462 hardcode_minus_L=$hardcode_minus_L
 9463 
 9464 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
 9465 # the resulting binary.
 9466 hardcode_shlibpath_var=$hardcode_shlibpath_var
 9467 
 9468 # Set to yes if building a shared library automatically hardcodes DIR into the library
 9469 # and all subsequent libraries and executables linked against it.
 9470 hardcode_automatic=$hardcode_automatic
 9471 
 9472 # Variables whose values should be saved in libtool wrapper scripts and
 9473 # restored at relink time.
 9474 variables_saved_for_relink="$variables_saved_for_relink"
 9475 
 9476 # Whether libtool must link a program against all its dependency libraries.
 9477 link_all_deplibs=$link_all_deplibs
 9478 
 9479 # Compile-time system search path for libraries
 9480 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
 9481 
 9482 # Run-time system search path for libraries
 9483 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
 9484 
 9485 # Fix the shell variable \$srcfile for the compiler.
 9486 fix_srcfile_path="$fix_srcfile_path"
 9487 
 9488 # Set to yes if exported symbols are required.
 9489 always_export_symbols=$always_export_symbols
 9490 
 9491 # The commands to list exported symbols.
 9492 export_symbols_cmds=$lt_export_symbols_cmds
 9493 
 9494 # The commands to extract the exported symbol list from a shared archive.
 9495 extract_expsyms_cmds=$lt_extract_expsyms_cmds
 9496 
 9497 # Symbols that should not be listed in the preloaded symbols.
 9498 exclude_expsyms=$lt_exclude_expsyms
 9499 
 9500 # Symbols that must always be exported.
 9501 include_expsyms=$lt_include_expsyms
 9502 
 9503 # ### END LIBTOOL CONFIG
 9504 
 9505 __EOF__
 9506 
 9507 
 9508   case $host_os in
 9509   aix3*)
 9510     cat <<\EOF >> "$cfgfile"
 9511 
 9512 # AIX sometimes has problems with the GCC collect2 program.  For some
 9513 # reason, if we set the COLLECT_NAMES environment variable, the problems
 9514 # vanish in a puff of smoke.
 9515 if test "X${COLLECT_NAMES+set}" != Xset; then
 9516   COLLECT_NAMES=
 9517   export COLLECT_NAMES
 9518 fi
 9519 EOF
 9520     ;;
 9521   esac
 9522 
 9523   # We use sed instead of cat because bash on DJGPP gets confused if
 9524   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
 9525   # text mode, it properly converts lines to CR/LF.  This bash problem
 9526   # is reportedly fixed, but why not run on old versions too?
 9527   sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
 9528 
 9529   mv -f "$cfgfile" "$ofile" || \
 9530     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
 9531   chmod +x "$ofile"
 9532 
 9533 else
 9534   # If there is no Makefile yet, we rely on a make rule to execute
 9535   # `config.status --recheck' to rerun these tests and create the
 9536   # libtool script then.
 9537   ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
 9538   if test -f "$ltmain_in"; then
 9539     test -f Makefile && make "$ltmain"
 9540   fi
 9541 fi
 9542 
 9543 
 9544 ac_ext=c
 9545 ac_cpp='$CPP $CPPFLAGS'
 9546 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 9547 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 9548 ac_compiler_gnu=$ac_cv_c_compiler_gnu
 9549 
 9550 CC="$lt_save_CC"
 9551 
 9552 
 9553 # Check whether --with-tags or --without-tags was given.
 9554 if test "${with_tags+set}" = set; then
 9555   withval="$with_tags"
 9556   tagnames="$withval"
 9557 fi; 
 9558 
 9559 if test -f "$ltmain" && test -n "$tagnames"; then
 9560   if test ! -f "${ofile}"; then
 9561     { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
 9562 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
 9563   fi
 9564 
 9565   if test -z "$LTCC"; then
 9566     eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
 9567     if test -z "$LTCC"; then
 9568       { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
 9569 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
 9570     else
 9571       { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
 9572 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
 9573     fi
 9574   fi
 9575 
 9576   # Extract list of available tagged configurations in $ofile.
 9577   # Note that this assumes the entire list is on one line.
 9578   available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
 9579 
 9580   lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
 9581   for tagname in $tagnames; do
 9582     IFS="$lt_save_ifs"
 9583     # Check whether tagname contains only valid characters
 9584     case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
 9585     "") ;;
 9586     *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
 9587 echo "$as_me: error: invalid tag name: $tagname" >&2;}
 9588    { (exit 1); exit 1; }; }
 9589 	;;
 9590     esac
 9591 
 9592     if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
 9593     then
 9594       { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
 9595 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
 9596    { (exit 1); exit 1; }; }
 9597     fi
 9598 
 9599     # Update the list of available tags.
 9600     if test -n "$tagname"; then
 9601       echo appending configuration tag \"$tagname\" to $ofile
 9602 
 9603       case $tagname in
 9604       CXX)
 9605 	if test -n "$CXX" && test "X$CXX" != "Xno"; then
 9606 	  ac_ext=cc
 9607 ac_cpp='$CXXCPP $CPPFLAGS'
 9608 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
 9609 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
 9610 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
 9611 
 9612 
 9613 
 9614 
 9615 archive_cmds_need_lc_CXX=no
 9616 allow_undefined_flag_CXX=
 9617 always_export_symbols_CXX=no
 9618 archive_expsym_cmds_CXX=
 9619 export_dynamic_flag_spec_CXX=
 9620 hardcode_direct_CXX=no
 9621 hardcode_libdir_flag_spec_CXX=
 9622 hardcode_libdir_flag_spec_ld_CXX=
 9623 hardcode_libdir_separator_CXX=
 9624 hardcode_minus_L_CXX=no
 9625 hardcode_automatic_CXX=no
 9626 module_cmds_CXX=
 9627 module_expsym_cmds_CXX=
 9628 link_all_deplibs_CXX=unknown
 9629 old_archive_cmds_CXX=$old_archive_cmds
 9630 no_undefined_flag_CXX=
 9631 whole_archive_flag_spec_CXX=
 9632 enable_shared_with_static_runtimes_CXX=no
 9633 
 9634 # Dependencies to place before and after the object being linked:
 9635 predep_objects_CXX=
 9636 postdep_objects_CXX=
 9637 predeps_CXX=
 9638 postdeps_CXX=
 9639 compiler_lib_search_path_CXX=
 9640 
 9641 # Source file extension for C++ test sources.
 9642 ac_ext=cc
 9643 
 9644 # Object file extension for compiled C++ test sources.
 9645 objext=o
 9646 objext_CXX=$objext
 9647 
 9648 # Code to be used in simple compile tests
 9649 lt_simple_compile_test_code="int some_variable = 0;\n"
 9650 
 9651 # Code to be used in simple link tests
 9652 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
 9653 
 9654 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
 9655 
 9656 # If no C compiler was specified, use CC.
 9657 LTCC=${LTCC-"$CC"}
 9658 
 9659 # Allow CC to be a program name with arguments.
 9660 compiler=$CC
 9661 
 9662 
 9663 # Allow CC to be a program name with arguments.
 9664 lt_save_CC=$CC
 9665 lt_save_LD=$LD
 9666 lt_save_GCC=$GCC
 9667 GCC=$GXX
 9668 lt_save_with_gnu_ld=$with_gnu_ld
 9669 lt_save_path_LD=$lt_cv_path_LD
 9670 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
 9671   lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
 9672 else
 9673   unset lt_cv_prog_gnu_ld
 9674 fi
 9675 if test -n "${lt_cv_path_LDCXX+set}"; then
 9676   lt_cv_path_LD=$lt_cv_path_LDCXX
 9677 else
 9678   unset lt_cv_path_LD
 9679 fi
 9680 test -z "${LDCXX+set}" || LD=$LDCXX
 9681 CC=${CXX-"c++"}
 9682 compiler=$CC
 9683 compiler_CXX=$CC
 9684 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
 9685 
 9686 # We don't want -fno-exception wen compiling C++ code, so set the
 9687 # no_builtin_flag separately
 9688 if test "$GXX" = yes; then
 9689   lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
 9690 else
 9691   lt_prog_compiler_no_builtin_flag_CXX=
 9692 fi
 9693 
 9694 if test "$GXX" = yes; then
 9695   # Set up default GNU C++ configuration
 9696 
 9697   
 9698 # Check whether --with-gnu-ld or --without-gnu-ld was given.
 9699 if test "${with_gnu_ld+set}" = set; then
 9700   withval="$with_gnu_ld"
 9701   test "$withval" = no || with_gnu_ld=yes
 9702 else
 9703   with_gnu_ld=no
 9704 fi; 
 9705 ac_prog=ld
 9706 if test "$GCC" = yes; then
 9707   # Check if gcc -print-prog-name=ld gives a path.
 9708   echo "$as_me:$LINENO: checking for ld used by $CC" >&5
 9709 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
 9710   case $host in
 9711   *-*-mingw*)
 9712     # gcc leaves a trailing carriage return which upsets mingw
 9713     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 9714   *)
 9715     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 9716   esac
 9717   case $ac_prog in
 9718     # Accept absolute paths.
 9719     [\\/]* | ?:[\\/]*)
 9720       re_direlt='/[^/][^/]*/\.\./'
 9721       # Canonicalize the pathname of ld
 9722       ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
 9723       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 9724 	ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
 9725       done
 9726       test -z "$LD" && LD="$ac_prog"
 9727       ;;
 9728   "")
 9729     # If it fails, then pretend we aren't using GCC.
 9730     ac_prog=ld
 9731     ;;
 9732   *)
 9733     # If it is relative, then search for the first ld in PATH.
 9734     with_gnu_ld=unknown
 9735     ;;
 9736   esac
 9737 elif test "$with_gnu_ld" = yes; then
 9738   echo "$as_me:$LINENO: checking for GNU ld" >&5
 9739 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
 9740 else
 9741   echo "$as_me:$LINENO: checking for non-GNU ld" >&5
 9742 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
 9743 fi
 9744 if test "${lt_cv_path_LD+set}" = set; then
 9745   echo $ECHO_N "(cached) $ECHO_C" >&6
 9746 else
 9747   if test -z "$LD"; then
 9748   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 9749   for ac_dir in $PATH; do
 9750     IFS="$lt_save_ifs"
 9751     test -z "$ac_dir" && ac_dir=.
 9752     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 9753       lt_cv_path_LD="$ac_dir/$ac_prog"
 9754       # Check to see if the program is GNU ld.  I'd rather use --version,
 9755       # but apparently some GNU ld's only accept -v.
 9756       # Break only if it was the GNU/non-GNU ld that we prefer.
 9757       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
 9758       *GNU* | *'with BFD'*)
 9759 	test "$with_gnu_ld" != no && break
 9760 	;;
 9761       *)
 9762 	test "$with_gnu_ld" != yes && break
 9763 	;;
 9764       esac
 9765     fi
 9766   done
 9767   IFS="$lt_save_ifs"
 9768 else
 9769   lt_cv_path_LD="$LD" # Let the user override the test with a path.
 9770 fi
 9771 fi
 9772 
 9773 LD="$lt_cv_path_LD"
 9774 if test -n "$LD"; then
 9775   echo "$as_me:$LINENO: result: $LD" >&5
 9776 echo "${ECHO_T}$LD" >&6
 9777 else
 9778   echo "$as_me:$LINENO: result: no" >&5
 9779 echo "${ECHO_T}no" >&6
 9780 fi
 9781 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
 9782 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
 9783    { (exit 1); exit 1; }; }
 9784 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
 9785 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
 9786 if test "${lt_cv_prog_gnu_ld+set}" = set; then
 9787   echo $ECHO_N "(cached) $ECHO_C" >&6
 9788 else
 9789   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 9790 case `$LD -v 2>&1 </dev/null` in
 9791 *GNU* | *'with BFD'*)
 9792   lt_cv_prog_gnu_ld=yes
 9793   ;;
 9794 *)
 9795   lt_cv_prog_gnu_ld=no
 9796   ;;
 9797 esac
 9798 fi
 9799 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
 9800 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
 9801 with_gnu_ld=$lt_cv_prog_gnu_ld
 9802 
 9803 
 9804 
 9805   # Check if GNU C++ uses GNU ld as the underlying linker, since the
 9806   # archiving commands below assume that GNU ld is being used.
 9807   if test "$with_gnu_ld" = yes; then
 9808     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
 9809     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'
 9810 
 9811     hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
 9812     export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
 9813 
 9814     # If archive_cmds runs LD, not CC, wlarc should be empty
 9815     # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
 9816     #     investigate it a little bit more. (MM)
 9817     wlarc='${wl}'
 9818 
 9819     # ancient GNU ld didn't support --whole-archive et. al.
 9820     if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
 9821 	grep 'no-whole-archive' > /dev/null; then
 9822       whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 9823     else
 9824       whole_archive_flag_spec_CXX=
 9825     fi
 9826   else
 9827     with_gnu_ld=no
 9828     wlarc=
 9829 
 9830     # A generic and very simple default shared library creation
 9831     # command for GNU C++ for the case where it uses the native
 9832     # linker, instead of GNU ld.  If possible, this setting should
 9833     # overridden to take advantage of the native linker features on
 9834     # the platform it is being used on.
 9835     archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
 9836   fi
 9837 
 9838   # Commands to make compiler produce verbose output that lists
 9839   # what "hidden" libraries, object files and flags are used when
 9840   # linking a shared library.
 9841   output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
 9842 
 9843 else
 9844   GXX=no
 9845   with_gnu_ld=no
 9846   wlarc=
 9847 fi
 9848 
 9849 # PORTME: fill in a description of your system's C++ link characteristics
 9850 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
 9851 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
 9852 ld_shlibs_CXX=yes
 9853 case $host_os in
 9854   aix3*)
 9855     # FIXME: insert proper C++ library support
 9856     ld_shlibs_CXX=no
 9857     ;;
 9858   aix4* | aix5*)
 9859     if test "$host_cpu" = ia64; then
 9860       # On IA64, the linker does run time linking by default, so we don't
 9861       # have to do anything special.
 9862       aix_use_runtimelinking=no
 9863       exp_sym_flag='-Bexport'
 9864       no_entry_flag=""
 9865     else
 9866       aix_use_runtimelinking=no
 9867 
 9868       # Test if we are trying to use run time linking or normal
 9869       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 9870       # need to do runtime linking.
 9871       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 9872 	for ld_flag in $LDFLAGS; do
 9873 	  case $ld_flag in
 9874 	  *-brtl*)
 9875 	    aix_use_runtimelinking=yes
 9876 	    break
 9877 	    ;;
 9878 	  esac
 9879 	done
 9880       esac
 9881 
 9882       exp_sym_flag='-bexport'
 9883       no_entry_flag='-bnoentry'
 9884     fi
 9885 
 9886     # When large executables or shared objects are built, AIX ld can
 9887     # have problems creating the table of contents.  If linking a library
 9888     # or program results in "error TOC overflow" add -mminimal-toc to
 9889     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 9890     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 9891 
 9892     archive_cmds_CXX=''
 9893     hardcode_direct_CXX=yes
 9894     hardcode_libdir_separator_CXX=':'
 9895     link_all_deplibs_CXX=yes
 9896 
 9897     if test "$GXX" = yes; then
 9898       case $host_os in aix4.012|aix4.012.*)
 9899       # We only want to do this on AIX 4.2 and lower, the check
 9900       # below for broken collect2 doesn't work under 4.3+
 9901 	collect2name=`${CC} -print-prog-name=collect2`
 9902 	if test -f "$collect2name" && \
 9903 	   strings "$collect2name" | grep resolve_lib_name >/dev/null
 9904 	then
 9905 	  # We have reworked collect2
 9906 	  hardcode_direct_CXX=yes
 9907 	else
 9908 	  # We have old collect2
 9909 	  hardcode_direct_CXX=unsupported
 9910 	  # It fails to find uninstalled libraries when the uninstalled
 9911 	  # path is not listed in the libpath.  Setting hardcode_minus_L
 9912 	  # to unsupported forces relinking
 9913 	  hardcode_minus_L_CXX=yes
 9914 	  hardcode_libdir_flag_spec_CXX='-L$libdir'
 9915 	  hardcode_libdir_separator_CXX=
 9916 	fi
 9917       esac
 9918       shared_flag='-shared'
 9919     else
 9920       # not using gcc
 9921       if test "$host_cpu" = ia64; then
 9922 	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
 9923 	# chokes on -Wl,-G. The following line is correct:
 9924 	shared_flag='-G'
 9925       else
 9926 	if test "$aix_use_runtimelinking" = yes; then
 9927 	  shared_flag='${wl}-G'
 9928 	else
 9929 	  shared_flag='${wl}-bM:SRE'
 9930 	fi
 9931       fi
 9932     fi
 9933 
 9934     # It seems that -bexpall does not export symbols beginning with
 9935     # underscore (_), so it is better to generate a list of symbols to export.
 9936     always_export_symbols_CXX=yes
 9937     if test "$aix_use_runtimelinking" = yes; then
 9938       # Warning - without using the other runtime loading flags (-brtl),
 9939       # -berok will link without error, but may produce a broken library.
 9940       allow_undefined_flag_CXX='-berok'
 9941       # Determine the default libpath from the value encoded in an empty executable.
 9942       cat >conftest.$ac_ext <<_ACEOF
 9943 /* confdefs.h.  */
 9944 _ACEOF
 9945 cat confdefs.h >>conftest.$ac_ext
 9946 cat >>conftest.$ac_ext <<_ACEOF
 9947 /* end confdefs.h.  */
 9948 
 9949 int
 9950 main ()
 9951 {
 9952 
 9953   ;
 9954   return 0;
 9955 }
 9956 _ACEOF
 9957 rm -f conftest.$ac_objext conftest$ac_exeext
 9958 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
 9959   (eval $ac_link) 2>conftest.er1
 9960   ac_status=$?
 9961   grep -v '^ *+' conftest.er1 >conftest.err
 9962   rm -f conftest.er1
 9963   cat conftest.err >&5
 9964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 9965   (exit $ac_status); } &&
 9966 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
 9967   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 9968   (eval $ac_try) 2>&5
 9969   ac_status=$?
 9970   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 9971   (exit $ac_status); }; } &&
 9972 	 { ac_try='test -s conftest$ac_exeext'
 9973   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
 9974   (eval $ac_try) 2>&5
 9975   ac_status=$?
 9976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
 9977   (exit $ac_status); }; }; then
 9978   
 9979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
 9980 }'`
 9981 # Check for a 64-bit object if we didn't find anything.
 9982 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; }
 9983 }'`; fi
 9984 else
 9985   echo "$as_me: failed program was:" >&5
 9986 sed 's/^/| /' conftest.$ac_ext >&5
 9987 
 9988 fi
 9989 rm -f conftest.err conftest.$ac_objext \
 9990       conftest$ac_exeext conftest.$ac_ext
 9991 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
 9992 
 9993       hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
 9994 
 9995       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"
 9996      else
 9997       if test "$host_cpu" = ia64; then
 9998 	hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
 9999 	allow_undefined_flag_CXX="-z nodefs"
10000 	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"
10001       else
10002 	# Determine the default libpath from the value encoded in an empty executable.
10003 	cat >conftest.$ac_ext <<_ACEOF
10004 /* confdefs.h.  */
10005 _ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h.  */
10009 
10010 int
10011 main ()
10012 {
10013 
10014   ;
10015   return 0;
10016 }
10017 _ACEOF
10018 rm -f conftest.$ac_objext conftest$ac_exeext
10019 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10020   (eval $ac_link) 2>conftest.er1
10021   ac_status=$?
10022   grep -v '^ *+' conftest.er1 >conftest.err
10023   rm -f conftest.er1
10024   cat conftest.err >&5
10025   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10026   (exit $ac_status); } &&
10027 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
10028   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10029   (eval $ac_try) 2>&5
10030   ac_status=$?
10031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032   (exit $ac_status); }; } &&
10033 	 { ac_try='test -s conftest$ac_exeext'
10034   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10035   (eval $ac_try) 2>&5
10036   ac_status=$?
10037   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10038   (exit $ac_status); }; }; then
10039   
10040 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10041 }'`
10042 # Check for a 64-bit object if we didn't find anything.
10043 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; }
10044 }'`; fi
10045 else
10046   echo "$as_me: failed program was:" >&5
10047 sed 's/^/| /' conftest.$ac_ext >&5
10048 
10049 fi
10050 rm -f conftest.err conftest.$ac_objext \
10051       conftest$ac_exeext conftest.$ac_ext
10052 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10053 
10054 	hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10055 	# Warning - without using the other run time loading flags,
10056 	# -berok will link without error, but may produce a broken library.
10057 	no_undefined_flag_CXX=' ${wl}-bernotok'
10058 	allow_undefined_flag_CXX=' ${wl}-berok'
10059 	# -bexpall does not export symbols beginning with underscore (_)
10060 	always_export_symbols_CXX=yes
10061 	# Exported symbols can be pulled into shared objects from archives
10062 	whole_archive_flag_spec_CXX=' '
10063 	archive_cmds_need_lc_CXX=yes
10064 	# This is similar to how AIX traditionally builds it's shared libraries.
10065 	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'
10066       fi
10067     fi
10068     ;;
10069   chorus*)
10070     case $cc_basename in
10071       *)
10072 	# FIXME: insert proper C++ library support
10073 	ld_shlibs_CXX=no
10074 	;;
10075     esac
10076     ;;
10077 
10078   cygwin* | mingw* | pw32*)
10079     # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10080     # as there is no search path for DLLs.
10081     hardcode_libdir_flag_spec_CXX='-L$libdir'
10082     allow_undefined_flag_CXX=unsupported
10083     always_export_symbols_CXX=no
10084     enable_shared_with_static_runtimes_CXX=yes
10085 
10086     if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10087       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'
10088       # If the export-symbols file already is a .def file (1st line
10089       # is EXPORTS), use it as is; otherwise, prepend...
10090       archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10091 	cp $export_symbols $output_objdir/$soname.def;
10092       else
10093 	echo EXPORTS > $output_objdir/$soname.def;
10094 	cat $export_symbols >> $output_objdir/$soname.def;
10095       fi~
10096       $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'
10097     else
10098       ld_shlibs_CXX=no
10099     fi
10100   ;;
10101 
10102   darwin* | rhapsody*)
10103   if test "$GXX" = yes; then
10104     archive_cmds_need_lc_CXX=no
10105     case "$host_os" in
10106     rhapsody* | darwin1.[012])
10107       allow_undefined_flag_CXX='-undefined suppress'
10108       ;;
10109     *) # Darwin 1.3 on
10110       if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10111       	allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10112       else
10113         case ${MACOSX_DEPLOYMENT_TARGET} in
10114           10.[012])
10115             allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
10116             ;;
10117           10.*)
10118             allow_undefined_flag_CXX='-undefined dynamic_lookup'
10119             ;;
10120         esac
10121       fi
10122       ;;
10123     esac
10124     lt_int_apple_cc_single_mod=no
10125     output_verbose_link_cmd='echo'
10126     if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
10127       lt_int_apple_cc_single_mod=yes
10128     fi
10129     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10130       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10131     else
10132       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'
10133     fi
10134     module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10135 
10136     # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
10137     if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10138       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}'
10139     else
10140       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}'
10141     fi
10142     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}'
10143     hardcode_direct_CXX=no
10144     hardcode_automatic_CXX=yes
10145     hardcode_shlibpath_var_CXX=unsupported
10146     whole_archive_flag_spec_CXX='-all_load $convenience'
10147     link_all_deplibs_CXX=yes
10148   else
10149     ld_shlibs_CXX=no
10150   fi
10151     ;;
10152 
10153   dgux*)
10154     case $cc_basename in
10155       ec++)
10156 	# FIXME: insert proper C++ library support
10157 	ld_shlibs_CXX=no
10158 	;;
10159       ghcx)
10160 	# Green Hills C++ Compiler
10161 	# FIXME: insert proper C++ library support
10162 	ld_shlibs_CXX=no
10163 	;;
10164       *)
10165 	# FIXME: insert proper C++ library support
10166 	ld_shlibs_CXX=no
10167 	;;
10168     esac
10169     ;;
10170   freebsd12*)
10171     # C++ shared libraries reported to be fairly broken before switch to ELF
10172     ld_shlibs_CXX=no
10173     ;;
10174   freebsd-elf*)
10175     archive_cmds_need_lc_CXX=no
10176     ;;
10177   freebsd* | kfreebsd*-gnu)
10178     # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10179     # conventions
10180     ld_shlibs_CXX=yes
10181     ;;
10182   gnu*)
10183     ;;
10184   hpux9*)
10185     hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10186     hardcode_libdir_separator_CXX=:
10187     export_dynamic_flag_spec_CXX='${wl}-E'
10188     hardcode_direct_CXX=yes
10189     hardcode_minus_L_CXX=yes # Not in the search PATH,
10190 				# but as the default
10191 				# location of the library.
10192 
10193     case $cc_basename in
10194     CC)
10195       # FIXME: insert proper C++ library support
10196       ld_shlibs_CXX=no
10197       ;;
10198     aCC)
10199       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'
10200       # Commands to make compiler produce verbose output that lists
10201       # what "hidden" libraries, object files and flags are used when
10202       # linking a shared library.
10203       #
10204       # There doesn't appear to be a way to prevent this compiler from
10205       # explicitly linking system object files so we need to strip them
10206       # from the output so that they don't get included in the library
10207       # dependencies.
10208       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'
10209       ;;
10210     *)
10211       if test "$GXX" = yes; then
10212         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'
10213       else
10214         # FIXME: insert proper C++ library support
10215         ld_shlibs_CXX=no
10216       fi
10217       ;;
10218     esac
10219     ;;
10220   hpux10*|hpux11*)
10221     if test $with_gnu_ld = no; then
10222       case "$host_cpu" in
10223       hppa*64*)
10224 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10225 	hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10226 	hardcode_libdir_separator_CXX=:
10227         ;;
10228       ia64*)
10229 	hardcode_libdir_flag_spec_CXX='-L$libdir'
10230         ;;
10231       *)
10232 	hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10233 	hardcode_libdir_separator_CXX=:
10234 	export_dynamic_flag_spec_CXX='${wl}-E'
10235         ;;
10236       esac
10237     fi
10238     case "$host_cpu" in
10239     hppa*64*)
10240       hardcode_direct_CXX=no
10241       hardcode_shlibpath_var_CXX=no
10242       ;;
10243     ia64*)
10244       hardcode_direct_CXX=no
10245       hardcode_shlibpath_var_CXX=no
10246       hardcode_minus_L_CXX=yes # Not in the search PATH,
10247 					      # but as the default
10248 					      # location of the library.
10249       ;;
10250     *)
10251       hardcode_direct_CXX=yes
10252       hardcode_minus_L_CXX=yes # Not in the search PATH,
10253 					      # but as the default
10254 					      # location of the library.
10255       ;;
10256     esac
10257 
10258     case $cc_basename in
10259       CC)
10260 	# FIXME: insert proper C++ library support
10261 	ld_shlibs_CXX=no
10262 	;;
10263       aCC)
10264 	case "$host_cpu" in
10265 	hppa*64*|ia64*)
10266 	  archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10267 	  ;;
10268 	*)
10269 	  archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10270 	  ;;
10271 	esac
10272 	# Commands to make compiler produce verbose output that lists
10273 	# what "hidden" libraries, object files and flags are used when
10274 	# linking a shared library.
10275 	#
10276 	# There doesn't appear to be a way to prevent this compiler from
10277 	# explicitly linking system object files so we need to strip them
10278 	# from the output so that they don't get included in the library
10279 	# dependencies.
10280 	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'
10281 	;;
10282       *)
10283 	if test "$GXX" = yes; then
10284 	  if test $with_gnu_ld = no; then
10285 	    case "$host_cpu" in
10286 	    ia64*|hppa*64*)
10287 	      archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
10288 	      ;;
10289 	    *)
10290 	      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'
10291 	      ;;
10292 	    esac
10293 	  fi
10294 	else
10295 	  # FIXME: insert proper C++ library support
10296 	  ld_shlibs_CXX=no
10297 	fi
10298 	;;
10299     esac
10300     ;;
10301   irix5* | irix6*)
10302     case $cc_basename in
10303       CC)
10304 	# SGI C++
10305 	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'
10306 
10307 	# Archives containing C++ object files must be created using
10308 	# "CC -ar", where "CC" is the IRIX C++ compiler.  This is
10309 	# necessary to make sure instantiated templates are included
10310 	# in the archive.
10311 	old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10312 	;;
10313       *)
10314 	if test "$GXX" = yes; then
10315 	  if test "$with_gnu_ld" = no; then
10316 	    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'
10317 	  else
10318 	    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'
10319 	  fi
10320 	fi
10321 	link_all_deplibs_CXX=yes
10322 	;;
10323     esac
10324     hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10325     hardcode_libdir_separator_CXX=:
10326     ;;
10327   linux*)
10328     case $cc_basename in
10329       KCC)
10330 	# Kuck and Associates, Inc. (KAI) C++ Compiler
10331 
10332 	# KCC will only create a shared library if the output file
10333 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10334 	# to its proper name (with version) after linking.
10335 	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'
10336 	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'
10337 	# Commands to make compiler produce verbose output that lists
10338 	# what "hidden" libraries, object files and flags are used when
10339 	# linking a shared library.
10340 	#
10341 	# There doesn't appear to be a way to prevent this compiler from
10342 	# explicitly linking system object files so we need to strip them
10343 	# from the output so that they don't get included in the library
10344 	# dependencies.
10345 	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'
10346 
10347 	hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10348 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10349 
10350 	# Archives containing C++ object files must be created using
10351 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10352 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10353 	;;
10354       icpc)
10355 	# Intel C++
10356 	with_gnu_ld=yes
10357 	archive_cmds_need_lc_CXX=no
10358 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10359 	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'
10360 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10361 	export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10362 	whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10363 	;;
10364       cxx)
10365 	# Compaq C++
10366 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10367 	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'
10368 
10369 	runpath_var=LD_RUN_PATH
10370 	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10371 	hardcode_libdir_separator_CXX=:
10372 
10373 	# Commands to make compiler produce verbose output that lists
10374 	# what "hidden" libraries, object files and flags are used when
10375 	# linking a shared library.
10376 	#
10377 	# There doesn't appear to be a way to prevent this compiler from
10378 	# explicitly linking system object files so we need to strip them
10379 	# from the output so that they don't get included in the library
10380 	# dependencies.
10381 	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'
10382 	;;
10383     esac
10384     ;;
10385   lynxos*)
10386     # FIXME: insert proper C++ library support
10387     ld_shlibs_CXX=no
10388     ;;
10389   m88k*)
10390     # FIXME: insert proper C++ library support
10391     ld_shlibs_CXX=no
10392     ;;
10393   mvs*)
10394     case $cc_basename in
10395       cxx)
10396 	# FIXME: insert proper C++ library support
10397 	ld_shlibs_CXX=no
10398 	;;
10399       *)
10400 	# FIXME: insert proper C++ library support
10401 	ld_shlibs_CXX=no
10402 	;;
10403     esac
10404     ;;
10405   netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10406     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10407       archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10408       wlarc=
10409       hardcode_libdir_flag_spec_CXX='-R$libdir'
10410       hardcode_direct_CXX=yes
10411       hardcode_shlibpath_var_CXX=no
10412     fi
10413     # Workaround some broken pre-1.5 toolchains
10414     output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10415     ;;
10416   osf3*)
10417     case $cc_basename in
10418       KCC)
10419 	# Kuck and Associates, Inc. (KAI) C++ Compiler
10420 
10421 	# KCC will only create a shared library if the output file
10422 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10423 	# to its proper name (with version) after linking.
10424 	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'
10425 
10426 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10427 	hardcode_libdir_separator_CXX=:
10428 
10429 	# Archives containing C++ object files must be created using
10430 	# "CC -Bstatic", where "CC" is the KAI C++ compiler.
10431 	old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10432 
10433 	;;
10434       RCC)
10435 	# Rational C++ 2.4.1
10436 	# FIXME: insert proper C++ library support
10437 	ld_shlibs_CXX=no
10438 	;;
10439       cxx)
10440 	allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10441 	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'
10442 
10443 	hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10444 	hardcode_libdir_separator_CXX=:
10445 
10446 	# Commands to make compiler produce verbose output that lists
10447 	# what "hidden" libraries, object files and flags are used when
10448 	# linking a shared library.
10449 	#
10450 	# There doesn't appear to be a way to prevent this compiler from
10451 	# explicitly linking system object files so we need to strip them
10452 	# from the output so that they don't get included in the library
10453 	# dependencies.
10454 	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'
10455 	;;
10456       *)
10457 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10458 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10459 	  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'
10460 
10461 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10462 	  hardcode_libdir_separator_CXX=:
10463 
10464 	  # Commands to make compiler produce verbose output that lists
10465 	  # what "hidden" libraries, object files and flags are used when
10466 	  # linking a shared library.
10467 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10468 
10469 	else
10470 	  # FIXME: insert proper C++ library support
10471 	  ld_shlibs_CXX=no
10472 	fi
10473 	;;
10474     esac
10475     ;;
10476   osf4* | osf5*)
10477     case $cc_basename in
10478       KCC)
10479 	# Kuck and Associates, Inc. (KAI) C++ Compiler
10480 
10481 	# KCC will only create a shared library if the output file
10482 	# ends with ".so" (or ".sl" for HP-UX), so rename the library
10483 	# to its proper name (with version) after linking.
10484 	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'
10485 
10486 	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10487 	hardcode_libdir_separator_CXX=:
10488 
10489 	# Archives containing C++ object files must be created using
10490 	# the KAI C++ compiler.
10491 	old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
10492 	;;
10493       RCC)
10494 	# Rational C++ 2.4.1
10495 	# FIXME: insert proper C++ library support
10496 	ld_shlibs_CXX=no
10497 	;;
10498       cxx)
10499 	allow_undefined_flag_CXX=' -expect_unresolved \*'
10500 	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'
10501 	archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
10502 	  echo "-hidden">> $lib.exp~
10503 	  $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~
10504 	  $rm $lib.exp'
10505 
10506 	hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10507 	hardcode_libdir_separator_CXX=:
10508 
10509 	# Commands to make compiler produce verbose output that lists
10510 	# what "hidden" libraries, object files and flags are used when
10511 	# linking a shared library.
10512 	#
10513 	# There doesn't appear to be a way to prevent this compiler from
10514 	# explicitly linking system object files so we need to strip them
10515 	# from the output so that they don't get included in the library
10516 	# dependencies.
10517 	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'
10518 	;;
10519       *)
10520 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10521 	  allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10522 	 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'
10523 
10524 	  hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10525 	  hardcode_libdir_separator_CXX=:
10526 
10527 	  # Commands to make compiler produce verbose output that lists
10528 	  # what "hidden" libraries, object files and flags are used when
10529 	  # linking a shared library.
10530 	  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10531 
10532 	else
10533 	  # FIXME: insert proper C++ library support
10534 	  ld_shlibs_CXX=no
10535 	fi
10536 	;;
10537     esac
10538     ;;
10539   psos*)
10540     # FIXME: insert proper C++ library support
10541     ld_shlibs_CXX=no
10542     ;;
10543   sco*)
10544     archive_cmds_need_lc_CXX=no
10545     case $cc_basename in
10546       CC)
10547 	# FIXME: insert proper C++ library support
10548 	ld_shlibs_CXX=no
10549 	;;
10550       *)
10551 	# FIXME: insert proper C++ library support
10552 	ld_shlibs_CXX=no
10553 	;;
10554     esac
10555     ;;
10556   sunos4*)
10557     case $cc_basename in
10558       CC)
10559 	# Sun C++ 4.x
10560 	# FIXME: insert proper C++ library support
10561 	ld_shlibs_CXX=no
10562 	;;
10563       lcc)
10564 	# Lucid
10565 	# FIXME: insert proper C++ library support
10566 	ld_shlibs_CXX=no
10567 	;;
10568       *)
10569 	# FIXME: insert proper C++ library support
10570 	ld_shlibs_CXX=no
10571 	;;
10572     esac
10573     ;;
10574   solaris*)
10575     case $cc_basename in
10576       CC)
10577 	# Sun C++ 4.2, 5.x and Centerline C++
10578 	no_undefined_flag_CXX=' -zdefs'
10579 	archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10580 	archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10581 	$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'
10582 
10583 	hardcode_libdir_flag_spec_CXX='-R$libdir'
10584 	hardcode_shlibpath_var_CXX=no
10585 	case $host_os in
10586 	  solaris2.0-5 | solaris2.0-5.*) ;;
10587 	  *)
10588 	    # The C++ compiler is used as linker so we must use $wl
10589 	    # flag to pass the commands to the underlying system
10590 	    # linker.
10591 	    # Supported since Solaris 2.6 (maybe 2.5.1?)
10592 	    whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10593 	    ;;
10594 	esac
10595 	link_all_deplibs_CXX=yes
10596 
10597 	# Commands to make compiler produce verbose output that lists
10598 	# what "hidden" libraries, object files and flags are used when
10599 	# linking a shared library.
10600 	#
10601 	# There doesn't appear to be a way to prevent this compiler from
10602 	# explicitly linking system object files so we need to strip them
10603 	# from the output so that they don't get included in the library
10604 	# dependencies.
10605 	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'
10606 
10607 	# Archives containing C++ object files must be created using
10608 	# "CC -xar", where "CC" is the Sun C++ compiler.  This is
10609 	# necessary to make sure instantiated templates are included
10610 	# in the archive.
10611 	old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
10612 	;;
10613       gcx)
10614 	# Green Hills C++ Compiler
10615 	archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10616 
10617 	# The C++ compiler must be used to create the archive.
10618 	old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
10619 	;;
10620       *)
10621 	# GNU C++ compiler with Solaris linker
10622 	if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10623 	  no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
10624 	  if $CC --version | grep -v '^2\.7' > /dev/null; then
10625 	    archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10626 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10627 		$CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10628 
10629 	    # Commands to make compiler produce verbose output that lists
10630 	    # what "hidden" libraries, object files and flags are used when
10631 	    # linking a shared library.
10632 	    output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10633 	  else
10634 	    # g++ 2.7 appears to require `-G' NOT `-shared' on this
10635 	    # platform.
10636 	    archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
10637 	    archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
10638 		$CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
10639 
10640 	    # Commands to make compiler produce verbose output that lists
10641 	    # what "hidden" libraries, object files and flags are used when
10642 	    # linking a shared library.
10643 	    output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
10644 	  fi
10645 
10646 	  hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
10647 	fi
10648 	;;
10649     esac
10650     ;;
10651   sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
10652     archive_cmds_need_lc_CXX=no
10653     ;;
10654   tandem*)
10655     case $cc_basename in
10656       NCC)
10657 	# NonStop-UX NCC 3.20
10658 	# FIXME: insert proper C++ library support
10659 	ld_shlibs_CXX=no
10660 	;;
10661       *)
10662 	# FIXME: insert proper C++ library support
10663 	ld_shlibs_CXX=no
10664 	;;
10665     esac
10666     ;;
10667   vxworks*)
10668     # FIXME: insert proper C++ library support
10669     ld_shlibs_CXX=no
10670     ;;
10671   *)
10672     # FIXME: insert proper C++ library support
10673     ld_shlibs_CXX=no
10674     ;;
10675 esac
10676 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
10677 echo "${ECHO_T}$ld_shlibs_CXX" >&6
10678 test "$ld_shlibs_CXX" = no && can_build_shared=no
10679 
10680 GCC_CXX="$GXX"
10681 LD_CXX="$LD"
10682 
10683 
10684 cat > conftest.$ac_ext <<EOF
10685 class Foo
10686 {
10687 public:
10688   Foo (void) { a = 0; }
10689 private:
10690   int a;
10691 };
10692 EOF
10693 
10694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10695   (eval $ac_compile) 2>&5
10696   ac_status=$?
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); }; then
10699   # Parse the compiler output and extract the necessary
10700   # objects, libraries and library flags.
10701 
10702   # Sentinel used to keep track of whether or not we are before
10703   # the conftest object file.
10704   pre_test_object_deps_done=no
10705 
10706   # The `*' in the case matches for architectures that use `case' in
10707   # $output_verbose_cmd can trigger glob expansion during the loop
10708   # eval without this substitution.
10709   output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
10710 
10711   for p in `eval $output_verbose_link_cmd`; do
10712     case $p in
10713 
10714     -L* | -R* | -l*)
10715        # Some compilers place space between "-{L,R}" and the path.
10716        # Remove the space.
10717        if test $p = "-L" \
10718 	  || test $p = "-R"; then
10719 	 prev=$p
10720 	 continue
10721        else
10722 	 prev=
10723        fi
10724 
10725        if test "$pre_test_object_deps_done" = no; then
10726 	 case $p in
10727 	 -L* | -R*)
10728 	   # Internal compiler library paths should come after those
10729 	   # provided the user.  The postdeps already come after the
10730 	   # user supplied libs so there is no need to process them.
10731 	   if test -z "$compiler_lib_search_path_CXX"; then
10732 	     compiler_lib_search_path_CXX="${prev}${p}"
10733 	   else
10734 	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
10735 	   fi
10736 	   ;;
10737 	 # The "-l" case would never come before the object being
10738 	 # linked, so don't bother handling this case.
10739 	 esac
10740        else
10741 	 if test -z "$postdeps_CXX"; then
10742 	   postdeps_CXX="${prev}${p}"
10743 	 else
10744 	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
10745 	 fi
10746        fi
10747        ;;
10748 
10749     *.$objext)
10750        # This assumes that the test object file only shows up
10751        # once in the compiler output.
10752        if test "$p" = "conftest.$objext"; then
10753 	 pre_test_object_deps_done=yes
10754 	 continue
10755        fi
10756 
10757        if test "$pre_test_object_deps_done" = no; then
10758 	 if test -z "$predep_objects_CXX"; then
10759 	   predep_objects_CXX="$p"
10760 	 else
10761 	   predep_objects_CXX="$predep_objects_CXX $p"
10762 	 fi
10763        else
10764 	 if test -z "$postdep_objects_CXX"; then
10765 	   postdep_objects_CXX="$p"
10766 	 else
10767 	   postdep_objects_CXX="$postdep_objects_CXX $p"
10768 	 fi
10769        fi
10770        ;;
10771 
10772     *) ;; # Ignore the rest.
10773 
10774     esac
10775   done
10776 
10777   # Clean up.
10778   rm -f a.out a.exe
10779 else
10780   echo "libtool.m4: error: problem compiling CXX test program"
10781 fi
10782 
10783 $rm -f confest.$objext
10784 
10785 case " $postdeps_CXX " in
10786 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
10787 esac
10788 
10789 lt_prog_compiler_wl_CXX=
10790 lt_prog_compiler_pic_CXX=
10791 lt_prog_compiler_static_CXX=
10792 
10793 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
10794 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
10795  
10796   # C++ specific cases for pic, static, wl, etc.
10797   if test "$GXX" = yes; then
10798     lt_prog_compiler_wl_CXX='-Wl,'
10799     lt_prog_compiler_static_CXX='-static'
10800 
10801     case $host_os in
10802     aix*)
10803       # All AIX code is PIC.
10804       if test "$host_cpu" = ia64; then
10805 	# AIX 5 now supports IA64 processor
10806 	lt_prog_compiler_static_CXX='-Bstatic'
10807       fi
10808       ;;
10809     amigaos*)
10810       # FIXME: we need at least 68020 code to build shared libraries, but
10811       # adding the `-m68020' flag to GCC prevents building anything better,
10812       # like `-m68040'.
10813       lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
10814       ;;
10815     beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
10816       # PIC is the default for these OSes.
10817       ;;
10818     mingw* | os2* | pw32*)
10819       # This hack is so that the source file can tell whether it is being
10820       # built for inclusion in a dll (and should export symbols for example).
10821       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
10822       ;;
10823     darwin* | rhapsody*)
10824       # PIC is the default on this platform
10825       # Common symbols not allowed in MH_DYLIB files
10826       lt_prog_compiler_pic_CXX='-fno-common'
10827       ;;
10828     *djgpp*)
10829       # DJGPP does not support shared libraries at all
10830       lt_prog_compiler_pic_CXX=
10831       ;;
10832     sysv4*MP*)
10833       if test -d /usr/nec; then
10834 	lt_prog_compiler_pic_CXX=-Kconform_pic
10835       fi
10836       ;;
10837     hpux*)
10838       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
10839       # not for PA HP-UX.
10840       case "$host_cpu" in
10841       hppa*64*|ia64*)
10842 	;;
10843       *)
10844 	lt_prog_compiler_pic_CXX='-fPIC'
10845 	;;
10846       esac
10847       ;;
10848     *)
10849       lt_prog_compiler_pic_CXX='-fPIC'
10850       ;;
10851     esac
10852   else
10853     case $host_os in
10854       aix4* | aix5*)
10855 	# All AIX code is PIC.
10856 	if test "$host_cpu" = ia64; then
10857 	  # AIX 5 now supports IA64 processor
10858 	  lt_prog_compiler_static_CXX='-Bstatic'
10859 	else
10860 	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
10861 	fi
10862 	;;
10863       chorus*)
10864 	case $cc_basename in
10865 	cxch68)
10866 	  # Green Hills C++ Compiler
10867 	  # _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"
10868 	  ;;
10869 	esac
10870 	;;
10871       dgux*)
10872 	case $cc_basename in
10873 	  ec++)
10874 	    lt_prog_compiler_pic_CXX='-KPIC'
10875 	    ;;
10876 	  ghcx)
10877 	    # Green Hills C++ Compiler
10878 	    lt_prog_compiler_pic_CXX='-pic'
10879 	    ;;
10880 	  *)
10881 	    ;;
10882 	esac
10883 	;;
10884       freebsd* | kfreebsd*-gnu)
10885 	# FreeBSD uses GNU C++
10886 	;;
10887       hpux9* | hpux10* | hpux11*)
10888 	case $cc_basename in
10889 	  CC)
10890 	    lt_prog_compiler_wl_CXX='-Wl,'
10891 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10892 	    if test "$host_cpu" != ia64; then
10893 	      lt_prog_compiler_pic_CXX='+Z'
10894 	    fi
10895 	    ;;
10896 	  aCC)
10897 	    lt_prog_compiler_wl_CXX='-Wl,'
10898 	    lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
10899 	    case "$host_cpu" in
10900 	    hppa*64*|ia64*)
10901 	      # +Z the default
10902 	      ;;
10903 	    *)
10904 	      lt_prog_compiler_pic_CXX='+Z'
10905 	      ;;
10906 	    esac
10907 	    ;;
10908 	  *)
10909 	    ;;
10910 	esac
10911 	;;
10912       irix5* | irix6* | nonstopux*)
10913 	case $cc_basename in
10914 	  CC)
10915 	    lt_prog_compiler_wl_CXX='-Wl,'
10916 	    lt_prog_compiler_static_CXX='-non_shared'
10917 	    # CC pic flag -KPIC is the default.
10918 	    ;;
10919 	  *)
10920 	    ;;
10921 	esac
10922 	;;
10923       linux*)
10924 	case $cc_basename in
10925 	  KCC)
10926 	    # KAI C++ Compiler
10927 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10928 	    lt_prog_compiler_pic_CXX='-fPIC'
10929 	    ;;
10930 	  icpc)
10931 	    # Intel C++
10932 	    lt_prog_compiler_wl_CXX='-Wl,'
10933 	    lt_prog_compiler_pic_CXX='-KPIC'
10934 	    lt_prog_compiler_static_CXX='-static'
10935 	    ;;
10936 	  cxx)
10937 	    # Compaq C++
10938 	    # Make sure the PIC flag is empty.  It appears that all Alpha
10939 	    # Linux and Compaq Tru64 Unix objects are PIC.
10940 	    lt_prog_compiler_pic_CXX=
10941 	    lt_prog_compiler_static_CXX='-non_shared'
10942 	    ;;
10943 	  *)
10944 	    ;;
10945 	esac
10946 	;;
10947       lynxos*)
10948 	;;
10949       m88k*)
10950 	;;
10951       mvs*)
10952 	case $cc_basename in
10953 	  cxx)
10954 	    lt_prog_compiler_pic_CXX='-W c,exportall'
10955 	    ;;
10956 	  *)
10957 	    ;;
10958 	esac
10959 	;;
10960       netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
10961 	;;
10962       osf3* | osf4* | osf5*)
10963 	case $cc_basename in
10964 	  KCC)
10965 	    lt_prog_compiler_wl_CXX='--backend -Wl,'
10966 	    ;;
10967 	  RCC)
10968 	    # Rational C++ 2.4.1
10969 	    lt_prog_compiler_pic_CXX='-pic'
10970 	    ;;
10971 	  cxx)
10972 	    # Digital/Compaq C++
10973 	    lt_prog_compiler_wl_CXX='-Wl,'
10974 	    # Make sure the PIC flag is empty.  It appears that all Alpha
10975 	    # Linux and Compaq Tru64 Unix objects are PIC.
10976 	    lt_prog_compiler_pic_CXX=
10977 	    lt_prog_compiler_static_CXX='-non_shared'
10978 	    ;;
10979 	  *)
10980 	    ;;
10981 	esac
10982 	;;
10983       psos*)
10984 	;;
10985       sco*)
10986 	case $cc_basename in
10987 	  CC)
10988 	    lt_prog_compiler_pic_CXX='-fPIC'
10989 	    ;;
10990 	  *)
10991 	    ;;
10992 	esac
10993 	;;
10994       solaris*)
10995 	case $cc_basename in
10996 	  CC)
10997 	    # Sun C++ 4.2, 5.x and Centerline C++
10998 	    lt_prog_compiler_pic_CXX='-KPIC'
10999 	    lt_prog_compiler_static_CXX='-Bstatic'
11000 	    lt_prog_compiler_wl_CXX='-Qoption ld '
11001 	    ;;
11002 	  gcx)
11003 	    # Green Hills C++ Compiler
11004 	    lt_prog_compiler_pic_CXX='-PIC'
11005 	    ;;
11006 	  *)
11007 	    ;;
11008 	esac
11009 	;;
11010       sunos4*)
11011 	case $cc_basename in
11012 	  CC)
11013 	    # Sun C++ 4.x
11014 	    lt_prog_compiler_pic_CXX='-pic'
11015 	    lt_prog_compiler_static_CXX='-Bstatic'
11016 	    ;;
11017 	  lcc)
11018 	    # Lucid
11019 	    lt_prog_compiler_pic_CXX='-pic'
11020 	    ;;
11021 	  *)
11022 	    ;;
11023 	esac
11024 	;;
11025       tandem*)
11026 	case $cc_basename in
11027 	  NCC)
11028 	    # NonStop-UX NCC 3.20
11029 	    lt_prog_compiler_pic_CXX='-KPIC'
11030 	    ;;
11031 	  *)
11032 	    ;;
11033 	esac
11034 	;;
11035       unixware*)
11036 	;;
11037       vxworks*)
11038 	;;
11039       *)
11040 	lt_prog_compiler_can_build_shared_CXX=no
11041 	;;
11042     esac
11043   fi
11044 
11045 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
11046 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
11047 
11048 #
11049 # Check to make sure the PIC flag actually works.
11050 #
11051 if test -n "$lt_prog_compiler_pic_CXX"; then
11052   
11053 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11054 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
11055 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
11056   echo $ECHO_N "(cached) $ECHO_C" >&6
11057 else
11058   lt_prog_compiler_pic_works_CXX=no
11059   ac_outfile=conftest.$ac_objext
11060    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11061    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11062    # Insert the option either (1) after the last *FLAGS variable, or
11063    # (2) before a word containing "conftest.", or (3) at the end.
11064    # Note that $ac_compile itself does not contain backslashes and begins
11065    # with a dollar sign (not a hyphen), so the echo should work correctly.
11066    # The option is referenced via a variable to avoid confusing sed.
11067    lt_compile=`echo "$ac_compile" | $SED \
11068    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11069    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11070    -e 's:$: $lt_compiler_flag:'`
11071    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11072    (eval "$lt_compile" 2>conftest.err)
11073    ac_status=$?
11074    cat conftest.err >&5
11075    echo "$as_me:__oline__: \$? = $ac_status" >&5
11076    if (exit $ac_status) && test -s "$ac_outfile"; then
11077      # The compiler can only warn and ignore the option if not recognized
11078      # So say no if there are warnings
11079      if test ! -s conftest.err; then
11080        lt_prog_compiler_pic_works_CXX=yes
11081      fi
11082    fi
11083    $rm conftest*
11084 
11085 fi
11086 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
11087 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
11088 
11089 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11090     case $lt_prog_compiler_pic_CXX in
11091      "" | " "*) ;;
11092      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11093      esac
11094 else
11095     lt_prog_compiler_pic_CXX=
11096      lt_prog_compiler_can_build_shared_CXX=no
11097 fi
11098 
11099 fi
11100 case "$host_os" in
11101   # For platforms which do not support PIC, -DPIC is meaningless:
11102   *djgpp*)
11103     lt_prog_compiler_pic_CXX=
11104     ;;
11105   *)
11106     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11107     ;;
11108 esac
11109 
11110 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
11111 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
11112 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
11113   echo $ECHO_N "(cached) $ECHO_C" >&6
11114 else
11115   lt_cv_prog_compiler_c_o_CXX=no
11116    $rm -r conftest 2>/dev/null
11117    mkdir conftest
11118    cd conftest
11119    mkdir out
11120    printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11121 
11122    lt_compiler_flag="-o out/conftest2.$ac_objext"
11123    # Insert the option either (1) after the last *FLAGS variable, or
11124    # (2) before a word containing "conftest.", or (3) at the end.
11125    # Note that $ac_compile itself does not contain backslashes and begins
11126    # with a dollar sign (not a hyphen), so the echo should work correctly.
11127    lt_compile=`echo "$ac_compile" | $SED \
11128    -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11129    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11130    -e 's:$: $lt_compiler_flag:'`
11131    (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
11132    (eval "$lt_compile" 2>out/conftest.err)
11133    ac_status=$?
11134    cat out/conftest.err >&5
11135    echo "$as_me:__oline__: \$? = $ac_status" >&5
11136    if (exit $ac_status) && test -s out/conftest2.$ac_objext
11137    then
11138      # The compiler can only warn and ignore the option if not recognized
11139      # So say no if there are warnings
11140      if test ! -s out/conftest.err; then
11141        lt_cv_prog_compiler_c_o_CXX=yes
11142      fi
11143    fi
11144    chmod u+w .
11145    $rm conftest*
11146    # SGI C++ compiler will create directory out/ii_files/ for
11147    # template instantiation
11148    test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11149    $rm out/* && rmdir out
11150    cd ..
11151    rmdir conftest
11152    $rm conftest*
11153 
11154 fi
11155 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11156 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
11157 
11158 
11159 hard_links="nottested"
11160 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11161   # do not overwrite the value of need_locks provided by the user
11162   echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
11163 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
11164   hard_links=yes
11165   $rm conftest*
11166   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11167   touch conftest.a
11168   ln conftest.a conftest.b 2>&5 || hard_links=no
11169   ln conftest.a conftest.b 2>/dev/null && hard_links=no
11170   echo "$as_me:$LINENO: result: $hard_links" >&5
11171 echo "${ECHO_T}$hard_links" >&6
11172   if test "$hard_links" = no; then
11173     { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11174 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11175     need_locks=warn
11176   fi
11177 else
11178   need_locks=no
11179 fi
11180 
11181 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11182 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11183 
11184   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11185   case $host_os in
11186   aix4* | aix5*)
11187     # If we're using GNU nm, then we don't want the "-C" option.
11188     # -C means demangle to AIX nm, but means don't demangle with GNU nm
11189     if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11190       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'
11191     else
11192       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'
11193     fi
11194     ;;
11195   pw32*)
11196     export_symbols_cmds_CXX="$ltdll_cmds"
11197   ;;
11198   cygwin* | mingw*)
11199     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11200   ;;
11201   linux*)
11202     link_all_deplibs_CXX=no
11203   ;;
11204   *)
11205     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11206   ;;
11207   esac
11208 
11209 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11210 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11211 test "$ld_shlibs_CXX" = no && can_build_shared=no
11212 
11213 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11214 if test "$GCC" = yes; then
11215   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11216 fi
11217 
11218 #
11219 # Do we need to explicitly link libc?
11220 #
11221 case "x$archive_cmds_need_lc_CXX" in
11222 x|xyes)
11223   # Assume -lc should be added
11224   archive_cmds_need_lc_CXX=yes
11225 
11226   if test "$enable_shared" = yes && test "$GCC" = yes; then
11227     case $archive_cmds_CXX in
11228     *'~'*)
11229       # FIXME: we may have to deal with multi-command sequences.
11230       ;;
11231     '$CC '*)
11232       # Test whether the compiler implicitly links with -lc since on some
11233       # systems, -lgcc has to come before -lc. If gcc already passes -lc
11234       # to ld, don't add -lc before -lgcc.
11235       echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
11236 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
11237       $rm conftest*
11238       printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11239 
11240       if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11241   (eval $ac_compile) 2>&5
11242   ac_status=$?
11243   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244   (exit $ac_status); } 2>conftest.err; then
11245         soname=conftest
11246         lib=conftest
11247         libobjs=conftest.$ac_objext
11248         deplibs=
11249         wl=$lt_prog_compiler_wl_CXX
11250         compiler_flags=-v
11251         linker_flags=-v
11252         verstring=
11253         output_objdir=.
11254         libname=conftest
11255         lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11256         allow_undefined_flag_CXX=
11257         if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
11258   (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11259   ac_status=$?
11260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11261   (exit $ac_status); }
11262         then
11263 	  archive_cmds_need_lc_CXX=no
11264         else
11265 	  archive_cmds_need_lc_CXX=yes
11266         fi
11267         allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11268       else
11269         cat conftest.err 1>&5
11270       fi
11271       $rm conftest*
11272       echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
11273 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
11274       ;;
11275     esac
11276   fi
11277   ;;
11278 esac
11279 
11280 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
11281 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
11282 library_names_spec=
11283 libname_spec='lib$name'
11284 soname_spec=
11285 shrext_cmds=".so"
11286 postinstall_cmds=
11287 postuninstall_cmds=
11288 finish_cmds=
11289 finish_eval=
11290 shlibpath_var=
11291 shlibpath_overrides_runpath=unknown
11292 version_type=none
11293 dynamic_linker="$host_os ld.so"
11294 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11295 if test "$GCC" = yes; then
11296   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11297   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11298     # if the path contains ";" then we assume it to be the separator
11299     # otherwise default to the standard path separator (i.e. ":") - it is
11300     # assumed that no part of a normal pathname contains ";" but that should
11301     # okay in the real world where ";" in dirpaths is itself problematic.
11302     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11303   else
11304     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11305   fi
11306 else
11307   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11308 fi
11309 need_lib_prefix=unknown
11310 hardcode_into_libs=no
11311 
11312 # when you set need_version to no, make sure it does not cause -set_version
11313 # flags to be left without arguments
11314 need_version=unknown
11315 
11316 case $host_os in
11317 aix3*)
11318   version_type=linux
11319   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11320   shlibpath_var=LIBPATH
11321 
11322   # AIX 3 has no versioning support, so we append a major version to the name.
11323   soname_spec='${libname}${release}${shared_ext}$major'
11324   ;;
11325 
11326 aix4* | aix5*)
11327   version_type=linux
11328   need_lib_prefix=no
11329   need_version=no
11330   hardcode_into_libs=yes
11331   if test "$host_cpu" = ia64; then
11332     # AIX 5 supports IA64
11333     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11334     shlibpath_var=LD_LIBRARY_PATH
11335   else
11336     # With GCC up to 2.95.x, collect2 would create an import file
11337     # for dependence libraries.  The import file would start with
11338     # the line `#! .'.  This would cause the generated library to
11339     # depend on `.', always an invalid library.  This was fixed in
11340     # development snapshots of GCC prior to 3.0.
11341     case $host_os in
11342       aix4 | aix4.[01] | aix4.[01].*)
11343       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11344 	   echo ' yes '
11345 	   echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
11346 	:
11347       else
11348 	can_build_shared=no
11349       fi
11350       ;;
11351     esac
11352     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11353     # soname into executable. Probably we can add versioning support to
11354     # collect2, so additional links can be useful in future.
11355     if test "$aix_use_runtimelinking" = yes; then
11356       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11357       # instead of lib<name>.a to let people know that these are not
11358       # typical AIX shared libraries.
11359       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11360     else
11361       # We preserve .a as extension for shared libraries through AIX4.2
11362       # and later when we are not doing run time linking.
11363       library_names_spec='${libname}${release}.a $libname.a'
11364       soname_spec='${libname}${release}${shared_ext}$major'
11365     fi
11366     shlibpath_var=LIBPATH
11367   fi
11368   ;;
11369 
11370 amigaos*)
11371   library_names_spec='$libname.ixlibrary $libname.a'
11372   # Create ${libname}_ixlibrary.a entries in /sys/libs.
11373   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'
11374   ;;
11375 
11376 beos*)
11377   library_names_spec='${libname}${shared_ext}'
11378   dynamic_linker="$host_os ld.so"
11379   shlibpath_var=LIBRARY_PATH
11380   ;;
11381 
11382 bsdi4*)
11383   version_type=linux
11384   need_version=no
11385   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11386   soname_spec='${libname}${release}${shared_ext}$major'
11387   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11388   shlibpath_var=LD_LIBRARY_PATH
11389   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11390   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11391   # the default ld.so.conf also contains /usr/contrib/lib and
11392   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11393   # libtool to hard-code these into programs
11394   ;;
11395 
11396 cygwin* | mingw* | pw32*)
11397   version_type=windows
11398   shrext_cmds=".dll"
11399   need_version=no
11400   need_lib_prefix=no
11401 
11402   case $GCC,$host_os in
11403   yes,cygwin* | yes,mingw* | yes,pw32*)
11404     library_names_spec='$libname.dll.a'
11405     # DLL is installed to $(libdir)/../bin by postinstall_cmds
11406     postinstall_cmds='base_file=`basename \${file}`~
11407       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
11408       dldir=$destdir/`dirname \$dlpath`~
11409       test -d \$dldir || mkdir -p \$dldir~
11410       $install_prog $dir/$dlname \$dldir/$dlname'
11411     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11412       dlpath=$dir/\$dldll~
11413        $rm \$dlpath'
11414     shlibpath_overrides_runpath=yes
11415 
11416     case $host_os in
11417     cygwin*)
11418       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11419       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11420       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
11421       ;;
11422     mingw*)
11423       # MinGW DLLs use traditional 'lib' prefix
11424       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11425       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11426       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
11427         # It is most probably a Windows format PATH printed by
11428         # mingw gcc, but we are running on Cygwin. Gcc prints its search
11429         # path with ; separators, and with drive letters. We can handle the
11430         # drive letters (cygwin fileutils understands them), so leave them,
11431         # especially as we might pass files found there to a mingw objdump,
11432         # which wouldn't understand a cygwinified path. Ahh.
11433         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11434       else
11435         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
11436       fi
11437       ;;
11438     pw32*)
11439       # pw32 DLLs use 'pw' prefix rather than 'lib'
11440       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
11441       ;;
11442     esac
11443     ;;
11444 
11445   *)
11446     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11447     ;;
11448   esac
11449   dynamic_linker='Win32 ld.exe'
11450   # FIXME: first we should search . and the directory the executable is in
11451   shlibpath_var=PATH
11452   ;;
11453 
11454 darwin* | rhapsody*)
11455   dynamic_linker="$host_os dyld"
11456   version_type=darwin
11457   need_lib_prefix=no
11458   need_version=no
11459   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11460   soname_spec='${libname}${release}${major}$shared_ext'
11461   shlibpath_overrides_runpath=yes
11462   shlibpath_var=DYLD_LIBRARY_PATH
11463   shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
11464   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
11465   if test "$GCC" = yes; then
11466     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"`
11467   else
11468     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
11469   fi
11470   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11471   ;;
11472 
11473 dgux*)
11474   version_type=linux
11475   need_lib_prefix=no
11476   need_version=no
11477   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11478   soname_spec='${libname}${release}${shared_ext}$major'
11479   shlibpath_var=LD_LIBRARY_PATH
11480   ;;
11481 
11482 freebsd1*)
11483   dynamic_linker=no
11484   ;;
11485 
11486 kfreebsd*-gnu)
11487   version_type=linux
11488   need_lib_prefix=no
11489   need_version=no
11490   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11491   soname_spec='${libname}${release}${shared_ext}$major'
11492   shlibpath_var=LD_LIBRARY_PATH
11493   shlibpath_overrides_runpath=no
11494   hardcode_into_libs=yes
11495   dynamic_linker='GNU ld.so'
11496   ;;
11497 
11498 freebsd*)
11499   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
11500   version_type=freebsd-$objformat
11501   case $version_type in
11502     freebsd-elf*)
11503       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11504       need_version=no
11505       need_lib_prefix=no
11506       ;;
11507     freebsd-*)
11508       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11509       need_version=yes
11510       ;;
11511   esac
11512   shlibpath_var=LD_LIBRARY_PATH
11513   case $host_os in
11514   freebsd2*)
11515     shlibpath_overrides_runpath=yes
11516     ;;
11517   freebsd3.01* | freebsdelf3.01*)
11518     shlibpath_overrides_runpath=yes
11519     hardcode_into_libs=yes
11520     ;;
11521   *) # from 3.2 on
11522     shlibpath_overrides_runpath=no
11523     hardcode_into_libs=yes
11524     ;;
11525   esac
11526   ;;
11527 
11528 gnu*)
11529   version_type=linux
11530   need_lib_prefix=no
11531   need_version=no
11532   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11533   soname_spec='${libname}${release}${shared_ext}$major'
11534   shlibpath_var=LD_LIBRARY_PATH
11535   hardcode_into_libs=yes
11536   ;;
11537 
11538 hpux9* | hpux10* | hpux11*)
11539   # Give a soname corresponding to the major version so that dld.sl refuses to
11540   # link against other versions.
11541   version_type=sunos
11542   need_lib_prefix=no
11543   need_version=no
11544   case "$host_cpu" in
11545   ia64*)
11546     shrext_cmds='.so'
11547     hardcode_into_libs=yes
11548     dynamic_linker="$host_os dld.so"
11549     shlibpath_var=LD_LIBRARY_PATH
11550     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11551     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11552     soname_spec='${libname}${release}${shared_ext}$major'
11553     if test "X$HPUX_IA64_MODE" = X32; then
11554       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11555     else
11556       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11557     fi
11558     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11559     ;;
11560    hppa*64*)
11561      shrext_cmds='.sl'
11562      hardcode_into_libs=yes
11563      dynamic_linker="$host_os dld.sl"
11564      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11565      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11566      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11567      soname_spec='${libname}${release}${shared_ext}$major'
11568      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11569      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11570      ;;
11571    *)
11572     shrext_cmds='.sl'
11573     dynamic_linker="$host_os dld.sl"
11574     shlibpath_var=SHLIB_PATH
11575     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11576     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11577     soname_spec='${libname}${release}${shared_ext}$major'
11578     ;;
11579   esac
11580   # HP-UX runs *really* slowly unless shared libraries are mode 555.
11581   postinstall_cmds='chmod 555 $lib'
11582   ;;
11583 
11584 irix5* | irix6* | nonstopux*)
11585   case $host_os in
11586     nonstopux*) version_type=nonstopux ;;
11587     *)
11588 	if test "$lt_cv_prog_gnu_ld" = yes; then
11589 		version_type=linux
11590 	else
11591 		version_type=irix
11592 	fi ;;
11593   esac
11594   need_lib_prefix=no
11595   need_version=no
11596   soname_spec='${libname}${release}${shared_ext}$major'
11597   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11598   case $host_os in
11599   irix5* | nonstopux*)
11600     libsuff= shlibsuff=
11601     ;;
11602   *)
11603     case $LD in # libtool.m4 will add one of these switches to LD
11604     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11605       libsuff= shlibsuff= libmagic=32-bit;;
11606     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11607       libsuff=32 shlibsuff=N32 libmagic=N32;;
11608     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11609       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11610     *) libsuff= shlibsuff= libmagic=never-match;;
11611     esac
11612     ;;
11613   esac
11614   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11615   shlibpath_overrides_runpath=no
11616   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11617   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11618   hardcode_into_libs=yes
11619   ;;
11620 
11621 # No shared lib support for Linux oldld, aout, or coff.
11622 linux*oldld* | linux*aout* | linux*coff*)
11623   dynamic_linker=no
11624   ;;
11625 
11626 # This must be Linux ELF.
11627 linux*)
11628   version_type=linux
11629   need_lib_prefix=no
11630   need_version=no
11631   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632   soname_spec='${libname}${release}${shared_ext}$major'
11633   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11634   shlibpath_var=LD_LIBRARY_PATH
11635   shlibpath_overrides_runpath=no
11636   # This implies no fast_install, which is unacceptable.
11637   # Some rework will be needed to allow for fast_install
11638   # before this can be enabled.
11639   hardcode_into_libs=yes
11640 
11641   # Append ld.so.conf contents to the search path
11642   if test -f /etc/ld.so.conf; then
11643     lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
11644     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11645   fi
11646 
11647   # We used to test for /lib/ld.so.1 and disable shared libraries on
11648   # powerpc, because MkLinux only supported shared libraries with the
11649   # GNU dynamic linker.  Since this was broken with cross compilers,
11650   # most powerpc-linux boxes support dynamic linking these days and
11651   # people can always --disable-shared, the test was removed, and we
11652   # assume the GNU/Linux dynamic linker is in use.
11653   dynamic_linker='GNU/Linux ld.so'
11654   ;;
11655 
11656 netbsdelf*-gnu)
11657   version_type=linux
11658   need_lib_prefix=no
11659   need_version=no
11660   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11661   soname_spec='${libname}${release}${shared_ext}$major'
11662   shlibpath_var=LD_LIBRARY_PATH
11663   shlibpath_overrides_runpath=no
11664   hardcode_into_libs=yes
11665   dynamic_linker='NetBSD ld.elf_so'
11666   ;;
11667 
11668 knetbsd*-gnu)
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   shlibpath_var=LD_LIBRARY_PATH
11675   shlibpath_overrides_runpath=no
11676   hardcode_into_libs=yes
11677   dynamic_linker='GNU ld.so'
11678   ;;
11679 
11680 netbsd*)
11681   version_type=sunos
11682   need_lib_prefix=no
11683   need_version=no
11684   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11685     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11686     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11687     dynamic_linker='NetBSD (a.out) ld.so'
11688   else
11689     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11690     soname_spec='${libname}${release}${shared_ext}$major'
11691     dynamic_linker='NetBSD ld.elf_so'
11692   fi
11693   shlibpath_var=LD_LIBRARY_PATH
11694   shlibpath_overrides_runpath=yes
11695   hardcode_into_libs=yes
11696   ;;
11697 
11698 newsos6)
11699   version_type=linux
11700   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11701   shlibpath_var=LD_LIBRARY_PATH
11702   shlibpath_overrides_runpath=yes
11703   ;;
11704 
11705 nto-qnx*)
11706   version_type=linux
11707   need_lib_prefix=no
11708   need_version=no
11709   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11710   soname_spec='${libname}${release}${shared_ext}$major'
11711   shlibpath_var=LD_LIBRARY_PATH
11712   shlibpath_overrides_runpath=yes
11713   ;;
11714 
11715 openbsd*)
11716   version_type=sunos
11717   need_lib_prefix=no
11718   need_version=yes
11719   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11720   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11721   shlibpath_var=LD_LIBRARY_PATH
11722   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11723     case $host_os in
11724       openbsd2.[89] | openbsd2.[89].*)
11725 	shlibpath_overrides_runpath=no
11726 	;;
11727       *)
11728 	shlibpath_overrides_runpath=yes
11729 	;;
11730       esac
11731   else
11732     shlibpath_overrides_runpath=yes
11733   fi
11734   ;;
11735 
11736 os2*)
11737   libname_spec='$name'
11738   shrext_cmds=".dll"
11739   need_lib_prefix=no
11740   library_names_spec='$libname${shared_ext} $libname.a'
11741   dynamic_linker='OS/2 ld.exe'
11742   shlibpath_var=LIBPATH
11743   ;;
11744 
11745 osf3* | osf4* | osf5*)
11746   version_type=osf
11747   need_lib_prefix=no
11748   need_version=no
11749   soname_spec='${libname}${release}${shared_ext}$major'
11750   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11751   shlibpath_var=LD_LIBRARY_PATH
11752   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11753   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11754   ;;
11755 
11756 sco3.2v5*)
11757   version_type=osf
11758   soname_spec='${libname}${release}${shared_ext}$major'
11759   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11760   shlibpath_var=LD_LIBRARY_PATH
11761   ;;
11762 
11763 solaris*)
11764   version_type=linux
11765   need_lib_prefix=no
11766   need_version=no
11767   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11768   soname_spec='${libname}${release}${shared_ext}$major'
11769   shlibpath_var=LD_LIBRARY_PATH
11770   shlibpath_overrides_runpath=yes
11771   hardcode_into_libs=yes
11772   # ldd complains unless libraries are executable
11773   postinstall_cmds='chmod +x $lib'
11774   ;;
11775 
11776 sunos4*)
11777   version_type=sunos
11778   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11779   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11780   shlibpath_var=LD_LIBRARY_PATH
11781   shlibpath_overrides_runpath=yes
11782   if test "$with_gnu_ld" = yes; then
11783     need_lib_prefix=no
11784   fi
11785   need_version=yes
11786   ;;
11787 
11788 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11789   version_type=linux
11790   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11791   soname_spec='${libname}${release}${shared_ext}$major'
11792   shlibpath_var=LD_LIBRARY_PATH
11793   case $host_vendor in
11794     sni)
11795       shlibpath_overrides_runpath=no
11796       need_lib_prefix=no
11797       export_dynamic_flag_spec='${wl}-Blargedynsym'
11798       runpath_var=LD_RUN_PATH
11799       ;;
11800     siemens)
11801       need_lib_prefix=no
11802       ;;
11803     motorola)
11804       need_lib_prefix=no
11805       need_version=no
11806       shlibpath_overrides_runpath=no
11807       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11808       ;;
11809   esac
11810   ;;
11811 
11812 sysv4*MP*)
11813   if test -d /usr/nec ;then
11814     version_type=linux
11815     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11816     soname_spec='$libname${shared_ext}.$major'
11817     shlibpath_var=LD_LIBRARY_PATH
11818   fi
11819   ;;
11820 
11821 uts4*)
11822   version_type=linux
11823   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11824   soname_spec='${libname}${release}${shared_ext}$major'
11825   shlibpath_var=LD_LIBRARY_PATH
11826   ;;
11827 
11828 *)
11829   dynamic_linker=no
11830   ;;
11831 esac
11832 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
11833 echo "${ECHO_T}$dynamic_linker" >&6
11834 test "$dynamic_linker" = no && can_build_shared=no
11835 
11836 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
11837 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
11838 hardcode_action_CXX=
11839 if test -n "$hardcode_libdir_flag_spec_CXX" || \
11840    test -n "$runpath_var CXX" || \
11841    test "X$hardcode_automatic_CXX"="Xyes" ; then
11842 
11843   # We can hardcode non-existant directories.
11844   if test "$hardcode_direct_CXX" != no &&
11845      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11846      # have to relink, otherwise we might link with an installed library
11847      # when we should be linking with a yet-to-be-installed one
11848      ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
11849      test "$hardcode_minus_L_CXX" != no; then
11850     # Linking always hardcodes the temporary library directory.
11851     hardcode_action_CXX=relink
11852   else
11853     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11854     hardcode_action_CXX=immediate
11855   fi
11856 else
11857   # We cannot hardcode anything, or else we can only hardcode existing
11858   # directories.
11859   hardcode_action_CXX=unsupported
11860 fi
11861 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
11862 echo "${ECHO_T}$hardcode_action_CXX" >&6
11863 
11864 if test "$hardcode_action_CXX" = relink; then
11865   # Fast installation is not supported
11866   enable_fast_install=no
11867 elif test "$shlibpath_overrides_runpath" = yes ||
11868      test "$enable_shared" = no; then
11869   # Fast installation is not necessary
11870   enable_fast_install=needless
11871 fi
11872 
11873 striplib=
11874 old_striplib=
11875 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
11876 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
11877 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
11878   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11879   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11880   echo "$as_me:$LINENO: result: yes" >&5
11881 echo "${ECHO_T}yes" >&6
11882 else
11883 # FIXME - insert some real tests, host_os isn't really good enough
11884   case $host_os in
11885    darwin*)
11886        if test -n "$STRIP" ; then
11887          striplib="$STRIP -x"
11888          echo "$as_me:$LINENO: result: yes" >&5
11889 echo "${ECHO_T}yes" >&6
11890        else
11891   echo "$as_me:$LINENO: result: no" >&5
11892 echo "${ECHO_T}no" >&6
11893 fi
11894        ;;
11895    *)
11896   echo "$as_me:$LINENO: result: no" >&5
11897 echo "${ECHO_T}no" >&6
11898     ;;
11899   esac
11900 fi
11901 
11902 if test "x$enable_dlopen" != xyes; then
11903   enable_dlopen=unknown
11904   enable_dlopen_self=unknown
11905   enable_dlopen_self_static=unknown
11906 else
11907   lt_cv_dlopen=no
11908   lt_cv_dlopen_libs=
11909 
11910   case $host_os in
11911   beos*)
11912     lt_cv_dlopen="load_add_on"
11913     lt_cv_dlopen_libs=
11914     lt_cv_dlopen_self=yes
11915     ;;
11916 
11917   mingw* | pw32*)
11918     lt_cv_dlopen="LoadLibrary"
11919     lt_cv_dlopen_libs=
11920    ;;
11921 
11922   cygwin*)
11923     lt_cv_dlopen="dlopen"
11924     lt_cv_dlopen_libs=
11925    ;;
11926 
11927   darwin*)
11928   # if libdl is installed we need to link against it
11929     echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
11930 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
11931 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
11932   echo $ECHO_N "(cached) $ECHO_C" >&6
11933 else
11934   ac_check_lib_save_LIBS=$LIBS
11935 LIBS="-ldl  $LIBS"
11936 cat >conftest.$ac_ext <<_ACEOF
11937 /* confdefs.h.  */
11938 _ACEOF
11939 cat confdefs.h >>conftest.$ac_ext
11940 cat >>conftest.$ac_ext <<_ACEOF
11941 /* end confdefs.h.  */
11942 
11943 /* Override any gcc2 internal prototype to avoid an error.  */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 /* We use char because int might match the return type of a gcc2
11948    builtin and then its argument prototype would still apply.  */
11949 char dlopen ();
11950 int
11951 main ()
11952 {
11953 dlopen ();
11954   ;
11955   return 0;
11956 }
11957 _ACEOF
11958 rm -f conftest.$ac_objext conftest$ac_exeext
11959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11960   (eval $ac_link) 2>conftest.er1
11961   ac_status=$?
11962   grep -v '^ *+' conftest.er1 >conftest.err
11963   rm -f conftest.er1
11964   cat conftest.err >&5
11965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966   (exit $ac_status); } &&
11967 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
11968   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11969   (eval $ac_try) 2>&5
11970   ac_status=$?
11971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972   (exit $ac_status); }; } &&
11973 	 { ac_try='test -s conftest$ac_exeext'
11974   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11975   (eval $ac_try) 2>&5
11976   ac_status=$?
11977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11978   (exit $ac_status); }; }; then
11979   ac_cv_lib_dl_dlopen=yes
11980 else
11981   echo "$as_me: failed program was:" >&5
11982 sed 's/^/| /' conftest.$ac_ext >&5
11983 
11984 ac_cv_lib_dl_dlopen=no
11985 fi
11986 rm -f conftest.err conftest.$ac_objext \
11987       conftest$ac_exeext conftest.$ac_ext
11988 LIBS=$ac_check_lib_save_LIBS
11989 fi
11990 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11991 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
11992 if test $ac_cv_lib_dl_dlopen = yes; then
11993   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11994 else
11995   
11996     lt_cv_dlopen="dyld"
11997     lt_cv_dlopen_libs=
11998     lt_cv_dlopen_self=yes
11999     
12000 fi
12001 
12002    ;;
12003 
12004   *)
12005     echo "$as_me:$LINENO: checking for shl_load" >&5
12006 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
12007 if test "${ac_cv_func_shl_load+set}" = set; then
12008   echo $ECHO_N "(cached) $ECHO_C" >&6
12009 else
12010   cat >conftest.$ac_ext <<_ACEOF
12011 /* confdefs.h.  */
12012 _ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h.  */
12016 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
12017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12018 #define shl_load innocuous_shl_load
12019 
12020 /* System header to define __stub macros and hopefully few prototypes,
12021     which can conflict with char shl_load (); below.
12022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12023     <limits.h> exists even on freestanding compilers.  */
12024 
12025 #ifdef __STDC__
12026 # include <limits.h>
12027 #else
12028 # include <assert.h>
12029 #endif
12030 
12031 #undef shl_load
12032 
12033 /* Override any gcc2 internal prototype to avoid an error.  */
12034 #ifdef __cplusplus
12035 extern "C"
12036 {
12037 #endif
12038 /* We use char because int might match the return type of a gcc2
12039    builtin and then its argument prototype would still apply.  */
12040 char shl_load ();
12041 /* The GNU C library defines this for functions which it implements
12042     to always fail with ENOSYS.  Some functions are actually named
12043     something starting with __ and the normal name is an alias.  */
12044 #if defined (__stub_shl_load) || defined (__stub___shl_load)
12045 choke me
12046 #else
12047 char (*f) () = shl_load;
12048 #endif
12049 #ifdef __cplusplus
12050 }
12051 #endif
12052 
12053 int
12054 main ()
12055 {
12056 return f != shl_load;
12057   ;
12058   return 0;
12059 }
12060 _ACEOF
12061 rm -f conftest.$ac_objext conftest$ac_exeext
12062 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12063   (eval $ac_link) 2>conftest.er1
12064   ac_status=$?
12065   grep -v '^ *+' conftest.er1 >conftest.err
12066   rm -f conftest.er1
12067   cat conftest.err >&5
12068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12069   (exit $ac_status); } &&
12070 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12071   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12072   (eval $ac_try) 2>&5
12073   ac_status=$?
12074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12075   (exit $ac_status); }; } &&
12076 	 { ac_try='test -s conftest$ac_exeext'
12077   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12078   (eval $ac_try) 2>&5
12079   ac_status=$?
12080   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12081   (exit $ac_status); }; }; then
12082   ac_cv_func_shl_load=yes
12083 else
12084   echo "$as_me: failed program was:" >&5
12085 sed 's/^/| /' conftest.$ac_ext >&5
12086 
12087 ac_cv_func_shl_load=no
12088 fi
12089 rm -f conftest.err conftest.$ac_objext \
12090       conftest$ac_exeext conftest.$ac_ext
12091 fi
12092 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
12093 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
12094 if test $ac_cv_func_shl_load = yes; then
12095   lt_cv_dlopen="shl_load"
12096 else
12097   echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
12098 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
12099 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
12100   echo $ECHO_N "(cached) $ECHO_C" >&6
12101 else
12102   ac_check_lib_save_LIBS=$LIBS
12103 LIBS="-ldld  $LIBS"
12104 cat >conftest.$ac_ext <<_ACEOF
12105 /* confdefs.h.  */
12106 _ACEOF
12107 cat confdefs.h >>conftest.$ac_ext
12108 cat >>conftest.$ac_ext <<_ACEOF
12109 /* end confdefs.h.  */
12110 
12111 /* Override any gcc2 internal prototype to avoid an error.  */
12112 #ifdef __cplusplus
12113 extern "C"
12114 #endif
12115 /* We use char because int might match the return type of a gcc2
12116    builtin and then its argument prototype would still apply.  */
12117 char shl_load ();
12118 int
12119 main ()
12120 {
12121 shl_load ();
12122   ;
12123   return 0;
12124 }
12125 _ACEOF
12126 rm -f conftest.$ac_objext conftest$ac_exeext
12127 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12128   (eval $ac_link) 2>conftest.er1
12129   ac_status=$?
12130   grep -v '^ *+' conftest.er1 >conftest.err
12131   rm -f conftest.er1
12132   cat conftest.err >&5
12133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134   (exit $ac_status); } &&
12135 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12136   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12137   (eval $ac_try) 2>&5
12138   ac_status=$?
12139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12140   (exit $ac_status); }; } &&
12141 	 { ac_try='test -s conftest$ac_exeext'
12142   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12143   (eval $ac_try) 2>&5
12144   ac_status=$?
12145   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12146   (exit $ac_status); }; }; then
12147   ac_cv_lib_dld_shl_load=yes
12148 else
12149   echo "$as_me: failed program was:" >&5
12150 sed 's/^/| /' conftest.$ac_ext >&5
12151 
12152 ac_cv_lib_dld_shl_load=no
12153 fi
12154 rm -f conftest.err conftest.$ac_objext \
12155       conftest$ac_exeext conftest.$ac_ext
12156 LIBS=$ac_check_lib_save_LIBS
12157 fi
12158 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
12159 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
12160 if test $ac_cv_lib_dld_shl_load = yes; then
12161   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
12162 else
12163   echo "$as_me:$LINENO: checking for dlopen" >&5
12164 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
12165 if test "${ac_cv_func_dlopen+set}" = set; then
12166   echo $ECHO_N "(cached) $ECHO_C" >&6
12167 else
12168   cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h.  */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h.  */
12174 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
12175    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12176 #define dlopen innocuous_dlopen
12177 
12178 /* System header to define __stub macros and hopefully few prototypes,
12179     which can conflict with char dlopen (); below.
12180     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12181     <limits.h> exists even on freestanding compilers.  */
12182 
12183 #ifdef __STDC__
12184 # include <limits.h>
12185 #else
12186 # include <assert.h>
12187 #endif
12188 
12189 #undef dlopen
12190 
12191 /* Override any gcc2 internal prototype to avoid an error.  */
12192 #ifdef __cplusplus
12193 extern "C"
12194 {
12195 #endif
12196 /* We use char because int might match the return type of a gcc2
12197    builtin and then its argument prototype would still apply.  */
12198 char dlopen ();
12199 /* The GNU C library defines this for functions which it implements
12200     to always fail with ENOSYS.  Some functions are actually named
12201     something starting with __ and the normal name is an alias.  */
12202 #if defined (__stub_dlopen) || defined (__stub___dlopen)
12203 choke me
12204 #else
12205 char (*f) () = dlopen;
12206 #endif
12207 #ifdef __cplusplus
12208 }
12209 #endif
12210 
12211 int
12212 main ()
12213 {
12214 return f != dlopen;
12215   ;
12216   return 0;
12217 }
12218 _ACEOF
12219 rm -f conftest.$ac_objext conftest$ac_exeext
12220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12221   (eval $ac_link) 2>conftest.er1
12222   ac_status=$?
12223   grep -v '^ *+' conftest.er1 >conftest.err
12224   rm -f conftest.er1
12225   cat conftest.err >&5
12226   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227   (exit $ac_status); } &&
12228 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12229   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12230   (eval $ac_try) 2>&5
12231   ac_status=$?
12232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233   (exit $ac_status); }; } &&
12234 	 { ac_try='test -s conftest$ac_exeext'
12235   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12236   (eval $ac_try) 2>&5
12237   ac_status=$?
12238   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239   (exit $ac_status); }; }; then
12240   ac_cv_func_dlopen=yes
12241 else
12242   echo "$as_me: failed program was:" >&5
12243 sed 's/^/| /' conftest.$ac_ext >&5
12244 
12245 ac_cv_func_dlopen=no
12246 fi
12247 rm -f conftest.err conftest.$ac_objext \
12248       conftest$ac_exeext conftest.$ac_ext
12249 fi
12250 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
12251 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
12252 if test $ac_cv_func_dlopen = yes; then
12253   lt_cv_dlopen="dlopen"
12254 else
12255   echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
12256 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
12257 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
12258   echo $ECHO_N "(cached) $ECHO_C" >&6
12259 else
12260   ac_check_lib_save_LIBS=$LIBS
12261 LIBS="-ldl  $LIBS"
12262 cat >conftest.$ac_ext <<_ACEOF
12263 /* confdefs.h.  */
12264 _ACEOF
12265 cat confdefs.h >>conftest.$ac_ext
12266 cat >>conftest.$ac_ext <<_ACEOF
12267 /* end confdefs.h.  */
12268 
12269 /* Override any gcc2 internal prototype to avoid an error.  */
12270 #ifdef __cplusplus
12271 extern "C"
12272 #endif
12273 /* We use char because int might match the return type of a gcc2
12274    builtin and then its argument prototype would still apply.  */
12275 char dlopen ();
12276 int
12277 main ()
12278 {
12279 dlopen ();
12280   ;
12281   return 0;
12282 }
12283 _ACEOF
12284 rm -f conftest.$ac_objext conftest$ac_exeext
12285 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12286   (eval $ac_link) 2>conftest.er1
12287   ac_status=$?
12288   grep -v '^ *+' conftest.er1 >conftest.err
12289   rm -f conftest.er1
12290   cat conftest.err >&5
12291   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12292   (exit $ac_status); } &&
12293 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12294   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12295   (eval $ac_try) 2>&5
12296   ac_status=$?
12297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298   (exit $ac_status); }; } &&
12299 	 { ac_try='test -s conftest$ac_exeext'
12300   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12301   (eval $ac_try) 2>&5
12302   ac_status=$?
12303   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12304   (exit $ac_status); }; }; then
12305   ac_cv_lib_dl_dlopen=yes
12306 else
12307   echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309 
12310 ac_cv_lib_dl_dlopen=no
12311 fi
12312 rm -f conftest.err conftest.$ac_objext \
12313       conftest$ac_exeext conftest.$ac_ext
12314 LIBS=$ac_check_lib_save_LIBS
12315 fi
12316 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
12317 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
12318 if test $ac_cv_lib_dl_dlopen = yes; then
12319   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12320 else
12321   echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
12322 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
12323 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
12324   echo $ECHO_N "(cached) $ECHO_C" >&6
12325 else
12326   ac_check_lib_save_LIBS=$LIBS
12327 LIBS="-lsvld  $LIBS"
12328 cat >conftest.$ac_ext <<_ACEOF
12329 /* confdefs.h.  */
12330 _ACEOF
12331 cat confdefs.h >>conftest.$ac_ext
12332 cat >>conftest.$ac_ext <<_ACEOF
12333 /* end confdefs.h.  */
12334 
12335 /* Override any gcc2 internal prototype to avoid an error.  */
12336 #ifdef __cplusplus
12337 extern "C"
12338 #endif
12339 /* We use char because int might match the return type of a gcc2
12340    builtin and then its argument prototype would still apply.  */
12341 char dlopen ();
12342 int
12343 main ()
12344 {
12345 dlopen ();
12346   ;
12347   return 0;
12348 }
12349 _ACEOF
12350 rm -f conftest.$ac_objext conftest$ac_exeext
12351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12352   (eval $ac_link) 2>conftest.er1
12353   ac_status=$?
12354   grep -v '^ *+' conftest.er1 >conftest.err
12355   rm -f conftest.er1
12356   cat conftest.err >&5
12357   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12358   (exit $ac_status); } &&
12359 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12360   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12361   (eval $ac_try) 2>&5
12362   ac_status=$?
12363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364   (exit $ac_status); }; } &&
12365 	 { ac_try='test -s conftest$ac_exeext'
12366   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12367   (eval $ac_try) 2>&5
12368   ac_status=$?
12369   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12370   (exit $ac_status); }; }; then
12371   ac_cv_lib_svld_dlopen=yes
12372 else
12373   echo "$as_me: failed program was:" >&5
12374 sed 's/^/| /' conftest.$ac_ext >&5
12375 
12376 ac_cv_lib_svld_dlopen=no
12377 fi
12378 rm -f conftest.err conftest.$ac_objext \
12379       conftest$ac_exeext conftest.$ac_ext
12380 LIBS=$ac_check_lib_save_LIBS
12381 fi
12382 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
12383 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
12384 if test $ac_cv_lib_svld_dlopen = yes; then
12385   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12386 else
12387   echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
12388 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
12389 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
12390   echo $ECHO_N "(cached) $ECHO_C" >&6
12391 else
12392   ac_check_lib_save_LIBS=$LIBS
12393 LIBS="-ldld  $LIBS"
12394 cat >conftest.$ac_ext <<_ACEOF
12395 /* confdefs.h.  */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h.  */
12400 
12401 /* Override any gcc2 internal prototype to avoid an error.  */
12402 #ifdef __cplusplus
12403 extern "C"
12404 #endif
12405 /* We use char because int might match the return type of a gcc2
12406    builtin and then its argument prototype would still apply.  */
12407 char dld_link ();
12408 int
12409 main ()
12410 {
12411 dld_link ();
12412   ;
12413   return 0;
12414 }
12415 _ACEOF
12416 rm -f conftest.$ac_objext conftest$ac_exeext
12417 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12418   (eval $ac_link) 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } &&
12425 	 { ac_try='test -z "$ac_cxx_werror_flag"			 || test ! -s conftest.err'
12426   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12427   (eval $ac_try) 2>&5
12428   ac_status=$?
12429   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430   (exit $ac_status); }; } &&
12431 	 { ac_try='test -s conftest$ac_exeext'
12432   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12433   (eval $ac_try) 2>&5
12434   ac_status=$?
12435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12436   (exit $ac_status); }; }; then
12437   ac_cv_lib_dld_dld_link=yes
12438 else
12439   echo "$as_me: failed program was:" >&5
12440 sed 's/^/| /' conftest.$ac_ext >&5
12441 
12442 ac_cv_lib_dld_dld_link=no
12443 fi
12444 rm -f conftest.err conftest.$ac_objext \
12445       conftest$ac_exeext conftest.$ac_ext
12446 LIBS=$ac_check_lib_save_LIBS
12447 fi
12448 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
12449 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
12450 if test $ac_cv_lib_dld_dld_link = yes; then
12451   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
12452 fi
12453 
12454 	      
12455 fi
12456 
12457 	    
12458 fi
12459 
12460 	  
12461 fi
12462 
12463 	
12464 fi
12465 
12466       
12467 fi
12468 
12469     ;;
12470   esac
12471 
12472   if test "x$lt_cv_dlopen" != xno; then
12473     enable_dlopen=yes
12474   else
12475     enable_dlopen=no
12476   fi
12477 
12478   case $lt_cv_dlopen in
12479   dlopen)
12480     save_CPPFLAGS="$CPPFLAGS"
12481     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12482 
12483     save_LDFLAGS="$LDFLAGS"
12484     eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12485 
12486     save_LIBS="$LIBS"
12487     LIBS="$lt_cv_dlopen_libs $LIBS"
12488 
12489     echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
12490 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
12491 if test "${lt_cv_dlopen_self+set}" = set; then
12492   echo $ECHO_N "(cached) $ECHO_C" >&6
12493 else
12494   	  if test "$cross_compiling" = yes; then :
12495   lt_cv_dlopen_self=cross
12496 else
12497   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12498   lt_status=$lt_dlunknown
12499   cat > conftest.$ac_ext <<EOF
12500 #line __oline__ "configure"
12501 #include "confdefs.h"
12502 
12503 #if HAVE_DLFCN_H
12504 #include <dlfcn.h>
12505 #endif
12506 
12507 #include <stdio.h>
12508 
12509 #ifdef RTLD_GLOBAL
12510 #  define LT_DLGLOBAL		RTLD_GLOBAL
12511 #else
12512 #  ifdef DL_GLOBAL
12513 #    define LT_DLGLOBAL		DL_GLOBAL
12514 #  else
12515 #    define LT_DLGLOBAL		0
12516 #  endif
12517 #endif
12518 
12519 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12520    find out it does not work in some platform. */
12521 #ifndef LT_DLLAZY_OR_NOW
12522 #  ifdef RTLD_LAZY
12523 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12524 #  else
12525 #    ifdef DL_LAZY
12526 #      define LT_DLLAZY_OR_NOW		DL_LAZY
12527 #    else
12528 #      ifdef RTLD_NOW
12529 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
12530 #      else
12531 #        ifdef DL_NOW
12532 #          define LT_DLLAZY_OR_NOW	DL_NOW
12533 #        else
12534 #          define LT_DLLAZY_OR_NOW	0
12535 #        endif
12536 #      endif
12537 #    endif
12538 #  endif
12539 #endif
12540 
12541 #ifdef __cplusplus
12542 extern "C" void exit (int);
12543 #endif
12544 
12545 void fnord() { int i=42;}
12546 int main ()
12547 {
12548   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12549   int status = $lt_dlunknown;
12550 
12551   if (self)
12552     {
12553       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12554       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12555       /* dlclose (self); */
12556     }
12557 
12558     exit (status);
12559 }
12560 EOF
12561   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12562   (eval $ac_link) 2>&5
12563   ac_status=$?
12564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12565   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12566     (./conftest; exit; ) 2>/dev/null
12567     lt_status=$?
12568     case x$lt_status in
12569       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12570       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12571       x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
12572     esac
12573   else :
12574     # compilation failed
12575     lt_cv_dlopen_self=no
12576   fi
12577 fi
12578 rm -fr conftest*
12579 
12580     
12581 fi
12582 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
12583 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
12584 
12585     if test "x$lt_cv_dlopen_self" = xyes; then
12586       LDFLAGS="$LDFLAGS $link_static_flag"
12587       echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
12588 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
12589 if test "${lt_cv_dlopen_self_static+set}" = set; then
12590   echo $ECHO_N "(cached) $ECHO_C" >&6
12591 else
12592   	  if test "$cross_compiling" = yes; then :
12593   lt_cv_dlopen_self_static=cross
12594 else
12595   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12596   lt_status=$lt_dlunknown
12597   cat > conftest.$ac_ext <<EOF
12598 #line __oline__ "configure"
12599 #include "confdefs.h"
12600 
12601 #if HAVE_DLFCN_H
12602 #include <dlfcn.h>
12603 #endif
12604 
12605 #include <stdio.h>
12606 
12607 #ifdef RTLD_GLOBAL
12608 #  define LT_DLGLOBAL		RTLD_GLOBAL
12609 #else
12610 #  ifdef DL_GLOBAL
12611 #    define LT_DLGLOBAL		DL_GLOBAL
12612 #  else
12613 #    define LT_DLGLOBAL		0
12614 #  endif
12615 #endif
12616 
12617 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12618    find out it does not work in some platform. */
12619 #ifndef LT_DLLAZY_OR_NOW
12620 #  ifdef RTLD_LAZY
12621 #    define LT_DLLAZY_OR_NOW		RTLD_LAZY
12622 #  else
12623 #    ifdef DL_LAZY
12624 #      define LT_DLLAZY_OR_NOW		DL_LAZY
12625 #    else
12626 #      ifdef RTLD_NOW
12627 #        define LT_DLLAZY_OR_NOW	RTLD_NOW
12628 #      else
12629 #        ifdef DL_NOW
12630 #          define LT_DLLAZY_OR_NOW	DL_NOW
12631 #        else
12632 #          define LT_DLLAZY_OR_NOW	0
12633 #        endif
12634 #      endif
12635 #    endif
12636 #  endif
12637 #endif
12638 
12639 #ifdef __cplusplus
12640 extern "C" void exit (int);
12641 #endif
12642 
12643 void fnord() { int i=42;}
12644 int main ()
12645 {
12646   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12647   int status = $lt_dlunknown;
12648 
12649   if (self)
12650     {
12651       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
12652       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12653       /* dlclose (self); */
12654     }
12655 
12656     exit (status);
12657 }
12658 EOF
12659   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12660   (eval $ac_link) 2>&5
12661   ac_status=$?
12662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12663   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
12664     (./conftest; exit; ) 2>/dev/null
12665     lt_status=$?
12666     case x$lt_status in
12667       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12668       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12669       x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
12670     esac
12671   else :
12672     # compilation failed
12673     lt_cv_dlopen_self_static=no
12674   fi
12675 fi
12676 rm -fr conftest*
12677 
12678       
12679 fi
12680 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
12681 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
12682     fi
12683 
12684     CPPFLAGS="$save_CPPFLAGS"
12685     LDFLAGS="$save_LDFLAGS"
12686     LIBS="$save_LIBS"
12687     ;;
12688   esac