source: trunk/Cbc/configure @ 317

Last change on this file since 317 was 317, checked in by andreasw, 14 years ago

Several fixes to make autotools work on Cygwin

  • Property svn:executable set to *
File size: 739.7 KB
Line 
1#! /bin/sh
2# From configure.ac 0.9.
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Cbc 0.1.
5#
6# Report bugs to <coin-cbc@list.coin-or.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12#
13# Copyright 2006 International Business Machines and others.
14# All Rights Reserved.
15# This file is part of the open source package Coin which is distributed
16# under the Common Public License.
17## --------------------- ##
18## M4sh Initialization.  ##
19## --------------------- ##
20
21# Be Bourne compatible
22if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23  emulate sh
24  NULLCMD=:
25  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26  # is contrary to our usage.  Disable this feature.
27  alias -g '${1+"$@"}'='"$@"'
28elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
29  set -o posix
30fi
31DUALCASE=1; export DUALCASE # for MKS sh
32
33# Support unset when possible.
34if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
35  as_unset=unset
36else
37  as_unset=false
38fi
39
40
41# Work around bugs in pre-3.0 UWIN ksh.
42$as_unset ENV MAIL MAILPATH
43PS1='$ '
44PS2='> '
45PS4='+ '
46
47# NLS nuisances.
48for as_var in \
49  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
50  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
51  LC_TELEPHONE LC_TIME
52do
53  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
54    eval $as_var=C; export $as_var
55  else
56    $as_unset $as_var
57  fi
58done
59
60# Required to use basename.
61if expr a : '\(a\)' >/dev/null 2>&1; then
62  as_expr=expr
63else
64  as_expr=false
65fi
66
67if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
68  as_basename=basename
69else
70  as_basename=false
71fi
72
73
74# Name of the executable.
75as_me=`$as_basename "$0" ||
76$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
77         X"$0" : 'X\(//\)$' \| \
78         X"$0" : 'X\(/\)$' \| \
79         .     : '\(.\)' 2>/dev/null ||
80echo X/"$0" |
81    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
82          /^X\/\(\/\/\)$/{ s//\1/; q; }
83          /^X\/\(\/\).*/{ s//\1/; q; }
84          s/.*/./; q'`
85
86
87# PATH needs CR, and LINENO needs CR and PATH.
88# Avoid depending upon Character Ranges.
89as_cr_letters='abcdefghijklmnopqrstuvwxyz'
90as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
91as_cr_Letters=$as_cr_letters$as_cr_LETTERS
92as_cr_digits='0123456789'
93as_cr_alnum=$as_cr_Letters$as_cr_digits
94
95# The user is always right.
96if test "${PATH_SEPARATOR+set}" != set; then
97  echo "#! /bin/sh" >conf$$.sh
98  echo  "exit 0"   >>conf$$.sh
99  chmod +x conf$$.sh
100  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
101    PATH_SEPARATOR=';'
102  else
103    PATH_SEPARATOR=:
104  fi
105  rm -f conf$$.sh
106fi
107
108
109  as_lineno_1=$LINENO
110  as_lineno_2=$LINENO
111  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
112  test "x$as_lineno_1" != "x$as_lineno_2" &&
113  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
114  # Find who we are.  Look in the path if we contain no path at all
115  # relative or not.
116  case $0 in
117    *[\\/]* ) as_myself=$0 ;;
118    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
119for as_dir in $PATH
120do
121  IFS=$as_save_IFS
122  test -z "$as_dir" && as_dir=.
123  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
124done
125
126       ;;
127  esac
128  # We did not find ourselves, most probably we were run as `sh COMMAND'
129  # in which case we are not to be found in the path.
130  if test "x$as_myself" = x; then
131    as_myself=$0
132  fi
133  if test ! -f "$as_myself"; then
134    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
135   { (exit 1); exit 1; }; }
136  fi
137  case $CONFIG_SHELL in
138  '')
139    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
140for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
141do
142  IFS=$as_save_IFS
143  test -z "$as_dir" && as_dir=.
144  for as_base in sh bash ksh sh5; do
145         case $as_dir in
146         /*)
147           if ("$as_dir/$as_base" -c '
148  as_lineno_1=$LINENO
149  as_lineno_2=$LINENO
150  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
151  test "x$as_lineno_1" != "x$as_lineno_2" &&
152  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
153             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
154             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
155             CONFIG_SHELL=$as_dir/$as_base
156             export CONFIG_SHELL
157             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
158           fi;;
159         esac
160       done
161done
162;;
163  esac
164
165  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
166  # uniformly replaced by the line number.  The first 'sed' inserts a
167  # line-number line before each line; the second 'sed' does the real
168  # work.  The second script uses 'N' to pair each line-number line
169  # with the numbered line, and appends trailing '-' during
170  # substitution so that $LINENO is not a special case at line end.
171  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
172  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
173  sed '=' <$as_myself |
174    sed '
175      N
176      s,$,-,
177      : loop
178      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
179      t loop
180      s,-$,,
181      s,^['$as_cr_digits']*\n,,
182    ' >$as_me.lineno &&
183  chmod +x $as_me.lineno ||
184    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
185   { (exit 1); exit 1; }; }
186
187  # Don't try to exec as it changes $[0], causing all sort of problems
188  # (the dirname of $[0] is not the place where we might find the
189  # original and so on.  Autoconf is especially sensible to this).
190  . ./$as_me.lineno
191  # Exit status is that of the last command.
192  exit
193}
194
195
196case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
197  *c*,-n*) ECHO_N= ECHO_C='
198' ECHO_T='      ' ;;
199  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
200  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
201esac
202
203if expr a : '\(a\)' >/dev/null 2>&1; then
204  as_expr=expr
205else
206  as_expr=false
207fi
208
209rm -f conf$$ conf$$.exe conf$$.file
210echo >conf$$.file
211if ln -s conf$$.file conf$$ 2>/dev/null; then
212  # We could just check for DJGPP; but this test a) works b) is more generic
213  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
214  if test -f conf$$.exe; then
215    # Don't use ln at all; we don't have any links
216    as_ln_s='cp -p'
217  else
218    as_ln_s='ln -s'
219  fi
220elif ln conf$$.file conf$$ 2>/dev/null; then
221  as_ln_s=ln
222else
223  as_ln_s='cp -p'
224fi
225rm -f conf$$ conf$$.exe conf$$.file
226
227if mkdir -p . 2>/dev/null; then
228  as_mkdir_p=:
229else
230  test -d ./-p && rmdir ./-p
231  as_mkdir_p=false
232fi
233
234as_executable_p="test -f"
235
236# Sed expression to map a string onto a valid CPP name.
237as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
238
239# Sed expression to map a string onto a valid variable name.
240as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
241
242
243# IFS
244# We need space, tab and new line, in precisely that order.
245as_nl='
246'
247IFS="   $as_nl"
248
249# CDPATH.
250$as_unset CDPATH
251
252
253
254# Check that we are running under the correct shell.
255SHELL=${CONFIG_SHELL-/bin/sh}
256
257case X$ECHO in
258X*--fallback-echo)
259  # Remove one level of quotation (which was required for Make).
260  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
261  ;;
262esac
263
264echo=${ECHO-echo}
265if test "X$1" = X--no-reexec; then
266  # Discard the --no-reexec flag, and continue.
267  shift
268elif test "X$1" = X--fallback-echo; then
269  # Avoid inline document here, it may be left over
270  :
271elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
272  # Yippee, $echo works!
273  :
274else
275  # Restart under the correct shell.
276  exec $SHELL "$0" --no-reexec ${1+"$@"}
277fi
278
279if test "X$1" = X--fallback-echo; then
280  # used as fallback echo
281  shift
282  cat <<EOF
283$*
284EOF
285  exit 0
286fi
287
288# The HP-UX ksh and POSIX shell print the target directory to stdout
289# if CDPATH is set.
290(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
291
292if test -z "$ECHO"; then
293if test "X${echo_test_string+set}" != Xset; then
294# find a string as large as possible, as long as the shell can cope with it
295  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
296    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
297    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
298       echo_test_string=`eval $cmd` &&
299       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
300    then
301      break
302    fi
303  done
304fi
305
306if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
307   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
308   test "X$echo_testing_string" = "X$echo_test_string"; then
309  :
310else
311  # The Solaris, AIX, and Digital Unix default echo programs unquote
312  # backslashes.  This makes it impossible to quote backslashes using
313  #   echo "$something" | sed 's/\\/\\\\/g'
314  #
315  # So, first we look for a working echo in the user's PATH.
316
317  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
318  for dir in $PATH /usr/ucb; do
319    IFS="$lt_save_ifs"
320    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
321       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
322       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
323       test "X$echo_testing_string" = "X$echo_test_string"; then
324      echo="$dir/echo"
325      break
326    fi
327  done
328  IFS="$lt_save_ifs"
329
330  if test "X$echo" = Xecho; then
331    # We didn't find a better echo, so look for alternatives.
332    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
333       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
334       test "X$echo_testing_string" = "X$echo_test_string"; then
335      # This shell has a builtin print -r that does the trick.
336      echo='print -r'
337    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
338         test "X$CONFIG_SHELL" != X/bin/ksh; then
339      # If we have ksh, try running configure again with it.
340      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
341      export ORIGINAL_CONFIG_SHELL
342      CONFIG_SHELL=/bin/ksh
343      export CONFIG_SHELL
344      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
345    else
346      # Try using printf.
347      echo='printf %s\n'
348      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
349         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
350         test "X$echo_testing_string" = "X$echo_test_string"; then
351        # Cool, printf works
352        :
353      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354           test "X$echo_testing_string" = 'X\t' &&
355           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356           test "X$echo_testing_string" = "X$echo_test_string"; then
357        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
358        export CONFIG_SHELL
359        SHELL="$CONFIG_SHELL"
360        export SHELL
361        echo="$CONFIG_SHELL $0 --fallback-echo"
362      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
363           test "X$echo_testing_string" = 'X\t' &&
364           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
365           test "X$echo_testing_string" = "X$echo_test_string"; then
366        echo="$CONFIG_SHELL $0 --fallback-echo"
367      else
368        # maybe with a smaller string...
369        prev=:
370
371        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
372          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
373          then
374            break
375          fi
376          prev="$cmd"
377        done
378
379        if test "$prev" != 'sed 50q "$0"'; then
380          echo_test_string=`eval $prev`
381          export echo_test_string
382          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
383        else
384          # Oops.  We lost completely, so just stick with echo.
385          echo=echo
386        fi
387      fi
388    fi
389  fi
390fi
391fi
392
393# Copy echo and quote the copy suitably for passing to libtool from
394# the Makefile, instead of quoting the original, which is used later.
395ECHO=$echo
396if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
397   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
398fi
399
400
401
402
403tagnames=${tagnames+${tagnames},}CXX
404
405tagnames=${tagnames+${tagnames},}F77
406
407# Name of the host.
408# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
409# so uname gets run too.
410ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
411
412exec 6>&1
413
414#
415# Initializations.
416#
417ac_default_prefix=/usr/local
418ac_config_libobj_dir=.
419cross_compiling=no
420subdirs=
421MFLAGS=
422MAKEFLAGS=
423SHELL=${CONFIG_SHELL-/bin/sh}
424
425# Maximum number of lines to put in a shell here document.
426# This variable seems obsolete.  It should probably be removed, and
427# only ac_max_sed_lines should be used.
428: ${ac_max_here_lines=38}
429
430# Identity of this package.
431PACKAGE_NAME='Cbc'
432PACKAGE_TARNAME='cbc'
433PACKAGE_VERSION='0.1'
434PACKAGE_STRING='Cbc 0.1'
435PACKAGE_BUGREPORT='coin-cbc@list.coin-or.org'
436
437ac_unique_file="src/CbcTree.hpp"
438ac_default_prefix=`pwd`
439# Factoring default headers for most tests.
440ac_includes_default="\
441#include <stdio.h>
442#if HAVE_SYS_TYPES_H
443# include <sys/types.h>
444#endif
445#if HAVE_SYS_STAT_H
446# include <sys/stat.h>
447#endif
448#if STDC_HEADERS
449# include <stdlib.h>
450# include <stddef.h>
451#else
452# if HAVE_STDLIB_H
453#  include <stdlib.h>
454# endif
455#endif
456#if HAVE_STRING_H
457# if !STDC_HEADERS && HAVE_MEMORY_H
458#  include <memory.h>
459# endif
460# include <string.h>
461#endif
462#if HAVE_STRINGS_H
463# include <strings.h>
464#endif
465#if HAVE_INTTYPES_H
466# include <inttypes.h>
467#else
468# if HAVE_STDINT_H
469#  include <stdint.h>
470# endif
471#endif
472#if HAVE_UNISTD_H
473# include <unistd.h>
474#endif"
475
476ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os ADDLIBS ALWAYS_FALSE_TRUE ALWAYS_FALSE_FALSE COIN_DEBUG_TRUE COIN_DEBUG_FALSE CXXDEFS CXX CXXFLAGS LDFLAGS CPPFLAGS ac_ct_CXX EXEEXT OBJEXT EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT LIBTOOLM4 have_autoconf have_automake BUILDTOOLSDIR AUX_DIR HAVE_EXTERNALS_TRUE HAVE_EXTERNALS_FALSE MAINTAINER_SMALL_TRUE MAINTAINER_SMALL_FALSE CC CFLAGS ac_ct_CC CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE host host_cpu host_vendor host_os LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL pkg_lib_dir pkg_include_dir pkg_bin_dir CBCSRCDIR CBCOBJDIR COIN_HAS_CBC_TRUE COIN_HAS_CBC_FALSE CGLSRCDIR CGLOBJDIR COIN_HAS_CGL_TRUE COIN_HAS_CGL_FALSE CLPSRCDIR CLPOBJDIR COIN_HAS_CLP_TRUE COIN_HAS_CLP_FALSE COINUTILSSRCDIR COINUTILSOBJDIR COIN_HAS_COINUTILS_TRUE COIN_HAS_COINUTILS_FALSE DYLPSRCDIR DYLPOBJDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE SYMSRCDIR SYMOBJDIR COIN_HAS_SYM_TRUE COIN_HAS_SYM_FALSE VOLSRCDIR VOLOBJDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPXINCDIR CPXLIBDIR COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIBDIR COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIBDIR COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIBDIR COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIBDIR COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIBDIR COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIBDIR COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE LIBOBJS LTLIBOBJS'
477ac_subst_files=''
478
479# Initialize some variables set by options.
480ac_init_help=
481ac_init_version=false
482# The variables have the same names as the options, with
483# dashes changed to underlines.
484cache_file=/dev/null
485exec_prefix=NONE
486no_create=
487no_recursion=
488prefix=NONE
489program_prefix=NONE
490program_suffix=NONE
491program_transform_name=s,x,x,
492silent=
493site=
494srcdir=
495verbose=
496x_includes=NONE
497x_libraries=NONE
498
499# Installation directory options.
500# These are left unexpanded so users can "make install exec_prefix=/foo"
501# and all the variables that are supposed to be based on exec_prefix
502# by default will actually change.
503# Use braces instead of parens because sh, perl, etc. also accept them.
504bindir='${exec_prefix}/bin'
505sbindir='${exec_prefix}/sbin'
506libexecdir='${exec_prefix}/libexec'
507datadir='${prefix}/share'
508sysconfdir='${prefix}/etc'
509sharedstatedir='${prefix}/com'
510localstatedir='${prefix}/var'
511libdir='${exec_prefix}/lib'
512includedir='${prefix}/include'
513oldincludedir='/usr/include'
514infodir='${prefix}/info'
515mandir='${prefix}/man'
516
517ac_prev=
518for ac_option
519do
520  # If the previous option needs an argument, assign it.
521  if test -n "$ac_prev"; then
522    eval "$ac_prev=\$ac_option"
523    ac_prev=
524    continue
525  fi
526
527  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529  # Accept the important Cygnus configure options, so we can diagnose typos.
530
531  case $ac_option in
532
533  -bindir | --bindir | --bindi | --bind | --bin | --bi)
534    ac_prev=bindir ;;
535  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536    bindir=$ac_optarg ;;
537
538  -build | --build | --buil | --bui | --bu)
539    ac_prev=build_alias ;;
540  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541    build_alias=$ac_optarg ;;
542
543  -cache-file | --cache-file | --cache-fil | --cache-fi \
544  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545    ac_prev=cache_file ;;
546  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548    cache_file=$ac_optarg ;;
549
550  --config-cache | -C)
551    cache_file=config.cache ;;
552
553  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554    ac_prev=datadir ;;
555  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556  | --da=*)
557    datadir=$ac_optarg ;;
558
559  -disable-* | --disable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    eval "enable_$ac_feature=no" ;;
567
568  -enable-* | --enable-*)
569    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570    # Reject names that are not valid shell variable names.
571    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573   { (exit 1); exit 1; }; }
574    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575    case $ac_option in
576      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577      *) ac_optarg=yes ;;
578    esac
579    eval "enable_$ac_feature='$ac_optarg'" ;;
580
581  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583  | --exec | --exe | --ex)
584    ac_prev=exec_prefix ;;
585  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587  | --exec=* | --exe=* | --ex=*)
588    exec_prefix=$ac_optarg ;;
589
590  -gas | --gas | --ga | --g)
591    # Obsolete; use --with-gas.
592    with_gas=yes ;;
593
594  -help | --help | --hel | --he | -h)
595    ac_init_help=long ;;
596  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597    ac_init_help=recursive ;;
598  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599    ac_init_help=short ;;
600
601  -host | --host | --hos | --ho)
602    ac_prev=host_alias ;;
603  -host=* | --host=* | --hos=* | --ho=*)
604    host_alias=$ac_optarg ;;
605
606  -includedir | --includedir | --includedi | --included | --include \
607  | --includ | --inclu | --incl | --inc)
608    ac_prev=includedir ;;
609  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610  | --includ=* | --inclu=* | --incl=* | --inc=*)
611    includedir=$ac_optarg ;;
612
613  -infodir | --infodir | --infodi | --infod | --info | --inf)
614    ac_prev=infodir ;;
615  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616    infodir=$ac_optarg ;;
617
618  -libdir | --libdir | --libdi | --libd)
619    ac_prev=libdir ;;
620  -libdir=* | --libdir=* | --libdi=* | --libd=*)
621    libdir=$ac_optarg ;;
622
623  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624  | --libexe | --libex | --libe)
625    ac_prev=libexecdir ;;
626  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627  | --libexe=* | --libex=* | --libe=*)
628    libexecdir=$ac_optarg ;;
629
630  -localstatedir | --localstatedir | --localstatedi | --localstated \
631  | --localstate | --localstat | --localsta | --localst \
632  | --locals | --local | --loca | --loc | --lo)
633    ac_prev=localstatedir ;;
634  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637    localstatedir=$ac_optarg ;;
638
639  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640    ac_prev=mandir ;;
641  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642    mandir=$ac_optarg ;;
643
644  -nfp | --nfp | --nf)
645    # Obsolete; use --without-fp.
646    with_fp=no ;;
647
648  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649  | --no-cr | --no-c | -n)
650    no_create=yes ;;
651
652  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654    no_recursion=yes ;;
655
656  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658  | --oldin | --oldi | --old | --ol | --o)
659    ac_prev=oldincludedir ;;
660  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663    oldincludedir=$ac_optarg ;;
664
665  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666    ac_prev=prefix ;;
667  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668    prefix=$ac_optarg ;;
669
670  -program-prefix | --program-prefix | --program-prefi | --program-pref \
671  | --program-pre | --program-pr | --program-p)
672    ac_prev=program_prefix ;;
673  -program-prefix=* | --program-prefix=* | --program-prefi=* \
674  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675    program_prefix=$ac_optarg ;;
676
677  -program-suffix | --program-suffix | --program-suffi | --program-suff \
678  | --program-suf | --program-su | --program-s)
679    ac_prev=program_suffix ;;
680  -program-suffix=* | --program-suffix=* | --program-suffi=* \
681  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682    program_suffix=$ac_optarg ;;
683
684  -program-transform-name | --program-transform-name \
685  | --program-transform-nam | --program-transform-na \
686  | --program-transform-n | --program-transform- \
687  | --program-transform | --program-transfor \
688  | --program-transfo | --program-transf \
689  | --program-trans | --program-tran \
690  | --progr-tra | --program-tr | --program-t)
691    ac_prev=program_transform_name ;;
692  -program-transform-name=* | --program-transform-name=* \
693  | --program-transform-nam=* | --program-transform-na=* \
694  | --program-transform-n=* | --program-transform-=* \
695  | --program-transform=* | --program-transfor=* \
696  | --program-transfo=* | --program-transf=* \
697  | --program-trans=* | --program-tran=* \
698  | --progr-tra=* | --program-tr=* | --program-t=*)
699    program_transform_name=$ac_optarg ;;
700
701  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702  | -silent | --silent | --silen | --sile | --sil)
703    silent=yes ;;
704
705  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706    ac_prev=sbindir ;;
707  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708  | --sbi=* | --sb=*)
709    sbindir=$ac_optarg ;;
710
711  -sharedstatedir | --sharedstatedir | --sharedstatedi \
712  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713  | --sharedst | --shareds | --shared | --share | --shar \
714  | --sha | --sh)
715    ac_prev=sharedstatedir ;;
716  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719  | --sha=* | --sh=*)
720    sharedstatedir=$ac_optarg ;;
721
722  -site | --site | --sit)
723    ac_prev=site ;;
724  -site=* | --site=* | --sit=*)
725    site=$ac_optarg ;;
726
727  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728    ac_prev=srcdir ;;
729  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730    srcdir=$ac_optarg ;;
731
732  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733  | --syscon | --sysco | --sysc | --sys | --sy)
734    ac_prev=sysconfdir ;;
735  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737    sysconfdir=$ac_optarg ;;
738
739  -target | --target | --targe | --targ | --tar | --ta | --t)
740    ac_prev=target_alias ;;
741  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742    target_alias=$ac_optarg ;;
743
744  -v | -verbose | --verbose | --verbos | --verbo | --verb)
745    verbose=yes ;;
746
747  -version | --version | --versio | --versi | --vers | -V)
748    ac_init_version=: ;;
749
750  -with-* | --with-*)
751    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752    # Reject names that are not valid shell variable names.
753    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754      { echo "$as_me: error: invalid package name: $ac_package" >&2
755   { (exit 1); exit 1; }; }
756    ac_package=`echo $ac_package| sed 's/-/_/g'`
757    case $ac_option in
758      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759      *) ac_optarg=yes ;;
760    esac
761    eval "with_$ac_package='$ac_optarg'" ;;
762
763  -without-* | --without-*)
764    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765    # Reject names that are not valid shell variable names.
766    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767      { echo "$as_me: error: invalid package name: $ac_package" >&2
768   { (exit 1); exit 1; }; }
769    ac_package=`echo $ac_package | sed 's/-/_/g'`
770    eval "with_$ac_package=no" ;;
771
772  --x)
773    # Obsolete; use --with-x.
774    with_x=yes ;;
775
776  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777  | --x-incl | --x-inc | --x-in | --x-i)
778    ac_prev=x_includes ;;
779  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781    x_includes=$ac_optarg ;;
782
783  -x-libraries | --x-libraries | --x-librarie | --x-librari \
784  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785    ac_prev=x_libraries ;;
786  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788    x_libraries=$ac_optarg ;;
789
790  -*) { echo "$as_me: error: unrecognized option: $ac_option
791Try \`$0 --help' for more information." >&2
792   { (exit 1); exit 1; }; }
793    ;;
794
795  *=*)
796    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797    # Reject names that are not valid shell variable names.
798    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800   { (exit 1); exit 1; }; }
801    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802    eval "$ac_envvar='$ac_optarg'"
803    export $ac_envvar ;;
804
805  *)
806    # FIXME: should be removed in autoconf 3.0.
807    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811    ;;
812
813  esac
814done
815
816if test -n "$ac_prev"; then
817  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818  { echo "$as_me: error: missing argument to $ac_option" >&2
819   { (exit 1); exit 1; }; }
820fi
821
822# Be sure to have absolute paths.
823for ac_var in exec_prefix prefix
824do
825  eval ac_val=$`echo $ac_var`
826  case $ac_val in
827    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829   { (exit 1); exit 1; }; };;
830  esac
831done
832
833# Be sure to have absolute paths.
834for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835              localstatedir libdir includedir oldincludedir infodir mandir
836do
837  eval ac_val=$`echo $ac_var`
838  case $ac_val in
839    [\\/$]* | ?:[\\/]* ) ;;
840    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841   { (exit 1); exit 1; }; };;
842  esac
843done
844
845# There might be people who depend on the old broken behavior: `$host'
846# used to hold the argument of --host etc.
847# FIXME: To remove some day.
848build=$build_alias
849host=$host_alias
850target=$target_alias
851
852# FIXME: To remove some day.
853if test "x$host_alias" != x; then
854  if test "x$build_alias" = x; then
855    cross_compiling=maybe
856    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857    If a cross compiler is detected then cross compile mode will be used." >&2
858  elif test "x$build_alias" != "x$host_alias"; then
859    cross_compiling=yes
860  fi
861fi
862
863ac_tool_prefix=
864test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866test "$silent" = yes && exec 6>/dev/null
867
868
869# Find the source files, if location was not specified.
870if test -z "$srcdir"; then
871  ac_srcdir_defaulted=yes
872  # Try the directory containing this script, then its parent.
873  ac_confdir=`(dirname "$0") 2>/dev/null ||
874$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875         X"$0" : 'X\(//\)[^/]' \| \
876         X"$0" : 'X\(//\)$' \| \
877         X"$0" : 'X\(/\)' \| \
878         .     : '\(.\)' 2>/dev/null ||
879echo X"$0" |
880    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882          /^X\(\/\/\)$/{ s//\1/; q; }
883          /^X\(\/\).*/{ s//\1/; q; }
884          s/.*/./; q'`
885  srcdir=$ac_confdir
886  if test ! -r $srcdir/$ac_unique_file; then
887    srcdir=..
888  fi
889else
890  ac_srcdir_defaulted=no
891fi
892if test ! -r $srcdir/$ac_unique_file; then
893  if test "$ac_srcdir_defaulted" = yes; then
894    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895   { (exit 1); exit 1; }; }
896  else
897    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898   { (exit 1); exit 1; }; }
899  fi
900fi
901(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903   { (exit 1); exit 1; }; }
904srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905ac_env_build_alias_set=${build_alias+set}
906ac_env_build_alias_value=$build_alias
907ac_cv_env_build_alias_set=${build_alias+set}
908ac_cv_env_build_alias_value=$build_alias
909ac_env_host_alias_set=${host_alias+set}
910ac_env_host_alias_value=$host_alias
911ac_cv_env_host_alias_set=${host_alias+set}
912ac_cv_env_host_alias_value=$host_alias
913ac_env_target_alias_set=${target_alias+set}
914ac_env_target_alias_value=$target_alias
915ac_cv_env_target_alias_set=${target_alias+set}
916ac_cv_env_target_alias_value=$target_alias
917ac_env_CXXDEFS_set=${CXXDEFS+set}
918ac_env_CXXDEFS_value=$CXXDEFS
919ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
920ac_cv_env_CXXDEFS_value=$CXXDEFS
921ac_env_CXX_set=${CXX+set}
922ac_env_CXX_value=$CXX
923ac_cv_env_CXX_set=${CXX+set}
924ac_cv_env_CXX_value=$CXX
925ac_env_CXXFLAGS_set=${CXXFLAGS+set}
926ac_env_CXXFLAGS_value=$CXXFLAGS
927ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
928ac_cv_env_CXXFLAGS_value=$CXXFLAGS
929ac_env_LDFLAGS_set=${LDFLAGS+set}
930ac_env_LDFLAGS_value=$LDFLAGS
931ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932ac_cv_env_LDFLAGS_value=$LDFLAGS
933ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_env_CPPFLAGS_value=$CPPFLAGS
935ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937ac_env_CC_set=${CC+set}
938ac_env_CC_value=$CC
939ac_cv_env_CC_set=${CC+set}
940ac_cv_env_CC_value=$CC
941ac_env_CFLAGS_set=${CFLAGS+set}
942ac_env_CFLAGS_value=$CFLAGS
943ac_cv_env_CFLAGS_set=${CFLAGS+set}
944ac_cv_env_CFLAGS_value=$CFLAGS
945ac_env_CPP_set=${CPP+set}
946ac_env_CPP_value=$CPP
947ac_cv_env_CPP_set=${CPP+set}
948ac_cv_env_CPP_value=$CPP
949ac_env_CXXCPP_set=${CXXCPP+set}
950ac_env_CXXCPP_value=$CXXCPP
951ac_cv_env_CXXCPP_set=${CXXCPP+set}
952ac_cv_env_CXXCPP_value=$CXXCPP
953ac_env_F77_set=${F77+set}
954ac_env_F77_value=$F77
955ac_cv_env_F77_set=${F77+set}
956ac_cv_env_F77_value=$F77
957ac_env_FFLAGS_set=${FFLAGS+set}
958ac_env_FFLAGS_value=$FFLAGS
959ac_cv_env_FFLAGS_set=${FFLAGS+set}
960ac_cv_env_FFLAGS_value=$FFLAGS
961
962#
963# Report the --help message.
964#
965if test "$ac_init_help" = "long"; then
966  # Omit some internal or obsolete options to make the list less imposing.
967  # This message is too long to be a string in the A/UX 3.1 sh.
968  cat <<_ACEOF
969\`configure' configures Cbc 0.1 to adapt to many kinds of systems.
970
971Usage: $0 [OPTION]... [VAR=VALUE]...
972
973To assign environment variables (e.g., CC, CFLAGS...), specify them as
974VAR=VALUE.  See below for descriptions of some of the useful variables.
975
976Defaults for the options are specified in brackets.
977
978Configuration:
979  -h, --help              display this help and exit
980      --help=short        display options specific to this package
981      --help=recursive    display the short help of all the included packages
982  -V, --version           display version information and exit
983  -q, --quiet, --silent   do not print \`checking...' messages
984      --cache-file=FILE   cache test results in FILE [disabled]
985  -C, --config-cache      alias for \`--cache-file=config.cache'
986  -n, --no-create         do not create output files
987      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
988
989_ACEOF
990
991  cat <<_ACEOF
992Installation directories:
993  --prefix=PREFIX         install architecture-independent files in PREFIX
994                          [$ac_default_prefix]
995  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
996                          [PREFIX]
997
998By default, \`make install' will install all the files in
999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1000an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001for instance \`--prefix=\$HOME'.
1002
1003For better control, use the options below.
1004
1005Fine tuning of the installation directories:
1006  --bindir=DIR           user executables [EPREFIX/bin]
1007  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1008  --libexecdir=DIR       program executables [EPREFIX/libexec]
1009  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1010  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1011  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1012  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1013  --libdir=DIR           object code libraries [EPREFIX/lib]
1014  --includedir=DIR       C header files [PREFIX/include]
1015  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1016  --infodir=DIR          info documentation [PREFIX/info]
1017  --mandir=DIR           man documentation [PREFIX/man]
1018_ACEOF
1019
1020  cat <<\_ACEOF
1021
1022Program names:
1023  --program-prefix=PREFIX            prepend PREFIX to installed program names
1024  --program-suffix=SUFFIX            append SUFFIX to installed program names
1025  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1026
1027System types:
1028  --build=BUILD     configure for building on BUILD [guessed]
1029  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1030_ACEOF
1031fi
1032
1033if test -n "$ac_init_help"; then
1034  case $ac_init_help in
1035     short | recursive ) echo "Configuration of Cbc 0.1:";;
1036   esac
1037  cat <<\_ACEOF
1038
1039Optional Features:
1040  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1041  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1042  --enable-debug          compile with debug options and runtime tests
1043  --enable-static[=PKGS]
1044                          build static libraries [default=no]
1045  --disable-dependency-tracking  speeds up one-time build
1046  --enable-dependency-tracking   do not reject slow dependency extractors
1047  --enable-maintainer-mode  enable make rules and dependencies not useful
1048                          (and sometimes confusing) to the casual installer
1049  --enable-shared[=PKGS]
1050                          build shared libraries [default=yes]
1051  --enable-fast-install[=PKGS]
1052                          optimize for fast installation [default=yes]
1053  --disable-libtool-lock  avoid locking (might break parallel builds)
1054
1055Optional Packages:
1056  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1059  --with-pic              try to use only PIC/non-PIC objects [default=use
1060                          both]
1061  --with-tags[=TAGS]
1062                          include additional configurations [automatic]
1063  --with-cbc-default-solver
1064                          specify default solver for Cbc in lower case letters
1065                          (if not given, clp is assumed)
1066  --with-cplex-incdir specify the directory with the header files for library
1067                          Cplex
1068  --with-cplex-libdir specify the directory with the library Cplex
1069  --with-glpk-incdir specify the directory with the header files for library
1070                          Glpk
1071  --with-glpk-libdir specify the directory with the library Glpk
1072  --with-fortmp-incdir specify the directory with the header files for library
1073                          FortMP
1074  --with-fortmp-libdir specify the directory with the library FortMP
1075  --with-mosek-incdir specify the directory with the header files for library
1076                          Mosek
1077  --with-mosek-libdir specify the directory with the library Mosek
1078  --with-osl-incdir specify the directory with the header files for library
1079                          Osl
1080  --with-osl-libdir specify the directory with the library Osl
1081  --with-soplex-incdir specify the directory with the header files for library
1082                          Soplex
1083  --with-soplex-libdir specify the directory with the library Soplex
1084  --with-xpress-incdir specify the directory with the header files for library
1085                          Xpress
1086  --with-xpress-libdir specify the directory with the library Xpress
1087
1088Some influential environment variables:
1089  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1090  CXX         C++ compiler command
1091  CXXFLAGS    C++ compiler flags
1092  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1093              nonstandard directory <lib dir>
1094  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095              headers in a nonstandard directory <include dir>
1096  CC          C compiler command
1097  CFLAGS      C compiler flags
1098  CPP         C preprocessor
1099  CXXCPP      C++ preprocessor
1100  F77         Fortran 77 compiler command
1101  FFLAGS      Fortran 77 compiler flags
1102
1103Use these variables to override the choices made by `configure' or to help
1104it to find libraries and programs with nonstandard names/locations.
1105
1106Report bugs to <coin-cbc@list.coin-or.org>.
1107_ACEOF
1108fi
1109
1110if test "$ac_init_help" = "recursive"; then
1111  # If there are subdirs, report their specific --help.
1112  ac_popdir=`pwd`
1113  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114    test -d $ac_dir || continue
1115    ac_builddir=.
1116
1117if test "$ac_dir" != .; then
1118  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119  # A "../" for each directory in $ac_dir_suffix.
1120  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121else
1122  ac_dir_suffix= ac_top_builddir=
1123fi
1124
1125case $srcdir in
1126  .)  # No --srcdir option.  We are building in place.
1127    ac_srcdir=.
1128    if test -z "$ac_top_builddir"; then
1129       ac_top_srcdir=.
1130    else
1131       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132    fi ;;
1133  [\\/]* | ?:[\\/]* )  # Absolute path.
1134    ac_srcdir=$srcdir$ac_dir_suffix;
1135    ac_top_srcdir=$srcdir ;;
1136  *) # Relative path.
1137    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139esac
1140
1141# Do not use `cd foo && pwd` to compute absolute paths, because
1142# the directories may not exist.
1143case `pwd` in
1144.) ac_abs_builddir="$ac_dir";;
1145*)
1146  case "$ac_dir" in
1147  .) ac_abs_builddir=`pwd`;;
1148  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150  esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_builddir=${ac_top_builddir}.;;
1154*)
1155  case ${ac_top_builddir}. in
1156  .) ac_abs_top_builddir=$ac_abs_builddir;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159  esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_srcdir=$ac_srcdir;;
1163*)
1164  case $ac_srcdir in
1165  .) ac_abs_srcdir=$ac_abs_builddir;;
1166  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168  esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_top_srcdir=$ac_top_srcdir;;
1172*)
1173  case $ac_top_srcdir in
1174  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177  esac;;
1178esac
1179
1180    cd $ac_dir
1181    # Check for guested configure; otherwise get Cygnus style configure.
1182    if test -f $ac_srcdir/configure.gnu; then
1183      echo
1184      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1185    elif test -f $ac_srcdir/configure; then
1186      echo
1187      $SHELL $ac_srcdir/configure  --help=recursive
1188    elif test -f $ac_srcdir/configure.ac ||
1189           test -f $ac_srcdir/configure.in; then
1190      echo
1191      $ac_configure --help
1192    else
1193      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194    fi
1195    cd $ac_popdir
1196  done
1197fi
1198
1199test -n "$ac_init_help" && exit 0
1200if $ac_init_version; then
1201  cat <<\_ACEOF
1202Cbc configure 0.1
1203generated by GNU Autoconf 2.59
1204
1205Copyright (C) 2003 Free Software Foundation, Inc.
1206This configure script is free software; the Free Software Foundation
1207gives unlimited permission to copy, distribute and modify it.
1208
1209
1210Copyright 2006 International Business Machines and others.
1211All Rights Reserved.
1212This file is part of the open source package Coin which is distributed
1213under the Common Public License.
1214_ACEOF
1215  exit 0
1216fi
1217exec 5>config.log
1218cat >&5 <<_ACEOF
1219This file contains any messages produced by compilers while
1220running configure, to aid debugging if configure makes a mistake.
1221
1222It was created by Cbc $as_me 0.1, which was
1223generated by GNU Autoconf 2.59.  Invocation command line was
1224
1225  $ $0 $@
1226
1227_ACEOF
1228{
1229cat <<_ASUNAME
1230## --------- ##
1231## Platform. ##
1232## --------- ##
1233
1234hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239
1240/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1242
1243/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1244/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1245/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1247/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1248/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1249/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1250
1251_ASUNAME
1252
1253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254for as_dir in $PATH
1255do
1256  IFS=$as_save_IFS
1257  test -z "$as_dir" && as_dir=.
1258  echo "PATH: $as_dir"
1259done
1260
1261} >&5
1262
1263cat >&5 <<_ACEOF
1264
1265
1266## ----------- ##
1267## Core tests. ##
1268## ----------- ##
1269
1270_ACEOF
1271
1272
1273# Keep a trace of the command line.
1274# Strip out --no-create and --no-recursion so they do not pile up.
1275# Strip out --silent because we don't want to record it for future runs.
1276# Also quote any args containing shell meta-characters.
1277# Make two passes to allow for proper duplicate-argument suppression.
1278ac_configure_args=
1279ac_configure_args0=
1280ac_configure_args1=
1281ac_sep=
1282ac_must_keep_next=false
1283for ac_pass in 1 2
1284do
1285  for ac_arg
1286  do
1287    case $ac_arg in
1288    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290    | -silent | --silent | --silen | --sile | --sil)
1291      continue ;;
1292    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294    esac
1295    case $ac_pass in
1296    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297    2)
1298      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299      if test $ac_must_keep_next = true; then
1300        ac_must_keep_next=false # Got value, back to normal.
1301      else
1302        case $ac_arg in
1303          *=* | --config-cache | -C | -disable-* | --disable-* \
1304          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306          | -with-* | --with-* | -without-* | --without-* | --x)
1307            case "$ac_configure_args0 " in
1308              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309            esac
1310            ;;
1311          -* ) ac_must_keep_next=true ;;
1312        esac
1313      fi
1314      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315      # Get rid of the leading space.
1316      ac_sep=" "
1317      ;;
1318    esac
1319  done
1320done
1321$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323
1324# When interrupted or exit'd, cleanup temporary files, and complete
1325# config.log.  We remove comments because anyway the quotes in there
1326# would cause problems or look ugly.
1327# WARNING: Be sure not to use single quotes in there, as some shells,
1328# such as our DU 5.0 friend, will then `close' the trap.
1329trap 'exit_status=$?
1330  # Save into config.log some information that might help in debugging.
1331  {
1332    echo
1333
1334    cat <<\_ASBOX
1335## ---------------- ##
1336## Cache variables. ##
1337## ---------------- ##
1338_ASBOX
1339    echo
1340    # The following way of writing the cache mishandles newlines in values,
1341{
1342  (set) 2>&1 |
1343    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344    *ac_space=\ *)
1345      sed -n \
1346        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1348      ;;
1349    *)
1350      sed -n \
1351        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1352      ;;
1353    esac;
1354}
1355    echo
1356
1357    cat <<\_ASBOX
1358## ----------------- ##
1359## Output variables. ##
1360## ----------------- ##
1361_ASBOX
1362    echo
1363    for ac_var in $ac_subst_vars
1364    do
1365      eval ac_val=$`echo $ac_var`
1366      echo "$ac_var='"'"'$ac_val'"'"'"
1367    done | sort
1368    echo
1369
1370    if test -n "$ac_subst_files"; then
1371      cat <<\_ASBOX
1372## ------------- ##
1373## Output files. ##
1374## ------------- ##
1375_ASBOX
1376      echo
1377      for ac_var in $ac_subst_files
1378      do
1379        eval ac_val=$`echo $ac_var`
1380        echo "$ac_var='"'"'$ac_val'"'"'"
1381      done | sort
1382      echo
1383    fi
1384
1385    if test -s confdefs.h; then
1386      cat <<\_ASBOX
1387## ----------- ##
1388## confdefs.h. ##
1389## ----------- ##
1390_ASBOX
1391      echo
1392      sed "/^$/d" confdefs.h | sort
1393      echo
1394    fi
1395    test "$ac_signal" != 0 &&
1396      echo "$as_me: caught signal $ac_signal"
1397    echo "$as_me: exit $exit_status"
1398  } >&5
1399  rm -f core *.core &&
1400  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401    exit $exit_status
1402     ' 0
1403for ac_signal in 1 2 13 15; do
1404  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1405done
1406ac_signal=0
1407
1408# confdefs.h avoids OS command line length limits that DEFS can exceed.
1409rm -rf conftest* confdefs.h
1410# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411echo >confdefs.h
1412
1413# Predefined preprocessor variables.
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_NAME "$PACKAGE_NAME"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_VERSION "$PACKAGE_VERSION"
1427_ACEOF
1428
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_STRING "$PACKAGE_STRING"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1437_ACEOF
1438
1439
1440# Let the site file select an alternate cache file if it wants to.
1441# Prefer explicitly selected file to automatically selected ones.
1442if test -z "$CONFIG_SITE"; then
1443  if test "x$prefix" != xNONE; then
1444    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445  else
1446    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447  fi
1448fi
1449for ac_site_file in $CONFIG_SITE; do
1450  if test -r "$ac_site_file"; then
1451    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452echo "$as_me: loading site script $ac_site_file" >&6;}
1453    sed 's/^/| /' "$ac_site_file" >&5
1454    . "$ac_site_file"
1455  fi
1456done
1457
1458if test -r "$cache_file"; then
1459  # Some versions of bash will fail to source /dev/null (special
1460  # files actually), so we avoid doing that.
1461  if test -f "$cache_file"; then
1462    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1463echo "$as_me: loading cache $cache_file" >&6;}
1464    case $cache_file in
1465      [\\/]* | ?:[\\/]* ) . $cache_file;;
1466      *)                      . ./$cache_file;;
1467    esac
1468  fi
1469else
1470  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1471echo "$as_me: creating cache $cache_file" >&6;}
1472  >$cache_file
1473fi
1474
1475# Check that the precious variables saved in the cache have kept the same
1476# value.
1477ac_cache_corrupted=false
1478for ac_var in `(set) 2>&1 |
1479               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1480  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1481  eval ac_new_set=\$ac_env_${ac_var}_set
1482  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1483  eval ac_new_val="\$ac_env_${ac_var}_value"
1484  case $ac_old_set,$ac_new_set in
1485    set,)
1486      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1487echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1488      ac_cache_corrupted=: ;;
1489    ,set)
1490      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1491echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1492      ac_cache_corrupted=: ;;
1493    ,);;
1494    *)
1495      if test "x$ac_old_val" != "x$ac_new_val"; then
1496        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1497echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1498        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1499echo "$as_me:   former value:  $ac_old_val" >&2;}
1500        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1501echo "$as_me:   current value: $ac_new_val" >&2;}
1502        ac_cache_corrupted=:
1503      fi;;
1504  esac
1505  # Pass precious variables to config.status.
1506  if test "$ac_new_set" = set; then
1507    case $ac_new_val in
1508    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1509      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1510    *) ac_arg=$ac_var=$ac_new_val ;;
1511    esac
1512    case " $ac_configure_args " in
1513      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1514      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1515    esac
1516  fi
1517done
1518if $ac_cache_corrupted; then
1519  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1520echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1521  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1522echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1523   { (exit 1); exit 1; }; }
1524fi
1525
1526ac_ext=c
1527ac_cpp='$CPP $CPPFLAGS'
1528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1530ac_compiler_gnu=$ac_cv_c_compiler_gnu
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563# List one file in the package so that the configure script can test
1564# whether the package is actually there
1565
1566
1567#############################################################################
1568#                         Standard build tool stuff                         #
1569#############################################################################
1570
1571# Get the system type
1572ac_aux_dir=
1573for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1574  if test -f $ac_dir/install-sh; then
1575    ac_aux_dir=$ac_dir
1576    ac_install_sh="$ac_aux_dir/install-sh -c"
1577    break
1578  elif test -f $ac_dir/install.sh; then
1579    ac_aux_dir=$ac_dir
1580    ac_install_sh="$ac_aux_dir/install.sh -c"
1581    break
1582  elif test -f $ac_dir/shtool; then
1583    ac_aux_dir=$ac_dir
1584    ac_install_sh="$ac_aux_dir/shtool install -c"
1585    break
1586  fi
1587done
1588if test -z "$ac_aux_dir"; then
1589  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1590echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1591   { (exit 1); exit 1; }; }
1592fi
1593ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1594ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1595ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1596
1597# Make sure we can run config.sub.
1598$ac_config_sub sun4 >/dev/null 2>&1 ||
1599  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1600echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1601   { (exit 1); exit 1; }; }
1602
1603echo "$as_me:$LINENO: checking build system type" >&5
1604echo $ECHO_N "checking build system type... $ECHO_C" >&6
1605if test "${ac_cv_build+set}" = set; then
1606  echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608  ac_cv_build_alias=$build_alias
1609test -z "$ac_cv_build_alias" &&
1610  ac_cv_build_alias=`$ac_config_guess`
1611test -z "$ac_cv_build_alias" &&
1612  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1613echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1614   { (exit 1); exit 1; }; }
1615ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1616  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1617echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1618   { (exit 1); exit 1; }; }
1619
1620fi
1621echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1622echo "${ECHO_T}$ac_cv_build" >&6
1623build=$ac_cv_build
1624build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627
1628
1629
1630# Where should everything be installed by default?  Here, we want it
1631# to be installed directly in 'bin', 'lib', 'include' subdirectories
1632# of the directory where configure is run.  The default would be
1633# /usr/local.
1634
1635
1636# If this project depends on external projects, the Externals file in
1637# the source root directory contains definition of where to find those
1638# externals.  The following macro ensures that those externals are
1639# retrieved by svn if they are not there yet.
1640# Initialize the ADDLIBS variable (a number of library require -lm)
1641ADDLIBS="-lm"
1642
1643
1644# A useful makefile conditional that is always false
1645
1646
1647if false; then
1648  ALWAYS_FALSE_TRUE=
1649  ALWAYS_FALSE_FALSE='#'
1650else
1651  ALWAYS_FALSE_TRUE='#'
1652  ALWAYS_FALSE_FALSE=
1653fi
1654
1655
1656# A makefile conditional that is set to true if
1657
1658
1659# Check if user wants to produce debugging code
1660
1661echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1662echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1663
1664# Check whether --enable-debug or --disable-debug was given.
1665if test "${enable_debug+set}" = set; then
1666  enableval="$enable_debug"
1667  case "${enableval}" in
1668                   yes) coin_debug_compile=true
1669
1670cat >>confdefs.h <<\_ACEOF
1671#define COIN_DEBUG 1
1672_ACEOF
1673
1674                     ;;
1675                   no)  coin_debug_compile=false
1676                     ;;
1677                    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1678echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1679   { (exit 1); exit 1; }; }
1680                     ;;
1681                 esac
1682else
1683  coin_debug_compile=false
1684fi;
1685
1686if test $coin_debug_compile = true; then
1687  echo "$as_me:$LINENO: result: yes" >&5
1688echo "${ECHO_T}yes" >&6
1689else
1690  echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
1692fi
1693
1694
1695
1696if test "$coin_debug_compile" = true; then
1697  COIN_DEBUG_TRUE=
1698  COIN_DEBUG_FALSE='#'
1699else
1700  COIN_DEBUG_TRUE='#'
1701  COIN_DEBUG_FALSE=
1702fi
1703
1704
1705
1706# This package is written in C++
1707ac_ext=cc
1708ac_cpp='$CXXCPP $CPPFLAGS'
1709ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1710ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1711ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1712
1713
1714# Get the name of the C++ compiler and appropriate compiler options
1715
1716ac_ext=cc
1717ac_cpp='$CXXCPP $CPPFLAGS'
1718ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1719ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1720ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1721
1722
1723
1724
1725coin_has_cxx=yes
1726
1727save_cxxflags="$CXXFLAGS"
1728case $build in
1729  *-cygwin*) comps="g++ cl" ;;
1730  *-mingw*)  comps="g++ cl" ;;
1731  *-darwin*) comps="g++ c++ CC" ;;
1732          *) comps="xlC aCC CC g++ c++ pgCC icpc" ;;
1733esac
1734ac_ext=cc
1735ac_cpp='$CXXCPP $CPPFLAGS'
1736ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1737ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1738ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1739if test -n "$ac_tool_prefix"; then
1740  for ac_prog in $CCC $comps
1741  do
1742    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1743set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1744echo "$as_me:$LINENO: checking for $ac_word" >&5
1745echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1746if test "${ac_cv_prog_CXX+set}" = set; then
1747  echo $ECHO_N "(cached) $ECHO_C" >&6
1748else
1749  if test -n "$CXX"; then
1750  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1751else
1752as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1753for as_dir in $PATH
1754do
1755  IFS=$as_save_IFS
1756  test -z "$as_dir" && as_dir=.
1757  for ac_exec_ext in '' $ac_executable_extensions; do
1758  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1759    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1760    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1761    break 2
1762  fi
1763done
1764done
1765
1766fi
1767fi
1768CXX=$ac_cv_prog_CXX
1769if test -n "$CXX"; then
1770  echo "$as_me:$LINENO: result: $CXX" >&5
1771echo "${ECHO_T}$CXX" >&6
1772else
1773  echo "$as_me:$LINENO: result: no" >&5
1774echo "${ECHO_T}no" >&6
1775fi
1776
1777    test -n "$CXX" && break
1778  done
1779fi
1780if test -z "$CXX"; then
1781  ac_ct_CXX=$CXX
1782  for ac_prog in $CCC $comps
1783do
1784  # Extract the first word of "$ac_prog", so it can be a program name with args.
1785set dummy $ac_prog; ac_word=$2
1786echo "$as_me:$LINENO: checking for $ac_word" >&5
1787echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1788if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1789  echo $ECHO_N "(cached) $ECHO_C" >&6
1790else
1791  if test -n "$ac_ct_CXX"; then
1792  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1793else
1794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1795for as_dir in $PATH
1796do
1797  IFS=$as_save_IFS
1798  test -z "$as_dir" && as_dir=.
1799  for ac_exec_ext in '' $ac_executable_extensions; do
1800  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1801    ac_cv_prog_ac_ct_CXX="$ac_prog"
1802    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1803    break 2
1804  fi
1805done
1806done
1807
1808fi
1809fi
1810ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1811if test -n "$ac_ct_CXX"; then
1812  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1813echo "${ECHO_T}$ac_ct_CXX" >&6
1814else
1815  echo "$as_me:$LINENO: result: no" >&5
1816echo "${ECHO_T}no" >&6
1817fi
1818
1819  test -n "$ac_ct_CXX" && break
1820done
1821test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1822
1823  CXX=$ac_ct_CXX
1824fi
1825
1826
1827# Provide some information about the compiler.
1828echo "$as_me:$LINENO:" \
1829     "checking for C++ compiler version" >&5
1830ac_compiler=`set X $ac_compile; echo $2`
1831{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1832  (eval $ac_compiler --version </dev/null >&5) 2>&5
1833  ac_status=$?
1834  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1835  (exit $ac_status); }
1836{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1837  (eval $ac_compiler -v </dev/null >&5) 2>&5
1838  ac_status=$?
1839  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1840  (exit $ac_status); }
1841{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1842  (eval $ac_compiler -V </dev/null >&5) 2>&5
1843  ac_status=$?
1844  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1845  (exit $ac_status); }
1846
1847cat >conftest.$ac_ext <<_ACEOF
1848/* confdefs.h.  */
1849_ACEOF
1850cat confdefs.h >>conftest.$ac_ext
1851cat >>conftest.$ac_ext <<_ACEOF
1852/* end confdefs.h.  */
1853
1854int
1855main ()
1856{
1857
1858  ;
1859  return 0;
1860}
1861_ACEOF
1862ac_clean_files_save=$ac_clean_files
1863ac_clean_files="$ac_clean_files a.out a.exe b.out"
1864# Try to create an executable without -o first, disregard a.out.
1865# It will help us diagnose broken compilers, and finding out an intuition
1866# of exeext.
1867echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1868echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1869ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1870if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1871  (eval $ac_link_default) 2>&5
1872  ac_status=$?
1873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1874  (exit $ac_status); }; then
1875  # Find the output, starting from the most likely.  This scheme is
1876# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1877# resort.
1878
1879# Be careful to initialize this variable, since it used to be cached.
1880# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1881ac_cv_exeext=
1882# b.out is created by i960 compilers.
1883for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1884do
1885  test -f "$ac_file" || continue
1886  case $ac_file in
1887    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1888        ;;
1889    conftest.$ac_ext )
1890        # This is the source file.
1891        ;;
1892    [ab].out )
1893        # We found the default executable, but exeext='' is most
1894        # certainly right.
1895        break;;
1896    *.* )
1897        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1898        # FIXME: I believe we export ac_cv_exeext for Libtool,
1899        # but it would be cool to find out if it's true.  Does anybody
1900        # maintain Libtool? --akim.
1901        export ac_cv_exeext
1902        break;;
1903    * )
1904        break;;
1905  esac
1906done
1907else
1908  echo "$as_me: failed program was:" >&5
1909sed 's/^/| /' conftest.$ac_ext >&5
1910
1911{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1912See \`config.log' for more details." >&5
1913echo "$as_me: error: C++ compiler cannot create executables
1914See \`config.log' for more details." >&2;}
1915   { (exit 77); exit 77; }; }
1916fi
1917
1918ac_exeext=$ac_cv_exeext
1919echo "$as_me:$LINENO: result: $ac_file" >&5
1920echo "${ECHO_T}$ac_file" >&6
1921
1922# Check the compiler produces executables we can run.  If not, either
1923# the compiler is broken, or we cross compile.
1924echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1925echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1926# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1927# If not cross compiling, check that we can run a simple program.
1928if test "$cross_compiling" != yes; then
1929  if { ac_try='./$ac_file'
1930  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1931  (eval $ac_try) 2>&5
1932  ac_status=$?
1933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1934  (exit $ac_status); }; }; then
1935    cross_compiling=no
1936  else
1937    if test "$cross_compiling" = maybe; then
1938        cross_compiling=yes
1939    else
1940        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1941If you meant to cross compile, use \`--host'.
1942See \`config.log' for more details." >&5
1943echo "$as_me: error: cannot run C++ compiled programs.
1944If you meant to cross compile, use \`--host'.
1945See \`config.log' for more details." >&2;}
1946   { (exit 1); exit 1; }; }
1947    fi
1948  fi
1949fi
1950echo "$as_me:$LINENO: result: yes" >&5
1951echo "${ECHO_T}yes" >&6
1952
1953rm -f a.out a.exe conftest$ac_cv_exeext b.out
1954ac_clean_files=$ac_clean_files_save
1955# Check the compiler produces executables we can run.  If not, either
1956# the compiler is broken, or we cross compile.
1957echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1958echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1959echo "$as_me:$LINENO: result: $cross_compiling" >&5
1960echo "${ECHO_T}$cross_compiling" >&6
1961
1962echo "$as_me:$LINENO: checking for suffix of executables" >&5
1963echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1964if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1965  (eval $ac_link) 2>&5
1966  ac_status=$?
1967  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1968  (exit $ac_status); }; then
1969  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1970# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1971# work properly (i.e., refer to `conftest.exe'), while it won't with
1972# `rm'.
1973for ac_file in conftest.exe conftest conftest.*; do
1974  test -f "$ac_file" || continue
1975  case $ac_file in
1976    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1977    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1978          export ac_cv_exeext
1979          break;;
1980    * ) break;;
1981  esac
1982done
1983else
1984  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1985See \`config.log' for more details." >&5
1986echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1987See \`config.log' for more details." >&2;}
1988   { (exit 1); exit 1; }; }
1989fi
1990
1991rm -f conftest$ac_cv_exeext
1992echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1993echo "${ECHO_T}$ac_cv_exeext" >&6
1994
1995rm -f conftest.$ac_ext
1996EXEEXT=$ac_cv_exeext
1997ac_exeext=$EXEEXT
1998echo "$as_me:$LINENO: checking for suffix of object files" >&5
1999echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2000if test "${ac_cv_objext+set}" = set; then
2001  echo $ECHO_N "(cached) $ECHO_C" >&6
2002else
2003  cat >conftest.$ac_ext <<_ACEOF
2004/* confdefs.h.  */
2005_ACEOF
2006cat confdefs.h >>conftest.$ac_ext
2007cat >>conftest.$ac_ext <<_ACEOF
2008/* end confdefs.h.  */
2009
2010int
2011main ()
2012{
2013
2014  ;
2015  return 0;
2016}
2017_ACEOF
2018rm -f conftest.o conftest.obj
2019if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2020  (eval $ac_compile) 2>&5
2021  ac_status=$?
2022  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2023  (exit $ac_status); }; then
2024  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2025  case $ac_file in
2026    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2027    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2028       break;;
2029  esac
2030done
2031else
2032  echo "$as_me: failed program was:" >&5
2033sed 's/^/| /' conftest.$ac_ext >&5
2034
2035{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2036See \`config.log' for more details." >&5
2037echo "$as_me: error: cannot compute suffix of object files: cannot compile
2038See \`config.log' for more details." >&2;}
2039   { (exit 1); exit 1; }; }
2040fi
2041
2042rm -f conftest.$ac_cv_objext conftest.$ac_ext
2043fi
2044echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2045echo "${ECHO_T}$ac_cv_objext" >&6
2046OBJEXT=$ac_cv_objext
2047ac_objext=$OBJEXT
2048echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2049echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2050if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2051  echo $ECHO_N "(cached) $ECHO_C" >&6
2052else
2053  cat >conftest.$ac_ext <<_ACEOF
2054/* confdefs.h.  */
2055_ACEOF
2056cat confdefs.h >>conftest.$ac_ext
2057cat >>conftest.$ac_ext <<_ACEOF
2058/* end confdefs.h.  */
2059
2060int
2061main ()
2062{
2063#ifndef __GNUC__
2064       choke me
2065#endif
2066
2067  ;
2068  return 0;
2069}
2070_ACEOF
2071rm -f conftest.$ac_objext
2072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2073  (eval $ac_compile) 2>conftest.er1
2074  ac_status=$?
2075  grep -v '^ *+' conftest.er1 >conftest.err
2076  rm -f conftest.er1
2077  cat conftest.err >&5
2078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2079  (exit $ac_status); } &&
2080         { ac_try='test -z "$ac_cxx_werror_flag"
2081                         || test ! -s conftest.err'
2082  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083  (eval $ac_try) 2>&5
2084  ac_status=$?
2085  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086  (exit $ac_status); }; } &&
2087         { ac_try='test -s conftest.$ac_objext'
2088  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2089  (eval $ac_try) 2>&5
2090  ac_status=$?
2091  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092  (exit $ac_status); }; }; then
2093  ac_compiler_gnu=yes
2094else
2095  echo "$as_me: failed program was:" >&5
2096sed 's/^/| /' conftest.$ac_ext >&5
2097
2098ac_compiler_gnu=no
2099fi
2100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2101ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2102
2103fi
2104echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2105echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2106GXX=`test $ac_compiler_gnu = yes && echo yes`
2107ac_test_CXXFLAGS=${CXXFLAGS+set}
2108ac_save_CXXFLAGS=$CXXFLAGS
2109CXXFLAGS="-g"
2110echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2111echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2112if test "${ac_cv_prog_cxx_g+set}" = set; then
2113  echo $ECHO_N "(cached) $ECHO_C" >&6
2114else
2115  cat >conftest.$ac_ext <<_ACEOF
2116/* confdefs.h.  */
2117_ACEOF
2118cat confdefs.h >>conftest.$ac_ext
2119cat >>conftest.$ac_ext <<_ACEOF
2120/* end confdefs.h.  */
2121
2122int
2123main ()
2124{
2125
2126  ;
2127  return 0;
2128}
2129_ACEOF
2130rm -f conftest.$ac_objext
2131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2132  (eval $ac_compile) 2>conftest.er1
2133  ac_status=$?
2134  grep -v '^ *+' conftest.er1 >conftest.err
2135  rm -f conftest.er1
2136  cat conftest.err >&5
2137  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2138  (exit $ac_status); } &&
2139         { ac_try='test -z "$ac_cxx_werror_flag"
2140                         || test ! -s conftest.err'
2141  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2142  (eval $ac_try) 2>&5
2143  ac_status=$?
2144  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2145  (exit $ac_status); }; } &&
2146         { ac_try='test -s conftest.$ac_objext'
2147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2148  (eval $ac_try) 2>&5
2149  ac_status=$?
2150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2151  (exit $ac_status); }; }; then
2152  ac_cv_prog_cxx_g=yes
2153else
2154  echo "$as_me: failed program was:" >&5
2155sed 's/^/| /' conftest.$ac_ext >&5
2156
2157ac_cv_prog_cxx_g=no
2158fi
2159rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2160fi
2161echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2162echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2163if test "$ac_test_CXXFLAGS" = set; then
2164  CXXFLAGS=$ac_save_CXXFLAGS
2165elif test $ac_cv_prog_cxx_g = yes; then
2166  if test "$GXX" = yes; then
2167    CXXFLAGS="-g -O2"
2168  else
2169    CXXFLAGS="-g"
2170  fi
2171else
2172  if test "$GXX" = yes; then
2173    CXXFLAGS="-O2"
2174  else
2175    CXXFLAGS=
2176  fi
2177fi
2178for ac_declaration in \
2179   '' \
2180   'extern "C" void std::exit (int) throw (); using std::exit;' \
2181   'extern "C" void std::exit (int); using std::exit;' \
2182   'extern "C" void exit (int) throw ();' \
2183   'extern "C" void exit (int);' \
2184   'void exit (int);'
2185do
2186  cat >conftest.$ac_ext <<_ACEOF
2187/* confdefs.h.  */
2188_ACEOF
2189cat confdefs.h >>conftest.$ac_ext
2190cat >>conftest.$ac_ext <<_ACEOF
2191/* end confdefs.h.  */
2192$ac_declaration
2193#include <stdlib.h>
2194int
2195main ()
2196{
2197exit (42);
2198  ;
2199  return 0;
2200}
2201_ACEOF
2202rm -f conftest.$ac_objext
2203if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2204  (eval $ac_compile) 2>conftest.er1
2205  ac_status=$?
2206  grep -v '^ *+' conftest.er1 >conftest.err
2207  rm -f conftest.er1
2208  cat conftest.err >&5
2209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2210  (exit $ac_status); } &&
2211         { ac_try='test -z "$ac_cxx_werror_flag"
2212                         || test ! -s conftest.err'
2213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2214  (eval $ac_try) 2>&5
2215  ac_status=$?
2216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2217  (exit $ac_status); }; } &&
2218         { ac_try='test -s conftest.$ac_objext'
2219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2220  (eval $ac_try) 2>&5
2221  ac_status=$?
2222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2223  (exit $ac_status); }; }; then
2224  :
2225else
2226  echo "$as_me: failed program was:" >&5
2227sed 's/^/| /' conftest.$ac_ext >&5
2228
2229continue
2230fi
2231rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2232  cat >conftest.$ac_ext <<_ACEOF
2233/* confdefs.h.  */
2234_ACEOF
2235cat confdefs.h >>conftest.$ac_ext
2236cat >>conftest.$ac_ext <<_ACEOF
2237/* end confdefs.h.  */
2238$ac_declaration
2239int
2240main ()
2241{
2242exit (42);
2243  ;
2244  return 0;
2245}
2246_ACEOF
2247rm -f conftest.$ac_objext
2248if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2249  (eval $ac_compile) 2>conftest.er1
2250  ac_status=$?
2251  grep -v '^ *+' conftest.er1 >conftest.err
2252  rm -f conftest.er1
2253  cat conftest.err >&5
2254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2255  (exit $ac_status); } &&
2256         { ac_try='test -z "$ac_cxx_werror_flag"
2257                         || test ! -s conftest.err'
2258  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2259  (eval $ac_try) 2>&5
2260  ac_status=$?
2261  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262  (exit $ac_status); }; } &&
2263         { ac_try='test -s conftest.$ac_objext'
2264  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265  (eval $ac_try) 2>&5
2266  ac_status=$?
2267  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268  (exit $ac_status); }; }; then
2269  break
2270else
2271  echo "$as_me: failed program was:" >&5
2272sed 's/^/| /' conftest.$ac_ext >&5
2273
2274fi
2275rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2276done
2277rm -f conftest*
2278if test -n "$ac_declaration"; then
2279  echo '#ifdef __cplusplus' >>confdefs.h
2280  echo $ac_declaration      >>confdefs.h
2281  echo '#endif'             >>confdefs.h
2282fi
2283
2284ac_ext=cc
2285ac_cpp='$CXXCPP $CPPFLAGS'
2286ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2287ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2288ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2289
2290CXXFLAGS="$save_cxxflags"
2291
2292echo "$as_me:$LINENO: checking for C++ compiler options" >&5
2293echo $ECHO_N "checking for C++ compiler options... $ECHO_C" >&6
2294if test "${coin_cv_cxxflags+set}" = set; then
2295  echo $ECHO_N "(cached) $ECHO_C" >&6
2296else
2297  if test x"$CXXFLAGS" = x; then
2298
2299# ToDo decide whether we want -DNDEBUG for optimization
2300  coin_add_cxxflags=
2301  coin_opt_cxxflags=
2302  coin_dbg_cxxflags=
2303  coin_warn_cxxflags=
2304
2305  if test "$GXX" = "yes"; then
2306    case "$CXX" in
2307      icpc | */icpc)
2308        ;;
2309      *)
2310# ToDo decide about unroll-loops
2311        coin_opt_cxxflags="-O3"
2312        coin_add_cxxflags="-pipe"
2313        coin_dbg_cxxflags="-g"
2314        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
2315
2316        case $build in
2317          *-cygwin*)
2318            CXXFLAGS="-mno-cygwin"
2319            cat >conftest.$ac_ext <<_ACEOF
2320/* confdefs.h.  */
2321_ACEOF
2322cat confdefs.h >>conftest.$ac_ext
2323cat >>conftest.$ac_ext <<_ACEOF
2324/* end confdefs.h.  */
2325
2326int
2327main ()
2328{
2329int i=0; i++;
2330  ;
2331  return 0;
2332}
2333_ACEOF
2334rm -f conftest.$ac_objext conftest$ac_exeext
2335if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2336  (eval $ac_link) 2>conftest.er1
2337  ac_status=$?
2338  grep -v '^ *+' conftest.er1 >conftest.err
2339  rm -f conftest.er1
2340  cat conftest.err >&5
2341  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2342  (exit $ac_status); } &&
2343         { ac_try='test -z "$ac_cxx_werror_flag"
2344                         || test ! -s conftest.err'
2345  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2346  (eval $ac_try) 2>&5
2347  ac_status=$?
2348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2349  (exit $ac_status); }; } &&
2350         { ac_try='test -s conftest$ac_exeext'
2351  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2352  (eval $ac_try) 2>&5
2353  ac_status=$?
2354  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2355  (exit $ac_status); }; }; then
2356  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
2357else
2358  echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361fi
2362rm -f conftest.err conftest.$ac_objext \
2363      conftest$ac_exeext conftest.$ac_ext
2364            CXXFLAGS=
2365            ;;
2366        esac
2367        ;;
2368    esac
2369  fi
2370  if test -z "$coin_opt_cxxflags"; then
2371    case $build in
2372      *-cygwin*)
2373        case "$CXX" in
2374          cl | */cl)
2375            coin_opt_cxxflags='-Ot1'
2376            coin_add_cxxflags='-nologo -EHsc -GR -MT'
2377            coin_dbg_cxxflags='-Yd'
2378            ;;
2379        esac
2380        ;;
2381      *-linux-*)
2382        case "$CXX" in
2383          icpc | */icpc)
2384            coin_opt_cxxflags="-O3 -ip"
2385            coin_add_cxxflags=""
2386            coin_dbg_cxxflags="-g"
2387            # Check if -i_dynamic is necessary (for new glibc library)
2388            CXXFLAGS=
2389            cat >conftest.$ac_ext <<_ACEOF
2390/* confdefs.h.  */
2391_ACEOF
2392cat confdefs.h >>conftest.$ac_ext
2393cat >>conftest.$ac_ext <<_ACEOF
2394/* end confdefs.h.  */
2395
2396int
2397main ()
2398{
2399int i=0; i++;
2400  ;
2401  return 0;
2402}
2403_ACEOF
2404rm -f conftest.$ac_objext conftest$ac_exeext
2405if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2406  (eval $ac_link) 2>conftest.er1
2407  ac_status=$?
2408  grep -v '^ *+' conftest.er1 >conftest.err
2409  rm -f conftest.er1
2410  cat conftest.err >&5
2411  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2412  (exit $ac_status); } &&
2413         { ac_try='test -z "$ac_cxx_werror_flag"
2414                         || test ! -s conftest.err'
2415  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2416  (eval $ac_try) 2>&5
2417  ac_status=$?
2418  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2419  (exit $ac_status); }; } &&
2420         { ac_try='test -s conftest$ac_exeext'
2421  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2422  (eval $ac_try) 2>&5
2423  ac_status=$?
2424  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2425  (exit $ac_status); }; }; then
2426  :
2427else
2428  echo "$as_me: failed program was:" >&5
2429sed 's/^/| /' conftest.$ac_ext >&5
2430
2431coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
2432fi
2433rm -f conftest.err conftest.$ac_objext \
2434      conftest$ac_exeext conftest.$ac_ext
2435            ;;
2436          pgCC | */pgCC)
2437            coin_opt_cxxflags="-fast"
2438            coin_add_cxxflags="-Kieee -pc 64"
2439            coin_dbg_cxxflags="-g"
2440            ;;
2441        esac
2442        ;;
2443      *-ibm-*)
2444        case "$CXX" in
2445          xlC* | */xlC* | mpxlC* | */mpxlC*)
2446            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
2447            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
2448            coin_dbg_cxxflags="-g"
2449            ;;
2450        esac
2451        ;;
2452      *-hp-*)
2453        case "$CXX" in
2454          aCC | */aCC )
2455            coin_opt_cxxflags="-O"
2456            coin_add_cxxflags="-AA"
2457            coin_dbg_cxxflags="-g"
2458            ;;
2459        esac
2460        ;;
2461      *-sun-*)
2462          coin_opt_cxxflags="-O4 -xtarget=native"
2463          coin_dbg_cxxflags="-g"
2464        ;;
2465    esac
2466  fi
2467
2468  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
2469    coin_dbg_cxxflags="-g"
2470  fi
2471
2472  if test "$coin_debug_compile" = "true"; then
2473    CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
2474  else
2475    if test -z "$coin_opt_cxxflags"; then
2476      # Try if -O option works if nothing else is set
2477      CXXFLAGS="-O"
2478      cat >conftest.$ac_ext <<_ACEOF
2479/* confdefs.h.  */
2480_ACEOF
2481cat confdefs.h >>conftest.$ac_ext
2482cat >>conftest.$ac_ext <<_ACEOF
2483/* end confdefs.h.  */
2484
2485int
2486main ()
2487{
2488int i=0; i++;
2489  ;
2490  return 0;
2491}
2492_ACEOF
2493rm -f conftest.$ac_objext conftest$ac_exeext
2494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2495  (eval $ac_link) 2>conftest.er1
2496  ac_status=$?
2497  grep -v '^ *+' conftest.er1 >conftest.err
2498  rm -f conftest.er1
2499  cat conftest.err >&5
2500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501  (exit $ac_status); } &&
2502         { ac_try='test -z "$ac_cxx_werror_flag"
2503                         || test ! -s conftest.err'
2504  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2505  (eval $ac_try) 2>&5
2506  ac_status=$?
2507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2508  (exit $ac_status); }; } &&
2509         { ac_try='test -s conftest$ac_exeext'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; }; then
2515  coin_opt_cxxflags="-O"
2516else
2517  echo "$as_me: failed program was:" >&5
2518sed 's/^/| /' conftest.$ac_ext >&5
2519
2520fi
2521rm -f conftest.err conftest.$ac_objext \
2522      conftest$ac_exeext conftest.$ac_ext
2523    fi
2524    CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $CXXDEFS $coin_warn_cxxflags"
2525  fi
2526fi
2527
2528# Try if CXXFLAGS works
2529cat >conftest.$ac_ext <<_ACEOF
2530/* confdefs.h.  */
2531_ACEOF
2532cat confdefs.h >>conftest.$ac_ext
2533cat >>conftest.$ac_ext <<_ACEOF
2534/* end confdefs.h.  */
2535
2536int
2537main ()
2538{
2539int i=0; i++;
2540  ;
2541  return 0;
2542}
2543_ACEOF
2544rm -f conftest.$ac_objext conftest$ac_exeext
2545if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2546  (eval $ac_link) 2>conftest.er1
2547  ac_status=$?
2548  grep -v '^ *+' conftest.er1 >conftest.err
2549  rm -f conftest.er1
2550  cat conftest.err >&5
2551  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2552  (exit $ac_status); } &&
2553         { ac_try='test -z "$ac_cxx_werror_flag"
2554                         || test ! -s conftest.err'
2555  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2556  (eval $ac_try) 2>&5
2557  ac_status=$?
2558  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559  (exit $ac_status); }; } &&
2560         { ac_try='test -s conftest$ac_exeext'
2561  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2562  (eval $ac_try) 2>&5
2563  ac_status=$?
2564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2565  (exit $ac_status); }; }; then
2566  :
2567else
2568  echo "$as_me: failed program was:" >&5
2569sed 's/^/| /' conftest.$ac_ext >&5
2570
2571CXXFLAGS=
2572fi
2573rm -f conftest.err conftest.$ac_objext \
2574      conftest$ac_exeext conftest.$ac_ext
2575if test -z "$CXXFLAGS"; then
2576  { echo "$as_me:$LINENO: WARNING: The flags CXXFLAGS=\"$CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&5
2577echo "$as_me: WARNING: The flags CXXFLAGS=\"$CXXFLAGS\" do not work.  I will now just try '-O', but you might want to set CXXFLAGS manually." >&2;}
2578  CXXFLAGS='-O'
2579  cat >conftest.$ac_ext <<_ACEOF
2580/* confdefs.h.  */
2581_ACEOF
2582cat confdefs.h >>conftest.$ac_ext
2583cat >>conftest.$ac_ext <<_ACEOF
2584/* end confdefs.h.  */
2585
2586int
2587main ()
2588{
2589int i=0; i++;
2590  ;
2591  return 0;
2592}
2593_ACEOF
2594rm -f conftest.$ac_objext conftest$ac_exeext
2595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2596  (eval $ac_link) 2>conftest.er1
2597  ac_status=$?
2598  grep -v '^ *+' conftest.er1 >conftest.err
2599  rm -f conftest.er1
2600  cat conftest.err >&5
2601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602  (exit $ac_status); } &&
2603         { ac_try='test -z "$ac_cxx_werror_flag"
2604                         || test ! -s conftest.err'
2605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2606  (eval $ac_try) 2>&5
2607  ac_status=$?
2608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2609  (exit $ac_status); }; } &&
2610         { ac_try='test -s conftest$ac_exeext'
2611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2612  (eval $ac_try) 2>&5
2613  ac_status=$?
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); }; }; then
2616  :
2617else
2618  echo "$as_me: failed program was:" >&5
2619sed 's/^/| /' conftest.$ac_ext >&5
2620
2621CXXFLAGS=
2622fi
2623rm -f conftest.err conftest.$ac_objext \
2624      conftest$ac_exeext conftest.$ac_ext
2625  if test -z "$CXXFLAGS"; then
2626    { echo "$as_me:$LINENO: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&5
2627echo "$as_me: WARNING: This value for CXXFLAGS does not work.  I will continue with empty CXXFLAGS, but you might want to set CXXFLAGS manually." >&2;}
2628  fi
2629fi
2630coin_cv_cxxflags="$CXXFLAGS"
2631
2632fi
2633echo "$as_me:$LINENO: result: $coin_cv_cxxflags" >&5
2634echo "${ECHO_T}$coin_cv_cxxflags" >&6 # AC_CACHE_CHECK([for C++ compiler options CXXFLAGS]
2635CXXFLAGS="$coin_cv_cxxflags"
2636
2637ac_ext=cc
2638ac_cpp='$CXXCPP $CPPFLAGS'
2639ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2640ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2641ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2642
2643
2644
2645# Initialize automake and libtool
2646
2647# On Cygwin, building DLLs doesn't work
2648case $build in
2649  *-cygwin*)
2650    if test x"$enable_shared" = xyes; then
2651      { echo "$as_me:$LINENO: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&5
2652echo "$as_me: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&2;}
2653    fi
2654    enable_shared=no
2655  ;;
2656esac
2657# By default, we only want the shared objects to be compiled
2658# Check whether --enable-static or --disable-static was given.
2659if test "${enable_static+set}" = set; then
2660  enableval="$enable_static"
2661  p=${PACKAGE-default}
2662    case $enableval in
2663    yes) enable_static=yes ;;
2664    no) enable_static=no ;;
2665    *)
2666     enable_static=no
2667      # Look at the argument we got.  We use all the common list separators.
2668      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2669      for pkg in $enableval; do
2670        IFS="$lt_save_ifs"
2671        if test "X$pkg" = "X$p"; then
2672          enable_static=yes
2673        fi
2674      done
2675      IFS="$lt_save_ifs"
2676      ;;
2677    esac
2678else
2679  enable_static=no
2680fi;
2681
2682
2683
2684echo "$as_me:$LINENO: checking for egrep" >&5
2685echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2686if test "${ac_cv_prog_egrep+set}" = set; then
2687  echo $ECHO_N "(cached) $ECHO_C" >&6
2688else
2689  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2690    then ac_cv_prog_egrep='grep -E'
2691    else ac_cv_prog_egrep='egrep'
2692    fi
2693fi
2694echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2695echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2696 EGREP=$ac_cv_prog_egrep
2697
2698
2699am__api_version="1.9"
2700# Find a good install program.  We prefer a C program (faster),
2701# so one script is as good as another.  But avoid the broken or
2702# incompatible versions:
2703# SysV /etc/install, /usr/sbin/install
2704# SunOS /usr/etc/install
2705# IRIX /sbin/install
2706# AIX /bin/install
2707# AmigaOS /C/install, which installs bootblocks on floppy discs
2708# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2709# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2710# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2711# OS/2's system install, which has a completely different semantic
2712# ./install, which can be erroneously created by make from ./install.sh.
2713echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2714echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2715if test -z "$INSTALL"; then
2716if test "${ac_cv_path_install+set}" = set; then
2717  echo $ECHO_N "(cached) $ECHO_C" >&6
2718else
2719  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720for as_dir in $PATH
2721do
2722  IFS=$as_save_IFS
2723  test -z "$as_dir" && as_dir=.
2724  # Account for people who put trailing slashes in PATH elements.
2725case $as_dir/ in
2726  ./ | .// | /cC/* | \
2727  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2728  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2729  /usr/ucb/* ) ;;
2730  *)
2731    # OSF1 and SCO ODT 3.0 have their own names for install.
2732    # Don't use installbsd from OSF since it installs stuff as root
2733    # by default.
2734    for ac_prog in ginstall scoinst install; do
2735      for ac_exec_ext in '' $ac_executable_extensions; do
2736        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2737          if test $ac_prog = install &&
2738            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2739            # AIX install.  It has an incompatible calling convention.
2740            :
2741          elif test $ac_prog = install &&
2742            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2743            # program-specific install script used by HP pwplus--don't use.
2744            :
2745          else
2746            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2747            break 3
2748          fi
2749        fi
2750      done
2751    done
2752    ;;
2753esac
2754done
2755
2756
2757fi
2758  if test "${ac_cv_path_install+set}" = set; then
2759    INSTALL=$ac_cv_path_install
2760  else
2761    # As a last resort, use the slow shell script.  We don't cache a
2762    # path for INSTALL within a source directory, because that will
2763    # break other packages using the cache if that directory is
2764    # removed, or if the path is relative.
2765    INSTALL=$ac_install_sh
2766  fi
2767fi
2768echo "$as_me:$LINENO: result: $INSTALL" >&5
2769echo "${ECHO_T}$INSTALL" >&6
2770
2771# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2772# It thinks the first close brace ends the variable substitution.
2773test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2774
2775test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2776
2777test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2778
2779echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2780echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2781# Just in case
2782sleep 1
2783echo timestamp > conftest.file
2784# Do `set' in a subshell so we don't clobber the current shell's
2785# arguments.  Must try -L first in case configure is actually a
2786# symlink; some systems play weird games with the mod time of symlinks
2787# (eg FreeBSD returns the mod time of the symlink's containing
2788# directory).
2789if (
2790   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2791   if test "$*" = "X"; then
2792      # -L didn't work.
2793      set X `ls -t $srcdir/configure conftest.file`
2794   fi
2795   rm -f conftest.file
2796   if test "$*" != "X $srcdir/configure conftest.file" \
2797      && test "$*" != "X conftest.file $srcdir/configure"; then
2798
2799      # If neither matched, then we have a broken ls.  This can happen
2800      # if, for instance, CONFIG_SHELL is bash and it inherits a
2801      # broken ls alias from the environment.  This has actually
2802      # happened.  Such a system could not be considered "sane".
2803      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2804alias in your environment" >&5
2805echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2806alias in your environment" >&2;}
2807   { (exit 1); exit 1; }; }
2808   fi
2809
2810   test "$2" = conftest.file
2811   )
2812then
2813   # Ok.
2814   :
2815else
2816   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2817Check your system clock" >&5
2818echo "$as_me: error: newly created file is older than distributed files!
2819Check your system clock" >&2;}
2820   { (exit 1); exit 1; }; }
2821fi
2822echo "$as_me:$LINENO: result: yes" >&5
2823echo "${ECHO_T}yes" >&6
2824test "$program_prefix" != NONE &&
2825  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2826# Use a double $ so make ignores it.
2827test "$program_suffix" != NONE &&
2828  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2829# Double any \ or $.  echo might interpret backslashes.
2830# By default was `s,x,x', remove it if useless.
2831cat <<\_ACEOF >conftest.sed
2832s/[\\$]/&&/g;s/;s,x,x,$//
2833_ACEOF
2834program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2835rm conftest.sed
2836
2837# expand $ac_aux_dir to an absolute path
2838am_aux_dir=`cd $ac_aux_dir && pwd`
2839
2840test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2841# Use eval to expand $SHELL
2842if eval "$MISSING --run true"; then
2843  am_missing_run="$MISSING --run "
2844else
2845  am_missing_run=
2846  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2847echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2848fi
2849
2850if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2851  # We used to keeping the `.' as first argument, in order to
2852  # allow $(mkdir_p) to be used without argument.  As in
2853  #   $(mkdir_p) $(somedir)
2854  # where $(somedir) is conditionally defined.  However this is wrong
2855  # for two reasons:
2856  #  1. if the package is installed by a user who cannot write `.'
2857  #     make install will fail,
2858  #  2. the above comment should most certainly read
2859  #     $(mkdir_p) $(DESTDIR)$(somedir)
2860  #     so it does not work when $(somedir) is undefined and
2861  #     $(DESTDIR) is not.
2862  #  To support the latter case, we have to write
2863  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2864  #  so the `.' trick is pointless.
2865  mkdir_p='mkdir -p --'
2866else
2867  # On NextStep and OpenStep, the `mkdir' command does not
2868  # recognize any option.  It will interpret all options as
2869  # directories to create, and then abort because `.' already
2870  # exists.
2871  for d in ./-p ./--version;
2872  do
2873    test -d $d && rmdir $d
2874  done
2875  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2876  if test -f "$ac_aux_dir/mkinstalldirs"; then
2877    mkdir_p='$(mkinstalldirs)'
2878  else
2879    mkdir_p='$(install_sh) -d'
2880  fi
2881fi
2882
2883for ac_prog in gawk mawk nawk awk
2884do
2885  # Extract the first word of "$ac_prog", so it can be a program name with args.
2886set dummy $ac_prog; ac_word=$2
2887echo "$as_me:$LINENO: checking for $ac_word" >&5
2888echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2889if test "${ac_cv_prog_AWK+set}" = set; then
2890  echo $ECHO_N "(cached) $ECHO_C" >&6
2891else
2892  if test -n "$AWK"; then
2893  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2894else
2895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896for as_dir in $PATH
2897do
2898  IFS=$as_save_IFS
2899  test -z "$as_dir" && as_dir=.
2900  for ac_exec_ext in '' $ac_executable_extensions; do
2901  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2902    ac_cv_prog_AWK="$ac_prog"
2903    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2904    break 2
2905  fi
2906done
2907done
2908
2909fi
2910fi
2911AWK=$ac_cv_prog_AWK
2912if test -n "$AWK"; then
2913  echo "$as_me:$LINENO: result: $AWK" >&5
2914echo "${ECHO_T}$AWK" >&6
2915else
2916  echo "$as_me:$LINENO: result: no" >&5
2917echo "${ECHO_T}no" >&6
2918fi
2919
2920  test -n "$AWK" && break
2921done
2922
2923echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2924echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2925set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2926if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2927  echo $ECHO_N "(cached) $ECHO_C" >&6
2928else
2929  cat >conftest.make <<\_ACEOF
2930all:
2931        @echo 'ac_maketemp="$(MAKE)"'
2932_ACEOF
2933# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2934eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2935if test -n "$ac_maketemp"; then
2936  eval ac_cv_prog_make_${ac_make}_set=yes
2937else
2938  eval ac_cv_prog_make_${ac_make}_set=no
2939fi
2940rm -f conftest.make
2941fi
2942if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2943  echo "$as_me:$LINENO: result: yes" >&5
2944echo "${ECHO_T}yes" >&6
2945  SET_MAKE=
2946else
2947  echo "$as_me:$LINENO: result: no" >&5
2948echo "${ECHO_T}no" >&6
2949  SET_MAKE="MAKE=${MAKE-make}"
2950fi
2951
2952rm -rf .tst 2>/dev/null
2953mkdir .tst 2>/dev/null
2954if test -d .tst; then
2955  am__leading_dot=.
2956else
2957  am__leading_dot=_
2958fi
2959rmdir .tst 2>/dev/null
2960
2961DEPDIR="${am__leading_dot}deps"
2962
2963          ac_config_commands="$ac_config_commands depfiles"
2964
2965
2966am_make=${MAKE-make}
2967cat > confinc << 'END'
2968am__doit:
2969        @echo done
2970.PHONY: am__doit
2971END
2972# If we don't find an include directive, just comment out the code.
2973echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2974echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2975am__include="#"
2976am__quote=
2977_am_result=none
2978# First try GNU make style include.
2979echo "include confinc" > confmf
2980# We grep out `Entering directory' and `Leaving directory'
2981# messages which can occur if `w' ends up in MAKEFLAGS.
2982# In particular we don't look at `^make:' because GNU make might
2983# be invoked under some other name (usually "gmake"), in which
2984# case it prints its new name instead of `make'.
2985if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2986   am__include=include
2987   am__quote=
2988   _am_result=GNU
2989fi
2990# Now try BSD make style include.
2991if test "$am__include" = "#"; then
2992   echo '.include "confinc"' > confmf
2993   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2994      am__include=.include
2995      am__quote="\""
2996      _am_result=BSD
2997   fi
2998fi
2999
3000
3001echo "$as_me:$LINENO: result: $_am_result" >&5
3002echo "${ECHO_T}$_am_result" >&6
3003rm -f confinc confmf
3004
3005# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3006if test "${enable_dependency_tracking+set}" = set; then
3007  enableval="$enable_dependency_tracking"
3008
3009fi;
3010if test "x$enable_dependency_tracking" != xno; then
3011  am_depcomp="$ac_aux_dir/depcomp"
3012  AMDEPBACKSLASH='\'
3013fi
3014
3015
3016if test "x$enable_dependency_tracking" != xno; then
3017  AMDEP_TRUE=
3018  AMDEP_FALSE='#'
3019else
3020  AMDEP_TRUE='#'
3021  AMDEP_FALSE=
3022fi
3023
3024
3025
3026ac_ext=c
3027ac_cpp='$CPP $CPPFLAGS'
3028ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3029ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3030ac_compiler_gnu=$ac_cv_c_compiler_gnu
3031if test -n "$ac_tool_prefix"; then
3032  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3033set dummy ${ac_tool_prefix}gcc; ac_word=$2
3034echo "$as_me:$LINENO: checking for $ac_word" >&5
3035echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3036if test "${ac_cv_prog_CC+set}" = set; then
3037  echo $ECHO_N "(cached) $ECHO_C" >&6
3038else
3039  if test -n "$CC"; then
3040  ac_cv_prog_CC="$CC" # Let the user override the test.
3041else
3042as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3043for as_dir in $PATH
3044do
3045  IFS=$as_save_IFS
3046  test -z "$as_dir" && as_dir=.
3047  for ac_exec_ext in '' $ac_executable_extensions; do
3048  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3049    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3050    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3051    break 2
3052  fi
3053done
3054done
3055
3056fi
3057fi
3058CC=$ac_cv_prog_CC
3059if test -n "$CC"; then
3060  echo "$as_me:$LINENO: result: $CC" >&5
3061echo "${ECHO_T}$CC" >&6
3062else
3063  echo "$as_me:$LINENO: result: no" >&5
3064echo "${ECHO_T}no" >&6
3065fi
3066
3067fi
3068if test -z "$ac_cv_prog_CC"; then
3069  ac_ct_CC=$CC
3070  # Extract the first word of "gcc", so it can be a program name with args.
3071set dummy gcc; ac_word=$2
3072echo "$as_me:$LINENO: checking for $ac_word" >&5
3073echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3075  echo $ECHO_N "(cached) $ECHO_C" >&6
3076else
3077  if test -n "$ac_ct_CC"; then
3078  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3079else
3080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3081for as_dir in $PATH
3082do
3083  IFS=$as_save_IFS
3084  test -z "$as_dir" && as_dir=.
3085  for ac_exec_ext in '' $ac_executable_extensions; do
3086  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3087    ac_cv_prog_ac_ct_CC="gcc"
3088    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3089    break 2
3090  fi
3091done
3092done
3093
3094fi
3095fi
3096ac_ct_CC=$ac_cv_prog_ac_ct_CC
3097if test -n "$ac_ct_CC"; then
3098  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3099echo "${ECHO_T}$ac_ct_CC" >&6
3100else
3101  echo "$as_me:$LINENO: result: no" >&5
3102echo "${ECHO_T}no" >&6
3103fi
3104
3105  CC=$ac_ct_CC
3106else
3107  CC="$ac_cv_prog_CC"
3108fi
3109
3110if test -z "$CC"; then
3111  if test -n "$ac_tool_prefix"; then
3112  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3113set dummy ${ac_tool_prefix}cc; ac_word=$2
3114echo "$as_me:$LINENO: checking for $ac_word" >&5
3115echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3116if test "${ac_cv_prog_CC+set}" = set; then
3117  echo $ECHO_N "(cached) $ECHO_C" >&6
3118else
3119  if test -n "$CC"; then
3120  ac_cv_prog_CC="$CC" # Let the user override the test.
3121else
3122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3123for as_dir in $PATH
3124do
3125  IFS=$as_save_IFS
3126  test -z "$as_dir" && as_dir=.
3127  for ac_exec_ext in '' $ac_executable_extensions; do
3128  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3129    ac_cv_prog_CC="${ac_tool_prefix}cc"
3130    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3131    break 2
3132  fi
3133done
3134done
3135
3136fi
3137fi
3138CC=$ac_cv_prog_CC
3139if test -n "$CC"; then
3140  echo "$as_me:$LINENO: result: $CC" >&5
3141echo "${ECHO_T}$CC" >&6
3142else
3143  echo "$as_me:$LINENO: result: no" >&5
3144echo "${ECHO_T}no" >&6
3145fi
3146
3147fi
3148if test -z "$ac_cv_prog_CC"; then
3149  ac_ct_CC=$CC
3150  # Extract the first word of "cc", so it can be a program name with args.
3151set dummy cc; ac_word=$2
3152echo "$as_me:$LINENO: checking for $ac_word" >&5
3153echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3154if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3155  echo $ECHO_N "(cached) $ECHO_C" >&6
3156else
3157  if test -n "$ac_ct_CC"; then
3158  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3159else
3160as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3161for as_dir in $PATH
3162do
3163  IFS=$as_save_IFS
3164  test -z "$as_dir" && as_dir=.
3165  for ac_exec_ext in '' $ac_executable_extensions; do
3166  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3167    ac_cv_prog_ac_ct_CC="cc"
3168    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3169    break 2
3170  fi
3171done
3172done
3173
3174fi
3175fi
3176ac_ct_CC=$ac_cv_prog_ac_ct_CC
3177if test -n "$ac_ct_CC"; then
3178  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3179echo "${ECHO_T}$ac_ct_CC" >&6
3180else
3181  echo "$as_me:$LINENO: result: no" >&5
3182echo "${ECHO_T}no" >&6
3183fi
3184
3185  CC=$ac_ct_CC
3186else
3187  CC="$ac_cv_prog_CC"
3188fi
3189
3190fi
3191if test -z "$CC"; then
3192  # Extract the first word of "cc", so it can be a program name with args.
3193set dummy cc; ac_word=$2
3194echo "$as_me:$LINENO: checking for $ac_word" >&5
3195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3196if test "${ac_cv_prog_CC+set}" = set; then
3197  echo $ECHO_N "(cached) $ECHO_C" >&6
3198else
3199  if test -n "$CC"; then
3200  ac_cv_prog_CC="$CC" # Let the user override the test.
3201else
3202  ac_prog_rejected=no
3203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3204for as_dir in $PATH
3205do
3206  IFS=$as_save_IFS
3207  test -z "$as_dir" && as_dir=.
3208  for ac_exec_ext in '' $ac_executable_extensions; do
3209  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3210    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3211       ac_prog_rejected=yes
3212       continue
3213     fi
3214    ac_cv_prog_CC="cc"
3215    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3216    break 2
3217  fi
3218done
3219done
3220
3221if test $ac_prog_rejected = yes; then
3222  # We found a bogon in the path, so make sure we never use it.
3223  set dummy $ac_cv_prog_CC
3224  shift
3225  if test $# != 0; then
3226    # We chose a different compiler from the bogus one.
3227    # However, it has the same basename, so the bogon will be chosen
3228    # first if we set CC to just the basename; use the full file name.
3229    shift
3230    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3231  fi
3232fi
3233fi
3234fi
3235CC=$ac_cv_prog_CC
3236if test -n "$CC"; then
3237  echo "$as_me:$LINENO: result: $CC" >&5
3238echo "${ECHO_T}$CC" >&6
3239else
3240  echo "$as_me:$LINENO: result: no" >&5
3241echo "${ECHO_T}no" >&6
3242fi
3243
3244fi
3245if test -z "$CC"; then
3246  if test -n "$ac_tool_prefix"; then
3247  for ac_prog in cl
3248  do
3249    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3250set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3251echo "$as_me:$LINENO: checking for $ac_word" >&5
3252echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3253if test "${ac_cv_prog_CC+set}" = set; then
3254  echo $ECHO_N "(cached) $ECHO_C" >&6
3255else
3256  if test -n "$CC"; then
3257  ac_cv_prog_CC="$CC" # Let the user override the test.
3258else
3259as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260for as_dir in $PATH
3261do
3262  IFS=$as_save_IFS
3263  test -z "$as_dir" && as_dir=.
3264  for ac_exec_ext in '' $ac_executable_extensions; do
3265  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3266    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3267    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268    break 2
3269  fi
3270done
3271done
3272
3273fi
3274fi
3275CC=$ac_cv_prog_CC
3276if test -n "$CC"; then
3277  echo "$as_me:$LINENO: result: $CC" >&5
3278echo "${ECHO_T}$CC" >&6
3279else
3280  echo "$as_me:$LINENO: result: no" >&5
3281echo "${ECHO_T}no" >&6
3282fi
3283
3284    test -n "$CC" && break
3285  done
3286fi
3287if test -z "$CC"; then
3288  ac_ct_CC=$CC
3289  for ac_prog in cl
3290do
3291  # Extract the first word of "$ac_prog", so it can be a program name with args.
3292set dummy $ac_prog; ac_word=$2
3293echo "$as_me:$LINENO: checking for $ac_word" >&5
3294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3295if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3296  echo $ECHO_N "(cached) $ECHO_C" >&6
3297else
3298  if test -n "$ac_ct_CC"; then
3299  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3300else
3301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3302for as_dir in $PATH
3303do
3304  IFS=$as_save_IFS
3305  test -z "$as_dir" && as_dir=.
3306  for ac_exec_ext in '' $ac_executable_extensions; do
3307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3308    ac_cv_prog_ac_ct_CC="$ac_prog"
3309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3310    break 2
3311  fi
3312done
3313done
3314
3315fi
3316fi
3317ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318if test -n "$ac_ct_CC"; then
3319  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3320echo "${ECHO_T}$ac_ct_CC" >&6
3321else
3322  echo "$as_me:$LINENO: result: no" >&5
3323echo "${ECHO_T}no" >&6
3324fi
3325
3326  test -n "$ac_ct_CC" && break
3327done
3328
3329  CC=$ac_ct_CC
3330fi
3331
3332fi
3333
3334
3335test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3336See \`config.log' for more details." >&5
3337echo "$as_me: error: no acceptable C compiler found in \$PATH
3338See \`config.log' for more details." >&2;}
3339   { (exit 1); exit 1; }; }
3340
3341# Provide some information about the compiler.
3342echo "$as_me:$LINENO:" \
3343     "checking for C compiler version" >&5
3344ac_compiler=`set X $ac_compile; echo $2`
3345{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3346  (eval $ac_compiler --version </dev/null >&5) 2>&5
3347  ac_status=$?
3348  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349  (exit $ac_status); }
3350{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3351  (eval $ac_compiler -v </dev/null >&5) 2>&5
3352  ac_status=$?
3353  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3354  (exit $ac_status); }
3355{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3356  (eval $ac_compiler -V </dev/null >&5) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }
3360
3361echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3362echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3363if test "${ac_cv_c_compiler_gnu+set}" = set; then
3364  echo $ECHO_N "(cached) $ECHO_C" >&6
3365else
3366  cat >conftest.$ac_ext <<_ACEOF
3367/* confdefs.h.  */
3368_ACEOF
3369cat confdefs.h >>conftest.$ac_ext
3370cat >>conftest.$ac_ext <<_ACEOF
3371/* end confdefs.h.  */
3372
3373int
3374main ()
3375{
3376#ifndef __GNUC__
3377       choke me
3378#endif
3379
3380  ;
3381  return 0;
3382}
3383_ACEOF
3384rm -f conftest.$ac_objext
3385if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3386  (eval $ac_compile) 2>conftest.er1
3387  ac_status=$?
3388  grep -v '^ *+' conftest.er1 >conftest.err
3389  rm -f conftest.er1
3390  cat conftest.err >&5
3391  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3392  (exit $ac_status); } &&
3393         { ac_try='test -z "$ac_c_werror_flag"
3394                         || test ! -s conftest.err'
3395  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3396  (eval $ac_try) 2>&5
3397  ac_status=$?
3398  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3399  (exit $ac_status); }; } &&
3400         { ac_try='test -s conftest.$ac_objext'
3401  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3402  (eval $ac_try) 2>&5
3403  ac_status=$?
3404  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3405  (exit $ac_status); }; }; then
3406  ac_compiler_gnu=yes
3407else
3408  echo "$as_me: failed program was:" >&5
3409sed 's/^/| /' conftest.$ac_ext >&5
3410
3411ac_compiler_gnu=no
3412fi
3413rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3414ac_cv_c_compiler_gnu=$ac_compiler_gnu
3415
3416fi
3417echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3418echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3419GCC=`test $ac_compiler_gnu = yes && echo yes`
3420ac_test_CFLAGS=${CFLAGS+set}
3421ac_save_CFLAGS=$CFLAGS
3422CFLAGS="-g"
3423echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3424echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3425if test "${ac_cv_prog_cc_g+set}" = set; then
3426  echo $ECHO_N "(cached) $ECHO_C" >&6
3427else
3428  cat >conftest.$ac_ext <<_ACEOF
3429/* confdefs.h.  */
3430_ACEOF
3431cat confdefs.h >>conftest.$ac_ext
3432cat >>conftest.$ac_ext <<_ACEOF
3433/* end confdefs.h.  */
3434
3435int
3436main ()
3437{
3438
3439  ;
3440  return 0;
3441}
3442_ACEOF
3443rm -f conftest.$ac_objext
3444if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3445  (eval $ac_compile) 2>conftest.er1
3446  ac_status=$?
3447  grep -v '^ *+' conftest.er1 >conftest.err
3448  rm -f conftest.er1
3449  cat conftest.err >&5
3450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451  (exit $ac_status); } &&
3452         { ac_try='test -z "$ac_c_werror_flag"
3453                         || test ! -s conftest.err'
3454  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455  (eval $ac_try) 2>&5
3456  ac_status=$?
3457  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458  (exit $ac_status); }; } &&
3459         { ac_try='test -s conftest.$ac_objext'
3460  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3461  (eval $ac_try) 2>&5
3462  ac_status=$?
3463  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3464  (exit $ac_status); }; }; then
3465  ac_cv_prog_cc_g=yes
3466else
3467  echo "$as_me: failed program was:" >&5
3468sed 's/^/| /' conftest.$ac_ext >&5
3469
3470ac_cv_prog_cc_g=no
3471fi
3472rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3473fi
3474echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3475echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3476if test "$ac_test_CFLAGS" = set; then
3477  CFLAGS=$ac_save_CFLAGS
3478elif test $ac_cv_prog_cc_g = yes; then
3479  if test "$GCC" = yes; then
3480    CFLAGS="-g -O2"
3481  else
3482    CFLAGS="-g"
3483  fi
3484else
3485  if test "$GCC" = yes; then
3486    CFLAGS="-O2"
3487  else
3488    CFLAGS=
3489  fi
3490fi
3491echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3492echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3493if test "${ac_cv_prog_cc_stdc+set}" = set; then
3494  echo $ECHO_N "(cached) $ECHO_C" >&6
3495else
3496  ac_cv_prog_cc_stdc=no
3497ac_save_CC=$CC
3498cat >conftest.$ac_ext <<_ACEOF
3499/* confdefs.h.  */
3500_ACEOF
3501cat confdefs.h >>conftest.$ac_ext
3502cat >>conftest.$ac_ext <<_ACEOF
3503/* end confdefs.h.  */
3504#include <stdarg.h>
3505#include <stdio.h>
3506#include <sys/types.h>
3507#include <sys/stat.h>
3508/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3509struct buf { int x; };
3510FILE * (*rcsopen) (struct buf *, struct stat *, int);
3511static char *e (p, i)
3512     char **p;
3513     int i;
3514{
3515  return p[i];
3516}
3517static char *f (char * (*g) (char **, int), char **p, ...)
3518{
3519  char *s;
3520  va_list v;
3521  va_start (v,p);
3522  s = g (p, va_arg (v,int));
3523  va_end (v);
3524  return s;
3525}
3526
3527/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3528   function prototypes and stuff, but not '\xHH' hex character constants.
3529   These don't provoke an error unfortunately, instead are silently treated
3530   as 'x'.  The following induces an error, until -std1 is added to get
3531   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3532   array size at least.  It's necessary to write '\x00'==0 to get something
3533   that's true only with -std1.  */
3534int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3535
3536int test (int i, double x);
3537struct s1 {int (*f) (int a);};
3538struct s2 {int (*f) (double a);};
3539int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3540int argc;
3541char **argv;
3542int
3543main ()
3544{
3545return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3546  ;
3547  return 0;
3548}
3549_ACEOF
3550# Don't try gcc -ansi; that turns off useful extensions and
3551# breaks some systems' header files.
3552# AIX                   -qlanglvl=ansi
3553# Ultrix and OSF/1      -std1
3554# HP-UX 10.20 and later -Ae
3555# HP-UX older versions  -Aa -D_HPUX_SOURCE
3556# SVR4                  -Xc -D__EXTENSIONS__
3557for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3558do
3559  CC="$ac_save_CC $ac_arg"
3560  rm -f conftest.$ac_objext
3561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3562  (eval $ac_compile) 2>conftest.er1
3563  ac_status=$?
3564  grep -v '^ *+' conftest.er1 >conftest.err
3565  rm -f conftest.er1
3566  cat conftest.err >&5
3567  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568  (exit $ac_status); } &&
3569         { ac_try='test -z "$ac_c_werror_flag"
3570                         || test ! -s conftest.err'
3571  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3572  (eval $ac_try) 2>&5
3573  ac_status=$?
3574  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3575  (exit $ac_status); }; } &&
3576         { ac_try='test -s conftest.$ac_objext'
3577  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3578  (eval $ac_try) 2>&5
3579  ac_status=$?
3580  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581  (exit $ac_status); }; }; then
3582  ac_cv_prog_cc_stdc=$ac_arg
3583break
3584else
3585  echo "$as_me: failed program was:" >&5
3586sed 's/^/| /' conftest.$ac_ext >&5
3587
3588fi
3589rm -f conftest.err conftest.$ac_objext
3590done
3591rm -f conftest.$ac_ext conftest.$ac_objext
3592CC=$ac_save_CC
3593
3594fi
3595
3596case "x$ac_cv_prog_cc_stdc" in
3597  x|xno)
3598    echo "$as_me:$LINENO: result: none needed" >&5
3599echo "${ECHO_T}none needed" >&6 ;;
3600  *)
3601    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3602echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3603    CC="$CC $ac_cv_prog_cc_stdc" ;;
3604esac
3605
3606# Some people use a C++ compiler to compile C.  Since we use `exit',
3607# in C++ we need to declare it.  In case someone uses the same compiler
3608# for both compiling C and C++ we need to have the C++ compiler decide
3609# the declaration of exit, since it's the most demanding environment.
3610cat >conftest.$ac_ext <<_ACEOF
3611#ifndef __cplusplus
3612  choke me
3613#endif
3614_ACEOF
3615rm -f conftest.$ac_objext
3616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3617  (eval $ac_compile) 2>conftest.er1
3618  ac_status=$?
3619  grep -v '^ *+' conftest.er1 >conftest.err
3620  rm -f conftest.er1
3621  cat conftest.err >&5
3622  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3623  (exit $ac_status); } &&
3624         { ac_try='test -z "$ac_c_werror_flag"
3625                         || test ! -s conftest.err'
3626  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3627  (eval $ac_try) 2>&5
3628  ac_status=$?
3629  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630  (exit $ac_status); }; } &&
3631         { ac_try='test -s conftest.$ac_objext'
3632  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3633  (eval $ac_try) 2>&5
3634  ac_status=$?
3635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636  (exit $ac_status); }; }; then
3637  for ac_declaration in \
3638   '' \
3639   'extern "C" void std::exit (int) throw (); using std::exit;' \
3640   'extern "C" void std::exit (int); using std::exit;' \
3641   'extern "C" void exit (int) throw ();' \
3642   'extern "C" void exit (int);' \
3643   'void exit (int);'
3644do
3645  cat >conftest.$ac_ext <<_ACEOF
3646/* confdefs.h.  */
3647_ACEOF
3648cat confdefs.h >>conftest.$ac_ext
3649cat >>conftest.$ac_ext <<_ACEOF
3650/* end confdefs.h.  */
3651$ac_declaration
3652#include <stdlib.h>
3653int
3654main ()
3655{
3656exit (42);
3657  ;
3658  return 0;
3659}
3660_ACEOF
3661rm -f conftest.$ac_objext
3662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3663  (eval $ac_compile) 2>conftest.er1
3664  ac_status=$?
3665  grep -v '^ *+' conftest.er1 >conftest.err
3666  rm -f conftest.er1
3667  cat conftest.err >&5
3668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669  (exit $ac_status); } &&
3670         { ac_try='test -z "$ac_c_werror_flag"
3671                         || test ! -s conftest.err'
3672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3673  (eval $ac_try) 2>&5
3674  ac_status=$?
3675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676  (exit $ac_status); }; } &&
3677         { ac_try='test -s conftest.$ac_objext'
3678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3679  (eval $ac_try) 2>&5
3680  ac_status=$?
3681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682  (exit $ac_status); }; }; then
3683  :
3684else
3685  echo "$as_me: failed program was:" >&5
3686sed 's/^/| /' conftest.$ac_ext >&5
3687
3688continue
3689fi
3690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3691  cat >conftest.$ac_ext <<_ACEOF
3692/* confdefs.h.  */
3693_ACEOF
3694cat confdefs.h >>conftest.$ac_ext
3695cat >>conftest.$ac_ext <<_ACEOF
3696/* end confdefs.h.  */
3697$ac_declaration
3698int
3699main ()
3700{
3701exit (42);
3702  ;
3703  return 0;
3704}
3705_ACEOF
3706rm -f conftest.$ac_objext
3707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3708  (eval $ac_compile) 2>conftest.er1
3709  ac_status=$?
3710  grep -v '^ *+' conftest.er1 >conftest.err
3711  rm -f conftest.er1
3712  cat conftest.err >&5
3713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3714  (exit $ac_status); } &&
3715         { ac_try='test -z "$ac_c_werror_flag"
3716                         || test ! -s conftest.err'
3717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3718  (eval $ac_try) 2>&5
3719  ac_status=$?
3720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721  (exit $ac_status); }; } &&
3722         { ac_try='test -s conftest.$ac_objext'
3723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3724  (eval $ac_try) 2>&5
3725  ac_status=$?
3726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727  (exit $ac_status); }; }; then
3728  break
3729else
3730  echo "$as_me: failed program was:" >&5
3731sed 's/^/| /' conftest.$ac_ext >&5
3732
3733fi
3734rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3735done
3736rm -f conftest*
3737if test -n "$ac_declaration"; then
3738  echo '#ifdef __cplusplus' >>confdefs.h
3739  echo $ac_declaration      >>confdefs.h
3740  echo '#endif'             >>confdefs.h
3741fi
3742
3743else
3744  echo "$as_me: failed program was:" >&5
3745sed 's/^/| /' conftest.$ac_ext >&5
3746
3747fi
3748rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3749ac_ext=c
3750ac_cpp='$CPP $CPPFLAGS'
3751ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3752ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3753ac_compiler_gnu=$ac_cv_c_compiler_gnu
3754
3755depcc="$CC"   am_compiler_list=
3756
3757echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3758echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3759if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3760  echo $ECHO_N "(cached) $ECHO_C" >&6
3761else
3762  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3763  # We make a subdir and do the tests there.  Otherwise we can end up
3764  # making bogus files that we don't know about and never remove.  For
3765  # instance it was reported that on HP-UX the gcc test will end up
3766  # making a dummy file named `D' -- because `-MD' means `put the output
3767  # in D'.
3768  mkdir conftest.dir
3769  # Copy depcomp to subdir because otherwise we won't find it if we're
3770  # using a relative directory.
3771  cp "$am_depcomp" conftest.dir
3772  cd conftest.dir
3773  # We will build objects and dependencies in a subdirectory because
3774  # it helps to detect inapplicable dependency modes.  For instance
3775  # both Tru64's cc and ICC support -MD to output dependencies as a
3776  # side effect of compilation, but ICC will put the dependencies in
3777  # the current directory while Tru64 will put them in the object
3778  # directory.
3779  mkdir sub
3780
3781  am_cv_CC_dependencies_compiler_type=none
3782  if test "$am_compiler_list" = ""; then
3783     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3784  fi
3785  for depmode in $am_compiler_list; do
3786    # Setup a source with many dependencies, because some compilers
3787    # like to wrap large dependency lists on column 80 (with \), and
3788    # we should not choose a depcomp mode which is confused by this.
3789    #
3790    # We need to recreate these files for each test, as the compiler may
3791    # overwrite some of them when testing with obscure command lines.
3792    # This happens at least with the AIX C compiler.
3793    : > sub/conftest.c
3794    for i in 1 2 3 4 5 6; do
3795      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3796      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3797      # Solaris 8's {/usr,}/bin/sh.
3798      touch sub/conftst$i.h
3799    done
3800    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3801
3802    case $depmode in
3803    nosideeffect)
3804      # after this tag, mechanisms are not by side-effect, so they'll
3805      # only be used when explicitly requested
3806      if test "x$enable_dependency_tracking" = xyes; then
3807        continue
3808      else
3809        break
3810      fi
3811      ;;
3812    none) break ;;
3813    esac
3814    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3815    # mode.  It turns out that the SunPro C++ compiler does not properly
3816    # handle `-M -o', and we need to detect this.
3817    if depmode=$depmode \
3818       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3819       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3820       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3821         >/dev/null 2>conftest.err &&
3822       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3823       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3824       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3825      # icc doesn't choke on unknown options, it will just issue warnings
3826      # or remarks (even with -Werror).  So we grep stderr for any message
3827      # that says an option was ignored or not supported.
3828      # When given -MP, icc 7.0 and 7.1 complain thusly:
3829      #   icc: Command line warning: ignoring option '-M'; no argument required
3830      # The diagnosis changed in icc 8.0:
3831      #   icc: Command line remark: option '-MP' not supported
3832      if (grep 'ignoring option' conftest.err ||
3833          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3834        am_cv_CC_dependencies_compiler_type=$depmode
3835        break
3836      fi
3837    fi
3838  done
3839
3840  cd ..
3841  rm -rf conftest.dir
3842else
3843  am_cv_CC_dependencies_compiler_type=none
3844fi
3845
3846fi
3847echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3848echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3849CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3850
3851
3852
3853if
3854  test "x$enable_dependency_tracking" != xno \
3855  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3856  am__fastdepCC_TRUE=
3857  am__fastdepCC_FALSE='#'
3858else
3859  am__fastdepCC_TRUE='#'
3860  am__fastdepCC_FALSE=
3861fi
3862
3863
3864
3865ac_ext=c
3866ac_cpp='$CPP $CPPFLAGS'
3867ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3868ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3869ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870
3871if test x"" = x; then
3872  hdr="#include <dlfcn.h>"
3873else
3874  hdr=""
3875fi
3876
3877for ac_header in dlfcn.h
3878do
3879as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3880echo "$as_me:$LINENO: checking for $ac_header" >&5
3881echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3882if eval "test \"\${$as_ac_Header+set}\" = set"; then
3883  echo $ECHO_N "(cached) $ECHO_C" >&6
3884else
3885  cat >conftest.$ac_ext <<_ACEOF
3886/* confdefs.h.  */
3887_ACEOF
3888cat confdefs.h >>conftest.$ac_ext
3889cat >>conftest.$ac_ext <<_ACEOF
3890/* end confdefs.h.  */
3891$hdr
3892
3893#include <$ac_header>
3894_ACEOF
3895rm -f conftest.$ac_objext
3896if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3897  (eval $ac_compile) 2>conftest.er1
3898  ac_status=$?
3899  grep -v '^ *+' conftest.er1 >conftest.err
3900  rm -f conftest.er1
3901  cat conftest.err >&5
3902  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3903  (exit $ac_status); } &&
3904         { ac_try='test -z "$ac_c_werror_flag"
3905                         || test ! -s conftest.err'
3906  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3907  (eval $ac_try) 2>&5
3908  ac_status=$?
3909  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3910  (exit $ac_status); }; } &&
3911         { ac_try='test -s conftest.$ac_objext'
3912  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3913  (eval $ac_try) 2>&5
3914  ac_status=$?
3915  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3916  (exit $ac_status); }; }; then
3917  eval "$as_ac_Header=yes"
3918else
3919  echo "$as_me: failed program was:" >&5
3920sed 's/^/| /' conftest.$ac_ext >&5
3921
3922eval "$as_ac_Header=no"
3923fi
3924rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3925fi
3926echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3927echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3928if test `eval echo '${'$as_ac_Header'}'` = yes; then
3929  cat >>confdefs.h <<_ACEOF
3930#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3931_ACEOF
3932
3933fi
3934
3935done
3936
3937
3938ac_ext=cc
3939ac_cpp='$CXXCPP $CPPFLAGS'
3940ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3941ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3942ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3943
3944
3945# Check whether --enable-shared or --disable-shared was given.
3946if test "${enable_shared+set}" = set; then
3947  enableval="$enable_shared"
3948  p=${PACKAGE-default}
3949    case $enableval in
3950    yes) enable_shared=yes ;;
3951    no) enable_shared=no ;;
3952    *)
3953      enable_shared=no
3954      # Look at the argument we got.  We use all the common list separators.
3955      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3956      for pkg in $enableval; do
3957        IFS="$lt_save_ifs"
3958        if test "X$pkg" = "X$p"; then
3959          enable_shared=yes
3960        fi
3961      done
3962      IFS="$lt_save_ifs"
3963      ;;
3964    esac
3965else
3966  enable_shared=yes
3967fi;
3968
3969# Check whether --enable-fast-install or --disable-fast-install was given.
3970if test "${enable_fast_install+set}" = set; then
3971  enableval="$enable_fast_install"
3972  p=${PACKAGE-default}
3973    case $enableval in
3974    yes) enable_fast_install=yes ;;
3975    no) enable_fast_install=no ;;
3976    *)
3977      enable_fast_install=no
3978      # Look at the argument we got.  We use all the common list separators.
3979      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3980      for pkg in $enableval; do
3981        IFS="$lt_save_ifs"
3982        if test "X$pkg" = "X$p"; then
3983          enable_fast_install=yes
3984        fi
3985      done
3986      IFS="$lt_save_ifs"
3987      ;;
3988    esac
3989else
3990  enable_fast_install=yes
3991fi;
3992
3993echo "$as_me:$LINENO: checking host system type" >&5
3994echo $ECHO_N "checking host system type... $ECHO_C" >&6
3995if test "${ac_cv_host+set}" = set; then
3996  echo $ECHO_N "(cached) $ECHO_C" >&6
3997else
3998  ac_cv_host_alias=$host_alias
3999test -z "$ac_cv_host_alias" &&
4000  ac_cv_host_alias=$ac_cv_build_alias
4001ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4002  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4003echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4004   { (exit 1); exit 1; }; }
4005
4006fi
4007echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4008echo "${ECHO_T}$ac_cv_host" >&6
4009host=$ac_cv_host
4010host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4011host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4012host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4013
4014
4015echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4016echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4017if test "${lt_cv_path_SED+set}" = set; then
4018  echo $ECHO_N "(cached) $ECHO_C" >&6
4019else
4020  # Loop through the user's path and test for sed and gsed.
4021# Then use that list of sed's as ones to test for truncation.
4022as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023for as_dir in $PATH
4024do
4025  IFS=$as_save_IFS
4026  test -z "$as_dir" && as_dir=.
4027  for lt_ac_prog in sed gsed; do
4028    for ac_exec_ext in '' $ac_executable_extensions; do
4029      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4030        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4031      fi
4032    done
4033  done
4034done
4035lt_ac_max=0
4036lt_ac_count=0
4037# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4038# along with /bin/sed that truncates output.
4039for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4040  test ! -f $lt_ac_sed && continue
4041  cat /dev/null > conftest.in
4042  lt_ac_count=0
4043  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4044  # Check for GNU sed and select it if it is found.
4045  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4046    lt_cv_path_SED=$lt_ac_sed
4047    break
4048  fi
4049  while true; do
4050    cat conftest.in conftest.in >conftest.tmp
4051    mv conftest.tmp conftest.in
4052    cp conftest.in conftest.nl
4053    echo >>conftest.nl
4054    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4055    cmp -s conftest.out conftest.nl || break
4056    # 10000 chars as input seems more than enough
4057    test $lt_ac_count -gt 10 && break
4058    lt_ac_count=`expr $lt_ac_count + 1`
4059    if test $lt_ac_count -gt $lt_ac_max; then
4060      lt_ac_max=$lt_ac_count
4061      lt_cv_path_SED=$lt_ac_sed
4062    fi
4063  done
4064done
4065
4066fi
4067
4068SED=$lt_cv_path_SED
4069echo "$as_me:$LINENO: result: $SED" >&5
4070echo "${ECHO_T}$SED" >&6
4071
4072
4073# Check whether --with-gnu-ld or --without-gnu-ld was given.
4074if test "${with_gnu_ld+set}" = set; then
4075  withval="$with_gnu_ld"
4076  test "$withval" = no || with_gnu_ld=yes
4077else
4078  with_gnu_ld=no
4079fi;
4080ac_prog=ld
4081if test "$GCC" = yes; then
4082  # Check if gcc -print-prog-name=ld gives a path.
4083  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4084echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4085  case $host in
4086  *-*-mingw*)
4087    # gcc leaves a trailing carriage return which upsets mingw
4088    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4089  *)
4090    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4091  esac
4092  case $ac_prog in
4093    # Accept absolute paths.
4094    [\\/]* | ?:[\\/]*)
4095      re_direlt='/[^/][^/]*/\.\./'
4096      # Canonicalize the pathname of ld
4097      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4098      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4099        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4100      done
4101      test -z "$LD" && LD="$ac_prog"
4102      ;;
4103  "")
4104    # If it fails, then pretend we aren't using GCC.
4105    ac_prog=ld
4106    ;;
4107  *)
4108    # If it is relative, then search for the first ld in PATH.
4109    with_gnu_ld=unknown
4110    ;;
4111  esac
4112elif test "$with_gnu_ld" = yes; then
4113  echo "$as_me:$LINENO: checking for GNU ld" >&5
4114echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4115else
4116  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4117echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4118fi
4119if test "${lt_cv_path_LD+set}" = set; then
4120  echo $ECHO_N "(cached) $ECHO_C" >&6
4121else
4122  if test -z "$LD"; then
4123  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4124  for ac_dir in $PATH; do
4125    IFS="$lt_save_ifs"
4126    test -z "$ac_dir" && ac_dir=.
4127    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4128      lt_cv_path_LD="$ac_dir/$ac_prog"
4129      # Check to see if the program is GNU ld.  I'd rather use --version,
4130      # but apparently some variants of GNU ld only accept -v.
4131      # Break only if it was the GNU/non-GNU ld that we prefer.
4132      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4133      *GNU* | *'with BFD'*)
4134        test "$with_gnu_ld" != no && break
4135        ;;
4136      *)
4137        test "$with_gnu_ld" != yes && break
4138        ;;
4139      esac
4140    fi
4141  done
4142  IFS="$lt_save_ifs"
4143else
4144  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4145fi
4146fi
4147
4148LD="$lt_cv_path_LD"
4149if test -n "$LD"; then
4150  echo "$as_me:$LINENO: result: $LD" >&5
4151echo "${ECHO_T}$LD" >&6
4152else
4153  echo "$as_me:$LINENO: result: no" >&5
4154echo "${ECHO_T}no" >&6
4155fi
4156test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4157echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4158   { (exit 1); exit 1; }; }
4159echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4160echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4161if test "${lt_cv_prog_gnu_ld+set}" = set; then
4162  echo $ECHO_N "(cached) $ECHO_C" >&6
4163else
4164  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4165case `$LD -v 2>&1 </dev/null` in
4166*GNU* | *'with BFD'*)
4167  lt_cv_prog_gnu_ld=yes
4168  ;;
4169*)
4170  lt_cv_prog_gnu_ld=no
4171  ;;
4172esac
4173fi
4174echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4175echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4176with_gnu_ld=$lt_cv_prog_gnu_ld
4177
4178
4179echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4180echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4181if test "${lt_cv_ld_reload_flag+set}" = set; then
4182  echo $ECHO_N "(cached) $ECHO_C" >&6
4183else
4184  lt_cv_ld_reload_flag='-r'
4185fi
4186echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4187echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4188reload_flag=$lt_cv_ld_reload_flag
4189case $reload_flag in
4190"" | " "*) ;;
4191*) reload_flag=" $reload_flag" ;;
4192esac
4193reload_cmds='$LD$reload_flag -o $output$reload_objs'
4194case $host_os in
4195  darwin*)
4196    if test "$GCC" = yes; then
4197      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4198    else
4199      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4200    fi
4201    ;;
4202esac
4203
4204echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4205echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4206if test "${lt_cv_path_NM+set}" = set; then
4207  echo $ECHO_N "(cached) $ECHO_C" >&6
4208else
4209  if test -n "$NM"; then
4210  # Let the user override the test.
4211  lt_cv_path_NM="$NM"
4212else
4213  lt_nm_to_check="${ac_tool_prefix}nm"
4214  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4215    lt_nm_to_check="$lt_nm_to_check nm"
4216  fi
4217  for lt_tmp_nm in $lt_nm_to_check; do
4218    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4219    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4220      IFS="$lt_save_ifs"
4221      test -z "$ac_dir" && ac_dir=.
4222      tmp_nm="$ac_dir/$lt_tmp_nm"
4223      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4224        # Check to see if the nm accepts a BSD-compat flag.
4225        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4226        #   nm: unknown option "B" ignored
4227        # Tru64's nm complains that /dev/null is an invalid object file
4228        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4229        */dev/null* | *'Invalid file or object type'*)
4230          lt_cv_path_NM="$tmp_nm -B"
4231          break
4232          ;;
4233        *)
4234          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4235          */dev/null*)
4236            lt_cv_path_NM="$tmp_nm -p"
4237            break
4238            ;;
4239          *)
4240            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4241            continue # so that we can try to find one that supports BSD flags
4242            ;;
4243          esac
4244          ;;
4245        esac
4246      fi
4247    done
4248    IFS="$lt_save_ifs"
4249  done
4250  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4251fi
4252fi
4253echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4254echo "${ECHO_T}$lt_cv_path_NM" >&6
4255NM="$lt_cv_path_NM"
4256
4257echo "$as_me:$LINENO: checking whether ln -s works" >&5
4258echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4259LN_S=$as_ln_s
4260if test "$LN_S" = "ln -s"; then
4261  echo "$as_me:$LINENO: result: yes" >&5
4262echo "${ECHO_T}yes" >&6
4263else
4264  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4265echo "${ECHO_T}no, using $LN_S" >&6
4266fi
4267
4268echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4269echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4270if test "${lt_cv_deplibs_check_method+set}" = set; then
4271  echo $ECHO_N "(cached) $ECHO_C" >&6
4272else
4273  lt_cv_file_magic_cmd='$MAGIC_CMD'
4274lt_cv_file_magic_test_file=
4275lt_cv_deplibs_check_method='unknown'
4276# Need to set the preceding variable on all platforms that support
4277# interlibrary dependencies.
4278# 'none' -- dependencies not supported.
4279# `unknown' -- same as none, but documents that we really don't know.
4280# 'pass_all' -- all dependencies passed with no checks.
4281# 'test_compile' -- check by making test program.
4282# 'file_magic [[regex]]' -- check by looking for files in library path
4283# which responds to the $file_magic_cmd with a given extended regex.
4284# If you have `file' or equivalent on your system and you're not sure
4285# whether `pass_all' will *always* work, you probably want this one.
4286
4287case $host_os in
4288aix4* | aix5*)
4289  lt_cv_deplibs_check_method=pass_all
4290  ;;
4291
4292beos*)
4293  lt_cv_deplibs_check_method=pass_all
4294  ;;
4295
4296bsdi[45]*)
4297  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4298  lt_cv_file_magic_cmd='/usr/bin/file -L'
4299  lt_cv_file_magic_test_file=/shlib/libc.so
4300  ;;
4301
4302cygwin*)
4303  # func_win32_libid is a shell function defined in ltmain.sh
4304  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4305  lt_cv_file_magic_cmd='func_win32_libid'
4306  ;;
4307
4308mingw* | pw32*)
4309  # Base MSYS/MinGW do not provide the 'file' command needed by
4310  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4311  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4312  lt_cv_file_magic_cmd='$OBJDUMP -f'
4313  ;;
4314
4315darwin* | rhapsody*)
4316  lt_cv_deplibs_check_method=pass_all
4317  ;;
4318
4319freebsd* | kfreebsd*-gnu | dragonfly*)
4320  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4321    case $host_cpu in
4322    i*86 )
4323      # Not sure whether the presence of OpenBSD here was a mistake.
4324      # Let's accept both of them until this is cleared up.
4325      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4326      lt_cv_file_magic_cmd=/usr/bin/file
4327      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4328      ;;
4329    esac
4330  else
4331    lt_cv_deplibs_check_method=pass_all
4332  fi
4333  ;;
4334
4335gnu*)
4336  lt_cv_deplibs_check_method=pass_all
4337  ;;
4338
4339hpux10.20* | hpux11*)
4340  lt_cv_file_magic_cmd=/usr/bin/file
4341  case $host_cpu in
4342  ia64*)
4343    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4344    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4345    ;;
4346  hppa*64*)
4347    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4348    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4349    ;;
4350  *)
4351    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4352    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4353    ;;
4354  esac
4355  ;;
4356
4357interix3*)
4358  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4359  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4360  ;;
4361
4362irix5* | irix6* | nonstopux*)
4363  case $LD in
4364  *-32|*"-32 ") libmagic=32-bit;;
4365  *-n32|*"-n32 ") libmagic=N32;;
4366  *-64|*"-64 ") libmagic=64-bit;;
4367  *) libmagic=never-match;;
4368  esac
4369  lt_cv_deplibs_check_method=pass_all
4370  ;;
4371
4372# This must be Linux ELF.
4373linux*)
4374  lt_cv_deplibs_check_method=pass_all
4375  ;;
4376
4377netbsd*)
4378  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4379    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4380  else
4381    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4382  fi
4383  ;;
4384
4385newos6*)
4386  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4387  lt_cv_file_magic_cmd=/usr/bin/file
4388  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4389  ;;
4390
4391nto-qnx*)
4392  lt_cv_deplibs_check_method=unknown
4393  ;;
4394
4395openbsd*)
4396  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4397    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4398  else
4399    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4400  fi
4401  ;;
4402
4403osf3* | osf4* | osf5*)
4404  lt_cv_deplibs_check_method=pass_all
4405  ;;
4406
4407solaris*)
4408  lt_cv_deplibs_check_method=pass_all
4409  ;;
4410
4411sysv4 | sysv4.3*)
4412  case $host_vendor in
4413  motorola)
4414    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]'
4415    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4416    ;;
4417  ncr)
4418    lt_cv_deplibs_check_method=pass_all
4419    ;;
4420  sequent)
4421    lt_cv_file_magic_cmd='/bin/file'
4422    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4423    ;;
4424  sni)
4425    lt_cv_file_magic_cmd='/bin/file'
4426    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4427    lt_cv_file_magic_test_file=/lib/libc.so
4428    ;;
4429  siemens)
4430    lt_cv_deplibs_check_method=pass_all
4431    ;;
4432  pc)
4433    lt_cv_deplibs_check_method=pass_all
4434    ;;
4435  esac
4436  ;;
4437
4438sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4439  lt_cv_deplibs_check_method=pass_all
4440  ;;
4441esac
4442
4443fi
4444echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4445echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4446file_magic_cmd=$lt_cv_file_magic_cmd
4447deplibs_check_method=$lt_cv_deplibs_check_method
4448test -z "$deplibs_check_method" && deplibs_check_method=unknown
4449
4450
4451
4452
4453# If no C compiler was specified, use CC.
4454LTCC=${LTCC-"$CC"}
4455
4456# If no C compiler flags were specified, use CFLAGS.
4457LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4458
4459# Allow CC to be a program name with arguments.
4460compiler=$CC
4461
4462# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4463if test "${enable_libtool_lock+set}" = set; then
4464  enableval="$enable_libtool_lock"
4465
4466fi;
4467test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4468
4469# Some flags need to be propagated to the compiler or linker for good
4470# libtool support.
4471case $host in
4472ia64-*-hpux*)
4473  # Find out which ABI we are using.
4474  echo 'int i;' > conftest.$ac_ext
4475  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4476  (eval $ac_compile) 2>&5
4477  ac_status=$?
4478  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479  (exit $ac_status); }; then
4480    case `/usr/bin/file conftest.$ac_objext` in
4481    *ELF-32*)
4482      HPUX_IA64_MODE="32"
4483      ;;
4484    *ELF-64*)
4485      HPUX_IA64_MODE="64"
4486      ;;
4487    esac
4488  fi
4489  rm -rf conftest*
4490  ;;
4491*-*-irix6*)
4492  # Find out which ABI we are using.
4493  echo '#line 4493 "configure"' > conftest.$ac_ext
4494  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4495  (eval $ac_compile) 2>&5
4496  ac_status=$?
4497  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498  (exit $ac_status); }; then
4499   if test "$lt_cv_prog_gnu_ld" = yes; then
4500    case `/usr/bin/file conftest.$ac_objext` in
4501    *32-bit*)
4502      LD="${LD-ld} -melf32bsmip"
4503      ;;
4504    *N32*)
4505      LD="${LD-ld} -melf32bmipn32"
4506      ;;
4507    *64-bit*)
4508      LD="${LD-ld} -melf64bmip"
4509      ;;
4510    esac
4511   else
4512    case `/usr/bin/file conftest.$ac_objext` in
4513    *32-bit*)
4514      LD="${LD-ld} -32"
4515      ;;
4516    *N32*)
4517      LD="${LD-ld} -n32"
4518      ;;
4519    *64-bit*)
4520      LD="${LD-ld} -64"
4521      ;;
4522    esac
4523   fi
4524  fi
4525  rm -rf conftest*
4526  ;;
4527
4528x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4529  # Find out which ABI we are using.
4530  echo 'int i;' > conftest.$ac_ext
4531  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4532  (eval $ac_compile) 2>&5
4533  ac_status=$?
4534  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4535  (exit $ac_status); }; then
4536    case `/usr/bin/file conftest.o` in
4537    *32-bit*)
4538      case $host in
4539        x86_64-*linux*)
4540          LD="${LD-ld} -m elf_i386"
4541          ;;
4542        ppc64-*linux*|powerpc64-*linux*)
4543          LD="${LD-ld} -m elf32ppclinux"
4544          ;;
4545        s390x-*linux*)
4546          LD="${LD-ld} -m elf_s390"
4547          ;;
4548        sparc64-*linux*)
4549          LD="${LD-ld} -m elf32_sparc"
4550          ;;
4551      esac
4552      ;;
4553    *64-bit*)
4554      case $host in
4555        x86_64-*linux*)
4556          LD="${LD-ld} -m elf_x86_64"
4557          ;;
4558        ppc*-*linux*|powerpc*-*linux*)
4559          LD="${LD-ld} -m elf64ppc"
4560          ;;
4561        s390*-*linux*)
4562          LD="${LD-ld} -m elf64_s390"
4563          ;;
4564        sparc*-*linux*)
4565          LD="${LD-ld} -m elf64_sparc"
4566          ;;
4567      esac
4568      ;;
4569    esac
4570  fi
4571  rm -rf conftest*
4572  ;;
4573
4574*-*-sco3.2v5*)
4575  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4576  SAVE_CFLAGS="$CFLAGS"
4577  CFLAGS="$CFLAGS -belf"
4578  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4579echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4580if test "${lt_cv_cc_needs_belf+set}" = set; then
4581  echo $ECHO_N "(cached) $ECHO_C" >&6
4582else
4583  ac_ext=c
4584ac_cpp='$CPP $CPPFLAGS'
4585ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4586ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4587ac_compiler_gnu=$ac_cv_c_compiler_gnu
4588
4589     cat >conftest.$ac_ext <<_ACEOF
4590/* confdefs.h.  */
4591_ACEOF
4592cat confdefs.h >>conftest.$ac_ext
4593cat >>conftest.$ac_ext <<_ACEOF
4594/* end confdefs.h.  */
4595
4596int
4597main ()
4598{
4599
4600  ;
4601  return 0;
4602}
4603_ACEOF
4604rm -f conftest.$ac_objext conftest$ac_exeext
4605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4606  (eval $ac_link) 2>conftest.er1
4607  ac_status=$?
4608  grep -v '^ *+' conftest.er1 >conftest.err
4609  rm -f conftest.er1
4610  cat conftest.err >&5
4611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4612  (exit $ac_status); } &&
4613         { ac_try='test -z "$ac_c_werror_flag"
4614                         || test ! -s conftest.err'
4615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4616  (eval $ac_try) 2>&5
4617  ac_status=$?
4618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619  (exit $ac_status); }; } &&
4620         { ac_try='test -s conftest$ac_exeext'
4621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4622  (eval $ac_try) 2>&5
4623  ac_status=$?
4624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4625  (exit $ac_status); }; }; then
4626  lt_cv_cc_needs_belf=yes
4627else
4628  echo "$as_me: failed program was:" >&5
4629sed 's/^/| /' conftest.$ac_ext >&5
4630
4631lt_cv_cc_needs_belf=no
4632fi
4633rm -f conftest.err conftest.$ac_objext \
4634      conftest$ac_exeext conftest.$ac_ext
4635     ac_ext=c
4636ac_cpp='$CPP $CPPFLAGS'
4637ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640
4641fi
4642echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4643echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4644  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4645    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4646    CFLAGS="$SAVE_CFLAGS"
4647  fi
4648  ;;
4649sparc*-*solaris*)
4650  # Find out which ABI we are using.
4651  echo 'int i;' > conftest.$ac_ext
4652  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653  (eval $ac_compile) 2>&5
4654  ac_status=$?
4655  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656  (exit $ac_status); }; then
4657    case `/usr/bin/file conftest.o` in
4658    *64-bit*)
4659      case $lt_cv_prog_gnu_ld in
4660      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4661      *)    LD="${LD-ld} -64" ;;
4662      esac
4663      ;;
4664    esac
4665  fi
4666  rm -rf conftest*
4667  ;;
4668
4669
4670esac
4671
4672need_locks="$enable_libtool_lock"
4673
4674
4675ac_ext=c
4676ac_cpp='$CPP $CPPFLAGS'
4677ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4678ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4679ac_compiler_gnu=$ac_cv_c_compiler_gnu
4680echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4681echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4682# On Suns, sometimes $CPP names a directory.
4683if test -n "$CPP" && test -d "$CPP"; then
4684  CPP=
4685fi
4686if test -z "$CPP"; then
4687  if test "${ac_cv_prog_CPP+set}" = set; then
4688  echo $ECHO_N "(cached) $ECHO_C" >&6
4689else
4690      # Double quotes because CPP needs to be expanded
4691    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4692    do
4693      ac_preproc_ok=false
4694for ac_c_preproc_warn_flag in '' yes
4695do
4696  # Use a header file that comes with gcc, so configuring glibc
4697  # with a fresh cross-compiler works.
4698  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4699  # <limits.h> exists even on freestanding compilers.
4700  # On the NeXT, cc -E runs the code through the compiler's parser,
4701  # not just through cpp. "Syntax error" is here to catch this case.
4702  cat >conftest.$ac_ext <<_ACEOF
4703/* confdefs.h.  */
4704_ACEOF
4705cat confdefs.h >>conftest.$ac_ext
4706cat >>conftest.$ac_ext <<_ACEOF
4707/* end confdefs.h.  */
4708#ifdef __STDC__
4709# include <limits.h>
4710#else
4711# include <assert.h>
4712#endif
4713                     Syntax error
4714_ACEOF
4715if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4716  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4717  ac_status=$?
4718  grep -v '^ *+' conftest.er1 >conftest.err
4719  rm -f conftest.er1
4720  cat conftest.err >&5
4721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4722  (exit $ac_status); } >/dev/null; then
4723  if test -s conftest.err; then
4724    ac_cpp_err=$ac_c_preproc_warn_flag
4725    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4726  else
4727    ac_cpp_err=
4728  fi
4729else
4730  ac_cpp_err=yes
4731fi
4732if test -z "$ac_cpp_err"; then
4733  :
4734else
4735  echo "$as_me: failed program was:" >&5
4736sed 's/^/| /' conftest.$ac_ext >&5
4737
4738  # Broken: fails on valid input.
4739continue
4740fi
4741rm -f conftest.err conftest.$ac_ext
4742
4743  # OK, works on sane cases.  Now check whether non-existent headers
4744  # can be detected and how.
4745  cat >conftest.$ac_ext <<_ACEOF
4746/* confdefs.h.  */
4747_ACEOF
4748cat confdefs.h >>conftest.$ac_ext
4749cat >>conftest.$ac_ext <<_ACEOF
4750/* end confdefs.h.  */
4751#include <ac_nonexistent.h>
4752_ACEOF
4753if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4754  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4755  ac_status=$?
4756  grep -v '^ *+' conftest.er1 >conftest.err
4757  rm -f conftest.er1
4758  cat conftest.err >&5
4759  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4760  (exit $ac_status); } >/dev/null; then
4761  if test -s conftest.err; then
4762    ac_cpp_err=$ac_c_preproc_warn_flag
4763    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4764  else
4765    ac_cpp_err=
4766  fi
4767else
4768  ac_cpp_err=yes
4769fi
4770if test -z "$ac_cpp_err"; then
4771  # Broken: success on invalid input.
4772continue
4773else
4774  echo "$as_me: failed program was:" >&5
4775sed 's/^/| /' conftest.$ac_ext >&5
4776
4777  # Passes both tests.
4778ac_preproc_ok=:
4779break
4780fi
4781rm -f conftest.err conftest.$ac_ext
4782
4783done
4784# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4785rm -f conftest.err conftest.$ac_ext
4786if $ac_preproc_ok; then
4787  break
4788fi
4789
4790    done
4791    ac_cv_prog_CPP=$CPP
4792
4793fi
4794  CPP=$ac_cv_prog_CPP
4795else
4796  ac_cv_prog_CPP=$CPP
4797fi
4798echo "$as_me:$LINENO: result: $CPP" >&5
4799echo "${ECHO_T}$CPP" >&6
4800ac_preproc_ok=false
4801for ac_c_preproc_warn_flag in '' yes
4802do
4803  # Use a header file that comes with gcc, so configuring glibc
4804  # with a fresh cross-compiler works.
4805  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4806  # <limits.h> exists even on freestanding compilers.
4807  # On the NeXT, cc -E runs the code through the compiler's parser,
4808  # not just through cpp. "Syntax error" is here to catch this case.
4809  cat >conftest.$ac_ext <<_ACEOF
4810/* confdefs.h.  */
4811_ACEOF
4812cat confdefs.h >>conftest.$ac_ext
4813cat >>conftest.$ac_ext <<_ACEOF
4814/* end confdefs.h.  */
4815#ifdef __STDC__
4816# include <limits.h>
4817#else
4818# include <assert.h>
4819#endif
4820                     Syntax error
4821_ACEOF
4822if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4823  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4824  ac_status=$?
4825  grep -v '^ *+' conftest.er1 >conftest.err
4826  rm -f conftest.er1
4827  cat conftest.err >&5
4828  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4829  (exit $ac_status); } >/dev/null; then
4830  if test -s conftest.err; then
4831    ac_cpp_err=$ac_c_preproc_warn_flag
4832    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4833  else
4834    ac_cpp_err=
4835  fi
4836else
4837  ac_cpp_err=yes
4838fi
4839if test -z "$ac_cpp_err"; then
4840  :
4841else
4842  echo "$as_me: failed program was:" >&5
4843sed 's/^/| /' conftest.$ac_ext >&5
4844
4845  # Broken: fails on valid input.
4846continue
4847fi
4848rm -f conftest.err conftest.$ac_ext
4849
4850  # OK, works on sane cases.  Now check whether non-existent headers
4851  # can be detected and how.
4852  cat >conftest.$ac_ext <<_ACEOF
4853/* confdefs.h.  */
4854_ACEOF
4855cat confdefs.h >>conftest.$ac_ext
4856cat >>conftest.$ac_ext <<_ACEOF
4857/* end confdefs.h.  */
4858#include <ac_nonexistent.h>
4859_ACEOF
4860if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4861  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4862  ac_status=$?
4863  grep -v '^ *+' conftest.er1 >conftest.err
4864  rm -f conftest.er1
4865  cat conftest.err >&5
4866  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867  (exit $ac_status); } >/dev/null; then
4868  if test -s conftest.err; then
4869    ac_cpp_err=$ac_c_preproc_warn_flag
4870    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4871  else
4872    ac_cpp_err=
4873  fi
4874else
4875  ac_cpp_err=yes
4876fi
4877if test -z "$ac_cpp_err"; then
4878  # Broken: success on invalid input.
4879continue
4880else
4881  echo "$as_me: failed program was:" >&5
4882sed 's/^/| /' conftest.$ac_ext >&5
4883
4884  # Passes both tests.
4885ac_preproc_ok=:
4886break
4887fi
4888rm -f conftest.err conftest.$ac_ext
4889
4890done
4891# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892rm -f conftest.err conftest.$ac_ext
4893if $ac_preproc_ok; then
4894  :
4895else
4896  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4897See \`config.log' for more details." >&5
4898echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4899See \`config.log' for more details." >&2;}
4900   { (exit 1); exit 1; }; }
4901fi
4902
4903ac_ext=c
4904ac_cpp='$CPP $CPPFLAGS'
4905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909
4910echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4911echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4912if test "${ac_cv_header_stdc+set}" = set; then
4913  echo $ECHO_N "(cached) $ECHO_C" >&6
4914else
4915  cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h.  */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4920/* end confdefs.h.  */
4921#include <stdlib.h>
4922#include <stdarg.h>
4923#include <string.h>
4924#include <float.h>
4925
4926int
4927main ()
4928{
4929
4930  ;
4931  return 0;
4932}
4933_ACEOF
4934rm -f conftest.$ac_objext
4935if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4936  (eval $ac_compile) 2>conftest.er1
4937  ac_status=$?
4938  grep -v '^ *+' conftest.er1 >conftest.err
4939  rm -f conftest.er1
4940  cat conftest.err >&5
4941  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4942  (exit $ac_status); } &&
4943         { ac_try='test -z "$ac_c_werror_flag"
4944                         || test ! -s conftest.err'
4945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4946  (eval $ac_try) 2>&5
4947  ac_status=$?
4948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4949  (exit $ac_status); }; } &&
4950         { ac_try='test -s conftest.$ac_objext'
4951  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4952  (eval $ac_try) 2>&5
4953  ac_status=$?
4954  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4955  (exit $ac_status); }; }; then
4956  ac_cv_header_stdc=yes
4957else
4958  echo "$as_me: failed program was:" >&5
4959sed 's/^/| /' conftest.$ac_ext >&5
4960
4961ac_cv_header_stdc=no
4962fi
4963rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4964
4965if test $ac_cv_header_stdc = yes; then
4966  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4967  cat >conftest.$ac_ext <<_ACEOF
4968/* confdefs.h.  */
4969_ACEOF
4970cat confdefs.h >>conftest.$ac_ext
4971cat >>conftest.$ac_ext <<_ACEOF
4972/* end confdefs.h.  */
4973#include <string.h>
4974
4975_ACEOF
4976if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4977  $EGREP "memchr" >/dev/null 2>&1; then
4978  :
4979else
4980  ac_cv_header_stdc=no
4981fi
4982rm -f conftest*
4983
4984fi
4985
4986if test $ac_cv_header_stdc = yes; then
4987  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4988  cat >conftest.$ac_ext <<_ACEOF
4989/* confdefs.h.  */
4990_ACEOF
4991cat confdefs.h >>conftest.$ac_ext
4992cat >>conftest.$ac_ext <<_ACEOF
4993/* end confdefs.h.  */
4994#include <stdlib.h>
4995
4996_ACEOF
4997if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4998  $EGREP "free" >/dev/null 2>&1; then
4999  :
5000else
5001  ac_cv_header_stdc=no
5002fi
5003rm -f conftest*
5004
5005fi
5006
5007if test $ac_cv_header_stdc = yes; then
5008  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5009  if test "$cross_compiling" = yes; then
5010  :
5011else
5012  cat >conftest.$ac_ext <<_ACEOF
5013/* confdefs.h.  */
5014_ACEOF
5015cat confdefs.h >>conftest.$ac_ext
5016cat >>conftest.$ac_ext <<_ACEOF
5017/* end confdefs.h.  */
5018#include <ctype.h>
5019#if ((' ' & 0x0FF) == 0x020)
5020# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5021# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5022#else
5023# define ISLOWER(c) \
5024                   (('a' <= (c) && (c) <= 'i') \
5025                     || ('j' <= (c) && (c) <= 'r') \
5026                     || ('s' <= (c) && (c) <= 'z'))
5027# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5028#endif
5029
5030#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5031int
5032main ()
5033{
5034  int i;
5035  for (i = 0; i < 256; i++)
5036    if (XOR (islower (i), ISLOWER (i))
5037        || toupper (i) != TOUPPER (i))
5038      exit(2);
5039  exit (0);
5040}
5041_ACEOF
5042rm -f conftest$ac_exeext
5043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5044  (eval $ac_link) 2>&5
5045  ac_status=$?
5046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5047  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5048  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5049  (eval $ac_try) 2>&5
5050  ac_status=$?
5051  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5052  (exit $ac_status); }; }; then
5053  :
5054else
5055  echo "$as_me: program exited with status $ac_status" >&5
5056echo "$as_me: failed program was:" >&5
5057sed 's/^/| /' conftest.$ac_ext >&5
5058
5059( exit $ac_status )
5060ac_cv_header_stdc=no
5061fi
5062rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5063fi
5064fi
5065fi
5066echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5067echo "${ECHO_T}$ac_cv_header_stdc" >&6
5068if test $ac_cv_header_stdc = yes; then
5069
5070cat >>confdefs.h <<\_ACEOF
5071#define STDC_HEADERS 1
5072_ACEOF
5073
5074fi
5075
5076# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5077
5078
5079
5080
5081
5082
5083
5084
5085
5086for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5087                  inttypes.h stdint.h unistd.h
5088do
5089as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5090echo "$as_me:$LINENO: checking for $ac_header" >&5
5091echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5092if eval "test \"\${$as_ac_Header+set}\" = set"; then
5093  echo $ECHO_N "(cached) $ECHO_C" >&6
5094else
5095  cat >conftest.$ac_ext <<_ACEOF
5096/* confdefs.h.  */
5097_ACEOF
5098cat confdefs.h >>conftest.$ac_ext
5099cat >>conftest.$ac_ext <<_ACEOF
5100/* end confdefs.h.  */
5101$ac_includes_default
5102
5103#include <$ac_header>
5104_ACEOF
5105rm -f conftest.$ac_objext
5106if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5107  (eval $ac_compile) 2>conftest.er1
5108  ac_status=$?
5109  grep -v '^ *+' conftest.er1 >conftest.err
5110  rm -f conftest.er1
5111  cat conftest.err >&5
5112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5113  (exit $ac_status); } &&
5114         { ac_try='test -z "$ac_c_werror_flag"
5115                         || test ! -s conftest.err'
5116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5117  (eval $ac_try) 2>&5
5118  ac_status=$?
5119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5120  (exit $ac_status); }; } &&
5121         { ac_try='test -s conftest.$ac_objext'
5122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5123  (eval $ac_try) 2>&5
5124  ac_status=$?
5125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126  (exit $ac_status); }; }; then
5127  eval "$as_ac_Header=yes"
5128else
5129  echo "$as_me: failed program was:" >&5
5130sed 's/^/| /' conftest.$ac_ext >&5
5131
5132eval "$as_ac_Header=no"
5133fi
5134rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5135fi
5136echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5137echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5138if test `eval echo '${'$as_ac_Header'}'` = yes; then
5139  cat >>confdefs.h <<_ACEOF
5140#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5141_ACEOF
5142
5143fi
5144
5145done
5146
5147
5148
5149for ac_header in dlfcn.h
5150do
5151as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5152if eval "test \"\${$as_ac_Header+set}\" = set"; then
5153  echo "$as_me:$LINENO: checking for $ac_header" >&5
5154echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5155if eval "test \"\${$as_ac_Header+set}\" = set"; then
5156  echo $ECHO_N "(cached) $ECHO_C" >&6
5157fi
5158echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5159echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5160else
5161  # Is the header compilable?
5162echo "$as_me:$LINENO: checking $ac_header usability" >&5
5163echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5164cat >conftest.$ac_ext <<_ACEOF
5165/* confdefs.h.  */
5166_ACEOF
5167cat confdefs.h >>conftest.$ac_ext
5168cat >>conftest.$ac_ext <<_ACEOF
5169/* end confdefs.h.  */
5170$ac_includes_default
5171#include <$ac_header>
5172_ACEOF
5173rm -f conftest.$ac_objext
5174if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5175  (eval $ac_compile) 2>conftest.er1
5176  ac_status=$?
5177  grep -v '^ *+' conftest.er1 >conftest.err
5178  rm -f conftest.er1
5179  cat conftest.err >&5
5180  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5181  (exit $ac_status); } &&
5182         { ac_try='test -z "$ac_c_werror_flag"
5183                         || test ! -s conftest.err'
5184  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5185  (eval $ac_try) 2>&5
5186  ac_status=$?
5187  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188  (exit $ac_status); }; } &&
5189         { ac_try='test -s conftest.$ac_objext'
5190  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5191  (eval $ac_try) 2>&5
5192  ac_status=$?
5193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194  (exit $ac_status); }; }; then
5195  ac_header_compiler=yes
5196else
5197  echo "$as_me: failed program was:" >&5
5198sed 's/^/| /' conftest.$ac_ext >&5
5199
5200ac_header_compiler=no
5201fi
5202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5203echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5204echo "${ECHO_T}$ac_header_compiler" >&6
5205
5206# Is the header present?
5207echo "$as_me:$LINENO: checking $ac_header presence" >&5
5208echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5209cat >conftest.$ac_ext <<_ACEOF
5210/* confdefs.h.  */
5211_ACEOF
5212cat confdefs.h >>conftest.$ac_ext
5213cat >>conftest.$ac_ext <<_ACEOF
5214/* end confdefs.h.  */
5215#include <$ac_header>
5216_ACEOF
5217if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5218  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5219  ac_status=$?
5220  grep -v '^ *+' conftest.er1 >conftest.err
5221  rm -f conftest.er1
5222  cat conftest.err >&5
5223  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224  (exit $ac_status); } >/dev/null; then
5225  if test -s conftest.err; then
5226    ac_cpp_err=$ac_c_preproc_warn_flag
5227    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5228  else
5229    ac_cpp_err=
5230  fi
5231else
5232  ac_cpp_err=yes
5233fi
5234if test -z "$ac_cpp_err"; then
5235  ac_header_preproc=yes
5236else
5237  echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
5240  ac_header_preproc=no
5241fi
5242rm -f conftest.err conftest.$ac_ext
5243echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5244echo "${ECHO_T}$ac_header_preproc" >&6
5245
5246# So?  What about this header?
5247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5248  yes:no: )
5249    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5250echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5251    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5252echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5253    ac_header_preproc=yes
5254    ;;
5255  no:yes:* )
5256    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5257echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5258    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5259echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5260    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5261echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5262    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5263echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5264    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5265echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5266    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5267echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5268    (
5269      cat <<\_ASBOX
5270## ---------------------------------------- ##
5271## Report this to coin-cbc@list.coin-or.org ##
5272## ---------------------------------------- ##
5273_ASBOX
5274    ) |
5275      sed "s/^/$as_me: WARNING:     /" >&2
5276    ;;
5277esac
5278echo "$as_me:$LINENO: checking for $ac_header" >&5
5279echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5280if eval "test \"\${$as_ac_Header+set}\" = set"; then
5281  echo $ECHO_N "(cached) $ECHO_C" >&6
5282else
5283  eval "$as_ac_Header=\$ac_header_preproc"
5284fi
5285echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5286echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5287
5288fi
5289if test `eval echo '${'$as_ac_Header'}'` = yes; then
5290  cat >>confdefs.h <<_ACEOF
5291#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5292_ACEOF
5293
5294fi
5295
5296done
5297
5298
5299
5300if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5301    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5302    (test "X$CXX" != "Xg++"))) ; then
5303  ac_ext=cc
5304ac_cpp='$CXXCPP $CPPFLAGS'
5305ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5306ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5307ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5308echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5309echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5310if test -z "$CXXCPP"; then
5311  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5312  echo $ECHO_N "(cached) $ECHO_C" >&6
5313else
5314      # Double quotes because CXXCPP needs to be expanded
5315    for CXXCPP in "$CXX -E" "/lib/cpp"
5316    do
5317      ac_preproc_ok=false
5318for ac_cxx_preproc_warn_flag in '' yes
5319do
5320  # Use a header file that comes with gcc, so configuring glibc
5321  # with a fresh cross-compiler works.
5322  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5323  # <limits.h> exists even on freestanding compilers.
5324  # On the NeXT, cc -E runs the code through the compiler's parser,
5325  # not just through cpp. "Syntax error" is here to catch this case.
5326  cat >conftest.$ac_ext <<_ACEOF
5327/* confdefs.h.  */
5328_ACEOF
5329cat confdefs.h >>conftest.$ac_ext
5330cat >>conftest.$ac_ext <<_ACEOF
5331/* end confdefs.h.  */
5332#ifdef __STDC__
5333# include <limits.h>
5334#else
5335# include <assert.h>
5336#endif
5337                     Syntax error
5338_ACEOF
5339if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5340  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5341  ac_status=$?
5342  grep -v '^ *+' conftest.er1 >conftest.err
5343  rm -f conftest.er1
5344  cat conftest.err >&5
5345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5346  (exit $ac_status); } >/dev/null; then
5347  if test -s conftest.err; then
5348    ac_cpp_err=$ac_cxx_preproc_warn_flag
5349    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5350  else
5351    ac_cpp_err=
5352  fi
5353else
5354  ac_cpp_err=yes
5355fi
5356if test -z "$ac_cpp_err"; then
5357  :
5358else
5359  echo "$as_me: failed program was:" >&5
5360sed 's/^/| /' conftest.$ac_ext >&5
5361
5362  # Broken: fails on valid input.
5363continue
5364fi
5365rm -f conftest.err conftest.$ac_ext
5366
5367  # OK, works on sane cases.  Now check whether non-existent headers
5368  # can be detected and how.
5369  cat >conftest.$ac_ext <<_ACEOF
5370/* confdefs.h.  */
5371_ACEOF
5372cat confdefs.h >>conftest.$ac_ext
5373cat >>conftest.$ac_ext <<_ACEOF
5374/* end confdefs.h.  */
5375#include <ac_nonexistent.h>
5376_ACEOF
5377if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5378  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5379  ac_status=$?
5380  grep -v '^ *+' conftest.er1 >conftest.err
5381  rm -f conftest.er1
5382  cat conftest.err >&5
5383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5384  (exit $ac_status); } >/dev/null; then
5385  if test -s conftest.err; then
5386    ac_cpp_err=$ac_cxx_preproc_warn_flag
5387    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5388  else
5389    ac_cpp_err=
5390  fi
5391else
5392  ac_cpp_err=yes
5393fi
5394if test -z "$ac_cpp_err"; then
5395  # Broken: success on invalid input.
5396continue
5397else
5398  echo "$as_me: failed program was:" >&5
5399sed 's/^/| /' conftest.$ac_ext >&5
5400
5401  # Passes both tests.
5402ac_preproc_ok=:
5403break
5404fi
5405rm -f conftest.err conftest.$ac_ext
5406
5407done
5408# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5409rm -f conftest.err conftest.$ac_ext
5410if $ac_preproc_ok; then
5411  break
5412fi
5413
5414    done
5415    ac_cv_prog_CXXCPP=$CXXCPP
5416
5417fi
5418  CXXCPP=$ac_cv_prog_CXXCPP
5419else
5420  ac_cv_prog_CXXCPP=$CXXCPP
5421fi
5422echo "$as_me:$LINENO: result: $CXXCPP" >&5
5423echo "${ECHO_T}$CXXCPP" >&6
5424ac_preproc_ok=false
5425for ac_cxx_preproc_warn_flag in '' yes
5426do
5427  # Use a header file that comes with gcc, so configuring glibc
5428  # with a fresh cross-compiler works.
5429  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5430  # <limits.h> exists even on freestanding compilers.
5431  # On the NeXT, cc -E runs the code through the compiler's parser,
5432  # not just through cpp. "Syntax error" is here to catch this case.
5433  cat >conftest.$ac_ext <<_ACEOF
5434/* confdefs.h.  */
5435_ACEOF
5436cat confdefs.h >>conftest.$ac_ext
5437cat >>conftest.$ac_ext <<_ACEOF
5438/* end confdefs.h.  */
5439#ifdef __STDC__
5440# include <limits.h>
5441#else
5442# include <assert.h>
5443#endif
5444                     Syntax error
5445_ACEOF
5446if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5447  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5448  ac_status=$?
5449  grep -v '^ *+' conftest.er1 >conftest.err
5450  rm -f conftest.er1
5451  cat conftest.err >&5
5452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453  (exit $ac_status); } >/dev/null; then
5454  if test -s conftest.err; then
5455    ac_cpp_err=$ac_cxx_preproc_warn_flag
5456    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5457  else
5458    ac_cpp_err=
5459  fi
5460else
5461  ac_cpp_err=yes
5462fi
5463if test -z "$ac_cpp_err"; then
5464  :
5465else
5466  echo "$as_me: failed program was:" >&5
5467sed 's/^/| /' conftest.$ac_ext >&5
5468
5469  # Broken: fails on valid input.
5470continue
5471fi
5472rm -f conftest.err conftest.$ac_ext
5473
5474  # OK, works on sane cases.  Now check whether non-existent headers
5475  # can be detected and how.
5476  cat >conftest.$ac_ext <<_ACEOF
5477/* confdefs.h.  */
5478_ACEOF
5479cat confdefs.h >>conftest.$ac_ext
5480cat >>conftest.$ac_ext <<_ACEOF
5481/* end confdefs.h.  */
5482#include <ac_nonexistent.h>
5483_ACEOF
5484if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5485  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5486  ac_status=$?
5487  grep -v '^ *+' conftest.er1 >conftest.err
5488  rm -f conftest.er1
5489  cat conftest.err >&5
5490  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5491  (exit $ac_status); } >/dev/null; then
5492  if test -s conftest.err; then
5493    ac_cpp_err=$ac_cxx_preproc_warn_flag
5494    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5495  else
5496    ac_cpp_err=
5497  fi
5498else
5499  ac_cpp_err=yes
5500fi
5501if test -z "$ac_cpp_err"; then
5502  # Broken: success on invalid input.
5503continue
5504else
5505  echo "$as_me: failed program was:" >&5
5506sed 's/^/| /' conftest.$ac_ext >&5
5507
5508  # Passes both tests.
5509ac_preproc_ok=:
5510break
5511fi
5512rm -f conftest.err conftest.$ac_ext
5513
5514done
5515# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5516rm -f conftest.err conftest.$ac_ext
5517if $ac_preproc_ok; then
5518  :
5519else
5520  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5521See \`config.log' for more details." >&5
5522echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5523See \`config.log' for more details." >&2;}
5524   { (exit 1); exit 1; }; }
5525fi
5526
5527ac_ext=cc
5528ac_cpp='$CXXCPP $CPPFLAGS'
5529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5532
5533fi
5534
5535ac_ext=f
5536ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5537ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5538ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5539if test -n "$ac_tool_prefix"; then
5540  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5541  do
5542    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5543set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5544echo "$as_me:$LINENO: checking for $ac_word" >&5
5545echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5546if test "${ac_cv_prog_F77+set}" = set; then
5547  echo $ECHO_N "(cached) $ECHO_C" >&6
5548else
5549  if test -n "$F77"; then
5550  ac_cv_prog_F77="$F77" # Let the user override the test.
5551else
5552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5553for as_dir in $PATH
5554do
5555  IFS=$as_save_IFS
5556  test -z "$as_dir" && as_dir=.
5557  for ac_exec_ext in '' $ac_executable_extensions; do
5558  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5559    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5560    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5561    break 2
5562  fi
5563done
5564done
5565
5566fi
5567fi
5568F77=$ac_cv_prog_F77
5569if test -n "$F77"; then
5570  echo "$as_me:$LINENO: result: $F77" >&5
5571echo "${ECHO_T}$F77" >&6
5572else
5573  echo "$as_me:$LINENO: result: no" >&5
5574echo "${ECHO_T}no" >&6
5575fi
5576
5577    test -n "$F77" && break
5578  done
5579fi
5580if test -z "$F77"; then
5581  ac_ct_F77=$F77
5582  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5583do
5584  # Extract the first word of "$ac_prog", so it can be a program name with args.
5585set dummy $ac_prog; ac_word=$2
5586echo "$as_me:$LINENO: checking for $ac_word" >&5
5587echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5588if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5589  echo $ECHO_N "(cached) $ECHO_C" >&6
5590else
5591  if test -n "$ac_ct_F77"; then
5592  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5593else
5594as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5595for as_dir in $PATH
5596do
5597  IFS=$as_save_IFS
5598  test -z "$as_dir" && as_dir=.
5599  for ac_exec_ext in '' $ac_executable_extensions; do
5600  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5601    ac_cv_prog_ac_ct_F77="$ac_prog"
5602    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5603    break 2
5604  fi
5605done
5606done
5607
5608fi
5609fi
5610ac_ct_F77=$ac_cv_prog_ac_ct_F77
5611if test -n "$ac_ct_F77"; then
5612  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5613echo "${ECHO_T}$ac_ct_F77" >&6
5614else
5615  echo "$as_me:$LINENO: result: no" >&5
5616echo "${ECHO_T}no" >&6
5617fi
5618
5619  test -n "$ac_ct_F77" && break
5620done
5621
5622  F77=$ac_ct_F77
5623fi
5624
5625
5626# Provide some information about the compiler.
5627echo "$as_me:5627:" \
5628     "checking for Fortran 77 compiler version" >&5
5629ac_compiler=`set X $ac_compile; echo $2`
5630{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5631  (eval $ac_compiler --version </dev/null >&5) 2>&5
5632  ac_status=$?
5633  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5634  (exit $ac_status); }
5635{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5636  (eval $ac_compiler -v </dev/null >&5) 2>&5
5637  ac_status=$?
5638  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5639  (exit $ac_status); }
5640{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5641  (eval $ac_compiler -V </dev/null >&5) 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); }
5645rm -f a.out
5646
5647# If we don't use `.F' as extension, the preprocessor is not run on the
5648# input file.  (Note that this only needs to work for GNU compilers.)
5649ac_save_ext=$ac_ext
5650ac_ext=F
5651echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5652echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5653if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5654  echo $ECHO_N "(cached) $ECHO_C" >&6
5655else
5656  cat >conftest.$ac_ext <<_ACEOF
5657      program main
5658#ifndef __GNUC__
5659       choke me
5660#endif
5661
5662      end
5663_ACEOF
5664rm -f conftest.$ac_objext
5665if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5666  (eval $ac_compile) 2>conftest.er1
5667  ac_status=$?
5668  grep -v '^ *+' conftest.er1 >conftest.err
5669  rm -f conftest.er1
5670  cat conftest.err >&5
5671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672  (exit $ac_status); } &&
5673         { ac_try='test -z "$ac_f77_werror_flag"
5674                         || test ! -s conftest.err'
5675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5676  (eval $ac_try) 2>&5
5677  ac_status=$?
5678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5679  (exit $ac_status); }; } &&
5680         { ac_try='test -s conftest.$ac_objext'
5681  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5682  (eval $ac_try) 2>&5
5683  ac_status=$?
5684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5685  (exit $ac_status); }; }; then
5686  ac_compiler_gnu=yes
5687else
5688  echo "$as_me: failed program was:" >&5
5689sed 's/^/| /' conftest.$ac_ext >&5
5690
5691ac_compiler_gnu=no
5692fi
5693rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5694ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5695
5696fi
5697echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5698echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5699ac_ext=$ac_save_ext
5700ac_test_FFLAGS=${FFLAGS+set}
5701ac_save_FFLAGS=$FFLAGS
5702FFLAGS=
5703echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5704echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5705if test "${ac_cv_prog_f77_g+set}" = set; then
5706  echo $ECHO_N "(cached) $ECHO_C" >&6
5707else
5708  FFLAGS=-g
5709cat >conftest.$ac_ext <<_ACEOF
5710      program main
5711
5712      end
5713_ACEOF
5714rm -f conftest.$ac_objext
5715if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5716  (eval $ac_compile) 2>conftest.er1
5717  ac_status=$?
5718  grep -v '^ *+' conftest.er1 >conftest.err
5719  rm -f conftest.er1
5720  cat conftest.err >&5
5721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722  (exit $ac_status); } &&
5723         { ac_try='test -z "$ac_f77_werror_flag"
5724                         || test ! -s conftest.err'
5725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5726  (eval $ac_try) 2>&5
5727  ac_status=$?
5728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729  (exit $ac_status); }; } &&
5730         { ac_try='test -s conftest.$ac_objext'
5731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5732  (eval $ac_try) 2>&5
5733  ac_status=$?
5734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5735  (exit $ac_status); }; }; then
5736  ac_cv_prog_f77_g=yes
5737else
5738  echo "$as_me: failed program was:" >&5
5739sed 's/^/| /' conftest.$ac_ext >&5
5740
5741ac_cv_prog_f77_g=no
5742fi
5743rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5744
5745fi
5746echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5747echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5748if test "$ac_test_FFLAGS" = set; then
5749  FFLAGS=$ac_save_FFLAGS
5750elif test $ac_cv_prog_f77_g = yes; then
5751  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5752    FFLAGS="-g -O2"
5753  else
5754    FFLAGS="-g"
5755  fi
5756else
5757  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5758    FFLAGS="-O2"
5759  else
5760    FFLAGS=
5761  fi
5762fi
5763
5764G77=`test $ac_compiler_gnu = yes && echo yes`
5765ac_ext=cc
5766ac_cpp='$CXXCPP $CPPFLAGS'
5767ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5768ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5769ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5770
5771
5772
5773# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5774
5775# find the maximum length of command line arguments
5776echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5777echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5778if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5779  echo $ECHO_N "(cached) $ECHO_C" >&6
5780else
5781    i=0
5782  teststring="ABCD"
5783
5784  case $build_os in
5785  msdosdjgpp*)
5786    # On DJGPP, this test can blow up pretty badly due to problems in libc
5787    # (any single argument exceeding 2000 bytes causes a buffer overrun
5788    # during glob expansion).  Even if it were fixed, the result of this
5789    # check would be larger than it should be.
5790    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5791    ;;
5792
5793  gnu*)
5794    # Under GNU Hurd, this test is not required because there is
5795    # no limit to the length of command line arguments.
5796    # Libtool will interpret -1 as no limit whatsoever
5797    lt_cv_sys_max_cmd_len=-1;
5798    ;;
5799
5800  cygwin* | mingw*)
5801    # On Win9x/ME, this test blows up -- it succeeds, but takes
5802    # about 5 minutes as the teststring grows exponentially.
5803    # Worse, since 9x/ME are not pre-emptively multitasking,
5804    # you end up with a "frozen" computer, even though with patience
5805    # the test eventually succeeds (with a max line length of 256k).
5806    # Instead, let's just punt: use the minimum linelength reported by
5807    # all of the supported platforms: 8192 (on NT/2K/XP).
5808    lt_cv_sys_max_cmd_len=8192;
5809    ;;
5810
5811  amigaos*)
5812    # On AmigaOS with pdksh, this test takes hours, literally.
5813    # So we just punt and use a minimum line length of 8192.
5814    lt_cv_sys_max_cmd_len=8192;
5815    ;;
5816
5817  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5818    # This has been around since 386BSD, at least.  Likely further.
5819    if test -x /sbin/sysctl; then
5820      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5821    elif test -x /usr/sbin/sysctl; then
5822      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5823    else
5824      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5825    fi
5826    # And add a safety zone
5827    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5828    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5829    ;;
5830
5831  interix*)
5832    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5833    lt_cv_sys_max_cmd_len=196608
5834    ;;
5835
5836  osf*)
5837    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5838    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5839    # nice to cause kernel panics so lets avoid the loop below.
5840    # First set a reasonable default.
5841    lt_cv_sys_max_cmd_len=16384
5842    #
5843    if test -x /sbin/sysconfig; then
5844      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5845        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5846      esac
5847    fi
5848    ;;
5849  sco3.2v5*)
5850    lt_cv_sys_max_cmd_len=102400
5851    ;;
5852  sysv5* | sco5v6* | sysv4.2uw2*)
5853    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5854    if test -n "$kargmax"; then
5855      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5856    else
5857      lt_cv_sys_max_cmd_len=32768
5858    fi
5859    ;;
5860  *)
5861    # If test is not a shell built-in, we'll probably end up computing a
5862    # maximum length that is only half of the actual maximum length, but
5863    # we can't tell.
5864    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5865    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5866               = "XX$teststring") >/dev/null 2>&1 &&
5867            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5868            lt_cv_sys_max_cmd_len=$new_result &&
5869            test $i != 17 # 1/2 MB should be enough
5870    do
5871      i=`expr $i + 1`
5872      teststring=$teststring$teststring
5873    done
5874    teststring=
5875    # Add a significant safety factor because C++ compilers can tack on massive
5876    # amounts of additional arguments before passing them to the linker.
5877    # It appears as though 1/2 is a usable value.
5878    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5879    ;;
5880  esac
5881
5882fi
5883
5884if test -n $lt_cv_sys_max_cmd_len ; then
5885  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5886echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5887else
5888  echo "$as_me:$LINENO: result: none" >&5
5889echo "${ECHO_T}none" >&6
5890fi
5891
5892
5893
5894
5895# Check for command to grab the raw symbol name followed by C symbol from nm.
5896echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5897echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5898if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5899  echo $ECHO_N "(cached) $ECHO_C" >&6
5900else
5901
5902# These are sane defaults that work on at least a few old systems.
5903# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5904
5905# Character class describing NM global symbol codes.
5906symcode='[BCDEGRST]'
5907
5908# Regexp to match symbols that can be accessed directly from C.
5909sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5910
5911# Transform an extracted symbol line into a proper C declaration
5912lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5913
5914# Transform an extracted symbol line into symbol name and symbol address
5915lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5916
5917# Define system-specific variables.
5918case $host_os in
5919aix*)
5920  symcode='[BCDT]'
5921  ;;
5922cygwin* | mingw* | pw32*)
5923  symcode='[ABCDGISTW]'
5924  ;;
5925hpux*) # Its linker distinguishes data from code symbols
5926  if test "$host_cpu" = ia64; then
5927    symcode='[ABCDEGRST]'
5928  fi
5929  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5930  lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5931  ;;
5932linux*)
5933  if test "$host_cpu" = ia64; then
5934    symcode='[ABCDGIRSTW]'
5935    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5936    lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (lt_ptr) \&\2},/p'"
5937  fi
5938  ;;
5939irix* | nonstopux*)
5940  symcode='[BCDEGRST]'
5941  ;;
5942osf*)
5943  symcode='[BCDEGQRST]'
5944  ;;
5945solaris*)
5946  symcode='[BDRT]'
5947  ;;
5948sco3.2v5*)
5949  symcode='[DT]'
5950  ;;
5951sysv4.2uw2*)
5952  symcode='[DT]'
5953  ;;
5954sysv5* | sco5v6* | unixware* | OpenUNIX*)
5955  symcode='[ABDT]'
5956  ;;
5957sysv4)
5958  symcode='[DFNSTU]'
5959  ;;
5960esac
5961
5962# Handle CRLF in mingw tool chain
5963opt_cr=
5964case $build_os in
5965mingw*)
5966  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5967  ;;
5968esac
5969
5970# If we're using GNU nm, then use its standard symbol codes.
5971case `$NM -V 2>&1` in
5972*GNU* | *'with BFD'*)
5973  symcode='[ABCDGIRSTW]' ;;
5974esac
5975
5976# Try without a prefix undercore, then with it.
5977for ac_symprfx in "" "_"; do
5978
5979  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5980  symxfrm="\\1 $ac_symprfx\\2 \\2"
5981
5982  # Write the raw and C identifiers.
5983  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5984
5985  # Check to see that the pipe works correctly.
5986  pipe_works=no
5987
5988  rm -f conftest*
5989  cat > conftest.$ac_ext <<EOF
5990#ifdef __cplusplus
5991extern "C" {
5992#endif
5993char nm_test_var;
5994void nm_test_func(){}
5995#ifdef __cplusplus
5996}
5997#endif
5998int main(){nm_test_var='a';nm_test_func();return(0);}
5999EOF
6000
6001  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6002  (eval $ac_compile) 2>&5
6003  ac_status=$?
6004  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005  (exit $ac_status); }; then
6006    # Now try to grab the symbols.
6007    nlist=conftest.nm
6008    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6009  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6010  ac_status=$?
6011  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012  (exit $ac_status); } && test -s "$nlist"; then
6013      # Try sorting and uniquifying the output.
6014      if sort "$nlist" | uniq > "$nlist"T; then
6015        mv -f "$nlist"T "$nlist"
6016      else
6017        rm -f "$nlist"T
6018      fi
6019
6020      # Make sure that we snagged all the symbols we need.
6021      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6022        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6023          cat <<EOF > conftest.$ac_ext
6024#ifdef __cplusplus
6025extern "C" {
6026#endif
6027
6028EOF
6029          # Now generate the symbol file.
6030          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6031
6032          cat <<EOF >> conftest.$ac_ext
6033#if defined (__STDC__) && __STDC__
6034# define lt_ptr_t void *
6035#else
6036# define lt_ptr_t char *
6037# define const
6038#endif
6039
6040/* The mapping between symbol names and symbols. */
6041const struct {
6042  const char *name;
6043  lt_ptr_t address;
6044}
6045lt_preloaded_symbols[] =
6046{
6047EOF
6048          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6049          cat <<\EOF >> conftest.$ac_ext
6050  {0, (lt_ptr_t) 0}
6051};
6052
6053#ifdef __cplusplus
6054}
6055#endif
6056EOF
6057          # Now try linking the two files.
6058          mv conftest.$ac_objext conftstm.$ac_objext
6059          lt_save_LIBS="$LIBS"
6060          lt_save_CFLAGS="$CFLAGS"
6061          LIBS="conftstm.$ac_objext"
6062          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6063          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6064  (eval $ac_link) 2>&5
6065  ac_status=$?
6066  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6067  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6068            pipe_works=yes
6069          fi
6070          LIBS="$lt_save_LIBS"
6071          CFLAGS="$lt_save_CFLAGS"
6072        else
6073          echo "cannot find nm_test_func in $nlist" >&5
6074        fi
6075      else
6076        echo "cannot find nm_test_var in $nlist" >&5
6077      fi
6078    else
6079      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6080    fi
6081  else
6082    echo "$progname: failed program was:" >&5
6083    cat conftest.$ac_ext >&5
6084  fi
6085  rm -f conftest* conftst*
6086
6087  # Do not use the global_symbol_pipe unless it works.
6088  if test "$pipe_works" = yes; then
6089    break
6090  else
6091    lt_cv_sys_global_symbol_pipe=
6092  fi
6093done
6094
6095fi
6096
6097if test -z "$lt_cv_sys_global_symbol_pipe"; then
6098  lt_cv_sys_global_symbol_to_cdecl=
6099fi
6100if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6101  echo "$as_me:$LINENO: result: failed" >&5
6102echo "${ECHO_T}failed" >&6
6103else
6104  echo "$as_me:$LINENO: result: ok" >&5
6105echo "${ECHO_T}ok" >&6
6106fi
6107
6108echo "$as_me:$LINENO: checking for objdir" >&5
6109echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6110if test "${lt_cv_objdir+set}" = set; then
6111  echo $ECHO_N "(cached) $ECHO_C" >&6
6112else
6113  rm -f .libs 2>/dev/null
6114mkdir .libs 2>/dev/null
6115if test -d .libs; then
6116  lt_cv_objdir=.libs
6117else
6118  # MS-DOS does not allow filenames that begin with a dot.
6119  lt_cv_objdir=_libs
6120fi
6121rmdir .libs 2>/dev/null
6122fi
6123echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6124echo "${ECHO_T}$lt_cv_objdir" >&6
6125objdir=$lt_cv_objdir
6126
6127
6128
6129
6130
6131case $host_os in
6132aix3*)
6133  # AIX sometimes has problems with the GCC collect2 program.  For some
6134  # reason, if we set the COLLECT_NAMES environment variable, the problems
6135  # vanish in a puff of smoke.
6136  if test "X${COLLECT_NAMES+set}" != Xset; then
6137    COLLECT_NAMES=
6138    export COLLECT_NAMES
6139  fi
6140  ;;
6141esac
6142
6143# Sed substitution that helps us do robust quoting.  It backslashifies
6144# metacharacters that are still active within double-quoted strings.
6145Xsed='sed -e 1s/^X//'
6146sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6147
6148# Same as above, but do not quote variable references.
6149double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6150
6151# Sed substitution to delay expansion of an escaped shell variable in a
6152# double_quote_subst'ed string.
6153delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6154
6155# Sed substitution to avoid accidental globbing in evaled expressions
6156no_glob_subst='s/\*/\\\*/g'
6157
6158# Constants:
6159rm="rm -f"
6160
6161# Global variables:
6162default_ofile=libtool
6163can_build_shared=yes
6164
6165# All known linkers require a `.a' archive for static linking (except MSVC,
6166# which needs '.lib').
6167libext=a
6168ltmain="$ac_aux_dir/ltmain.sh"
6169ofile="$default_ofile"
6170with_gnu_ld="$lt_cv_prog_gnu_ld"
6171
6172if test -n "$ac_tool_prefix"; then
6173  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6174set dummy ${ac_tool_prefix}ar; ac_word=$2
6175echo "$as_me:$LINENO: checking for $ac_word" >&5
6176echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6177if test "${ac_cv_prog_AR+set}" = set; then
6178  echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
6180  if test -n "$AR"; then
6181  ac_cv_prog_AR="$AR" # Let the user override the test.
6182else
6183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184for as_dir in $PATH
6185do
6186  IFS=$as_save_IFS
6187  test -z "$as_dir" && as_dir=.
6188  for ac_exec_ext in '' $ac_executable_extensions; do
6189  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190    ac_cv_prog_AR="${ac_tool_prefix}ar"
6191    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6192    break 2
6193  fi
6194done
6195done
6196
6197fi
6198fi
6199AR=$ac_cv_prog_AR
6200if test -n "$AR"; then
6201  echo "$as_me:$LINENO: result: $AR" >&5
6202echo "${ECHO_T}$AR" >&6
6203else
6204  echo "$as_me:$LINENO: result: no" >&5
6205echo "${ECHO_T}no" >&6
6206fi
6207
6208fi
6209if test -z "$ac_cv_prog_AR"; then
6210  ac_ct_AR=$AR
6211  # Extract the first word of "ar", so it can be a program name with args.
6212set dummy ar; ac_word=$2
6213echo "$as_me:$LINENO: checking for $ac_word" >&5
6214echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6215if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6216  echo $ECHO_N "(cached) $ECHO_C" >&6
6217else
6218  if test -n "$ac_ct_AR"; then
6219  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6220else
6221as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6222for as_dir in $PATH
6223do
6224  IFS=$as_save_IFS
6225  test -z "$as_dir" && as_dir=.
6226  for ac_exec_ext in '' $ac_executable_extensions; do
6227  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6228    ac_cv_prog_ac_ct_AR="ar"
6229    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6230    break 2
6231  fi
6232done
6233done
6234
6235  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6236fi
6237fi
6238ac_ct_AR=$ac_cv_prog_ac_ct_AR
6239if test -n "$ac_ct_AR"; then
6240  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6241echo "${ECHO_T}$ac_ct_AR" >&6
6242else
6243  echo "$as_me:$LINENO: result: no" >&5
6244echo "${ECHO_T}no" >&6
6245fi
6246
6247  AR=$ac_ct_AR
6248else
6249  AR="$ac_cv_prog_AR"
6250fi
6251
6252if test -n "$ac_tool_prefix"; then
6253  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6254set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6255echo "$as_me:$LINENO: checking for $ac_word" >&5
6256echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6257if test "${ac_cv_prog_RANLIB+set}" = set; then
6258  echo $ECHO_N "(cached) $ECHO_C" >&6
6259else
6260  if test -n "$RANLIB"; then
6261  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6262else
6263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264for as_dir in $PATH
6265do
6266  IFS=$as_save_IFS
6267  test -z "$as_dir" && as_dir=.
6268  for ac_exec_ext in '' $ac_executable_extensions; do
6269  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6270    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6271    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272    break 2
6273  fi
6274done
6275done
6276
6277fi
6278fi
6279RANLIB=$ac_cv_prog_RANLIB
6280if test -n "$RANLIB"; then
6281  echo "$as_me:$LINENO: result: $RANLIB" >&5
6282echo "${ECHO_T}$RANLIB" >&6
6283else
6284  echo "$as_me:$LINENO: result: no" >&5
6285echo "${ECHO_T}no" >&6
6286fi
6287
6288fi
6289if test -z "$ac_cv_prog_RANLIB"; then
6290  ac_ct_RANLIB=$RANLIB
6291  # Extract the first word of "ranlib", so it can be a program name with args.
6292set dummy ranlib; ac_word=$2
6293echo "$as_me:$LINENO: checking for $ac_word" >&5
6294echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6295if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6296  echo $ECHO_N "(cached) $ECHO_C" >&6
6297else
6298  if test -n "$ac_ct_RANLIB"; then
6299  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6300else
6301as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6302for as_dir in $PATH
6303do
6304  IFS=$as_save_IFS
6305  test -z "$as_dir" && as_dir=.
6306  for ac_exec_ext in '' $ac_executable_extensions; do
6307  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6308    ac_cv_prog_ac_ct_RANLIB="ranlib"
6309    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6310    break 2
6311  fi
6312done
6313done
6314
6315  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6316fi
6317fi
6318ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6319if test -n "$ac_ct_RANLIB"; then
6320  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6321echo "${ECHO_T}$ac_ct_RANLIB" >&6
6322else
6323  echo "$as_me:$LINENO: result: no" >&5
6324echo "${ECHO_T}no" >&6
6325fi
6326
6327  RANLIB=$ac_ct_RANLIB
6328else
6329  RANLIB="$ac_cv_prog_RANLIB"
6330fi
6331
6332if test -n "$ac_tool_prefix"; then
6333  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6334set dummy ${ac_tool_prefix}strip; ac_word=$2
6335echo "$as_me:$LINENO: checking for $ac_word" >&5
6336echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6337if test "${ac_cv_prog_STRIP+set}" = set; then
6338  echo $ECHO_N "(cached) $ECHO_C" >&6
6339else
6340  if test -n "$STRIP"; then
6341  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6342else
6343as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344for as_dir in $PATH
6345do
6346  IFS=$as_save_IFS
6347  test -z "$as_dir" && as_dir=.
6348  for ac_exec_ext in '' $ac_executable_extensions; do
6349  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6350    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6351    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6352    break 2
6353  fi
6354done
6355done
6356
6357fi
6358fi
6359STRIP=$ac_cv_prog_STRIP
6360if test -n "$STRIP"; then
6361  echo "$as_me:$LINENO: result: $STRIP" >&5
6362echo "${ECHO_T}$STRIP" >&6
6363else
6364  echo "$as_me:$LINENO: result: no" >&5
6365echo "${ECHO_T}no" >&6
6366fi
6367
6368fi
6369if test -z "$ac_cv_prog_STRIP"; then
6370  ac_ct_STRIP=$STRIP
6371  # Extract the first word of "strip", so it can be a program name with args.
6372set dummy strip; ac_word=$2
6373echo "$as_me:$LINENO: checking for $ac_word" >&5
6374echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6375if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6376  echo $ECHO_N "(cached) $ECHO_C" >&6
6377else
6378  if test -n "$ac_ct_STRIP"; then
6379  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6380else
6381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6382for as_dir in $PATH
6383do
6384  IFS=$as_save_IFS
6385  test -z "$as_dir" && as_dir=.
6386  for ac_exec_ext in '' $ac_executable_extensions; do
6387  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6388    ac_cv_prog_ac_ct_STRIP="strip"
6389    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390    break 2
6391  fi
6392done
6393done
6394
6395  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6396fi
6397fi
6398ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6399if test -n "$ac_ct_STRIP"; then
6400  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6401echo "${ECHO_T}$ac_ct_STRIP" >&6
6402else
6403  echo "$as_me:$LINENO: result: no" >&5
6404echo "${ECHO_T}no" >&6
6405fi
6406
6407  STRIP=$ac_ct_STRIP
6408else
6409  STRIP="$ac_cv_prog_STRIP"
6410fi
6411
6412
6413old_CC="$CC"
6414old_CFLAGS="$CFLAGS"
6415
6416# Set sane defaults for various variables
6417test -z "$AR" && AR=ar
6418test -z "$AR_FLAGS" && AR_FLAGS=cru
6419test -z "$AS" && AS=as
6420test -z "$CC" && CC=cc
6421test -z "$LTCC" && LTCC=$CC
6422test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6423test -z "$DLLTOOL" && DLLTOOL=dlltool
6424test -z "$LD" && LD=ld
6425test -z "$LN_S" && LN_S="ln -s"
6426test -z "$MAGIC_CMD" && MAGIC_CMD=file
6427test -z "$NM" && NM=nm
6428test -z "$SED" && SED=sed
6429test -z "$OBJDUMP" && OBJDUMP=objdump
6430test -z "$RANLIB" && RANLIB=:
6431test -z "$STRIP" && STRIP=:
6432test -z "$ac_objext" && ac_objext=o
6433
6434# Determine commands to create old-style static archives.
6435old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6436old_postinstall_cmds='chmod 644 $oldlib'
6437old_postuninstall_cmds=
6438
6439if test -n "$RANLIB"; then
6440  case $host_os in
6441  openbsd*)
6442    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6443    ;;
6444  *)
6445    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6446    ;;
6447  esac
6448  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6449fi
6450
6451for cc_temp in $compiler""; do
6452  case $cc_temp in
6453    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6454    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6455    \-*) ;;
6456    *) break;;
6457  esac
6458done
6459cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6460
6461
6462# Only perform the check for file, if the check method requires it
6463case $deplibs_check_method in
6464file_magic*)
6465  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6466    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6467echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6468if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6469  echo $ECHO_N "(cached) $ECHO_C" >&6
6470else
6471  case $MAGIC_CMD in
6472[\\/*] |  ?:[\\/]*)
6473  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6474  ;;
6475*)
6476  lt_save_MAGIC_CMD="$MAGIC_CMD"
6477  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6478  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6479  for ac_dir in $ac_dummy; do
6480    IFS="$lt_save_ifs"
6481    test -z "$ac_dir" && ac_dir=.
6482    if test -f $ac_dir/${ac_tool_prefix}file; then
6483      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6484      if test -n "$file_magic_test_file"; then
6485        case $deplibs_check_method in
6486        "file_magic "*)
6487          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6488          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6489          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6490            $EGREP "$file_magic_regex" > /dev/null; then
6491            :
6492          else
6493            cat <<EOF 1>&2
6494
6495*** Warning: the command libtool uses to detect shared libraries,
6496*** $file_magic_cmd, produces output that libtool cannot recognize.
6497*** The result is that libtool may fail to recognize shared libraries
6498*** as such.  This will affect the creation of libtool libraries that
6499*** depend on shared libraries, but programs linked with such libtool
6500*** libraries will work regardless of this problem.  Nevertheless, you
6501*** may want to report the problem to your system manager and/or to
6502*** bug-libtool@gnu.org
6503
6504EOF
6505          fi ;;
6506        esac
6507      fi
6508      break
6509    fi
6510  done
6511  IFS="$lt_save_ifs"
6512  MAGIC_CMD="$lt_save_MAGIC_CMD"
6513  ;;
6514esac
6515fi
6516
6517MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6518if test -n "$MAGIC_CMD"; then
6519  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6520echo "${ECHO_T}$MAGIC_CMD" >&6
6521else
6522  echo "$as_me:$LINENO: result: no" >&5
6523echo "${ECHO_T}no" >&6
6524fi
6525
6526if test -z "$lt_cv_path_MAGIC_CMD"; then
6527  if test -n "$ac_tool_prefix"; then
6528    echo "$as_me:$LINENO: checking for file" >&5
6529echo $ECHO_N "checking for file... $ECHO_C" >&6
6530if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6531  echo $ECHO_N "(cached) $ECHO_C" >&6
6532else
6533  case $MAGIC_CMD in
6534[\\/*] |  ?:[\\/]*)
6535  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6536  ;;
6537*)
6538  lt_save_MAGIC_CMD="$MAGIC_CMD"
6539  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6540  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6541  for ac_dir in $ac_dummy; do
6542    IFS="$lt_save_ifs"
6543    test -z "$ac_dir" && ac_dir=.
6544    if test -f $ac_dir/file; then
6545      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6546      if test -n "$file_magic_test_file"; then
6547        case $deplibs_check_method in
6548        "file_magic "*)
6549          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6550          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6551          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6552            $EGREP "$file_magic_regex" > /dev/null; then
6553            :
6554          else
6555            cat <<EOF 1>&2
6556
6557*** Warning: the command libtool uses to detect shared libraries,
6558*** $file_magic_cmd, produces output that libtool cannot recognize.
6559*** The result is that libtool may fail to recognize shared libraries
6560*** as such.  This will affect the creation of libtool libraries that
6561*** depend on shared libraries, but programs linked with such libtool
6562*** libraries will work regardless of this problem.  Nevertheless, you
6563*** may want to report the problem to your system manager and/or to
6564*** bug-libtool@gnu.org
6565
6566EOF
6567          fi ;;
6568        esac
6569      fi
6570      break
6571    fi
6572  done
6573  IFS="$lt_save_ifs"
6574  MAGIC_CMD="$lt_save_MAGIC_CMD"
6575  ;;
6576esac
6577fi
6578
6579MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6580if test -n "$MAGIC_CMD"; then
6581  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6582echo "${ECHO_T}$MAGIC_CMD" >&6
6583else
6584  echo "$as_me:$LINENO: result: no" >&5
6585echo "${ECHO_T}no" >&6
6586fi
6587
6588  else
6589    MAGIC_CMD=:
6590  fi
6591fi
6592
6593  fi
6594  ;;
6595esac
6596
6597enable_dlopen=no
6598enable_win32_dll=no
6599
6600# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6601if test "${enable_libtool_lock+set}" = set; then
6602  enableval="$enable_libtool_lock"
6603
6604fi;
6605test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6606
6607
6608# Check whether --with-pic or --without-pic was given.
6609if test "${with_pic+set}" = set; then
6610  withval="$with_pic"
6611  pic_mode="$withval"
6612else
6613  pic_mode=default
6614fi;
6615test -z "$pic_mode" && pic_mode=default
6616
6617# Use C for the default configuration in the libtool script
6618tagname=
6619lt_save_CC="$CC"
6620ac_ext=c
6621ac_cpp='$CPP $CPPFLAGS'
6622ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6623ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6624ac_compiler_gnu=$ac_cv_c_compiler_gnu
6625
6626
6627# Source file extension for C test sources.
6628ac_ext=c
6629
6630# Object file extension for compiled C test sources.
6631objext=o
6632objext=$objext
6633
6634# Code to be used in simple compile tests
6635lt_simple_compile_test_code="int some_variable = 0;\n"
6636
6637# Code to be used in simple link tests
6638lt_simple_link_test_code='int main(){return(0);}\n'
6639
6640
6641# If no C compiler was specified, use CC.
6642LTCC=${LTCC-"$CC"}
6643
6644# If no C compiler flags were specified, use CFLAGS.
6645LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6646
6647# Allow CC to be a program name with arguments.
6648compiler=$CC
6649
6650
6651# save warnings/boilerplate of simple test code
6652ac_outfile=conftest.$ac_objext
6653printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6654eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6655_lt_compiler_boilerplate=`cat conftest.err`
6656$rm conftest*
6657
6658ac_outfile=conftest.$ac_objext
6659printf "$lt_simple_link_test_code" >conftest.$ac_ext
6660eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6661_lt_linker_boilerplate=`cat conftest.err`
6662$rm conftest*
6663
6664
6665## CAVEAT EMPTOR:
6666## There is no encapsulation within the following macros, do not change
6667## the running order or otherwise move them around unless you know exactly
6668## what you are doing...
6669
6670lt_prog_compiler_no_builtin_flag=
6671
6672if test "$GCC" = yes; then
6673  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6674
6675
6676echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6677echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6678if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6679  echo $ECHO_N "(cached) $ECHO_C" >&6
6680else
6681  lt_cv_prog_compiler_rtti_exceptions=no
6682  ac_outfile=conftest.$ac_objext
6683   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6684   lt_compiler_flag="-fno-rtti -fno-exceptions"
6685   # Insert the option either (1) after the last *FLAGS variable, or
6686   # (2) before a word containing "conftest.", or (3) at the end.
6687   # Note that $ac_compile itself does not contain backslashes and begins
6688   # with a dollar sign (not a hyphen), so the echo should work correctly.
6689   # The option is referenced via a variable to avoid confusing sed.
6690   lt_compile=`echo "$ac_compile" | $SED \
6691   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6692   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6693   -e 's:$: $lt_compiler_flag:'`
6694   (eval echo "\"\$as_me:6694: $lt_compile\"" >&5)
6695   (eval "$lt_compile" 2>conftest.err)
6696   ac_status=$?
6697   cat conftest.err >&5
6698   echo "$as_me:6698: \$? = $ac_status" >&5
6699   if (exit $ac_status) && test -s "$ac_outfile"; then
6700     # The compiler can only warn and ignore the option if not recognized
6701     # So say no if there are warnings other than the usual output.
6702     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6703     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6704     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6705       lt_cv_prog_compiler_rtti_exceptions=yes
6706     fi
6707   fi
6708   $rm conftest*
6709
6710fi
6711echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6712echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6713
6714if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6715    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6716else
6717    :
6718fi
6719
6720fi
6721
6722lt_prog_compiler_wl=
6723lt_prog_compiler_pic=
6724lt_prog_compiler_static=
6725
6726echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6727echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6728
6729  if test "$GCC" = yes; then
6730    lt_prog_compiler_wl='-Wl,'
6731    lt_prog_compiler_static='-static'
6732
6733    case $host_os in
6734      aix*)
6735      # All AIX code is PIC.
6736      if test "$host_cpu" = ia64; then
6737        # AIX 5 now supports IA64 processor
6738        lt_prog_compiler_static='-Bstatic'
6739      fi
6740      ;;
6741
6742    amigaos*)
6743      # FIXME: we need at least 68020 code to build shared libraries, but
6744      # adding the `-m68020' flag to GCC prevents building anything better,
6745      # like `-m68040'.
6746      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6747      ;;
6748
6749    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6750      # PIC is the default for these OSes.
6751      ;;
6752
6753    mingw* | pw32* | os2*)
6754      # This hack is so that the source file can tell whether it is being
6755      # built for inclusion in a dll (and should export symbols for example).
6756      lt_prog_compiler_pic='-DDLL_EXPORT'
6757      ;;
6758
6759    darwin* | rhapsody*)
6760      # PIC is the default on this platform
6761      # Common symbols not allowed in MH_DYLIB files
6762      lt_prog_compiler_pic='-fno-common'
6763      ;;
6764
6765    interix3*)
6766      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6767      # Instead, we relocate shared libraries at runtime.
6768      ;;
6769
6770    msdosdjgpp*)
6771      # Just because we use GCC doesn't mean we suddenly get shared libraries
6772      # on systems that don't support them.
6773      lt_prog_compiler_can_build_shared=no
6774      enable_shared=no
6775      ;;
6776
6777    sysv4*MP*)
6778      if test -d /usr/nec; then
6779        lt_prog_compiler_pic=-Kconform_pic
6780      fi
6781      ;;
6782
6783    hpux*)
6784      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6785      # not for PA HP-UX.
6786      case $host_cpu in
6787      hppa*64*|ia64*)
6788        # +Z the default
6789        ;;
6790      *)
6791        lt_prog_compiler_pic='-fPIC'
6792        ;;
6793      esac
6794      ;;
6795
6796    *)
6797      lt_prog_compiler_pic='-fPIC'
6798      ;;
6799    esac
6800  else
6801    # PORTME Check for flag to pass linker flags through the system compiler.
6802    case $host_os in
6803    aix*)
6804      lt_prog_compiler_wl='-Wl,'
6805      if test "$host_cpu" = ia64; then
6806        # AIX 5 now supports IA64 processor
6807        lt_prog_compiler_static='-Bstatic'
6808      else
6809        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6810      fi
6811      ;;
6812      darwin*)
6813        # PIC is the default on this platform
6814        # Common symbols not allowed in MH_DYLIB files
6815       case $cc_basename in
6816         xlc*)
6817         lt_prog_compiler_pic='-qnocommon'
6818         lt_prog_compiler_wl='-Wl,'
6819         ;;
6820       esac
6821       ;;
6822
6823    mingw* | pw32* | os2*)
6824      # This hack is so that the source file can tell whether it is being
6825      # built for inclusion in a dll (and should export symbols for example).
6826      lt_prog_compiler_pic='-DDLL_EXPORT'
6827      ;;
6828
6829    hpux9* | hpux10* | hpux11*)
6830      lt_prog_compiler_wl='-Wl,'
6831      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6832      # not for PA HP-UX.
6833      case $host_cpu in
6834      hppa*64*|ia64*)
6835        # +Z the default
6836        ;;
6837      *)
6838        lt_prog_compiler_pic='+Z'
6839        ;;
6840      esac
6841      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6842      lt_prog_compiler_static='${wl}-a ${wl}archive'
6843      ;;
6844
6845    irix5* | irix6* | nonstopux*)
6846      lt_prog_compiler_wl='-Wl,'
6847      # PIC (with -KPIC) is the default.
6848      lt_prog_compiler_static='-non_shared'
6849      ;;
6850
6851    newsos6)
6852      lt_prog_compiler_pic='-KPIC'
6853      lt_prog_compiler_static='-Bstatic'
6854      ;;
6855
6856    linux*)
6857      case $cc_basename in
6858      icc* | ecc*)
6859        lt_prog_compiler_wl='-Wl,'
6860        lt_prog_compiler_pic='-KPIC'
6861        lt_prog_compiler_static='-static'
6862        ;;
6863      pgcc* | pgf77* | pgf90* | pgf95*)
6864        # Portland Group compilers (*not* the Pentium gcc compiler,
6865        # which looks to be a dead project)
6866        lt_prog_compiler_wl='-Wl,'
6867        lt_prog_compiler_pic='-fpic'
6868        lt_prog_compiler_static='-Bstatic'
6869        ;;
6870      ccc*)
6871        lt_prog_compiler_wl='-Wl,'
6872        # All Alpha code is PIC.
6873        lt_prog_compiler_static='-non_shared'
6874        ;;
6875      esac
6876      ;;
6877
6878    osf3* | osf4* | osf5*)
6879      lt_prog_compiler_wl='-Wl,'
6880      # All OSF/1 code is PIC.
6881      lt_prog_compiler_static='-non_shared'
6882      ;;
6883
6884    solaris*)
6885      lt_prog_compiler_pic='-KPIC'
6886      lt_prog_compiler_static='-Bstatic'
6887      case $cc_basename in
6888      f77* | f90* | f95*)
6889        lt_prog_compiler_wl='-Qoption ld ';;
6890      *)
6891        lt_prog_compiler_wl='-Wl,';;
6892      esac
6893      ;;
6894
6895    sunos4*)
6896      lt_prog_compiler_wl='-Qoption ld '
6897      lt_prog_compiler_pic='-PIC'
6898      lt_prog_compiler_static='-Bstatic'
6899      ;;
6900
6901    sysv4 | sysv4.2uw2* | sysv4.3*)
6902      lt_prog_compiler_wl='-Wl,'
6903      lt_prog_compiler_pic='-KPIC'
6904      lt_prog_compiler_static='-Bstatic'
6905      ;;
6906
6907    sysv4*MP*)
6908      if test -d /usr/nec ;then
6909        lt_prog_compiler_pic='-Kconform_pic'
6910        lt_prog_compiler_static='-Bstatic'
6911      fi
6912      ;;
6913
6914    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6915      lt_prog_compiler_wl='-Wl,'
6916      lt_prog_compiler_pic='-KPIC'
6917      lt_prog_compiler_static='-Bstatic'
6918      ;;
6919
6920    unicos*)
6921      lt_prog_compiler_wl='-Wl,'
6922      lt_prog_compiler_can_build_shared=no
6923      ;;
6924
6925    uts4*)
6926      lt_prog_compiler_pic='-pic'
6927      lt_prog_compiler_static='-Bstatic'
6928      ;;
6929
6930    *)
6931      lt_prog_compiler_can_build_shared=no
6932      ;;
6933    esac
6934  fi
6935
6936echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6937echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6938
6939#
6940# Check to make sure the PIC flag actually works.
6941#
6942if test -n "$lt_prog_compiler_pic"; then
6943
6944echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6945echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6946if test "${lt_prog_compiler_pic_works+set}" = set; then
6947  echo $ECHO_N "(cached) $ECHO_C" >&6
6948else
6949  lt_prog_compiler_pic_works=no
6950  ac_outfile=conftest.$ac_objext
6951   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6952   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6953   # Insert the option either (1) after the last *FLAGS variable, or
6954   # (2) before a word containing "conftest.", or (3) at the end.
6955   # Note that $ac_compile itself does not contain backslashes and begins
6956   # with a dollar sign (not a hyphen), so the echo should work correctly.
6957   # The option is referenced via a variable to avoid confusing sed.
6958   lt_compile=`echo "$ac_compile" | $SED \
6959   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6960   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6961   -e 's:$: $lt_compiler_flag:'`
6962   (eval echo "\"\$as_me:6962: $lt_compile\"" >&5)
6963   (eval "$lt_compile" 2>conftest.err)
6964   ac_status=$?
6965   cat conftest.err >&5
6966   echo "$as_me:6966: \$? = $ac_status" >&5
6967   if (exit $ac_status) && test -s "$ac_outfile"; then
6968     # The compiler can only warn and ignore the option if not recognized
6969     # So say no if there are warnings other than the usual output.
6970     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6971     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6972     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6973       lt_prog_compiler_pic_works=yes
6974     fi
6975   fi
6976   $rm conftest*
6977
6978fi
6979echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6980echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6981
6982if test x"$lt_prog_compiler_pic_works" = xyes; then
6983    case $lt_prog_compiler_pic in
6984     "" | " "*) ;;
6985     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6986     esac
6987else
6988    lt_prog_compiler_pic=
6989     lt_prog_compiler_can_build_shared=no
6990fi
6991
6992fi
6993case $host_os in
6994  # For platforms which do not support PIC, -DPIC is meaningless:
6995  *djgpp*)
6996    lt_prog_compiler_pic=
6997    ;;
6998  *)
6999    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7000    ;;
7001esac
7002
7003#
7004# Check to make sure the static flag actually works.
7005#
7006wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7007echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7008echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7009if test "${lt_prog_compiler_static_works+set}" = set; then
7010  echo $ECHO_N "(cached) $ECHO_C" >&6
7011else
7012  lt_prog_compiler_static_works=no
7013   save_LDFLAGS="$LDFLAGS"
7014   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7015   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7016   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7017     # The linker can only warn and ignore the option if not recognized
7018     # So say no if there are warnings
7019     if test -s conftest.err; then
7020       # Append any errors to the config.log.
7021       cat conftest.err 1>&5
7022       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7023       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7024       if diff conftest.exp conftest.er2 >/dev/null; then
7025         lt_prog_compiler_static_works=yes
7026       fi
7027     else
7028       lt_prog_compiler_static_works=yes
7029     fi
7030   fi
7031   $rm conftest*
7032   LDFLAGS="$save_LDFLAGS"
7033
7034fi
7035echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7036echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7037
7038if test x"$lt_prog_compiler_static_works" = xyes; then
7039    :
7040else
7041    lt_prog_compiler_static=
7042fi
7043
7044
7045echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7046echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7047if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7048  echo $ECHO_N "(cached) $ECHO_C" >&6
7049else
7050  lt_cv_prog_compiler_c_o=no
7051   $rm -r conftest 2>/dev/null
7052   mkdir conftest
7053   cd conftest
7054   mkdir out
7055   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7056
7057   lt_compiler_flag="-o out/conftest2.$ac_objext"
7058   # Insert the option either (1) after the last *FLAGS variable, or
7059   # (2) before a word containing "conftest.", or (3) at the end.
7060   # Note that $ac_compile itself does not contain backslashes and begins
7061   # with a dollar sign (not a hyphen), so the echo should work correctly.
7062   lt_compile=`echo "$ac_compile" | $SED \
7063   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7064   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7065   -e 's:$: $lt_compiler_flag:'`
7066   (eval echo "\"\$as_me:7066: $lt_compile\"" >&5)
7067   (eval "$lt_compile" 2>out/conftest.err)
7068   ac_status=$?
7069   cat out/conftest.err >&5
7070   echo "$as_me:7070: \$? = $ac_status" >&5
7071   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7072   then
7073     # The compiler can only warn and ignore the option if not recognized
7074     # So say no if there are warnings
7075     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7076     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7077     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7078       lt_cv_prog_compiler_c_o=yes
7079     fi
7080   fi
7081   chmod u+w . 2>&5
7082   $rm conftest*
7083   # SGI C++ compiler will create directory out/ii_files/ for
7084   # template instantiation
7085   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7086   $rm out/* && rmdir out
7087   cd ..
7088   rmdir conftest
7089   $rm conftest*
7090
7091fi
7092echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7093echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7094
7095
7096hard_links="nottested"
7097if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7098  # do not overwrite the value of need_locks provided by the user
7099  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7100echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7101  hard_links=yes
7102  $rm conftest*
7103  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7104  touch conftest.a
7105  ln conftest.a conftest.b 2>&5 || hard_links=no
7106  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7107  echo "$as_me:$LINENO: result: $hard_links" >&5
7108echo "${ECHO_T}$hard_links" >&6
7109  if test "$hard_links" = no; then
7110    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7111echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7112    need_locks=warn
7113  fi
7114else
7115  need_locks=no
7116fi
7117
7118echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7119echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7120
7121  runpath_var=
7122  allow_undefined_flag=
7123  enable_shared_with_static_runtimes=no
7124  archive_cmds=
7125  archive_expsym_cmds=
7126  old_archive_From_new_cmds=
7127  old_archive_from_expsyms_cmds=
7128  export_dynamic_flag_spec=
7129  whole_archive_flag_spec=
7130  thread_safe_flag_spec=
7131  hardcode_libdir_flag_spec=
7132  hardcode_libdir_flag_spec_ld=
7133  hardcode_libdir_separator=
7134  hardcode_direct=no
7135  hardcode_minus_L=no
7136  hardcode_shlibpath_var=unsupported
7137  link_all_deplibs=unknown
7138  hardcode_automatic=no
7139  module_cmds=
7140  module_expsym_cmds=
7141  always_export_symbols=no
7142  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7143  # include_expsyms should be a list of space-separated symbols to be *always*
7144  # included in the symbol list
7145  include_expsyms=
7146  # exclude_expsyms can be an extended regexp of symbols to exclude
7147  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7148  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7149  # as well as any symbol that contains `d'.
7150  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7151  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7152  # platforms (ab)use it in PIC code, but their linkers get confused if
7153  # the symbol is explicitly referenced.  Since portable code cannot
7154  # rely on this symbol name, it's probably fine to never include it in
7155  # preloaded symbol tables.
7156  extract_expsyms_cmds=
7157  # Just being paranoid about ensuring that cc_basename is set.
7158  for cc_temp in $compiler""; do
7159  case $cc_temp in
7160    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7161    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7162    \-*) ;;
7163    *) break;;
7164  esac
7165done
7166cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7167
7168  case $host_os in
7169  cygwin* | mingw* | pw32*)
7170    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7171    # When not using gcc, we currently assume that we are using
7172    # Microsoft Visual C++.
7173    if test "$GCC" != yes; then
7174      with_gnu_ld=no
7175    fi
7176    ;;
7177  interix*)
7178    # we just hope/assume this is gcc and not c89 (= MSVC++)
7179    with_gnu_ld=yes
7180    ;;
7181  openbsd*)
7182    with_gnu_ld=no
7183    ;;
7184  esac
7185
7186  ld_shlibs=yes
7187  if test "$with_gnu_ld" = yes; then
7188    # If archive_cmds runs LD, not CC, wlarc should be empty
7189    wlarc='${wl}'
7190
7191    # Set some defaults for GNU ld with shared library support. These
7192    # are reset later if shared libraries are not supported. Putting them
7193    # here allows them to be overridden if necessary.
7194    runpath_var=LD_RUN_PATH
7195    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7196    export_dynamic_flag_spec='${wl}--export-dynamic'
7197    # ancient GNU ld didn't support --whole-archive et. al.
7198    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7199        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7200      else
7201        whole_archive_flag_spec=
7202    fi
7203    supports_anon_versioning=no
7204    case `$LD -v 2>/dev/null` in
7205      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7206      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7207      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7208      *\ 2.11.*) ;; # other 2.11 versions
7209      *) supports_anon_versioning=yes ;;
7210    esac
7211
7212    # See if GNU ld supports shared libraries.
7213    case $host_os in
7214    aix3* | aix4* | aix5*)
7215      # On AIX/PPC, the GNU linker is very broken
7216      if test "$host_cpu" != ia64; then
7217        ld_shlibs=no
7218        cat <<EOF 1>&2
7219
7220*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7221*** to be unable to reliably create shared libraries on AIX.
7222*** Therefore, libtool is disabling shared libraries support.  If you
7223*** really care for shared libraries, you may want to modify your PATH
7224*** so that a non-GNU linker is found, and then restart.
7225
7226EOF
7227      fi
7228      ;;
7229
7230    amigaos*)
7231      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)'
7232      hardcode_libdir_flag_spec='-L$libdir'
7233      hardcode_minus_L=yes
7234
7235      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7236      # that the semantics of dynamic libraries on AmigaOS, at least up
7237      # to version 4, is to share data among multiple programs linked
7238      # with the same dynamic library.  Since this doesn't match the
7239      # behavior of shared libraries on other platforms, we can't use
7240      # them.
7241      ld_shlibs=no
7242      ;;
7243
7244    beos*)
7245      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7246        allow_undefined_flag=unsupported
7247        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7248        # support --undefined.  This deserves some investigation.  FIXME
7249        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7250      else
7251        ld_shlibs=no
7252      fi
7253      ;;
7254
7255    cygwin* | mingw* | pw32*)
7256      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7257      # as there is no search path for DLLs.
7258      hardcode_libdir_flag_spec='-L$libdir'
7259      allow_undefined_flag=unsupported
7260      always_export_symbols=no
7261      enable_shared_with_static_runtimes=yes
7262      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7263
7264      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7265        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7266        # If the export-symbols file already is a .def file (1st line
7267        # is EXPORTS), use it as is; otherwise, prepend...
7268        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7269          cp $export_symbols $output_objdir/$soname.def;
7270        else
7271          echo EXPORTS > $output_objdir/$soname.def;
7272          cat $export_symbols >> $output_objdir/$soname.def;
7273        fi~
7274        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7275      else
7276        ld_shlibs=no
7277      fi
7278      ;;
7279
7280    interix3*)
7281      hardcode_direct=no
7282      hardcode_shlibpath_var=no
7283      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7284      export_dynamic_flag_spec='${wl}-E'
7285      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7286      # Instead, shared libraries are loaded at an image base (0x10000000 by
7287      # default) and relocated if they conflict, which is a slow very memory
7288      # consuming and fragmenting process.  To avoid this, we pick a random,
7289      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7290      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7291      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7292      archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7293      ;;
7294
7295    linux*)
7296      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7297        tmp_addflag=
7298        case $cc_basename,$host_cpu in
7299        pgcc*)                          # Portland Group C compiler
7300          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7301          tmp_addflag=' $pic_flag'
7302          ;;
7303        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7304          whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7305          tmp_addflag=' $pic_flag -Mnomain' ;;
7306        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7307          tmp_addflag=' -i_dynamic' ;;
7308        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7309          tmp_addflag=' -i_dynamic -nofor_main' ;;
7310        ifc* | ifort*)                  # Intel Fortran compiler
7311          tmp_addflag=' -nofor_main' ;;
7312        esac
7313        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7314
7315        if test $supports_anon_versioning = yes; then
7316          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7317  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7318  $echo "local: *; };" >> $output_objdir/$libname.ver~
7319          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7320        fi
7321      else
7322        ld_shlibs=no
7323      fi
7324      ;;
7325
7326    netbsd*)
7327      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7328        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7329        wlarc=
7330      else
7331        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7332        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7333      fi
7334      ;;
7335
7336    solaris*)
7337      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7338        ld_shlibs=no
7339        cat <<EOF 1>&2
7340
7341*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7342*** create shared libraries on Solaris systems.  Therefore, libtool
7343*** is disabling shared libraries support.  We urge you to upgrade GNU
7344*** binutils to release 2.9.1 or newer.  Another option is to modify
7345*** your PATH or compiler configuration so that the native linker is
7346*** used, and then restart.
7347
7348EOF
7349      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7350        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7351        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7352      else
7353        ld_shlibs=no
7354      fi
7355      ;;
7356
7357    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7358      case `$LD -v 2>&1` in
7359        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7360        ld_shlibs=no
7361        cat <<_LT_EOF 1>&2
7362
7363*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7364*** reliably create shared libraries on SCO systems.  Therefore, libtool
7365*** is disabling shared libraries support.  We urge you to upgrade GNU
7366*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7367*** your PATH or compiler configuration so that the native linker is
7368*** used, and then restart.
7369
7370_LT_EOF
7371        ;;
7372        *)
7373          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7374            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7375            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7376            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7377          else
7378            ld_shlibs=no
7379          fi
7380        ;;
7381      esac
7382      ;;
7383
7384    sunos4*)
7385      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7386      wlarc=
7387      hardcode_direct=yes
7388      hardcode_shlibpath_var=no
7389      ;;
7390
7391    *)
7392      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7393        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7394        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7395      else
7396        ld_shlibs=no
7397      fi
7398      ;;
7399    esac
7400
7401    if test "$ld_shlibs" = no; then
7402      runpath_var=
7403      hardcode_libdir_flag_spec=
7404      export_dynamic_flag_spec=
7405      whole_archive_flag_spec=
7406    fi
7407  else
7408    # PORTME fill in a description of your system's linker (not GNU ld)
7409    case $host_os in
7410    aix3*)
7411      allow_undefined_flag=unsupported
7412      always_export_symbols=yes
7413      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'
7414      # Note: this linker hardcodes the directories in LIBPATH if there
7415      # are no directories specified by -L.
7416      hardcode_minus_L=yes
7417      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7418        # Neither direct hardcoding nor static linking is supported with a
7419        # broken collect2.
7420        hardcode_direct=unsupported
7421      fi
7422      ;;
7423
7424    aix4* | aix5*)
7425      if test "$host_cpu" = ia64; then
7426        # On IA64, the linker does run time linking by default, so we don't
7427        # have to do anything special.
7428        aix_use_runtimelinking=no
7429        exp_sym_flag='-Bexport'
7430        no_entry_flag=""
7431      else
7432        # If we're using GNU nm, then we don't want the "-C" option.
7433        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7434        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7435          export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7436        else
7437          export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7438        fi
7439        aix_use_runtimelinking=no
7440
7441        # Test if we are trying to use run time linking or normal
7442        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7443        # need to do runtime linking.
7444        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7445          for ld_flag in $LDFLAGS; do
7446          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7447            aix_use_runtimelinking=yes
7448            break
7449          fi
7450          done
7451          ;;
7452        esac
7453
7454        exp_sym_flag='-bexport'
7455        no_entry_flag='-bnoentry'
7456      fi
7457
7458      # When large executables or shared objects are built, AIX ld can
7459      # have problems creating the table of contents.  If linking a library
7460      # or program results in "error TOC overflow" add -mminimal-toc to
7461      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7462      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7463
7464      archive_cmds=''
7465      hardcode_direct=yes
7466      hardcode_libdir_separator=':'
7467      link_all_deplibs=yes
7468
7469      if test "$GCC" = yes; then
7470        case $host_os in aix4.[012]|aix4.[012].*)
7471        # We only want to do this on AIX 4.2 and lower, the check
7472        # below for broken collect2 doesn't work under 4.3+
7473          collect2name=`${CC} -print-prog-name=collect2`
7474          if test -f "$collect2name" && \
7475           strings "$collect2name" | grep resolve_lib_name >/dev/null
7476          then
7477          # We have reworked collect2
7478          hardcode_direct=yes
7479          else
7480          # We have old collect2
7481          hardcode_direct=unsupported
7482          # It fails to find uninstalled libraries when the uninstalled
7483          # path is not listed in the libpath.  Setting hardcode_minus_L
7484          # to unsupported forces relinking
7485          hardcode_minus_L=yes
7486          hardcode_libdir_flag_spec='-L$libdir'
7487          hardcode_libdir_separator=
7488          fi
7489          ;;
7490        esac
7491        shared_flag='-shared'
7492        if test "$aix_use_runtimelinking" = yes; then
7493          shared_flag="$shared_flag "'${wl}-G'
7494        fi
7495      else
7496        # not using gcc
7497        if test "$host_cpu" = ia64; then
7498        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7499        # chokes on -Wl,-G. The following line is correct:
7500          shared_flag='-G'
7501        else
7502          if test "$aix_use_runtimelinking" = yes; then
7503            shared_flag='${wl}-G'
7504          else
7505            shared_flag='${wl}-bM:SRE'
7506          fi
7507        fi
7508      fi
7509
7510      # It seems that -bexpall does not export symbols beginning with
7511      # underscore (_), so it is better to generate a list of symbols to export.
7512      always_export_symbols=yes
7513      if test "$aix_use_runtimelinking" = yes; then
7514        # Warning - without using the other runtime loading flags (-brtl),
7515        # -berok will link without error, but may produce a broken library.
7516        allow_undefined_flag='-berok'
7517       # Determine the default libpath from the value encoded in an empty executable.
7518       cat >conftest.$ac_ext <<_ACEOF
7519/* confdefs.h.  */
7520_ACEOF
7521cat confdefs.h >>conftest.$ac_ext
7522cat >>conftest.$ac_ext <<_ACEOF
7523/* end confdefs.h.  */
7524
7525int
7526main ()
7527{
7528
7529  ;
7530  return 0;
7531}
7532_ACEOF
7533rm -f conftest.$ac_objext conftest$ac_exeext
7534if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7535  (eval $ac_link) 2>conftest.er1
7536  ac_status=$?
7537  grep -v '^ *+' conftest.er1 >conftest.err
7538  rm -f conftest.er1
7539  cat conftest.err >&5
7540  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7541  (exit $ac_status); } &&
7542         { ac_try='test -z "$ac_c_werror_flag"
7543                         || test ! -s conftest.err'
7544  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7545  (eval $ac_try) 2>&5
7546  ac_status=$?
7547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548  (exit $ac_status); }; } &&
7549         { ac_try='test -s conftest$ac_exeext'
7550  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7551  (eval $ac_try) 2>&5
7552  ac_status=$?
7553  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554  (exit $ac_status); }; }; then
7555
7556aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7557}'`
7558# Check for a 64-bit object if we didn't find anything.
7559if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7560}'`; fi
7561else
7562  echo "$as_me: failed program was:" >&5
7563sed 's/^/| /' conftest.$ac_ext >&5
7564
7565fi
7566rm -f conftest.err conftest.$ac_objext \
7567      conftest$ac_exeext conftest.$ac_ext
7568if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7569
7570       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7571        archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7572       else
7573        if test "$host_cpu" = ia64; then
7574          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7575          allow_undefined_flag="-z nodefs"
7576          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7577        else
7578         # Determine the default libpath from the value encoded in an empty executable.
7579         cat >conftest.$ac_ext <<_ACEOF
7580/* confdefs.h.  */
7581_ACEOF
7582cat confdefs.h >>conftest.$ac_ext
7583cat >>conftest.$ac_ext <<_ACEOF
7584/* end confdefs.h.  */
7585
7586int
7587main ()
7588{
7589
7590  ;
7591  return 0;
7592}
7593_ACEOF
7594rm -f conftest.$ac_objext conftest$ac_exeext
7595if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7596  (eval $ac_link) 2>conftest.er1
7597  ac_status=$?
7598  grep -v '^ *+' conftest.er1 >conftest.err
7599  rm -f conftest.er1
7600  cat conftest.err >&5
7601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7602  (exit $ac_status); } &&
7603         { ac_try='test -z "$ac_c_werror_flag"
7604                         || test ! -s conftest.err'
7605  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7606  (eval $ac_try) 2>&5
7607  ac_status=$?
7608  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7609  (exit $ac_status); }; } &&
7610         { ac_try='test -s conftest$ac_exeext'
7611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612  (eval $ac_try) 2>&5
7613  ac_status=$?
7614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615  (exit $ac_status); }; }; then
7616
7617aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7618}'`
7619# Check for a 64-bit object if we didn't find anything.
7620if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7621}'`; fi
7622else
7623  echo "$as_me: failed program was:" >&5
7624sed 's/^/| /' conftest.$ac_ext >&5
7625
7626fi
7627rm -f conftest.err conftest.$ac_objext \
7628      conftest$ac_exeext conftest.$ac_ext
7629if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7630
7631         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7632          # Warning - without using the other run time loading flags,
7633          # -berok will link without error, but may produce a broken library.
7634          no_undefined_flag=' ${wl}-bernotok'
7635          allow_undefined_flag=' ${wl}-berok'
7636          # Exported symbols can be pulled into shared objects from archives
7637          whole_archive_flag_spec='$convenience'
7638          archive_cmds_need_lc=yes
7639          # This is similar to how AIX traditionally builds its shared libraries.
7640          archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7641        fi
7642      fi
7643      ;;
7644
7645    amigaos*)
7646      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)'
7647      hardcode_libdir_flag_spec='-L$libdir'
7648      hardcode_minus_L=yes
7649      # see comment about different semantics on the GNU ld section
7650      ld_shlibs=no
7651      ;;
7652
7653    bsdi[45]*)
7654      export_dynamic_flag_spec=-rdynamic
7655      ;;
7656
7657    cygwin* | mingw* | pw32*)
7658      # When not using gcc, we currently assume that we are using
7659      # Microsoft Visual C++.
7660      # hardcode_libdir_flag_spec is actually meaningless, as there is
7661      # no search path for DLLs.
7662      hardcode_libdir_flag_spec=' '
7663      allow_undefined_flag=unsupported
7664      # Tell ltmain to make .lib files, not .a files.
7665      libext=lib
7666      # Tell ltmain to make .dll files, not .so files.
7667      shrext_cmds=".dll"
7668      # FIXME: Setting linknames here is a bad hack.
7669      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7670      # The linker will automatically build a .lib file if we build a DLL.
7671      old_archive_From_new_cmds='true'
7672      # FIXME: Should let the user specify the lib program.
7673      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7674      fix_srcfile_path='`cygpath -w "$srcfile"`'
7675      enable_shared_with_static_runtimes=yes
7676      ;;
7677
7678    darwin* | rhapsody*)
7679      case $host_os in
7680        rhapsody* | darwin1.[012])
7681         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7682         ;;
7683       *) # Darwin 1.3 on
7684         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7685           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7686         else
7687           case ${MACOSX_DEPLOYMENT_TARGET} in
7688             10.[012])
7689               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7690               ;;
7691             10.*)
7692               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7693               ;;
7694           esac
7695         fi
7696         ;;
7697      esac
7698      archive_cmds_need_lc=no
7699      hardcode_direct=no
7700      hardcode_automatic=yes
7701      hardcode_shlibpath_var=unsupported
7702      whole_archive_flag_spec=''
7703      link_all_deplibs=yes
7704    if test "$GCC" = yes ; then
7705        output_verbose_link_cmd='echo'
7706        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7707      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7708      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7709      archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7710      module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7711    else
7712      case $cc_basename in
7713        xlc*)
7714         output_verbose_link_cmd='echo'
7715         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7716         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7717          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7718         archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7719          module_expsym_cmds='sed -e "s,#.*,," -e "s,^[    ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag  -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7720          ;;
7721       *)
7722         ld_shlibs=no
7723          ;;
7724      esac
7725    fi
7726      ;;
7727
7728    dgux*)
7729      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7730      hardcode_libdir_flag_spec='-L$libdir'
7731      hardcode_shlibpath_var=no
7732      ;;
7733
7734    freebsd1*)
7735      ld_shlibs=no
7736      ;;
7737
7738    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7739    # support.  Future versions do this automatically, but an explicit c++rt0.o
7740    # does not break anything, and helps significantly (at the cost of a little
7741    # extra space).
7742    freebsd2.2*)
7743      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7744      hardcode_libdir_flag_spec='-R$libdir'
7745      hardcode_direct=yes
7746      hardcode_shlibpath_var=no
7747      ;;
7748
7749    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7750    freebsd2*)
7751      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7752      hardcode_direct=yes
7753      hardcode_minus_L=yes
7754      hardcode_shlibpath_var=no
7755      ;;
7756
7757    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7758    freebsd* | kfreebsd*-gnu | dragonfly*)
7759      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7760      hardcode_libdir_flag_spec='-R$libdir'
7761      hardcode_direct=yes
7762      hardcode_shlibpath_var=no
7763      ;;
7764
7765    hpux9*)
7766      if test "$GCC" = yes; then
7767        archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7768      else
7769        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'
7770      fi
7771      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7772      hardcode_libdir_separator=:
7773      hardcode_direct=yes
7774
7775      # hardcode_minus_L: Not really in the search PATH,
7776      # but as the default location of the library.
7777      hardcode_minus_L=yes
7778      export_dynamic_flag_spec='${wl}-E'
7779      ;;
7780
7781    hpux10*)
7782      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7783        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7784      else
7785        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7786      fi
7787      if test "$with_gnu_ld" = no; then
7788        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7789        hardcode_libdir_separator=:
7790
7791        hardcode_direct=yes
7792        export_dynamic_flag_spec='${wl}-E'
7793
7794        # hardcode_minus_L: Not really in the search PATH,
7795        # but as the default location of the library.
7796        hardcode_minus_L=yes
7797      fi
7798      ;;
7799
7800    hpux11*)
7801      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7802        case $host_cpu in
7803        hppa*64*)
7804          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7805          ;;
7806        ia64*)
7807          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7808          ;;
7809        *)
7810          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7811          ;;
7812        esac
7813      else
7814        case $host_cpu in
7815        hppa*64*)
7816          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7817          ;;
7818        ia64*)
7819          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7820          ;;
7821        *)
7822          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7823          ;;
7824        esac
7825      fi
7826      if test "$with_gnu_ld" = no; then
7827        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7828        hardcode_libdir_separator=:
7829
7830        case $host_cpu in
7831        hppa*64*|ia64*)
7832          hardcode_libdir_flag_spec_ld='+b $libdir'
7833          hardcode_direct=no
7834          hardcode_shlibpath_var=no
7835          ;;
7836        *)
7837          hardcode_direct=yes
7838          export_dynamic_flag_spec='${wl}-E'
7839
7840          # hardcode_minus_L: Not really in the search PATH,
7841          # but as the default location of the library.
7842          hardcode_minus_L=yes
7843          ;;
7844        esac
7845      fi
7846      ;;
7847
7848    irix5* | irix6* | nonstopux*)
7849      if test "$GCC" = yes; then
7850        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'
7851      else
7852        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'
7853        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7854      fi
7855      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7856      hardcode_libdir_separator=:
7857      link_all_deplibs=yes
7858      ;;
7859
7860    netbsd*)
7861      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7862        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7863      else
7864        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7865      fi
7866      hardcode_libdir_flag_spec='-R$libdir'
7867      hardcode_direct=yes
7868      hardcode_shlibpath_var=no
7869      ;;
7870
7871    newsos6)
7872      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7873      hardcode_direct=yes
7874      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7875      hardcode_libdir_separator=:
7876      hardcode_shlibpath_var=no
7877      ;;
7878
7879    openbsd*)
7880      hardcode_direct=yes
7881      hardcode_shlibpath_var=no
7882      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7883        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7884        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7885        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7886        export_dynamic_flag_spec='${wl}-E'
7887      else
7888       case $host_os in
7889         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7890           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7891           hardcode_libdir_flag_spec='-R$libdir'
7892           ;;
7893         *)
7894           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7895           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7896           ;;
7897       esac
7898      fi
7899      ;;
7900
7901    os2*)
7902      hardcode_libdir_flag_spec='-L$libdir'
7903      hardcode_minus_L=yes
7904      allow_undefined_flag=unsupported
7905      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'
7906      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7907      ;;
7908
7909    osf3*)
7910      if test "$GCC" = yes; then
7911        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7912        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'
7913      else
7914        allow_undefined_flag=' -expect_unresolved \*'
7915        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'
7916      fi
7917      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7918      hardcode_libdir_separator=:
7919      ;;
7920
7921    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7922      if test "$GCC" = yes; then
7923        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7924        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'
7925        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7926      else
7927        allow_undefined_flag=' -expect_unresolved \*'
7928        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'
7929        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7930        $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
7931
7932        # Both c and cxx compiler support -rpath directly
7933        hardcode_libdir_flag_spec='-rpath $libdir'
7934      fi
7935      hardcode_libdir_separator=:
7936      ;;
7937
7938    solaris*)
7939      no_undefined_flag=' -z text'
7940      if test "$GCC" = yes; then
7941        wlarc='${wl}'
7942        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7943        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7944          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7945      else
7946        wlarc=''
7947        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7948        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7949        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7950      fi
7951      hardcode_libdir_flag_spec='-R$libdir'
7952      hardcode_shlibpath_var=no
7953      case $host_os in
7954      solaris2.[0-5] | solaris2.[0-5].*) ;;
7955      *)
7956        # The compiler driver will combine linker options so we
7957        # cannot just pass the convience library names through
7958        # without $wl, iff we do not link with $LD.
7959        # Luckily, gcc supports the same syntax we need for Sun Studio.
7960        # Supported since Solaris 2.6 (maybe 2.5.1?)
7961        case $wlarc in
7962        '')
7963          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7964        *)
7965          whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
7966        esac ;;
7967      esac
7968      link_all_deplibs=yes
7969      ;;
7970
7971    sunos4*)
7972      if test "x$host_vendor" = xsequent; then
7973        # Use $CC to link under sequent, because it throws in some extra .o
7974        # files that make .init and .fini sections work.
7975        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7976      else
7977        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7978      fi
7979      hardcode_libdir_flag_spec='-L$libdir'
7980      hardcode_direct=yes
7981      hardcode_minus_L=yes
7982      hardcode_shlibpath_var=no
7983      ;;
7984
7985    sysv4)
7986      case $host_vendor in
7987        sni)
7988          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7989          hardcode_direct=yes # is this really true???
7990        ;;
7991        siemens)
7992          ## LD is ld it makes a PLAMLIB
7993          ## CC just makes a GrossModule.
7994          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7995          reload_cmds='$CC -r -o $output$reload_objs'
7996          hardcode_direct=no
7997        ;;
7998        motorola)
7999          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8000          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8001        ;;
8002      esac
8003      runpath_var='LD_RUN_PATH'
8004      hardcode_shlibpath_var=no
8005      ;;
8006
8007    sysv4.3*)
8008      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8009      hardcode_shlibpath_var=no
8010      export_dynamic_flag_spec='-Bexport'
8011      ;;
8012
8013    sysv4*MP*)
8014      if test -d /usr/nec; then
8015        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8016        hardcode_shlibpath_var=no
8017        runpath_var=LD_RUN_PATH
8018        hardcode_runpath_var=yes
8019        ld_shlibs=yes
8020      fi
8021      ;;
8022
8023    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8024      no_undefined_flag='${wl}-z,text'
8025      archive_cmds_need_lc=no
8026      hardcode_shlibpath_var=no
8027      runpath_var='LD_RUN_PATH'
8028
8029      if test "$GCC" = yes; then
8030        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8031        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8032      else
8033        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8034        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8035      fi
8036      ;;
8037
8038    sysv5* | sco3.2v5* | sco5v6*)
8039      # Note: We can NOT use -z defs as we might desire, because we do not
8040      # link with -lc, and that would cause any symbols used from libc to
8041      # always be unresolved, which means just about no library would
8042      # ever link correctly.  If we're not using GNU ld we use -z text
8043      # though, which does catch some bad symbols but isn't as heavy-handed
8044      # as -z defs.
8045      no_undefined_flag='${wl}-z,text'
8046      allow_undefined_flag='${wl}-z,nodefs'
8047      archive_cmds_need_lc=no
8048      hardcode_shlibpath_var=no
8049      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8050      hardcode_libdir_separator=':'
8051      link_all_deplibs=yes
8052      export_dynamic_flag_spec='${wl}-Bexport'
8053      runpath_var='LD_RUN_PATH'
8054
8055      if test "$GCC" = yes; then
8056        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8057        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8058      else
8059        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8060        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8061      fi
8062      ;;
8063
8064    uts4*)
8065      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8066      hardcode_libdir_flag_spec='-L$libdir'
8067      hardcode_shlibpath_var=no
8068      ;;
8069
8070    *)
8071      ld_shlibs=no
8072      ;;
8073    esac
8074  fi
8075
8076echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8077echo "${ECHO_T}$ld_shlibs" >&6
8078test "$ld_shlibs" = no && can_build_shared=no
8079
8080#
8081# Do we need to explicitly link libc?
8082#
8083case "x$archive_cmds_need_lc" in
8084x|xyes)
8085  # Assume -lc should be added
8086  archive_cmds_need_lc=yes
8087
8088  if test "$enable_shared" = yes && test "$GCC" = yes; then
8089    case $archive_cmds in
8090    *'~'*)
8091      # FIXME: we may have to deal with multi-command sequences.
8092      ;;
8093    '$CC '*)
8094      # Test whether the compiler implicitly links with -lc since on some
8095      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8096      # to ld, don't add -lc before -lgcc.
8097      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8098echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8099      $rm conftest*
8100      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8101
8102      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103  (eval $ac_compile) 2>&5
8104  ac_status=$?
8105  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106  (exit $ac_status); } 2>conftest.err; then
8107        soname=conftest
8108        lib=conftest
8109        libobjs=conftest.$ac_objext
8110        deplibs=
8111        wl=$lt_prog_compiler_wl
8112        pic_flag=$lt_prog_compiler_pic
8113        compiler_flags=-v
8114        linker_flags=-v
8115        verstring=
8116        output_objdir=.
8117        libname=conftest
8118        lt_save_allow_undefined_flag=$allow_undefined_flag
8119        allow_undefined_flag=
8120        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8121  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8122  ac_status=$?
8123  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8124  (exit $ac_status); }
8125        then
8126          archive_cmds_need_lc=no
8127        else
8128          archive_cmds_need_lc=yes
8129        fi
8130        allow_undefined_flag=$lt_save_allow_undefined_flag
8131      else
8132        cat conftest.err 1>&5
8133      fi
8134      $rm conftest*
8135      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8136echo "${ECHO_T}$archive_cmds_need_lc" >&6
8137      ;;
8138    esac
8139  fi
8140  ;;
8141esac
8142
8143echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8144echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8145library_names_spec=
8146libname_spec='lib$name'
8147soname_spec=
8148shrext_cmds=".so"
8149postinstall_cmds=
8150postuninstall_cmds=
8151finish_cmds=
8152finish_eval=
8153shlibpath_var=
8154shlibpath_overrides_runpath=unknown
8155version_type=none
8156dynamic_linker="$host_os ld.so"
8157sys_lib_dlsearch_path_spec="/lib /usr/lib"
8158if test "$GCC" = yes; then
8159  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8160  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8161    # if the path contains ";" then we assume it to be the separator
8162    # otherwise default to the standard path separator (i.e. ":") - it is
8163    # assumed that no part of a normal pathname contains ";" but that should
8164    # okay in the real world where ";" in dirpaths is itself problematic.
8165    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8166  else
8167    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8168  fi
8169else
8170  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8171fi
8172need_lib_prefix=unknown
8173hardcode_into_libs=no
8174
8175# when you set need_version to no, make sure it does not cause -set_version
8176# flags to be left without arguments
8177need_version=unknown
8178
8179case $host_os in
8180aix3*)
8181  version_type=linux
8182  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8183  shlibpath_var=LIBPATH
8184
8185  # AIX 3 has no versioning support, so we append a major version to the name.
8186  soname_spec='${libname}${release}${shared_ext}$major'
8187  ;;
8188
8189aix4* | aix5*)
8190  version_type=linux
8191  need_lib_prefix=no
8192  need_version=no
8193  hardcode_into_libs=yes
8194  if test "$host_cpu" = ia64; then
8195    # AIX 5 supports IA64
8196    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8197    shlibpath_var=LD_LIBRARY_PATH
8198  else
8199    # With GCC up to 2.95.x, collect2 would create an import file
8200    # for dependence libraries.  The import file would start with
8201    # the line `#! .'.  This would cause the generated library to
8202    # depend on `.', always an invalid library.  This was fixed in
8203    # development snapshots of GCC prior to 3.0.
8204    case $host_os in
8205      aix4 | aix4.[01] | aix4.[01].*)
8206      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8207           echo ' yes '
8208           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8209        :
8210      else
8211        can_build_shared=no
8212      fi
8213      ;;
8214    esac
8215    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8216    # soname into executable. Probably we can add versioning support to
8217    # collect2, so additional links can be useful in future.
8218    if test "$aix_use_runtimelinking" = yes; then
8219      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8220      # instead of lib<name>.a to let people know that these are not
8221      # typical AIX shared libraries.
8222      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8223    else
8224      # We preserve .a as extension for shared libraries through AIX4.2
8225      # and later when we are not doing run time linking.
8226      library_names_spec='${libname}${release}.a $libname.a'
8227      soname_spec='${libname}${release}${shared_ext}$major'
8228    fi
8229    shlibpath_var=LIBPATH
8230  fi
8231  ;;
8232
8233amigaos*)
8234  library_names_spec='$libname.ixlibrary $libname.a'
8235  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8236  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'
8237  ;;
8238
8239beos*)
8240  library_names_spec='${libname}${shared_ext}'
8241  dynamic_linker="$host_os ld.so"
8242  shlibpath_var=LIBRARY_PATH
8243  ;;
8244
8245bsdi[45]*)
8246  version_type=linux
8247  need_version=no
8248  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8249  soname_spec='${libname}${release}${shared_ext}$major'
8250  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8251  shlibpath_var=LD_LIBRARY_PATH
8252  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8253  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8254  # the default ld.so.conf also contains /usr/contrib/lib and
8255  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8256  # libtool to hard-code these into programs
8257  ;;
8258
8259cygwin* | mingw* | pw32*)
8260  version_type=windows
8261  shrext_cmds=".dll"
8262  need_version=no
8263  need_lib_prefix=no
8264
8265  case $GCC,$host_os in
8266  yes,cygwin* | yes,mingw* | yes,pw32*)
8267    library_names_spec='$libname.dll.a'
8268    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8269    postinstall_cmds='base_file=`basename \${file}`~
8270      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8271      dldir=$destdir/`dirname \$dlpath`~
8272      test -d \$dldir || mkdir -p \$dldir~
8273      $install_prog $dir/$dlname \$dldir/$dlname~
8274      chmod a+x \$dldir/$dlname'
8275    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8276      dlpath=$dir/\$dldll~
8277       $rm \$dlpath'
8278    shlibpath_overrides_runpath=yes
8279
8280    case $host_os in
8281    cygwin*)
8282      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8283      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8284      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8285      ;;
8286    mingw*)
8287      # MinGW DLLs use traditional 'lib' prefix
8288      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8289      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8290      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8291        # It is most probably a Windows format PATH printed by
8292        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8293        # path with ; separators, and with drive letters. We can handle the
8294        # drive letters (cygwin fileutils understands them), so leave them,
8295        # especially as we might pass files found there to a mingw objdump,
8296        # which wouldn't understand a cygwinified path. Ahh.
8297        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8298      else
8299        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8300      fi
8301      ;;
8302    pw32*)
8303      # pw32 DLLs use 'pw' prefix rather than 'lib'
8304      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8305      ;;
8306    esac
8307    ;;
8308
8309  *)
8310    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8311    ;;
8312  esac
8313  dynamic_linker='Win32 ld.exe'
8314  # FIXME: first we should search . and the directory the executable is in
8315  shlibpath_var=PATH
8316  ;;
8317
8318darwin* | rhapsody*)
8319  dynamic_linker="$host_os dyld"
8320  version_type=darwin
8321  need_lib_prefix=no
8322  need_version=no
8323  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8324  soname_spec='${libname}${release}${major}$shared_ext'
8325  shlibpath_overrides_runpath=yes
8326  shlibpath_var=DYLD_LIBRARY_PATH
8327  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8328  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8329  if test "$GCC" = yes; then
8330    sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8331  else
8332    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8333  fi
8334  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8335  ;;
8336
8337dgux*)
8338  version_type=linux
8339  need_lib_prefix=no
8340  need_version=no
8341  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8342  soname_spec='${libname}${release}${shared_ext}$major'
8343  shlibpath_var=LD_LIBRARY_PATH
8344  ;;
8345
8346freebsd1*)
8347  dynamic_linker=no
8348  ;;
8349
8350kfreebsd*-gnu)
8351  version_type=linux
8352  need_lib_prefix=no
8353  need_version=no
8354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8355  soname_spec='${libname}${release}${shared_ext}$major'
8356  shlibpath_var=LD_LIBRARY_PATH
8357  shlibpath_overrides_runpath=no
8358  hardcode_into_libs=yes
8359  dynamic_linker='GNU ld.so'
8360  ;;
8361
8362freebsd* | dragonfly*)
8363  # DragonFly does not have aout.  When/if they implement a new
8364  # versioning mechanism, adjust this.
8365  if test -x /usr/bin/objformat; then
8366    objformat=`/usr/bin/objformat`
8367  else
8368    case $host_os in
8369    freebsd[123]*) objformat=aout ;;
8370    *) objformat=elf ;;
8371    esac
8372  fi
8373  version_type=freebsd-$objformat
8374  case $version_type in
8375    freebsd-elf*)
8376      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8377      need_version=no
8378      need_lib_prefix=no
8379      ;;
8380    freebsd-*)
8381      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8382      need_version=yes
8383      ;;
8384  esac
8385  shlibpath_var=LD_LIBRARY_PATH
8386  case $host_os in
8387  freebsd2*)
8388    shlibpath_overrides_runpath=yes
8389    ;;
8390  freebsd3.[01]* | freebsdelf3.[01]*)
8391    shlibpath_overrides_runpath=yes
8392    hardcode_into_libs=yes
8393    ;;
8394  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8395  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8396    shlibpath_overrides_runpath=no
8397    hardcode_into_libs=yes
8398    ;;
8399  freebsd*) # from 4.6 on
8400    shlibpath_overrides_runpath=yes
8401    hardcode_into_libs=yes
8402    ;;
8403  esac
8404  ;;
8405
8406gnu*)
8407  version_type=linux
8408  need_lib_prefix=no
8409  need_version=no
8410  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8411  soname_spec='${libname}${release}${shared_ext}$major'
8412  shlibpath_var=LD_LIBRARY_PATH
8413  hardcode_into_libs=yes
8414  ;;
8415
8416hpux9* | hpux10* | hpux11*)
8417  # Give a soname corresponding to the major version so that dld.sl refuses to
8418  # link against other versions.
8419  version_type=sunos
8420  need_lib_prefix=no
8421  need_version=no
8422  case $host_cpu in
8423  ia64*)
8424    shrext_cmds='.so'
8425    hardcode_into_libs=yes
8426    dynamic_linker="$host_os dld.so"
8427    shlibpath_var=LD_LIBRARY_PATH
8428    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8429    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8430    soname_spec='${libname}${release}${shared_ext}$major'
8431    if test "X$HPUX_IA64_MODE" = X32; then
8432      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8433    else
8434      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8435    fi
8436    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8437    ;;
8438   hppa*64*)
8439     shrext_cmds='.sl'
8440     hardcode_into_libs=yes
8441     dynamic_linker="$host_os dld.sl"
8442     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8443     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8444     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8445     soname_spec='${libname}${release}${shared_ext}$major'
8446     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8447     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8448     ;;
8449   *)
8450    shrext_cmds='.sl'
8451    dynamic_linker="$host_os dld.sl"
8452    shlibpath_var=SHLIB_PATH
8453    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8454    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8455    soname_spec='${libname}${release}${shared_ext}$major'
8456    ;;
8457  esac
8458  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8459  postinstall_cmds='chmod 555 $lib'
8460  ;;
8461
8462interix3*)
8463  version_type=linux
8464  need_lib_prefix=no
8465  need_version=no
8466  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8467  soname_spec='${libname}${release}${shared_ext}$major'
8468  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8469  shlibpath_var=LD_LIBRARY_PATH
8470  shlibpath_overrides_runpath=no
8471  hardcode_into_libs=yes
8472  ;;
8473
8474irix5* | irix6* | nonstopux*)
8475  case $host_os in
8476    nonstopux*) version_type=nonstopux ;;
8477    *)
8478        if test "$lt_cv_prog_gnu_ld" = yes; then
8479                version_type=linux
8480        else
8481                version_type=irix
8482        fi ;;
8483  esac
8484  need_lib_prefix=no
8485  need_version=no
8486  soname_spec='${libname}${release}${shared_ext}$major'
8487  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8488  case $host_os in
8489  irix5* | nonstopux*)
8490    libsuff= shlibsuff=
8491    ;;
8492  *)
8493    case $LD in # libtool.m4 will add one of these switches to LD
8494    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8495      libsuff= shlibsuff= libmagic=32-bit;;
8496    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8497      libsuff=32 shlibsuff=N32 libmagic=N32;;
8498    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8499      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8500    *) libsuff= shlibsuff= libmagic=never-match;;
8501    esac
8502    ;;
8503  esac
8504  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8505  shlibpath_overrides_runpath=no
8506  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8507  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8508  hardcode_into_libs=yes
8509  ;;
8510
8511# No shared lib support for Linux oldld, aout, or coff.
8512linux*oldld* | linux*aout* | linux*coff*)
8513  dynamic_linker=no
8514  ;;
8515
8516# This must be Linux ELF.
8517linux*)
8518  version_type=linux
8519  need_lib_prefix=no
8520  need_version=no
8521  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8522  soname_spec='${libname}${release}${shared_ext}$major'
8523  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8524  shlibpath_var=LD_LIBRARY_PATH
8525  shlibpath_overrides_runpath=no
8526  # This implies no fast_install, which is unacceptable.
8527  # Some rework will be needed to allow for fast_install
8528  # before this can be enabled.
8529  hardcode_into_libs=yes
8530
8531  # Append ld.so.conf contents to the search path
8532  if test -f /etc/ld.so.conf; then
8533    lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:,        ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8534    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8535  fi
8536
8537  # We used to test for /lib/ld.so.1 and disable shared libraries on
8538  # powerpc, because MkLinux only supported shared libraries with the
8539  # GNU dynamic linker.  Since this was broken with cross compilers,
8540  # most powerpc-linux boxes support dynamic linking these days and
8541  # people can always --disable-shared, the test was removed, and we
8542  # assume the GNU/Linux dynamic linker is in use.
8543  dynamic_linker='GNU/Linux ld.so'
8544  ;;
8545
8546knetbsd*-gnu)
8547  version_type=linux
8548  need_lib_prefix=no
8549  need_version=no
8550  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8551  soname_spec='${libname}${release}${shared_ext}$major'
8552  shlibpath_var=LD_LIBRARY_PATH
8553  shlibpath_overrides_runpath=no
8554  hardcode_into_libs=yes
8555  dynamic_linker='GNU ld.so'
8556  ;;
8557
8558netbsd*)
8559  version_type=sunos
8560  need_lib_prefix=no
8561  need_version=no
8562  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8563    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8564    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8565    dynamic_linker='NetBSD (a.out) ld.so'
8566  else
8567    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8568    soname_spec='${libname}${release}${shared_ext}$major'
8569    dynamic_linker='NetBSD ld.elf_so'
8570  fi
8571  shlibpath_var=LD_LIBRARY_PATH
8572  shlibpath_overrides_runpath=yes
8573  hardcode_into_libs=yes
8574  ;;
8575
8576newsos6)
8577  version_type=linux
8578  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8579  shlibpath_var=LD_LIBRARY_PATH
8580  shlibpath_overrides_runpath=yes
8581  ;;
8582
8583nto-qnx*)
8584  version_type=linux
8585  need_lib_prefix=no
8586  need_version=no
8587  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8588  soname_spec='${libname}${release}${shared_ext}$major'
8589  shlibpath_var=LD_LIBRARY_PATH
8590  shlibpath_overrides_runpath=yes
8591  ;;
8592
8593openbsd*)
8594  version_type=sunos
8595  sys_lib_dlsearch_path_spec="/usr/lib"
8596  need_lib_prefix=no
8597  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8598  case $host_os in
8599    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8600    *)                         need_version=no  ;;
8601  esac
8602  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8603  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8604  shlibpath_var=LD_LIBRARY_PATH
8605  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8606    case $host_os in
8607      openbsd2.[89] | openbsd2.[89].*)
8608        shlibpath_overrides_runpath=no
8609        ;;
8610      *)
8611        shlibpath_overrides_runpath=yes
8612        ;;
8613      esac
8614  else
8615    shlibpath_overrides_runpath=yes
8616  fi
8617  ;;
8618
8619os2*)
8620  libname_spec='$name'
8621  shrext_cmds=".dll"
8622  need_lib_prefix=no
8623  library_names_spec='$libname${shared_ext} $libname.a'
8624  dynamic_linker='OS/2 ld.exe'
8625  shlibpath_var=LIBPATH
8626  ;;
8627
8628osf3* | osf4* | osf5*)
8629  version_type=osf
8630  need_lib_prefix=no
8631  need_version=no
8632  soname_spec='${libname}${release}${shared_ext}$major'
8633  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8634  shlibpath_var=LD_LIBRARY_PATH
8635  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8636  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8637  ;;
8638
8639solaris*)
8640  version_type=linux
8641  need_lib_prefix=no
8642  need_version=no
8643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8644  soname_spec='${libname}${release}${shared_ext}$major'
8645  shlibpath_var=LD_LIBRARY_PATH
8646  shlibpath_overrides_runpath=yes
8647  hardcode_into_libs=yes
8648  # ldd complains unless libraries are executable
8649  postinstall_cmds='chmod +x $lib'
8650  ;;
8651
8652sunos4*)
8653  version_type=sunos
8654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8655  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8656  shlibpath_var=LD_LIBRARY_PATH
8657  shlibpath_overrides_runpath=yes
8658  if test "$with_gnu_ld" = yes; then
8659    need_lib_prefix=no
8660  fi
8661  need_version=yes
8662  ;;
8663
8664sysv4 | sysv4.3*)
8665  version_type=linux
8666  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8667  soname_spec='${libname}${release}${shared_ext}$major'
8668  shlibpath_var=LD_LIBRARY_PATH
8669  case $host_vendor in
8670    sni)
8671      shlibpath_overrides_runpath=no
8672      need_lib_prefix=no
8673      export_dynamic_flag_spec='${wl}-Blargedynsym'
8674      runpath_var=LD_RUN_PATH
8675      ;;
8676    siemens)
8677      need_lib_prefix=no
8678      ;;
8679    motorola)
8680      need_lib_prefix=no
8681      need_version=no
8682      shlibpath_overrides_runpath=no
8683      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8684      ;;
8685  esac
8686  ;;
8687
8688sysv4*MP*)
8689  if test -d /usr/nec ;then
8690    version_type=linux
8691    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8692    soname_spec='$libname${shared_ext}.$major'
8693    shlibpath_var=LD_LIBRARY_PATH
8694  fi
8695  ;;
8696
8697sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8698  version_type=freebsd-elf
8699  need_lib_prefix=no
8700  need_version=no
8701  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8702  soname_spec='${libname}${release}${shared_ext}$major'
8703  shlibpath_var=LD_LIBRARY_PATH
8704  hardcode_into_libs=yes
8705  if test "$with_gnu_ld" = yes; then
8706    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8707    shlibpath_overrides_runpath=no
8708  else
8709    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8710    shlibpath_overrides_runpath=yes
8711    case $host_os in
8712      sco3.2v5*)
8713        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8714        ;;
8715    esac
8716  fi
8717  sys_lib_dlsearch_path_spec='/usr/lib'
8718  ;;
8719
8720uts4*)
8721  version_type=linux
8722  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8723  soname_spec='${libname}${release}${shared_ext}$major'
8724  shlibpath_var=LD_LIBRARY_PATH
8725  ;;
8726
8727*)
8728  dynamic_linker=no
8729  ;;
8730esac
8731echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8732echo "${ECHO_T}$dynamic_linker" >&6
8733test "$dynamic_linker" = no && can_build_shared=no
8734
8735variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8736if test "$GCC" = yes; then
8737  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8738fi
8739
8740echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8741echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8742hardcode_action=
8743if test -n "$hardcode_libdir_flag_spec" || \
8744   test -n "$runpath_var" || \
8745   test "X$hardcode_automatic" = "Xyes" ; then
8746
8747  # We can hardcode non-existant directories.
8748  if test "$hardcode_direct" != no &&
8749     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8750     # have to relink, otherwise we might link with an installed library
8751     # when we should be linking with a yet-to-be-installed one
8752     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8753     test "$hardcode_minus_L" != no; then
8754    # Linking always hardcodes the temporary library directory.
8755    hardcode_action=relink
8756  else
8757    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8758    hardcode_action=immediate
8759  fi
8760else
8761  # We cannot hardcode anything, or else we can only hardcode existing
8762  # directories.
8763  hardcode_action=unsupported
8764fi
8765echo "$as_me:$LINENO: result: $hardcode_action" >&5
8766echo "${ECHO_T}$hardcode_action" >&6
8767
8768if test "$hardcode_action" = relink; then
8769  # Fast installation is not supported
8770  enable_fast_install=no
8771elif test "$shlibpath_overrides_runpath" = yes ||
8772     test "$enable_shared" = no; then
8773  # Fast installation is not necessary
8774  enable_fast_install=needless
8775fi
8776
8777striplib=
8778old_striplib=
8779echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8780echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8781if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8782  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8783  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8784  echo "$as_me:$LINENO: result: yes" >&5
8785echo "${ECHO_T}yes" >&6
8786else
8787# FIXME - insert some real tests, host_os isn't really good enough
8788  case $host_os in
8789   darwin*)
8790       if test -n "$STRIP" ; then
8791         striplib="$STRIP -x"
8792         echo "$as_me:$LINENO: result: yes" >&5
8793echo "${ECHO_T}yes" >&6
8794       else
8795  echo "$as_me:$LINENO: result: no" >&5
8796echo "${ECHO_T}no" >&6
8797fi
8798       ;;
8799   *)
8800  echo "$as_me:$LINENO: result: no" >&5
8801echo "${ECHO_T}no" >&6
8802    ;;
8803  esac
8804fi
8805
8806if test "x$enable_dlopen" != xyes; then
8807  enable_dlopen=unknown
8808  enable_dlopen_self=unknown
8809  enable_dlopen_self_static=unknown
8810else
8811  lt_cv_dlopen=no
8812  lt_cv_dlopen_libs=
8813
8814  case $host_os in
8815  beos*)
8816    lt_cv_dlopen="load_add_on"
8817    lt_cv_dlopen_libs=
8818    lt_cv_dlopen_self=yes
8819    ;;
8820
8821  mingw* | pw32*)
8822    lt_cv_dlopen="LoadLibrary"
8823    lt_cv_dlopen_libs=
8824   ;;
8825
8826  cygwin*)
8827    lt_cv_dlopen="dlopen"
8828    lt_cv_dlopen_libs=
8829   ;;
8830
8831  darwin*)
8832  # if libdl is installed we need to link against it
8833    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8834echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8835if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8836  echo $ECHO_N "(cached) $ECHO_C" >&6
8837else
8838  ac_check_lib_save_LIBS=$LIBS
8839LIBS="-ldl  $LIBS"
8840cat >conftest.$ac_ext <<_ACEOF
8841/* confdefs.h.  */
8842_ACEOF
8843cat confdefs.h >>conftest.$ac_ext
8844cat >>conftest.$ac_ext <<_ACEOF
8845/* end confdefs.h.  */
8846
8847/* Override any gcc2 internal prototype to avoid an error.  */
8848#ifdef __cplusplus
8849extern "C"
8850#endif
8851/* We use char because int might match the return type of a gcc2
8852   builtin and then its argument prototype would still apply.  */
8853char dlopen ();
8854int
8855main ()
8856{
8857dlopen ();
8858  ;
8859  return 0;
8860}
8861_ACEOF
8862rm -f conftest.$ac_objext conftest$ac_exeext
8863if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8864  (eval $ac_link) 2>conftest.er1
8865  ac_status=$?
8866  grep -v '^ *+' conftest.er1 >conftest.err
8867  rm -f conftest.er1
8868  cat conftest.err >&5
8869  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870  (exit $ac_status); } &&
8871         { ac_try='test -z "$ac_c_werror_flag"
8872                         || test ! -s conftest.err'
8873  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8874  (eval $ac_try) 2>&5
8875  ac_status=$?
8876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8877  (exit $ac_status); }; } &&
8878         { ac_try='test -s conftest$ac_exeext'
8879  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8880  (eval $ac_try) 2>&5
8881  ac_status=$?
8882  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883  (exit $ac_status); }; }; then
8884  ac_cv_lib_dl_dlopen=yes
8885else
8886  echo "$as_me: failed program was:" >&5
8887sed 's/^/| /' conftest.$ac_ext >&5
8888
8889ac_cv_lib_dl_dlopen=no
8890fi
8891rm -f conftest.err conftest.$ac_objext \
8892      conftest$ac_exeext conftest.$ac_ext
8893LIBS=$ac_check_lib_save_LIBS
8894fi
8895echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8896echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8897if test $ac_cv_lib_dl_dlopen = yes; then
8898  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8899else
8900
8901    lt_cv_dlopen="dyld"
8902    lt_cv_dlopen_libs=
8903    lt_cv_dlopen_self=yes
8904
8905fi
8906
8907   ;;
8908
8909  *)
8910    echo "$as_me:$LINENO: checking for shl_load" >&5
8911echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8912if test "${ac_cv_func_shl_load+set}" = set; then
8913  echo $ECHO_N "(cached) $ECHO_C" >&6
8914else
8915  cat >conftest.$ac_ext <<_ACEOF
8916/* confdefs.h.  */
8917_ACEOF
8918cat confdefs.h >>conftest.$ac_ext
8919cat >>conftest.$ac_ext <<_ACEOF
8920/* end confdefs.h.  */
8921/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8922   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8923#define shl_load innocuous_shl_load
8924
8925/* System header to define __stub macros and hopefully few prototypes,
8926    which can conflict with char shl_load (); below.
8927    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8928    <limits.h> exists even on freestanding compilers.  */
8929
8930#ifdef __STDC__
8931# include <limits.h>
8932#else
8933# include <assert.h>
8934#endif
8935
8936#undef shl_load
8937
8938/* Override any gcc2 internal prototype to avoid an error.  */
8939#ifdef __cplusplus
8940extern "C"
8941{
8942#endif
8943/* We use char because int might match the return type of a gcc2
8944   builtin and then its argument prototype would still apply.  */
8945char shl_load ();
8946/* The GNU C library defines this for functions which it implements
8947    to always fail with ENOSYS.  Some functions are actually named
8948    something starting with __ and the normal name is an alias.  */
8949#if defined (__stub_shl_load) || defined (__stub___shl_load)
8950choke me
8951#else
8952char (*f) () = shl_load;
8953#endif
8954#ifdef __cplusplus
8955}
8956#endif
8957
8958int
8959main ()
8960{
8961return f != shl_load;
8962  ;
8963  return 0;
8964}
8965_ACEOF
8966rm -f conftest.$ac_objext conftest$ac_exeext
8967if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968  (eval $ac_link) 2>conftest.er1
8969  ac_status=$?
8970  grep -v '^ *+' conftest.er1 >conftest.err
8971  rm -f conftest.er1
8972  cat conftest.err >&5
8973  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974  (exit $ac_status); } &&
8975         { ac_try='test -z "$ac_c_werror_flag"
8976                         || test ! -s conftest.err'
8977  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8978  (eval $ac_try) 2>&5
8979  ac_status=$?
8980  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981  (exit $ac_status); }; } &&
8982         { ac_try='test -s conftest$ac_exeext'
8983  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8984  (eval $ac_try) 2>&5
8985  ac_status=$?
8986  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8987  (exit $ac_status); }; }; then
8988  ac_cv_func_shl_load=yes
8989else
8990  echo "$as_me: failed program was:" >&5
8991sed 's/^/| /' conftest.$ac_ext >&5
8992
8993ac_cv_func_shl_load=no
8994fi
8995rm -f conftest.err conftest.$ac_objext \
8996      conftest$ac_exeext conftest.$ac_ext
8997fi
8998echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8999echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9000if test $ac_cv_func_shl_load = yes; then
9001  lt_cv_dlopen="shl_load"
9002else
9003  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9004echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9005if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9006  echo $ECHO_N "(cached) $ECHO_C" >&6
9007else
9008  ac_check_lib_save_LIBS=$LIBS
9009LIBS="-ldld  $LIBS"
9010cat >conftest.$ac_ext <<_ACEOF
9011/* confdefs.h.  */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
9015/* end confdefs.h.  */
9016
9017/* Override any gcc2 internal prototype to avoid an error.  */
9018#ifdef __cplusplus
9019extern "C"
9020#endif
9021/* We use char because int might match the return type of a gcc2
9022   builtin and then its argument prototype would still apply.  */
9023char shl_load ();
9024int
9025main ()
9026{
9027shl_load ();
9028  ;
9029  return 0;
9030}
9031_ACEOF
9032rm -f conftest.$ac_objext conftest$ac_exeext
9033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9034  (eval $ac_link) 2>conftest.er1
9035  ac_status=$?
9036  grep -v '^ *+' conftest.er1 >conftest.err
9037  rm -f conftest.er1
9038  cat conftest.err >&5
9039  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040  (exit $ac_status); } &&
9041         { ac_try='test -z "$ac_c_werror_flag"
9042                         || test ! -s conftest.err'
9043  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9044  (eval $ac_try) 2>&5
9045  ac_status=$?
9046  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047  (exit $ac_status); }; } &&
9048         { ac_try='test -s conftest$ac_exeext'
9049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9050  (eval $ac_try) 2>&5
9051  ac_status=$?
9052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053  (exit $ac_status); }; }; then
9054  ac_cv_lib_dld_shl_load=yes
9055else
9056  echo "$as_me: failed program was:" >&5
9057sed 's/^/| /' conftest.$ac_ext >&5
9058
9059ac_cv_lib_dld_shl_load=no
9060fi
9061rm -f conftest.err conftest.$ac_objext \
9062      conftest$ac_exeext conftest.$ac_ext
9063LIBS=$ac_check_lib_save_LIBS
9064fi
9065echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9066echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9067if test $ac_cv_lib_dld_shl_load = yes; then
9068  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9069else
9070  echo "$as_me:$LINENO: checking for dlopen" >&5
9071echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9072if test "${ac_cv_func_dlopen+set}" = set; then
9073  echo $ECHO_N "(cached) $ECHO_C" >&6
9074else
9075  cat >conftest.$ac_ext <<_ACEOF
9076/* confdefs.h.  */
9077_ACEOF
9078cat confdefs.h >>conftest.$ac_ext
9079cat >>conftest.$ac_ext <<_ACEOF
9080/* end confdefs.h.  */
9081/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9082   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9083#define dlopen innocuous_dlopen
9084
9085/* System header to define __stub macros and hopefully few prototypes,
9086    which can conflict with char dlopen (); below.
9087    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9088    <limits.h> exists even on freestanding compilers.  */
9089
9090#ifdef __STDC__
9091# include <limits.h>
9092#else
9093# include <assert.h>
9094#endif
9095
9096#undef dlopen
9097
9098/* Override any gcc2 internal prototype to avoid an error.  */
9099#ifdef __cplusplus
9100extern "C"
9101{
9102#endif
9103/* We use char because int might match the return type of a gcc2
9104   builtin and then its argument prototype would still apply.  */
9105char dlopen ();
9106/* The GNU C library defines this for functions which it implements
9107    to always fail with ENOSYS.  Some functions are actually named
9108    something starting with __ and the normal name is an alias.  */
9109#if defined (__stub_dlopen) || defined (__stub___dlopen)
9110choke me
9111#else
9112char (*f) () = dlopen;
9113#endif
9114#ifdef __cplusplus
9115}
9116#endif
9117
9118int
9119main ()
9120{
9121return f != dlopen;
9122  ;
9123  return 0;
9124}
9125_ACEOF
9126rm -f conftest.$ac_objext conftest$ac_exeext
9127if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9128  (eval $ac_link) 2>conftest.er1
9129  ac_status=$?
9130  grep -v '^ *+' conftest.er1 >conftest.err
9131  rm -f conftest.er1
9132  cat conftest.err >&5
9133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134  (exit $ac_status); } &&
9135         { ac_try='test -z "$ac_c_werror_flag"
9136                         || test ! -s conftest.err'
9137  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9138  (eval $ac_try) 2>&5
9139  ac_status=$?
9140  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141  (exit $ac_status); }; } &&
9142         { ac_try='test -s conftest$ac_exeext'
9143  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9144  (eval $ac_try) 2>&5
9145  ac_status=$?
9146  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147  (exit $ac_status); }; }; then
9148  ac_cv_func_dlopen=yes
9149else
9150  echo "$as_me: failed program was:" >&5
9151sed 's/^/| /' conftest.$ac_ext >&5
9152
9153ac_cv_func_dlopen=no
9154fi
9155rm -f conftest.err conftest.$ac_objext \
9156      conftest$ac_exeext conftest.$ac_ext
9157fi
9158echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9159echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9160if test $ac_cv_func_dlopen = yes; then
9161  lt_cv_dlopen="dlopen"
9162else
9163  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9164echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9165if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9166  echo $ECHO_N "(cached) $ECHO_C" >&6
9167else
9168  ac_check_lib_save_LIBS=$LIBS
9169LIBS="-ldl  $LIBS"
9170cat >conftest.$ac_ext <<_ACEOF
9171/* confdefs.h.  */
9172_ACEOF
9173cat confdefs.h >>conftest.$ac_ext
9174cat >>conftest.$ac_ext <<_ACEOF
9175/* end confdefs.h.  */
9176
9177/* Override any gcc2 internal prototype to avoid an error.  */
9178#ifdef __cplusplus
9179extern "C"
9180#endif
9181/* We use char because int might match the return type of a gcc2
9182   builtin and then its argument prototype would still apply.  */
9183char dlopen ();
9184int
9185main ()
9186{
9187dlopen ();
9188  ;
9189  return 0;
9190}
9191_ACEOF
9192rm -f conftest.$ac_objext conftest$ac_exeext
9193if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9194  (eval $ac_link) 2>conftest.er1
9195  ac_status=$?
9196  grep -v '^ *+' conftest.er1 >conftest.err
9197  rm -f conftest.er1
9198  cat conftest.err >&5
9199  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9200  (exit $ac_status); } &&
9201         { ac_try='test -z "$ac_c_werror_flag"
9202                         || test ! -s conftest.err'
9203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9204  (eval $ac_try) 2>&5
9205  ac_status=$?
9206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207  (exit $ac_status); }; } &&
9208         { ac_try='test -s conftest$ac_exeext'
9209  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9210  (eval $ac_try) 2>&5
9211  ac_status=$?
9212  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213  (exit $ac_status); }; }; then
9214  ac_cv_lib_dl_dlopen=yes
9215else
9216  echo "$as_me: failed program was:" >&5
9217sed 's/^/| /' conftest.$ac_ext >&5
9218
9219ac_cv_lib_dl_dlopen=no
9220fi
9221rm -f conftest.err conftest.$ac_objext \
9222      conftest$ac_exeext conftest.$ac_ext
9223LIBS=$ac_check_lib_save_LIBS
9224fi
9225echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9226echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9227if test $ac_cv_lib_dl_dlopen = yes; then
9228  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9229else
9230  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9231echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9232if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9233  echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235  ac_check_lib_save_LIBS=$LIBS
9236LIBS="-lsvld  $LIBS"
9237cat >conftest.$ac_ext <<_ACEOF
9238/* confdefs.h.  */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
9241cat >>conftest.$ac_ext <<_ACEOF
9242/* end confdefs.h.  */
9243
9244/* Override any gcc2 internal prototype to avoid an error.  */
9245#ifdef __cplusplus
9246extern "C"
9247#endif
9248/* We use char because int might match the return type of a gcc2
9249   builtin and then its argument prototype would still apply.  */
9250char dlopen ();
9251int
9252main ()
9253{
9254dlopen ();
9255  ;
9256  return 0;
9257}
9258_ACEOF
9259rm -f conftest.$ac_objext conftest$ac_exeext
9260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261  (eval $ac_link) 2>conftest.er1
9262  ac_status=$?
9263  grep -v '^ *+' conftest.er1 >conftest.err
9264  rm -f conftest.er1
9265  cat conftest.err >&5
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); } &&
9268         { ac_try='test -z "$ac_c_werror_flag"
9269                         || test ! -s conftest.err'
9270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271  (eval $ac_try) 2>&5
9272  ac_status=$?
9273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274  (exit $ac_status); }; } &&
9275         { ac_try='test -s conftest$ac_exeext'
9276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277  (eval $ac_try) 2>&5
9278  ac_status=$?
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); }; }; then
9281  ac_cv_lib_svld_dlopen=yes
9282else
9283  echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286ac_cv_lib_svld_dlopen=no
9287fi
9288rm -f conftest.err conftest.$ac_objext \
9289      conftest$ac_exeext conftest.$ac_ext
9290LIBS=$ac_check_lib_save_LIBS
9291fi
9292echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9293echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9294if test $ac_cv_lib_svld_dlopen = yes; then
9295  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9296else
9297  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9298echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9299if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9300  echo $ECHO_N "(cached) $ECHO_C" >&6
9301else
9302  ac_check_lib_save_LIBS=$LIBS
9303LIBS="-ldld  $LIBS"
9304cat >conftest.$ac_ext <<_ACEOF
9305/* confdefs.h.  */
9306_ACEOF
9307cat confdefs.h >>conftest.$ac_ext
9308cat >>conftest.$ac_ext <<_ACEOF
9309/* end confdefs.h.  */
9310
9311/* Override any gcc2 internal prototype to avoid an error.  */
9312#ifdef __cplusplus
9313extern "C"
9314#endif
9315/* We use char because int might match the return type of a gcc2
9316   builtin and then its argument prototype would still apply.  */
9317char dld_link ();
9318int
9319main ()
9320{
9321dld_link ();
9322  ;
9323  return 0;
9324}
9325_ACEOF
9326rm -f conftest.$ac_objext conftest$ac_exeext
9327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9328  (eval $ac_link) 2>conftest.er1
9329  ac_status=$?
9330  grep -v '^ *+' conftest.er1 >conftest.err
9331  rm -f conftest.er1
9332  cat conftest.err >&5
9333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334  (exit $ac_status); } &&
9335         { ac_try='test -z "$ac_c_werror_flag"
9336                         || test ! -s conftest.err'
9337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338  (eval $ac_try) 2>&5
9339  ac_status=$?
9340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341  (exit $ac_status); }; } &&
9342         { ac_try='test -s conftest$ac_exeext'
9343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344  (eval $ac_try) 2>&5
9345  ac_status=$?
9346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347  (exit $ac_status); }; }; then
9348  ac_cv_lib_dld_dld_link=yes
9349else
9350  echo "$as_me: failed program was:" >&5
9351sed 's/^/| /' conftest.$ac_ext >&5
9352
9353ac_cv_lib_dld_dld_link=no
9354fi
9355rm -f conftest.err conftest.$ac_objext \
9356      conftest$ac_exeext conftest.$ac_ext
9357LIBS=$ac_check_lib_save_LIBS
9358fi
9359echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9360echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9361if test $ac_cv_lib_dld_dld_link = yes; then
9362  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9363fi
9364
9365
9366fi
9367
9368
9369fi
9370
9371
9372fi
9373
9374
9375fi
9376
9377
9378fi
9379
9380    ;;
9381  esac
9382
9383  if test "x$lt_cv_dlopen" != xno; then
9384    enable_dlopen=yes
9385  else
9386    enable_dlopen=no
9387  fi
9388
9389  case $lt_cv_dlopen in
9390  dlopen)
9391    save_CPPFLAGS="$CPPFLAGS"
9392    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9393
9394    save_LDFLAGS="$LDFLAGS"
9395    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9396
9397    save_LIBS="$LIBS"
9398    LIBS="$lt_cv_dlopen_libs $LIBS"
9399
9400    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9401echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9402if test "${lt_cv_dlopen_self+set}" = set; then
9403  echo $ECHO_N "(cached) $ECHO_C" >&6
9404else
9405          if test "$cross_compiling" = yes; then :
9406  lt_cv_dlopen_self=cross
9407else
9408  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9409  lt_status=$lt_dlunknown
9410  cat > conftest.$ac_ext <<EOF
9411#line 9411 "configure"
9412#include "confdefs.h"
9413
9414#if HAVE_DLFCN_H
9415#include <dlfcn.h>
9416#endif
9417
9418#include <stdio.h>
9419
9420#ifdef RTLD_GLOBAL
9421#  define LT_DLGLOBAL           RTLD_GLOBAL
9422#else
9423#  ifdef DL_GLOBAL
9424#    define LT_DLGLOBAL         DL_GLOBAL
9425#  else
9426#    define LT_DLGLOBAL         0
9427#  endif
9428#endif
9429
9430/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9431   find out it does not work in some platform. */
9432#ifndef LT_DLLAZY_OR_NOW
9433#  ifdef RTLD_LAZY
9434#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9435#  else
9436#    ifdef DL_LAZY
9437#      define LT_DLLAZY_OR_NOW          DL_LAZY
9438#    else
9439#      ifdef RTLD_NOW
9440#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9441#      else
9442#        ifdef DL_NOW
9443#          define LT_DLLAZY_OR_NOW      DL_NOW
9444#        else
9445#          define LT_DLLAZY_OR_NOW      0
9446#        endif
9447#      endif
9448#    endif
9449#  endif
9450#endif
9451
9452#ifdef __cplusplus
9453extern "C" void exit (int);
9454#endif
9455
9456void fnord() { int i=42;}
9457int main ()
9458{
9459  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9460  int status = $lt_dlunknown;
9461
9462  if (self)
9463    {
9464      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9465      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9466      /* dlclose (self); */
9467    }
9468  else
9469    puts (dlerror ());
9470
9471    exit (status);
9472}
9473EOF
9474  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9475  (eval $ac_link) 2>&5
9476  ac_status=$?
9477  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9478  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9479    (./conftest; exit; ) >&5 2>/dev/null
9480    lt_status=$?
9481    case x$lt_status in
9482      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9483      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9484      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9485    esac
9486  else :
9487    # compilation failed
9488    lt_cv_dlopen_self=no
9489  fi
9490fi
9491rm -fr conftest*
9492
9493
9494fi
9495echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9496echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9497
9498    if test "x$lt_cv_dlopen_self" = xyes; then
9499      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9500      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9501echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9502if test "${lt_cv_dlopen_self_static+set}" = set; then
9503  echo $ECHO_N "(cached) $ECHO_C" >&6
9504else
9505          if test "$cross_compiling" = yes; then :
9506  lt_cv_dlopen_self_static=cross
9507else
9508  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9509  lt_status=$lt_dlunknown
9510  cat > conftest.$ac_ext <<EOF
9511#line 9511 "configure"
9512#include "confdefs.h"
9513
9514#if HAVE_DLFCN_H
9515#include <dlfcn.h>
9516#endif
9517
9518#include <stdio.h>
9519
9520#ifdef RTLD_GLOBAL
9521#  define LT_DLGLOBAL           RTLD_GLOBAL
9522#else
9523#  ifdef DL_GLOBAL
9524#    define LT_DLGLOBAL         DL_GLOBAL
9525#  else
9526#    define LT_DLGLOBAL         0
9527#  endif
9528#endif
9529
9530/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9531   find out it does not work in some platform. */
9532#ifndef LT_DLLAZY_OR_NOW
9533#  ifdef RTLD_LAZY
9534#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9535#  else
9536#    ifdef DL_LAZY
9537#      define LT_DLLAZY_OR_NOW          DL_LAZY
9538#    else
9539#      ifdef RTLD_NOW
9540#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9541#      else
9542#        ifdef DL_NOW
9543#          define LT_DLLAZY_OR_NOW      DL_NOW
9544#        else
9545#          define LT_DLLAZY_OR_NOW      0
9546#        endif
9547#      endif
9548#    endif
9549#  endif
9550#endif
9551
9552#ifdef __cplusplus
9553extern "C" void exit (int);
9554#endif
9555
9556void fnord() { int i=42;}
9557int main ()
9558{
9559  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9560  int status = $lt_dlunknown;
9561
9562  if (self)
9563    {
9564      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9565      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9566      /* dlclose (self); */
9567    }
9568  else
9569    puts (dlerror ());
9570
9571    exit (status);
9572}
9573EOF
9574  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9575  (eval $ac_link) 2>&5
9576  ac_status=$?
9577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9578  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9579    (./conftest; exit; ) >&5 2>/dev/null
9580    lt_status=$?
9581    case x$lt_status in
9582      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9583      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9584      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9585    esac
9586  else :
9587    # compilation failed
9588    lt_cv_dlopen_self_static=no
9589  fi
9590fi
9591rm -fr conftest*
9592
9593
9594fi
9595echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9596echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9597    fi
9598
9599    CPPFLAGS="$save_CPPFLAGS"
9600    LDFLAGS="$save_LDFLAGS"
9601    LIBS="$save_LIBS"
9602    ;;
9603  esac
9604
9605  case $lt_cv_dlopen_self in
9606  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9607  *) enable_dlopen_self=unknown ;;
9608  esac
9609
9610  case $lt_cv_dlopen_self_static in
9611  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9612  *) enable_dlopen_self_static=unknown ;;
9613  esac
9614fi
9615
9616
9617# Report which library types will actually be built
9618echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9619echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9620echo "$as_me:$LINENO: result: $can_build_shared" >&5
9621echo "${ECHO_T}$can_build_shared" >&6
9622
9623echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9624echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9625test "$can_build_shared" = "no" && enable_shared=no
9626
9627# On AIX, shared libraries and static libraries use the same namespace, and
9628# are all built from PIC.
9629case $host_os in
9630aix3*)
9631  test "$enable_shared" = yes && enable_static=no
9632  if test -n "$RANLIB"; then
9633    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9634    postinstall_cmds='$RANLIB $lib'
9635  fi
9636  ;;
9637
9638aix4* | aix5*)
9639  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9640    test "$enable_shared" = yes && enable_static=no
9641  fi
9642    ;;
9643esac
9644echo "$as_me:$LINENO: result: $enable_shared" >&5
9645echo "${ECHO_T}$enable_shared" >&6
9646
9647echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9648echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9649# Make sure either enable_shared or enable_static is yes.
9650test "$enable_shared" = yes || enable_static=yes
9651echo "$as_me:$LINENO: result: $enable_static" >&5
9652echo "${ECHO_T}$enable_static" >&6
9653
9654# The else clause should only fire when bootstrapping the
9655# libtool distribution, otherwise you forgot to ship ltmain.sh
9656# with your package, and you will get complaints that there are
9657# no rules to generate ltmain.sh.
9658if test -f "$ltmain"; then
9659  # See if we are running on zsh, and set the options which allow our commands through
9660  # without removal of \ escapes.
9661  if test -n "${ZSH_VERSION+set}" ; then
9662    setopt NO_GLOB_SUBST
9663  fi
9664  # Now quote all the things that may contain metacharacters while being
9665  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9666  # variables and quote the copies for generation of the libtool script.
9667  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9668    SED SHELL STRIP \
9669    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9670    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9671    deplibs_check_method reload_flag reload_cmds need_locks \
9672    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9673    lt_cv_sys_global_symbol_to_c_name_address \
9674    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9675    old_postinstall_cmds old_postuninstall_cmds \
9676    compiler \
9677    CC \
9678    LD \
9679    lt_prog_compiler_wl \
9680    lt_prog_compiler_pic \
9681    lt_prog_compiler_static \
9682    lt_prog_compiler_no_builtin_flag \
9683    export_dynamic_flag_spec \
9684    thread_safe_flag_spec \
9685    whole_archive_flag_spec \
9686    enable_shared_with_static_runtimes \
9687    old_archive_cmds \
9688    old_archive_from_new_cmds \
9689    predep_objects \
9690    postdep_objects \
9691    predeps \
9692    postdeps \
9693    compiler_lib_search_path \
9694    archive_cmds \
9695    archive_expsym_cmds \
9696    postinstall_cmds \
9697    postuninstall_cmds \
9698    old_archive_from_expsyms_cmds \
9699    allow_undefined_flag \
9700    no_undefined_flag \
9701    export_symbols_cmds \
9702    hardcode_libdir_flag_spec \
9703    hardcode_libdir_flag_spec_ld \
9704    hardcode_libdir_separator \
9705    hardcode_automatic \
9706    module_cmds \
9707    module_expsym_cmds \
9708    lt_cv_prog_compiler_c_o \
9709    exclude_expsyms \
9710    include_expsyms; do
9711
9712    case $var in
9713    old_archive_cmds | \
9714    old_archive_from_new_cmds | \
9715    archive_cmds | \
9716    archive_expsym_cmds | \
9717    module_cmds | \
9718    module_expsym_cmds | \
9719    old_archive_from_expsyms_cmds | \
9720    export_symbols_cmds | \
9721    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9722    postinstall_cmds | postuninstall_cmds | \
9723    old_postinstall_cmds | old_postuninstall_cmds | \
9724    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9725      # Double-quote double-evaled strings.
9726      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9727      ;;
9728    *)
9729      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9730      ;;
9731    esac
9732  done
9733
9734  case $lt_echo in
9735  *'\$0 --fallback-echo"')
9736    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9737    ;;
9738  esac
9739
9740cfgfile="${ofile}T"
9741  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9742  $rm -f "$cfgfile"
9743  { echo "$as_me:$LINENO: creating $ofile" >&5
9744echo "$as_me: creating $ofile" >&6;}
9745
9746  cat <<__EOF__ >> "$cfgfile"
9747#! $SHELL
9748
9749# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9750# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9751# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9752#
9753# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9754# Free Software Foundation, Inc.
9755#
9756# This file is part of GNU Libtool:
9757# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9758#
9759# This program is free software; you can redistribute it and/or modify
9760# it under the terms of the GNU General Public License as published by
9761# the Free Software Foundation; either version 2 of the License, or
9762# (at your option) any later version.
9763#
9764# This program is distributed in the hope that it will be useful, but
9765# WITHOUT ANY WARRANTY; without even the implied warranty of
9766# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9767# General Public License for more details.
9768#
9769# You should have received a copy of the GNU General Public License
9770# along with this program; if not, write to the Free Software
9771# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9772#
9773# As a special exception to the GNU General Public License, if you
9774# distribute this file as part of a program that contains a
9775# configuration script generated by Autoconf, you may include it under
9776# the same distribution terms that you use for the rest of that program.
9777
9778# A sed program that does not truncate output.
9779SED=$lt_SED
9780
9781# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9782Xsed="$SED -e 1s/^X//"
9783
9784# The HP-UX ksh and POSIX shell print the target directory to stdout
9785# if CDPATH is set.
9786(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9787
9788# The names of the tagged configurations supported by this script.
9789available_tags=
9790
9791# ### BEGIN LIBTOOL CONFIG
9792
9793# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9794
9795# Shell to use when invoking shell scripts.
9796SHELL=$lt_SHELL
9797
9798# Whether or not to build shared libraries.
9799build_libtool_libs=$enable_shared
9800
9801# Whether or not to build static libraries.
9802build_old_libs=$enable_static
9803
9804# Whether or not to add -lc for building shared libraries.
9805build_libtool_need_lc=$archive_cmds_need_lc
9806
9807# Whether or not to disallow shared libs when runtime libs are static
9808allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9809
9810# Whether or not to optimize for fast installation.
9811fast_install=$enable_fast_install
9812
9813# The host system.
9814host_alias=$host_alias
9815host=$host
9816host_os=$host_os
9817
9818# The build system.
9819build_alias=$build_alias
9820build=$build
9821build_os=$build_os
9822
9823# An echo program that does not interpret backslashes.
9824echo=$lt_echo
9825
9826# The archiver.
9827AR=$lt_AR
9828AR_FLAGS=$lt_AR_FLAGS
9829
9830# A C compiler.
9831LTCC=$lt_LTCC
9832
9833# LTCC compiler flags.
9834LTCFLAGS=$lt_LTCFLAGS
9835
9836# A language-specific compiler.
9837CC=$lt_compiler
9838
9839# Is the compiler the GNU C compiler?
9840with_gcc=$GCC
9841
9842# An ERE matcher.
9843EGREP=$lt_EGREP
9844
9845# The linker used to build libraries.
9846LD=$lt_LD
9847
9848# Whether we need hard or soft links.
9849LN_S=$lt_LN_S
9850
9851# A BSD-compatible nm program.
9852NM=$lt_NM
9853
9854# A symbol stripping program
9855STRIP=$lt_STRIP
9856
9857# Used to examine libraries when file_magic_cmd begins "file"
9858MAGIC_CMD=$MAGIC_CMD
9859
9860# Used on cygwin: DLL creation program.
9861DLLTOOL="$DLLTOOL"
9862
9863# Used on cygwin: object dumper.
9864OBJDUMP="$OBJDUMP"
9865
9866# Used on cygwin: assembler.
9867AS="$AS"
9868
9869# The name of the directory that contains temporary libtool files.
9870objdir=$objdir
9871
9872# How to create reloadable object files.
9873reload_flag=$lt_reload_flag
9874reload_cmds=$lt_reload_cmds
9875
9876# How to pass a linker flag through the compiler.
9877wl=$lt_lt_prog_compiler_wl
9878
9879# Object file suffix (normally "o").
9880objext="$ac_objext"
9881
9882# Old archive suffix (normally "a").
9883libext="$libext"
9884
9885# Shared library suffix (normally ".so").
9886shrext_cmds='$shrext_cmds'
9887
9888# Executable file suffix (normally "").
9889exeext="$exeext"
9890
9891# Additional compiler flags for building library objects.
9892pic_flag=$lt_lt_prog_compiler_pic
9893pic_mode=$pic_mode
9894
9895# What is the maximum length of a command?
9896max_cmd_len=$lt_cv_sys_max_cmd_len
9897
9898# Does compiler simultaneously support -c and -o options?
9899compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9900
9901# Must we lock files when doing compilation?
9902need_locks=$lt_need_locks
9903
9904# Do we need the lib prefix for modules?
9905need_lib_prefix=$need_lib_prefix
9906
9907# Do we need a version for libraries?
9908need_version=$need_version
9909
9910# Whether dlopen is supported.
9911dlopen_support=$enable_dlopen
9912
9913# Whether dlopen of programs is supported.
9914dlopen_self=$enable_dlopen_self
9915
9916# Whether dlopen of statically linked programs is supported.
9917dlopen_self_static=$enable_dlopen_self_static
9918
9919# Compiler flag to prevent dynamic linking.
9920link_static_flag=$lt_lt_prog_compiler_static
9921
9922# Compiler flag to turn off builtin functions.
9923no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9924
9925# Compiler flag to allow reflexive dlopens.
9926export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9927
9928# Compiler flag to generate shared objects directly from archives.
9929whole_archive_flag_spec=$lt_whole_archive_flag_spec
9930
9931# Compiler flag to generate thread-safe objects.
9932thread_safe_flag_spec=$lt_thread_safe_flag_spec
9933
9934# Library versioning type.
9935version_type=$version_type
9936
9937# Format of library name prefix.
9938libname_spec=$lt_libname_spec
9939
9940# List of archive names.  First name is the real one, the rest are links.
9941# The last name is the one that the linker finds with -lNAME.
9942library_names_spec=$lt_library_names_spec
9943
9944# The coded name of the library, if different from the real name.
9945soname_spec=$lt_soname_spec
9946
9947# Commands used to build and install an old-style archive.
9948RANLIB=$lt_RANLIB
9949old_archive_cmds=$lt_old_archive_cmds
9950old_postinstall_cmds=$lt_old_postinstall_cmds
9951old_postuninstall_cmds=$lt_old_postuninstall_cmds
9952
9953# Create an old-style archive from a shared archive.
9954old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9955
9956# Create a temporary old-style archive to link instead of a shared archive.
9957old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9958
9959# Commands used to build and install a shared archive.
9960archive_cmds=$lt_archive_cmds
9961archive_expsym_cmds=$lt_archive_expsym_cmds
9962postinstall_cmds=$lt_postinstall_cmds
9963postuninstall_cmds=$lt_postuninstall_cmds
9964
9965# Commands used to build a loadable module (assumed same as above if empty)
9966module_cmds=$lt_module_cmds
9967module_expsym_cmds=$lt_module_expsym_cmds
9968
9969# Commands to strip libraries.
9970old_striplib=$lt_old_striplib
9971striplib=$lt_striplib
9972
9973# Dependencies to place before the objects being linked to create a
9974# shared library.
9975predep_objects=$lt_predep_objects
9976
9977# Dependencies to place after the objects being linked to create a
9978# shared library.
9979postdep_objects=$lt_postdep_objects
9980
9981# Dependencies to place before the objects being linked to create a
9982# shared library.
9983predeps=$lt_predeps
9984
9985# Dependencies to place after the objects being linked to create a
9986# shared library.
9987postdeps=$lt_postdeps
9988
9989# The library search path used internally by the compiler when linking
9990# a shared library.
9991compiler_lib_search_path=$lt_compiler_lib_search_path
9992
9993# Method to check whether dependent libraries are shared objects.
9994deplibs_check_method=$lt_deplibs_check_method
9995
9996# Command to use when deplibs_check_method == file_magic.
9997file_magic_cmd=$lt_file_magic_cmd
9998
9999# Flag that allows shared libraries with undefined symbols to be built.
10000allow_undefined_flag=$lt_allow_undefined_flag
10001
10002# Flag that forces no undefined symbols.
10003no_undefined_flag=$lt_no_undefined_flag
10004
10005# Commands used to finish a libtool library installation in a directory.
10006finish_cmds=$lt_finish_cmds
10007
10008# Same as above, but a single script fragment to be evaled but not shown.
10009finish_eval=$lt_finish_eval
10010
10011# Take the output of nm and produce a listing of raw symbols and C names.
10012global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10013
10014# Transform the output of nm in a proper C declaration
10015global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10016
10017# Transform the output of nm in a C name address pair
10018global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10019
10020# This is the shared library runtime path variable.
10021runpath_var=$runpath_var
10022
10023# This is the shared library path variable.
10024shlibpath_var=$shlibpath_var
10025
10026# Is shlibpath searched before the hard-coded library search path?
10027shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10028
10029# How to hardcode a shared library path into an executable.
10030hardcode_action=$hardcode_action
10031
10032# Whether we should hardcode library paths into libraries.
10033hardcode_into_libs=$hardcode_into_libs
10034
10035# Flag to hardcode \$libdir into a binary during linking.
10036# This must work even if \$libdir does not exist.
10037hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10038
10039# If ld is used when linking, flag to hardcode \$libdir into
10040# a binary during linking. This must work even if \$libdir does
10041# not exist.
10042hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10043
10044# Whether we need a single -rpath flag with a separated argument.
10045hardcode_libdir_separator=$lt_hardcode_libdir_separator
10046
10047# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10048# resulting binary.
10049hardcode_direct=$hardcode_direct
10050
10051# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10052# resulting binary.
10053hardcode_minus_L=$hardcode_minus_L
10054
10055# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10056# the resulting binary.
10057hardcode_shlibpath_var=$hardcode_shlibpath_var
10058
10059# Set to yes if building a shared library automatically hardcodes DIR into the library
10060# and all subsequent libraries and executables linked against it.
10061hardcode_automatic=$hardcode_automatic
10062
10063# Variables whose values should be saved in libtool wrapper scripts and
10064# restored at relink time.
10065variables_saved_for_relink="$variables_saved_for_relink"
10066
10067# Whether libtool must link a program against all its dependency libraries.
10068link_all_deplibs=$link_all_deplibs
10069
10070# Compile-time system search path for libraries
10071sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10072
10073# Run-time system search path for libraries
10074sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10075
10076# Fix the shell variable \$srcfile for the compiler.
10077fix_srcfile_path="$fix_srcfile_path"
10078
10079# Set to yes if exported symbols are required.
10080always_export_symbols=$always_export_symbols
10081
10082# The commands to list exported symbols.
10083export_symbols_cmds=$lt_export_symbols_cmds
10084
10085# The commands to extract the exported symbol list from a shared archive.
10086extract_expsyms_cmds=$lt_extract_expsyms_cmds
10087
10088# Symbols that should not be listed in the preloaded symbols.
10089exclude_expsyms=$lt_exclude_expsyms
10090
10091# Symbols that must always be exported.
10092include_expsyms=$lt_include_expsyms
10093
10094# ### END LIBTOOL CONFIG
10095
10096__EOF__
10097
10098
10099  case $host_os in
10100  aix3*)
10101    cat <<\EOF >> "$cfgfile"
10102
10103# AIX sometimes has problems with the GCC collect2 program.  For some
10104# reason, if we set the COLLECT_NAMES environment variable, the problems
10105# vanish in a puff of smoke.
10106if test "X${COLLECT_NAMES+set}" != Xset; then
10107  COLLECT_NAMES=
10108  export COLLECT_NAMES
10109fi
10110EOF
10111    ;;
10112  esac
10113
10114  # We use sed instead of cat because bash on DJGPP gets confused if
10115  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10116  # text mode, it properly converts lines to CR/LF.  This bash problem
10117  # is reportedly fixed, but why not run on old versions too?
10118  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10119
10120  mv -f "$cfgfile" "$ofile" || \
10121    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10122  chmod +x "$ofile"
10123
10124else
10125  # If there is no Makefile yet, we rely on a make rule to execute
10126  # `config.status --recheck' to rerun these tests and create the
10127  # libtool script then.
10128  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10129  if test -f "$ltmain_in"; then
10130    test -f Makefile && make "$ltmain"
10131  fi
10132fi
10133
10134
10135ac_ext=cc
10136ac_cpp='$CXXCPP $CPPFLAGS'
10137ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10138ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10139ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10140
10141CC="$lt_save_CC"
10142
10143
10144# Check whether --with-tags or --without-tags was given.
10145if test "${with_tags+set}" = set; then
10146  withval="$with_tags"
10147  tagnames="$withval"
10148fi;
10149
10150if test -f "$ltmain" && test -n "$tagnames"; then
10151  if test ! -f "${ofile}"; then
10152    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10153echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10154  fi
10155
10156  if test -z "$LTCC"; then
10157    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10158    if test -z "$LTCC"; then
10159      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10160echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10161    else
10162      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10163echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10164    fi
10165  fi
10166  if test -z "$LTCFLAGS"; then
10167    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10168  fi
10169
10170  # Extract list of available tagged configurations in $ofile.
10171  # Note that this assumes the entire list is on one line.
10172  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10173
10174  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10175  for tagname in $tagnames; do
10176    IFS="$lt_save_ifs"
10177    # Check whether tagname contains only valid characters
10178    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10179    "") ;;
10180    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10181echo "$as_me: error: invalid tag name: $tagname" >&2;}
10182   { (exit 1); exit 1; }; }
10183        ;;
10184    esac
10185
10186    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10187    then
10188      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10189echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10190   { (exit 1); exit 1; }; }
10191    fi
10192
10193    # Update the list of available tags.
10194    if test -n "$tagname"; then
10195      echo appending configuration tag \"$tagname\" to $ofile
10196
10197      case $tagname in
10198      CXX)
10199        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10200            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10201            (test "X$CXX" != "Xg++"))) ; then
10202          ac_ext=cc
10203ac_cpp='$CXXCPP $CPPFLAGS'
10204ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10205ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10206ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10207
10208
10209
10210
10211archive_cmds_need_lc_CXX=no
10212allow_undefined_flag_CXX=
10213always_export_symbols_CXX=no
10214archive_expsym_cmds_CXX=
10215export_dynamic_flag_spec_CXX=
10216hardcode_direct_CXX=no
10217hardcode_libdir_flag_spec_CXX=
10218hardcode_libdir_flag_spec_ld_CXX=
10219hardcode_libdir_separator_CXX=
10220hardcode_minus_L_CXX=no
10221hardcode_shlibpath_var_CXX=unsupported
10222hardcode_automatic_CXX=no
10223module_cmds_CXX=
10224module_expsym_cmds_CXX=
10225link_all_deplibs_CXX=unknown
10226old_archive_cmds_CXX=$old_archive_cmds
10227no_undefined_flag_CXX=
10228whole_archive_flag_spec_CXX=
10229enable_shared_with_static_runtimes_CXX=no
10230
10231# Dependencies to place before and after the object being linked:
10232predep_objects_CXX=
10233postdep_objects_CXX=
10234predeps_CXX=
10235postdeps_CXX=
10236compiler_lib_search_path_CXX=
10237
10238# Source file extension for C++ test sources.
10239ac_ext=cpp
10240
10241# Object file extension for compiled C++ test sources.
10242objext=o
10243objext_CXX=$objext
10244
10245# Code to be used in simple compile tests
10246lt_simple_compile_test_code="int some_variable = 0;\n"
10247
10248# Code to be used in simple link tests
10249lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10250
10251# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10252
10253# If no C compiler was specified, use CC.
10254LTCC=${LTCC-"$CC"}
10255
10256# If no C compiler flags were specified, use CFLAGS.
10257LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10258
10259# Allow CC to be a program name with arguments.
10260compiler=$CC
10261
10262
10263# save warnings/boilerplate of simple test code
10264ac_outfile=conftest.$ac_objext
10265printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10266eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10267_lt_compiler_boilerplate=`cat conftest.err`
10268$rm conftest*
10269
10270ac_outfile=conftest.$ac_objext
10271printf "$lt_simple_link_test_code" >conftest.$ac_ext
10272eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10273_lt_linker_boilerplate=`cat conftest.err`
10274$rm conftest*
10275
10276
10277# Allow CC to be a program name with arguments.
10278lt_save_CC=$CC
10279lt_save_LD=$LD
10280lt_save_GCC=$GCC
10281GCC=$GXX
10282lt_save_with_gnu_ld=$with_gnu_ld
10283lt_save_path_LD=$lt_cv_path_LD
10284if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10285  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10286else
10287  $as_unset lt_cv_prog_gnu_ld
10288fi
10289if test -n "${lt_cv_path_LDCXX+set}"; then
10290  lt_cv_path_LD=$lt_cv_path_LDCXX
10291else
10292  $as_unset lt_cv_path_LD
10293fi
10294test -z "${LDCXX+set}" || LD=$LDCXX
10295CC=${CXX-"c++"}
10296compiler=$CC
10297compiler_CXX=$CC
10298for cc_temp in $compiler""; do
10299  case $cc_temp in
10300    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10301    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10302    \-*) ;;
10303    *) break;;
10304  esac
10305done
10306cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10307
10308
10309# We don't want -fno-exception wen compiling C++ code, so set the
10310# no_builtin_flag separately
10311if test "$GXX" = yes; then
10312  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10313else
10314  lt_prog_compiler_no_builtin_flag_CXX=
10315fi
10316
10317if test "$GXX" = yes; then
10318  # Set up default GNU C++ configuration
10319
10320
10321# Check whether --with-gnu-ld or --without-gnu-ld was given.
10322if test "${with_gnu_ld+set}" = set; then
10323  withval="$with_gnu_ld"
10324  test "$withval" = no || with_gnu_ld=yes
10325else
10326  with_gnu_ld=no
10327fi;
10328ac_prog=ld
10329if test "$GCC" = yes; then
10330  # Check if gcc -print-prog-name=ld gives a path.
10331  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10332echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10333  case $host in
10334  *-*-mingw*)
10335    # gcc leaves a trailing carriage return which upsets mingw
10336    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10337  *)
10338    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10339  esac
10340  case $ac_prog in
10341    # Accept absolute paths.
10342    [\\/]* | ?:[\\/]*)
10343      re_direlt='/[^/][^/]*/\.\./'
10344      # Canonicalize the pathname of ld
10345      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10346      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10347        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10348      done
10349      test -z "$LD" && LD="$ac_prog"
10350      ;;
10351  "")
10352    # If it fails, then pretend we aren't using GCC.
10353    ac_prog=ld
10354    ;;
10355  *)
10356    # If it is relative, then search for the first ld in PATH.
10357    with_gnu_ld=unknown
10358    ;;
10359  esac
10360elif test "$with_gnu_ld" = yes; then
10361  echo "$as_me:$LINENO: checking for GNU ld" >&5
10362echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10363else
10364  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10365echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10366fi
10367if test "${lt_cv_path_LD+set}" = set; then
10368  echo $ECHO_N "(cached) $ECHO_C" >&6
10369else
10370  if test -z "$LD"; then
10371  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10372  for ac_dir in $PATH; do
10373    IFS="$lt_save_ifs"
10374    test -z "$ac_dir" && ac_dir=.
10375    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10376      lt_cv_path_LD="$ac_dir/$ac_prog"
10377      # Check to see if the program is GNU ld.  I'd rather use --version,
10378      # but apparently some variants of GNU ld only accept -v.
10379      # Break only if it was the GNU/non-GNU ld that we prefer.
10380      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10381      *GNU* | *'with BFD'*)
10382        test "$with_gnu_ld" != no && break
10383        ;;
10384      *)
10385        test "$with_gnu_ld" != yes && break
10386        ;;
10387      esac
10388    fi
10389  done
10390  IFS="$lt_save_ifs"
10391else
10392  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10393fi
10394fi
10395
10396LD="$lt_cv_path_LD"
10397if test -n "$LD"; then
10398  echo "$as_me:$LINENO: result: $LD" >&5
10399echo "${ECHO_T}$LD" >&6
10400else
10401  echo "$as_me:$LINENO: result: no" >&5
10402echo "${ECHO_T}no" >&6
10403fi
10404test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10405echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10406   { (exit 1); exit 1; }; }
10407echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10408echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10409if test "${lt_cv_prog_gnu_ld+set}" = set; then
10410  echo $ECHO_N "(cached) $ECHO_C" >&6
10411else
10412  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10413case `$LD -v 2>&1 </dev/null` in
10414*GNU* | *'with BFD'*)
10415  lt_cv_prog_gnu_ld=yes
10416  ;;
10417*)
10418  lt_cv_prog_gnu_ld=no
10419  ;;
10420esac
10421fi
10422echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10423echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10424with_gnu_ld=$lt_cv_prog_gnu_ld
10425
10426
10427
10428  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10429  # archiving commands below assume that GNU ld is being used.
10430  if test "$with_gnu_ld" = yes; then
10431    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10432    archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10433
10434    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10435    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10436
10437    # If archive_cmds runs LD, not CC, wlarc should be empty
10438    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10439    #     investigate it a little bit more. (MM)
10440    wlarc='${wl}'
10441
10442    # ancient GNU ld didn't support --whole-archive et. al.
10443    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10444        grep 'no-whole-archive' > /dev/null; then
10445      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10446    else
10447      whole_archive_flag_spec_CXX=
10448    fi
10449  else
10450    with_gnu_ld=no
10451    wlarc=
10452
10453    # A generic and very simple default shared library creation
10454    # command for GNU C++ for the case where it uses the native
10455    # linker, instead of GNU ld.  If possible, this setting should
10456    # overridden to take advantage of the native linker features on
10457    # the platform it is being used on.
10458    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10459  fi
10460
10461  # Commands to make compiler produce verbose output that lists
10462  # what "hidden" libraries, object files and flags are used when
10463  # linking a shared library.
10464  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10465
10466else
10467  GXX=no
10468  with_gnu_ld=no
10469  wlarc=
10470fi
10471
10472# PORTME: fill in a description of your system's C++ link characteristics
10473echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10474echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10475ld_shlibs_CXX=yes
10476case $host_os in
10477  aix3*)
10478    # FIXME: insert proper C++ library support
10479    ld_shlibs_CXX=no
10480    ;;
10481  aix4* | aix5*)
10482    if test "$host_cpu" = ia64; then
10483      # On IA64, the linker does run time linking by default, so we don't
10484      # have to do anything special.
10485      aix_use_runtimelinking=no
10486      exp_sym_flag='-Bexport'
10487      no_entry_flag=""
10488    else
10489      aix_use_runtimelinking=no
10490
10491      # Test if we are trying to use run time linking or normal
10492      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10493      # need to do runtime linking.
10494      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10495        for ld_flag in $LDFLAGS; do
10496          case $ld_flag in
10497          *-brtl*)
10498            aix_use_runtimelinking=yes
10499            break
10500            ;;
10501          esac
10502        done
10503        ;;
10504      esac
10505
10506      exp_sym_flag='-bexport'
10507      no_entry_flag='-bnoentry'
10508    fi
10509
10510    # When large executables or shared objects are built, AIX ld can
10511    # have problems creating the table of contents.  If linking a library
10512    # or program results in "error TOC overflow" add -mminimal-toc to
10513    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10514    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10515
10516    archive_cmds_CXX=''
10517    hardcode_direct_CXX=yes
10518    hardcode_libdir_separator_CXX=':'
10519    link_all_deplibs_CXX=yes
10520
10521    if test "$GXX" = yes; then
10522      case $host_os in aix4.[012]|aix4.[012].*)
10523      # We only want to do this on AIX 4.2 and lower, the check
10524      # below for broken collect2 doesn't work under 4.3+
10525        collect2name=`${CC} -print-prog-name=collect2`
10526        if test -f "$collect2name" && \
10527           strings "$collect2name" | grep resolve_lib_name >/dev/null
10528        then
10529          # We have reworked collect2
10530          hardcode_direct_CXX=yes
10531        else
10532          # We have old collect2
10533          hardcode_direct_CXX=unsupported
10534          # It fails to find uninstalled libraries when the uninstalled
10535          # path is not listed in the libpath.  Setting hardcode_minus_L
10536          # to unsupported forces relinking
10537          hardcode_minus_L_CXX=yes
10538          hardcode_libdir_flag_spec_CXX='-L$libdir'
10539          hardcode_libdir_separator_CXX=
10540        fi
10541        ;;
10542      esac
10543      shared_flag='-shared'
10544      if test "$aix_use_runtimelinking" = yes; then
10545        shared_flag="$shared_flag "'${wl}-G'
10546      fi
10547    else
10548      # not using gcc
10549      if test "$host_cpu" = ia64; then
10550        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10551        # chokes on -Wl,-G. The following line is correct:
10552        shared_flag='-G'
10553      else
10554        if test "$aix_use_runtimelinking" = yes; then
10555          shared_flag='${wl}-G'
10556        else
10557          shared_flag='${wl}-bM:SRE'
10558        fi
10559      fi
10560    fi
10561
10562    # It seems that -bexpall does not export symbols beginning with
10563    # underscore (_), so it is better to generate a list of symbols to export.
10564    always_export_symbols_CXX=yes
10565    if test "$aix_use_runtimelinking" = yes; then
10566      # Warning - without using the other runtime loading flags (-brtl),
10567      # -berok will link without error, but may produce a broken library.
10568      allow_undefined_flag_CXX='-berok'
10569      # Determine the default libpath from the value encoded in an empty executable.
10570      cat >conftest.$ac_ext <<_ACEOF
10571/* confdefs.h.  */
10572_ACEOF
10573cat confdefs.h >>conftest.$ac_ext
10574cat >>conftest.$ac_ext <<_ACEOF
10575/* end confdefs.h.  */
10576
10577int
10578main ()
10579{
10580
10581  ;
10582  return 0;
10583}
10584_ACEOF
10585rm -f conftest.$ac_objext conftest$ac_exeext
10586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10587  (eval $ac_link) 2>conftest.er1
10588  ac_status=$?
10589  grep -v '^ *+' conftest.er1 >conftest.err
10590  rm -f conftest.er1
10591  cat conftest.err >&5
10592  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10593  (exit $ac_status); } &&
10594         { ac_try='test -z "$ac_cxx_werror_flag"
10595                         || test ! -s conftest.err'
10596  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10597  (eval $ac_try) 2>&5
10598  ac_status=$?
10599  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10600  (exit $ac_status); }; } &&
10601         { ac_try='test -s conftest$ac_exeext'
10602  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10603  (eval $ac_try) 2>&5
10604  ac_status=$?
10605  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10606  (exit $ac_status); }; }; then
10607
10608aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10609}'`
10610# Check for a 64-bit object if we didn't find anything.
10611if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10612}'`; fi
10613else
10614  echo "$as_me: failed program was:" >&5
10615sed 's/^/| /' conftest.$ac_ext >&5
10616
10617fi
10618rm -f conftest.err conftest.$ac_objext \
10619      conftest$ac_exeext conftest.$ac_ext
10620if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10621
10622      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10623
10624      archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10625     else
10626      if test "$host_cpu" = ia64; then
10627        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10628        allow_undefined_flag_CXX="-z nodefs"
10629        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10630      else
10631        # Determine the default libpath from the value encoded in an empty executable.
10632        cat >conftest.$ac_ext <<_ACEOF
10633/* confdefs.h.  */
10634_ACEOF
10635cat confdefs.h >>conftest.$ac_ext
10636cat >>conftest.$ac_ext <<_ACEOF
10637/* end confdefs.h.  */
10638
10639int
10640main ()
10641{
10642
10643  ;
10644  return 0;
10645}
10646_ACEOF
10647rm -f conftest.$ac_objext conftest$ac_exeext
10648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10649  (eval $ac_link) 2>conftest.er1
10650  ac_status=$?
10651  grep -v '^ *+' conftest.er1 >conftest.err
10652  rm -f conftest.er1
10653  cat conftest.err >&5
10654  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10655  (exit $ac_status); } &&
10656         { ac_try='test -z "$ac_cxx_werror_flag"
10657                         || test ! -s conftest.err'
10658  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10659  (eval $ac_try) 2>&5
10660  ac_status=$?
10661  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10662  (exit $ac_status); }; } &&
10663         { ac_try='test -s conftest$ac_exeext'
10664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10665  (eval $ac_try) 2>&5
10666  ac_status=$?
10667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668  (exit $ac_status); }; }; then
10669
10670aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10671}'`
10672# Check for a 64-bit object if we didn't find anything.
10673if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10674}'`; fi
10675else
10676  echo "$as_me: failed program was:" >&5
10677sed 's/^/| /' conftest.$ac_ext >&5
10678
10679fi
10680rm -f conftest.err conftest.$ac_objext \
10681      conftest$ac_exeext conftest.$ac_ext
10682if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10683
10684        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10685        # Warning - without using the other run time loading flags,
10686        # -berok will link without error, but may produce a broken library.
10687        no_undefined_flag_CXX=' ${wl}-bernotok'
10688        allow_undefined_flag_CXX=' ${wl}-berok'
10689        # Exported symbols can be pulled into shared objects from archives
10690        whole_archive_flag_spec_CXX='$convenience'
10691        archive_cmds_need_lc_CXX=yes
10692        # This is similar to how AIX traditionally builds its shared libraries.
10693        archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10694      fi
10695    fi
10696    ;;
10697
10698  beos*)
10699    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10700      allow_undefined_flag_CXX=unsupported
10701      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10702      # support --undefined.  This deserves some investigation.  FIXME
10703      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10704    else
10705      ld_shlibs_CXX=no
10706    fi
10707    ;;
10708
10709  chorus*)
10710    case $cc_basename in
10711      *)
10712        # FIXME: insert proper C++ library support
10713        ld_shlibs_CXX=no
10714        ;;
10715    esac
10716    ;;
10717
10718  cygwin* | mingw* | pw32*)
10719    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10720    # as there is no search path for DLLs.
10721    hardcode_libdir_flag_spec_CXX='-L$libdir'
10722    allow_undefined_flag_CXX=unsupported
10723    always_export_symbols_CXX=no
10724    enable_shared_with_static_runtimes_CXX=yes
10725
10726    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10727      archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10728      # If the export-symbols file already is a .def file (1st line
10729      # is EXPORTS), use it as is; otherwise, prepend...
10730      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10731        cp $export_symbols $output_objdir/$soname.def;
10732      else
10733        echo EXPORTS > $output_objdir/$soname.def;
10734        cat $export_symbols >> $output_objdir/$soname.def;
10735      fi~
10736      $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10737    else
10738      ld_shlibs_CXX=no
10739    fi
10740  ;;
10741      darwin* | rhapsody*)
10742        case $host_os in
10743        rhapsody* | darwin1.[012])
10744         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10745         ;;
10746       *) # Darwin 1.3 on
10747         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10748           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10749         else
10750           case ${MACOSX_DEPLOYMENT_TARGET} in
10751             10.[012])
10752               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10753               ;;
10754             10.*)
10755               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10756               ;;
10757           esac
10758         fi
10759         ;;
10760        esac
10761      archive_cmds_need_lc_CXX=no
10762      hardcode_direct_CXX=no
10763      hardcode_automatic_CXX=yes
10764      hardcode_shlibpath_var_CXX=unsupported
10765      whole_archive_flag_spec_CXX=''
10766      link_all_deplibs_CXX=yes
10767
10768    if test "$GXX" = yes ; then
10769      lt_int_apple_cc_single_mod=no
10770      output_verbose_link_cmd='echo'
10771      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10772       lt_int_apple_cc