"Fossies" - the Fresh Open Source Software Archive

Member "libmcrypt-2.5.8/libltdl/configure" (8 Mar 2003, 235389 Bytes) of package /linux/privat/old/libmcrypt-2.5.8.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 #! /bin/sh
    2 
    3 # Guess values for system-dependent variables and create Makefiles.
    4 # Generated automatically using autoconf version 2.13 
    5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
    6 #
    7 # This configure script is free software; the Free Software Foundation
    8 # gives unlimited permission to copy, distribute and modify it.
    9 
   10 # Defaults:
   11 ac_help=
   12 ac_default_prefix=/usr/local
   13 # Any additions from configure.in:
   14 ac_help="$ac_help
   15   --with-auxdir=DIR   path to autoconf auxiliary files"
   16 ac_help="$ac_help
   17   --enable-maintainer-mode enable make rules and dependencies not useful
   18                           (and sometimes confusing) to the casual installer"
   19 ac_help="$ac_help
   20   --enable-shared[=PKGS]  build shared libraries [default=yes]"
   21 ac_help="$ac_help
   22   --enable-static[=PKGS]  build static libraries [default=yes]"
   23 ac_help="$ac_help
   24   --enable-fast-install[=PKGS]  optimize for fast installation [default=yes]"
   25 ac_help="$ac_help
   26   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]"
   27 
   28 # Find the correct PATH separator.  Usually this is `:', but
   29 # DJGPP uses `;' like DOS.
   30 if test "X${PATH_SEPARATOR+set}" != Xset; then
   31   UNAME=${UNAME-`uname 2>/dev/null`}
   32   case X$UNAME in
   33     *-DOS) lt_cv_sys_path_separator=';' ;;
   34     *)     lt_cv_sys_path_separator=':' ;;
   35   esac
   36   PATH_SEPARATOR=$lt_cv_sys_path_separator
   37 fi
   38 
   39 
   40 # Check that we are running under the correct shell.
   41 SHELL=${CONFIG_SHELL-/bin/sh}
   42 
   43 case X$ECHO in
   44 X*--fallback-echo)
   45   # Remove one level of quotation (which was required for Make).
   46   ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
   47   ;;
   48 esac
   49 
   50 echo=${ECHO-echo}
   51 if test "X$1" = X--no-reexec; then
   52   # Discard the --no-reexec flag, and continue.
   53   shift
   54 elif test "X$1" = X--fallback-echo; then
   55   # Avoid inline document here, it may be left over
   56   :
   57 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
   58   # Yippee, $echo works!
   59   :
   60 else
   61   # Restart under the correct shell.
   62   exec $SHELL "$0" --no-reexec ${1+"$@"}
   63 fi
   64 
   65 if test "X$1" = X--fallback-echo; then
   66   # used as fallback echo
   67   shift
   68   cat <<EOF
   69 
   70 EOF
   71   exit 0
   72 fi
   73 
   74 # The HP-UX ksh and POSIX shell print the target directory to stdout
   75 # if CDPATH is set.
   76 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
   77 
   78 if test -z "$ECHO"; then
   79 if test "X${echo_test_string+set}" != Xset; then
   80 # find a string as large as possible, as long as the shell can cope with it
   81   for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
   82     # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
   83     if (echo_test_string="`eval $cmd`") 2>/dev/null &&
   84        echo_test_string="`eval $cmd`" &&
   85        (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
   86     then
   87       break
   88     fi
   89   done
   90 fi
   91 
   92 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
   93    echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
   94    test "X$echo_testing_string" = "X$echo_test_string"; then
   95   :
   96 else
   97   # The Solaris, AIX, and Digital Unix default echo programs unquote
   98   # backslashes.  This makes it impossible to quote backslashes using
   99   #   echo "$something" | sed 's/\\/\\\\/g'
  100   #
  101   # So, first we look for a working echo in the user's PATH.
  102 
  103   IFS="${IFS=   }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  104   for dir in $PATH /usr/ucb; do
  105     if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  106        test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  107        echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  108        test "X$echo_testing_string" = "X$echo_test_string"; then
  109       echo="$dir/echo"
  110       break
  111     fi
  112   done
  113   IFS="$save_ifs"
  114 
  115   if test "X$echo" = Xecho; then
  116     # We didn't find a better echo, so look for alternatives.
  117     if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  118        echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  119        test "X$echo_testing_string" = "X$echo_test_string"; then
  120       # This shell has a builtin print -r that does the trick.
  121       echo='print -r'
  122     elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  123      test "X$CONFIG_SHELL" != X/bin/ksh; then
  124       # If we have ksh, try running configure again with it.
  125       ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  126       export ORIGINAL_CONFIG_SHELL
  127       CONFIG_SHELL=/bin/ksh
  128       export CONFIG_SHELL
  129       exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  130     else
  131       # Try using printf.
  132       echo='printf %s\n'
  133       if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  134      echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  135      test "X$echo_testing_string" = "X$echo_test_string"; then
  136     # Cool, printf works
  137     :
  138       elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  139        test "X$echo_testing_string" = 'X\t' &&
  140        echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  141        test "X$echo_testing_string" = "X$echo_test_string"; then
  142     CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  143     export CONFIG_SHELL
  144     SHELL="$CONFIG_SHELL"
  145     export SHELL
  146     echo="$CONFIG_SHELL $0 --fallback-echo"
  147       elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  148        test "X$echo_testing_string" = 'X\t' &&
  149        echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  150        test "X$echo_testing_string" = "X$echo_test_string"; then
  151     echo="$CONFIG_SHELL $0 --fallback-echo"
  152       else
  153     # maybe with a smaller string...
  154     prev=:
  155 
  156     for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  157       if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  158       then
  159         break
  160       fi
  161       prev="$cmd"
  162     done
  163 
  164     if test "$prev" != 'sed 50q "$0"'; then
  165       echo_test_string=`eval $prev`
  166       export echo_test_string
  167       exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  168     else
  169       # Oops.  We lost completely, so just stick with echo.
  170       echo=echo
  171     fi
  172       fi
  173     fi
  174   fi
  175 fi
  176 fi
  177 
  178 # Copy echo and quote the copy suitably for passing to libtool from
  179 # the Makefile, instead of quoting the original, which is used later.
  180 ECHO=$echo
  181 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  182    ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  183 fi
  184 
  185 
  186 ac_help="$ac_help
  187   --disable-libtool-lock  avoid locking (might break parallel builds)"
  188 ac_help="$ac_help
  189   --with-pic              try to use only PIC/non-PIC objects [default=use both]"
  190 ac_help="$ac_help
  191   --enable-ltdl-install   install libltdl"
  192 
  193 # Initialize some variables set by options.
  194 # The variables have the same names as the options, with
  195 # dashes changed to underlines.
  196 build=NONE
  197 cache_file=./config.cache
  198 exec_prefix=NONE
  199 host=NONE
  200 no_create=
  201 nonopt=NONE
  202 no_recursion=
  203 prefix=NONE
  204 program_prefix=NONE
  205 program_suffix=NONE
  206 program_transform_name=s,x,x,
  207 silent=
  208 site=
  209 srcdir=
  210 target=NONE
  211 verbose=
  212 x_includes=NONE
  213 x_libraries=NONE
  214 bindir='${exec_prefix}/bin'
  215 sbindir='${exec_prefix}/sbin'
  216 libexecdir='${exec_prefix}/libexec'
  217 datadir='${prefix}/share'
  218 sysconfdir='${prefix}/etc'
  219 sharedstatedir='${prefix}/com'
  220 localstatedir='${prefix}/var'
  221 libdir='${exec_prefix}/lib'
  222 includedir='${prefix}/include'
  223 oldincludedir='/usr/include'
  224 infodir='${prefix}/info'
  225 mandir='${prefix}/man'
  226 
  227 # Initialize some other variables.
  228 subdirs=
  229 MFLAGS= MAKEFLAGS=
  230 SHELL=${CONFIG_SHELL-/bin/sh}
  231 # Maximum number of lines to put in a shell here document.
  232 ac_max_here_lines=12
  233 
  234 ac_prev=
  235 for ac_option
  236 do
  237 
  238   # If the previous option needs an argument, assign it.
  239   if test -n "$ac_prev"; then
  240     eval "$ac_prev=\$ac_option"
  241     ac_prev=
  242     continue
  243   fi
  244 
  245   case "$ac_option" in
  246   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
  247   *) ac_optarg= ;;
  248   esac
  249 
  250   # Accept the important Cygnus configure options, so we can diagnose typos.
  251 
  252   case "$ac_option" in
  253 
  254   -bindir | --bindir | --bindi | --bind | --bin | --bi)
  255     ac_prev=bindir ;;
  256   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  257     bindir="$ac_optarg" ;;
  258 
  259   -build | --build | --buil | --bui | --bu)
  260     ac_prev=build ;;
  261   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  262     build="$ac_optarg" ;;
  263 
  264   -cache-file | --cache-file | --cache-fil | --cache-fi \
  265   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  266     ac_prev=cache_file ;;
  267   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  268   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  269     cache_file="$ac_optarg" ;;
  270 
  271   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  272     ac_prev=datadir ;;
  273   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  274   | --da=*)
  275     datadir="$ac_optarg" ;;
  276 
  277   -disable-* | --disable-*)
  278     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
  279     # Reject names that are not valid shell variable names.
  280     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
  281       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  282     fi
  283     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  284     eval "enable_${ac_feature}=no" ;;
  285 
  286   -enable-* | --enable-*)
  287     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
  288     # Reject names that are not valid shell variable names.
  289     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
  290       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
  291     fi
  292     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
  293     case "$ac_option" in
  294       *=*) ;;
  295       *) ac_optarg=yes ;;
  296     esac
  297     eval "enable_${ac_feature}='$ac_optarg'" ;;
  298 
  299   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  300   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  301   | --exec | --exe | --ex)
  302     ac_prev=exec_prefix ;;
  303   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  304   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  305   | --exec=* | --exe=* | --ex=*)
  306     exec_prefix="$ac_optarg" ;;
  307 
  308   -gas | --gas | --ga | --g)
  309     # Obsolete; use --with-gas.
  310     with_gas=yes ;;
  311 
  312   -help | --help | --hel | --he)
  313     # Omit some internal or obsolete options to make the list less imposing.
  314     # This message is too long to be a string in the A/UX 3.1 sh.
  315     cat << EOF
  316 Usage: configure [options] [host]
  317 Options: [defaults in brackets after descriptions]
  318 Configuration:
  319   --cache-file=FILE       cache test results in FILE
  320   --help                  print this message
  321   --no-create             do not create output files
  322   --quiet, --silent       do not print \`checking...' messages
  323   --version               print the version of autoconf that created configure
  324 Directory and file names:
  325   --prefix=PREFIX         install architecture-independent files in PREFIX
  326                           [$ac_default_prefix]
  327   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
  328                           [same as prefix]
  329   --bindir=DIR            user executables in DIR [EPREFIX/bin]
  330   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
  331   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
  332   --datadir=DIR           read-only architecture-independent data in DIR
  333                           [PREFIX/share]
  334   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
  335   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
  336                           [PREFIX/com]
  337   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
  338   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
  339   --includedir=DIR        C header files in DIR [PREFIX/include]
  340   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
  341   --infodir=DIR           info documentation in DIR [PREFIX/info]
  342   --mandir=DIR            man documentation in DIR [PREFIX/man]
  343   --srcdir=DIR            find the sources in DIR [configure dir or ..]
  344   --program-prefix=PREFIX prepend PREFIX to installed program names
  345   --program-suffix=SUFFIX append SUFFIX to installed program names
  346   --program-transform-name=PROGRAM
  347                           run sed PROGRAM on installed program names
  348 EOF
  349     cat << EOF
  350 Host type:
  351   --build=BUILD           configure for building on BUILD [BUILD=HOST]
  352   --host=HOST             configure for HOST [guessed]
  353   --target=TARGET         configure for TARGET [TARGET=HOST]
  354 Features and packages:
  355   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
  356   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
  357   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
  358   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
  359   --x-includes=DIR        X include files are in DIR
  360   --x-libraries=DIR       X library files are in DIR
  361 EOF
  362     if test -n "$ac_help"; then
  363       echo "--enable and --with options recognized:$ac_help"
  364     fi
  365     exit 0 ;;
  366 
  367   -host | --host | --hos | --ho)
  368     ac_prev=host ;;
  369   -host=* | --host=* | --hos=* | --ho=*)
  370     host="$ac_optarg" ;;
  371 
  372   -includedir | --includedir | --includedi | --included | --include \
  373   | --includ | --inclu | --incl | --inc)
  374     ac_prev=includedir ;;
  375   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  376   | --includ=* | --inclu=* | --incl=* | --inc=*)
  377     includedir="$ac_optarg" ;;
  378 
  379   -infodir | --infodir | --infodi | --infod | --info | --inf)
  380     ac_prev=infodir ;;
  381   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  382     infodir="$ac_optarg" ;;
  383 
  384   -libdir | --libdir | --libdi | --libd)
  385     ac_prev=libdir ;;
  386   -libdir=* | --libdir=* | --libdi=* | --libd=*)
  387     libdir="$ac_optarg" ;;
  388 
  389   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  390   | --libexe | --libex | --libe)
  391     ac_prev=libexecdir ;;
  392   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  393   | --libexe=* | --libex=* | --libe=*)
  394     libexecdir="$ac_optarg" ;;
  395 
  396   -localstatedir | --localstatedir | --localstatedi | --localstated \
  397   | --localstate | --localstat | --localsta | --localst \
  398   | --locals | --local | --loca | --loc | --lo)
  399     ac_prev=localstatedir ;;
  400   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  401   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  402   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  403     localstatedir="$ac_optarg" ;;
  404 
  405   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  406     ac_prev=mandir ;;
  407   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  408     mandir="$ac_optarg" ;;
  409 
  410   -nfp | --nfp | --nf)
  411     # Obsolete; use --without-fp.
  412     with_fp=no ;;
  413 
  414   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  415   | --no-cr | --no-c)
  416     no_create=yes ;;
  417 
  418   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  419   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  420     no_recursion=yes ;;
  421 
  422   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  423   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  424   | --oldin | --oldi | --old | --ol | --o)
  425     ac_prev=oldincludedir ;;
  426   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  427   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  428   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  429     oldincludedir="$ac_optarg" ;;
  430 
  431   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  432     ac_prev=prefix ;;
  433   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  434     prefix="$ac_optarg" ;;
  435 
  436   -program-prefix | --program-prefix | --program-prefi | --program-pref \
  437   | --program-pre | --program-pr | --program-p)
  438     ac_prev=program_prefix ;;
  439   -program-prefix=* | --program-prefix=* | --program-prefi=* \
  440   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  441     program_prefix="$ac_optarg" ;;
  442 
  443   -program-suffix | --program-suffix | --program-suffi | --program-suff \
  444   | --program-suf | --program-su | --program-s)
  445     ac_prev=program_suffix ;;
  446   -program-suffix=* | --program-suffix=* | --program-suffi=* \
  447   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  448     program_suffix="$ac_optarg" ;;
  449 
  450   -program-transform-name | --program-transform-name \
  451   | --program-transform-nam | --program-transform-na \
  452   | --program-transform-n | --program-transform- \
  453   | --program-transform | --program-transfor \
  454   | --program-transfo | --program-transf \
  455   | --program-trans | --program-tran \
  456   | --progr-tra | --program-tr | --program-t)
  457     ac_prev=program_transform_name ;;
  458   -program-transform-name=* | --program-transform-name=* \
  459   | --program-transform-nam=* | --program-transform-na=* \
  460   | --program-transform-n=* | --program-transform-=* \
  461   | --program-transform=* | --program-transfor=* \
  462   | --program-transfo=* | --program-transf=* \
  463   | --program-trans=* | --program-tran=* \
  464   | --progr-tra=* | --program-tr=* | --program-t=*)
  465     program_transform_name="$ac_optarg" ;;
  466 
  467   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  468   | -silent | --silent | --silen | --sile | --sil)
  469     silent=yes ;;
  470 
  471   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  472     ac_prev=sbindir ;;
  473   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  474   | --sbi=* | --sb=*)
  475     sbindir="$ac_optarg" ;;
  476 
  477   -sharedstatedir | --sharedstatedir | --sharedstatedi \
  478   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  479   | --sharedst | --shareds | --shared | --share | --shar \
  480   | --sha | --sh)
  481     ac_prev=sharedstatedir ;;
  482   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  483   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  484   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  485   | --sha=* | --sh=*)
  486     sharedstatedir="$ac_optarg" ;;
  487 
  488   -site | --site | --sit)
  489     ac_prev=site ;;
  490   -site=* | --site=* | --sit=*)
  491     site="$ac_optarg" ;;
  492 
  493   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  494     ac_prev=srcdir ;;
  495   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  496     srcdir="$ac_optarg" ;;
  497 
  498   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  499   | --syscon | --sysco | --sysc | --sys | --sy)
  500     ac_prev=sysconfdir ;;
  501   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  502   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  503     sysconfdir="$ac_optarg" ;;
  504 
  505   -target | --target | --targe | --targ | --tar | --ta | --t)
  506     ac_prev=target ;;
  507   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  508     target="$ac_optarg" ;;
  509 
  510   -v | -verbose | --verbose | --verbos | --verbo | --verb)
  511     verbose=yes ;;
  512 
  513   -version | --version | --versio | --versi | --vers)
  514     echo "configure generated by autoconf version 2.13"
  515     exit 0 ;;
  516 
  517   -with-* | --with-*)
  518     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
  519     # Reject names that are not valid shell variable names.
  520     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
  521       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  522     fi
  523     ac_package=`echo $ac_package| sed 's/-/_/g'`
  524     case "$ac_option" in
  525       *=*) ;;
  526       *) ac_optarg=yes ;;
  527     esac
  528     eval "with_${ac_package}='$ac_optarg'" ;;
  529 
  530   -without-* | --without-*)
  531     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
  532     # Reject names that are not valid shell variable names.
  533     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
  534       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
  535     fi
  536     ac_package=`echo $ac_package| sed 's/-/_/g'`
  537     eval "with_${ac_package}=no" ;;
  538 
  539   --x)
  540     # Obsolete; use --with-x.
  541     with_x=yes ;;
  542 
  543   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  544   | --x-incl | --x-inc | --x-in | --x-i)
  545     ac_prev=x_includes ;;
  546   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  547   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  548     x_includes="$ac_optarg" ;;
  549 
  550   -x-libraries | --x-libraries | --x-librarie | --x-librari \
  551   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  552     ac_prev=x_libraries ;;
  553   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  554   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  555     x_libraries="$ac_optarg" ;;
  556 
  557   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
  558     ;;
  559 
  560   *)
  561     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
  562       echo "configure: warning: $ac_option: invalid host type" 1>&2
  563     fi
  564     if test "x$nonopt" != xNONE; then
  565       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
  566     fi
  567     nonopt="$ac_option"
  568     ;;
  569 
  570   esac
  571 done
  572 
  573 if test -n "$ac_prev"; then
  574   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
  575 fi
  576 
  577 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
  578 
  579 # File descriptor usage:
  580 # 0 standard input
  581 # 1 file creation
  582 # 2 errors and warnings
  583 # 3 some systems may open it to /dev/tty
  584 # 4 used on the Kubota Titan
  585 # 6 checking for... messages and results
  586 # 5 compiler messages saved in config.log
  587 if test "$silent" = yes; then
  588   exec 6>/dev/null
  589 else
  590   exec 6>&1
  591 fi
  592 exec 5>./config.log
  593 
  594 echo "\
  595 This file contains any messages produced by compilers while
  596 running configure, to aid debugging if configure makes a mistake.
  597 " 1>&5
  598 
  599 # Strip out --no-create and --no-recursion so they do not pile up.
  600 # Also quote any args containing shell metacharacters.
  601 ac_configure_args=
  602 for ac_arg
  603 do
  604   case "$ac_arg" in
  605   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  606   | --no-cr | --no-c) ;;
  607   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  608   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
  609   *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
  610   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  611   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
  612   esac
  613 done
  614 
  615 # NLS nuisances.
  616 # Only set these to C if already set.  These must not be set unconditionally
  617 # because not all systems understand e.g. LANG=C (notably SCO).
  618 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
  619 # Non-C LC_CTYPE values break the ctype check.
  620 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
  621 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
  622 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
  623 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
  624 
  625 # confdefs.h avoids OS command line length limits that DEFS can exceed.
  626 rm -rf conftest* confdefs.h
  627 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
  628 echo > confdefs.h
  629 
  630 # A filename unique to this package, relative to the directory that
  631 # configure is in, which we can look for to find out if srcdir is correct.
  632 ac_unique_file=ltdl.c
  633 
  634 # Find the source files, if location was not specified.
  635 if test -z "$srcdir"; then
  636   ac_srcdir_defaulted=yes
  637   # Try the directory containing this script, then its parent.
  638   ac_prog=$0
  639   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
  640   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
  641   srcdir=$ac_confdir
  642   if test ! -r $srcdir/$ac_unique_file; then
  643     srcdir=..
  644   fi
  645 else
  646   ac_srcdir_defaulted=no
  647 fi
  648 if test ! -r $srcdir/$ac_unique_file; then
  649   if test "$ac_srcdir_defaulted" = yes; then
  650     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
  651   else
  652     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
  653   fi
  654 fi
  655 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
  656 
  657 # Prefer explicitly selected file to automatically selected ones.
  658 if test -z "$CONFIG_SITE"; then
  659   if test "x$prefix" != xNONE; then
  660     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  661   else
  662     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  663   fi
  664 fi
  665 for ac_site_file in $CONFIG_SITE; do
  666   if test -r "$ac_site_file"; then
  667     echo "loading site script $ac_site_file"
  668     . "$ac_site_file"
  669   fi
  670 done
  671 
  672 if test -r "$cache_file"; then
  673   echo "loading cache $cache_file"
  674   . $cache_file
  675 else
  676   echo "creating cache $cache_file"
  677   > $cache_file
  678 fi
  679 
  680 ac_ext=c
  681 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
  682 ac_cpp='$CPP $CPPFLAGS'
  683 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
  684 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
  685 cross_compiling=$ac_cv_prog_cc_cross
  686 
  687 ac_exeext=
  688 ac_objext=o
  689 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
  690   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
  691   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
  692     ac_n= ac_c='
  693 ' ac_t='    '
  694   else
  695     ac_n=-n ac_c= ac_t=
  696   fi
  697 else
  698   ac_n= ac_c='\c' ac_t=
  699 fi
  700 
  701 
  702 
  703 # Check whether --with-auxdir or --without-auxdir was given.
  704 if test "${with_auxdir+set}" = set; then
  705   withval="$with_auxdir"
  706   ac_aux_dir=
  707 for ac_dir in $with_auxdir; do
  708   if test -f $ac_dir/install-sh; then
  709     ac_aux_dir=$ac_dir
  710     ac_install_sh="$ac_aux_dir/install-sh -c"
  711     break
  712   elif test -f $ac_dir/install.sh; then
  713     ac_aux_dir=$ac_dir
  714     ac_install_sh="$ac_aux_dir/install.sh -c"
  715     break
  716   fi
  717 done
  718 if test -z "$ac_aux_dir"; then
  719   { echo "configure: error: can not find install-sh or install.sh in $with_auxdir" 1>&2; exit 1; }
  720 fi
  721 ac_config_guess=$ac_aux_dir/config.guess
  722 ac_config_sub=$ac_aux_dir/config.sub
  723 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  724 
  725 else
  726   ac_aux_dir=
  727 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  728   if test -f $ac_dir/install-sh; then
  729     ac_aux_dir=$ac_dir
  730     ac_install_sh="$ac_aux_dir/install-sh -c"
  731     break
  732   elif test -f $ac_dir/install.sh; then
  733     ac_aux_dir=$ac_dir
  734     ac_install_sh="$ac_aux_dir/install.sh -c"
  735     break
  736   fi
  737 done
  738 if test -z "$ac_aux_dir"; then
  739   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
  740 fi
  741 ac_config_guess=$ac_aux_dir/config.guess
  742 ac_config_sub=$ac_aux_dir/config.sub
  743 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
  744 
  745 fi
  746 
  747 
  748 if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then
  749   if test -f ${srcdir}/ltmain.sh; then
  750     # if libltdl is libtoolized, it is assumed to be stand-alone and
  751     # installed unless the command line overrides it (tested above)
  752     enable_ltdl_install=yes
  753   else
  754     echo "configure: warning: *** The top-level configure must select either" 1>&2
  755     echo "configure: warning: *** A""C_LIBLTDL_INSTALLABLE or A""C_LIBLTDL_CONVENIENCE." 1>&2
  756     { echo "configure: error: *** Maybe you want to --enable-ltdl-install?" 1>&2; exit 1; }
  757   fi
  758 fi
  759 
  760 # Find a good install program.  We prefer a C program (faster),
  761 # so one script is as good as another.  But avoid the broken or
  762 # incompatible versions:
  763 # SysV /etc/install, /usr/sbin/install
  764 # SunOS /usr/etc/install
  765 # IRIX /sbin/install
  766 # AIX /bin/install
  767 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  768 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  769 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  770 # ./install, which can be erroneously created by make from ./install.sh.
  771 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
  772 echo "configure:773: checking for a BSD compatible install" >&5
  773 if test -z "$INSTALL"; then
  774 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
  775   echo $ac_n "(cached) $ac_c" 1>&6
  776 else
  777     IFS="${IFS=     }"; ac_save_IFS="$IFS"; IFS=":"
  778   for ac_dir in $PATH; do
  779     # Account for people who put trailing slashes in PATH elements.
  780     case "$ac_dir/" in
  781     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
  782     *)
  783       # OSF1 and SCO ODT 3.0 have their own names for install.
  784       # Don't use installbsd from OSF since it installs stuff as root
  785       # by default.
  786       for ac_prog in ginstall scoinst install; do
  787         if test -f $ac_dir/$ac_prog; then
  788       if test $ac_prog = install &&
  789             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
  790         # AIX install.  It has an incompatible calling convention.
  791         :
  792       else
  793         ac_cv_path_install="$ac_dir/$ac_prog -c"
  794         break 2
  795       fi
  796     fi
  797       done
  798       ;;
  799     esac
  800   done
  801   IFS="$ac_save_IFS"
  802 
  803 fi
  804   if test "${ac_cv_path_install+set}" = set; then
  805     INSTALL="$ac_cv_path_install"
  806   else
  807     # As a last resort, use the slow shell script.  We don't cache a
  808     # path for INSTALL within a source directory, because that will
  809     # break other packages using the cache if that directory is
  810     # removed, or if the path is relative.
  811     INSTALL="$ac_install_sh"
  812   fi
  813 fi
  814 echo "$ac_t""$INSTALL" 1>&6
  815 
  816 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  817 # It thinks the first close brace ends the variable substitution.
  818 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  819 
  820 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
  821 
  822 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  823 
  824 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
  825 echo "configure:826: checking whether build environment is sane" >&5
  826 # Just in case
  827 sleep 1
  828 echo timestamp > conftestfile
  829 # Do `set' in a subshell so we don't clobber the current shell's
  830 # arguments.  Must try -L first in case configure is actually a
  831 # symlink; some systems play weird games with the mod time of symlinks
  832 # (eg FreeBSD returns the mod time of the symlink's containing
  833 # directory).
  834 if (
  835    set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
  836    if test "$*" = "X"; then
  837       # -L didn't work.
  838       set X `ls -t $srcdir/configure conftestfile`
  839    fi
  840    if test "$*" != "X $srcdir/configure conftestfile" \
  841       && test "$*" != "X conftestfile $srcdir/configure"; then
  842 
  843       # If neither matched, then we have a broken ls.  This can happen
  844       # if, for instance, CONFIG_SHELL is bash and it inherits a
  845       # broken ls alias from the environment.  This has actually
  846       # happened.  Such a system could not be considered "sane".
  847       { echo "configure: error: ls -t appears to fail.  Make sure there is not a broken
  848 alias in your environment" 1>&2; exit 1; }
  849    fi
  850 
  851    test "$2" = conftestfile
  852    )
  853 then
  854    # Ok.
  855    :
  856 else
  857    { echo "configure: error: newly created file is older than distributed files!
  858 Check your system clock" 1>&2; exit 1; }
  859 fi
  860 rm -f conftest*
  861 echo "$ac_t""yes" 1>&6
  862 if test "$program_transform_name" = s,x,x,; then
  863   program_transform_name=
  864 else
  865   # Double any \ or $.  echo might interpret backslashes.
  866   cat <<\EOF_SED > conftestsed
  867 s,\\,\\\\,g; s,\$,$$,g
  868 EOF_SED
  869   program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
  870   rm -f conftestsed
  871 fi
  872 test "$program_prefix" != NONE &&
  873   program_transform_name="s,^,${program_prefix},; $program_transform_name"
  874 # Use a double $ so make ignores it.
  875 test "$program_suffix" != NONE &&
  876   program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
  877 
  878 # sed with no file args requires a program.
  879 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
  880 
  881 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
  882 echo "configure:883: checking whether ${MAKE-make} sets \${MAKE}" >&5
  883 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
  884 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
  885   echo $ac_n "(cached) $ac_c" 1>&6
  886 else
  887   cat > conftestmake <<\EOF
  888 all:
  889     @echo 'ac_maketemp="${MAKE}"'
  890 EOF
  891 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  892 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
  893 if test -n "$ac_maketemp"; then
  894   eval ac_cv_prog_make_${ac_make}_set=yes
  895 else
  896   eval ac_cv_prog_make_${ac_make}_set=no
  897 fi
  898 rm -f conftestmake
  899 fi
  900 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  901   echo "$ac_t""yes" 1>&6
  902   SET_MAKE=
  903 else
  904   echo "$ac_t""no" 1>&6
  905   SET_MAKE="MAKE=${MAKE-make}"
  906 fi
  907 
  908 
  909 PACKAGE=libltdl
  910 
  911 VERSION=1.2
  912 
  913 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
  914   { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
  915 fi
  916 
  917 
  918 
  919 missing_dir=`cd $ac_aux_dir && pwd`
  920 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
  921 echo "configure:922: checking for working aclocal" >&5
  922 # Run test in a subshell; some versions of sh will print an error if
  923 # an executable is not found, even if stderr is redirected.
  924 # Redirect stdin to placate older versions of autoconf.  Sigh.
  925 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
  926    ACLOCAL=aclocal
  927    echo "$ac_t""found" 1>&6
  928 else
  929    ACLOCAL="$missing_dir/missing aclocal"
  930    echo "$ac_t""missing" 1>&6
  931 fi
  932 
  933 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
  934 echo "configure:935: checking for working autoconf" >&5
  935 # Run test in a subshell; some versions of sh will print an error if
  936 # an executable is not found, even if stderr is redirected.
  937 # Redirect stdin to placate older versions of autoconf.  Sigh.
  938 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
  939    AUTOCONF=autoconf
  940    echo "$ac_t""found" 1>&6
  941 else
  942    AUTOCONF="$missing_dir/missing autoconf"
  943    echo "$ac_t""missing" 1>&6
  944 fi
  945 
  946 echo $ac_n "checking for working automake""... $ac_c" 1>&6
  947 echo "configure:948: checking for working automake" >&5
  948 # Run test in a subshell; some versions of sh will print an error if
  949 # an executable is not found, even if stderr is redirected.
  950 # Redirect stdin to placate older versions of autoconf.  Sigh.
  951 if (automake --version) < /dev/null > /dev/null 2>&1; then
  952    AUTOMAKE=automake
  953    echo "$ac_t""found" 1>&6
  954 else
  955    AUTOMAKE="$missing_dir/missing automake"
  956    echo "$ac_t""missing" 1>&6
  957 fi
  958 
  959 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
  960 echo "configure:961: checking for working autoheader" >&5
  961 # Run test in a subshell; some versions of sh will print an error if
  962 # an executable is not found, even if stderr is redirected.
  963 # Redirect stdin to placate older versions of autoconf.  Sigh.
  964 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
  965    AUTOHEADER=autoheader
  966    echo "$ac_t""found" 1>&6
  967 else
  968    AUTOHEADER="$missing_dir/missing autoheader"
  969    echo "$ac_t""missing" 1>&6
  970 fi
  971 
  972 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
  973 echo "configure:974: checking for working makeinfo" >&5
  974 # Run test in a subshell; some versions of sh will print an error if
  975 # an executable is not found, even if stderr is redirected.
  976 # Redirect stdin to placate older versions of autoconf.  Sigh.
  977 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
  978    MAKEINFO=makeinfo
  979    echo "$ac_t""found" 1>&6
  980 else
  981    MAKEINFO="$missing_dir/missing makeinfo"
  982    echo "$ac_t""missing" 1>&6
  983 fi
  984 
  985 
  986 
  987 
  988 
  989 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
  990 echo "configure:991: checking whether to enable maintainer-specific portions of Makefiles" >&5
  991     # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
  992 if test "${enable_maintainer_mode+set}" = set; then
  993   enableval="$enable_maintainer_mode"
  994   USE_MAINTAINER_MODE=$enableval
  995 else
  996   USE_MAINTAINER_MODE=no
  997 fi
  998 
  999   echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
 1000   
 1001 
 1002 if test $USE_MAINTAINER_MODE = yes; then
 1003   MAINTAINER_MODE_TRUE=
 1004   MAINTAINER_MODE_FALSE='#'
 1005 else
 1006   MAINTAINER_MODE_TRUE='#'
 1007   MAINTAINER_MODE_FALSE=
 1008 fi
 1009   MAINT=$MAINTAINER_MODE_TRUE
 1010   
 1011 
 1012 
 1013 # Extract the first word of "gcc", so it can be a program name with args.
 1014 set dummy gcc; ac_word=$2
 1015 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1016 echo "configure:1017: checking for $ac_word" >&5
 1017 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1018   echo $ac_n "(cached) $ac_c" 1>&6
 1019 else
 1020   if test -n "$CC"; then
 1021   ac_cv_prog_CC="$CC" # Let the user override the test.
 1022 else
 1023   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1024   ac_dummy="$PATH"
 1025   for ac_dir in $ac_dummy; do
 1026     test -z "$ac_dir" && ac_dir=.
 1027     if test -f $ac_dir/$ac_word; then
 1028       ac_cv_prog_CC="gcc"
 1029       break
 1030     fi
 1031   done
 1032   IFS="$ac_save_ifs"
 1033 fi
 1034 fi
 1035 CC="$ac_cv_prog_CC"
 1036 if test -n "$CC"; then
 1037   echo "$ac_t""$CC" 1>&6
 1038 else
 1039   echo "$ac_t""no" 1>&6
 1040 fi
 1041 
 1042 if test -z "$CC"; then
 1043   # Extract the first word of "cc", so it can be a program name with args.
 1044 set dummy cc; ac_word=$2
 1045 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1046 echo "configure:1047: checking for $ac_word" >&5
 1047 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1048   echo $ac_n "(cached) $ac_c" 1>&6
 1049 else
 1050   if test -n "$CC"; then
 1051   ac_cv_prog_CC="$CC" # Let the user override the test.
 1052 else
 1053   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1054   ac_prog_rejected=no
 1055   ac_dummy="$PATH"
 1056   for ac_dir in $ac_dummy; do
 1057     test -z "$ac_dir" && ac_dir=.
 1058     if test -f $ac_dir/$ac_word; then
 1059       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
 1060         ac_prog_rejected=yes
 1061     continue
 1062       fi
 1063       ac_cv_prog_CC="cc"
 1064       break
 1065     fi
 1066   done
 1067   IFS="$ac_save_ifs"
 1068 if test $ac_prog_rejected = yes; then
 1069   # We found a bogon in the path, so make sure we never use it.
 1070   set dummy $ac_cv_prog_CC
 1071   shift
 1072   if test $# -gt 0; then
 1073     # We chose a different compiler from the bogus one.
 1074     # However, it has the same basename, so the bogon will be chosen
 1075     # first if we set CC to just the basename; use the full file name.
 1076     shift
 1077     set dummy "$ac_dir/$ac_word" "$@"
 1078     shift
 1079     ac_cv_prog_CC="$@"
 1080   fi
 1081 fi
 1082 fi
 1083 fi
 1084 CC="$ac_cv_prog_CC"
 1085 if test -n "$CC"; then
 1086   echo "$ac_t""$CC" 1>&6
 1087 else
 1088   echo "$ac_t""no" 1>&6
 1089 fi
 1090 
 1091   if test -z "$CC"; then
 1092     case "`uname -s`" in
 1093     *win32* | *WIN32*)
 1094       # Extract the first word of "cl", so it can be a program name with args.
 1095 set dummy cl; ac_word=$2
 1096 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 1097 echo "configure:1098: checking for $ac_word" >&5
 1098 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
 1099   echo $ac_n "(cached) $ac_c" 1>&6
 1100 else
 1101   if test -n "$CC"; then
 1102   ac_cv_prog_CC="$CC" # Let the user override the test.
 1103 else
 1104   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 1105   ac_dummy="$PATH"
 1106   for ac_dir in $ac_dummy; do
 1107     test -z "$ac_dir" && ac_dir=.
 1108     if test -f $ac_dir/$ac_word; then
 1109       ac_cv_prog_CC="cl"
 1110       break
 1111     fi
 1112   done
 1113   IFS="$ac_save_ifs"
 1114 fi
 1115 fi
 1116 CC="$ac_cv_prog_CC"
 1117 if test -n "$CC"; then
 1118   echo "$ac_t""$CC" 1>&6
 1119 else
 1120   echo "$ac_t""no" 1>&6
 1121 fi
 1122  ;;
 1123     esac
 1124   fi
 1125   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
 1126 fi
 1127 
 1128 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
 1129 echo "configure:1130: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
 1130 
 1131 ac_ext=c
 1132 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1133 ac_cpp='$CPP $CPPFLAGS'
 1134 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1135 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1136 cross_compiling=$ac_cv_prog_cc_cross
 1137 
 1138 cat > conftest.$ac_ext << EOF
 1139 
 1140 #line 1141 "configure"
 1141 #include "confdefs.h"
 1142 
 1143 main(){return(0);}
 1144 EOF
 1145 if { (eval echo configure:1146: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 1146   ac_cv_prog_cc_works=yes
 1147   # If we can't run a trivial program, we are probably using a cross compiler.
 1148   if (./conftest; exit) 2>/dev/null; then
 1149     ac_cv_prog_cc_cross=no
 1150   else
 1151     ac_cv_prog_cc_cross=yes
 1152   fi
 1153 else
 1154   echo "configure: failed program was:" >&5
 1155   cat conftest.$ac_ext >&5
 1156   ac_cv_prog_cc_works=no
 1157 fi
 1158 rm -fr conftest*
 1159 ac_ext=c
 1160 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 1161 ac_cpp='$CPP $CPPFLAGS'
 1162 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 1163 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 1164 cross_compiling=$ac_cv_prog_cc_cross
 1165 
 1166 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
 1167 if test $ac_cv_prog_cc_works = no; then
 1168   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
 1169 fi
 1170 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
 1171 echo "configure:1172: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
 1172 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
 1173 cross_compiling=$ac_cv_prog_cc_cross
 1174 
 1175 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
 1176 echo "configure:1177: checking whether we are using GNU C" >&5
 1177 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
 1178   echo $ac_n "(cached) $ac_c" 1>&6
 1179 else
 1180   cat > conftest.c <<EOF
 1181 #ifdef __GNUC__
 1182   yes;
 1183 #endif
 1184 EOF
 1185 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1186: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
 1186   ac_cv_prog_gcc=yes
 1187 else
 1188   ac_cv_prog_gcc=no
 1189 fi
 1190 fi
 1191 
 1192 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
 1193 
 1194 if test $ac_cv_prog_gcc = yes; then
 1195   GCC=yes
 1196 else
 1197   GCC=
 1198 fi
 1199 
 1200 ac_test_CFLAGS="${CFLAGS+set}"
 1201 ac_save_CFLAGS="$CFLAGS"
 1202 CFLAGS=
 1203 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
 1204 echo "configure:1205: checking whether ${CC-cc} accepts -g" >&5
 1205 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
 1206   echo $ac_n "(cached) $ac_c" 1>&6
 1207 else
 1208   echo 'void f(){}' > conftest.c
 1209 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
 1210   ac_cv_prog_cc_g=yes
 1211 else
 1212   ac_cv_prog_cc_g=no
 1213 fi
 1214 rm -f conftest*
 1215 
 1216 fi
 1217 
 1218 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
 1219 if test "$ac_test_CFLAGS" = set; then
 1220   CFLAGS="$ac_save_CFLAGS"
 1221 elif test $ac_cv_prog_cc_g = yes; then
 1222   if test "$GCC" = yes; then
 1223     CFLAGS="-g -O2"
 1224   else
 1225     CFLAGS="-g"
 1226   fi
 1227 else
 1228   if test "$GCC" = yes; then
 1229     CFLAGS="-O2"
 1230   else
 1231     CFLAGS=
 1232   fi
 1233 fi
 1234 
 1235 echo $ac_n "checking for working const""... $ac_c" 1>&6
 1236 echo "configure:1237: checking for working const" >&5
 1237 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
 1238   echo $ac_n "(cached) $ac_c" 1>&6
 1239 else
 1240   cat > conftest.$ac_ext <<EOF
 1241 #line 1242 "configure"
 1242 #include "confdefs.h"
 1243 
 1244 int main() {
 1245 
 1246 /* Ultrix mips cc rejects this.  */
 1247 typedef int charset[2]; const charset x;
 1248 /* SunOS 4.1.1 cc rejects this.  */
 1249 char const *const *ccp;
 1250 char **p;
 1251 /* NEC SVR4.0.2 mips cc rejects this.  */
 1252 struct point {int x, y;};
 1253 static struct point const zero = {0,0};
 1254 /* AIX XL C 1.02.0.0 rejects this.
 1255    It does not let you subtract one const X* pointer from another in an arm
 1256    of an if-expression whose if-part is not a constant expression */
 1257 const char *g = "string";
 1258 ccp = &g + (g ? g-g : 0);
 1259 /* HPUX 7.0 cc rejects these. */
 1260 ++ccp;
 1261 p = (char**) ccp;
 1262 ccp = (char const *const *) p;
 1263 { /* SCO 3.2v4 cc rejects this.  */
 1264   char *t;
 1265   char const *s = 0 ? (char *) 0 : (char const *) 0;
 1266 
 1267   *t++ = 0;
 1268 }
 1269 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
 1270   int x[] = {25, 17};
 1271   const int *foo = &x[0];
 1272   ++foo;
 1273 }
 1274 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
 1275   typedef const int *iptr;
 1276   iptr p = 0;
 1277   ++p;
 1278 }
 1279 { /* AIX XL C 1.02.0.0 rejects this saying
 1280      "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
 1281   struct s { int j; const int *ap[3]; };
 1282   struct s *b; b->j = 5;
 1283 }
 1284 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
 1285   const int foo = 10;
 1286 }
 1287 
 1288 ; return 0; }
 1289 EOF
 1290 if { (eval echo configure:1291: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1291   rm -rf conftest*
 1292   ac_cv_c_const=yes
 1293 else
 1294   echo "configure: failed program was:" >&5
 1295   cat conftest.$ac_ext >&5
 1296   rm -rf conftest*
 1297   ac_cv_c_const=no
 1298 fi
 1299 rm -f conftest*
 1300 fi
 1301 
 1302 echo "$ac_t""$ac_cv_c_const" 1>&6
 1303 if test $ac_cv_c_const = no; then
 1304   cat >> confdefs.h <<\EOF
 1305 #define const 
 1306 EOF
 1307 
 1308 fi
 1309 
 1310 echo $ac_n "checking for inline""... $ac_c" 1>&6
 1311 echo "configure:1312: checking for inline" >&5
 1312 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
 1313   echo $ac_n "(cached) $ac_c" 1>&6
 1314 else
 1315   ac_cv_c_inline=no
 1316 for ac_kw in inline __inline__ __inline; do
 1317   cat > conftest.$ac_ext <<EOF
 1318 #line 1319 "configure"
 1319 #include "confdefs.h"
 1320 
 1321 int main() {
 1322 } $ac_kw foo() {
 1323 ; return 0; }
 1324 EOF
 1325 if { (eval echo configure:1326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1326   rm -rf conftest*
 1327   ac_cv_c_inline=$ac_kw; break
 1328 else
 1329   echo "configure: failed program was:" >&5
 1330   cat conftest.$ac_ext >&5
 1331 fi
 1332 rm -f conftest*
 1333 done
 1334 
 1335 fi
 1336 
 1337 echo "$ac_t""$ac_cv_c_inline" 1>&6
 1338 case "$ac_cv_c_inline" in
 1339   inline | yes) ;;
 1340   no) cat >> confdefs.h <<\EOF
 1341 #define inline 
 1342 EOF
 1343  ;;
 1344   *)  cat >> confdefs.h <<EOF
 1345 #define inline $ac_cv_c_inline
 1346 EOF
 1347  ;;
 1348 esac
 1349 
 1350 
 1351 
 1352 # Find the correct PATH separator.  Usually this is `:', but
 1353 # DJGPP uses `;' like DOS.
 1354 if test "X${PATH_SEPARATOR+set}" != Xset; then
 1355   UNAME=${UNAME-`uname 2>/dev/null`}
 1356   case X$UNAME in
 1357     *-DOS) lt_cv_sys_path_separator=';' ;;
 1358     *)     lt_cv_sys_path_separator=':' ;;
 1359   esac
 1360   PATH_SEPARATOR=$lt_cv_sys_path_separator
 1361 fi
 1362 
 1363 echo $ac_n "checking for Cygwin environment""... $ac_c" 1>&6
 1364 echo "configure:1365: checking for Cygwin environment" >&5
 1365 if eval "test \"`echo '$''{'ac_cv_cygwin'+set}'`\" = set"; then
 1366   echo $ac_n "(cached) $ac_c" 1>&6
 1367 else
 1368   cat > conftest.$ac_ext <<EOF
 1369 #line 1370 "configure"
 1370 #include "confdefs.h"
 1371 
 1372 int main() {
 1373 
 1374 #ifndef __CYGWIN__
 1375 #define __CYGWIN__ __CYGWIN32__
 1376 #endif
 1377 return __CYGWIN__;
 1378 ; return 0; }
 1379 EOF
 1380 if { (eval echo configure:1381: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1381   rm -rf conftest*
 1382   ac_cv_cygwin=yes
 1383 else
 1384   echo "configure: failed program was:" >&5
 1385   cat conftest.$ac_ext >&5
 1386   rm -rf conftest*
 1387   ac_cv_cygwin=no
 1388 fi
 1389 rm -f conftest*
 1390 rm -f conftest*
 1391 fi
 1392 
 1393 echo "$ac_t""$ac_cv_cygwin" 1>&6
 1394 CYGWIN=
 1395 test "$ac_cv_cygwin" = yes && CYGWIN=yes
 1396 echo $ac_n "checking for mingw32 environment""... $ac_c" 1>&6
 1397 echo "configure:1398: checking for mingw32 environment" >&5
 1398 if eval "test \"`echo '$''{'ac_cv_mingw32'+set}'`\" = set"; then
 1399   echo $ac_n "(cached) $ac_c" 1>&6
 1400 else
 1401   cat > conftest.$ac_ext <<EOF
 1402 #line 1403 "configure"
 1403 #include "confdefs.h"
 1404 
 1405 int main() {
 1406 return __MINGW32__;
 1407 ; return 0; }
 1408 EOF
 1409 if { (eval echo configure:1410: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 1410   rm -rf conftest*
 1411   ac_cv_mingw32=yes
 1412 else
 1413   echo "configure: failed program was:" >&5
 1414   cat conftest.$ac_ext >&5
 1415   rm -rf conftest*
 1416   ac_cv_mingw32=no
 1417 fi
 1418 rm -f conftest*
 1419 rm -f conftest*
 1420 fi
 1421 
 1422 echo "$ac_t""$ac_cv_mingw32" 1>&6
 1423 MINGW32=
 1424 test "$ac_cv_mingw32" = yes && MINGW32=yes
 1425 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
 1426 echo "configure:1427: checking how to run the C preprocessor" >&5
 1427 # On Suns, sometimes $CPP names a directory.
 1428 if test -n "$CPP" && test -d "$CPP"; then
 1429   CPP=
 1430 fi
 1431 if test -z "$CPP"; then
 1432 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
 1433   echo $ac_n "(cached) $ac_c" 1>&6
 1434 else
 1435     # This must be in double quotes, not single quotes, because CPP may get
 1436   # substituted into the Makefile and "${CC-cc}" will confuse make.
 1437   CPP="${CC-cc} -E"
 1438   # On the NeXT, cc -E runs the code through the compiler's parser,
 1439   # not just through cpp.
 1440   cat > conftest.$ac_ext <<EOF
 1441 #line 1442 "configure"
 1442 #include "confdefs.h"
 1443 #include <assert.h>
 1444 Syntax Error
 1445 EOF
 1446 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1447 { (eval echo configure:1448: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1448 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1449 if test -z "$ac_err"; then
 1450   :
 1451 else
 1452   echo "$ac_err" >&5
 1453   echo "configure: failed program was:" >&5
 1454   cat conftest.$ac_ext >&5
 1455   rm -rf conftest*
 1456   CPP="${CC-cc} -E -traditional-cpp"
 1457   cat > conftest.$ac_ext <<EOF
 1458 #line 1459 "configure"
 1459 #include "confdefs.h"
 1460 #include <assert.h>
 1461 Syntax Error
 1462 EOF
 1463 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1464 { (eval echo configure:1465: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1465 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1466 if test -z "$ac_err"; then
 1467   :
 1468 else
 1469   echo "$ac_err" >&5
 1470   echo "configure: failed program was:" >&5
 1471   cat conftest.$ac_ext >&5
 1472   rm -rf conftest*
 1473   CPP="${CC-cc} -nologo -E"
 1474   cat > conftest.$ac_ext <<EOF
 1475 #line 1476 "configure"
 1476 #include "confdefs.h"
 1477 #include <assert.h>
 1478 Syntax Error
 1479 EOF
 1480 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 1481 { (eval echo configure:1482: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 1482 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 1483 if test -z "$ac_err"; then
 1484   :
 1485 else
 1486   echo "$ac_err" >&5
 1487   echo "configure: failed program was:" >&5
 1488   cat conftest.$ac_ext >&5
 1489   rm -rf conftest*
 1490   CPP=/lib/cpp
 1491 fi
 1492 rm -f conftest*
 1493 fi
 1494 rm -f conftest*
 1495 fi
 1496 rm -f conftest*
 1497   ac_cv_prog_CPP="$CPP"
 1498 fi
 1499   CPP="$ac_cv_prog_CPP"
 1500 else
 1501   ac_cv_prog_CPP="$CPP"
 1502 fi
 1503 echo "$ac_t""$CPP" 1>&6
 1504 
 1505 # Check whether --enable-shared or --disable-shared was given.
 1506 if test "${enable_shared+set}" = set; then
 1507   enableval="$enable_shared"
 1508   p=${PACKAGE-default}
 1509 case $enableval in
 1510 yes) enable_shared=yes ;;
 1511 no) enable_shared=no ;;
 1512 *)
 1513   enable_shared=no
 1514   # Look at the argument we got.  We use all the common list separators.
 1515   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 1516   for pkg in $enableval; do
 1517     if test "X$pkg" = "X$p"; then
 1518       enable_shared=yes
 1519     fi
 1520   done
 1521   IFS="$ac_save_ifs"
 1522   ;;
 1523 esac
 1524 else
 1525   enable_shared=yes
 1526 fi
 1527 
 1528 # Check whether --enable-static or --disable-static was given.
 1529 if test "${enable_static+set}" = set; then
 1530   enableval="$enable_static"
 1531   p=${PACKAGE-default}
 1532 case $enableval in
 1533 yes) enable_static=yes ;;
 1534 no) enable_static=no ;;
 1535 *)
 1536   enable_static=no
 1537   # Look at the argument we got.  We use all the common list separators.
 1538   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 1539   for pkg in $enableval; do
 1540     if test "X$pkg" = "X$p"; then
 1541       enable_static=yes
 1542     fi
 1543   done
 1544   IFS="$ac_save_ifs"
 1545   ;;
 1546 esac
 1547 else
 1548   enable_static=yes
 1549 fi
 1550 
 1551 # Check whether --enable-fast-install or --disable-fast-install was given.
 1552 if test "${enable_fast_install+set}" = set; then
 1553   enableval="$enable_fast_install"
 1554   p=${PACKAGE-default}
 1555 case $enableval in
 1556 yes) enable_fast_install=yes ;;
 1557 no) enable_fast_install=no ;;
 1558 *)
 1559   enable_fast_install=no
 1560   # Look at the argument we got.  We use all the common list separators.
 1561   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
 1562   for pkg in $enableval; do
 1563     if test "X$pkg" = "X$p"; then
 1564       enable_fast_install=yes
 1565     fi
 1566   done
 1567   IFS="$ac_save_ifs"
 1568   ;;
 1569 esac
 1570 else
 1571   enable_fast_install=yes
 1572 fi
 1573 
 1574 
 1575 # Make sure we can run config.sub.
 1576 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
 1577 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
 1578 fi
 1579 
 1580 echo $ac_n "checking host system type""... $ac_c" 1>&6
 1581 echo "configure:1582: checking host system type" >&5
 1582 
 1583 host_alias=$host
 1584 case "$host_alias" in
 1585 NONE)
 1586   case $nonopt in
 1587   NONE)
 1588     if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
 1589     else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
 1590     fi ;;
 1591   *) host_alias=$nonopt ;;
 1592   esac ;;
 1593 esac
 1594 
 1595 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
 1596 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1597 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1598 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1599 echo "$ac_t""$host" 1>&6
 1600 
 1601 echo $ac_n "checking build system type""... $ac_c" 1>&6
 1602 echo "configure:1603: checking build system type" >&5
 1603 
 1604 build_alias=$build
 1605 case "$build_alias" in
 1606 NONE)
 1607   case $nonopt in
 1608   NONE) build_alias=$host_alias ;;
 1609   *) build_alias=$nonopt ;;
 1610   esac ;;
 1611 esac
 1612 
 1613 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
 1614 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
 1615 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
 1616 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
 1617 echo "$ac_t""$build" 1>&6
 1618 
 1619 # Check whether --with-gnu-ld or --without-gnu-ld was given.
 1620 if test "${with_gnu_ld+set}" = set; then
 1621   withval="$with_gnu_ld"
 1622   test "$withval" = no || with_gnu_ld=yes
 1623 else
 1624   with_gnu_ld=no
 1625 fi
 1626 
 1627 ac_prog=ld
 1628 if test "$GCC" = yes; then
 1629   # Check if gcc -print-prog-name=ld gives a path.
 1630   echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
 1631 echo "configure:1632: checking for ld used by GCC" >&5
 1632   case $host in
 1633   *-*-mingw*)
 1634     # gcc leaves a trailing carriage return which upsets mingw
 1635     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
 1636   *)
 1637     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
 1638   esac
 1639   case $ac_prog in
 1640     # Accept absolute paths.
 1641     [\\/]* | [A-Za-z]:[\\/]*)
 1642       re_direlt='/[^/][^/]*/\.\./'
 1643       # Canonicalize the path of ld
 1644       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
 1645       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
 1646     ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
 1647       done
 1648       test -z "$LD" && LD="$ac_prog"
 1649       ;;
 1650   "")
 1651     # If it fails, then pretend we aren't using GCC.
 1652     ac_prog=ld
 1653     ;;
 1654   *)
 1655     # If it is relative, then search for the first ld in PATH.
 1656     with_gnu_ld=unknown
 1657     ;;
 1658   esac
 1659 elif test "$with_gnu_ld" = yes; then
 1660   echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
 1661 echo "configure:1662: checking for GNU ld" >&5
 1662 else
 1663   echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
 1664 echo "configure:1665: checking for non-GNU ld" >&5
 1665 fi
 1666 if eval "test \"`echo '$''{'lt_cv_path_LD'+set}'`\" = set"; then
 1667   echo $ac_n "(cached) $ac_c" 1>&6
 1668 else
 1669   if test -z "$LD"; then
 1670   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 1671   for ac_dir in $PATH; do
 1672     test -z "$ac_dir" && ac_dir=.
 1673     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
 1674       lt_cv_path_LD="$ac_dir/$ac_prog"
 1675       # Check to see if the program is GNU ld.  I'd rather use --version,
 1676       # but apparently some GNU ld's only accept -v.
 1677       # Break only if it was the GNU/non-GNU ld that we prefer.
 1678       if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
 1679     test "$with_gnu_ld" != no && break
 1680       else
 1681     test "$with_gnu_ld" != yes && break
 1682       fi
 1683     fi
 1684   done
 1685   IFS="$ac_save_ifs"
 1686 else
 1687   lt_cv_path_LD="$LD" # Let the user override the test with a path.
 1688 fi
 1689 fi
 1690 
 1691 LD="$lt_cv_path_LD"
 1692 if test -n "$LD"; then
 1693   echo "$ac_t""$LD" 1>&6
 1694 else
 1695   echo "$ac_t""no" 1>&6
 1696 fi
 1697 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
 1698 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
 1699 echo "configure:1700: checking if the linker ($LD) is GNU ld" >&5
 1700 if eval "test \"`echo '$''{'lt_cv_prog_gnu_ld'+set}'`\" = set"; then
 1701   echo $ac_n "(cached) $ac_c" 1>&6
 1702 else
 1703   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
 1704 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
 1705   lt_cv_prog_gnu_ld=yes
 1706 else
 1707   lt_cv_prog_gnu_ld=no
 1708 fi
 1709 fi
 1710 
 1711 echo "$ac_t""$lt_cv_prog_gnu_ld" 1>&6
 1712 with_gnu_ld=$lt_cv_prog_gnu_ld
 1713 
 1714 
 1715 echo $ac_n "checking for $LD option to reload object files""... $ac_c" 1>&6
 1716 echo "configure:1717: checking for $LD option to reload object files" >&5
 1717 if eval "test \"`echo '$''{'lt_cv_ld_reload_flag'+set}'`\" = set"; then
 1718   echo $ac_n "(cached) $ac_c" 1>&6
 1719 else
 1720   lt_cv_ld_reload_flag='-r'
 1721 fi
 1722 
 1723 echo "$ac_t""$lt_cv_ld_reload_flag" 1>&6
 1724 reload_flag=$lt_cv_ld_reload_flag
 1725 test -n "$reload_flag" && reload_flag=" $reload_flag"
 1726 
 1727 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
 1728 echo "configure:1729: checking for BSD-compatible nm" >&5
 1729 if eval "test \"`echo '$''{'lt_cv_path_NM'+set}'`\" = set"; then
 1730   echo $ac_n "(cached) $ac_c" 1>&6
 1731 else
 1732   if test -n "$NM"; then
 1733   # Let the user override the test.
 1734   lt_cv_path_NM="$NM"
 1735 else
 1736   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
 1737   for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
 1738     test -z "$ac_dir" && ac_dir=.
 1739     tmp_nm=$ac_dir/${ac_tool_prefix}nm
 1740     if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
 1741       # Check to see if the nm accepts a BSD-compat flag.
 1742       # Adding the `sed 1q' prevents false positives on HP-UX, which says:
 1743       #   nm: unknown option "B" ignored
 1744       # Tru64's nm complains that /dev/null is an invalid object file
 1745       if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
 1746     lt_cv_path_NM="$tmp_nm -B"
 1747     break
 1748       elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
 1749     lt_cv_path_NM="$tmp_nm -p"
 1750     break
 1751       else
 1752     lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
 1753     continue # so that we can try to find one that supports BSD flags
 1754       fi
 1755     fi
 1756   done
 1757   IFS="$ac_save_ifs"
 1758   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
 1759 fi
 1760 fi
 1761 
 1762 NM="$lt_cv_path_NM"
 1763 echo "$ac_t""$NM" 1>&6
 1764 
 1765 echo $ac_n "checking for a sed that does not truncate output""... $ac_c" 1>&6
 1766 echo "configure:1767: checking for a sed that does not truncate output" >&5
 1767 if eval "test \"`echo '$''{'lt_cv_path_SED'+set}'`\" = set"; then
 1768   echo $ac_n "(cached) $ac_c" 1>&6
 1769 else
 1770   # Loop through the user's path and test for sed and gsed.
 1771 # Then use that list of sed's as ones to test for truncation.
 1772 as_executable_p="test -f"
 1773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
 1774 for as_dir in $PATH
 1775 do
 1776   IFS=$as_save_IFS
 1777   test -z "$as_dir" && as_dir=.
 1778   for ac_prog in sed gsed; do
 1779     for ac_exec_ext in '' $ac_executable_extensions; do
 1780       if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
 1781         _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
 1782       fi
 1783     done
 1784   done
 1785 done
 1786 
 1787   # Create a temporary directory, and hook for its removal unless debugging.
 1788 $debug ||
 1789 {
 1790   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
 1791   trap '{ (exit 1); exit 1; }' 1 2 13 15
 1792 }
 1793 
 1794 # Create a (secure) tmp directory for tmp files.
 1795 : ${TMPDIR=/tmp}
 1796 {
 1797   tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
 1798   test -n "$tmp" && test -d "$tmp"
 1799 }  ||
 1800 {
 1801   tmp=$TMPDIR/sed$$-$RANDOM
 1802   (umask 077 && mkdir $tmp)
 1803 } ||
 1804 {
 1805    echo "$me: cannot create a temporary directory in $TMPDIR" >&2
 1806    { (exit 1); exit 1; }
 1807 }
 1808   _max=0
 1809   _count=0
 1810   # Add /usr/xpg4/bin/sed as it is typically found on Solaris
 1811   # along with /bin/sed that truncates output.
 1812   for _sed in $_sed_list /usr/xpg4/bin/sed; do
 1813     test ! -f ${_sed} && break
 1814     cat /dev/null > "$tmp/sed.in"
 1815     _count=0
 1816     echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
 1817     # Check for GNU sed and select it if it is found.
 1818     if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
 1819       lt_cv_path_SED=${_sed}
 1820       break
 1821     fi
 1822     while true; do
 1823       cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
 1824       mv "$tmp/sed.tmp" "$tmp/sed.in"
 1825       cp "$tmp/sed.in" "$tmp/sed.nl"
 1826       echo >>"$tmp/sed.nl"
 1827       ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
 1828       cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
 1829       # 40000 chars as input seems more than enough
 1830       test $_count -gt 10 && break
 1831       _count=`expr $_count + 1`
 1832       if test $_count -gt $_max; then
 1833         _max=$_count
 1834         lt_cv_path_SED=$_sed
 1835       fi
 1836     done
 1837   done
 1838   rm -rf "$tmp"
 1839 
 1840 fi
 1841 
 1842 if test "X$SED" != "X"; then
 1843   lt_cv_path_SED=$SED
 1844 else
 1845   SED=$lt_cv_path_SED
 1846 fi
 1847 echo "$ac_t""$SED" 1>&6
 1848 
 1849 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
 1850 echo "configure:1851: checking whether ln -s works" >&5
 1851 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
 1852   echo $ac_n "(cached) $ac_c" 1>&6
 1853 else
 1854   rm -f conftestdata
 1855 if ln -s X conftestdata 2>/dev/null
 1856 then
 1857   rm -f conftestdata
 1858   ac_cv_prog_LN_S="ln -s"
 1859 else
 1860   ac_cv_prog_LN_S=ln
 1861 fi
 1862 fi
 1863 LN_S="$ac_cv_prog_LN_S"
 1864 if test "$ac_cv_prog_LN_S" = "ln -s"; then
 1865   echo "$ac_t""yes" 1>&6
 1866 else
 1867   echo "$ac_t""no" 1>&6
 1868 fi
 1869 
 1870 echo $ac_n "checking how to recognise dependent libraries""... $ac_c" 1>&6
 1871 echo "configure:1872: checking how to recognise dependent libraries" >&5
 1872 if eval "test \"`echo '$''{'lt_cv_deplibs_check_method'+set}'`\" = set"; then
 1873   echo $ac_n "(cached) $ac_c" 1>&6
 1874 else
 1875   lt_cv_file_magic_cmd='$MAGIC_CMD'
 1876 lt_cv_file_magic_test_file=
 1877 lt_cv_deplibs_check_method='unknown'
 1878 # Need to set the preceding variable on all platforms that support
 1879 # interlibrary dependencies.
 1880 # 'none' -- dependencies not supported.
 1881 # `unknown' -- same as none, but documents that we really don't know.
 1882 # 'pass_all' -- all dependencies passed with no checks.
 1883 # 'test_compile' -- check by making test program.
 1884 # 'file_magic [[regex]]' -- check by looking for files in library path
 1885 # which responds to the $file_magic_cmd with a given egrep regex.
 1886 # If you have `file' or equivalent on your system and you're not sure
 1887 # whether `pass_all' will *always* work, you probably want this one.
 1888 
 1889 case $host_os in
 1890 aix4* | aix5*)
 1891   lt_cv_deplibs_check_method=pass_all
 1892   ;;
 1893 
 1894 beos*)
 1895   lt_cv_deplibs_check_method=pass_all
 1896   ;;
 1897 
 1898 bsdi4*)
 1899   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
 1900   lt_cv_file_magic_cmd='/usr/bin/file -L'
 1901   lt_cv_file_magic_test_file=/shlib/libc.so
 1902   ;;
 1903 
 1904 cygwin* | mingw* | pw32*)
 1905   lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
 1906   lt_cv_file_magic_cmd='$OBJDUMP -f'
 1907   ;;
 1908 
 1909 darwin* | rhapsody*)
 1910   lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
 1911   lt_cv_file_magic_cmd='/usr/bin/file -L'
 1912   case "$host_os" in
 1913   rhapsody* | darwin1.[012])
 1914     lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
 1915     ;;
 1916   *) # Darwin 1.3 on
 1917     lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
 1918     ;;
 1919   esac
 1920   ;;
 1921 
 1922 freebsd*)
 1923   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 1924     case $host_cpu in
 1925     i*86 )
 1926       # Not sure whether the presence of OpenBSD here was a mistake.
 1927       # Let's accept both of them until this is cleared up.
 1928       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
 1929       lt_cv_file_magic_cmd=/usr/bin/file
 1930       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 1931       ;;
 1932     esac
 1933   else
 1934     lt_cv_deplibs_check_method=pass_all
 1935   fi
 1936   ;;
 1937 
 1938 gnu*)
 1939   lt_cv_deplibs_check_method=pass_all
 1940   ;;
 1941 
 1942 hpux10.20*|hpux11*)
 1943   lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
 1944   lt_cv_file_magic_cmd=/usr/bin/file
 1945   lt_cv_file_magic_test_file=/usr/lib/libc.sl
 1946   ;;
 1947 
 1948 irix5* | irix6* | nonstopux*)
 1949   case $host_os in
 1950   irix5* | nonstopux*)
 1951     # this will be overridden with pass_all, but let us keep it just in case
 1952     lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
 1953     ;;
 1954   *)
 1955     case $LD in
 1956     *-32|*"-32 ") libmagic=32-bit;;
 1957     *-n32|*"-n32 ") libmagic=N32;;
 1958     *-64|*"-64 ") libmagic=64-bit;;
 1959     *) libmagic=never-match;;
 1960     esac
 1961     # this will be overridden with pass_all, but let us keep it just in case
 1962     lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[1234] dynamic lib MIPS - version 1"
 1963     ;;
 1964   esac
 1965   lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
 1966   lt_cv_deplibs_check_method=pass_all
 1967   ;;
 1968 
 1969 # This must be Linux ELF.
 1970 linux-gnu*)
 1971   case $host_cpu in
 1972   alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64*)
 1973     lt_cv_deplibs_check_method=pass_all ;;
 1974   *)
 1975     # glibc up to 2.1.1 does not perform some relocations on ARM
 1976     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
 1977   esac
 1978   lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
 1979   ;;
 1980 
 1981 netbsd*)
 1982   if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
 1983     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so\.[0-9]+\.[0-9]+$'
 1984   else
 1985     lt_cv_deplibs_check_method='match_pattern /lib[^/\.]+\.so$'
 1986   fi
 1987   ;;
 1988 
 1989 newos6*)
 1990   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
 1991   lt_cv_file_magic_cmd=/usr/bin/file
 1992   lt_cv_file_magic_test_file=/usr/lib/libnls.so
 1993   ;;
 1994 
 1995 openbsd*)
 1996   lt_cv_file_magic_cmd=/usr/bin/file
 1997   lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
 1998   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 1999     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
 2000   else
 2001     lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
 2002   fi
 2003   ;;
 2004 
 2005 osf3* | osf4* | osf5*)
 2006   # this will be overridden with pass_all, but let us keep it just in case
 2007   lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
 2008   lt_cv_file_magic_test_file=/shlib/libc.so
 2009   lt_cv_deplibs_check_method=pass_all
 2010   ;;
 2011 
 2012 sco3.2v5*)
 2013   lt_cv_deplibs_check_method=pass_all
 2014   ;;
 2015 
 2016 solaris*)
 2017   lt_cv_deplibs_check_method=pass_all
 2018   lt_cv_file_magic_test_file=/lib/libc.so
 2019   ;;
 2020 
 2021 sysv5uw[78]* | sysv4*uw2*)
 2022   lt_cv_deplibs_check_method=pass_all
 2023   ;;
 2024 
 2025 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 2026   case $host_vendor in
 2027   motorola)
 2028     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]'
 2029     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
 2030     ;;
 2031   ncr)
 2032     lt_cv_deplibs_check_method=pass_all
 2033     ;;
 2034   sequent)
 2035     lt_cv_file_magic_cmd='/bin/file'
 2036     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
 2037     ;;
 2038   sni)
 2039     lt_cv_file_magic_cmd='/bin/file'
 2040     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
 2041     lt_cv_file_magic_test_file=/lib/libc.so
 2042     ;;
 2043   siemens)
 2044     lt_cv_deplibs_check_method=pass_all
 2045     ;;
 2046   esac
 2047   ;;
 2048 esac
 2049 
 2050 fi
 2051 
 2052 echo "$ac_t""$lt_cv_deplibs_check_method" 1>&6
 2053 file_magic_cmd=$lt_cv_file_magic_cmd
 2054 deplibs_check_method=$lt_cv_deplibs_check_method
 2055 
 2056 echo $ac_n "checking for object suffix""... $ac_c" 1>&6
 2057 echo "configure:2058: checking for object suffix" >&5
 2058 if eval "test \"`echo '$''{'ac_cv_objext'+set}'`\" = set"; then
 2059   echo $ac_n "(cached) $ac_c" 1>&6
 2060 else
 2061   rm -f conftest*
 2062 echo 'int i = 1;' > conftest.$ac_ext
 2063 if { (eval echo configure:2064: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2064   for ac_file in conftest.*; do
 2065     case $ac_file in
 2066     *.c) ;;
 2067     *) ac_cv_objext=`echo $ac_file | sed -e s/conftest.//` ;;
 2068     esac
 2069   done
 2070 else
 2071   { echo "configure: error: installation or configuration problem; compiler does not work" 1>&2; exit 1; }
 2072 fi
 2073 rm -f conftest*
 2074 fi
 2075 
 2076 echo "$ac_t""$ac_cv_objext" 1>&6
 2077 OBJEXT=$ac_cv_objext
 2078 ac_objext=$ac_cv_objext
 2079 
 2080 
 2081 
 2082 echo $ac_n "checking for executable suffix""... $ac_c" 1>&6
 2083 echo "configure:2084: checking for executable suffix" >&5
 2084 if eval "test \"`echo '$''{'ac_cv_exeext'+set}'`\" = set"; then
 2085   echo $ac_n "(cached) $ac_c" 1>&6
 2086 else
 2087   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
 2088   ac_cv_exeext=.exe
 2089 else
 2090   rm -f conftest*
 2091   echo 'int main () { return 0; }' > conftest.$ac_ext
 2092   ac_cv_exeext=
 2093   if { (eval echo configure:2094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; }; then
 2094     for file in conftest.*; do
 2095       case $file in
 2096       *.c | *.o | *.obj) ;;
 2097       *) ac_cv_exeext=`echo $file | sed -e s/conftest//` ;;
 2098       esac
 2099     done
 2100   else
 2101     { echo "configure: error: installation or configuration problem: compiler cannot create executables." 1>&2; exit 1; }
 2102   fi
 2103   rm -f conftest*
 2104   test x"${ac_cv_exeext}" = x && ac_cv_exeext=no
 2105 fi
 2106 fi
 2107 
 2108 EXEEXT=""
 2109 test x"${ac_cv_exeext}" != xno && EXEEXT=${ac_cv_exeext}
 2110 echo "$ac_t""${ac_cv_exeext}" 1>&6
 2111 ac_exeext=$EXEEXT
 2112 
 2113 if test $host != $build; then
 2114   ac_tool_prefix=${host_alias}-
 2115 else
 2116   ac_tool_prefix=
 2117 fi
 2118 
 2119 
 2120 
 2121 
 2122 # Check for command to grab the raw symbol name followed by C symbol from nm.
 2123 echo $ac_n "checking command to parse $NM output""... $ac_c" 1>&6
 2124 echo "configure:2125: checking command to parse $NM output" >&5
 2125 if eval "test \"`echo '$''{'lt_cv_sys_global_symbol_pipe'+set}'`\" = set"; then
 2126   echo $ac_n "(cached) $ac_c" 1>&6
 2127 else
 2128   
 2129 # These are sane defaults that work on at least a few old systems.
 2130 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
 2131 
 2132 # Character class describing NM global symbol codes.
 2133 symcode='[BCDEGRST]'
 2134 
 2135 # Regexp to match symbols that can be accessed directly from C.
 2136 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
 2137 
 2138 # Transform the above into a raw symbol and a C symbol.
 2139 symxfrm='\1 \2\3 \3'
 2140 
 2141 # Transform an extracted symbol line into a proper C declaration
 2142 lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
 2143 
 2144 # Transform an extracted symbol line into symbol name and symbol address
 2145 lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 2146 
 2147 # Define system-specific variables.
 2148 case $host_os in
 2149 aix*)
 2150   symcode='[BCDT]'
 2151   ;;
 2152 cygwin* | mingw* | pw32*)
 2153   symcode='[ABCDGISTW]'
 2154   ;;
 2155 hpux*) # Its linker distinguishes data from code symbols
 2156   lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
 2157   lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
 2158   ;;
 2159 irix* | nonstopux*)
 2160   symcode='[BCDEGRST]'
 2161   ;;
 2162 osf*)
 2163   symcode='[BCDEGQRST]'
 2164   ;;
 2165 solaris* | sysv5*)
 2166   symcode='[BDT]'
 2167   ;;
 2168 sysv4)
 2169   symcode='[DFNSTU]'
 2170   ;;
 2171 esac
 2172 
 2173 # Handle CRLF in mingw tool chain
 2174 opt_cr=
 2175 case $host_os in
 2176 mingw*)
 2177   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
 2178   ;;
 2179 esac
 2180 
 2181 # If we're using GNU nm, then use its standard symbol codes.
 2182 if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
 2183   symcode='[ABCDGISTW]'
 2184 fi
 2185 
 2186 # Try without a prefix undercore, then with it.
 2187 for ac_symprfx in "" "_"; do
 2188 
 2189   # Write the raw and C identifiers.
 2190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[     ]\($symcode$symcode*\)[     ][  ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
 2191 
 2192   # Check to see that the pipe works correctly.
 2193   pipe_works=no
 2194   rm -f conftest*
 2195   cat > conftest.$ac_ext <<EOF
 2196 #ifdef __cplusplus
 2197 extern "C" {
 2198 #endif
 2199 char nm_test_var;
 2200 void nm_test_func(){}
 2201 #ifdef __cplusplus
 2202 }
 2203 #endif
 2204 int main(){nm_test_var='a';nm_test_func();return(0);}
 2205 EOF
 2206 
 2207   if { (eval echo configure:2208: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2208     # Now try to grab the symbols.
 2209     nlist=conftest.nm
 2210     if { (eval echo configure:2211: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\") 1>&5; (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5; } && test -s "$nlist"; then
 2211       # Try sorting and uniquifying the output.
 2212       if sort "$nlist" | uniq > "$nlist"T; then
 2213     mv -f "$nlist"T "$nlist"
 2214       else
 2215     rm -f "$nlist"T
 2216       fi
 2217 
 2218       # Make sure that we snagged all the symbols we need.
 2219       if egrep ' nm_test_var$' "$nlist" >/dev/null; then
 2220     if egrep ' nm_test_func$' "$nlist" >/dev/null; then
 2221       cat <<EOF > conftest.$ac_ext
 2222 #ifdef __cplusplus
 2223 extern "C" {
 2224 #endif
 2225 
 2226 EOF
 2227       # Now generate the symbol file.
 2228       eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
 2229 
 2230       cat <<EOF >> conftest.$ac_ext
 2231 #if defined (__STDC__) && __STDC__
 2232 # define lt_ptr void *
 2233 #else
 2234 # define lt_ptr char *
 2235 # define const
 2236 #endif
 2237 
 2238 /* The mapping between symbol names and symbols. */
 2239 const struct {
 2240   const char *name;
 2241   lt_ptr address;
 2242 }
 2243 lt_preloaded_symbols[] =
 2244 {
 2245 EOF
 2246       sed "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
 2247       cat <<\EOF >> conftest.$ac_ext
 2248   {0, (lt_ptr) 0}
 2249 };
 2250 
 2251 #ifdef __cplusplus
 2252 }
 2253 #endif
 2254 EOF
 2255       # Now try linking the two files.
 2256       mv conftest.$ac_objext conftstm.$ac_objext
 2257       save_LIBS="$LIBS"
 2258       save_CFLAGS="$CFLAGS"
 2259       LIBS="conftstm.$ac_objext"
 2260       CFLAGS="$CFLAGS$no_builtin_flag"
 2261       if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest$ac_exeext; then
 2262         pipe_works=yes
 2263       fi
 2264       LIBS="$save_LIBS"
 2265       CFLAGS="$save_CFLAGS"
 2266     else
 2267       echo "cannot find nm_test_func in $nlist" >&5
 2268     fi
 2269       else
 2270     echo "cannot find nm_test_var in $nlist" >&5
 2271       fi
 2272     else
 2273       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
 2274     fi
 2275   else
 2276     echo "$progname: failed program was:" >&5
 2277     cat conftest.$ac_ext >&5
 2278   fi
 2279   rm -f conftest* conftst*
 2280 
 2281   # Do not use the global_symbol_pipe unless it works.
 2282   if test "$pipe_works" = yes; then
 2283     break
 2284   else
 2285     lt_cv_sys_global_symbol_pipe=
 2286   fi
 2287 done
 2288 
 2289 fi
 2290 
 2291 global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
 2292 if test -z "$lt_cv_sys_global_symbol_pipe"; then
 2293   global_symbol_to_cdecl=
 2294   global_symbol_to_c_name_address=
 2295 else
 2296   global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
 2297   global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
 2298 fi
 2299 if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
 2300 then
 2301   echo "$ac_t""failed" 1>&6
 2302 else
 2303   echo "$ac_t""ok" 1>&6
 2304 fi
 2305 
 2306 for ac_hdr in dlfcn.h
 2307 do
 2308 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 2309 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
 2310 echo "configure:2311: checking for $ac_hdr" >&5
 2311 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
 2312   echo $ac_n "(cached) $ac_c" 1>&6
 2313 else
 2314   cat > conftest.$ac_ext <<EOF
 2315 #line 2316 "configure"
 2316 #include "confdefs.h"
 2317 #include <$ac_hdr>
 2318 EOF
 2319 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
 2320 { (eval echo configure:2321: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 2321 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 2322 if test -z "$ac_err"; then
 2323   rm -rf conftest*
 2324   eval "ac_cv_header_$ac_safe=yes"
 2325 else
 2326   echo "$ac_err" >&5
 2327   echo "configure: failed program was:" >&5
 2328   cat conftest.$ac_ext >&5
 2329   rm -rf conftest*
 2330   eval "ac_cv_header_$ac_safe=no"
 2331 fi
 2332 rm -f conftest*
 2333 fi
 2334 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
 2335   echo "$ac_t""yes" 1>&6
 2336     ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
 2337   cat >> confdefs.h <<EOF
 2338 #define $ac_tr_hdr 1
 2339 EOF
 2340  
 2341 else
 2342   echo "$ac_t""no" 1>&6
 2343 fi
 2344 done
 2345 
 2346 
 2347 
 2348 
 2349 
 2350 
 2351 # Only perform the check for file, if the check method requires it
 2352 case $deplibs_check_method in
 2353 file_magic*)
 2354   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
 2355     echo $ac_n "checking for ${ac_tool_prefix}file""... $ac_c" 1>&6
 2356 echo "configure:2357: checking for ${ac_tool_prefix}file" >&5
 2357 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
 2358   echo $ac_n "(cached) $ac_c" 1>&6
 2359 else
 2360   case $MAGIC_CMD in
 2361   /*)
 2362   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 2363   ;;
 2364   ?:/*)
 2365   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 2366   ;;
 2367   *)
 2368   ac_save_MAGIC_CMD="$MAGIC_CMD"
 2369   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2370   ac_dummy="/usr/bin:$PATH"
 2371   for ac_dir in $ac_dummy; do
 2372     test -z "$ac_dir" && ac_dir=.
 2373     if test -f $ac_dir/${ac_tool_prefix}file; then
 2374       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
 2375       if test -n "$file_magic_test_file"; then
 2376     case $deplibs_check_method in
 2377     "file_magic "*)
 2378       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 2379       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2380       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 2381         egrep "$file_magic_regex" > /dev/null; then
 2382         :
 2383       else
 2384         cat <<EOF 1>&2
 2385 
 2386 *** Warning: the command libtool uses to detect shared libraries,
 2387 *** $file_magic_cmd, produces output that libtool cannot recognize.
 2388 *** The result is that libtool may fail to recognize shared libraries
 2389 *** as such.  This will affect the creation of libtool libraries that
 2390 *** depend on shared libraries, but programs linked with such libtool
 2391 *** libraries will work regardless of this problem.  Nevertheless, you
 2392 *** may want to report the problem to your system manager and/or to
 2393 *** bug-libtool@gnu.org
 2394 
 2395 EOF
 2396       fi ;;
 2397     esac
 2398       fi
 2399       break
 2400     fi
 2401   done
 2402   IFS="$ac_save_ifs"
 2403   MAGIC_CMD="$ac_save_MAGIC_CMD"
 2404   ;;
 2405 esac
 2406 fi
 2407 
 2408 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2409 if test -n "$MAGIC_CMD"; then
 2410   echo "$ac_t""$MAGIC_CMD" 1>&6
 2411 else
 2412   echo "$ac_t""no" 1>&6
 2413 fi
 2414 
 2415 if test -z "$lt_cv_path_MAGIC_CMD"; then
 2416   if test -n "$ac_tool_prefix"; then
 2417     echo $ac_n "checking for file""... $ac_c" 1>&6
 2418 echo "configure:2419: checking for file" >&5
 2419 if eval "test \"`echo '$''{'lt_cv_path_MAGIC_CMD'+set}'`\" = set"; then
 2420   echo $ac_n "(cached) $ac_c" 1>&6
 2421 else
 2422   case $MAGIC_CMD in
 2423   /*)
 2424   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
 2425   ;;
 2426   ?:/*)
 2427   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
 2428   ;;
 2429   *)
 2430   ac_save_MAGIC_CMD="$MAGIC_CMD"
 2431   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2432   ac_dummy="/usr/bin:$PATH"
 2433   for ac_dir in $ac_dummy; do
 2434     test -z "$ac_dir" && ac_dir=.
 2435     if test -f $ac_dir/file; then
 2436       lt_cv_path_MAGIC_CMD="$ac_dir/file"
 2437       if test -n "$file_magic_test_file"; then
 2438     case $deplibs_check_method in
 2439     "file_magic "*)
 2440       file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
 2441       MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2442       if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
 2443         egrep "$file_magic_regex" > /dev/null; then
 2444         :
 2445       else
 2446         cat <<EOF 1>&2
 2447 
 2448 *** Warning: the command libtool uses to detect shared libraries,
 2449 *** $file_magic_cmd, produces output that libtool cannot recognize.
 2450 *** The result is that libtool may fail to recognize shared libraries
 2451 *** as such.  This will affect the creation of libtool libraries that
 2452 *** depend on shared libraries, but programs linked with such libtool
 2453 *** libraries will work regardless of this problem.  Nevertheless, you
 2454 *** may want to report the problem to your system manager and/or to
 2455 *** bug-libtool@gnu.org
 2456 
 2457 EOF
 2458       fi ;;
 2459     esac
 2460       fi
 2461       break
 2462     fi
 2463   done
 2464   IFS="$ac_save_ifs"
 2465   MAGIC_CMD="$ac_save_MAGIC_CMD"
 2466   ;;
 2467 esac
 2468 fi
 2469 
 2470 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
 2471 if test -n "$MAGIC_CMD"; then
 2472   echo "$ac_t""$MAGIC_CMD" 1>&6
 2473 else
 2474   echo "$ac_t""no" 1>&6
 2475 fi
 2476 
 2477   else
 2478     MAGIC_CMD=:
 2479   fi
 2480 fi
 2481 
 2482   fi
 2483   ;;
 2484 esac
 2485 
 2486 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
 2487 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
 2488 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2489 echo "configure:2490: checking for $ac_word" >&5
 2490 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 2491   echo $ac_n "(cached) $ac_c" 1>&6
 2492 else
 2493   if test -n "$RANLIB"; then
 2494   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 2495 else
 2496   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2497   ac_dummy="$PATH"
 2498   for ac_dir in $ac_dummy; do
 2499     test -z "$ac_dir" && ac_dir=.
 2500     if test -f $ac_dir/$ac_word; then
 2501       ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
 2502       break
 2503     fi
 2504   done
 2505   IFS="$ac_save_ifs"
 2506 fi
 2507 fi
 2508 RANLIB="$ac_cv_prog_RANLIB"
 2509 if test -n "$RANLIB"; then
 2510   echo "$ac_t""$RANLIB" 1>&6
 2511 else
 2512   echo "$ac_t""no" 1>&6
 2513 fi
 2514 
 2515 
 2516 if test -z "$ac_cv_prog_RANLIB"; then
 2517 if test -n "$ac_tool_prefix"; then
 2518   # Extract the first word of "ranlib", so it can be a program name with args.
 2519 set dummy ranlib; ac_word=$2
 2520 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2521 echo "configure:2522: checking for $ac_word" >&5
 2522 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
 2523   echo $ac_n "(cached) $ac_c" 1>&6
 2524 else
 2525   if test -n "$RANLIB"; then
 2526   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
 2527 else
 2528   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2529   ac_dummy="$PATH"
 2530   for ac_dir in $ac_dummy; do
 2531     test -z "$ac_dir" && ac_dir=.
 2532     if test -f $ac_dir/$ac_word; then
 2533       ac_cv_prog_RANLIB="ranlib"
 2534       break
 2535     fi
 2536   done
 2537   IFS="$ac_save_ifs"
 2538   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
 2539 fi
 2540 fi
 2541 RANLIB="$ac_cv_prog_RANLIB"
 2542 if test -n "$RANLIB"; then
 2543   echo "$ac_t""$RANLIB" 1>&6
 2544 else
 2545   echo "$ac_t""no" 1>&6
 2546 fi
 2547 
 2548 else
 2549   RANLIB=":"
 2550 fi
 2551 fi
 2552 
 2553 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
 2554 set dummy ${ac_tool_prefix}strip; ac_word=$2
 2555 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2556 echo "configure:2557: checking for $ac_word" >&5
 2557 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
 2558   echo $ac_n "(cached) $ac_c" 1>&6
 2559 else
 2560   if test -n "$STRIP"; then
 2561   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 2562 else
 2563   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2564   ac_dummy="$PATH"
 2565   for ac_dir in $ac_dummy; do
 2566     test -z "$ac_dir" && ac_dir=.
 2567     if test -f $ac_dir/$ac_word; then
 2568       ac_cv_prog_STRIP="${ac_tool_prefix}strip"
 2569       break
 2570     fi
 2571   done
 2572   IFS="$ac_save_ifs"
 2573 fi
 2574 fi
 2575 STRIP="$ac_cv_prog_STRIP"
 2576 if test -n "$STRIP"; then
 2577   echo "$ac_t""$STRIP" 1>&6
 2578 else
 2579   echo "$ac_t""no" 1>&6
 2580 fi
 2581 
 2582 
 2583 if test -z "$ac_cv_prog_STRIP"; then
 2584 if test -n "$ac_tool_prefix"; then
 2585   # Extract the first word of "strip", so it can be a program name with args.
 2586 set dummy strip; ac_word=$2
 2587 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2588 echo "configure:2589: checking for $ac_word" >&5
 2589 if eval "test \"`echo '$''{'ac_cv_prog_STRIP'+set}'`\" = set"; then
 2590   echo $ac_n "(cached) $ac_c" 1>&6
 2591 else
 2592   if test -n "$STRIP"; then
 2593   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
 2594 else
 2595   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2596   ac_dummy="$PATH"
 2597   for ac_dir in $ac_dummy; do
 2598     test -z "$ac_dir" && ac_dir=.
 2599     if test -f $ac_dir/$ac_word; then
 2600       ac_cv_prog_STRIP="strip"
 2601       break
 2602     fi
 2603   done
 2604   IFS="$ac_save_ifs"
 2605   test -z "$ac_cv_prog_STRIP" && ac_cv_prog_STRIP=":"
 2606 fi
 2607 fi
 2608 STRIP="$ac_cv_prog_STRIP"
 2609 if test -n "$STRIP"; then
 2610   echo "$ac_t""$STRIP" 1>&6
 2611 else
 2612   echo "$ac_t""no" 1>&6
 2613 fi
 2614 
 2615 else
 2616   STRIP=":"
 2617 fi
 2618 fi
 2619 
 2620 
 2621 enable_dlopen=no
 2622 enable_win32_dll=yes
 2623 
 2624 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
 2625 if test "${enable_libtool_lock+set}" = set; then
 2626   enableval="$enable_libtool_lock"
 2627   :
 2628 fi
 2629 
 2630 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
 2631 
 2632 # Some flags need to be propagated to the compiler or linker for good
 2633 # libtool support.
 2634 case $host in
 2635 *-*-irix6*)
 2636   # Find out which ABI we are using.
 2637   echo '#line 2638 "configure"' > conftest.$ac_ext
 2638   if { (eval echo configure:2639: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 2639     case `/usr/bin/file conftest.$ac_objext` in
 2640     *32-bit*)
 2641       LD="${LD-ld} -32"
 2642       ;;
 2643     *N32*)
 2644       LD="${LD-ld} -n32"
 2645       ;;
 2646     *64-bit*)
 2647       LD="${LD-ld} -64"
 2648       ;;
 2649     esac
 2650   fi
 2651   rm -rf conftest*
 2652   ;;
 2653 
 2654 *-*-sco3.2v5*)
 2655   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
 2656   SAVE_CFLAGS="$CFLAGS"
 2657   CFLAGS="$CFLAGS -belf"
 2658   echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
 2659 echo "configure:2660: checking whether the C compiler needs -belf" >&5
 2660 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
 2661   echo $ac_n "(cached) $ac_c" 1>&6
 2662 else
 2663   
 2664      ac_ext=c
 2665 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 2666 ac_cpp='$CPP $CPPFLAGS'
 2667 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 2668 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 2669 cross_compiling=$ac_cv_prog_cc_cross
 2670 
 2671      cat > conftest.$ac_ext <<EOF
 2672 #line 2673 "configure"
 2673 #include "confdefs.h"
 2674 
 2675 int main() {
 2676 
 2677 ; return 0; }
 2678 EOF
 2679 if { (eval echo configure:2680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2680   rm -rf conftest*
 2681   lt_cv_cc_needs_belf=yes
 2682 else
 2683   echo "configure: failed program was:" >&5
 2684   cat conftest.$ac_ext >&5
 2685   rm -rf conftest*
 2686   lt_cv_cc_needs_belf=no
 2687 fi
 2688 rm -f conftest*
 2689      ac_ext=c
 2690 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
 2691 ac_cpp='$CPP $CPPFLAGS'
 2692 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
 2693 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
 2694 cross_compiling=$ac_cv_prog_cc_cross
 2695 
 2696 fi
 2697 
 2698 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
 2699   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
 2700     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
 2701     CFLAGS="$SAVE_CFLAGS"
 2702   fi
 2703   ;;
 2704 
 2705 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
 2706   # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
 2707 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
 2708 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2709 echo "configure:2710: checking for $ac_word" >&5
 2710 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
 2711   echo $ac_n "(cached) $ac_c" 1>&6
 2712 else
 2713   if test -n "$DLLTOOL"; then
 2714   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 2715 else
 2716   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2717   ac_dummy="$PATH"
 2718   for ac_dir in $ac_dummy; do
 2719     test -z "$ac_dir" && ac_dir=.
 2720     if test -f $ac_dir/$ac_word; then
 2721       ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
 2722       break
 2723     fi
 2724   done
 2725   IFS="$ac_save_ifs"
 2726 fi
 2727 fi
 2728 DLLTOOL="$ac_cv_prog_DLLTOOL"
 2729 if test -n "$DLLTOOL"; then
 2730   echo "$ac_t""$DLLTOOL" 1>&6
 2731 else
 2732   echo "$ac_t""no" 1>&6
 2733 fi
 2734 
 2735 
 2736 if test -z "$ac_cv_prog_DLLTOOL"; then
 2737 if test -n "$ac_tool_prefix"; then
 2738   # Extract the first word of "dlltool", so it can be a program name with args.
 2739 set dummy dlltool; ac_word=$2
 2740 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2741 echo "configure:2742: checking for $ac_word" >&5
 2742 if eval "test \"`echo '$''{'ac_cv_prog_DLLTOOL'+set}'`\" = set"; then
 2743   echo $ac_n "(cached) $ac_c" 1>&6
 2744 else
 2745   if test -n "$DLLTOOL"; then
 2746   ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
 2747 else
 2748   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2749   ac_dummy="$PATH"
 2750   for ac_dir in $ac_dummy; do
 2751     test -z "$ac_dir" && ac_dir=.
 2752     if test -f $ac_dir/$ac_word; then
 2753       ac_cv_prog_DLLTOOL="dlltool"
 2754       break
 2755     fi
 2756   done
 2757   IFS="$ac_save_ifs"
 2758   test -z "$ac_cv_prog_DLLTOOL" && ac_cv_prog_DLLTOOL="false"
 2759 fi
 2760 fi
 2761 DLLTOOL="$ac_cv_prog_DLLTOOL"
 2762 if test -n "$DLLTOOL"; then
 2763   echo "$ac_t""$DLLTOOL" 1>&6
 2764 else
 2765   echo "$ac_t""no" 1>&6
 2766 fi
 2767 
 2768 else
 2769   DLLTOOL="false"
 2770 fi
 2771 fi
 2772 
 2773   # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
 2774 set dummy ${ac_tool_prefix}as; ac_word=$2
 2775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2776 echo "configure:2777: checking for $ac_word" >&5
 2777 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
 2778   echo $ac_n "(cached) $ac_c" 1>&6
 2779 else
 2780   if test -n "$AS"; then
 2781   ac_cv_prog_AS="$AS" # Let the user override the test.
 2782 else
 2783   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2784   ac_dummy="$PATH"
 2785   for ac_dir in $ac_dummy; do
 2786     test -z "$ac_dir" && ac_dir=.
 2787     if test -f $ac_dir/$ac_word; then
 2788       ac_cv_prog_AS="${ac_tool_prefix}as"
 2789       break
 2790     fi
 2791   done
 2792   IFS="$ac_save_ifs"
 2793 fi
 2794 fi
 2795 AS="$ac_cv_prog_AS"
 2796 if test -n "$AS"; then
 2797   echo "$ac_t""$AS" 1>&6
 2798 else
 2799   echo "$ac_t""no" 1>&6
 2800 fi
 2801 
 2802 
 2803 if test -z "$ac_cv_prog_AS"; then
 2804 if test -n "$ac_tool_prefix"; then
 2805   # Extract the first word of "as", so it can be a program name with args.
 2806 set dummy as; ac_word=$2
 2807 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2808 echo "configure:2809: checking for $ac_word" >&5
 2809 if eval "test \"`echo '$''{'ac_cv_prog_AS'+set}'`\" = set"; then
 2810   echo $ac_n "(cached) $ac_c" 1>&6
 2811 else
 2812   if test -n "$AS"; then
 2813   ac_cv_prog_AS="$AS" # Let the user override the test.
 2814 else
 2815   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2816   ac_dummy="$PATH"
 2817   for ac_dir in $ac_dummy; do
 2818     test -z "$ac_dir" && ac_dir=.
 2819     if test -f $ac_dir/$ac_word; then
 2820       ac_cv_prog_AS="as"
 2821       break
 2822     fi
 2823   done
 2824   IFS="$ac_save_ifs"
 2825   test -z "$ac_cv_prog_AS" && ac_cv_prog_AS="false"
 2826 fi
 2827 fi
 2828 AS="$ac_cv_prog_AS"
 2829 if test -n "$AS"; then
 2830   echo "$ac_t""$AS" 1>&6
 2831 else
 2832   echo "$ac_t""no" 1>&6
 2833 fi
 2834 
 2835 else
 2836   AS="false"
 2837 fi
 2838 fi
 2839 
 2840   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
 2841 set dummy ${ac_tool_prefix}objdump; ac_word=$2
 2842 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2843 echo "configure:2844: checking for $ac_word" >&5
 2844 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
 2845   echo $ac_n "(cached) $ac_c" 1>&6
 2846 else
 2847   if test -n "$OBJDUMP"; then
 2848   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 2849 else
 2850   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2851   ac_dummy="$PATH"
 2852   for ac_dir in $ac_dummy; do
 2853     test -z "$ac_dir" && ac_dir=.
 2854     if test -f $ac_dir/$ac_word; then
 2855       ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
 2856       break
 2857     fi
 2858   done
 2859   IFS="$ac_save_ifs"
 2860 fi
 2861 fi
 2862 OBJDUMP="$ac_cv_prog_OBJDUMP"
 2863 if test -n "$OBJDUMP"; then
 2864   echo "$ac_t""$OBJDUMP" 1>&6
 2865 else
 2866   echo "$ac_t""no" 1>&6
 2867 fi
 2868 
 2869 
 2870 if test -z "$ac_cv_prog_OBJDUMP"; then
 2871 if test -n "$ac_tool_prefix"; then
 2872   # Extract the first word of "objdump", so it can be a program name with args.
 2873 set dummy objdump; ac_word=$2
 2874 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
 2875 echo "configure:2876: checking for $ac_word" >&5
 2876 if eval "test \"`echo '$''{'ac_cv_prog_OBJDUMP'+set}'`\" = set"; then
 2877   echo $ac_n "(cached) $ac_c" 1>&6
 2878 else
 2879   if test -n "$OBJDUMP"; then
 2880   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
 2881 else
 2882   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS=":"
 2883   ac_dummy="$PATH"
 2884   for ac_dir in $ac_dummy; do
 2885     test -z "$ac_dir" && ac_dir=.
 2886     if test -f $ac_dir/$ac_word; then
 2887       ac_cv_prog_OBJDUMP="objdump"
 2888       break
 2889     fi
 2890   done
 2891   IFS="$ac_save_ifs"
 2892   test -z "$ac_cv_prog_OBJDUMP" && ac_cv_prog_OBJDUMP="false"
 2893 fi
 2894 fi
 2895 OBJDUMP="$ac_cv_prog_OBJDUMP"
 2896 if test -n "$OBJDUMP"; then
 2897   echo "$ac_t""$OBJDUMP" 1>&6
 2898 else
 2899   echo "$ac_t""no" 1>&6
 2900 fi
 2901 
 2902 else
 2903   OBJDUMP="false"
 2904 fi
 2905 fi
 2906 
 2907 
 2908   # recent cygwin and mingw systems supply a stub DllMain which the user
 2909   # can override, but on older systems we have to supply one
 2910   echo $ac_n "checking if libtool should supply DllMain function""... $ac_c" 1>&6
 2911 echo "configure:2912: checking if libtool should supply DllMain function" >&5
 2912 if eval "test \"`echo '$''{'lt_cv_need_dllmain'+set}'`\" = set"; then
 2913   echo $ac_n "(cached) $ac_c" 1>&6
 2914 else
 2915   cat > conftest.$ac_ext <<EOF
 2916 #line 2917 "configure"
 2917 #include "confdefs.h"
 2918 
 2919 int main() {
 2920 extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
 2921       DllMain (0, 0, 0);
 2922 ; return 0; }
 2923 EOF
 2924 if { (eval echo configure:2925: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2925   rm -rf conftest*
 2926   lt_cv_need_dllmain=no
 2927 else
 2928   echo "configure: failed program was:" >&5
 2929   cat conftest.$ac_ext >&5
 2930   rm -rf conftest*
 2931   lt_cv_need_dllmain=yes
 2932 fi
 2933 rm -f conftest*
 2934 fi
 2935 
 2936 echo "$ac_t""$lt_cv_need_dllmain" 1>&6
 2937 
 2938   case $host/$CC in
 2939   *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
 2940     # old mingw systems require "-dll" to link a DLL, while more recent ones
 2941     # require "-mdll"
 2942     SAVE_CFLAGS="$CFLAGS"
 2943     CFLAGS="$CFLAGS -mdll"
 2944     echo $ac_n "checking how to link DLLs""... $ac_c" 1>&6
 2945 echo "configure:2946: checking how to link DLLs" >&5
 2946 if eval "test \"`echo '$''{'lt_cv_cc_dll_switch'+set}'`\" = set"; then
 2947   echo $ac_n "(cached) $ac_c" 1>&6
 2948 else
 2949   cat > conftest.$ac_ext <<EOF
 2950 #line 2951 "configure"
 2951 #include "confdefs.h"
 2952 
 2953 int main() {
 2954 
 2955 ; return 0; }
 2956 EOF
 2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 2958   rm -rf conftest*
 2959   lt_cv_cc_dll_switch=-mdll
 2960 else
 2961   echo "configure: failed program was:" >&5
 2962   cat conftest.$ac_ext >&5
 2963   rm -rf conftest*
 2964   lt_cv_cc_dll_switch=-dll
 2965 fi
 2966 rm -f conftest*
 2967 fi
 2968 
 2969 echo "$ac_t""$lt_cv_cc_dll_switch" 1>&6
 2970     CFLAGS="$SAVE_CFLAGS" ;;
 2971   *-*-cygwin* | *-*-pw32*)
 2972     # cygwin systems need to pass --dll to the linker, and not link
 2973     # crt.o which will require a WinMain@16 definition.
 2974     lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
 2975   esac
 2976   ;;
 2977   
 2978 esac
 2979 
 2980 # Sed substitution that helps us do robust quoting.  It backslashifies
 2981 # metacharacters that are still active within double-quoted strings.
 2982 Xsed='sed -e s/^X//'
 2983 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
 2984 
 2985 # Same as above, but do not quote variable references.
 2986 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
 2987 
 2988 # Sed substitution to delay expansion of an escaped shell variable in a
 2989 # double_quote_subst'ed string.
 2990 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
 2991 
 2992 # Constants:
 2993 rm="rm -f"
 2994 
 2995 # Global variables:
 2996 default_ofile=libtool
 2997 can_build_shared=yes
 2998 
 2999 # All known linkers require a `.a' archive for static linking (except M$VC,
 3000 # which needs '.lib').
 3001 libext=a
 3002 ltmain="$ac_aux_dir/ltmain.sh"
 3003 ofile="$default_ofile"
 3004 with_gnu_ld="$lt_cv_prog_gnu_ld"
 3005 need_locks="$enable_libtool_lock"
 3006 
 3007 old_CC="$CC"
 3008 old_CFLAGS="$CFLAGS"
 3009 
 3010 # Set sane defaults for various variables
 3011 test -z "$AR" && AR=ar
 3012 test -z "$AR_FLAGS" && AR_FLAGS=cru
 3013 test -z "$AS" && AS=as
 3014 test -z "$CC" && CC=cc
 3015 test -z "$DLLTOOL" && DLLTOOL=dlltool
 3016 test -z "$LD" && LD=ld
 3017 test -z "$LN_S" && LN_S="ln -s"
 3018 test -z "$MAGIC_CMD" && MAGIC_CMD=file
 3019 test -z "$NM" && NM=nm
 3020 test -z "$OBJDUMP" && OBJDUMP=objdump
 3021 test -z "$RANLIB" && RANLIB=:
 3022 test -z "$STRIP" && STRIP=:
 3023 test -z "$ac_objext" && ac_objext=o
 3024 
 3025 if test x"$host" != x"$build"; then
 3026   ac_tool_prefix=${host_alias}-
 3027 else
 3028   ac_tool_prefix=
 3029 fi
 3030 
 3031 # Transform linux* to *-*-linux-gnu*, to support old configure scripts.
 3032 case $host_os in
 3033 linux-gnu*) ;;
 3034 linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
 3035 esac
 3036 
 3037 case $host_os in
 3038 aix3*)
 3039   # AIX sometimes has problems with the GCC collect2 program.  For some
 3040   # reason, if we set the COLLECT_NAMES environment variable, the problems
 3041   # vanish in a puff of smoke.
 3042   if test "X${COLLECT_NAMES+set}" != Xset; then
 3043     COLLECT_NAMES=
 3044     export COLLECT_NAMES
 3045   fi
 3046   ;;
 3047 esac
 3048 
 3049 # Determine commands to create old-style static archives.
 3050 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
 3051 old_postinstall_cmds='chmod 644 $oldlib'
 3052 old_postuninstall_cmds=
 3053 
 3054 if test -n "$RANLIB"; then
 3055   case $host_os in
 3056   openbsd*)
 3057     old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
 3058     ;;
 3059   *)
 3060     old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
 3061     ;;
 3062   esac
 3063   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
 3064 fi
 3065 
 3066 # Allow CC to be a program name with arguments.
 3067 set dummy $CC
 3068 compiler="$2"
 3069 
 3070 echo $ac_n "checking for objdir""... $ac_c" 1>&6
 3071 echo "configure:3072: checking for objdir" >&5
 3072 rm -f .libs 2>/dev/null
 3073 mkdir .libs 2>/dev/null
 3074 if test -d .libs; then
 3075   objdir=.libs
 3076 else
 3077   # MS-DOS does not allow filenames that begin with a dot.
 3078   objdir=_libs
 3079 fi
 3080 rmdir .libs 2>/dev/null
 3081 echo "$ac_t""$objdir" 1>&6
 3082 
 3083 
 3084 # Check whether --with-pic or --without-pic was given.
 3085 if test "${with_pic+set}" = set; then
 3086   withval="$with_pic"
 3087   pic_mode="$withval"
 3088 else
 3089   pic_mode=default
 3090 fi
 3091 
 3092 test -z "$pic_mode" && pic_mode=default
 3093 
 3094 # We assume here that the value for lt_cv_prog_cc_pic will not be cached
 3095 # in isolation, and that seeing it set (from the cache) indicates that
 3096 # the associated values are set (in the cache) correctly too.
 3097 echo $ac_n "checking for $compiler option to produce PIC""... $ac_c" 1>&6
 3098 echo "configure:3099: checking for $compiler option to produce PIC" >&5
 3099 if eval "test \"`echo '$''{'lt_cv_prog_cc_pic'+set}'`\" = set"; then
 3100   echo $ac_n "(cached) $ac_c" 1>&6
 3101 else
 3102    lt_cv_prog_cc_pic=
 3103   lt_cv_prog_cc_shlib=
 3104   lt_cv_prog_cc_wl=
 3105   lt_cv_prog_cc_static=
 3106   lt_cv_prog_cc_no_builtin=
 3107   lt_cv_prog_cc_can_build_shared=$can_build_shared
 3108 
 3109   if test "$GCC" = yes; then
 3110     lt_cv_prog_cc_wl='-Wl,'
 3111     lt_cv_prog_cc_static='-static'
 3112 
 3113     case $host_os in
 3114     aix*)
 3115       # Below there is a dirty hack to force normal static linking with -ldl
 3116       # The problem is because libdl dynamically linked with both libc and
 3117       # libC (AIX C++ library), which obviously doesn't included in libraries
 3118       # list by gcc. This cause undefined symbols with -static flags.
 3119       # This hack allows C programs to be linked with "-static -ldl", but
 3120       # not sure about C++ programs.
 3121       lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
 3122       ;;
 3123     amigaos*)
 3124       # FIXME: we need at least 68020 code to build shared libraries, but
 3125       # adding the `-m68020' flag to GCC prevents building anything better,
 3126       # like `-m68040'.
 3127       lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
 3128       ;;
 3129     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
 3130       # PIC is the default for these OSes.
 3131       ;;
 3132     darwin* | rhapsody*)
 3133       # PIC is the default on this platform
 3134       # Common symbols not allowed in MH_DYLIB files
 3135       lt_cv_prog_cc_pic='-fno-common'
 3136       ;;
 3137     cygwin* | mingw* | pw32* | os2*)
 3138       # This hack is so that the source file can tell whether it is being
 3139       # built for inclusion in a dll (and should export symbols for example).
 3140       lt_cv_prog_cc_pic='-DDLL_EXPORT'
 3141       ;;
 3142     sysv4*MP*)
 3143       if test -d /usr/nec; then
 3144      lt_cv_prog_cc_pic=-Kconform_pic
 3145       fi
 3146       ;;
 3147     *)
 3148       lt_cv_prog_cc_pic='-fPIC'
 3149       ;;
 3150     esac
 3151   else
 3152     # PORTME Check for PIC flags for the system compiler.
 3153     case $host_os in
 3154     aix3* | aix4* | aix5*)
 3155       lt_cv_prog_cc_wl='-Wl,'
 3156       # All AIX code is PIC.
 3157       if test "$host_cpu" = ia64; then
 3158     # AIX 5 now supports IA64 processor
 3159     lt_cv_prog_cc_static='-Bstatic'
 3160       else
 3161     lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
 3162       fi
 3163       ;;
 3164 
 3165     hpux9* | hpux10* | hpux11*)
 3166       # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
 3167       lt_cv_prog_cc_wl='-Wl,'
 3168       lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
 3169       lt_cv_prog_cc_pic='+Z'
 3170       ;;
 3171 
 3172     irix5* | irix6* | nonstopux*)
 3173       lt_cv_prog_cc_wl='-Wl,'
 3174       lt_cv_prog_cc_static='-non_shared'
 3175       # PIC (with -KPIC) is the default.
 3176       ;;
 3177 
 3178     cygwin* | mingw* | pw32* | os2*)
 3179       # This hack is so that the source file can tell whether it is being
 3180       # built for inclusion in a dll (and should export symbols for example).
 3181       lt_cv_prog_cc_pic='-DDLL_EXPORT'
 3182       ;;
 3183 
 3184     newsos6)
 3185       lt_cv_prog_cc_pic='-KPIC'
 3186       lt_cv_prog_cc_static='-Bstatic'
 3187       ;;
 3188 
 3189     osf3* | osf4* | osf5*)
 3190       # All OSF/1 code is PIC.
 3191       lt_cv_prog_cc_wl='-Wl,'
 3192       lt_cv_prog_cc_static='-non_shared'
 3193       ;;
 3194 
 3195     sco3.2v5*)
 3196       lt_cv_prog_cc_pic='-Kpic'
 3197       lt_cv_prog_cc_static='-dn'
 3198       lt_cv_prog_cc_shlib='-belf'
 3199       ;;
 3200 
 3201     solaris*)
 3202       lt_cv_prog_cc_pic='-KPIC'
 3203       lt_cv_prog_cc_static='-Bstatic'
 3204       lt_cv_prog_cc_wl='-Wl,'
 3205       ;;
 3206 
 3207     sunos4*)
 3208       lt_cv_prog_cc_pic='-PIC'
 3209       lt_cv_prog_cc_static='-Bstatic'
 3210       lt_cv_prog_cc_wl='-Qoption ld '
 3211       ;;
 3212 
 3213     sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 3214       lt_cv_prog_cc_pic='-KPIC'
 3215       lt_cv_prog_cc_static='-Bstatic'
 3216       lt_cv_prog_cc_wl='-Wl,'
 3217       ;;
 3218 
 3219     uts4*)
 3220       lt_cv_prog_cc_pic='-pic'
 3221       lt_cv_prog_cc_static='-Bstatic'
 3222       ;;
 3223 
 3224     sysv4*MP*)
 3225       if test -d /usr/nec ;then
 3226     lt_cv_prog_cc_pic='-Kconform_pic'
 3227     lt_cv_prog_cc_static='-Bstatic'
 3228       fi
 3229       ;;
 3230 
 3231     *)
 3232       lt_cv_prog_cc_can_build_shared=no
 3233       ;;
 3234     esac
 3235   fi
 3236 
 3237 fi
 3238 
 3239 if test -z "$lt_cv_prog_cc_pic"; then
 3240   echo "$ac_t""none" 1>&6
 3241 else
 3242   echo "$ac_t""$lt_cv_prog_cc_pic" 1>&6
 3243 
 3244   # Check to make sure the pic_flag actually works.
 3245   echo $ac_n "checking if $compiler PIC flag $lt_cv_prog_cc_pic works""... $ac_c" 1>&6
 3246 echo "configure:3247: checking if $compiler PIC flag $lt_cv_prog_cc_pic works" >&5
 3247   if eval "test \"`echo '$''{'lt_cv_prog_cc_pic_works'+set}'`\" = set"; then
 3248   echo $ac_n "(cached) $ac_c" 1>&6
 3249 else
 3250       save_CFLAGS="$CFLAGS"
 3251     CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
 3252     cat > conftest.$ac_ext <<EOF
 3253 #line 3254 "configure"
 3254 #include "confdefs.h"
 3255 
 3256 int main() {
 3257 
 3258 ; return 0; }
 3259 EOF
 3260 if { (eval echo configure:3261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3261   rm -rf conftest*
 3262         case $host_os in
 3263       hpux9* | hpux10* | hpux11*)
 3264     # On HP-UX, both CC and GCC only warn that PIC is supported... then
 3265     # they create non-PIC objects.  So, if there were any warnings, we
 3266     # assume that PIC is not supported.
 3267     if test -s conftest.err; then
 3268       lt_cv_prog_cc_pic_works=no
 3269     else
 3270       lt_cv_prog_cc_pic_works=yes
 3271     fi
 3272     ;;
 3273       *)
 3274     lt_cv_prog_cc_pic_works=yes
 3275     ;;
 3276       esac
 3277     
 3278 else
 3279   echo "configure: failed program was:" >&5
 3280   cat conftest.$ac_ext >&5
 3281   rm -rf conftest*
 3282         lt_cv_prog_cc_pic_works=no
 3283     
 3284 fi
 3285 rm -f conftest*
 3286     CFLAGS="$save_CFLAGS"
 3287   
 3288 fi
 3289 
 3290 
 3291   if test "X$lt_cv_prog_cc_pic_works" = Xno; then
 3292     lt_cv_prog_cc_pic=
 3293     lt_cv_prog_cc_can_build_shared=no
 3294   else
 3295     lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
 3296   fi
 3297 
 3298   echo "$ac_t""$lt_cv_prog_cc_pic_works" 1>&6
 3299 fi
 3300 
 3301 # Check for any special shared library compilation flags.
 3302 if test -n "$lt_cv_prog_cc_shlib"; then
 3303   echo "configure: warning: \`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries" 1>&2
 3304   if echo "$old_CC $old_CFLAGS " | egrep -e "[  ]$lt_cv_prog_cc_shlib[  ]" >/dev/null; then :
 3305   else
 3306    echo "configure: warning: add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" 1>&2
 3307     lt_cv_prog_cc_can_build_shared=no
 3308   fi
 3309 fi
 3310 
 3311 echo $ac_n "checking if $compiler static flag $lt_cv_prog_cc_static works""... $ac_c" 1>&6
 3312 echo "configure:3313: checking if $compiler static flag $lt_cv_prog_cc_static works" >&5
 3313 if eval "test \"`echo '$''{'lt_cv_prog_cc_static_works'+set}'`\" = set"; then
 3314   echo $ac_n "(cached) $ac_c" 1>&6
 3315 else
 3316     lt_cv_prog_cc_static_works=no
 3317   save_LDFLAGS="$LDFLAGS"
 3318   LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
 3319   cat > conftest.$ac_ext <<EOF
 3320 #line 3321 "configure"
 3321 #include "confdefs.h"
 3322 
 3323 int main() {
 3324 
 3325 ; return 0; }
 3326 EOF
 3327 if { (eval echo configure:3328: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 3328   rm -rf conftest*
 3329   lt_cv_prog_cc_static_works=yes
 3330 else
 3331   echo "configure: failed program was:" >&5
 3332   cat conftest.$ac_ext >&5
 3333 fi
 3334 rm -f conftest*
 3335   LDFLAGS="$save_LDFLAGS"
 3336 
 3337 fi
 3338 
 3339 
 3340 # Belt *and* braces to stop my trousers falling down:
 3341 test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
 3342 echo "$ac_t""$lt_cv_prog_cc_static_works" 1>&6
 3343 
 3344 pic_flag="$lt_cv_prog_cc_pic"
 3345 special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
 3346 wl="$lt_cv_prog_cc_wl"
 3347 link_static_flag="$lt_cv_prog_cc_static"
 3348 no_builtin_flag="$lt_cv_prog_cc_no_builtin"
 3349 can_build_shared="$lt_cv_prog_cc_can_build_shared"
 3350 
 3351 
 3352 # Check to see if options -o and -c are simultaneously supported by compiler
 3353 echo $ac_n "checking if $compiler supports -c -o file.$ac_objext""... $ac_c" 1>&6
 3354 echo "configure:3355: checking if $compiler supports -c -o file.$ac_objext" >&5
 3355 if eval "test \"`echo '$''{'lt_cv_compiler_c_o'+set}'`\" = set"; then
 3356   echo $ac_n "(cached) $ac_c" 1>&6
 3357 else
 3358   
 3359 $rm -r conftest 2>/dev/null
 3360 mkdir conftest
 3361 cd conftest
 3362 echo "int some_variable = 0;" > conftest.$ac_ext
 3363 mkdir out
 3364 # According to Tom Tromey, Ian Lance Taylor reported there are C compilers
 3365 # that will create temporary files in the current directory regardless of
 3366 # the output directory.  Thus, making CWD read-only will cause this test
 3367 # to fail, enabling locking or at least warning the user not to do parallel
 3368 # builds.
 3369 chmod -w .
 3370 save_CFLAGS="$CFLAGS"
 3371 CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
 3372 compiler_c_o=no
 3373 if { (eval echo configure:3374: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
 3374   # The compiler can only warn and ignore the option if not recognized
 3375   # So say no if there are warnings
 3376   if test -s out/conftest.err; then
 3377     lt_cv_compiler_c_o=no
 3378   else
 3379     lt_cv_compiler_c_o=yes
 3380   fi
 3381 else
 3382   # Append any errors to the config.log.
 3383   cat out/conftest.err 1>&5
 3384   lt_cv_compiler_c_o=no
 3385 fi
 3386 CFLAGS="$save_CFLAGS"
 3387 chmod u+w .
 3388 $rm conftest* out/*
 3389 rmdir out
 3390 cd ..
 3391 rmdir conftest
 3392 $rm -r conftest 2>/dev/null
 3393 
 3394 fi
 3395 
 3396 compiler_c_o=$lt_cv_compiler_c_o
 3397 echo "$ac_t""$compiler_c_o" 1>&6
 3398 
 3399 if test x"$compiler_c_o" = x"yes"; then
 3400   # Check to see if we can write to a .lo
 3401   echo $ac_n "checking if $compiler supports -c -o file.lo""... $ac_c" 1>&6
 3402 echo "configure:3403: checking if $compiler supports -c -o file.lo" >&5
 3403   if eval "test \"`echo '$''{'lt_cv_compiler_o_lo'+set}'`\" = set"; then
 3404   echo $ac_n "(cached) $ac_c" 1>&6
 3405 else
 3406   
 3407   lt_cv_compiler_o_lo=no
 3408   save_CFLAGS="$CFLAGS"
 3409   CFLAGS="$CFLAGS -c -o conftest.lo"
 3410   save_objext="$ac_objext"
 3411   ac_objext=lo
 3412   cat > conftest.$ac_ext <<EOF
 3413 #line 3414 "configure"
 3414 #include "confdefs.h"
 3415 
 3416 int main() {
 3417 int some_variable = 0;
 3418 ; return 0; }
 3419 EOF
 3420 if { (eval echo configure:3421: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3421   rm -rf conftest*
 3422       # The compiler can only warn and ignore the option if not recognized
 3423     # So say no if there are warnings
 3424     if test -s conftest.err; then
 3425       lt_cv_compiler_o_lo=no
 3426     else
 3427       lt_cv_compiler_o_lo=yes
 3428     fi
 3429   
 3430 else
 3431   echo "configure: failed program was:" >&5
 3432   cat conftest.$ac_ext >&5
 3433 fi
 3434 rm -f conftest*
 3435   ac_objext="$save_objext"
 3436   CFLAGS="$save_CFLAGS"
 3437   
 3438 fi
 3439 
 3440   compiler_o_lo=$lt_cv_compiler_o_lo
 3441   echo "$ac_t""$compiler_o_lo" 1>&6
 3442 else
 3443   compiler_o_lo=no
 3444 fi
 3445 
 3446 # Check to see if we can do hard links to lock some files if needed
 3447 hard_links="nottested"
 3448 if test "$compiler_c_o" = no && test "$need_locks" != no; then
 3449   # do not overwrite the value of need_locks provided by the user
 3450   echo $ac_n "checking if we can lock with hard links""... $ac_c" 1>&6
 3451 echo "configure:3452: checking if we can lock with hard links" >&5
 3452   hard_links=yes
 3453   $rm conftest*
 3454   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 3455   touch conftest.a
 3456   ln conftest.a conftest.b 2>&5 || hard_links=no
 3457   ln conftest.a conftest.b 2>/dev/null && hard_links=no
 3458   echo "$ac_t""$hard_links" 1>&6
 3459   if test "$hard_links" = no; then
 3460     echo "configure: warning: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" 1>&2
 3461     need_locks=warn
 3462   fi
 3463 else
 3464   need_locks=no
 3465 fi
 3466 
 3467 if test "$GCC" = yes; then
 3468   # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
 3469   echo $ac_n "checking if $compiler supports -fno-rtti -fno-exceptions""... $ac_c" 1>&6
 3470 echo "configure:3471: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
 3471   echo "int some_variable = 0;" > conftest.$ac_ext
 3472   save_CFLAGS="$CFLAGS"
 3473   CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
 3474   compiler_rtti_exceptions=no
 3475   cat > conftest.$ac_ext <<EOF
 3476 #line 3477 "configure"
 3477 #include "confdefs.h"
 3478 
 3479 int main() {
 3480 int some_variable = 0;
 3481 ; return 0; }
 3482 EOF
 3483 if { (eval echo configure:3484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
 3484   rm -rf conftest*
 3485       # The compiler can only warn and ignore the option if not recognized
 3486     # So say no if there are warnings
 3487     if test -s conftest.err; then
 3488       compiler_rtti_exceptions=no
 3489     else
 3490       compiler_rtti_exceptions=yes
 3491     fi
 3492   
 3493 else
 3494   echo "configure: failed program was:" >&5
 3495   cat conftest.$ac_ext >&5
 3496 fi
 3497 rm -f conftest*
 3498   CFLAGS="$save_CFLAGS"
 3499   echo "$ac_t""$compiler_rtti_exceptions" 1>&6
 3500 
 3501   if test "$compiler_rtti_exceptions" = "yes"; then
 3502     no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
 3503   else
 3504     no_builtin_flag=' -fno-builtin'
 3505   fi
 3506 fi
 3507 
 3508 # See if the linker supports building shared libraries.
 3509 echo $ac_n "checking whether the linker ($LD) supports shared libraries""... $ac_c" 1>&6
 3510 echo "configure:3511: checking whether the linker ($LD) supports shared libraries" >&5
 3511 
 3512 allow_undefined_flag=
 3513 no_undefined_flag=
 3514 need_lib_prefix=unknown
 3515 need_version=unknown
 3516 # when you set need_version to no, make sure it does not cause -set_version
 3517 # flags to be left without arguments
 3518 archive_cmds=
 3519 archive_expsym_cmds=
 3520 old_archive_from_new_cmds=
 3521 old_archive_from_expsyms_cmds=
 3522 export_dynamic_flag_spec=
 3523 whole_archive_flag_spec=
 3524 thread_safe_flag_spec=
 3525 hardcode_into_libs=no
 3526 hardcode_libdir_flag_spec=
 3527 hardcode_libdir_separator=
 3528 hardcode_direct=no
 3529 hardcode_minus_L=no
 3530 hardcode_shlibpath_var=unsupported
 3531 runpath_var=
 3532 link_all_deplibs=unknown
 3533 always_export_symbols=no
 3534 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
 3535 # include_expsyms should be a list of space-separated symbols to be *always*
 3536 # included in the symbol list
 3537 include_expsyms=
 3538 # exclude_expsyms can be an egrep regular expression of symbols to exclude
 3539 # it will be wrapped by ` (' and `)$', so one must not match beginning or
 3540 # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
 3541 # as well as any symbol that contains `d'.
 3542 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
 3543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
 3544 # platforms (ab)use it in PIC code, but their linkers get confused if
 3545 # the symbol is explicitly referenced.  Since portable code cannot
 3546 # rely on this symbol name, it's probably fine to never include it in
 3547 # preloaded symbol tables.
 3548 extract_expsyms_cmds=
 3549 
 3550 case $host_os in
 3551 cygwin* | mingw* | pw32*)
 3552   # FIXME: the MSVC++ port hasn't been tested in a loooong time
 3553   # When not using gcc, we currently assume that we are using
 3554   # Microsoft Visual C++.
 3555   if test "$GCC" != yes; then
 3556     with_gnu_ld=no
 3557   fi
 3558   ;;
 3559 openbsd*)
 3560   with_gnu_ld=no
 3561   ;;
 3562 esac
 3563 
 3564 ld_shlibs=yes
 3565 if test "$with_gnu_ld" = yes; then
 3566   # If archive_cmds runs LD, not CC, wlarc should be empty
 3567   wlarc='${wl}'
 3568 
 3569   # See if GNU ld supports shared libraries.
 3570   case $host_os in
 3571   aix3* | aix4* | aix5*)
 3572     # On AIX, the GNU linker is very broken
 3573     # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
 3574     ld_shlibs=no
 3575     cat <<EOF 1>&2
 3576 
 3577 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
 3578 *** to be unable to reliably create shared libraries on AIX.
 3579 *** Therefore, libtool is disabling shared libraries support.  If you
 3580 *** really care for shared libraries, you may want to modify your PATH
 3581 *** so that a non-GNU linker is found, and then restart.
 3582 
 3583 EOF
 3584     ;;
 3585 
 3586   amigaos*)
 3587     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)'
 3588     hardcode_libdir_flag_spec='-L$libdir'
 3589     hardcode_minus_L=yes
 3590 
 3591     # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
 3592     # that the semantics of dynamic libraries on AmigaOS, at least up
 3593     # to version 4, is to share data among multiple programs linked
 3594     # with the same dynamic library.  Since this doesn't match the
 3595     # behavior of shared libraries on other platforms, we can use
 3596     # them.
 3597     ld_shlibs=no
 3598     ;;
 3599 
 3600   beos*)
 3601     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 3602       allow_undefined_flag=unsupported
 3603       # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
 3604       # support --undefined.  This deserves some investigation.  FIXME
 3605       archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3606     else
 3607       ld_shlibs=no
 3608     fi
 3609     ;;
 3610 
 3611   cygwin* | mingw* | pw32*)
 3612     # hardcode_libdir_flag_spec is actually meaningless, as there is
 3613     # no search path for DLLs.
 3614     hardcode_libdir_flag_spec='-L$libdir'
 3615     allow_undefined_flag=unsupported
 3616     always_export_symbols=yes
 3617 
 3618     extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
 3619       sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
 3620       test -f $output_objdir/impgen.exe || (cd $output_objdir && \
 3621       if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
 3622       else $CC -o impgen impgen.c ; fi)~
 3623       $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
 3624 
 3625     old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
 3626 
 3627     # cygwin and mingw dlls have different entry points and sets of symbols
 3628     # to exclude.
 3629     # FIXME: what about values for MSVC?
 3630     dll_entry=__cygwin_dll_entry@12
 3631     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
 3632     case $host_os in
 3633     mingw*)
 3634       # mingw values
 3635       dll_entry=_DllMainCRTStartup@12
 3636       dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
 3637       ;;
 3638     esac
 3639 
 3640     # mingw and cygwin differ, and it's simplest to just exclude the union
 3641     # of the two symbol sets.
 3642     dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
 3643 
 3644     # recent cygwin and mingw systems supply a stub DllMain which the user
 3645     # can override, but on older systems we have to supply one (in ltdll.c)
 3646     if test "x$lt_cv_need_dllmain" = "xyes"; then
 3647       ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
 3648       ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
 3649     test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
 3650     else
 3651       ltdll_obj=
 3652       ltdll_cmds=
 3653     fi
 3654 
 3655     # Extract the symbol export list from an `--export-all' def file,
 3656     # then regenerate the def file from the symbol export list, so that
 3657     # the compiled dll only exports the symbol export list.
 3658     # Be careful not to strip the DATA tag left be newer dlltools.
 3659     export_symbols_cmds="$ltdll_cmds"'
 3660       $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
 3661       sed -e "1,/EXPORTS/d" -e "s/ @ [0-9]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
 3662 
 3663     # If the export-symbols file already is a .def file (1st line
 3664     # is EXPORTS), use it as is.
 3665     # If DATA tags from a recent dlltool are present, honour them!
 3666     archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
 3667     cp $export_symbols $output_objdir/$soname-def;
 3668       else
 3669     echo EXPORTS > $output_objdir/$soname-def;
 3670     _lt_hint=1;
 3671     cat $export_symbols | while read symbol; do
 3672      set dummy \$symbol;
 3673      case \$# in
 3674        2) echo "   \$2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
 3675        4) echo "   \$2 \$3 \$4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
 3676        *) echo "     \$2 @ \$_lt_hint \$3 ; " >> $output_objdir/$soname-def;;
 3677      esac;
 3678      _lt_hint=`expr 1 + \$_lt_hint`;
 3679     done;
 3680       fi~
 3681       '"$ltdll_cmds"'
 3682       $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 3683       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
 3684       $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
 3685       $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
 3686       $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
 3687     ;;
 3688 
 3689   netbsd*)
 3690     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 3691       archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
 3692       wlarc=
 3693     else
 3694       archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3695       archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 3696     fi
 3697     ;;
 3698 
 3699   solaris* | sysv5*)
 3700     if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
 3701       ld_shlibs=no
 3702       cat <<EOF 1>&2
 3703 
 3704 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
 3705 *** create shared libraries on Solaris systems.  Therefore, libtool
 3706 *** is disabling shared libraries support.  We urge you to upgrade GNU
 3707 *** binutils to release 2.9.1 or newer.  Another option is to modify
 3708 *** your PATH or compiler configuration so that the native linker is
 3709 *** used, and then restart.
 3710 
 3711 EOF
 3712     elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 3713       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3714       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 3715     else
 3716       ld_shlibs=no
 3717     fi
 3718     ;;
 3719 
 3720   sunos4*)
 3721     archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 3722     wlarc=
 3723     hardcode_direct=yes
 3724     hardcode_shlibpath_var=no
 3725     ;;
 3726 
 3727   *)
 3728     if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
 3729       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
 3730       archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
 3731     else
 3732       ld_shlibs=no
 3733     fi
 3734     ;;
 3735   esac
 3736 
 3737   if test "$ld_shlibs" = yes; then
 3738     runpath_var=LD_RUN_PATH
 3739     hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
 3740     export_dynamic_flag_spec='${wl}--export-dynamic'
 3741     case $host_os in
 3742     cygwin* | mingw* | pw32*)
 3743       # dlltool doesn't understand --whole-archive et. al.
 3744       whole_archive_flag_spec=
 3745       ;;
 3746     *)
 3747       # ancient GNU ld didn't support --whole-archive et. al.
 3748       if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
 3749     whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
 3750       else
 3751     whole_archive_flag_spec=
 3752       fi
 3753       ;;
 3754     esac
 3755   fi
 3756 else
 3757   # PORTME fill in a description of your system's linker (not GNU ld)
 3758   case $host_os in
 3759   aix3*)
 3760     allow_undefined_flag=unsupported
 3761     always_export_symbols=yes
 3762     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'
 3763     # Note: this linker hardcodes the directories in LIBPATH if there
 3764     # are no directories specified by -L.
 3765     hardcode_minus_L=yes
 3766     if test "$GCC" = yes && test -z "$link_static_flag"; then
 3767       # Neither direct hardcoding nor static linking is supported with a
 3768       # broken collect2.
 3769       hardcode_direct=unsupported
 3770     fi
 3771     ;;
 3772 
 3773   aix4* | aix5*)
 3774     if test "$host_cpu" = ia64; then
 3775       # On IA64, the linker does run time linking by default, so we don't
 3776       # have to do anything special.
 3777       aix_use_runtimelinking=no
 3778       exp_sym_flag='-Bexport'
 3779       no_entry_flag=""
 3780     else
 3781       aix_use_runtimelinking=no
 3782 
 3783       # Test if we are trying to use run time linking or normal
 3784       # AIX style linking. If -brtl is somewhere in LDFLAGS, we
 3785       # need to do runtime linking.
 3786       case $host_os in aix4.[23]|aix4.[23].*|aix5*)
 3787     for ld_flag in $LDFLAGS; do
 3788       case $ld_flag in
 3789       *-brtl*)
 3790         aix_use_runtimelinking=yes
 3791         break
 3792       ;;
 3793       esac
 3794     done
 3795       esac
 3796 
 3797       exp_sym_flag='-bexport'
 3798       no_entry_flag='-bnoentry'
 3799     fi
 3800 
 3801     # When large executables or shared objects are built, AIX ld can
 3802     # have problems creating the table of contents.  If linking a library
 3803     # or program results in "error TOC overflow" add -mminimal-toc to
 3804     # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
 3805     # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
 3806 
 3807     hardcode_direct=yes
 3808     archive_cmds=''
 3809     hardcode_libdir_separator=':'
 3810     if test "$GCC" = yes; then
 3811       case $host_os in aix4.[012]|aix4.[012].*)
 3812     collect2name=`${CC} -print-prog-name=collect2`
 3813     if test -f "$collect2name" && \
 3814       strings "$collect2name" | grep resolve_lib_name >/dev/null
 3815     then
 3816       # We have reworked collect2
 3817       hardcode_direct=yes
 3818     else
 3819       # We have old collect2
 3820       hardcode_direct=unsupported
 3821       # It fails to find uninstalled libraries when the uninstalled
 3822       # path is not listed in the libpath.  Setting hardcode_minus_L
 3823       # to unsupported forces relinking
 3824       hardcode_minus_L=yes
 3825       hardcode_libdir_flag_spec='-L$libdir'
 3826       hardcode_libdir_separator=
 3827     fi
 3828       esac
 3829 
 3830       shared_flag='-shared'
 3831     else
 3832       # not using gcc
 3833       if test "$host_cpu" = ia64; then
 3834     shared_flag='${wl}-G'
 3835       else
 3836     if test "$aix_use_runtimelinking" = yes; then
 3837       shared_flag='${wl}-G'
 3838     else
 3839       shared_flag='${wl}-bM:SRE'
 3840     fi
 3841       fi
 3842     fi
 3843 
 3844     # It seems that -bexpall can do strange things, so it is better to
 3845     # generate a list of symbols to export.
 3846     always_export_symbols=yes
 3847     if test "$aix_use_runtimelinking" = yes; then
 3848       # Warning - without using the other runtime loading flags (-brtl),
 3849       # -berok will link without error, but may produce a broken library.
 3850       allow_undefined_flag='-berok'
 3851       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
 3852       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"
 3853     else
 3854       if test "$host_cpu" = ia64; then
 3855     hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
 3856     allow_undefined_flag="-z nodefs"
 3857     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
 3858       else
 3859     hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
 3860     # Warning - without using the other run time loading flags,
 3861     # -berok will link without error, but may produce a broken library.
 3862     allow_undefined_flag='${wl}-berok'
 3863     # This is a bit strange, but is similar to how AIX traditionally builds
 3864     # it's shared libraries.
 3865     archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $objdir/$libname$release.a $objdir/$soname'
 3866       fi
 3867     fi
 3868     ;;
 3869 
 3870   amigaos*)
 3871     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)'
 3872     hardcode_libdir_flag_spec='-L$libdir'
 3873     hardcode_minus_L=yes
 3874     # see comment about different semantics on the GNU ld section
 3875     ld_shlibs=no
 3876     ;;
 3877 
 3878   cygwin* | mingw* | pw32*)
 3879     # When not using gcc, we currently assume that we are using
 3880     # Microsoft Visual C++.
 3881     # hardcode_libdir_flag_spec is actually meaningless, as there is
 3882     # no search path for DLLs.
 3883     hardcode_libdir_flag_spec=' '
 3884     allow_undefined_flag=unsupported
 3885     # Tell ltmain to make .lib files, not .a files.
 3886     libext=lib
 3887     # FIXME: Setting linknames here is a bad hack.
 3888     archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
 3889     # The linker will automatically build a .lib file if we build a DLL.
 3890     old_archive_from_new_cmds='true'
 3891     # FIXME: Should let the user specify the lib program.
 3892     old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
 3893     fix_srcfile_path='`cygpath -w "$srcfile"`'
 3894     ;;
 3895 
 3896   darwin* | rhapsody*)
 3897     case "$host_os" in
 3898     rhapsody* | darwin1.[012])
 3899       allow_undefined_flag='-undefined suppress'
 3900       ;;
 3901     *) # Darwin 1.3 on
 3902       allow_undefined_flag='-flat_namespace -undefined suppress'
 3903       ;;
 3904     esac
 3905     # FIXME: Relying on posixy $() will cause problems for
 3906     #        cross-compilation, but unfortunately the echo tests do not
 3907     #        yet detect zsh echo's removal of \ escapes.  Also zsh mangles
 3908     #        `"' quotes if we put them in here... so don't!
 3909     archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
 3910     # We need to add '_' to the symbols in $export_symbols first
 3911     #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
 3912     hardcode_direct=yes
 3913     hardcode_shlibpath_var=no
 3914     whole_archive_flag_spec='-all_load $convenience'
 3915     ;;
 3916 
 3917   freebsd1*)
 3918     ld_shlibs=no
 3919     ;;
 3920 
 3921   # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
 3922   # support.  Future versions do this automatically, but an explicit c++rt0.o
 3923   # does not break anything, and helps significantly (at the cost of a little
 3924   # extra space).
 3925   freebsd2.2*)
 3926     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
 3927     hardcode_libdir_flag_spec='-R$libdir'
 3928     hardcode_direct=yes
 3929     hardcode_shlibpath_var=no
 3930     ;;
 3931 
 3932   # Unfortunately, older versions of FreeBSD 2 do not have this feature.
 3933   freebsd2*)
 3934     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 3935     hardcode_direct=yes
 3936     hardcode_minus_L=yes
 3937     hardcode_shlibpath_var=no
 3938     ;;
 3939 
 3940   # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
 3941   freebsd*)
 3942     archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
 3943     hardcode_libdir_flag_spec='-R$libdir'
 3944     hardcode_direct=yes
 3945     hardcode_shlibpath_var=no
 3946     ;;
 3947 
 3948   hpux9* | hpux10* | hpux11*)
 3949     case $host_os in
 3950     hpux9*) 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' ;;
 3951     *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
 3952     esac
 3953     hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
 3954     hardcode_libdir_separator=:
 3955     hardcode_direct=yes
 3956     hardcode_minus_L=yes # Not in the search PATH, but as the default
 3957              # location of the library.
 3958     export_dynamic_flag_spec='${wl}-E'
 3959     ;;
 3960 
 3961   irix5* | irix6* | nonstopux*)
 3962     if test "$GCC" = yes; then
 3963       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'
 3964       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 3965     else
 3966       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'
 3967       hardcode_libdir_flag_spec='-rpath $libdir'
 3968     fi
 3969     hardcode_libdir_separator=:
 3970     link_all_deplibs=yes
 3971     ;;
 3972 
 3973   netbsd*)
 3974     if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 3975       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
 3976     else
 3977       archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
 3978     fi
 3979     hardcode_libdir_flag_spec='-R$libdir'
 3980     hardcode_direct=yes
 3981     hardcode_shlibpath_var=no
 3982     ;;
 3983 
 3984   newsos6)
 3985     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 3986     hardcode_direct=yes
 3987     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 3988     hardcode_libdir_separator=:
 3989     hardcode_shlibpath_var=no
 3990     ;;
 3991 
 3992   openbsd*)
 3993     hardcode_direct=yes
 3994     hardcode_shlibpath_var=no
 3995     if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 3996       archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 3997       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 3998       export_dynamic_flag_spec='${wl}-E'
 3999     else
 4000       case "$host_os" in
 4001       openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
 4002     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
 4003     hardcode_libdir_flag_spec='-R$libdir'
 4004         ;;
 4005       *)
 4006         archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
 4007         hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
 4008         ;;
 4009       esac
 4010     fi
 4011     ;;
 4012 
 4013   os2*)
 4014     hardcode_libdir_flag_spec='-L$libdir'
 4015     hardcode_minus_L=yes
 4016     allow_undefined_flag=unsupported
 4017     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'
 4018     old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
 4019     ;;
 4020 
 4021   osf3*)
 4022     if test "$GCC" = yes; then
 4023       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 4024       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'
 4025     else
 4026       allow_undefined_flag=' -expect_unresolved \*'
 4027       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'
 4028     fi
 4029     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 4030     hardcode_libdir_separator=:
 4031     ;;
 4032 
 4033   osf4* | osf5*)    # as osf3* with the addition of -msym flag
 4034     if test "$GCC" = yes; then
 4035       allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
 4036       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'
 4037       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
 4038     else
 4039       allow_undefined_flag=' -expect_unresolved \*'
 4040       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'
 4041       archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
 4042       $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'
 4043 
 4044       #Both c and cxx compiler support -rpath directly
 4045       hardcode_libdir_flag_spec='-rpath $libdir'
 4046     fi
 4047     hardcode_libdir_separator=:
 4048     ;;
 4049 
 4050   sco3.2v5*)
 4051     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 4052     hardcode_shlibpath_var=no
 4053     runpath_var=LD_RUN_PATH
 4054     hardcode_runpath_var=yes
 4055     export_dynamic_flag_spec='${wl}-Bexport'
 4056     ;;
 4057 
 4058   solaris*)
 4059     # gcc --version < 3.0 without binutils cannot create self contained
 4060     # shared libraries reliably, requiring libgcc.a to resolve some of
 4061     # the object symbols generated in some cases.  Libraries that use
 4062     # assert need libgcc.a to resolve __eprintf, for example.  Linking
 4063     # a copy of libgcc.a into every shared library to guarantee resolving
 4064     # such symbols causes other problems:  According to Tim Van Holder
 4065     # <tim.van.holder@pandora.be>, C++ libraries end up with a separate
 4066     # (to the application) exception stack for one thing.
 4067     no_undefined_flag=' -z defs'
 4068     if test "$GCC" = yes; then
 4069       case `$CC --version 2>/dev/null` in
 4070       [12].*)
 4071     cat <<EOF 1>&2
 4072 
 4073 *** Warning: Releases of GCC earlier than version 3.0 cannot reliably
 4074 *** create self contained shared libraries on Solaris systems, without
 4075 *** introducing a dependency on libgcc.a.  Therefore, libtool is disabling
 4076 *** -no-undefined support, which will at least allow you to build shared
 4077 *** libraries.  However, you may find that when you link such libraries
 4078 *** into an application without using GCC, you have to manually add
 4079 *** \`gcc --print-libgcc-file-name\` to the link command.  We urge you to
 4080 *** upgrade to a newer version of GCC.  Another option is to rebuild your
 4081 *** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
 4082 
 4083 EOF
 4084         no_undefined_flag=
 4085     ;;
 4086       esac
 4087     fi
 4088     # $CC -shared without GNU ld will not create a library from C++
 4089     # object files and a static libstdc++, better avoid it by now
 4090     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 4091     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 4092         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 4093     hardcode_libdir_flag_spec='-R$libdir'
 4094     hardcode_shlibpath_var=no
 4095     case $host_os in
 4096     solaris2.[0-5] | solaris2.[0-5].*) ;;
 4097     *) # Supported since Solaris 2.6 (maybe 2.5.1?)
 4098       whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
 4099     esac
 4100     link_all_deplibs=yes
 4101     ;;
 4102 
 4103   sunos4*)
 4104     if test "x$host_vendor" = xsequent; then
 4105       # Use $CC to link under sequent, because it throws in some extra .o
 4106       # files that make .init and .fini sections work.
 4107       archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
 4108     else
 4109       archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
 4110     fi
 4111     hardcode_libdir_flag_spec='-L$libdir'
 4112     hardcode_direct=yes
 4113     hardcode_minus_L=yes
 4114     hardcode_shlibpath_var=no
 4115     ;;
 4116 
 4117   sysv4)
 4118     case $host_vendor in
 4119       sni)
 4120         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 4121         hardcode_direct=yes # is this really true???
 4122         ;;
 4123       siemens)
 4124         ## LD is ld it makes a PLAMLIB
 4125         ## CC just makes a GrossModule.
 4126         archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 4127         reload_cmds='$CC -r -o $output$reload_objs'
 4128         hardcode_direct=no
 4129         ;;
 4130       motorola)
 4131         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 4132         hardcode_direct=no #Motorola manual says yes, but my tests say they lie
 4133         ;;
 4134     esac
 4135     runpath_var='LD_RUN_PATH'
 4136     hardcode_shlibpath_var=no
 4137     ;;
 4138 
 4139   sysv4.3*)
 4140     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 4141     hardcode_shlibpath_var=no
 4142     export_dynamic_flag_spec='-Bexport'
 4143     ;;
 4144 
 4145   sysv5*)
 4146     no_undefined_flag=' -z text'
 4147     # $CC -shared without GNU ld will not create a library from C++
 4148     # object files and a static libstdc++, better avoid it by now
 4149     archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
 4150     archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
 4151         $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
 4152     hardcode_libdir_flag_spec=
 4153     hardcode_shlibpath_var=no
 4154     runpath_var='LD_RUN_PATH'
 4155     ;;
 4156 
 4157   uts4*)
 4158     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 4159     hardcode_libdir_flag_spec='-L$libdir'
 4160     hardcode_shlibpath_var=no
 4161     ;;
 4162 
 4163   dgux*)
 4164     archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 4165     hardcode_libdir_flag_spec='-L$libdir'
 4166     hardcode_shlibpath_var=no
 4167     ;;
 4168 
 4169   sysv4*MP*)
 4170     if test -d /usr/nec; then
 4171       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
 4172       hardcode_shlibpath_var=no
 4173       runpath_var=LD_RUN_PATH
 4174       hardcode_runpath_var=yes
 4175       ld_shlibs=yes
 4176     fi
 4177     ;;
 4178 
 4179   sysv4.2uw2*)
 4180     archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
 4181     hardcode_direct=yes
 4182     hardcode_minus_L=no
 4183     hardcode_shlibpath_var=no
 4184     hardcode_runpath_var=yes
 4185     runpath_var=LD_RUN_PATH
 4186     ;;
 4187 
 4188   sysv5uw7* | unixware7*)
 4189     no_undefined_flag='${wl}-z ${wl}text'
 4190     if test "$GCC" = yes; then
 4191       archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 4192     else
 4193       archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
 4194     fi
 4195     runpath_var='LD_RUN_PATH'
 4196     hardcode_shlibpath_var=no
 4197     ;;
 4198 
 4199   *)
 4200     ld_shlibs=no
 4201     ;;
 4202   esac
 4203 fi
 4204 echo "$ac_t""$ld_shlibs" 1>&6
 4205 test "$ld_shlibs" = no && can_build_shared=no
 4206 
 4207 # Check hardcoding attributes.
 4208 echo $ac_n "checking how to hardcode library paths into programs""... $ac_c" 1>&6
 4209 echo "configure:4210: checking how to hardcode library paths into programs" >&5
 4210 hardcode_action=
 4211 if test -n "$hardcode_libdir_flag_spec" || \
 4212    test -n "$runpath_var"; then
 4213 
 4214   # We can hardcode non-existant directories.
 4215   if test "$hardcode_direct" != no &&
 4216      # If the only mechanism to avoid hardcoding is shlibpath_var, we
 4217      # have to relink, otherwise we might link with an installed library
 4218      # when we should be linking with a yet-to-be-installed one
 4219      ## test "$hardcode_shlibpath_var" != no &&
 4220      test "$hardcode_minus_L" != no; then
 4221     # Linking always hardcodes the temporary library directory.
 4222     hardcode_action=relink
 4223   else
 4224     # We can link without hardcoding, and we can hardcode nonexisting dirs.
 4225     hardcode_action=immediate
 4226   fi
 4227 else
 4228   # We cannot hardcode anything, or else we can only hardcode existing
 4229   # directories.
 4230   hardcode_action=unsupported
 4231 fi
 4232 echo "$ac_t""$hardcode_action" 1>&6
 4233 
 4234 striplib=
 4235 old_striplib=
 4236 echo $ac_n "checking whether stripping libraries is possible""... $ac_c" 1>&6
 4237 echo "configure:4238: checking whether stripping libraries is possible" >&5
 4238 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
 4239   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
 4240   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
 4241   echo "$ac_t""yes" 1>&6
 4242 else
 4243   echo "$ac_t""no" 1>&6
 4244 fi
 4245 
 4246 reload_cmds='$LD$reload_flag -o $output$reload_objs'
 4247 test -z "$deplibs_check_method" && deplibs_check_method=unknown
 4248 
 4249 # PORTME Fill in your ld.so characteristics
 4250 echo $ac_n "checking dynamic linker characteristics""... $ac_c" 1>&6
 4251 echo "configure:4252: checking dynamic linker characteristics" >&5
 4252 library_names_spec=
 4253 libname_spec='lib$name'
 4254 soname_spec=
 4255 postinstall_cmds=
 4256 postuninstall_cmds=
 4257 finish_cmds=
 4258 finish_eval=
 4259 shlibpath_var=
 4260 shlibpath_overrides_runpath=unknown
 4261 version_type=none
 4262 dynamic_linker="$host_os ld.so"
 4263 sys_lib_dlsearch_path_spec="/lib /usr/lib"
 4264 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
 4265 
 4266 case $host_os in
 4267 aix3*)
 4268   version_type=linux
 4269   library_names_spec='${libname}${release}.so$versuffix $libname.a'
 4270   shlibpath_var=LIBPATH
 4271 
 4272   # AIX has no versioning support, so we append a major version to the name.
 4273   soname_spec='${libname}${release}.so$major'
 4274   ;;
 4275 
 4276 aix4* | aix5*)
 4277   version_type=linux
 4278   need_lib_prefix=no
 4279   need_version=no
 4280   hardcode_into_libs=yes
 4281   if test "$host_cpu" = ia64; then
 4282     # AIX 5 supports IA64
 4283     library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
 4284     shlibpath_var=LD_LIBRARY_PATH
 4285   else
 4286     # With GCC up to 2.95.x, collect2 would create an import file
 4287     # for dependence libraries.  The import file would start with
 4288     # the line `#! .'.  This would cause the generated library to
 4289     # depend on `.', always an invalid library.  This was fixed in
 4290     # development snapshots of GCC prior to 3.0.
 4291     case $host_os in
 4292       aix4 | aix4.[01] | aix4.[01].*)
 4293     if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
 4294          echo ' yes '
 4295          echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
 4296       :
 4297     else
 4298       can_build_shared=no
 4299     fi
 4300     ;;
 4301     esac
 4302     # AIX (on Power*) has no versioning support, so currently we can
 4303     # not hardcode correct soname into executable. Probably we can
 4304     # add versioning support to collect2, so additional links can
 4305     # be useful in future.
 4306     if test "$aix_use_runtimelinking" = yes; then
 4307       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
 4308       # instead of lib<name>.a to let people know that these are not
 4309       # typical AIX shared libraries.
 4310       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4311     else
 4312       # We preserve .a as extension for shared libraries through AIX4.2
 4313       # and later when we are not doing run time linking.
 4314       library_names_spec='${libname}${release}.a $libname.a'
 4315       soname_spec='${libname}${release}.so$major'
 4316     fi
 4317     shlibpath_var=LIBPATH
 4318   fi
 4319   hardcode_into_libs=yes
 4320   ;;
 4321 
 4322 amigaos*)
 4323   library_names_spec='$libname.ixlibrary $libname.a'
 4324   # Create ${libname}_ixlibrary.a entries in /sys/libs.
 4325   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'
 4326   ;;
 4327 
 4328 beos*)
 4329   library_names_spec='${libname}.so'
 4330   dynamic_linker="$host_os ld.so"
 4331   shlibpath_var=LIBRARY_PATH
 4332   ;;
 4333 
 4334 bsdi4*)
 4335   version_type=linux
 4336   need_version=no
 4337   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4338   soname_spec='${libname}${release}.so$major'
 4339   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
 4340   shlibpath_var=LD_LIBRARY_PATH
 4341   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
 4342   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
 4343   export_dynamic_flag_spec=-rdynamic
 4344   # the default ld.so.conf also contains /usr/contrib/lib and
 4345   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
 4346   # libtool to hard-code these into programs
 4347   ;;
 4348 
 4349 cygwin* | mingw* | pw32*)
 4350   version_type=windows
 4351   need_version=no
 4352   need_lib_prefix=no
 4353   case $GCC,$host_os in
 4354   yes,cygwin*)
 4355     library_names_spec='$libname.dll.a'
 4356     soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 4357     postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
 4358       dldir=$destdir/`dirname \$dlpath`~
 4359       test -d \$dldir || mkdir -p \$dldir~
 4360       $install_prog .libs/$dlname \$dldir/$dlname'
 4361     postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
 4362       dlpath=$dir/\$dldll~
 4363        $rm \$dlpath'
 4364     ;;
 4365   yes,mingw*)
 4366     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
 4367     sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
 4368     ;;
 4369   yes,pw32*)
 4370     library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/./-/g'`${versuffix}.dll'
 4371     ;;
 4372   *)
 4373     library_names_spec='${libname}`echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll $libname.lib'
 4374     ;;
 4375   esac
 4376   dynamic_linker='Win32 ld.exe'
 4377   # FIXME: first we should search . and the directory the executable is in
 4378   shlibpath_var=PATH
 4379   ;;
 4380 
 4381 darwin* | rhapsody*)
 4382   dynamic_linker="$host_os dyld"
 4383   version_type=darwin
 4384   need_lib_prefix=no
 4385   need_version=no
 4386   # FIXME: Relying on posixy $() will cause problems for
 4387   #        cross-compilation, but unfortunately the echo tests do not
 4388   #        yet detect zsh echo's removal of \ escapes.
 4389   library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
 4390   soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
 4391   shlibpath_overrides_runpath=yes
 4392   shlibpath_var=DYLD_LIBRARY_PATH
 4393   ;;
 4394 
 4395 freebsd1*)
 4396   dynamic_linker=no
 4397   ;;
 4398 
 4399 freebsd*)
 4400   objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
 4401   version_type=freebsd-$objformat
 4402   case $version_type in
 4403     freebsd-elf*)
 4404       library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
 4405       need_version=no
 4406       need_lib_prefix=no
 4407       ;;
 4408     freebsd-*)
 4409       library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
 4410       need_version=yes
 4411       ;;
 4412   esac
 4413   shlibpath_var=LD_LIBRARY_PATH
 4414   case $host_os in
 4415   freebsd2*)
 4416     shlibpath_overrides_runpath=yes
 4417     ;;
 4418   *)
 4419     shlibpath_overrides_runpath=no
 4420     hardcode_into_libs=yes
 4421     ;;
 4422   esac
 4423   ;;
 4424 
 4425 gnu*)
 4426   version_type=linux
 4427   need_lib_prefix=no
 4428   need_version=no
 4429   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
 4430   soname_spec='${libname}${release}.so$major'
 4431   shlibpath_var=LD_LIBRARY_PATH
 4432   hardcode_into_libs=yes
 4433   ;;
 4434 
 4435 hpux9* | hpux10* | hpux11*)
 4436   # Give a soname corresponding to the major version so that dld.sl refuses to
 4437   # link against other versions.
 4438   dynamic_linker="$host_os dld.sl"
 4439   version_type=sunos
 4440   need_lib_prefix=no
 4441   need_version=no
 4442   shlibpath_var=SHLIB_PATH
 4443   shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
 4444   library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
 4445   soname_spec='${libname}${release}.sl$major'
 4446   # HP-UX runs *really* slowly unless shared libraries are mode 555.
 4447   postinstall_cmds='chmod 555 $lib'
 4448   ;;
 4449 
 4450 irix5* | irix6* | nonstopux*)
 4451   case $host_os in
 4452     nonstopux*) version_type=nonstopux ;;
 4453     *)          version_type=irix ;;
 4454   esac
 4455   need_lib_prefix=no
 4456   need_version=no
 4457   soname_spec='${libname}${release}.so$major'
 4458   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
 4459   case $host_os in
 4460   irix5* | nonstopux*)
 4461     libsuff= shlibsuff=
 4462     ;;
 4463   *)
 4464     case $LD in # libtool.m4 will add one of these switches to LD
 4465     *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
 4466     *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
 4467     *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
 4468     *) libsuff= shlibsuff= libmagic=never-match;;
 4469     esac
 4470     ;;
 4471   esac
 4472   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
 4473   shlibpath_overrides_runpath=no
 4474   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
 4475   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
 4476   ;;
 4477 
 4478 # No shared lib support for Linux oldld, aout, or coff.
 4479 linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
 4480   dynamic_linker=no
 4481   ;;
 4482 
 4483 # This must be Linux ELF.
 4484 linux-gnu*)
 4485   version_type=linux
 4486   need_lib_prefix=no
 4487   need_version=no
 4488   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4489   soname_spec='${libname}${release}.so$major'
 4490   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
 4491   shlibpath_var=LD_LIBRARY_PATH
 4492   shlibpath_overrides_runpath=no
 4493   # This implies no fast_install, which is unacceptable.
 4494   # Some rework will be needed to allow for fast_install
 4495   # before this can be enabled.
 4496   hardcode_into_libs=yes
 4497 
 4498   # We used to test for /lib/ld.so.1 and disable shared libraries on
 4499   # powerpc, because MkLinux only supported shared libraries with the
 4500   # GNU dynamic linker.  Since this was broken with cross compilers,
 4501   # most powerpc-linux boxes support dynamic linking these days and
 4502   # people can always --disable-shared, the test was removed, and we
 4503   # assume the GNU/Linux dynamic linker is in use.
 4504   dynamic_linker='GNU/Linux ld.so'
 4505   ;;
 4506 
 4507 netbsd*)
 4508   version_type=sunos
 4509   need_lib_prefix=no
 4510   need_version=no
 4511   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
 4512     library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 4513     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 4514     dynamic_linker='NetBSD (a.out) ld.so'
 4515   else
 4516     library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
 4517     soname_spec='${libname}${release}.so$major'
 4518     dynamic_linker='NetBSD ld.elf_so'
 4519   fi
 4520   shlibpath_var=LD_LIBRARY_PATH
 4521   shlibpath_overrides_runpath=yes
 4522   hardcode_into_libs=yes
 4523   ;;
 4524 
 4525 newsos6)
 4526   version_type=linux
 4527   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4528   shlibpath_var=LD_LIBRARY_PATH
 4529   shlibpath_overrides_runpath=yes
 4530   ;;
 4531 
 4532 openbsd*)
 4533   version_type=sunos
 4534   need_lib_prefix=no
 4535   need_version=no
 4536   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
 4537     case "$host_os" in
 4538     openbsd2.[89] | openbsd2.[89].*)
 4539       shlibpath_overrides_runpath=no
 4540       ;;
 4541     *)
 4542       shlibpath_overrides_runpath=yes
 4543       ;;
 4544     esac
 4545   else
 4546     shlibpath_overrides_runpath=yes
 4547   fi
 4548   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 4549   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
 4550   shlibpath_var=LD_LIBRARY_PATH
 4551   ;;
 4552 
 4553 os2*)
 4554   libname_spec='$name'
 4555   need_lib_prefix=no
 4556   library_names_spec='$libname.dll $libname.a'
 4557   dynamic_linker='OS/2 ld.exe'
 4558   shlibpath_var=LIBPATH
 4559   ;;
 4560 
 4561 osf3* | osf4* | osf5*)
 4562   version_type=osf
 4563   need_version=no
 4564   soname_spec='${libname}${release}.so$major'
 4565   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4566   shlibpath_var=LD_LIBRARY_PATH
 4567   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
 4568   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
 4569   hardcode_into_libs=yes
 4570   ;;
 4571 
 4572 sco3.2v5*)
 4573   version_type=osf
 4574   soname_spec='${libname}${release}.so$major'
 4575   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4576   shlibpath_var=LD_LIBRARY_PATH
 4577   ;;
 4578 
 4579 solaris*)
 4580   version_type=linux
 4581   need_lib_prefix=no
 4582   need_version=no
 4583   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4584   soname_spec='${libname}${release}.so$major'
 4585   shlibpath_var=LD_LIBRARY_PATH
 4586   shlibpath_overrides_runpath=yes
 4587   hardcode_into_libs=yes
 4588   # ldd complains unless libraries are executable
 4589   postinstall_cmds='chmod +x $lib'
 4590   ;;
 4591 
 4592 sunos4*)
 4593   version_type=sunos
 4594   library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
 4595   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
 4596   shlibpath_var=LD_LIBRARY_PATH
 4597   shlibpath_overrides_runpath=yes
 4598   if test "$with_gnu_ld" = yes; then
 4599     need_lib_prefix=no
 4600   fi
 4601   need_version=yes
 4602   ;;
 4603 
 4604 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
 4605   version_type=linux
 4606   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4607   soname_spec='${libname}${release}.so$major'
 4608   shlibpath_var=LD_LIBRARY_PATH
 4609   case $host_vendor in
 4610     sni)
 4611       shlibpath_overrides_runpath=no
 4612       need_lib_prefix=no
 4613       export_dynamic_flag_spec='${wl}-Blargedynsym'
 4614       runpath_var=LD_RUN_PATH
 4615       ;;
 4616     siemens)
 4617       need_lib_prefix=no
 4618       ;;
 4619     motorola)
 4620       need_lib_prefix=no
 4621       need_version=no
 4622       shlibpath_overrides_runpath=no
 4623       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
 4624       ;;
 4625   esac
 4626   ;;
 4627 
 4628 uts4*)
 4629   version_type=linux
 4630   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4631   soname_spec='${libname}${release}.so$major'
 4632   shlibpath_var=LD_LIBRARY_PATH
 4633   ;;
 4634 
 4635 dgux*)
 4636   version_type=linux
 4637   need_lib_prefix=no
 4638   need_version=no
 4639   library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
 4640   soname_spec='${libname}${release}.so$major'
 4641   shlibpath_var=LD_LIBRARY_PATH
 4642   ;;
 4643 
 4644 sysv4*MP*)
 4645   if test -d /usr/nec ;then
 4646     version_type=linux
 4647     library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
 4648     soname_spec='$libname.so.$major'
 4649     shlibpath_var=LD_LIBRARY_PATH
 4650   fi
 4651   ;;
 4652 
 4653 *)
 4654   dynamic_linker=no
 4655   ;;
 4656 esac
 4657 echo "$ac_t""$dynamic_linker" 1>&6
 4658 test "$dynamic_linker" = no && can_build_shared=no
 4659 
 4660 # Report the final consequences.
 4661 echo $ac_n "checking if libtool supports shared libraries""... $ac_c" 1>&6
 4662 echo "configure:4663: checking if libtool supports shared libraries" >&5
 4663 echo "$ac_t""$can_build_shared" 1>&6
 4664 
 4665 echo $ac_n "checking whether to build shared libraries""... $ac_c" 1>&6
 4666 echo "configure:4667: checking whether to build shared libraries" >&5
 4667 test "$can_build_shared" = "no" && enable_shared=no
 4668 
 4669 # On AIX, shared libraries and static libraries use the same namespace, and
 4670 # are all built from PIC.
 4671 case "$host_os" in
 4672 aix3*)
 4673   test "$enable_shared" = yes && enable_static=no
 4674   if test -n "$RANLIB"; then
 4675     archive_cmds="$archive_cmds~\$RANLIB \$lib"
 4676     postinstall_cmds='$RANLIB $lib'
 4677   fi
 4678   ;;
 4679 
 4680 aix4*)
 4681   if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
 4682     test "$enable_shared" = yes && enable_static=no
 4683   fi
 4684   ;;
 4685 esac
 4686 echo "$ac_t""$enable_shared" 1>&6
 4687 
 4688 echo $ac_n "checking whether to build static libraries""... $ac_c" 1>&6
 4689 echo "configure:4690: checking whether to build static libraries" >&5
 4690 # Make sure either enable_shared or enable_static is yes.
 4691 test "$enable_shared" = yes || enable_static=yes
 4692 echo "$ac_t""$enable_static" 1>&6
 4693 
 4694 if test "$hardcode_action" = relink; then
 4695   # Fast installation is not supported
 4696   enable_fast_install=no
 4697 elif test "$shlibpath_overrides_runpath" = yes ||
 4698      test "$enable_shared" = no; then
 4699   # Fast installation is not necessary
 4700   enable_fast_install=needless
 4701 fi
 4702 
 4703 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
 4704 if test "$GCC" = yes; then
 4705   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
 4706 fi
 4707 
 4708 if test "x$enable_dlopen" != xyes; then
 4709   enable_dlopen=unknown
 4710   enable_dlopen_self=unknown
 4711   enable_dlopen_self_static=unknown
 4712 else
 4713   lt_cv_dlopen=no
 4714   lt_cv_dlopen_libs=
 4715 
 4716   case $host_os in
 4717   beos*)
 4718     lt_cv_dlopen="load_add_on"
 4719     lt_cv_dlopen_libs=
 4720     lt_cv_dlopen_self=yes
 4721     ;;
 4722 
 4723   cygwin* | mingw* | pw32*)
 4724     lt_cv_dlopen="LoadLibrary"
 4725     lt_cv_dlopen_libs=
 4726    ;;
 4727 
 4728   *)
 4729     echo $ac_n "checking for shl_load""... $ac_c" 1>&6
 4730 echo "configure:4731: checking for shl_load" >&5
 4731 if eval "test \"`echo '$''{'ac_cv_func_shl_load'+set}'`\" = set"; then
 4732   echo $ac_n "(cached) $ac_c" 1>&6
 4733 else
 4734   cat > conftest.$ac_ext <<EOF
 4735 #line 4736 "configure"
 4736 #include "confdefs.h"
 4737 /* System header to define __stub macros and hopefully few prototypes,
 4738     which can conflict with char shl_load(); below.  */
 4739 #include <assert.h>
 4740 /* Override any gcc2 internal prototype to avoid an error.  */
 4741 /* We use char because int might match the return type of a gcc2
 4742     builtin and then its argument prototype would still apply.  */
 4743 char shl_load();
 4744 
 4745 int main() {
 4746 
 4747 /* The GNU C library defines this for functions which it implements
 4748     to always fail with ENOSYS.  Some functions are actually named
 4749     something starting with __ and the normal name is an alias.  */
 4750 #if defined (__stub_shl_load) || defined (__stub___shl_load)
 4751 choke me
 4752 #else
 4753 shl_load();
 4754 #endif
 4755 
 4756 ; return 0; }
 4757 EOF
 4758 if { (eval echo configure:4759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4759   rm -rf conftest*
 4760   eval "ac_cv_func_shl_load=yes"
 4761 else
 4762   echo "configure: failed program was:" >&5
 4763   cat conftest.$ac_ext >&5
 4764   rm -rf conftest*
 4765   eval "ac_cv_func_shl_load=no"
 4766 fi
 4767 rm -f conftest*
 4768 fi
 4769 
 4770 if eval "test \"`echo '$ac_cv_func_'shl_load`\" = yes"; then
 4771   echo "$ac_t""yes" 1>&6
 4772   lt_cv_dlopen="shl_load"
 4773 else
 4774   echo "$ac_t""no" 1>&6
 4775 echo $ac_n "checking for shl_load in -ldld""... $ac_c" 1>&6
 4776 echo "configure:4777: checking for shl_load in -ldld" >&5
 4777 ac_lib_var=`echo dld'_'shl_load | sed 'y%./+-%__p_%'`
 4778 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 4779   echo $ac_n "(cached) $ac_c" 1>&6
 4780 else
 4781   ac_save_LIBS="$LIBS"
 4782 LIBS="-ldld  $LIBS"
 4783 cat > conftest.$ac_ext <<EOF
 4784 #line 4785 "configure"
 4785 #include "confdefs.h"
 4786 /* Override any gcc2 internal prototype to avoid an error.  */
 4787 /* We use char because int might match the return type of a gcc2
 4788     builtin and then its argument prototype would still apply.  */
 4789 char shl_load();
 4790 
 4791 int main() {
 4792 shl_load()
 4793 ; return 0; }
 4794 EOF
 4795 if { (eval echo configure:4796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4796   rm -rf conftest*
 4797   eval "ac_cv_lib_$ac_lib_var=yes"
 4798 else
 4799   echo "configure: failed program was:" >&5
 4800   cat conftest.$ac_ext >&5
 4801   rm -rf conftest*
 4802   eval "ac_cv_lib_$ac_lib_var=no"
 4803 fi
 4804 rm -f conftest*
 4805 LIBS="$ac_save_LIBS"
 4806 
 4807 fi
 4808 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 4809   echo "$ac_t""yes" 1>&6
 4810   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
 4811 else
 4812   echo "$ac_t""no" 1>&6
 4813 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
 4814 echo "configure:4815: checking for dlopen" >&5
 4815 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
 4816   echo $ac_n "(cached) $ac_c" 1>&6
 4817 else
 4818   cat > conftest.$ac_ext <<EOF
 4819 #line 4820 "configure"
 4820 #include "confdefs.h"
 4821 /* System header to define __stub macros and hopefully few prototypes,
 4822     which can conflict with char dlopen(); below.  */
 4823 #include <assert.h>
 4824 /* Override any gcc2 internal prototype to avoid an error.  */
 4825 /* We use char because int might match the return type of a gcc2
 4826     builtin and then its argument prototype would still apply.  */
 4827 char dlopen();
 4828 
 4829 int main() {
 4830 
 4831 /* The GNU C library defines this for functions which it implements
 4832     to always fail with ENOSYS.  Some functions are actually named
 4833     something starting with __ and the normal name is an alias.  */
 4834 #if defined (__stub_dlopen) || defined (__stub___dlopen)
 4835 choke me
 4836 #else
 4837 dlopen();
 4838 #endif
 4839 
 4840 ; return 0; }
 4841 EOF
 4842 if { (eval echo configure:4843: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4843   rm -rf conftest*
 4844   eval "ac_cv_func_dlopen=yes"
 4845 else
 4846   echo "configure: failed program was:" >&5
 4847   cat conftest.$ac_ext >&5
 4848   rm -rf conftest*
 4849   eval "ac_cv_func_dlopen=no"
 4850 fi
 4851 rm -f conftest*
 4852 fi
 4853 
 4854 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
 4855   echo "$ac_t""yes" 1>&6
 4856   lt_cv_dlopen="dlopen"
 4857 else
 4858   echo "$ac_t""no" 1>&6
 4859 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
 4860 echo "configure:4861: checking for dlopen in -ldl" >&5
 4861 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
 4862 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 4863   echo $ac_n "(cached) $ac_c" 1>&6
 4864 else
 4865   ac_save_LIBS="$LIBS"
 4866 LIBS="-ldl  $LIBS"
 4867 cat > conftest.$ac_ext <<EOF
 4868 #line 4869 "configure"
 4869 #include "confdefs.h"
 4870 /* Override any gcc2 internal prototype to avoid an error.  */
 4871 /* We use char because int might match the return type of a gcc2
 4872     builtin and then its argument prototype would still apply.  */
 4873 char dlopen();
 4874 
 4875 int main() {
 4876 dlopen()
 4877 ; return 0; }
 4878 EOF
 4879 if { (eval echo configure:4880: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4880   rm -rf conftest*
 4881   eval "ac_cv_lib_$ac_lib_var=yes"
 4882 else
 4883   echo "configure: failed program was:" >&5
 4884   cat conftest.$ac_ext >&5
 4885   rm -rf conftest*
 4886   eval "ac_cv_lib_$ac_lib_var=no"
 4887 fi
 4888 rm -f conftest*
 4889 LIBS="$ac_save_LIBS"
 4890 
 4891 fi
 4892 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 4893   echo "$ac_t""yes" 1>&6
 4894   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
 4895 else
 4896   echo "$ac_t""no" 1>&6
 4897 echo $ac_n "checking for dlopen in -lsvld""... $ac_c" 1>&6
 4898 echo "configure:4899: checking for dlopen in -lsvld" >&5
 4899 ac_lib_var=`echo svld'_'dlopen | sed 'y%./+-%__p_%'`
 4900 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 4901   echo $ac_n "(cached) $ac_c" 1>&6
 4902 else
 4903   ac_save_LIBS="$LIBS"
 4904 LIBS="-lsvld  $LIBS"
 4905 cat > conftest.$ac_ext <<EOF
 4906 #line 4907 "configure"
 4907 #include "confdefs.h"
 4908 /* Override any gcc2 internal prototype to avoid an error.  */
 4909 /* We use char because int might match the return type of a gcc2
 4910     builtin and then its argument prototype would still apply.  */
 4911 char dlopen();
 4912 
 4913 int main() {
 4914 dlopen()
 4915 ; return 0; }
 4916 EOF
 4917 if { (eval echo configure:4918: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4918   rm -rf conftest*
 4919   eval "ac_cv_lib_$ac_lib_var=yes"
 4920 else
 4921   echo "configure: failed program was:" >&5
 4922   cat conftest.$ac_ext >&5
 4923   rm -rf conftest*
 4924   eval "ac_cv_lib_$ac_lib_var=no"
 4925 fi
 4926 rm -f conftest*
 4927 LIBS="$ac_save_LIBS"
 4928 
 4929 fi
 4930 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
 4931   echo "$ac_t""yes" 1>&6
 4932   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
 4933 else
 4934   echo "$ac_t""no" 1>&6
 4935 echo $ac_n "checking for dld_link in -ldld""... $ac_c" 1>&6
 4936 echo "configure:4937: checking for dld_link in -ldld" >&5
 4937 ac_lib_var=`echo dld'_'dld_link | sed 'y%./+-%__p_%'`
 4938 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
 4939   echo $ac_n "(cached) $ac_c" 1>&6
 4940 else
 4941   ac_save_LIBS="$LIBS"
 4942 LIBS="-ldld  $LIBS"
 4943 cat > conftest.$ac_ext <<EOF
 4944 #line 4945 "configure"
 4945 #include "confdefs.h"
 4946 /* Override any gcc2 internal prototype to avoid an error.  */
 4947 /* We use char because int might match the return type of a gcc2
 4948     builtin and then its argument prototype would still apply.  */
 4949 char dld_link();
 4950 
 4951 int main() {
 4952 dld_link()
 4953 ; return 0; }
 4954 EOF
 4955 if { (eval echo configure:4956: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
 4956   rm -rf conftest*
 4957   eval "ac_cv_lib_$ac_lib_var=yes"
 4958 else
 4959   echo "configure: failed program was:" >&5
 4960   cat conftest.$ac_ext >&5
 4961   rm -rf conftest*
 4962   eval "ac_cv_lib_$ac_lib_var=no"
 4963 fi
 4964 rm -f conftest*
 4965 LIBS="$ac_save_LIBS"
 4966