source: trunk/Cbc/configure @ 324

Last change on this file since 324 was 324, checked in by andreasw, 15 years ago

several fixes for Cygwin; automatically gunzip examples files if zlib is not available

  • Property svn:executable set to *
File size: 734.1 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 CPXLIB COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIB COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIB COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIB COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIB COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIB COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIB 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-lib specify the flags to link with the library Cplex
1069  --with-glpk-incdir specify the directory with the header files for library
1070                          Glpk
1071  --with-glpk-lib specify the flags to link with the library Glpk
1072  --with-fortmp-incdir specify the directory with the header files for library
1073                          FortMP
1074  --with-fortmp-lib specify the flags to link with the library FortMP
1075  --with-mosek-incdir specify the directory with the header files for library
1076                          Mosek
1077  --with-mosek-lib specify the flags to link with the library Mosek
1078  --with-osl-incdir specify the directory with the header files for library
1079                          Osl
1080  --with-osl-lib specify the flags to link with the library Osl
1081  --with-soplex-incdir specify the directory with the header files for library
1082                          Soplex
1083  --with-soplex-lib specify the flags to link with the library Soplex
1084  --with-xpress-incdir specify the directory with the header files for library
1085                          Xpress
1086  --with-xpress-lib specify the flags to link 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
1641ADDLIBS=
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* | *-mingw*)
1730             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 -fomit-frame-pointer"
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* | *-mingw*)
2373        case "$CXX" in
2374          cl | */cl)
2375            coin_opt_cxxflags='-O2'
2376            coin_add_cxxflags='-nologo -GX -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    coin_disable_shared=yes
2651  ;;
2652  *-mingw*)
2653    case $CXX in
2654      cl)
2655        coin_disable_shared=yes
2656    ;;
2657    esac
2658  ;;
2659esac
2660if test x"$coin_disable_shared" = xyes; then
2661  if test x"$enable_shared" = xyes; then
2662    { echo "$as_me:$LINENO: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&5
2663echo "$as_me: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&2;}
2664  fi
2665  enable_shared=no
2666fi
2667# By default, we only want the shared objects to be compiled
2668# Check whether --enable-static or --disable-static was given.
2669if test "${enable_static+set}" = set; then
2670  enableval="$enable_static"
2671  p=${PACKAGE-default}
2672    case $enableval in
2673    yes) enable_static=yes ;;
2674    no) enable_static=no ;;
2675    *)
2676     enable_static=no
2677      # Look at the argument we got.  We use all the common list separators.
2678      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2679      for pkg in $enableval; do
2680        IFS="$lt_save_ifs"
2681        if test "X$pkg" = "X$p"; then
2682          enable_static=yes
2683        fi
2684      done
2685      IFS="$lt_save_ifs"
2686      ;;
2687    esac
2688else
2689  enable_static=no
2690fi;
2691
2692
2693
2694echo "$as_me:$LINENO: checking for egrep" >&5
2695echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2696if test "${ac_cv_prog_egrep+set}" = set; then
2697  echo $ECHO_N "(cached) $ECHO_C" >&6
2698else
2699  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2700    then ac_cv_prog_egrep='grep -E'
2701    else ac_cv_prog_egrep='egrep'
2702    fi
2703fi
2704echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2705echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2706 EGREP=$ac_cv_prog_egrep
2707
2708
2709am__api_version="1.9"
2710# Find a good install program.  We prefer a C program (faster),
2711# so one script is as good as another.  But avoid the broken or
2712# incompatible versions:
2713# SysV /etc/install, /usr/sbin/install
2714# SunOS /usr/etc/install
2715# IRIX /sbin/install
2716# AIX /bin/install
2717# AmigaOS /C/install, which installs bootblocks on floppy discs
2718# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2719# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2720# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2721# OS/2's system install, which has a completely different semantic
2722# ./install, which can be erroneously created by make from ./install.sh.
2723echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2724echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2725if test -z "$INSTALL"; then
2726if test "${ac_cv_path_install+set}" = set; then
2727  echo $ECHO_N "(cached) $ECHO_C" >&6
2728else
2729  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2730for as_dir in $PATH
2731do
2732  IFS=$as_save_IFS
2733  test -z "$as_dir" && as_dir=.
2734  # Account for people who put trailing slashes in PATH elements.
2735case $as_dir/ in
2736  ./ | .// | /cC/* | \
2737  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2738  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2739  /usr/ucb/* ) ;;
2740  *)
2741    # OSF1 and SCO ODT 3.0 have their own names for install.
2742    # Don't use installbsd from OSF since it installs stuff as root
2743    # by default.
2744    for ac_prog in ginstall scoinst install; do
2745      for ac_exec_ext in '' $ac_executable_extensions; do
2746        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2747          if test $ac_prog = install &&
2748            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2749            # AIX install.  It has an incompatible calling convention.
2750            :
2751          elif test $ac_prog = install &&
2752            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2753            # program-specific install script used by HP pwplus--don't use.
2754            :
2755          else
2756            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2757            break 3
2758          fi
2759        fi
2760      done
2761    done
2762    ;;
2763esac
2764done
2765
2766
2767fi
2768  if test "${ac_cv_path_install+set}" = set; then
2769    INSTALL=$ac_cv_path_install
2770  else
2771    # As a last resort, use the slow shell script.  We don't cache a
2772    # path for INSTALL within a source directory, because that will
2773    # break other packages using the cache if that directory is
2774    # removed, or if the path is relative.
2775    INSTALL=$ac_install_sh
2776  fi
2777fi
2778echo "$as_me:$LINENO: result: $INSTALL" >&5
2779echo "${ECHO_T}$INSTALL" >&6
2780
2781# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2782# It thinks the first close brace ends the variable substitution.
2783test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2784
2785test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2786
2787test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2788
2789echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2790echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2791# Just in case
2792sleep 1
2793echo timestamp > conftest.file
2794# Do `set' in a subshell so we don't clobber the current shell's
2795# arguments.  Must try -L first in case configure is actually a
2796# symlink; some systems play weird games with the mod time of symlinks
2797# (eg FreeBSD returns the mod time of the symlink's containing
2798# directory).
2799if (
2800   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2801   if test "$*" = "X"; then
2802      # -L didn't work.
2803      set X `ls -t $srcdir/configure conftest.file`
2804   fi
2805   rm -f conftest.file
2806   if test "$*" != "X $srcdir/configure conftest.file" \
2807      && test "$*" != "X conftest.file $srcdir/configure"; then
2808
2809      # If neither matched, then we have a broken ls.  This can happen
2810      # if, for instance, CONFIG_SHELL is bash and it inherits a
2811      # broken ls alias from the environment.  This has actually
2812      # happened.  Such a system could not be considered "sane".
2813      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2814alias in your environment" >&5
2815echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2816alias in your environment" >&2;}
2817   { (exit 1); exit 1; }; }
2818   fi
2819
2820   test "$2" = conftest.file
2821   )
2822then
2823   # Ok.
2824   :
2825else
2826   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2827Check your system clock" >&5
2828echo "$as_me: error: newly created file is older than distributed files!
2829Check your system clock" >&2;}
2830   { (exit 1); exit 1; }; }
2831fi
2832echo "$as_me:$LINENO: result: yes" >&5
2833echo "${ECHO_T}yes" >&6
2834test "$program_prefix" != NONE &&
2835  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2836# Use a double $ so make ignores it.
2837test "$program_suffix" != NONE &&
2838  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2839# Double any \ or $.  echo might interpret backslashes.
2840# By default was `s,x,x', remove it if useless.
2841cat <<\_ACEOF >conftest.sed
2842s/[\\$]/&&/g;s/;s,x,x,$//
2843_ACEOF
2844program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2845rm conftest.sed
2846
2847# expand $ac_aux_dir to an absolute path
2848am_aux_dir=`cd $ac_aux_dir && pwd`
2849
2850test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2851# Use eval to expand $SHELL
2852if eval "$MISSING --run true"; then
2853  am_missing_run="$MISSING --run "
2854else
2855  am_missing_run=
2856  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2857echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2858fi
2859
2860if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2861  # We used to keeping the `.' as first argument, in order to
2862  # allow $(mkdir_p) to be used without argument.  As in
2863  #   $(mkdir_p) $(somedir)
2864  # where $(somedir) is conditionally defined.  However this is wrong
2865  # for two reasons:
2866  #  1. if the package is installed by a user who cannot write `.'
2867  #     make install will fail,
2868  #  2. the above comment should most certainly read
2869  #     $(mkdir_p) $(DESTDIR)$(somedir)
2870  #     so it does not work when $(somedir) is undefined and
2871  #     $(DESTDIR) is not.
2872  #  To support the latter case, we have to write
2873  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2874  #  so the `.' trick is pointless.
2875  mkdir_p='mkdir -p --'
2876else
2877  # On NextStep and OpenStep, the `mkdir' command does not
2878  # recognize any option.  It will interpret all options as
2879  # directories to create, and then abort because `.' already
2880  # exists.
2881  for d in ./-p ./--version;
2882  do
2883    test -d $d && rmdir $d
2884  done
2885  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2886  if test -f "$ac_aux_dir/mkinstalldirs"; then
2887    mkdir_p='$(mkinstalldirs)'
2888  else
2889    mkdir_p='$(install_sh) -d'
2890  fi
2891fi
2892
2893for ac_prog in gawk mawk nawk awk
2894do
2895  # Extract the first word of "$ac_prog", so it can be a program name with args.
2896set dummy $ac_prog; ac_word=$2
2897echo "$as_me:$LINENO: checking for $ac_word" >&5
2898echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2899if test "${ac_cv_prog_AWK+set}" = set; then
2900  echo $ECHO_N "(cached) $ECHO_C" >&6
2901else
2902  if test -n "$AWK"; then
2903  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2904else
2905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906for as_dir in $PATH
2907do
2908  IFS=$as_save_IFS
2909  test -z "$as_dir" && as_dir=.
2910  for ac_exec_ext in '' $ac_executable_extensions; do
2911  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912    ac_cv_prog_AWK="$ac_prog"
2913    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2914    break 2
2915  fi
2916done
2917done
2918
2919fi
2920fi
2921AWK=$ac_cv_prog_AWK
2922if test -n "$AWK"; then
2923  echo "$as_me:$LINENO: result: $AWK" >&5
2924echo "${ECHO_T}$AWK" >&6
2925else
2926  echo "$as_me:$LINENO: result: no" >&5
2927echo "${ECHO_T}no" >&6
2928fi
2929
2930  test -n "$AWK" && break
2931done
2932
2933echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2934echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2935set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2936if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2937  echo $ECHO_N "(cached) $ECHO_C" >&6
2938else
2939  cat >conftest.make <<\_ACEOF
2940all:
2941        @echo 'ac_maketemp="$(MAKE)"'
2942_ACEOF
2943# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2944eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2945if test -n "$ac_maketemp"; then
2946  eval ac_cv_prog_make_${ac_make}_set=yes
2947else
2948  eval ac_cv_prog_make_${ac_make}_set=no
2949fi
2950rm -f conftest.make
2951fi
2952if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2953  echo "$as_me:$LINENO: result: yes" >&5
2954echo "${ECHO_T}yes" >&6
2955  SET_MAKE=
2956else
2957  echo "$as_me:$LINENO: result: no" >&5
2958echo "${ECHO_T}no" >&6
2959  SET_MAKE="MAKE=${MAKE-make}"
2960fi
2961
2962rm -rf .tst 2>/dev/null
2963mkdir .tst 2>/dev/null
2964if test -d .tst; then
2965  am__leading_dot=.
2966else
2967  am__leading_dot=_
2968fi
2969rmdir .tst 2>/dev/null
2970
2971DEPDIR="${am__leading_dot}deps"
2972
2973          ac_config_commands="$ac_config_commands depfiles"
2974
2975
2976am_make=${MAKE-make}
2977cat > confinc << 'END'
2978am__doit:
2979        @echo done
2980.PHONY: am__doit
2981END
2982# If we don't find an include directive, just comment out the code.
2983echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2984echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2985am__include="#"
2986am__quote=
2987_am_result=none
2988# First try GNU make style include.
2989echo "include confinc" > confmf
2990# We grep out `Entering directory' and `Leaving directory'
2991# messages which can occur if `w' ends up in MAKEFLAGS.
2992# In particular we don't look at `^make:' because GNU make might
2993# be invoked under some other name (usually "gmake"), in which
2994# case it prints its new name instead of `make'.
2995if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2996   am__include=include
2997   am__quote=
2998   _am_result=GNU
2999fi
3000# Now try BSD make style include.
3001if test "$am__include" = "#"; then
3002   echo '.include "confinc"' > confmf
3003   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3004      am__include=.include
3005      am__quote="\""
3006      _am_result=BSD
3007   fi
3008fi
3009
3010
3011echo "$as_me:$LINENO: result: $_am_result" >&5
3012echo "${ECHO_T}$_am_result" >&6
3013rm -f confinc confmf
3014
3015# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3016if test "${enable_dependency_tracking+set}" = set; then
3017  enableval="$enable_dependency_tracking"
3018
3019fi;
3020if test "x$enable_dependency_tracking" != xno; then
3021  am_depcomp="$ac_aux_dir/depcomp"
3022  AMDEPBACKSLASH='\'
3023fi
3024
3025
3026if test "x$enable_dependency_tracking" != xno; then
3027  AMDEP_TRUE=
3028  AMDEP_FALSE='#'
3029else
3030  AMDEP_TRUE='#'
3031  AMDEP_FALSE=
3032fi
3033
3034
3035
3036ac_ext=c
3037ac_cpp='$CPP $CPPFLAGS'
3038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3040ac_compiler_gnu=$ac_cv_c_compiler_gnu
3041if test -n "$ac_tool_prefix"; then
3042  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3043set dummy ${ac_tool_prefix}gcc; ac_word=$2
3044echo "$as_me:$LINENO: checking for $ac_word" >&5
3045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3046if test "${ac_cv_prog_CC+set}" = set; then
3047  echo $ECHO_N "(cached) $ECHO_C" >&6
3048else
3049  if test -n "$CC"; then
3050  ac_cv_prog_CC="$CC" # Let the user override the test.
3051else
3052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053for as_dir in $PATH
3054do
3055  IFS=$as_save_IFS
3056  test -z "$as_dir" && as_dir=.
3057  for ac_exec_ext in '' $ac_executable_extensions; do
3058  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3060    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3061    break 2
3062  fi
3063done
3064done
3065
3066fi
3067fi
3068CC=$ac_cv_prog_CC
3069if test -n "$CC"; then
3070  echo "$as_me:$LINENO: result: $CC" >&5
3071echo "${ECHO_T}$CC" >&6
3072else
3073  echo "$as_me:$LINENO: result: no" >&5
3074echo "${ECHO_T}no" >&6
3075fi
3076
3077fi
3078if test -z "$ac_cv_prog_CC"; then
3079  ac_ct_CC=$CC
3080  # Extract the first word of "gcc", so it can be a program name with args.
3081set dummy gcc; ac_word=$2
3082echo "$as_me:$LINENO: checking for $ac_word" >&5
3083echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3084if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3085  echo $ECHO_N "(cached) $ECHO_C" >&6
3086else
3087  if test -n "$ac_ct_CC"; then
3088  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3089else
3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3091for as_dir in $PATH
3092do
3093  IFS=$as_save_IFS
3094  test -z "$as_dir" && as_dir=.
3095  for ac_exec_ext in '' $ac_executable_extensions; do
3096  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3097    ac_cv_prog_ac_ct_CC="gcc"
3098    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3099    break 2
3100  fi
3101done
3102done
3103
3104fi
3105fi
3106ac_ct_CC=$ac_cv_prog_ac_ct_CC
3107if test -n "$ac_ct_CC"; then
3108  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3109echo "${ECHO_T}$ac_ct_CC" >&6
3110else
3111  echo "$as_me:$LINENO: result: no" >&5
3112echo "${ECHO_T}no" >&6
3113fi
3114
3115  CC=$ac_ct_CC
3116else
3117  CC="$ac_cv_prog_CC"
3118fi
3119
3120if test -z "$CC"; then
3121  if test -n "$ac_tool_prefix"; then
3122  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3123set dummy ${ac_tool_prefix}cc; ac_word=$2
3124echo "$as_me:$LINENO: checking for $ac_word" >&5
3125echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3126if test "${ac_cv_prog_CC+set}" = set; then
3127  echo $ECHO_N "(cached) $ECHO_C" >&6
3128else
3129  if test -n "$CC"; then
3130  ac_cv_prog_CC="$CC" # Let the user override the test.
3131else
3132as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133for as_dir in $PATH
3134do
3135  IFS=$as_save_IFS
3136  test -z "$as_dir" && as_dir=.
3137  for ac_exec_ext in '' $ac_executable_extensions; do
3138  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3139    ac_cv_prog_CC="${ac_tool_prefix}cc"
3140    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3141    break 2
3142  fi
3143done
3144done
3145
3146fi
3147fi
3148CC=$ac_cv_prog_CC
3149if test -n "$CC"; then
3150  echo "$as_me:$LINENO: result: $CC" >&5
3151echo "${ECHO_T}$CC" >&6
3152else
3153  echo "$as_me:$LINENO: result: no" >&5
3154echo "${ECHO_T}no" >&6
3155fi
3156
3157fi
3158if test -z "$ac_cv_prog_CC"; then
3159  ac_ct_CC=$CC
3160  # Extract the first word of "cc", so it can be a program name with args.
3161set dummy cc; ac_word=$2
3162echo "$as_me:$LINENO: checking for $ac_word" >&5
3163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3164if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3165  echo $ECHO_N "(cached) $ECHO_C" >&6
3166else
3167  if test -n "$ac_ct_CC"; then
3168  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3169else
3170as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171for as_dir in $PATH
3172do
3173  IFS=$as_save_IFS
3174  test -z "$as_dir" && as_dir=.
3175  for ac_exec_ext in '' $ac_executable_extensions; do
3176  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3177    ac_cv_prog_ac_ct_CC="cc"
3178    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179    break 2
3180  fi
3181done
3182done
3183
3184fi
3185fi
3186ac_ct_CC=$ac_cv_prog_ac_ct_CC
3187if test -n "$ac_ct_CC"; then
3188  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3189echo "${ECHO_T}$ac_ct_CC" >&6
3190else
3191  echo "$as_me:$LINENO: result: no" >&5
3192echo "${ECHO_T}no" >&6
3193fi
3194
3195  CC=$ac_ct_CC
3196else
3197  CC="$ac_cv_prog_CC"
3198fi
3199
3200fi
3201if test -z "$CC"; then
3202  # Extract the first word of "cc", so it can be a program name with args.
3203set dummy cc; ac_word=$2
3204echo "$as_me:$LINENO: checking for $ac_word" >&5
3205echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3206if test "${ac_cv_prog_CC+set}" = set; then
3207  echo $ECHO_N "(cached) $ECHO_C" >&6
3208else
3209  if test -n "$CC"; then
3210  ac_cv_prog_CC="$CC" # Let the user override the test.
3211else
3212  ac_prog_rejected=no
3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3214for as_dir in $PATH
3215do
3216  IFS=$as_save_IFS
3217  test -z "$as_dir" && as_dir=.
3218  for ac_exec_ext in '' $ac_executable_extensions; do
3219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3220    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3221       ac_prog_rejected=yes
3222       continue
3223     fi
3224    ac_cv_prog_CC="cc"
3225    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3226    break 2
3227  fi
3228done
3229done
3230
3231if test $ac_prog_rejected = yes; then
3232  # We found a bogon in the path, so make sure we never use it.
3233  set dummy $ac_cv_prog_CC
3234  shift
3235  if test $# != 0; then
3236    # We chose a different compiler from the bogus one.
3237    # However, it has the same basename, so the bogon will be chosen
3238    # first if we set CC to just the basename; use the full file name.
3239    shift
3240    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3241  fi
3242fi
3243fi
3244fi
3245CC=$ac_cv_prog_CC
3246if test -n "$CC"; then
3247  echo "$as_me:$LINENO: result: $CC" >&5
3248echo "${ECHO_T}$CC" >&6
3249else
3250  echo "$as_me:$LINENO: result: no" >&5
3251echo "${ECHO_T}no" >&6
3252fi
3253
3254fi
3255if test -z "$CC"; then
3256  if test -n "$ac_tool_prefix"; then
3257  for ac_prog in cl
3258  do
3259    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3260set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3261echo "$as_me:$LINENO: checking for $ac_word" >&5
3262echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3263if test "${ac_cv_prog_CC+set}" = set; then
3264  echo $ECHO_N "(cached) $ECHO_C" >&6
3265else
3266  if test -n "$CC"; then
3267  ac_cv_prog_CC="$CC" # Let the user override the test.
3268else
3269as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3270for as_dir in $PATH
3271do
3272  IFS=$as_save_IFS
3273  test -z "$as_dir" && as_dir=.
3274  for ac_exec_ext in '' $ac_executable_extensions; do
3275  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3276    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3277    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3278    break 2
3279  fi
3280done
3281done
3282
3283fi
3284fi
3285CC=$ac_cv_prog_CC
3286if test -n "$CC"; then
3287  echo "$as_me:$LINENO: result: $CC" >&5
3288echo "${ECHO_T}$CC" >&6
3289else
3290  echo "$as_me:$LINENO: result: no" >&5
3291echo "${ECHO_T}no" >&6
3292fi
3293
3294    test -n "$CC" && break
3295  done
3296fi
3297if test -z "$CC"; then
3298  ac_ct_CC=$CC
3299  for ac_prog in cl
3300do
3301  # Extract the first word of "$ac_prog", so it can be a program name with args.
3302set dummy $ac_prog; ac_word=$2
3303echo "$as_me:$LINENO: checking for $ac_word" >&5
3304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3306  echo $ECHO_N "(cached) $ECHO_C" >&6
3307else
3308  if test -n "$ac_ct_CC"; then
3309  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3310else
3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3312for as_dir in $PATH
3313do
3314  IFS=$as_save_IFS
3315  test -z "$as_dir" && as_dir=.
3316  for ac_exec_ext in '' $ac_executable_extensions; do
3317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3318    ac_cv_prog_ac_ct_CC="$ac_prog"
3319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3320    break 2
3321  fi
3322done
3323done
3324
3325fi
3326fi
3327ac_ct_CC=$ac_cv_prog_ac_ct_CC
3328if test -n "$ac_ct_CC"; then
3329  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3330echo "${ECHO_T}$ac_ct_CC" >&6
3331else
3332  echo "$as_me:$LINENO: result: no" >&5
3333echo "${ECHO_T}no" >&6
3334fi
3335
3336  test -n "$ac_ct_CC" && break
3337done
3338
3339  CC=$ac_ct_CC
3340fi
3341
3342fi
3343
3344
3345test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3346See \`config.log' for more details." >&5
3347echo "$as_me: error: no acceptable C compiler found in \$PATH
3348See \`config.log' for more details." >&2;}
3349   { (exit 1); exit 1; }; }
3350
3351# Provide some information about the compiler.
3352echo "$as_me:$LINENO:" \
3353     "checking for C compiler version" >&5
3354ac_compiler=`set X $ac_compile; echo $2`
3355{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3356  (eval $ac_compiler --version </dev/null >&5) 2>&5
3357  ac_status=$?
3358  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359  (exit $ac_status); }
3360{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3361  (eval $ac_compiler -v </dev/null >&5) 2>&5
3362  ac_status=$?
3363  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364  (exit $ac_status); }
3365{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3366  (eval $ac_compiler -V </dev/null >&5) 2>&5
3367  ac_status=$?
3368  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3369  (exit $ac_status); }
3370
3371echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3372echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3373if test "${ac_cv_c_compiler_gnu+set}" = set; then
3374  echo $ECHO_N "(cached) $ECHO_C" >&6
3375else
3376  cat >conftest.$ac_ext <<_ACEOF
3377/* confdefs.h.  */
3378_ACEOF
3379cat confdefs.h >>conftest.$ac_ext
3380cat >>conftest.$ac_ext <<_ACEOF
3381/* end confdefs.h.  */
3382
3383int
3384main ()
3385{
3386#ifndef __GNUC__
3387       choke me
3388#endif
3389
3390  ;
3391  return 0;
3392}
3393_ACEOF
3394rm -f conftest.$ac_objext
3395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3396  (eval $ac_compile) 2>conftest.er1
3397  ac_status=$?
3398  grep -v '^ *+' conftest.er1 >conftest.err
3399  rm -f conftest.er1
3400  cat conftest.err >&5
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); } &&
3403         { ac_try='test -z "$ac_c_werror_flag"
3404                         || test ! -s conftest.err'
3405  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3406  (eval $ac_try) 2>&5
3407  ac_status=$?
3408  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3409  (exit $ac_status); }; } &&
3410         { ac_try='test -s conftest.$ac_objext'
3411  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3412  (eval $ac_try) 2>&5
3413  ac_status=$?
3414  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415  (exit $ac_status); }; }; then
3416  ac_compiler_gnu=yes
3417else
3418  echo "$as_me: failed program was:" >&5
3419sed 's/^/| /' conftest.$ac_ext >&5
3420
3421ac_compiler_gnu=no
3422fi
3423rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3424ac_cv_c_compiler_gnu=$ac_compiler_gnu
3425
3426fi
3427echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3428echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3429GCC=`test $ac_compiler_gnu = yes && echo yes`
3430ac_test_CFLAGS=${CFLAGS+set}
3431ac_save_CFLAGS=$CFLAGS
3432CFLAGS="-g"
3433echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3434echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3435if test "${ac_cv_prog_cc_g+set}" = set; then
3436  echo $ECHO_N "(cached) $ECHO_C" >&6
3437else
3438  cat >conftest.$ac_ext <<_ACEOF
3439/* confdefs.h.  */
3440_ACEOF
3441cat confdefs.h >>conftest.$ac_ext
3442cat >>conftest.$ac_ext <<_ACEOF
3443/* end confdefs.h.  */
3444
3445int
3446main ()
3447{
3448
3449  ;
3450  return 0;
3451}
3452_ACEOF
3453rm -f conftest.$ac_objext
3454if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3455  (eval $ac_compile) 2>conftest.er1
3456  ac_status=$?
3457  grep -v '^ *+' conftest.er1 >conftest.err
3458  rm -f conftest.er1
3459  cat conftest.err >&5
3460  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3461  (exit $ac_status); } &&
3462         { ac_try='test -z "$ac_c_werror_flag"
3463                         || test ! -s conftest.err'
3464  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3465  (eval $ac_try) 2>&5
3466  ac_status=$?
3467  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3468  (exit $ac_status); }; } &&
3469         { ac_try='test -s conftest.$ac_objext'
3470  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3471  (eval $ac_try) 2>&5
3472  ac_status=$?
3473  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474  (exit $ac_status); }; }; then
3475  ac_cv_prog_cc_g=yes
3476else
3477  echo "$as_me: failed program was:" >&5
3478sed 's/^/| /' conftest.$ac_ext >&5
3479
3480ac_cv_prog_cc_g=no
3481fi
3482rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3483fi
3484echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3485echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3486if test "$ac_test_CFLAGS" = set; then
3487  CFLAGS=$ac_save_CFLAGS
3488elif test $ac_cv_prog_cc_g = yes; then
3489  if test "$GCC" = yes; then
3490    CFLAGS="-g -O2"
3491  else
3492    CFLAGS="-g"
3493  fi
3494else
3495  if test "$GCC" = yes; then
3496    CFLAGS="-O2"
3497  else
3498    CFLAGS=
3499  fi
3500fi
3501echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3502echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3503if test "${ac_cv_prog_cc_stdc+set}" = set; then
3504  echo $ECHO_N "(cached) $ECHO_C" >&6
3505else
3506  ac_cv_prog_cc_stdc=no
3507ac_save_CC=$CC
3508cat >conftest.$ac_ext <<_ACEOF
3509/* confdefs.h.  */
3510_ACEOF
3511cat confdefs.h >>conftest.$ac_ext
3512cat >>conftest.$ac_ext <<_ACEOF
3513/* end confdefs.h.  */
3514#include <stdarg.h>
3515#include <stdio.h>
3516#include <sys/types.h>
3517#include <sys/stat.h>
3518/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3519struct buf { int x; };
3520FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521static char *e (p, i)
3522     char **p;
3523     int i;
3524{
3525  return p[i];
3526}
3527static char *f (char * (*g) (char **, int), char **p, ...)
3528{
3529  char *s;
3530  va_list v;
3531  va_start (v,p);
3532  s = g (p, va_arg (v,int));
3533  va_end (v);
3534  return s;
3535}
3536
3537/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3538   function prototypes and stuff, but not '\xHH' hex character constants.
3539   These don't provoke an error unfortunately, instead are silently treated
3540   as 'x'.  The following induces an error, until -std1 is added to get
3541   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3542   array size at least.  It's necessary to write '\x00'==0 to get something
3543   that's true only with -std1.  */
3544int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3545
3546int test (int i, double x);
3547struct s1 {int (*f) (int a);};
3548struct s2 {int (*f) (double a);};
3549int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3550int argc;
3551char **argv;
3552int
3553main ()
3554{
3555return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3556  ;
3557  return 0;
3558}
3559_ACEOF
3560# Don't try gcc -ansi; that turns off useful extensions and
3561# breaks some systems' header files.
3562# AIX                   -qlanglvl=ansi
3563# Ultrix and OSF/1      -std1
3564# HP-UX 10.20 and later -Ae
3565# HP-UX older versions  -Aa -D_HPUX_SOURCE
3566# SVR4                  -Xc -D__EXTENSIONS__
3567for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568do
3569  CC="$ac_save_CC $ac_arg"
3570  rm -f conftest.$ac_objext
3571if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3572  (eval $ac_compile) 2>conftest.er1
3573  ac_status=$?
3574  grep -v '^ *+' conftest.er1 >conftest.err
3575  rm -f conftest.er1
3576  cat conftest.err >&5
3577  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578  (exit $ac_status); } &&
3579         { ac_try='test -z "$ac_c_werror_flag"
3580                         || test ! -s conftest.err'
3581  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3582  (eval $ac_try) 2>&5
3583  ac_status=$?
3584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3585  (exit $ac_status); }; } &&
3586         { ac_try='test -s conftest.$ac_objext'
3587  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3588  (eval $ac_try) 2>&5
3589  ac_status=$?
3590  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591  (exit $ac_status); }; }; then
3592  ac_cv_prog_cc_stdc=$ac_arg
3593break
3594else
3595  echo "$as_me: failed program was:" >&5
3596sed 's/^/| /' conftest.$ac_ext >&5
3597
3598fi
3599rm -f conftest.err conftest.$ac_objext
3600done
3601rm -f conftest.$ac_ext conftest.$ac_objext
3602CC=$ac_save_CC
3603
3604fi
3605
3606case "x$ac_cv_prog_cc_stdc" in
3607  x|xno)
3608    echo "$as_me:$LINENO: result: none needed" >&5
3609echo "${ECHO_T}none needed" >&6 ;;
3610  *)
3611    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3612echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3613    CC="$CC $ac_cv_prog_cc_stdc" ;;
3614esac
3615
3616# Some people use a C++ compiler to compile C.  Since we use `exit',
3617# in C++ we need to declare it.  In case someone uses the same compiler
3618# for both compiling C and C++ we need to have the C++ compiler decide
3619# the declaration of exit, since it's the most demanding environment.
3620cat >conftest.$ac_ext <<_ACEOF
3621#ifndef __cplusplus
3622  choke me
3623#endif
3624_ACEOF
3625rm -f conftest.$ac_objext
3626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3627  (eval $ac_compile) 2>conftest.er1
3628  ac_status=$?
3629  grep -v '^ *+' conftest.er1 >conftest.err
3630  rm -f conftest.er1
3631  cat conftest.err >&5
3632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3633  (exit $ac_status); } &&
3634         { ac_try='test -z "$ac_c_werror_flag"
3635                         || test ! -s conftest.err'
3636  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3637  (eval $ac_try) 2>&5
3638  ac_status=$?
3639  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3640  (exit $ac_status); }; } &&
3641         { ac_try='test -s conftest.$ac_objext'
3642  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3643  (eval $ac_try) 2>&5
3644  ac_status=$?
3645  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3646  (exit $ac_status); }; }; then
3647  for ac_declaration in \
3648   '' \
3649   'extern "C" void std::exit (int) throw (); using std::exit;' \
3650   'extern "C" void std::exit (int); using std::exit;' \
3651   'extern "C" void exit (int) throw ();' \
3652   'extern "C" void exit (int);' \
3653   'void exit (int);'
3654do
3655  cat >conftest.$ac_ext <<_ACEOF
3656/* confdefs.h.  */
3657_ACEOF
3658cat confdefs.h >>conftest.$ac_ext
3659cat >>conftest.$ac_ext <<_ACEOF
3660/* end confdefs.h.  */
3661$ac_declaration
3662#include <stdlib.h>
3663int
3664main ()
3665{
3666exit (42);
3667  ;
3668  return 0;
3669}
3670_ACEOF
3671rm -f conftest.$ac_objext
3672if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3673  (eval $ac_compile) 2>conftest.er1
3674  ac_status=$?
3675  grep -v '^ *+' conftest.er1 >conftest.err
3676  rm -f conftest.er1
3677  cat conftest.err >&5
3678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3679  (exit $ac_status); } &&
3680         { ac_try='test -z "$ac_c_werror_flag"
3681                         || test ! -s conftest.err'
3682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3683  (eval $ac_try) 2>&5
3684  ac_status=$?
3685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686  (exit $ac_status); }; } &&
3687         { ac_try='test -s conftest.$ac_objext'
3688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3689  (eval $ac_try) 2>&5
3690  ac_status=$?
3691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3692  (exit $ac_status); }; }; then
3693  :
3694else
3695  echo "$as_me: failed program was:" >&5
3696sed 's/^/| /' conftest.$ac_ext >&5
3697
3698continue
3699fi
3700rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3701  cat >conftest.$ac_ext <<_ACEOF
3702/* confdefs.h.  */
3703_ACEOF
3704cat confdefs.h >>conftest.$ac_ext
3705cat >>conftest.$ac_ext <<_ACEOF
3706/* end confdefs.h.  */
3707$ac_declaration
3708int
3709main ()
3710{
3711exit (42);
3712  ;
3713  return 0;
3714}
3715_ACEOF
3716rm -f conftest.$ac_objext
3717if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3718  (eval $ac_compile) 2>conftest.er1
3719  ac_status=$?
3720  grep -v '^ *+' conftest.er1 >conftest.err
3721  rm -f conftest.er1
3722  cat conftest.err >&5
3723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3724  (exit $ac_status); } &&
3725         { ac_try='test -z "$ac_c_werror_flag"
3726                         || test ! -s conftest.err'
3727  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3728  (eval $ac_try) 2>&5
3729  ac_status=$?
3730  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3731  (exit $ac_status); }; } &&
3732         { ac_try='test -s conftest.$ac_objext'
3733  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3734  (eval $ac_try) 2>&5
3735  ac_status=$?
3736  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737  (exit $ac_status); }; }; then
3738  break
3739else
3740  echo "$as_me: failed program was:" >&5
3741sed 's/^/| /' conftest.$ac_ext >&5
3742
3743fi
3744rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3745done
3746rm -f conftest*
3747if test -n "$ac_declaration"; then
3748  echo '#ifdef __cplusplus' >>confdefs.h
3749  echo $ac_declaration      >>confdefs.h
3750  echo '#endif'             >>confdefs.h
3751fi
3752
3753else
3754  echo "$as_me: failed program was:" >&5
3755sed 's/^/| /' conftest.$ac_ext >&5
3756
3757fi
3758rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3759ac_ext=c
3760ac_cpp='$CPP $CPPFLAGS'
3761ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3762ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3763ac_compiler_gnu=$ac_cv_c_compiler_gnu
3764
3765depcc="$CC"   am_compiler_list=
3766
3767echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3768echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3769if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3770  echo $ECHO_N "(cached) $ECHO_C" >&6
3771else
3772  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3773  # We make a subdir and do the tests there.  Otherwise we can end up
3774  # making bogus files that we don't know about and never remove.  For
3775  # instance it was reported that on HP-UX the gcc test will end up
3776  # making a dummy file named `D' -- because `-MD' means `put the output
3777  # in D'.
3778  mkdir conftest.dir
3779  # Copy depcomp to subdir because otherwise we won't find it if we're
3780  # using a relative directory.
3781  cp "$am_depcomp" conftest.dir
3782  cd conftest.dir
3783  # We will build objects and dependencies in a subdirectory because
3784  # it helps to detect inapplicable dependency modes.  For instance
3785  # both Tru64's cc and ICC support -MD to output dependencies as a
3786  # side effect of compilation, but ICC will put the dependencies in
3787  # the current directory while Tru64 will put them in the object
3788  # directory.
3789  mkdir sub
3790
3791  am_cv_CC_dependencies_compiler_type=none
3792  if test "$am_compiler_list" = ""; then
3793     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3794  fi
3795  for depmode in $am_compiler_list; do
3796    # Setup a source with many dependencies, because some compilers
3797    # like to wrap large dependency lists on column 80 (with \), and
3798    # we should not choose a depcomp mode which is confused by this.
3799    #
3800    # We need to recreate these files for each test, as the compiler may
3801    # overwrite some of them when testing with obscure command lines.
3802    # This happens at least with the AIX C compiler.
3803    : > sub/conftest.c
3804    for i in 1 2 3 4 5 6; do
3805      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3806      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3807      # Solaris 8's {/usr,}/bin/sh.
3808      touch sub/conftst$i.h
3809    done
3810    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3811
3812    case $depmode in
3813    nosideeffect)
3814      # after this tag, mechanisms are not by side-effect, so they'll
3815      # only be used when explicitly requested
3816      if test "x$enable_dependency_tracking" = xyes; then
3817        continue
3818      else
3819        break
3820      fi
3821      ;;
3822    none) break ;;
3823    esac
3824    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3825    # mode.  It turns out that the SunPro C++ compiler does not properly
3826    # handle `-M -o', and we need to detect this.
3827    if depmode=$depmode \
3828       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3829       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3830       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3831         >/dev/null 2>conftest.err &&
3832       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3833       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3834       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3835      # icc doesn't choke on unknown options, it will just issue warnings
3836      # or remarks (even with -Werror).  So we grep stderr for any message
3837      # that says an option was ignored or not supported.
3838      # When given -MP, icc 7.0 and 7.1 complain thusly:
3839      #   icc: Command line warning: ignoring option '-M'; no argument required
3840      # The diagnosis changed in icc 8.0:
3841      #   icc: Command line remark: option '-MP' not supported
3842      if (grep 'ignoring option' conftest.err ||
3843          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3844        am_cv_CC_dependencies_compiler_type=$depmode
3845        break
3846      fi
3847    fi
3848  done
3849
3850  cd ..
3851  rm -rf conftest.dir
3852else
3853  am_cv_CC_dependencies_compiler_type=none
3854fi
3855
3856fi
3857echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3858echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3859CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3860
3861
3862
3863if
3864  test "x$enable_dependency_tracking" != xno \
3865  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3866  am__fastdepCC_TRUE=
3867  am__fastdepCC_FALSE='#'
3868else
3869  am__fastdepCC_TRUE='#'
3870  am__fastdepCC_FALSE=
3871fi
3872
3873
3874
3875ac_ext=c
3876ac_cpp='$CPP $CPPFLAGS'
3877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3879ac_compiler_gnu=$ac_cv_c_compiler_gnu
3880
3881if test x"" = x; then
3882  hdr="#include <dlfcn.h>"
3883else
3884  hdr=""
3885fi
3886
3887for ac_header in dlfcn.h
3888do
3889as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3890echo "$as_me:$LINENO: checking for $ac_header" >&5
3891echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3892if eval "test \"\${$as_ac_Header+set}\" = set"; then
3893  echo $ECHO_N "(cached) $ECHO_C" >&6
3894else
3895  cat >conftest.$ac_ext <<_ACEOF
3896/* confdefs.h.  */
3897_ACEOF
3898cat confdefs.h >>conftest.$ac_ext
3899cat >>conftest.$ac_ext <<_ACEOF
3900/* end confdefs.h.  */
3901$hdr
3902
3903#include <$ac_header>
3904_ACEOF
3905rm -f conftest.$ac_objext
3906if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3907  (eval $ac_compile) 2>conftest.er1
3908  ac_status=$?
3909  grep -v '^ *+' conftest.er1 >conftest.err
3910  rm -f conftest.er1
3911  cat conftest.err >&5
3912  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913  (exit $ac_status); } &&
3914         { ac_try='test -z "$ac_c_werror_flag"
3915                         || test ! -s conftest.err'
3916  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3917  (eval $ac_try) 2>&5
3918  ac_status=$?
3919  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920  (exit $ac_status); }; } &&
3921         { ac_try='test -s conftest.$ac_objext'
3922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3923  (eval $ac_try) 2>&5
3924  ac_status=$?
3925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3926  (exit $ac_status); }; }; then
3927  eval "$as_ac_Header=yes"
3928else
3929  echo "$as_me: failed program was:" >&5
3930sed 's/^/| /' conftest.$ac_ext >&5
3931
3932eval "$as_ac_Header=no"
3933fi
3934rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3935fi
3936echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3937echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3938if test `eval echo '${'$as_ac_Header'}'` = yes; then
3939  cat >>confdefs.h <<_ACEOF
3940#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3941_ACEOF
3942
3943fi
3944
3945done
3946
3947
3948ac_ext=cc
3949ac_cpp='$CXXCPP $CPPFLAGS'
3950ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3951ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3953
3954
3955# Check whether --enable-shared or --disable-shared was given.
3956if test "${enable_shared+set}" = set; then
3957  enableval="$enable_shared"
3958  p=${PACKAGE-default}
3959    case $enableval in
3960    yes) enable_shared=yes ;;
3961    no) enable_shared=no ;;
3962    *)
3963      enable_shared=no
3964      # Look at the argument we got.  We use all the common list separators.
3965      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3966      for pkg in $enableval; do
3967        IFS="$lt_save_ifs"
3968        if test "X$pkg" = "X$p"; then
3969          enable_shared=yes
3970        fi
3971      done
3972      IFS="$lt_save_ifs"
3973      ;;
3974    esac
3975else
3976  enable_shared=yes
3977fi;
3978
3979# Check whether --enable-fast-install or --disable-fast-install was given.
3980if test "${enable_fast_install+set}" = set; then
3981  enableval="$enable_fast_install"
3982  p=${PACKAGE-default}
3983    case $enableval in
3984    yes) enable_fast_install=yes ;;
3985    no) enable_fast_install=no ;;
3986    *)
3987      enable_fast_install=no
3988      # Look at the argument we got.  We use all the common list separators.
3989      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3990      for pkg in $enableval; do
3991        IFS="$lt_save_ifs"
3992        if test "X$pkg" = "X$p"; then
3993          enable_fast_install=yes
3994        fi
3995      done
3996      IFS="$lt_save_ifs"
3997      ;;
3998    esac
3999else
4000  enable_fast_install=yes
4001fi;
4002
4003echo "$as_me:$LINENO: checking host system type" >&5
4004echo $ECHO_N "checking host system type... $ECHO_C" >&6
4005if test "${ac_cv_host+set}" = set; then
4006  echo $ECHO_N "(cached) $ECHO_C" >&6
4007else
4008  ac_cv_host_alias=$host_alias
4009test -z "$ac_cv_host_alias" &&
4010  ac_cv_host_alias=$ac_cv_build_alias
4011ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4012  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4013echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4014   { (exit 1); exit 1; }; }
4015
4016fi
4017echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4018echo "${ECHO_T}$ac_cv_host" >&6
4019host=$ac_cv_host
4020host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4021host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4022host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4023
4024
4025echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4026echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4027if test "${lt_cv_path_SED+set}" = set; then
4028  echo $ECHO_N "(cached) $ECHO_C" >&6
4029else
4030  # Loop through the user's path and test for sed and gsed.
4031# Then use that list of sed's as ones to test for truncation.
4032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033for as_dir in $PATH
4034do
4035  IFS=$as_save_IFS
4036  test -z "$as_dir" && as_dir=.
4037  for lt_ac_prog in sed gsed; do
4038    for ac_exec_ext in '' $ac_executable_extensions; do
4039      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4040        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4041      fi
4042    done
4043  done
4044done
4045lt_ac_max=0
4046lt_ac_count=0
4047# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4048# along with /bin/sed that truncates output.
4049for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4050  test ! -f $lt_ac_sed && continue
4051  cat /dev/null > conftest.in
4052  lt_ac_count=0
4053  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4054  # Check for GNU sed and select it if it is found.
4055  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4056    lt_cv_path_SED=$lt_ac_sed
4057    break
4058  fi
4059  while true; do
4060    cat conftest.in conftest.in >conftest.tmp
4061    mv conftest.tmp conftest.in
4062    cp conftest.in conftest.nl
4063    echo >>conftest.nl
4064    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4065    cmp -s conftest.out conftest.nl || break
4066    # 10000 chars as input seems more than enough
4067    test $lt_ac_count -gt 10 && break
4068    lt_ac_count=`expr $lt_ac_count + 1`
4069    if test $lt_ac_count -gt $lt_ac_max; then
4070      lt_ac_max=$lt_ac_count
4071      lt_cv_path_SED=$lt_ac_sed
4072    fi
4073  done
4074done
4075
4076fi
4077
4078SED=$lt_cv_path_SED
4079echo "$as_me:$LINENO: result: $SED" >&5
4080echo "${ECHO_T}$SED" >&6
4081
4082
4083# Check whether --with-gnu-ld or --without-gnu-ld was given.
4084if test "${with_gnu_ld+set}" = set; then
4085  withval="$with_gnu_ld"
4086  test "$withval" = no || with_gnu_ld=yes
4087else
4088  with_gnu_ld=no
4089fi;
4090ac_prog=ld
4091if test "$GCC" = yes; then
4092  # Check if gcc -print-prog-name=ld gives a path.
4093  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4094echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4095  case $host in
4096  *-*-mingw*)
4097    # gcc leaves a trailing carriage return which upsets mingw
4098    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4099  *)
4100    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4101  esac
4102  case $ac_prog in
4103    # Accept absolute paths.
4104    [\\/]* | ?:[\\/]*)
4105      re_direlt='/[^/][^/]*/\.\./'
4106      # Canonicalize the pathname of ld
4107      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4108      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4109        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4110      done
4111      test -z "$LD" && LD="$ac_prog"
4112      ;;
4113  "")
4114    # If it fails, then pretend we aren't using GCC.
4115    ac_prog=ld
4116    ;;
4117  *)
4118    # If it is relative, then search for the first ld in PATH.
4119    with_gnu_ld=unknown
4120    ;;
4121  esac
4122elif test "$with_gnu_ld" = yes; then
4123  echo "$as_me:$LINENO: checking for GNU ld" >&5
4124echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4125else
4126  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4127echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4128fi
4129if test "${lt_cv_path_LD+set}" = set; then
4130  echo $ECHO_N "(cached) $ECHO_C" >&6
4131else
4132  if test -z "$LD"; then
4133  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4134  for ac_dir in $PATH; do
4135    IFS="$lt_save_ifs"
4136    test -z "$ac_dir" && ac_dir=.
4137    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4138      lt_cv_path_LD="$ac_dir/$ac_prog"
4139      # Check to see if the program is GNU ld.  I'd rather use --version,
4140      # but apparently some variants of GNU ld only accept -v.
4141      # Break only if it was the GNU/non-GNU ld that we prefer.
4142      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4143      *GNU* | *'with BFD'*)
4144        test "$with_gnu_ld" != no && break
4145        ;;
4146      *)
4147        test "$with_gnu_ld" != yes && break
4148        ;;
4149      esac
4150    fi
4151  done
4152  IFS="$lt_save_ifs"
4153else
4154  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4155fi
4156fi
4157
4158LD="$lt_cv_path_LD"
4159if test -n "$LD"; then
4160  echo "$as_me:$LINENO: result: $LD" >&5
4161echo "${ECHO_T}$LD" >&6
4162else
4163  echo "$as_me:$LINENO: result: no" >&5
4164echo "${ECHO_T}no" >&6
4165fi
4166test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4167echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4168   { (exit 1); exit 1; }; }
4169echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4170echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4171if test "${lt_cv_prog_gnu_ld+set}" = set; then
4172  echo $ECHO_N "(cached) $ECHO_C" >&6
4173else
4174  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4175case `$LD -v 2>&1 </dev/null` in
4176*GNU* | *'with BFD'*)
4177  lt_cv_prog_gnu_ld=yes
4178  ;;
4179*)
4180  lt_cv_prog_gnu_ld=no
4181  ;;
4182esac
4183fi
4184echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4185echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4186with_gnu_ld=$lt_cv_prog_gnu_ld
4187
4188
4189echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4190echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4191if test "${lt_cv_ld_reload_flag+set}" = set; then
4192  echo $ECHO_N "(cached) $ECHO_C" >&6
4193else
4194  lt_cv_ld_reload_flag='-r'
4195fi
4196echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4197echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4198reload_flag=$lt_cv_ld_reload_flag
4199case $reload_flag in
4200"" | " "*) ;;
4201*) reload_flag=" $reload_flag" ;;
4202esac
4203reload_cmds='$LD$reload_flag -o $output$reload_objs'
4204case $host_os in
4205  darwin*)
4206    if test "$GCC" = yes; then
4207      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4208    else
4209      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4210    fi
4211    ;;
4212esac
4213
4214echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4215echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4216if test "${lt_cv_path_NM+set}" = set; then
4217  echo $ECHO_N "(cached) $ECHO_C" >&6
4218else
4219  if test -n "$NM"; then
4220  # Let the user override the test.
4221  lt_cv_path_NM="$NM"
4222else
4223  lt_nm_to_check="${ac_tool_prefix}nm"
4224  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4225    lt_nm_to_check="$lt_nm_to_check nm"
4226  fi
4227  for lt_tmp_nm in $lt_nm_to_check; do
4228    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4229    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4230      IFS="$lt_save_ifs"
4231      test -z "$ac_dir" && ac_dir=.
4232      tmp_nm="$ac_dir/$lt_tmp_nm"
4233      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4234        # Check to see if the nm accepts a BSD-compat flag.
4235        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4236        #   nm: unknown option "B" ignored
4237        # Tru64's nm complains that /dev/null is an invalid object file
4238        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4239        */dev/null* | *'Invalid file or object type'*)
4240          lt_cv_path_NM="$tmp_nm -B"
4241          break
4242          ;;
4243        *)
4244          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4245          */dev/null*)
4246            lt_cv_path_NM="$tmp_nm -p"
4247            break
4248            ;;
4249          *)
4250            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4251            continue # so that we can try to find one that supports BSD flags
4252            ;;
4253          esac
4254          ;;
4255        esac
4256      fi
4257    done
4258    IFS="$lt_save_ifs"
4259  done
4260  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4261fi
4262fi
4263echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4264echo "${ECHO_T}$lt_cv_path_NM" >&6
4265NM="$lt_cv_path_NM"
4266
4267echo "$as_me:$LINENO: checking whether ln -s works" >&5
4268echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4269LN_S=$as_ln_s
4270if test "$LN_S" = "ln -s"; then
4271  echo "$as_me:$LINENO: result: yes" >&5
4272echo "${ECHO_T}yes" >&6
4273else
4274  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4275echo "${ECHO_T}no, using $LN_S" >&6
4276fi
4277
4278echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4279echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4280if test "${lt_cv_deplibs_check_method+set}" = set; then
4281  echo $ECHO_N "(cached) $ECHO_C" >&6
4282else
4283  lt_cv_file_magic_cmd='$MAGIC_CMD'
4284lt_cv_file_magic_test_file=
4285lt_cv_deplibs_check_method='unknown'
4286# Need to set the preceding variable on all platforms that support
4287# interlibrary dependencies.
4288# 'none' -- dependencies not supported.
4289# `unknown' -- same as none, but documents that we really don't know.
4290# 'pass_all' -- all dependencies passed with no checks.
4291# 'test_compile' -- check by making test program.
4292# 'file_magic [[regex]]' -- check by looking for files in library path
4293# which responds to the $file_magic_cmd with a given extended regex.
4294# If you have `file' or equivalent on your system and you're not sure
4295# whether `pass_all' will *always* work, you probably want this one.
4296
4297case $host_os in
4298aix4* | aix5*)
4299  lt_cv_deplibs_check_method=pass_all
4300  ;;
4301
4302beos*)
4303  lt_cv_deplibs_check_method=pass_all
4304  ;;
4305
4306bsdi[45]*)
4307  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4308  lt_cv_file_magic_cmd='/usr/bin/file -L'
4309  lt_cv_file_magic_test_file=/shlib/libc.so
4310  ;;
4311
4312cygwin*)
4313  # func_win32_libid is a shell function defined in ltmain.sh
4314  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4315  lt_cv_file_magic_cmd='func_win32_libid'
4316  ;;
4317
4318mingw* | pw32*)
4319  # Base MSYS/MinGW do not provide the 'file' command needed by
4320  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4321  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4322  lt_cv_file_magic_cmd='$OBJDUMP -f'
4323  ;;
4324
4325darwin* | rhapsody*)
4326  lt_cv_deplibs_check_method=pass_all
4327  ;;
4328
4329freebsd* | kfreebsd*-gnu | dragonfly*)
4330  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4331    case $host_cpu in
4332    i*86 )
4333      # Not sure whether the presence of OpenBSD here was a mistake.
4334      # Let's accept both of them until this is cleared up.
4335      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4336      lt_cv_file_magic_cmd=/usr/bin/file
4337      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4338      ;;
4339    esac
4340  else
4341    lt_cv_deplibs_check_method=pass_all
4342  fi
4343  ;;
4344
4345gnu*)
4346  lt_cv_deplibs_check_method=pass_all
4347  ;;
4348
4349hpux10.20* | hpux11*)
4350  lt_cv_file_magic_cmd=/usr/bin/file
4351  case $host_cpu in
4352  ia64*)
4353    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4354    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4355    ;;
4356  hppa*64*)
4357    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]'
4358    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4359    ;;
4360  *)
4361    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4362    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4363    ;;
4364  esac
4365  ;;
4366
4367interix3*)
4368  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4369  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4370  ;;
4371
4372irix5* | irix6* | nonstopux*)
4373  case $LD in
4374  *-32|*"-32 ") libmagic=32-bit;;
4375  *-n32|*"-n32 ") libmagic=N32;;
4376  *-64|*"-64 ") libmagic=64-bit;;
4377  *) libmagic=never-match;;
4378  esac
4379  lt_cv_deplibs_check_method=pass_all
4380  ;;
4381
4382# This must be Linux ELF.
4383linux*)
4384  lt_cv_deplibs_check_method=pass_all
4385  ;;
4386
4387netbsd*)
4388  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4389    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4390  else
4391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4392  fi
4393  ;;
4394
4395newos6*)
4396  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4397  lt_cv_file_magic_cmd=/usr/bin/file
4398  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4399  ;;
4400
4401nto-qnx*)
4402  lt_cv_deplibs_check_method=unknown
4403  ;;
4404
4405openbsd*)
4406  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4407    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4408  else
4409    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4410  fi
4411  ;;
4412
4413osf3* | osf4* | osf5*)
4414  lt_cv_deplibs_check_method=pass_all
4415  ;;
4416
4417solaris*)
4418  lt_cv_deplibs_check_method=pass_all
4419  ;;
4420
4421sysv4 | sysv4.3*)
4422  case $host_vendor in
4423  motorola)
4424    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]'
4425    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4426    ;;
4427  ncr)
4428    lt_cv_deplibs_check_method=pass_all
4429    ;;
4430  sequent)
4431    lt_cv_file_magic_cmd='/bin/file'
4432    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4433    ;;
4434  sni)
4435    lt_cv_file_magic_cmd='/bin/file'
4436    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4437    lt_cv_file_magic_test_file=/lib/libc.so
4438    ;;
4439  siemens)
4440    lt_cv_deplibs_check_method=pass_all
4441    ;;
4442  pc)
4443    lt_cv_deplibs_check_method=pass_all
4444    ;;
4445  esac
4446  ;;
4447
4448sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4449  lt_cv_deplibs_check_method=pass_all
4450  ;;
4451esac
4452
4453fi
4454echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4455echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4456file_magic_cmd=$lt_cv_file_magic_cmd
4457deplibs_check_method=$lt_cv_deplibs_check_method
4458test -z "$deplibs_check_method" && deplibs_check_method=unknown
4459
4460
4461
4462
4463# If no C compiler was specified, use CC.
4464LTCC=${LTCC-"$CC"}
4465
4466# If no C compiler flags were specified, use CFLAGS.
4467LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4468
4469# Allow CC to be a program name with arguments.
4470compiler=$CC
4471
4472# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4473if test "${enable_libtool_lock+set}" = set; then
4474  enableval="$enable_libtool_lock"
4475
4476fi;
4477test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4478
4479# Some flags need to be propagated to the compiler or linker for good
4480# libtool support.
4481case $host in
4482ia64-*-hpux*)
4483  # Find out which ABI we are using.
4484  echo 'int i;' > conftest.$ac_ext
4485  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4486  (eval $ac_compile) 2>&5
4487  ac_status=$?
4488  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4489  (exit $ac_status); }; then
4490    case `/usr/bin/file conftest.$ac_objext` in
4491    *ELF-32*)
4492      HPUX_IA64_MODE="32"
4493      ;;
4494    *ELF-64*)
4495      HPUX_IA64_MODE="64"
4496      ;;
4497    esac
4498  fi
4499  rm -rf conftest*
4500  ;;
4501*-*-irix6*)
4502  # Find out which ABI we are using.
4503  echo '#line 4503 "configure"' > conftest.$ac_ext
4504  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4505  (eval $ac_compile) 2>&5
4506  ac_status=$?
4507  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4508  (exit $ac_status); }; then
4509   if test "$lt_cv_prog_gnu_ld" = yes; then
4510    case `/usr/bin/file conftest.$ac_objext` in
4511    *32-bit*)
4512      LD="${LD-ld} -melf32bsmip"
4513      ;;
4514    *N32*)
4515      LD="${LD-ld} -melf32bmipn32"
4516      ;;
4517    *64-bit*)
4518      LD="${LD-ld} -melf64bmip"
4519      ;;
4520    esac
4521   else
4522    case `/usr/bin/file conftest.$ac_objext` in
4523    *32-bit*)
4524      LD="${LD-ld} -32"
4525      ;;
4526    *N32*)
4527      LD="${LD-ld} -n32"
4528      ;;
4529    *64-bit*)
4530      LD="${LD-ld} -64"
4531      ;;
4532    esac
4533   fi
4534  fi
4535  rm -rf conftest*
4536  ;;
4537
4538x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4539  # Find out which ABI we are using.
4540  echo 'int i;' > conftest.$ac_ext
4541  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4542  (eval $ac_compile) 2>&5
4543  ac_status=$?
4544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4545  (exit $ac_status); }; then
4546    case `/usr/bin/file conftest.o` in
4547    *32-bit*)
4548      case $host in
4549        x86_64-*linux*)
4550          LD="${LD-ld} -m elf_i386"
4551          ;;
4552        ppc64-*linux*|powerpc64-*linux*)
4553          LD="${LD-ld} -m elf32ppclinux"
4554          ;;
4555        s390x-*linux*)
4556          LD="${LD-ld} -m elf_s390"
4557          ;;
4558        sparc64-*linux*)
4559          LD="${LD-ld} -m elf32_sparc"
4560          ;;
4561      esac
4562      ;;
4563    *64-bit*)
4564      case $host in
4565        x86_64-*linux*)
4566          LD="${LD-ld} -m elf_x86_64"
4567          ;;
4568        ppc*-*linux*|powerpc*-*linux*)
4569          LD="${LD-ld} -m elf64ppc"
4570          ;;
4571        s390*-*linux*)
4572          LD="${LD-ld} -m elf64_s390"
4573          ;;
4574        sparc*-*linux*)
4575          LD="${LD-ld} -m elf64_sparc"
4576          ;;
4577      esac
4578      ;;
4579    esac
4580  fi
4581  rm -rf conftest*
4582  ;;
4583
4584*-*-sco3.2v5*)
4585  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4586  SAVE_CFLAGS="$CFLAGS"
4587  CFLAGS="$CFLAGS -belf"
4588  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4589echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4590if test "${lt_cv_cc_needs_belf+set}" = set; then
4591  echo $ECHO_N "(cached) $ECHO_C" >&6
4592else
4593  ac_ext=c
4594ac_cpp='$CPP $CPPFLAGS'
4595ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4596ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4597ac_compiler_gnu=$ac_cv_c_compiler_gnu
4598
4599     cat >conftest.$ac_ext <<_ACEOF
4600/* confdefs.h.  */
4601_ACEOF
4602cat confdefs.h >>conftest.$ac_ext
4603cat >>conftest.$ac_ext <<_ACEOF
4604/* end confdefs.h.  */
4605
4606int
4607main ()
4608{
4609
4610  ;
4611  return 0;
4612}
4613_ACEOF
4614rm -f conftest.$ac_objext conftest$ac_exeext
4615if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4616  (eval $ac_link) 2>conftest.er1
4617  ac_status=$?
4618  grep -v '^ *+' conftest.er1 >conftest.err
4619  rm -f conftest.er1
4620  cat conftest.err >&5
4621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622  (exit $ac_status); } &&
4623         { ac_try='test -z "$ac_c_werror_flag"
4624                         || test ! -s conftest.err'
4625  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626  (eval $ac_try) 2>&5
4627  ac_status=$?
4628  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629  (exit $ac_status); }; } &&
4630         { ac_try='test -s conftest$ac_exeext'
4631  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4632  (eval $ac_try) 2>&5
4633  ac_status=$?
4634  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4635  (exit $ac_status); }; }; then
4636  lt_cv_cc_needs_belf=yes
4637else
4638  echo "$as_me: failed program was:" >&5
4639sed 's/^/| /' conftest.$ac_ext >&5
4640
4641lt_cv_cc_needs_belf=no
4642fi
4643rm -f conftest.err conftest.$ac_objext \
4644      conftest$ac_exeext conftest.$ac_ext
4645     ac_ext=c
4646ac_cpp='$CPP $CPPFLAGS'
4647ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4648ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4649ac_compiler_gnu=$ac_cv_c_compiler_gnu
4650
4651fi
4652echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4653echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4654  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4655    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4656    CFLAGS="$SAVE_CFLAGS"
4657  fi
4658  ;;
4659sparc*-*solaris*)
4660  # Find out which ABI we are using.
4661  echo 'int i;' > conftest.$ac_ext
4662  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4663  (eval $ac_compile) 2>&5
4664  ac_status=$?
4665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666  (exit $ac_status); }; then
4667    case `/usr/bin/file conftest.o` in
4668    *64-bit*)
4669      case $lt_cv_prog_gnu_ld in
4670      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4671      *)    LD="${LD-ld} -64" ;;
4672      esac
4673      ;;
4674    esac
4675  fi
4676  rm -rf conftest*
4677  ;;
4678
4679
4680esac
4681
4682need_locks="$enable_libtool_lock"
4683
4684
4685ac_ext=c
4686ac_cpp='$CPP $CPPFLAGS'
4687ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4688ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4689ac_compiler_gnu=$ac_cv_c_compiler_gnu
4690echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4691echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4692# On Suns, sometimes $CPP names a directory.
4693if test -n "$CPP" && test -d "$CPP"; then
4694  CPP=
4695fi
4696if test -z "$CPP"; then
4697  if test "${ac_cv_prog_CPP+set}" = set; then
4698  echo $ECHO_N "(cached) $ECHO_C" >&6
4699else
4700      # Double quotes because CPP needs to be expanded
4701    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4702    do
4703      ac_preproc_ok=false
4704for ac_c_preproc_warn_flag in '' yes
4705do
4706  # Use a header file that comes with gcc, so configuring glibc
4707  # with a fresh cross-compiler works.
4708  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4709  # <limits.h> exists even on freestanding compilers.
4710  # On the NeXT, cc -E runs the code through the compiler's parser,
4711  # not just through cpp. "Syntax error" is here to catch this case.
4712  cat >conftest.$ac_ext <<_ACEOF
4713/* confdefs.h.  */
4714_ACEOF
4715cat confdefs.h >>conftest.$ac_ext
4716cat >>conftest.$ac_ext <<_ACEOF
4717/* end confdefs.h.  */
4718#ifdef __STDC__
4719# include <limits.h>
4720#else
4721# include <assert.h>
4722#endif
4723                     Syntax error
4724_ACEOF
4725if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4726  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4727  ac_status=$?
4728  grep -v '^ *+' conftest.er1 >conftest.err
4729  rm -f conftest.er1
4730  cat conftest.err >&5
4731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4732  (exit $ac_status); } >/dev/null; then
4733  if test -s conftest.err; then
4734    ac_cpp_err=$ac_c_preproc_warn_flag
4735    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4736  else
4737    ac_cpp_err=
4738  fi
4739else
4740  ac_cpp_err=yes
4741fi
4742if test -z "$ac_cpp_err"; then
4743  :
4744else
4745  echo "$as_me: failed program was:" >&5
4746sed 's/^/| /' conftest.$ac_ext >&5
4747
4748  # Broken: fails on valid input.
4749continue
4750fi
4751rm -f conftest.err conftest.$ac_ext
4752
4753  # OK, works on sane cases.  Now check whether non-existent headers
4754  # can be detected and how.
4755  cat >conftest.$ac_ext <<_ACEOF
4756/* confdefs.h.  */
4757_ACEOF
4758cat confdefs.h >>conftest.$ac_ext
4759cat >>conftest.$ac_ext <<_ACEOF
4760/* end confdefs.h.  */
4761#include <ac_nonexistent.h>
4762_ACEOF
4763if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4764  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4765  ac_status=$?
4766  grep -v '^ *+' conftest.er1 >conftest.err
4767  rm -f conftest.er1
4768  cat conftest.err >&5
4769  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4770  (exit $ac_status); } >/dev/null; then
4771  if test -s conftest.err; then
4772    ac_cpp_err=$ac_c_preproc_warn_flag
4773    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4774  else
4775    ac_cpp_err=
4776  fi
4777else
4778  ac_cpp_err=yes
4779fi
4780if test -z "$ac_cpp_err"; then
4781  # Broken: success on invalid input.
4782continue
4783else
4784  echo "$as_me: failed program was:" >&5
4785sed 's/^/| /' conftest.$ac_ext >&5
4786
4787  # Passes both tests.
4788ac_preproc_ok=:
4789break
4790fi
4791rm -f conftest.err conftest.$ac_ext
4792
4793done
4794# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4795rm -f conftest.err conftest.$ac_ext
4796if $ac_preproc_ok; then
4797  break
4798fi
4799
4800    done
4801    ac_cv_prog_CPP=$CPP
4802
4803fi
4804  CPP=$ac_cv_prog_CPP
4805else
4806  ac_cv_prog_CPP=$CPP
4807fi
4808echo "$as_me:$LINENO: result: $CPP" >&5
4809echo "${ECHO_T}$CPP" >&6
4810ac_preproc_ok=false
4811for ac_c_preproc_warn_flag in '' yes
4812do
4813  # Use a header file that comes with gcc, so configuring glibc
4814  # with a fresh cross-compiler works.
4815  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4816  # <limits.h> exists even on freestanding compilers.
4817  # On the NeXT, cc -E runs the code through the compiler's parser,
4818  # not just through cpp. "Syntax error" is here to catch this case.
4819  cat >conftest.$ac_ext <<_ACEOF
4820/* confdefs.h.  */
4821_ACEOF
4822cat confdefs.h >>conftest.$ac_ext
4823cat >>conftest.$ac_ext <<_ACEOF
4824/* end confdefs.h.  */
4825#ifdef __STDC__
4826# include <limits.h>
4827#else
4828# include <assert.h>
4829#endif
4830                     Syntax error
4831_ACEOF
4832if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4833  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4834  ac_status=$?
4835  grep -v '^ *+' conftest.er1 >conftest.err
4836  rm -f conftest.er1
4837  cat conftest.err >&5
4838  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4839  (exit $ac_status); } >/dev/null; then
4840  if test -s conftest.err; then
4841    ac_cpp_err=$ac_c_preproc_warn_flag
4842    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4843  else
4844    ac_cpp_err=
4845  fi
4846else
4847  ac_cpp_err=yes
4848fi
4849if test -z "$ac_cpp_err"; then
4850  :
4851else
4852  echo "$as_me: failed program was:" >&5
4853sed 's/^/| /' conftest.$ac_ext >&5
4854
4855  # Broken: fails on valid input.
4856continue
4857fi
4858rm -f conftest.err conftest.$ac_ext
4859
4860  # OK, works on sane cases.  Now check whether non-existent headers
4861  # can be detected and how.
4862  cat >conftest.$ac_ext <<_ACEOF
4863/* confdefs.h.  */
4864_ACEOF
4865cat confdefs.h >>conftest.$ac_ext
4866cat >>conftest.$ac_ext <<_ACEOF
4867/* end confdefs.h.  */
4868#include <ac_nonexistent.h>
4869_ACEOF
4870if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4871  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4872  ac_status=$?
4873  grep -v '^ *+' conftest.er1 >conftest.err
4874  rm -f conftest.er1
4875  cat conftest.err >&5
4876  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4877  (exit $ac_status); } >/dev/null; then
4878  if test -s conftest.err; then
4879    ac_cpp_err=$ac_c_preproc_warn_flag
4880    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4881  else
4882    ac_cpp_err=
4883  fi
4884else
4885  ac_cpp_err=yes
4886fi
4887if test -z "$ac_cpp_err"; then
4888  # Broken: success on invalid input.
4889continue
4890else
4891  echo "$as_me: failed program was:" >&5
4892sed 's/^/| /' conftest.$ac_ext >&5
4893
4894  # Passes both tests.
4895ac_preproc_ok=:
4896break
4897fi
4898rm -f conftest.err conftest.$ac_ext
4899
4900done
4901# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4902rm -f conftest.err conftest.$ac_ext
4903if $ac_preproc_ok; then
4904  :
4905else
4906  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4907See \`config.log' for more details." >&5
4908echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4909See \`config.log' for more details." >&2;}
4910   { (exit 1); exit 1; }; }
4911fi
4912
4913ac_ext=c
4914ac_cpp='$CPP $CPPFLAGS'
4915ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4916ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4917ac_compiler_gnu=$ac_cv_c_compiler_gnu
4918
4919
4920echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4921echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4922if test "${ac_cv_header_stdc+set}" = set; then
4923  echo $ECHO_N "(cached) $ECHO_C" >&6
4924else
4925  cat >conftest.$ac_ext <<_ACEOF
4926/* confdefs.h.  */
4927_ACEOF
4928cat confdefs.h >>conftest.$ac_ext
4929cat >>conftest.$ac_ext <<_ACEOF
4930/* end confdefs.h.  */
4931#include <stdlib.h>
4932#include <stdarg.h>
4933#include <string.h>
4934#include <float.h>
4935
4936int
4937main ()
4938{
4939
4940  ;
4941  return 0;
4942}
4943_ACEOF
4944rm -f conftest.$ac_objext
4945if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4946  (eval $ac_compile) 2>conftest.er1
4947  ac_status=$?
4948  grep -v '^ *+' conftest.er1 >conftest.err
4949  rm -f conftest.er1
4950  cat conftest.err >&5
4951  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4952  (exit $ac_status); } &&
4953         { ac_try='test -z "$ac_c_werror_flag"
4954                         || test ! -s conftest.err'
4955  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4956  (eval $ac_try) 2>&5
4957  ac_status=$?
4958  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959  (exit $ac_status); }; } &&
4960         { ac_try='test -s conftest.$ac_objext'
4961  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4962  (eval $ac_try) 2>&5
4963  ac_status=$?
4964  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4965  (exit $ac_status); }; }; then
4966  ac_cv_header_stdc=yes
4967else
4968  echo "$as_me: failed program was:" >&5
4969sed 's/^/| /' conftest.$ac_ext >&5
4970
4971ac_cv_header_stdc=no
4972fi
4973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4974
4975if test $ac_cv_header_stdc = yes; then
4976  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4977  cat >conftest.$ac_ext <<_ACEOF
4978/* confdefs.h.  */
4979_ACEOF
4980cat confdefs.h >>conftest.$ac_ext
4981cat >>conftest.$ac_ext <<_ACEOF
4982/* end confdefs.h.  */
4983#include <string.h>
4984
4985_ACEOF
4986if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4987  $EGREP "memchr" >/dev/null 2>&1; then
4988  :
4989else
4990  ac_cv_header_stdc=no
4991fi
4992rm -f conftest*
4993
4994fi
4995
4996if test $ac_cv_header_stdc = yes; then
4997  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4998  cat >conftest.$ac_ext <<_ACEOF
4999/* confdefs.h.  */
5000_ACEOF
5001cat confdefs.h >>conftest.$ac_ext
5002cat >>conftest.$ac_ext <<_ACEOF
5003/* end confdefs.h.  */
5004#include <stdlib.h>
5005
5006_ACEOF
5007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5008  $EGREP "free" >/dev/null 2>&1; then
5009  :
5010else
5011  ac_cv_header_stdc=no
5012fi
5013rm -f conftest*
5014
5015fi
5016
5017if test $ac_cv_header_stdc = yes; then
5018  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5019  if test "$cross_compiling" = yes; then
5020  :
5021else
5022  cat >conftest.$ac_ext <<_ACEOF
5023/* confdefs.h.  */
5024_ACEOF
5025cat confdefs.h >>conftest.$ac_ext
5026cat >>conftest.$ac_ext <<_ACEOF
5027/* end confdefs.h.  */
5028#include <ctype.h>
5029#if ((' ' & 0x0FF) == 0x020)
5030# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5031# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5032#else
5033# define ISLOWER(c) \
5034                   (('a' <= (c) && (c) <= 'i') \
5035                     || ('j' <= (c) && (c) <= 'r') \
5036                     || ('s' <= (c) && (c) <= 'z'))
5037# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5038#endif
5039
5040#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5041int
5042main ()
5043{
5044  int i;
5045  for (i = 0; i < 256; i++)
5046    if (XOR (islower (i), ISLOWER (i))
5047        || toupper (i) != TOUPPER (i))
5048      exit(2);
5049  exit (0);
5050}
5051_ACEOF
5052rm -f conftest$ac_exeext
5053if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5054  (eval $ac_link) 2>&5
5055  ac_status=$?
5056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5057  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5058  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5059  (eval $ac_try) 2>&5
5060  ac_status=$?
5061  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5062  (exit $ac_status); }; }; then
5063  :
5064else
5065  echo "$as_me: program exited with status $ac_status" >&5
5066echo "$as_me: failed program was:" >&5
5067sed 's/^/| /' conftest.$ac_ext >&5
5068
5069( exit $ac_status )
5070ac_cv_header_stdc=no
5071fi
5072rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5073fi
5074fi
5075fi
5076echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5077echo "${ECHO_T}$ac_cv_header_stdc" >&6
5078if test $ac_cv_header_stdc = yes; then
5079
5080cat >>confdefs.h <<\_ACEOF
5081#define STDC_HEADERS 1
5082_ACEOF
5083
5084fi
5085
5086# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5087
5088
5089
5090
5091
5092
5093
5094
5095
5096for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5097                  inttypes.h stdint.h unistd.h
5098do
5099as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5100echo "$as_me:$LINENO: checking for $ac_header" >&5
5101echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5102if eval "test \"\${$as_ac_Header+set}\" = set"; then
5103  echo $ECHO_N "(cached) $ECHO_C" >&6
5104else
5105  cat >conftest.$ac_ext <<_ACEOF
5106/* confdefs.h.  */
5107_ACEOF
5108cat confdefs.h >>conftest.$ac_ext
5109cat >>conftest.$ac_ext <<_ACEOF
5110/* end confdefs.h.  */
5111$ac_includes_default
5112
5113#include <$ac_header>
5114_ACEOF
5115rm -f conftest.$ac_objext
5116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5117  (eval $ac_compile) 2>conftest.er1
5118  ac_status=$?
5119  grep -v '^ *+' conftest.er1 >conftest.err
5120  rm -f conftest.er1
5121  cat conftest.err >&5
5122  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123  (exit $ac_status); } &&
5124         { ac_try='test -z "$ac_c_werror_flag"
5125                         || test ! -s conftest.err'
5126  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5127  (eval $ac_try) 2>&5
5128  ac_status=$?
5129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5130  (exit $ac_status); }; } &&
5131         { ac_try='test -s conftest.$ac_objext'
5132  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5133  (eval $ac_try) 2>&5
5134  ac_status=$?
5135  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136  (exit $ac_status); }; }; then
5137  eval "$as_ac_Header=yes"
5138else
5139  echo "$as_me: failed program was:" >&5
5140sed 's/^/| /' conftest.$ac_ext >&5
5141
5142eval "$as_ac_Header=no"
5143fi
5144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5145fi
5146echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5147echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5148if test `eval echo '${'$as_ac_Header'}'` = yes; then
5149  cat >>confdefs.h <<_ACEOF
5150#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5151_ACEOF
5152
5153fi
5154
5155done
5156
5157
5158
5159for ac_header in dlfcn.h
5160do
5161as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5162if eval "test \"\${$as_ac_Header+set}\" = set"; then
5163  echo "$as_me:$LINENO: checking for $ac_header" >&5
5164echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5165if eval "test \"\${$as_ac_Header+set}\" = set"; then
5166  echo $ECHO_N "(cached) $ECHO_C" >&6
5167fi
5168echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5169echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5170else
5171  # Is the header compilable?
5172echo "$as_me:$LINENO: checking $ac_header usability" >&5
5173echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5174cat >conftest.$ac_ext <<_ACEOF
5175/* confdefs.h.  */
5176_ACEOF
5177cat confdefs.h >>conftest.$ac_ext
5178cat >>conftest.$ac_ext <<_ACEOF
5179/* end confdefs.h.  */
5180$ac_includes_default
5181#include <$ac_header>
5182_ACEOF
5183rm -f conftest.$ac_objext
5184if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5185  (eval $ac_compile) 2>conftest.er1
5186  ac_status=$?
5187  grep -v '^ *+' conftest.er1 >conftest.err
5188  rm -f conftest.er1
5189  cat conftest.err >&5
5190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5191  (exit $ac_status); } &&
5192         { ac_try='test -z "$ac_c_werror_flag"
5193                         || test ! -s conftest.err'
5194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5195  (eval $ac_try) 2>&5
5196  ac_status=$?
5197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5198  (exit $ac_status); }; } &&
5199         { ac_try='test -s conftest.$ac_objext'
5200  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5201  (eval $ac_try) 2>&5
5202  ac_status=$?
5203  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5204  (exit $ac_status); }; }; then
5205  ac_header_compiler=yes
5206else
5207  echo "$as_me: failed program was:" >&5
5208sed 's/^/| /' conftest.$ac_ext >&5
5209
5210ac_header_compiler=no
5211fi
5212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5213echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5214echo "${ECHO_T}$ac_header_compiler" >&6
5215
5216# Is the header present?
5217echo "$as_me:$LINENO: checking $ac_header presence" >&5
5218echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5219cat >conftest.$ac_ext <<_ACEOF
5220/* confdefs.h.  */
5221_ACEOF
5222cat confdefs.h >>conftest.$ac_ext
5223cat >>conftest.$ac_ext <<_ACEOF
5224/* end confdefs.h.  */
5225#include <$ac_header>
5226_ACEOF
5227if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5228  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5229  ac_status=$?
5230  grep -v '^ *+' conftest.er1 >conftest.err
5231  rm -f conftest.er1
5232  cat conftest.err >&5
5233  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5234  (exit $ac_status); } >/dev/null; then
5235  if test -s conftest.err; then
5236    ac_cpp_err=$ac_c_preproc_warn_flag
5237    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5238  else
5239    ac_cpp_err=
5240  fi
5241else
5242  ac_cpp_err=yes
5243fi
5244if test -z "$ac_cpp_err"; then
5245  ac_header_preproc=yes
5246else
5247  echo "$as_me: failed program was:" >&5
5248sed 's/^/| /' conftest.$ac_ext >&5
5249
5250  ac_header_preproc=no
5251fi
5252rm -f conftest.err conftest.$ac_ext
5253echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5254echo "${ECHO_T}$ac_header_preproc" >&6
5255
5256# So?  What about this header?
5257case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5258  yes:no: )
5259    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5260echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5261    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5262echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5263    ac_header_preproc=yes
5264    ;;
5265  no:yes:* )
5266    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5267echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5268    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5269echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5270    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5271echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5272    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5273echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5274    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5275echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5276    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5277echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5278    (
5279      cat <<\_ASBOX
5280## ---------------------------------------- ##
5281## Report this to coin-cbc@list.coin-or.org ##
5282## ---------------------------------------- ##
5283_ASBOX
5284    ) |
5285      sed "s/^/$as_me: WARNING:     /" >&2
5286    ;;
5287esac
5288echo "$as_me:$LINENO: checking for $ac_header" >&5
5289echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5290if eval "test \"\${$as_ac_Header+set}\" = set"; then
5291  echo $ECHO_N "(cached) $ECHO_C" >&6
5292else
5293  eval "$as_ac_Header=\$ac_header_preproc"
5294fi
5295echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5296echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5297
5298fi
5299if test `eval echo '${'$as_ac_Header'}'` = yes; then
5300  cat >>confdefs.h <<_ACEOF
5301#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5302_ACEOF
5303
5304fi
5305
5306done
5307
5308
5309
5310if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5311    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5312    (test "X$CXX" != "Xg++"))) ; then
5313  ac_ext=cc
5314ac_cpp='$CXXCPP $CPPFLAGS'
5315ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5316ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5317ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5318echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5319echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5320if test -z "$CXXCPP"; then
5321  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5322  echo $ECHO_N "(cached) $ECHO_C" >&6
5323else
5324      # Double quotes because CXXCPP needs to be expanded
5325    for CXXCPP in "$CXX -E" "/lib/cpp"
5326    do
5327      ac_preproc_ok=false
5328for ac_cxx_preproc_warn_flag in '' yes
5329do
5330  # Use a header file that comes with gcc, so configuring glibc
5331  # with a fresh cross-compiler works.
5332  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5333  # <limits.h> exists even on freestanding compilers.
5334  # On the NeXT, cc -E runs the code through the compiler's parser,
5335  # not just through cpp. "Syntax error" is here to catch this case.
5336  cat >conftest.$ac_ext <<_ACEOF
5337/* confdefs.h.  */
5338_ACEOF
5339cat confdefs.h >>conftest.$ac_ext
5340cat >>conftest.$ac_ext <<_ACEOF
5341/* end confdefs.h.  */
5342#ifdef __STDC__
5343# include <limits.h>
5344#else
5345# include <assert.h>
5346#endif
5347                     Syntax error
5348_ACEOF
5349if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5350  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5351  ac_status=$?
5352  grep -v '^ *+' conftest.er1 >conftest.err
5353  rm -f conftest.er1
5354  cat conftest.err >&5
5355  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5356  (exit $ac_status); } >/dev/null; then
5357  if test -s conftest.err; then
5358    ac_cpp_err=$ac_cxx_preproc_warn_flag
5359    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5360  else
5361    ac_cpp_err=
5362  fi
5363else
5364  ac_cpp_err=yes
5365fi
5366if test -z "$ac_cpp_err"; then
5367  :
5368else
5369  echo "$as_me: failed program was:" >&5
5370sed 's/^/| /' conftest.$ac_ext >&5
5371
5372  # Broken: fails on valid input.
5373continue
5374fi
5375rm -f conftest.err conftest.$ac_ext
5376
5377  # OK, works on sane cases.  Now check whether non-existent headers
5378  # can be detected and how.
5379  cat >conftest.$ac_ext <<_ACEOF
5380/* confdefs.h.  */
5381_ACEOF
5382cat confdefs.h >>conftest.$ac_ext
5383cat >>conftest.$ac_ext <<_ACEOF
5384/* end confdefs.h.  */
5385#include <ac_nonexistent.h>
5386_ACEOF
5387if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5388  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5389  ac_status=$?
5390  grep -v '^ *+' conftest.er1 >conftest.err
5391  rm -f conftest.er1
5392  cat conftest.err >&5
5393  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394  (exit $ac_status); } >/dev/null; then
5395  if test -s conftest.err; then
5396    ac_cpp_err=$ac_cxx_preproc_warn_flag
5397    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5398  else
5399    ac_cpp_err=
5400  fi
5401else
5402  ac_cpp_err=yes
5403fi
5404if test -z "$ac_cpp_err"; then
5405  # Broken: success on invalid input.
5406continue
5407else
5408  echo "$as_me: failed program was:" >&5
5409sed 's/^/| /' conftest.$ac_ext >&5
5410
5411  # Passes both tests.
5412ac_preproc_ok=:
5413break
5414fi
5415rm -f conftest.err conftest.$ac_ext
5416
5417done
5418# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5419rm -f conftest.err conftest.$ac_ext
5420if $ac_preproc_ok; then
5421  break
5422fi
5423
5424    done
5425    ac_cv_prog_CXXCPP=$CXXCPP
5426
5427fi
5428  CXXCPP=$ac_cv_prog_CXXCPP
5429else
5430  ac_cv_prog_CXXCPP=$CXXCPP
5431fi
5432echo "$as_me:$LINENO: result: $CXXCPP" >&5
5433echo "${ECHO_T}$CXXCPP" >&6
5434ac_preproc_ok=false
5435for ac_cxx_preproc_warn_flag in '' yes
5436do
5437  # Use a header file that comes with gcc, so configuring glibc
5438  # with a fresh cross-compiler works.
5439  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5440  # <limits.h> exists even on freestanding compilers.
5441  # On the NeXT, cc -E runs the code through the compiler's parser,
5442  # not just through cpp. "Syntax error" is here to catch this case.
5443  cat >conftest.$ac_ext <<_ACEOF
5444/* confdefs.h.  */
5445_ACEOF
5446cat confdefs.h >>conftest.$ac_ext
5447cat >>conftest.$ac_ext <<_ACEOF
5448/* end confdefs.h.  */
5449#ifdef __STDC__
5450# include <limits.h>
5451#else
5452# include <assert.h>
5453#endif
5454                     Syntax error
5455_ACEOF
5456if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5457  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5458  ac_status=$?
5459  grep -v '^ *+' conftest.er1 >conftest.err
5460  rm -f conftest.er1
5461  cat conftest.err >&5
5462  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463  (exit $ac_status); } >/dev/null; then
5464  if test -s conftest.err; then
5465    ac_cpp_err=$ac_cxx_preproc_warn_flag
5466    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5467  else
5468    ac_cpp_err=
5469  fi
5470else
5471  ac_cpp_err=yes
5472fi
5473if test -z "$ac_cpp_err"; then
5474  :
5475else
5476  echo "$as_me: failed program was:" >&5
5477sed 's/^/| /' conftest.$ac_ext >&5
5478
5479  # Broken: fails on valid input.
5480continue
5481fi
5482rm -f conftest.err conftest.$ac_ext
5483
5484  # OK, works on sane cases.  Now check whether non-existent headers
5485  # can be detected and how.
5486  cat >conftest.$ac_ext <<_ACEOF
5487/* confdefs.h.  */
5488_ACEOF
5489cat confdefs.h >>conftest.$ac_ext
5490cat >>conftest.$ac_ext <<_ACEOF
5491/* end confdefs.h.  */
5492#include <ac_nonexistent.h>
5493_ACEOF
5494if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5495  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5496  ac_status=$?
5497  grep -v '^ *+' conftest.er1 >conftest.err
5498  rm -f conftest.er1
5499  cat conftest.err >&5
5500  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501  (exit $ac_status); } >/dev/null; then
5502  if test -s conftest.err; then
5503    ac_cpp_err=$ac_cxx_preproc_warn_flag
5504    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5505  else
5506    ac_cpp_err=
5507  fi
5508else
5509  ac_cpp_err=yes
5510fi
5511if test -z "$ac_cpp_err"; then
5512  # Broken: success on invalid input.
5513continue
5514else
5515  echo "$as_me: failed program was:" >&5
5516sed 's/^/| /' conftest.$ac_ext >&5
5517
5518  # Passes both tests.
5519ac_preproc_ok=:
5520break
5521fi
5522rm -f conftest.err conftest.$ac_ext
5523
5524done
5525# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5526rm -f conftest.err conftest.$ac_ext
5527if $ac_preproc_ok; then
5528  :
5529else
5530  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5531See \`config.log' for more details." >&5
5532echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5533See \`config.log' for more details." >&2;}
5534   { (exit 1); exit 1; }; }
5535fi
5536
5537ac_ext=cc
5538ac_cpp='$CXXCPP $CPPFLAGS'
5539ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5540ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5541ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5542
5543fi
5544
5545ac_ext=f
5546ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5547ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5548ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5549if test -n "$ac_tool_prefix"; then
5550  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5551  do
5552    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5553set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5554echo "$as_me:$LINENO: checking for $ac_word" >&5
5555echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5556if test "${ac_cv_prog_F77+set}" = set; then
5557  echo $ECHO_N "(cached) $ECHO_C" >&6
5558else
5559  if test -n "$F77"; then
5560  ac_cv_prog_F77="$F77" # Let the user override the test.
5561else
5562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563for as_dir in $PATH
5564do
5565  IFS=$as_save_IFS
5566  test -z "$as_dir" && as_dir=.
5567  for ac_exec_ext in '' $ac_executable_extensions; do
5568  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5570    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5571    break 2
5572  fi
5573done
5574done
5575
5576fi
5577fi
5578F77=$ac_cv_prog_F77
5579if test -n "$F77"; then
5580  echo "$as_me:$LINENO: result: $F77" >&5
5581echo "${ECHO_T}$F77" >&6
5582else
5583  echo "$as_me:$LINENO: result: no" >&5
5584echo "${ECHO_T}no" >&6
5585fi
5586
5587    test -n "$F77" && break
5588  done
5589fi
5590if test -z "$F77"; then
5591  ac_ct_F77=$F77
5592  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5593do
5594  # Extract the first word of "$ac_prog", so it can be a program name with args.
5595set dummy $ac_prog; ac_word=$2
5596echo "$as_me:$LINENO: checking for $ac_word" >&5
5597echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5598if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5599  echo $ECHO_N "(cached) $ECHO_C" >&6
5600else
5601  if test -n "$ac_ct_F77"; then
5602  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607  IFS=$as_save_IFS
5608  test -z "$as_dir" && as_dir=.
5609  for ac_exec_ext in '' $ac_executable_extensions; do
5610  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611    ac_cv_prog_ac_ct_F77="$ac_prog"
5612    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5613    break 2
5614  fi
5615done
5616done
5617
5618fi
5619fi
5620ac_ct_F77=$ac_cv_prog_ac_ct_F77
5621if test -n "$ac_ct_F77"; then
5622  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5623echo "${ECHO_T}$ac_ct_F77" >&6
5624else
5625  echo "$as_me:$LINENO: result: no" >&5
5626echo "${ECHO_T}no" >&6
5627fi
5628
5629  test -n "$ac_ct_F77" && break
5630done
5631
5632  F77=$ac_ct_F77
5633fi
5634
5635
5636# Provide some information about the compiler.
5637echo "$as_me:5637:" \
5638     "checking for Fortran 77 compiler version" >&5
5639ac_compiler=`set X $ac_compile; echo $2`
5640{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5641  (eval $ac_compiler --version </dev/null >&5) 2>&5
5642  ac_status=$?
5643  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5644  (exit $ac_status); }
5645{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5646  (eval $ac_compiler -v </dev/null >&5) 2>&5
5647  ac_status=$?
5648  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5649  (exit $ac_status); }
5650{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5651  (eval $ac_compiler -V </dev/null >&5) 2>&5
5652  ac_status=$?
5653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5654  (exit $ac_status); }
5655rm -f a.out
5656
5657# If we don't use `.F' as extension, the preprocessor is not run on the
5658# input file.  (Note that this only needs to work for GNU compilers.)
5659ac_save_ext=$ac_ext
5660ac_ext=F
5661echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5662echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5663if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5664  echo $ECHO_N "(cached) $ECHO_C" >&6
5665else
5666  cat >conftest.$ac_ext <<_ACEOF
5667      program main
5668#ifndef __GNUC__
5669       choke me
5670#endif
5671
5672      end
5673_ACEOF
5674rm -f conftest.$ac_objext
5675if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5676  (eval $ac_compile) 2>conftest.er1
5677  ac_status=$?
5678  grep -v '^ *+' conftest.er1 >conftest.err
5679  rm -f conftest.er1
5680  cat conftest.err >&5
5681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682  (exit $ac_status); } &&
5683         { ac_try='test -z "$ac_f77_werror_flag"
5684                         || test ! -s conftest.err'
5685  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5686  (eval $ac_try) 2>&5
5687  ac_status=$?
5688  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5689  (exit $ac_status); }; } &&
5690         { ac_try='test -s conftest.$ac_objext'
5691  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5692  (eval $ac_try) 2>&5
5693  ac_status=$?
5694  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5695  (exit $ac_status); }; }; then
5696  ac_compiler_gnu=yes
5697else
5698  echo "$as_me: failed program was:" >&5
5699sed 's/^/| /' conftest.$ac_ext >&5
5700
5701ac_compiler_gnu=no
5702fi
5703rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5704ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5705
5706fi
5707echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5708echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5709ac_ext=$ac_save_ext
5710ac_test_FFLAGS=${FFLAGS+set}
5711ac_save_FFLAGS=$FFLAGS
5712FFLAGS=
5713echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5714echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5715if test "${ac_cv_prog_f77_g+set}" = set; then
5716  echo $ECHO_N "(cached) $ECHO_C" >&6
5717else
5718  FFLAGS=-g
5719cat >conftest.$ac_ext <<_ACEOF
5720      program main
5721
5722      end
5723_ACEOF
5724rm -f conftest.$ac_objext
5725if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5726  (eval $ac_compile) 2>conftest.er1
5727  ac_status=$?
5728  grep -v '^ *+' conftest.er1 >conftest.err
5729  rm -f conftest.er1
5730  cat conftest.err >&5
5731  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732  (exit $ac_status); } &&
5733         { ac_try='test -z "$ac_f77_werror_flag"
5734                         || test ! -s conftest.err'
5735  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5736  (eval $ac_try) 2>&5
5737  ac_status=$?
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); }; } &&
5740         { ac_try='test -s conftest.$ac_objext'
5741  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742  (eval $ac_try) 2>&5
5743  ac_status=$?
5744  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745  (exit $ac_status); }; }; then
5746  ac_cv_prog_f77_g=yes
5747else
5748  echo "$as_me: failed program was:" >&5
5749sed 's/^/| /' conftest.$ac_ext >&5
5750
5751ac_cv_prog_f77_g=no
5752fi
5753rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5754
5755fi
5756echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5757echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5758if test "$ac_test_FFLAGS" = set; then
5759  FFLAGS=$ac_save_FFLAGS
5760elif test $ac_cv_prog_f77_g = yes; then
5761  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5762    FFLAGS="-g -O2"
5763  else
5764    FFLAGS="-g"
5765  fi
5766else
5767  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5768    FFLAGS="-O2"
5769  else
5770    FFLAGS=
5771  fi
5772fi
5773
5774G77=`test $ac_compiler_gnu = yes && echo yes`
5775ac_ext=cc
5776ac_cpp='$CXXCPP $CPPFLAGS'
5777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5780
5781
5782
5783# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5784
5785# find the maximum length of command line arguments
5786echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5787echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5788if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5789  echo $ECHO_N "(cached) $ECHO_C" >&6
5790else
5791    i=0
5792  teststring="ABCD"
5793
5794  case $build_os in
5795  msdosdjgpp*)
5796    # On DJGPP, this test can blow up pretty badly due to problems in libc
5797    # (any single argument exceeding 2000 bytes causes a buffer overrun
5798    # during glob expansion).  Even if it were fixed, the result of this
5799    # check would be larger than it should be.
5800    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5801    ;;
5802
5803  gnu*)
5804    # Under GNU Hurd, this test is not required because there is
5805    # no limit to the length of command line arguments.
5806    # Libtool will interpret -1 as no limit whatsoever
5807    lt_cv_sys_max_cmd_len=-1;
5808    ;;
5809
5810  cygwin* | mingw*)
5811    # On Win9x/ME, this test blows up -- it succeeds, but takes
5812    # about 5 minutes as the teststring grows exponentially.
5813    # Worse, since 9x/ME are not pre-emptively multitasking,
5814    # you end up with a "frozen" computer, even though with patience
5815    # the test eventually succeeds (with a max line length of 256k).
5816    # Instead, let's just punt: use the minimum linelength reported by
5817    # all of the supported platforms: 8192 (on NT/2K/XP).
5818    lt_cv_sys_max_cmd_len=8192;
5819    ;;
5820
5821  amigaos*)
5822    # On AmigaOS with pdksh, this test takes hours, literally.
5823    # So we just punt and use a minimum line length of 8192.
5824    lt_cv_sys_max_cmd_len=8192;
5825    ;;
5826
5827  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5828    # This has been around since 386BSD, at least.  Likely further.
5829    if test -x /sbin/sysctl; then
5830      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5831    elif test -x /usr/sbin/sysctl; then
5832      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5833    else
5834      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5835    fi
5836    # And add a safety zone
5837    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5838    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5839    ;;
5840
5841  interix*)
5842    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5843    lt_cv_sys_max_cmd_len=196608
5844    ;;
5845
5846  osf*)
5847    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5848    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5849    # nice to cause kernel panics so lets avoid the loop below.
5850    # First set a reasonable default.
5851    lt_cv_sys_max_cmd_len=16384
5852    #
5853    if test -x /sbin/sysconfig; then
5854      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5855        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5856      esac
5857    fi
5858    ;;
5859  sco3.2v5*)
5860    lt_cv_sys_max_cmd_len=102400
5861    ;;
5862  sysv5* | sco5v6* | sysv4.2uw2*)
5863    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5864    if test -n "$kargmax"; then
5865      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5866    else
5867      lt_cv_sys_max_cmd_len=32768
5868    fi
5869    ;;
5870  *)
5871    # If test is not a shell built-in, we'll probably end up computing a
5872    # maximum length that is only half of the actual maximum length, but
5873    # we can't tell.
5874    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5875    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5876               = "XX$teststring") >/dev/null 2>&1 &&
5877            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5878            lt_cv_sys_max_cmd_len=$new_result &&
5879            test $i != 17 # 1/2 MB should be enough
5880    do
5881      i=`expr $i + 1`
5882      teststring=$teststring$teststring
5883    done
5884    teststring=
5885    # Add a significant safety factor because C++ compilers can tack on massive
5886    # amounts of additional arguments before passing them to the linker.
5887    # It appears as though 1/2 is a usable value.
5888    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5889    ;;
5890  esac
5891
5892fi
5893
5894if test -n $lt_cv_sys_max_cmd_len ; then
5895  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5896echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5897else
5898  echo "$as_me:$LINENO: result: none" >&5
5899echo "${ECHO_T}none" >&6
5900fi
5901
5902
5903
5904
5905# Check for command to grab the raw symbol name followed by C symbol from nm.
5906echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5907echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5908if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5909  echo $ECHO_N "(cached) $ECHO_C" >&6
5910else
5911
5912# These are sane defaults that work on at least a few old systems.
5913# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5914
5915# Character class describing NM global symbol codes.
5916symcode='[BCDEGRST]'
5917
5918# Regexp to match symbols that can be accessed directly from C.
5919sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5920
5921# Transform an extracted symbol line into a proper C declaration
5922lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5923
5924# Transform an extracted symbol line into symbol name and symbol address
5925lt_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'"
5926
5927# Define system-specific variables.
5928case $host_os in
5929aix*)
5930  symcode='[BCDT]'
5931  ;;
5932cygwin* | mingw* | pw32*)
5933  symcode='[ABCDGISTW]'
5934  ;;
5935hpux*) # Its linker distinguishes data from code symbols
5936  if test "$host_cpu" = ia64; then
5937    symcode='[ABCDEGRST]'
5938  fi
5939  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5940  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'"
5941  ;;
5942linux*)
5943  if test "$host_cpu" = ia64; then
5944    symcode='[ABCDGIRSTW]'
5945    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5946    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'"
5947  fi
5948  ;;
5949irix* | nonstopux*)
5950  symcode='[BCDEGRST]'
5951  ;;
5952osf*)
5953  symcode='[BCDEGQRST]'
5954  ;;
5955solaris*)
5956  symcode='[BDRT]'
5957  ;;
5958sco3.2v5*)
5959  symcode='[DT]'
5960  ;;
5961sysv4.2uw2*)
5962  symcode='[DT]'
5963  ;;
5964sysv5* | sco5v6* | unixware* | OpenUNIX*)
5965  symcode='[ABDT]'
5966  ;;
5967sysv4)
5968  symcode='[DFNSTU]'
5969  ;;
5970esac
5971
5972# Handle CRLF in mingw tool chain
5973opt_cr=
5974case $build_os in
5975mingw*)
5976  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5977  ;;
5978esac
5979
5980# If we're using GNU nm, then use its standard symbol codes.
5981case `$NM -V 2>&1` in
5982*GNU* | *'with BFD'*)
5983  symcode='[ABCDGIRSTW]' ;;
5984esac
5985
5986# Try without a prefix undercore, then with it.
5987for ac_symprfx in "" "_"; do
5988
5989  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5990  symxfrm="\\1 $ac_symprfx\\2 \\2"
5991
5992  # Write the raw and C identifiers.
5993  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5994
5995  # Check to see that the pipe works correctly.
5996  pipe_works=no
5997
5998  rm -f conftest*
5999  cat > conftest.$ac_ext <<EOF
6000#ifdef __cplusplus
6001extern "C" {
6002#endif
6003char nm_test_var;
6004void nm_test_func(){}
6005#ifdef __cplusplus
6006}
6007#endif
6008int main(){nm_test_var='a';nm_test_func();return(0);}
6009EOF
6010
6011  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6012  (eval $ac_compile) 2>&5
6013  ac_status=$?
6014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015  (exit $ac_status); }; then
6016    # Now try to grab the symbols.
6017    nlist=conftest.nm
6018    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6019  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6020  ac_status=$?
6021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022  (exit $ac_status); } && test -s "$nlist"; then
6023      # Try sorting and uniquifying the output.
6024      if sort "$nlist" | uniq > "$nlist"T; then
6025        mv -f "$nlist"T "$nlist"
6026      else
6027        rm -f "$nlist"T
6028      fi
6029
6030      # Make sure that we snagged all the symbols we need.
6031      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6032        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6033          cat <<EOF > conftest.$ac_ext
6034#ifdef __cplusplus
6035extern "C" {
6036#endif
6037
6038EOF
6039          # Now generate the symbol file.
6040          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6041
6042          cat <<EOF >> conftest.$ac_ext
6043#if defined (__STDC__) && __STDC__
6044# define lt_ptr_t void *
6045#else
6046# define lt_ptr_t char *
6047# define const
6048#endif
6049
6050/* The mapping between symbol names and symbols. */
6051const struct {
6052  const char *name;
6053  lt_ptr_t address;
6054}
6055lt_preloaded_symbols[] =
6056{
6057EOF
6058          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6059          cat <<\EOF >> conftest.$ac_ext
6060  {0, (lt_ptr_t) 0}
6061};
6062
6063#ifdef __cplusplus
6064}
6065#endif
6066EOF
6067          # Now try linking the two files.
6068          mv conftest.$ac_objext conftstm.$ac_objext
6069          lt_save_LIBS="$LIBS"
6070          lt_save_CFLAGS="$CFLAGS"
6071          LIBS="conftstm.$ac_objext"
6072          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6073          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6074  (eval $ac_link) 2>&5
6075  ac_status=$?
6076  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6078            pipe_works=yes
6079          fi
6080          LIBS="$lt_save_LIBS"
6081          CFLAGS="$lt_save_CFLAGS"
6082        else
6083          echo "cannot find nm_test_func in $nlist" >&5
6084        fi
6085      else
6086        echo "cannot find nm_test_var in $nlist" >&5
6087      fi
6088    else
6089      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6090    fi
6091  else
6092    echo "$progname: failed program was:" >&5
6093    cat conftest.$ac_ext >&5
6094  fi
6095  rm -f conftest* conftst*
6096
6097  # Do not use the global_symbol_pipe unless it works.
6098  if test "$pipe_works" = yes; then
6099    break
6100  else
6101    lt_cv_sys_global_symbol_pipe=
6102  fi
6103done
6104
6105fi
6106
6107if test -z "$lt_cv_sys_global_symbol_pipe"; then
6108  lt_cv_sys_global_symbol_to_cdecl=
6109fi
6110if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6111  echo "$as_me:$LINENO: result: failed" >&5
6112echo "${ECHO_T}failed" >&6
6113else
6114  echo "$as_me:$LINENO: result: ok" >&5
6115echo "${ECHO_T}ok" >&6
6116fi
6117
6118echo "$as_me:$LINENO: checking for objdir" >&5
6119echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6120if test "${lt_cv_objdir+set}" = set; then
6121  echo $ECHO_N "(cached) $ECHO_C" >&6
6122else
6123  rm -f .libs 2>/dev/null
6124mkdir .libs 2>/dev/null
6125if test -d .libs; then
6126  lt_cv_objdir=.libs
6127else
6128  # MS-DOS does not allow filenames that begin with a dot.
6129  lt_cv_objdir=_libs
6130fi
6131rmdir .libs 2>/dev/null
6132fi
6133echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6134echo "${ECHO_T}$lt_cv_objdir" >&6
6135objdir=$lt_cv_objdir
6136
6137
6138
6139
6140
6141case $host_os in
6142aix3*)
6143  # AIX sometimes has problems with the GCC collect2 program.  For some
6144  # reason, if we set the COLLECT_NAMES environment variable, the problems
6145  # vanish in a puff of smoke.
6146  if test "X${COLLECT_NAMES+set}" != Xset; then
6147    COLLECT_NAMES=
6148    export COLLECT_NAMES
6149  fi
6150  ;;
6151esac
6152
6153# Sed substitution that helps us do robust quoting.  It backslashifies
6154# metacharacters that are still active within double-quoted strings.
6155Xsed='sed -e 1s/^X//'
6156sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6157
6158# Same as above, but do not quote variable references.
6159double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6160
6161# Sed substitution to delay expansion of an escaped shell variable in a
6162# double_quote_subst'ed string.
6163delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6164
6165# Sed substitution to avoid accidental globbing in evaled expressions
6166no_glob_subst='s/\*/\\\*/g'
6167
6168# Constants:
6169rm="rm -f"
6170
6171# Global variables:
6172default_ofile=libtool
6173can_build_shared=yes
6174
6175# All known linkers require a `.a' archive for static linking (except MSVC,
6176# which needs '.lib').
6177libext=a
6178ltmain="$ac_aux_dir/ltmain.sh"
6179ofile="$default_ofile"
6180with_gnu_ld="$lt_cv_prog_gnu_ld"
6181
6182if test -n "$ac_tool_prefix"; then
6183  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6184set dummy ${ac_tool_prefix}ar; ac_word=$2
6185echo "$as_me:$LINENO: checking for $ac_word" >&5
6186echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6187if test "${ac_cv_prog_AR+set}" = set; then
6188  echo $ECHO_N "(cached) $ECHO_C" >&6
6189else
6190  if test -n "$AR"; then
6191  ac_cv_prog_AR="$AR" # Let the user override the test.
6192else
6193as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6194for as_dir in $PATH
6195do
6196  IFS=$as_save_IFS
6197  test -z "$as_dir" && as_dir=.
6198  for ac_exec_ext in '' $ac_executable_extensions; do
6199  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6200    ac_cv_prog_AR="${ac_tool_prefix}ar"
6201    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6202    break 2
6203  fi
6204done
6205done
6206
6207fi
6208fi
6209AR=$ac_cv_prog_AR
6210if test -n "$AR"; then
6211  echo "$as_me:$LINENO: result: $AR" >&5
6212echo "${ECHO_T}$AR" >&6
6213else
6214  echo "$as_me:$LINENO: result: no" >&5
6215echo "${ECHO_T}no" >&6
6216fi
6217
6218fi
6219if test -z "$ac_cv_prog_AR"; then
6220  ac_ct_AR=$AR
6221  # Extract the first word of "ar", so it can be a program name with args.
6222set dummy ar; ac_word=$2
6223echo "$as_me:$LINENO: checking for $ac_word" >&5
6224echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6225if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6226  echo $ECHO_N "(cached) $ECHO_C" >&6
6227else
6228  if test -n "$ac_ct_AR"; then
6229  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234  IFS=$as_save_IFS
6235  test -z "$as_dir" && as_dir=.
6236  for ac_exec_ext in '' $ac_executable_extensions; do
6237  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238    ac_cv_prog_ac_ct_AR="ar"
6239    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6240    break 2
6241  fi
6242done
6243done
6244
6245  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6246fi
6247fi
6248ac_ct_AR=$ac_cv_prog_ac_ct_AR
6249if test -n "$ac_ct_AR"; then
6250  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6251echo "${ECHO_T}$ac_ct_AR" >&6
6252else
6253  echo "$as_me:$LINENO: result: no" >&5
6254echo "${ECHO_T}no" >&6
6255fi
6256
6257  AR=$ac_ct_AR
6258else
6259  AR="$ac_cv_prog_AR"
6260fi
6261
6262if test -n "$ac_tool_prefix"; then
6263  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6264set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6265echo "$as_me:$LINENO: checking for $ac_word" >&5
6266echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6267if test "${ac_cv_prog_RANLIB+set}" = set; then
6268  echo $ECHO_N "(cached) $ECHO_C" >&6
6269else
6270  if test -n "$RANLIB"; then
6271  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6272else
6273as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6274for as_dir in $PATH
6275do
6276  IFS=$as_save_IFS
6277  test -z "$as_dir" && as_dir=.
6278  for ac_exec_ext in '' $ac_executable_extensions; do
6279  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6280    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6281    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282    break 2
6283  fi
6284done
6285done
6286
6287fi
6288fi
6289RANLIB=$ac_cv_prog_RANLIB
6290if test -n "$RANLIB"; then
6291  echo "$as_me:$LINENO: result: $RANLIB" >&5
6292echo "${ECHO_T}$RANLIB" >&6
6293else
6294  echo "$as_me:$LINENO: result: no" >&5
6295echo "${ECHO_T}no" >&6
6296fi
6297
6298fi
6299if test -z "$ac_cv_prog_RANLIB"; then
6300  ac_ct_RANLIB=$RANLIB
6301  # Extract the first word of "ranlib", so it can be a program name with args.
6302set dummy ranlib; ac_word=$2
6303echo "$as_me:$LINENO: checking for $ac_word" >&5
6304echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6305if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6306  echo $ECHO_N "(cached) $ECHO_C" >&6
6307else
6308  if test -n "$ac_ct_RANLIB"; then
6309  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6310else
6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6312for as_dir in $PATH
6313do
6314  IFS=$as_save_IFS
6315  test -z "$as_dir" && as_dir=.
6316  for ac_exec_ext in '' $ac_executable_extensions; do
6317  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6318    ac_cv_prog_ac_ct_RANLIB="ranlib"
6319    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6320    break 2
6321  fi
6322done
6323done
6324
6325  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6326fi
6327fi
6328ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6329if test -n "$ac_ct_RANLIB"; then
6330  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6331echo "${ECHO_T}$ac_ct_RANLIB" >&6
6332else
6333  echo "$as_me:$LINENO: result: no" >&5
6334echo "${ECHO_T}no" >&6
6335fi
6336
6337  RANLIB=$ac_ct_RANLIB
6338else
6339  RANLIB="$ac_cv_prog_RANLIB"
6340fi
6341
6342if test -n "$ac_tool_prefix"; then
6343  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6344set dummy ${ac_tool_prefix}strip; ac_word=$2
6345echo "$as_me:$LINENO: checking for $ac_word" >&5
6346echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6347if test "${ac_cv_prog_STRIP+set}" = set; then
6348  echo $ECHO_N "(cached) $ECHO_C" >&6
6349else
6350  if test -n "$STRIP"; then
6351  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6352else
6353as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6354for as_dir in $PATH
6355do
6356  IFS=$as_save_IFS
6357  test -z "$as_dir" && as_dir=.
6358  for ac_exec_ext in '' $ac_executable_extensions; do
6359  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6360    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6361    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6362    break 2
6363  fi
6364done
6365done
6366
6367fi
6368fi
6369STRIP=$ac_cv_prog_STRIP
6370if test -n "$STRIP"; then
6371  echo "$as_me:$LINENO: result: $STRIP" >&5
6372echo "${ECHO_T}$STRIP" >&6
6373else
6374  echo "$as_me:$LINENO: result: no" >&5
6375echo "${ECHO_T}no" >&6
6376fi
6377
6378fi
6379if test -z "$ac_cv_prog_STRIP"; then
6380  ac_ct_STRIP=$STRIP
6381  # Extract the first word of "strip", so it can be a program name with args.
6382set dummy strip; ac_word=$2
6383echo "$as_me:$LINENO: checking for $ac_word" >&5
6384echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6385if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6386  echo $ECHO_N "(cached) $ECHO_C" >&6
6387else
6388  if test -n "$ac_ct_STRIP"; then
6389  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6390else
6391as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6392for as_dir in $PATH
6393do
6394  IFS=$as_save_IFS
6395  test -z "$as_dir" && as_dir=.
6396  for ac_exec_ext in '' $ac_executable_extensions; do
6397  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6398    ac_cv_prog_ac_ct_STRIP="strip"
6399    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6400    break 2
6401  fi
6402done
6403done
6404
6405  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6406fi
6407fi
6408ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6409if test -n "$ac_ct_STRIP"; then
6410  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6411echo "${ECHO_T}$ac_ct_STRIP" >&6
6412else
6413  echo "$as_me:$LINENO: result: no" >&5
6414echo "${ECHO_T}no" >&6
6415fi
6416
6417  STRIP=$ac_ct_STRIP
6418else
6419  STRIP="$ac_cv_prog_STRIP"
6420fi
6421
6422
6423old_CC="$CC"
6424old_CFLAGS="$CFLAGS"
6425
6426# Set sane defaults for various variables
6427test -z "$AR" && AR=ar
6428test -z "$AR_FLAGS" && AR_FLAGS=cru
6429test -z "$AS" && AS=as
6430test -z "$CC" && CC=cc
6431test -z "$LTCC" && LTCC=$CC
6432test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6433test -z "$DLLTOOL" && DLLTOOL=dlltool
6434test -z "$LD" && LD=ld
6435test -z "$LN_S" && LN_S="ln -s"
6436test -z "$MAGIC_CMD" && MAGIC_CMD=file
6437test -z "$NM" && NM=nm
6438test -z "$SED" && SED=sed
6439test -z "$OBJDUMP" && OBJDUMP=objdump
6440test -z "$RANLIB" && RANLIB=:
6441test -z "$STRIP" && STRIP=:
6442test -z "$ac_objext" && ac_objext=o
6443
6444# Determine commands to create old-style static archives.
6445old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6446old_postinstall_cmds='chmod 644 $oldlib'
6447old_postuninstall_cmds=
6448
6449if test -n "$RANLIB"; then
6450  case $host_os in
6451  openbsd*)
6452    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6453    ;;
6454  *)
6455    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6456    ;;
6457  esac
6458  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6459fi
6460
6461for cc_temp in $compiler""; do
6462  case $cc_temp in
6463    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6464    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6465    \-*) ;;
6466    *) break;;
6467  esac
6468done
6469cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6470
6471
6472# Only perform the check for file, if the check method requires it
6473case $deplibs_check_method in
6474file_magic*)
6475  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6476    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6477echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6478if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6479  echo $ECHO_N "(cached) $ECHO_C" >&6
6480else
6481  case $MAGIC_CMD in
6482[\\/*] |  ?:[\\/]*)
6483  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6484  ;;
6485*)
6486  lt_save_MAGIC_CMD="$MAGIC_CMD"
6487  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6488  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6489  for ac_dir in $ac_dummy; do
6490    IFS="$lt_save_ifs"
6491    test -z "$ac_dir" && ac_dir=.
6492    if test -f $ac_dir/${ac_tool_prefix}file; then
6493      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6494      if test -n "$file_magic_test_file"; then
6495        case $deplibs_check_method in
6496        "file_magic "*)
6497          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6498          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6499          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6500            $EGREP "$file_magic_regex" > /dev/null; then
6501            :
6502          else
6503            cat <<EOF 1>&2
6504
6505*** Warning: the command libtool uses to detect shared libraries,
6506*** $file_magic_cmd, produces output that libtool cannot recognize.
6507*** The result is that libtool may fail to recognize shared libraries
6508*** as such.  This will affect the creation of libtool libraries that
6509*** depend on shared libraries, but programs linked with such libtool
6510*** libraries will work regardless of this problem.  Nevertheless, you
6511*** may want to report the problem to your system manager and/or to
6512*** bug-libtool@gnu.org
6513
6514EOF
6515          fi ;;
6516        esac
6517      fi
6518      break
6519    fi
6520  done
6521  IFS="$lt_save_ifs"
6522  MAGIC_CMD="$lt_save_MAGIC_CMD"
6523  ;;
6524esac
6525fi
6526
6527MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6528if test -n "$MAGIC_CMD"; then
6529  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6530echo "${ECHO_T}$MAGIC_CMD" >&6
6531else
6532  echo "$as_me:$LINENO: result: no" >&5
6533echo "${ECHO_T}no" >&6
6534fi
6535
6536if test -z "$lt_cv_path_MAGIC_CMD"; then
6537  if test -n "$ac_tool_prefix"; then
6538    echo "$as_me:$LINENO: checking for file" >&5
6539echo $ECHO_N "checking for file... $ECHO_C" >&6
6540if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6541  echo $ECHO_N "(cached) $ECHO_C" >&6
6542else
6543  case $MAGIC_CMD in
6544[\\/*] |  ?:[\\/]*)
6545  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6546  ;;
6547*)
6548  lt_save_MAGIC_CMD="$MAGIC_CMD"
6549  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6550  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6551  for ac_dir in $ac_dummy; do
6552    IFS="$lt_save_ifs"
6553    test -z "$ac_dir" && ac_dir=.
6554    if test -f $ac_dir/file; then
6555      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6556      if test -n "$file_magic_test_file"; then
6557        case $deplibs_check_method in
6558        "file_magic "*)
6559          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6560          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6561          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6562            $EGREP "$file_magic_regex" > /dev/null; then
6563            :
6564          else
6565            cat <<EOF 1>&2
6566
6567*** Warning: the command libtool uses to detect shared libraries,
6568*** $file_magic_cmd, produces output that libtool cannot recognize.
6569*** The result is that libtool may fail to recognize shared libraries
6570*** as such.  This will affect the creation of libtool libraries that
6571*** depend on shared libraries, but programs linked with such libtool
6572*** libraries will work regardless of this problem.  Nevertheless, you
6573*** may want to report the problem to your system manager and/or to
6574*** bug-libtool@gnu.org
6575
6576EOF
6577          fi ;;
6578        esac
6579      fi
6580      break
6581    fi
6582  done
6583  IFS="$lt_save_ifs"
6584  MAGIC_CMD="$lt_save_MAGIC_CMD"
6585  ;;
6586esac
6587fi
6588
6589MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6590if test -n "$MAGIC_CMD"; then
6591  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6592echo "${ECHO_T}$MAGIC_CMD" >&6
6593else
6594  echo "$as_me:$LINENO: result: no" >&5
6595echo "${ECHO_T}no" >&6
6596fi
6597
6598  else
6599    MAGIC_CMD=:
6600  fi
6601fi
6602
6603  fi
6604  ;;
6605esac
6606
6607enable_dlopen=no
6608enable_win32_dll=no
6609
6610# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6611if test "${enable_libtool_lock+set}" = set; then
6612  enableval="$enable_libtool_lock"
6613
6614fi;
6615test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6616
6617
6618# Check whether --with-pic or --without-pic was given.
6619if test "${with_pic+set}" = set; then
6620  withval="$with_pic"
6621  pic_mode="$withval"
6622else
6623  pic_mode=default
6624fi;
6625test -z "$pic_mode" && pic_mode=default
6626
6627# Use C for the default configuration in the libtool script
6628tagname=
6629lt_save_CC="$CC"
6630ac_ext=c
6631ac_cpp='$CPP $CPPFLAGS'
6632ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6633ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6634ac_compiler_gnu=$ac_cv_c_compiler_gnu
6635
6636
6637# Source file extension for C test sources.
6638ac_ext=c
6639
6640# Object file extension for compiled C test sources.
6641objext=o
6642objext=$objext
6643
6644# Code to be used in simple compile tests
6645lt_simple_compile_test_code="int some_variable = 0;\n"
6646
6647# Code to be used in simple link tests
6648lt_simple_link_test_code='int main(){return(0);}\n'
6649
6650
6651# If no C compiler was specified, use CC.
6652LTCC=${LTCC-"$CC"}
6653
6654# If no C compiler flags were specified, use CFLAGS.
6655LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6656
6657# Allow CC to be a program name with arguments.
6658compiler=$CC
6659
6660
6661# save warnings/boilerplate of simple test code
6662ac_outfile=conftest.$ac_objext
6663printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6664eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6665_lt_compiler_boilerplate=`cat conftest.err`
6666$rm conftest*
6667
6668ac_outfile=conftest.$ac_objext
6669printf "$lt_simple_link_test_code" >conftest.$ac_ext
6670eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6671_lt_linker_boilerplate=`cat conftest.err`
6672$rm conftest*
6673
6674
6675## CAVEAT EMPTOR:
6676## There is no encapsulation within the following macros, do not change
6677## the running order or otherwise move them around unless you know exactly
6678## what you are doing...
6679
6680lt_prog_compiler_no_builtin_flag=
6681
6682if test "$GCC" = yes; then
6683  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6684
6685
6686echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6687echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6688if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6689  echo $ECHO_N "(cached) $ECHO_C" >&6
6690else
6691  lt_cv_prog_compiler_rtti_exceptions=no
6692  ac_outfile=conftest.$ac_objext
6693   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6694   lt_compiler_flag="-fno-rtti -fno-exceptions"
6695   # Insert the option either (1) after the last *FLAGS variable, or
6696   # (2) before a word containing "conftest.", or (3) at the end.
6697   # Note that $ac_compile itself does not contain backslashes and begins
6698   # with a dollar sign (not a hyphen), so the echo should work correctly.
6699   # The option is referenced via a variable to avoid confusing sed.
6700   lt_compile=`echo "$ac_compile" | $SED \
6701   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6702   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6703   -e 's:$: $lt_compiler_flag:'`
6704   (eval echo "\"\$as_me:6704: $lt_compile\"" >&5)
6705   (eval "$lt_compile" 2>conftest.err)
6706   ac_status=$?
6707   cat conftest.err >&5
6708   echo "$as_me:6708: \$? = $ac_status" >&5
6709   if (exit $ac_status) && test -s "$ac_outfile"; then
6710     # The compiler can only warn and ignore the option if not recognized
6711     # So say no if there are warnings other than the usual output.
6712     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6713     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6714     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6715       lt_cv_prog_compiler_rtti_exceptions=yes
6716     fi
6717   fi
6718   $rm conftest*
6719
6720fi
6721echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6722echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6723
6724if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6725    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6726else
6727    :
6728fi
6729
6730fi
6731
6732lt_prog_compiler_wl=
6733lt_prog_compiler_pic=
6734lt_prog_compiler_static=
6735
6736echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6737echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6738
6739  if test "$GCC" = yes; then
6740    lt_prog_compiler_wl='-Wl,'
6741    lt_prog_compiler_static='-static'
6742
6743    case $host_os in
6744      aix*)
6745      # All AIX code is PIC.
6746      if test "$host_cpu" = ia64; then
6747        # AIX 5 now supports IA64 processor
6748        lt_prog_compiler_static='-Bstatic'
6749      fi
6750      ;;
6751
6752    amigaos*)
6753      # FIXME: we need at least 68020 code to build shared libraries, but
6754      # adding the `-m68020' flag to GCC prevents building anything better,
6755      # like `-m68040'.
6756      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6757      ;;
6758
6759    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6760      # PIC is the default for these OSes.
6761      ;;
6762
6763    mingw* | pw32* | os2*)
6764      # This hack is so that the source file can tell whether it is being
6765      # built for inclusion in a dll (and should export symbols for example).
6766      lt_prog_compiler_pic='-DDLL_EXPORT'
6767      ;;
6768
6769    darwin* | rhapsody*)
6770      # PIC is the default on this platform
6771      # Common symbols not allowed in MH_DYLIB files
6772      lt_prog_compiler_pic='-fno-common'
6773      ;;
6774
6775    interix3*)
6776      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6777      # Instead, we relocate shared libraries at runtime.
6778      ;;
6779
6780    msdosdjgpp*)
6781      # Just because we use GCC doesn't mean we suddenly get shared libraries
6782      # on systems that don't support them.
6783      lt_prog_compiler_can_build_shared=no
6784      enable_shared=no
6785      ;;
6786
6787    sysv4*MP*)
6788      if test -d /usr/nec; then
6789        lt_prog_compiler_pic=-Kconform_pic
6790      fi
6791      ;;
6792
6793    hpux*)
6794      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6795      # not for PA HP-UX.
6796      case $host_cpu in
6797      hppa*64*|ia64*)
6798        # +Z the default
6799        ;;
6800      *)
6801        lt_prog_compiler_pic='-fPIC'
6802        ;;
6803      esac
6804      ;;
6805
6806    *)
6807      lt_prog_compiler_pic='-fPIC'
6808      ;;
6809    esac
6810  else
6811    # PORTME Check for flag to pass linker flags through the system compiler.
6812    case $host_os in
6813    aix*)
6814      lt_prog_compiler_wl='-Wl,'
6815      if test "$host_cpu" = ia64; then
6816        # AIX 5 now supports IA64 processor
6817        lt_prog_compiler_static='-Bstatic'
6818      else
6819        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6820      fi
6821      ;;
6822      darwin*)
6823        # PIC is the default on this platform
6824        # Common symbols not allowed in MH_DYLIB files
6825       case $cc_basename in
6826         xlc*)
6827         lt_prog_compiler_pic='-qnocommon'
6828         lt_prog_compiler_wl='-Wl,'
6829         ;;
6830       esac
6831       ;;
6832
6833    mingw* | pw32* | os2*)
6834      # This hack is so that the source file can tell whether it is being
6835      # built for inclusion in a dll (and should export symbols for example).
6836      lt_prog_compiler_pic='-DDLL_EXPORT'
6837      ;;
6838
6839    hpux9* | hpux10* | hpux11*)
6840      lt_prog_compiler_wl='-Wl,'
6841      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6842      # not for PA HP-UX.
6843      case $host_cpu in
6844      hppa*64*|ia64*)
6845        # +Z the default
6846        ;;
6847      *)
6848        lt_prog_compiler_pic='+Z'
6849        ;;
6850      esac
6851      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6852      lt_prog_compiler_static='${wl}-a ${wl}archive'
6853      ;;
6854
6855    irix5* | irix6* | nonstopux*)
6856      lt_prog_compiler_wl='-Wl,'
6857      # PIC (with -KPIC) is the default.
6858      lt_prog_compiler_static='-non_shared'
6859      ;;
6860
6861    newsos6)
6862      lt_prog_compiler_pic='-KPIC'
6863      lt_prog_compiler_static='-Bstatic'
6864      ;;
6865
6866    linux*)
6867      case $cc_basename in
6868      icc* | ecc*)
6869        lt_prog_compiler_wl='-Wl,'
6870        lt_prog_compiler_pic='-KPIC'
6871        lt_prog_compiler_static='-static'
6872        ;;
6873      pgcc* | pgf77* | pgf90* | pgf95*)
6874        # Portland Group compilers (*not* the Pentium gcc compiler,
6875        # which looks to be a dead project)
6876        lt_prog_compiler_wl='-Wl,'
6877        lt_prog_compiler_pic='-fpic'
6878        lt_prog_compiler_static='-Bstatic'
6879        ;;
6880      ccc*)
6881        lt_prog_compiler_wl='-Wl,'
6882        # All Alpha code is PIC.
6883        lt_prog_compiler_static='-non_shared'
6884        ;;
6885      esac
6886      ;;
6887
6888    osf3* | osf4* | osf5*)
6889      lt_prog_compiler_wl='-Wl,'
6890      # All OSF/1 code is PIC.
6891      lt_prog_compiler_static='-non_shared'
6892      ;;
6893
6894    solaris*)
6895      lt_prog_compiler_pic='-KPIC'
6896      lt_prog_compiler_static='-Bstatic'
6897      case $cc_basename in
6898      f77* | f90* | f95*)
6899        lt_prog_compiler_wl='-Qoption ld ';;
6900      *)
6901        lt_prog_compiler_wl='-Wl,';;
6902      esac
6903      ;;
6904
6905    sunos4*)
6906      lt_prog_compiler_wl='-Qoption ld '
6907      lt_prog_compiler_pic='-PIC'
6908      lt_prog_compiler_static='-Bstatic'
6909      ;;
6910
6911    sysv4 | sysv4.2uw2* | sysv4.3*)
6912      lt_prog_compiler_wl='-Wl,'
6913      lt_prog_compiler_pic='-KPIC'
6914      lt_prog_compiler_static='-Bstatic'
6915      ;;
6916
6917    sysv4*MP*)
6918      if test -d /usr/nec ;then
6919        lt_prog_compiler_pic='-Kconform_pic'
6920        lt_prog_compiler_static='-Bstatic'
6921      fi
6922      ;;
6923
6924    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6925      lt_prog_compiler_wl='-Wl,'
6926      lt_prog_compiler_pic='-KPIC'
6927      lt_prog_compiler_static='-Bstatic'
6928      ;;
6929
6930    unicos*)
6931      lt_prog_compiler_wl='-Wl,'
6932      lt_prog_compiler_can_build_shared=no
6933      ;;
6934
6935    uts4*)
6936      lt_prog_compiler_pic='-pic'
6937      lt_prog_compiler_static='-Bstatic'
6938      ;;
6939
6940    *)
6941      lt_prog_compiler_can_build_shared=no
6942      ;;
6943    esac
6944  fi
6945
6946echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6947echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6948
6949#
6950# Check to make sure the PIC flag actually works.
6951#
6952if test -n "$lt_prog_compiler_pic"; then
6953
6954echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6955echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6956if test "${lt_prog_compiler_pic_works+set}" = set; then
6957  echo $ECHO_N "(cached) $ECHO_C" >&6
6958else
6959  lt_prog_compiler_pic_works=no
6960  ac_outfile=conftest.$ac_objext
6961   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6962   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6963   # Insert the option either (1) after the last *FLAGS variable, or
6964   # (2) before a word containing "conftest.", or (3) at the end.
6965   # Note that $ac_compile itself does not contain backslashes and begins
6966   # with a dollar sign (not a hyphen), so the echo should work correctly.
6967   # The option is referenced via a variable to avoid confusing sed.
6968   lt_compile=`echo "$ac_compile" | $SED \
6969   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6970   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6971   -e 's:$: $lt_compiler_flag:'`
6972   (eval echo "\"\$as_me:6972: $lt_compile\"" >&5)
6973   (eval "$lt_compile" 2>conftest.err)
6974   ac_status=$?
6975   cat conftest.err >&5
6976   echo "$as_me:6976: \$? = $ac_status" >&5
6977   if (exit $ac_status) && test -s "$ac_outfile"; then
6978     # The compiler can only warn and ignore the option if not recognized
6979     # So say no if there are warnings other than the usual output.
6980     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6981     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6982     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6983       lt_prog_compiler_pic_works=yes
6984     fi
6985   fi
6986   $rm conftest*
6987
6988fi
6989echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6990echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6991
6992if test x"$lt_prog_compiler_pic_works" = xyes; then
6993    case $lt_prog_compiler_pic in
6994     "" | " "*) ;;
6995     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6996     esac
6997else
6998    lt_prog_compiler_pic=
6999     lt_prog_compiler_can_build_shared=no
7000fi
7001
7002fi
7003case $host_os in
7004  # For platforms which do not support PIC, -DPIC is meaningless:
7005  *djgpp*)
7006    lt_prog_compiler_pic=
7007    ;;
7008  *)
7009    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7010    ;;
7011esac
7012
7013#
7014# Check to make sure the static flag actually works.
7015#
7016wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7017echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7018echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7019if test "${lt_prog_compiler_static_works+set}" = set; then
7020  echo $ECHO_N "(cached) $ECHO_C" >&6
7021else
7022  lt_prog_compiler_static_works=no
7023   save_LDFLAGS="$LDFLAGS"
7024   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7025   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7026   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7027     # The linker can only warn and ignore the option if not recognized
7028     # So say no if there are warnings
7029     if test -s conftest.err; then
7030       # Append any errors to the config.log.
7031       cat conftest.err 1>&5
7032       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7033       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7034       if diff conftest.exp conftest.er2 >/dev/null; then
7035         lt_prog_compiler_static_works=yes
7036       fi
7037     else
7038       lt_prog_compiler_static_works=yes
7039     fi
7040   fi
7041   $rm conftest*
7042   LDFLAGS="$save_LDFLAGS"
7043
7044fi
7045echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7046echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7047
7048if test x"$lt_prog_compiler_static_works" = xyes; then
7049    :
7050else
7051    lt_prog_compiler_static=
7052fi
7053
7054
7055echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7056echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7057if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7058  echo $ECHO_N "(cached) $ECHO_C" >&6
7059else
7060  lt_cv_prog_compiler_c_o=no
7061   $rm -r conftest 2>/dev/null
7062   mkdir conftest
7063   cd conftest
7064   mkdir out
7065   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7066
7067   lt_compiler_flag="-o out/conftest2.$ac_objext"
7068   # Insert the option either (1) after the last *FLAGS variable, or
7069   # (2) before a word containing "conftest.", or (3) at the end.
7070   # Note that $ac_compile itself does not contain backslashes and begins
7071   # with a dollar sign (not a hyphen), so the echo should work correctly.
7072   lt_compile=`echo "$ac_compile" | $SED \
7073   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7074   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7075   -e 's:$: $lt_compiler_flag:'`
7076   (eval echo "\"\$as_me:7076: $lt_compile\"" >&5)
7077   (eval "$lt_compile" 2>out/conftest.err)
7078   ac_status=$?
7079   cat out/conftest.err >&5
7080   echo "$as_me:7080: \$? = $ac_status" >&5
7081   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7082   then
7083     # The compiler can only warn and ignore the option if not recognized
7084     # So say no if there are warnings
7085     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7086     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7087     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7088       lt_cv_prog_compiler_c_o=yes
7089     fi
7090   fi
7091   chmod u+w . 2>&5
7092   $rm conftest*
7093   # SGI C++ compiler will create directory out/ii_files/ for
7094   # template instantiation
7095   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7096   $rm out/* && rmdir out
7097   cd ..
7098   rmdir conftest
7099   $rm conftest*
7100
7101fi
7102echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7103echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7104
7105
7106hard_links="nottested"
7107if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7108  # do not overwrite the value of need_locks provided by the user
7109  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7110echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7111  hard_links=yes
7112  $rm conftest*
7113  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7114  touch conftest.a
7115  ln conftest.a conftest.b 2>&5 || hard_links=no
7116  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7117  echo "$as_me:$LINENO: result: $hard_links" >&5
7118echo "${ECHO_T}$hard_links" >&6
7119  if test "$hard_links" = no; then
7120    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7121echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7122    need_locks=warn
7123  fi
7124else
7125  need_locks=no
7126fi
7127
7128echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7129echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7130
7131  runpath_var=
7132  allow_undefined_flag=
7133  enable_shared_with_static_runtimes=no
7134  archive_cmds=
7135  archive_expsym_cmds=
7136  old_archive_From_new_cmds=
7137  old_archive_from_expsyms_cmds=
7138  export_dynamic_flag_spec=
7139  whole_archive_flag_spec=
7140  thread_safe_flag_spec=
7141  hardcode_libdir_flag_spec=
7142  hardcode_libdir_flag_spec_ld=
7143  hardcode_libdir_separator=
7144  hardcode_direct=no
7145  hardcode_minus_L=no
7146  hardcode_shlibpath_var=unsupported
7147  link_all_deplibs=unknown
7148  hardcode_automatic=no
7149  module_cmds=
7150  module_expsym_cmds=
7151  always_export_symbols=no
7152  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7153  # include_expsyms should be a list of space-separated symbols to be *always*
7154  # included in the symbol list
7155  include_expsyms=
7156  # exclude_expsyms can be an extended regexp of symbols to exclude
7157  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7158  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7159  # as well as any symbol that contains `d'.
7160  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7161  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7162  # platforms (ab)use it in PIC code, but their linkers get confused if
7163  # the symbol is explicitly referenced.  Since portable code cannot
7164  # rely on this symbol name, it's probably fine to never include it in
7165  # preloaded symbol tables.
7166  extract_expsyms_cmds=
7167  # Just being paranoid about ensuring that cc_basename is set.
7168  for cc_temp in $compiler""; do
7169  case $cc_temp in
7170    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7171    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7172    \-*) ;;
7173    *) break;;
7174  esac
7175done
7176cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7177
7178  case $host_os in
7179  cygwin* | mingw* | pw32*)
7180    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7181    # When not using gcc, we currently assume that we are using
7182    # Microsoft Visual C++.
7183    if test "$GCC" != yes; then
7184      with_gnu_ld=no
7185    fi
7186    ;;
7187  interix*)
7188    # we just hope/assume this is gcc and not c89 (= MSVC++)
7189    with_gnu_ld=yes
7190    ;;
7191  openbsd*)
7192    with_gnu_ld=no
7193    ;;
7194  esac
7195
7196  ld_shlibs=yes
7197  if test "$with_gnu_ld" = yes; then
7198    # If archive_cmds runs LD, not CC, wlarc should be empty
7199    wlarc='${wl}'
7200
7201    # Set some defaults for GNU ld with shared library support. These
7202    # are reset later if shared libraries are not supported. Putting them
7203    # here allows them to be overridden if necessary.
7204    runpath_var=LD_RUN_PATH
7205    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7206    export_dynamic_flag_spec='${wl}--export-dynamic'
7207    # ancient GNU ld didn't support --whole-archive et. al.
7208    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7209        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7210      else
7211        whole_archive_flag_spec=
7212    fi
7213    supports_anon_versioning=no
7214    case `$LD -v 2>/dev/null` in
7215      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7216      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7217      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7218      *\ 2.11.*) ;; # other 2.11 versions
7219      *) supports_anon_versioning=yes ;;
7220    esac
7221
7222    # See if GNU ld supports shared libraries.
7223    case $host_os in
7224    aix3* | aix4* | aix5*)
7225      # On AIX/PPC, the GNU linker is very broken
7226      if test "$host_cpu" != ia64; then
7227        ld_shlibs=no
7228        cat <<EOF 1>&2
7229
7230*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7231*** to be unable to reliably create shared libraries on AIX.
7232*** Therefore, libtool is disabling shared libraries support.  If you
7233*** really care for shared libraries, you may want to modify your PATH
7234*** so that a non-GNU linker is found, and then restart.
7235
7236EOF
7237      fi
7238      ;;
7239
7240    amigaos*)
7241      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)'
7242      hardcode_libdir_flag_spec='-L$libdir'
7243      hardcode_minus_L=yes
7244
7245      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7246      # that the semantics of dynamic libraries on AmigaOS, at least up
7247      # to version 4, is to share data among multiple programs linked
7248      # with the same dynamic library.  Since this doesn't match the
7249      # behavior of shared libraries on other platforms, we can't use
7250      # them.
7251      ld_shlibs=no
7252      ;;
7253
7254    beos*)
7255      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7256        allow_undefined_flag=unsupported
7257        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7258        # support --undefined.  This deserves some investigation.  FIXME
7259        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7260      else
7261        ld_shlibs=no
7262      fi
7263      ;;
7264
7265    cygwin* | mingw* | pw32*)
7266      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7267      # as there is no search path for DLLs.
7268      hardcode_libdir_flag_spec='-L$libdir'
7269      allow_undefined_flag=unsupported
7270      always_export_symbols=no
7271      enable_shared_with_static_runtimes=yes
7272      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7273
7274      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7275        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7276        # If the export-symbols file already is a .def file (1st line
7277        # is EXPORTS), use it as is; otherwise, prepend...
7278        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7279          cp $export_symbols $output_objdir/$soname.def;
7280        else
7281          echo EXPORTS > $output_objdir/$soname.def;
7282          cat $export_symbols >> $output_objdir/$soname.def;
7283        fi~
7284        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7285      else
7286        ld_shlibs=no
7287      fi
7288      ;;
7289
7290    interix3*)
7291      hardcode_direct=no
7292      hardcode_shlibpath_var=no
7293      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7294      export_dynamic_flag_spec='${wl}-E'
7295      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7296      # Instead, shared libraries are loaded at an image base (0x10000000 by
7297      # default) and relocated if they conflict, which is a slow very memory
7298      # consuming and fragmenting process.  To avoid this, we pick a random,
7299      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7300      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7301      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7302      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'
7303      ;;
7304
7305    linux*)
7306      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7307        tmp_addflag=
7308        case $cc_basename,$host_cpu in
7309        pgcc*)                          # Portland Group C compiler
7310          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'
7311          tmp_addflag=' $pic_flag'
7312          ;;
7313        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7314          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'
7315          tmp_addflag=' $pic_flag -Mnomain' ;;
7316        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7317          tmp_addflag=' -i_dynamic' ;;
7318        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7319          tmp_addflag=' -i_dynamic -nofor_main' ;;
7320        ifc* | ifort*)                  # Intel Fortran compiler
7321          tmp_addflag=' -nofor_main' ;;
7322        esac
7323        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7324
7325        if test $supports_anon_versioning = yes; then
7326          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7327  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7328  $echo "local: *; };" >> $output_objdir/$libname.ver~
7329          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7330        fi
7331      else
7332        ld_shlibs=no
7333      fi
7334      ;;
7335
7336    netbsd*)
7337      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7338        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7339        wlarc=
7340      else
7341        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7342        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7343      fi
7344      ;;
7345
7346    solaris*)
7347      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7348        ld_shlibs=no
7349        cat <<EOF 1>&2
7350
7351*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7352*** create shared libraries on Solaris systems.  Therefore, libtool
7353*** is disabling shared libraries support.  We urge you to upgrade GNU
7354*** binutils to release 2.9.1 or newer.  Another option is to modify
7355*** your PATH or compiler configuration so that the native linker is
7356*** used, and then restart.
7357
7358EOF
7359      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7360        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7361        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7362      else
7363        ld_shlibs=no
7364      fi
7365      ;;
7366
7367    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7368      case `$LD -v 2>&1` in
7369        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7370        ld_shlibs=no
7371        cat <<_LT_EOF 1>&2
7372
7373*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7374*** reliably create shared libraries on SCO systems.  Therefore, libtool
7375*** is disabling shared libraries support.  We urge you to upgrade GNU
7376*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7377*** your PATH or compiler configuration so that the native linker is
7378*** used, and then restart.
7379
7380_LT_EOF
7381        ;;
7382        *)
7383          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7384            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7385            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7386            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7387          else
7388            ld_shlibs=no
7389          fi
7390        ;;
7391      esac
7392      ;;
7393
7394    sunos4*)
7395      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7396      wlarc=
7397      hardcode_direct=yes
7398      hardcode_shlibpath_var=no
7399      ;;
7400
7401    *)
7402      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7403        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7404        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7405      else
7406        ld_shlibs=no
7407      fi
7408      ;;
7409    esac
7410
7411    if test "$ld_shlibs" = no; then
7412      runpath_var=
7413      hardcode_libdir_flag_spec=
7414      export_dynamic_flag_spec=
7415      whole_archive_flag_spec=
7416    fi
7417  else
7418    # PORTME fill in a description of your system's linker (not GNU ld)
7419    case $host_os in
7420    aix3*)
7421      allow_undefined_flag=unsupported
7422      always_export_symbols=yes
7423      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'
7424      # Note: this linker hardcodes the directories in LIBPATH if there
7425      # are no directories specified by -L.
7426      hardcode_minus_L=yes
7427      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7428        # Neither direct hardcoding nor static linking is supported with a
7429        # broken collect2.
7430        hardcode_direct=unsupported
7431      fi
7432      ;;
7433
7434    aix4* | aix5*)
7435      if test "$host_cpu" = ia64; then
7436        # On IA64, the linker does run time linking by default, so we don't
7437        # have to do anything special.
7438        aix_use_runtimelinking=no
7439        exp_sym_flag='-Bexport'
7440        no_entry_flag=""
7441      else
7442        # If we're using GNU nm, then we don't want the "-C" option.
7443        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7444        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7445          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'
7446        else
7447          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'
7448        fi
7449        aix_use_runtimelinking=no
7450
7451        # Test if we are trying to use run time linking or normal
7452        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7453        # need to do runtime linking.
7454        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7455          for ld_flag in $LDFLAGS; do
7456          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7457            aix_use_runtimelinking=yes
7458            break
7459          fi
7460          done
7461          ;;
7462        esac
7463
7464        exp_sym_flag='-bexport'
7465        no_entry_flag='-bnoentry'
7466      fi
7467
7468      # When large executables or shared objects are built, AIX ld can
7469      # have problems creating the table of contents.  If linking a library
7470      # or program results in "error TOC overflow" add -mminimal-toc to
7471      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7472      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7473
7474      archive_cmds=''
7475      hardcode_direct=yes
7476      hardcode_libdir_separator=':'
7477      link_all_deplibs=yes
7478
7479      if test "$GCC" = yes; then
7480        case $host_os in aix4.[012]|aix4.[012].*)
7481        # We only want to do this on AIX 4.2 and lower, the check
7482        # below for broken collect2 doesn't work under 4.3+
7483          collect2name=`${CC} -print-prog-name=collect2`
7484          if test -f "$collect2name" && \
7485           strings "$collect2name" | grep resolve_lib_name >/dev/null
7486          then
7487          # We have reworked collect2
7488          hardcode_direct=yes
7489          else
7490          # We have old collect2
7491          hardcode_direct=unsupported
7492          # It fails to find uninstalled libraries when the uninstalled
7493          # path is not listed in the libpath.  Setting hardcode_minus_L
7494          # to unsupported forces relinking
7495          hardcode_minus_L=yes
7496          hardcode_libdir_flag_spec='-L$libdir'
7497          hardcode_libdir_separator=
7498          fi
7499          ;;
7500        esac
7501        shared_flag='-shared'
7502        if test "$aix_use_runtimelinking" = yes; then
7503          shared_flag="$shared_flag "'${wl}-G'
7504        fi
7505      else
7506        # not using gcc
7507        if test "$host_cpu" = ia64; then
7508        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7509        # chokes on -Wl,-G. The following line is correct:
7510          shared_flag='-G'
7511        else
7512          if test "$aix_use_runtimelinking" = yes; then
7513            shared_flag='${wl}-G'
7514          else
7515            shared_flag='${wl}-bM:SRE'
7516          fi
7517        fi
7518      fi
7519
7520      # It seems that -bexpall does not export symbols beginning with
7521      # underscore (_), so it is better to generate a list of symbols to export.
7522      always_export_symbols=yes
7523      if test "$aix_use_runtimelinking" = yes; then
7524        # Warning - without using the other runtime loading flags (-brtl),
7525        # -berok will link without error, but may produce a broken library.
7526        allow_undefined_flag='-berok'
7527       # Determine the default libpath from the value encoded in an empty executable.
7528       cat >conftest.$ac_ext <<_ACEOF
7529/* confdefs.h.  */
7530_ACEOF
7531cat confdefs.h >>conftest.$ac_ext
7532cat >>conftest.$ac_ext <<_ACEOF
7533/* end confdefs.h.  */
7534
7535int
7536main ()
7537{
7538
7539  ;
7540  return 0;
7541}
7542_ACEOF
7543rm -f conftest.$ac_objext conftest$ac_exeext
7544if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7545  (eval $ac_link) 2>conftest.er1
7546  ac_status=$?
7547  grep -v '^ *+' conftest.er1 >conftest.err
7548  rm -f conftest.er1
7549  cat conftest.err >&5
7550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551  (exit $ac_status); } &&
7552         { ac_try='test -z "$ac_c_werror_flag"
7553                         || test ! -s conftest.err'
7554  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7555  (eval $ac_try) 2>&5
7556  ac_status=$?
7557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7558  (exit $ac_status); }; } &&
7559         { ac_try='test -s conftest$ac_exeext'
7560  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561  (eval $ac_try) 2>&5
7562  ac_status=$?
7563  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564  (exit $ac_status); }; }; then
7565
7566aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7567}'`
7568# Check for a 64-bit object if we didn't find anything.
7569if 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; }
7570}'`; fi
7571else
7572  echo "$as_me: failed program was:" >&5
7573sed 's/^/| /' conftest.$ac_ext >&5
7574
7575fi
7576rm -f conftest.err conftest.$ac_objext \
7577      conftest$ac_exeext conftest.$ac_ext
7578if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7579
7580       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7581        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"
7582       else
7583        if test "$host_cpu" = ia64; then
7584          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7585          allow_undefined_flag="-z nodefs"
7586          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"
7587        else
7588         # Determine the default libpath from the value encoded in an empty executable.
7589         cat >conftest.$ac_ext <<_ACEOF
7590/* confdefs.h.  */
7591_ACEOF
7592cat confdefs.h >>conftest.$ac_ext
7593cat >>conftest.$ac_ext <<_ACEOF
7594/* end confdefs.h.  */
7595
7596int
7597main ()
7598{
7599
7600  ;
7601  return 0;
7602}
7603_ACEOF
7604rm -f conftest.$ac_objext conftest$ac_exeext
7605if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7606  (eval $ac_link) 2>conftest.er1
7607  ac_status=$?
7608  grep -v '^ *+' conftest.er1 >conftest.err
7609  rm -f conftest.er1
7610  cat conftest.err >&5
7611  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612  (exit $ac_status); } &&
7613         { ac_try='test -z "$ac_c_werror_flag"
7614                         || test ! -s conftest.err'
7615  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7616  (eval $ac_try) 2>&5
7617  ac_status=$?
7618  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7619  (exit $ac_status); }; } &&
7620         { ac_try='test -s conftest$ac_exeext'
7621  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7622  (eval $ac_try) 2>&5
7623  ac_status=$?
7624  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625  (exit $ac_status); }; }; then
7626
7627aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7628}'`
7629# Check for a 64-bit object if we didn't find anything.
7630if 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; }
7631}'`; fi
7632else
7633  echo "$as_me: failed program was:" >&5
7634sed 's/^/| /' conftest.$ac_ext >&5
7635
7636fi
7637rm -f conftest.err conftest.$ac_objext \
7638      conftest$ac_exeext conftest.$ac_ext
7639if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7640
7641         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7642          # Warning - without using the other run time loading flags,
7643          # -berok will link without error, but may produce a broken library.
7644          no_undefined_flag=' ${wl}-bernotok'
7645          allow_undefined_flag=' ${wl}-berok'
7646          # Exported symbols can be pulled into shared objects from archives
7647          whole_archive_flag_spec='$convenience'
7648          archive_cmds_need_lc=yes
7649          # This is similar to how AIX traditionally builds its shared libraries.
7650          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'
7651        fi
7652      fi
7653      ;;
7654
7655    amigaos*)
7656      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)'
7657      hardcode_libdir_flag_spec='-L$libdir'
7658      hardcode_minus_L=yes
7659      # see comment about different semantics on the GNU ld section
7660      ld_shlibs=no
7661      ;;
7662
7663    bsdi[45]*)
7664      export_dynamic_flag_spec=-rdynamic
7665      ;;
7666
7667    cygwin* | mingw* | pw32*)
7668      # When not using gcc, we currently assume that we are using
7669      # Microsoft Visual C++.
7670      # hardcode_libdir_flag_spec is actually meaningless, as there is
7671      # no search path for DLLs.
7672      hardcode_libdir_flag_spec=' '
7673      allow_undefined_flag=unsupported
7674      # Tell ltmain to make .lib files, not .a files.
7675      libext=lib
7676      # Tell ltmain to make .dll files, not .so files.
7677      shrext_cmds=".dll"
7678      # FIXME: Setting linknames here is a bad hack.
7679      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7680      # The linker will automatically build a .lib file if we build a DLL.
7681      old_archive_From_new_cmds='true'
7682      # FIXME: Should let the user specify the lib program.
7683      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7684      fix_srcfile_path='`cygpath -w "$srcfile"`'
7685      enable_shared_with_static_runtimes=yes
7686      ;;
7687
7688    darwin* | rhapsody*)
7689      case $host_os in
7690        rhapsody* | darwin1.[012])
7691         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7692         ;;
7693       *) # Darwin 1.3 on
7694         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7695           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7696         else
7697           case ${MACOSX_DEPLOYMENT_TARGET} in
7698             10.[012])
7699               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7700               ;;
7701             10.*)
7702               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7703               ;;
7704           esac
7705         fi
7706         ;;
7707      esac
7708      archive_cmds_need_lc=no
7709      hardcode_direct=no
7710      hardcode_automatic=yes
7711      hardcode_shlibpath_var=unsupported
7712      whole_archive_flag_spec=''
7713      link_all_deplibs=yes
7714    if test "$GCC" = yes ; then
7715        output_verbose_link_cmd='echo'
7716        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7717      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7718      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7719      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}'
7720      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}'
7721    else
7722      case $cc_basename in
7723        xlc*)
7724         output_verbose_link_cmd='echo'
7725         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7726         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7727          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7728         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}'
7729          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}'
7730          ;;
7731       *)
7732         ld_shlibs=no
7733          ;;
7734      esac
7735    fi
7736      ;;
7737
7738    dgux*)
7739      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7740      hardcode_libdir_flag_spec='-L$libdir'
7741      hardcode_shlibpath_var=no
7742      ;;
7743
7744    freebsd1*)
7745      ld_shlibs=no
7746      ;;
7747
7748    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7749    # support.  Future versions do this automatically, but an explicit c++rt0.o
7750    # does not break anything, and helps significantly (at the cost of a little
7751    # extra space).
7752    freebsd2.2*)
7753      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7754      hardcode_libdir_flag_spec='-R$libdir'
7755      hardcode_direct=yes
7756      hardcode_shlibpath_var=no
7757      ;;
7758
7759    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7760    freebsd2*)
7761      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7762      hardcode_direct=yes
7763      hardcode_minus_L=yes
7764      hardcode_shlibpath_var=no
7765      ;;
7766
7767    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7768    freebsd* | kfreebsd*-gnu | dragonfly*)
7769      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7770      hardcode_libdir_flag_spec='-R$libdir'
7771      hardcode_direct=yes
7772      hardcode_shlibpath_var=no
7773      ;;
7774
7775    hpux9*)
7776      if test "$GCC" = yes; then
7777        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'
7778      else
7779        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'
7780      fi
7781      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7782      hardcode_libdir_separator=:
7783      hardcode_direct=yes
7784
7785      # hardcode_minus_L: Not really in the search PATH,
7786      # but as the default location of the library.
7787      hardcode_minus_L=yes
7788      export_dynamic_flag_spec='${wl}-E'
7789      ;;
7790
7791    hpux10*)
7792      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7793        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7794      else
7795        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7796      fi
7797      if test "$with_gnu_ld" = no; then
7798        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7799        hardcode_libdir_separator=:
7800
7801        hardcode_direct=yes
7802        export_dynamic_flag_spec='${wl}-E'
7803
7804        # hardcode_minus_L: Not really in the search PATH,
7805        # but as the default location of the library.
7806        hardcode_minus_L=yes
7807      fi
7808      ;;
7809
7810    hpux11*)
7811      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7812        case $host_cpu in
7813        hppa*64*)
7814          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7815          ;;
7816        ia64*)
7817          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7818          ;;
7819        *)
7820          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7821          ;;
7822        esac
7823      else
7824        case $host_cpu in
7825        hppa*64*)
7826          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7827          ;;
7828        ia64*)
7829          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7830          ;;
7831        *)
7832          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7833          ;;
7834        esac
7835      fi
7836      if test "$with_gnu_ld" = no; then
7837        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7838        hardcode_libdir_separator=:
7839
7840        case $host_cpu in
7841        hppa*64*|ia64*)
7842          hardcode_libdir_flag_spec_ld='+b $libdir'
7843          hardcode_direct=no
7844          hardcode_shlibpath_var=no
7845          ;;
7846        *)
7847          hardcode_direct=yes
7848          export_dynamic_flag_spec='${wl}-E'
7849
7850          # hardcode_minus_L: Not really in the search PATH,
7851          # but as the default location of the library.
7852          hardcode_minus_L=yes
7853          ;;
7854        esac
7855      fi
7856      ;;
7857
7858    irix5* | irix6* | nonstopux*)
7859      if test "$GCC" = yes; then
7860        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'
7861      else
7862        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'
7863        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7864      fi
7865      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7866      hardcode_libdir_separator=:
7867      link_all_deplibs=yes
7868      ;;
7869
7870    netbsd*)
7871      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7872        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7873      else
7874        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7875      fi
7876      hardcode_libdir_flag_spec='-R$libdir'
7877      hardcode_direct=yes
7878      hardcode_shlibpath_var=no
7879      ;;
7880
7881    newsos6)
7882      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7883      hardcode_direct=yes
7884      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7885      hardcode_libdir_separator=:
7886      hardcode_shlibpath_var=no
7887      ;;
7888
7889    openbsd*)
7890      hardcode_direct=yes
7891      hardcode_shlibpath_var=no
7892      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7893        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7894        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7895        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7896        export_dynamic_flag_spec='${wl}-E'
7897      else
7898       case $host_os in
7899         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7900           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7901           hardcode_libdir_flag_spec='-R$libdir'
7902           ;;
7903         *)
7904           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7905           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7906           ;;
7907       esac
7908      fi
7909      ;;
7910
7911    os2*)
7912      hardcode_libdir_flag_spec='-L$libdir'
7913      hardcode_minus_L=yes
7914      allow_undefined_flag=unsupported
7915      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'
7916      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7917      ;;
7918
7919    osf3*)
7920      if test "$GCC" = yes; then
7921        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7922        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'
7923      else
7924        allow_undefined_flag=' -expect_unresolved \*'
7925        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'
7926      fi
7927      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7928      hardcode_libdir_separator=:
7929      ;;
7930
7931    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7932      if test "$GCC" = yes; then
7933        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7934        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'
7935        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7936      else
7937        allow_undefined_flag=' -expect_unresolved \*'
7938        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'
7939        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7940        $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'
7941
7942        # Both c and cxx compiler support -rpath directly
7943        hardcode_libdir_flag_spec='-rpath $libdir'
7944      fi
7945      hardcode_libdir_separator=:
7946      ;;
7947
7948    solaris*)
7949      no_undefined_flag=' -z text'
7950      if test "$GCC" = yes; then
7951        wlarc='${wl}'
7952        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7953        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7954          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7955      else
7956        wlarc=''
7957        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7958        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7959        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7960      fi
7961      hardcode_libdir_flag_spec='-R$libdir'
7962      hardcode_shlibpath_var=no
7963      case $host_os in
7964      solaris2.[0-5] | solaris2.[0-5].*) ;;
7965      *)
7966        # The compiler driver will combine linker options so we
7967        # cannot just pass the convience library names through
7968        # without $wl, iff we do not link with $LD.
7969        # Luckily, gcc supports the same syntax we need for Sun Studio.
7970        # Supported since Solaris 2.6 (maybe 2.5.1?)
7971        case $wlarc in
7972        '')
7973          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7974        *)
7975          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' ;;
7976        esac ;;
7977      esac
7978      link_all_deplibs=yes
7979      ;;
7980
7981    sunos4*)
7982      if test "x$host_vendor" = xsequent; then
7983        # Use $CC to link under sequent, because it throws in some extra .o
7984        # files that make .init and .fini sections work.
7985        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7986      else
7987        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7988      fi
7989      hardcode_libdir_flag_spec='-L$libdir'
7990      hardcode_direct=yes
7991      hardcode_minus_L=yes
7992      hardcode_shlibpath_var=no
7993      ;;
7994
7995    sysv4)
7996      case $host_vendor in
7997        sni)
7998          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7999          hardcode_direct=yes # is this really true???
8000        ;;
8001        siemens)
8002          ## LD is ld it makes a PLAMLIB
8003          ## CC just makes a GrossModule.
8004          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8005          reload_cmds='$CC -r -o $output$reload_objs'
8006          hardcode_direct=no
8007        ;;
8008        motorola)
8009          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8010          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8011        ;;
8012      esac
8013      runpath_var='LD_RUN_PATH'
8014      hardcode_shlibpath_var=no
8015      ;;
8016
8017    sysv4.3*)
8018      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8019      hardcode_shlibpath_var=no
8020      export_dynamic_flag_spec='-Bexport'
8021      ;;
8022
8023    sysv4*MP*)
8024      if test -d /usr/nec; then
8025        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8026        hardcode_shlibpath_var=no
8027        runpath_var=LD_RUN_PATH
8028        hardcode_runpath_var=yes
8029        ld_shlibs=yes
8030      fi
8031      ;;
8032
8033    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8034      no_undefined_flag='${wl}-z,text'
8035      archive_cmds_need_lc=no
8036      hardcode_shlibpath_var=no
8037      runpath_var='LD_RUN_PATH'
8038
8039      if test "$GCC" = yes; then
8040        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8041        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8042      else
8043        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8044        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8045      fi
8046      ;;
8047
8048    sysv5* | sco3.2v5* | sco5v6*)
8049      # Note: We can NOT use -z defs as we might desire, because we do not
8050      # link with -lc, and that would cause any symbols used from libc to
8051      # always be unresolved, which means just about no library would
8052      # ever link correctly.  If we're not using GNU ld we use -z text
8053      # though, which does catch some bad symbols but isn't as heavy-handed
8054      # as -z defs.
8055      no_undefined_flag='${wl}-z,text'
8056      allow_undefined_flag='${wl}-z,nodefs'
8057      archive_cmds_need_lc=no
8058      hardcode_shlibpath_var=no
8059      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8060      hardcode_libdir_separator=':'
8061      link_all_deplibs=yes
8062      export_dynamic_flag_spec='${wl}-Bexport'
8063      runpath_var='LD_RUN_PATH'
8064
8065      if test "$GCC" = yes; then
8066        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8067        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8068      else
8069        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8070        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8071      fi
8072      ;;
8073
8074    uts4*)
8075      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076      hardcode_libdir_flag_spec='-L$libdir'
8077      hardcode_shlibpath_var=no
8078      ;;
8079
8080    *)
8081      ld_shlibs=no
8082      ;;
8083    esac
8084  fi
8085
8086echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8087echo "${ECHO_T}$ld_shlibs" >&6
8088test "$ld_shlibs" = no && can_build_shared=no
8089
8090#
8091# Do we need to explicitly link libc?
8092#
8093case "x$archive_cmds_need_lc" in
8094x|xyes)
8095  # Assume -lc should be added
8096  archive_cmds_need_lc=yes
8097
8098  if test "$enable_shared" = yes && test "$GCC" = yes; then
8099    case $archive_cmds in
8100    *'~'*)
8101      # FIXME: we may have to deal with multi-command sequences.
8102      ;;
8103    '$CC '*)
8104      # Test whether the compiler implicitly links with -lc since on some
8105      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8106      # to ld, don't add -lc before -lgcc.
8107      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8108echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8109      $rm conftest*
8110      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8111
8112      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8113  (eval $ac_compile) 2>&5
8114  ac_status=$?
8115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116  (exit $ac_status); } 2>conftest.err; then
8117        soname=conftest
8118        lib=conftest
8119        libobjs=conftest.$ac_objext
8120        deplibs=
8121        wl=$lt_prog_compiler_wl
8122        pic_flag=$lt_prog_compiler_pic
8123        compiler_flags=-v
8124        linker_flags=-v
8125        verstring=
8126        output_objdir=.
8127        libname=conftest
8128        lt_save_allow_undefined_flag=$allow_undefined_flag
8129        allow_undefined_flag=
8130        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8131  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8132  ac_status=$?
8133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134  (exit $ac_status); }
8135        then
8136          archive_cmds_need_lc=no
8137        else
8138          archive_cmds_need_lc=yes
8139        fi
8140        allow_undefined_flag=$lt_save_allow_undefined_flag
8141      else
8142        cat conftest.err 1>&5
8143      fi
8144      $rm conftest*
8145      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8146echo "${ECHO_T}$archive_cmds_need_lc" >&6
8147      ;;
8148    esac
8149  fi
8150  ;;
8151esac
8152
8153echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8154echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8155library_names_spec=
8156libname_spec='lib$name'
8157soname_spec=
8158shrext_cmds=".so"
8159postinstall_cmds=
8160postuninstall_cmds=
8161finish_cmds=
8162finish_eval=
8163shlibpath_var=
8164shlibpath_overrides_runpath=unknown
8165version_type=none
8166dynamic_linker="$host_os ld.so"
8167sys_lib_dlsearch_path_spec="/lib /usr/lib"
8168if test "$GCC" = yes; then
8169  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8170  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8171    # if the path contains ";" then we assume it to be the separator
8172    # otherwise default to the standard path separator (i.e. ":") - it is
8173    # assumed that no part of a normal pathname contains ";" but that should
8174    # okay in the real world where ";" in dirpaths is itself problematic.
8175    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8176  else
8177    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8178  fi
8179else
8180  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8181fi
8182need_lib_prefix=unknown
8183hardcode_into_libs=no
8184
8185# when you set need_version to no, make sure it does not cause -set_version
8186# flags to be left without arguments
8187need_version=unknown
8188
8189case $host_os in
8190aix3*)
8191  version_type=linux
8192  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8193  shlibpath_var=LIBPATH
8194
8195  # AIX 3 has no versioning support, so we append a major version to the name.
8196  soname_spec='${libname}${release}${shared_ext}$major'
8197  ;;
8198
8199aix4* | aix5*)
8200  version_type=linux
8201  need_lib_prefix=no
8202  need_version=no
8203  hardcode_into_libs=yes
8204  if test "$host_cpu" = ia64; then
8205    # AIX 5 supports IA64
8206    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8207    shlibpath_var=LD_LIBRARY_PATH
8208  else
8209    # With GCC up to 2.95.x, collect2 would create an import file
8210    # for dependence libraries.  The import file would start with
8211    # the line `#! .'.  This would cause the generated library to
8212    # depend on `.', always an invalid library.  This was fixed in
8213    # development snapshots of GCC prior to 3.0.
8214    case $host_os in
8215      aix4 | aix4.[01] | aix4.[01].*)
8216      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8217           echo ' yes '
8218           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8219        :
8220      else
8221        can_build_shared=no
8222      fi
8223      ;;
8224    esac
8225    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8226    # soname into executable. Probably we can add versioning support to
8227    # collect2, so additional links can be useful in future.
8228    if test "$aix_use_runtimelinking" = yes; then
8229      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8230      # instead of lib<name>.a to let people know that these are not
8231      # typical AIX shared libraries.
8232      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8233    else
8234      # We preserve .a as extension for shared libraries through AIX4.2
8235      # and later when we are not doing run time linking.
8236      library_names_spec='${libname}${release}.a $libname.a'
8237      soname_spec='${libname}${release}${shared_ext}$major'
8238    fi
8239    shlibpath_var=LIBPATH
8240  fi
8241  ;;
8242
8243amigaos*)
8244  library_names_spec='$libname.ixlibrary $libname.a'
8245  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8246  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'
8247  ;;
8248
8249beos*)
8250  library_names_spec='${libname}${shared_ext}'
8251  dynamic_linker="$host_os ld.so"
8252  shlibpath_var=LIBRARY_PATH
8253  ;;
8254
8255bsdi[45]*)
8256  version_type=linux
8257  need_version=no
8258  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8259  soname_spec='${libname}${release}${shared_ext}$major'
8260  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8261  shlibpath_var=LD_LIBRARY_PATH
8262  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8263  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8264  # the default ld.so.conf also contains /usr/contrib/lib and
8265  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8266  # libtool to hard-code these into programs
8267  ;;
8268
8269cygwin* | mingw* | pw32*)
8270  version_type=windows
8271  shrext_cmds=".dll"
8272  need_version=no
8273  need_lib_prefix=no
8274
8275  case $GCC,$host_os in
8276  yes,cygwin* | yes,mingw* | yes,pw32*)
8277    library_names_spec='$libname.dll.a'
8278    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8279    postinstall_cmds='base_file=`basename \${file}`~
8280      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8281      dldir=$destdir/`dirname \$dlpath`~
8282      test -d \$dldir || mkdir -p \$dldir~
8283      $install_prog $dir/$dlname \$dldir/$dlname~
8284      chmod a+x \$dldir/$dlname'
8285    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8286      dlpath=$dir/\$dldll~
8287       $rm \$dlpath'
8288    shlibpath_overrides_runpath=yes
8289
8290    case $host_os in
8291    cygwin*)
8292      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8293      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8294      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8295      ;;
8296    mingw*)
8297      # MinGW DLLs use traditional 'lib' prefix
8298      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8299      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8300      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8301        # It is most probably a Windows format PATH printed by
8302        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8303        # path with ; separators, and with drive letters. We can handle the
8304        # drive letters (cygwin fileutils understands them), so leave them,
8305        # especially as we might pass files found there to a mingw objdump,
8306        # which wouldn't understand a cygwinified path. Ahh.
8307        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8308      else
8309        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8310      fi
8311      ;;
8312    pw32*)
8313      # pw32 DLLs use 'pw' prefix rather than 'lib'
8314      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8315      ;;
8316    esac
8317    ;;
8318
8319  *)
8320    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8321    ;;
8322  esac
8323  dynamic_linker='Win32 ld.exe'
8324  # FIXME: first we should search . and the directory the executable is in
8325  shlibpath_var=PATH
8326  ;;
8327
8328darwin* | rhapsody*)
8329  dynamic_linker="$host_os dyld"
8330  version_type=darwin
8331  need_lib_prefix=no
8332  need_version=no
8333  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8334  soname_spec='${libname}${release}${major}$shared_ext'
8335  shlibpath_overrides_runpath=yes
8336  shlibpath_var=DYLD_LIBRARY_PATH
8337  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8338  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8339  if test "$GCC" = yes; then
8340    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"`
8341  else
8342    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8343  fi
8344  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8345  ;;
8346
8347dgux*)
8348  version_type=linux
8349  need_lib_prefix=no
8350  need_version=no
8351  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8352  soname_spec='${libname}${release}${shared_ext}$major'
8353  shlibpath_var=LD_LIBRARY_PATH
8354  ;;
8355
8356freebsd1*)
8357  dynamic_linker=no
8358  ;;
8359
8360kfreebsd*-gnu)
8361  version_type=linux
8362  need_lib_prefix=no
8363  need_version=no
8364  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8365  soname_spec='${libname}${release}${shared_ext}$major'
8366  shlibpath_var=LD_LIBRARY_PATH
8367  shlibpath_overrides_runpath=no
8368  hardcode_into_libs=yes
8369  dynamic_linker='GNU ld.so'
8370  ;;
8371
8372freebsd* | dragonfly*)
8373  # DragonFly does not have aout.  When/if they implement a new
8374  # versioning mechanism, adjust this.
8375  if test -x /usr/bin/objformat; then
8376    objformat=`/usr/bin/objformat`
8377  else
8378    case $host_os in
8379    freebsd[123]*) objformat=aout ;;
8380    *) objformat=elf ;;
8381    esac
8382  fi
8383  version_type=freebsd-$objformat
8384  case $version_type in
8385    freebsd-elf*)
8386      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8387      need_version=no
8388      need_lib_prefix=no
8389      ;;
8390    freebsd-*)
8391      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8392      need_version=yes
8393      ;;
8394  esac
8395  shlibpath_var=LD_LIBRARY_PATH
8396  case $host_os in
8397  freebsd2*)
8398    shlibpath_overrides_runpath=yes
8399    ;;
8400  freebsd3.[01]* | freebsdelf3.[01]*)
8401    shlibpath_overrides_runpath=yes
8402    hardcode_into_libs=yes
8403    ;;
8404  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8405  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8406    shlibpath_overrides_runpath=no
8407    hardcode_into_libs=yes
8408    ;;
8409  freebsd*) # from 4.6 on
8410    shlibpath_overrides_runpath=yes
8411    hardcode_into_libs=yes
8412    ;;
8413  esac
8414  ;;
8415
8416gnu*)
8417  version_type=linux
8418  need_lib_prefix=no
8419  need_version=no
8420  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8421  soname_spec='${libname}${release}${shared_ext}$major'
8422  shlibpath_var=LD_LIBRARY_PATH
8423  hardcode_into_libs=yes
8424  ;;
8425
8426hpux9* | hpux10* | hpux11*)
8427  # Give a soname corresponding to the major version so that dld.sl refuses to
8428  # link against other versions.
8429  version_type=sunos
8430  need_lib_prefix=no
8431  need_version=no
8432  case $host_cpu in
8433  ia64*)
8434    shrext_cmds='.so'
8435    hardcode_into_libs=yes
8436    dynamic_linker="$host_os dld.so"
8437    shlibpath_var=LD_LIBRARY_PATH
8438    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8439    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8440    soname_spec='${libname}${release}${shared_ext}$major'
8441    if test "X$HPUX_IA64_MODE" = X32; then
8442      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8443    else
8444      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8445    fi
8446    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8447    ;;
8448   hppa*64*)
8449     shrext_cmds='.sl'
8450     hardcode_into_libs=yes
8451     dynamic_linker="$host_os dld.sl"
8452     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8453     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8457     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8458     ;;
8459   *)
8460    shrext_cmds='.sl'
8461    dynamic_linker="$host_os dld.sl"
8462    shlibpath_var=SHLIB_PATH
8463    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8464    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8465    soname_spec='${libname}${release}${shared_ext}$major'
8466    ;;
8467  esac
8468  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8469  postinstall_cmds='chmod 555 $lib'
8470  ;;
8471
8472interix3*)
8473  version_type=linux
8474  need_lib_prefix=no
8475  need_version=no
8476  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8477  soname_spec='${libname}${release}${shared_ext}$major'
8478  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8479  shlibpath_var=LD_LIBRARY_PATH
8480  shlibpath_overrides_runpath=no
8481  hardcode_into_libs=yes
8482  ;;
8483
8484irix5* | irix6* | nonstopux*)
8485  case $host_os in
8486    nonstopux*) version_type=nonstopux ;;
8487    *)
8488        if test "$lt_cv_prog_gnu_ld" = yes; then
8489                version_type=linux
8490        else
8491                version_type=irix
8492        fi ;;
8493  esac
8494  need_lib_prefix=no
8495  need_version=no
8496  soname_spec='${libname}${release}${shared_ext}$major'
8497  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8498  case $host_os in
8499  irix5* | nonstopux*)
8500    libsuff= shlibsuff=
8501    ;;
8502  *)
8503    case $LD in # libtool.m4 will add one of these switches to LD
8504    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8505      libsuff= shlibsuff= libmagic=32-bit;;
8506    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8507      libsuff=32 shlibsuff=N32 libmagic=N32;;
8508    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8509      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8510    *) libsuff= shlibsuff= libmagic=never-match;;
8511    esac
8512    ;;
8513  esac
8514  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8515  shlibpath_overrides_runpath=no
8516  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8517  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8518  hardcode_into_libs=yes
8519  ;;
8520
8521# No shared lib support for Linux oldld, aout, or coff.
8522linux*oldld* | linux*aout* | linux*coff*)
8523  dynamic_linker=no
8524  ;;
8525
8526# This must be Linux ELF.
8527linux*)
8528  version_type=linux
8529  need_lib_prefix=no
8530  need_version=no
8531  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8532  soname_spec='${libname}${release}${shared_ext}$major'
8533  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8534  shlibpath_var=LD_LIBRARY_PATH
8535  shlibpath_overrides_runpath=no
8536  # This implies no fast_install, which is unacceptable.
8537  # Some rework will be needed to allow for fast_install
8538  # before this can be enabled.
8539  hardcode_into_libs=yes
8540
8541  # Append ld.so.conf contents to the search path
8542  if test -f /etc/ld.so.conf; then
8543    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' ' '`
8544    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8545  fi
8546
8547  # We used to test for /lib/ld.so.1 and disable shared libraries on
8548  # powerpc, because MkLinux only supported shared libraries with the
8549  # GNU dynamic linker.  Since this was broken with cross compilers,
8550  # most powerpc-linux boxes support dynamic linking these days and
8551  # people can always --disable-shared, the test was removed, and we
8552  # assume the GNU/Linux dynamic linker is in use.
8553  dynamic_linker='GNU/Linux ld.so'
8554  ;;
8555
8556knetbsd*-gnu)
8557  version_type=linux
8558  need_lib_prefix=no
8559  need_version=no
8560  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8561  soname_spec='${libname}${release}${shared_ext}$major'
8562  shlibpath_var=LD_LIBRARY_PATH
8563  shlibpath_overrides_runpath=no
8564  hardcode_into_libs=yes
8565  dynamic_linker='GNU ld.so'
8566  ;;
8567
8568netbsd*)
8569  version_type=sunos
8570  need_lib_prefix=no
8571  need_version=no
8572  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8573    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8574    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8575    dynamic_linker='NetBSD (a.out) ld.so'
8576  else
8577    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8578    soname_spec='${libname}${release}${shared_ext}$major'
8579    dynamic_linker='NetBSD ld.elf_so'
8580  fi
8581  shlibpath_var=LD_LIBRARY_PATH
8582  shlibpath_overrides_runpath=yes
8583  hardcode_into_libs=yes
8584  ;;
8585
8586newsos6)
8587  version_type=linux
8588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8589  shlibpath_var=LD_LIBRARY_PATH
8590  shlibpath_overrides_runpath=yes
8591  ;;
8592
8593nto-qnx*)
8594  version_type=linux
8595  need_lib_prefix=no
8596  need_version=no
8597  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8598  soname_spec='${libname}${release}${shared_ext}$major'
8599  shlibpath_var=LD_LIBRARY_PATH
8600  shlibpath_overrides_runpath=yes
8601  ;;
8602
8603openbsd*)
8604  version_type=sunos
8605  sys_lib_dlsearch_path_spec="/usr/lib"
8606  need_lib_prefix=no
8607  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8608  case $host_os in
8609    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8610    *)                         need_version=no  ;;
8611  esac
8612  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8613  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8614  shlibpath_var=LD_LIBRARY_PATH
8615  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8616    case $host_os in
8617      openbsd2.[89] | openbsd2.[89].*)
8618        shlibpath_overrides_runpath=no
8619        ;;
8620      *)
8621        shlibpath_overrides_runpath=yes
8622        ;;
8623      esac
8624  else
8625    shlibpath_overrides_runpath=yes
8626  fi
8627  ;;
8628
8629os2*)
8630  libname_spec='$name'
8631  shrext_cmds=".dll"
8632  need_lib_prefix=no
8633  library_names_spec='$libname${shared_ext} $libname.a'
8634  dynamic_linker='OS/2 ld.exe'
8635  shlibpath_var=LIBPATH
8636  ;;
8637
8638osf3* | osf4* | osf5*)
8639  version_type=osf
8640  need_lib_prefix=no
8641  need_version=no
8642  soname_spec='${libname}${release}${shared_ext}$major'
8643  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8644  shlibpath_var=LD_LIBRARY_PATH
8645  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8646  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8647  ;;
8648
8649solaris*)
8650  version_type=linux
8651  need_lib_prefix=no
8652  need_version=no
8653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8654  soname_spec='${libname}${release}${shared_ext}$major'
8655  shlibpath_var=LD_LIBRARY_PATH
8656  shlibpath_overrides_runpath=yes
8657  hardcode_into_libs=yes
8658  # ldd complains unless libraries are executable
8659  postinstall_cmds='chmod +x $lib'
8660  ;;
8661
8662sunos4*)
8663  version_type=sunos
8664  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8665  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8666  shlibpath_var=LD_LIBRARY_PATH
8667  shlibpath_overrides_runpath=yes
8668  if test "$with_gnu_ld" = yes; then
8669    need_lib_prefix=no
8670  fi
8671  need_version=yes
8672  ;;
8673
8674sysv4 | sysv4.3*)
8675  version_type=linux
8676  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8677  soname_spec='${libname}${release}${shared_ext}$major'
8678  shlibpath_var=LD_LIBRARY_PATH
8679  case $host_vendor in
8680    sni)
8681      shlibpath_overrides_runpath=no
8682      need_lib_prefix=no
8683      export_dynamic_flag_spec='${wl}-Blargedynsym'
8684      runpath_var=LD_RUN_PATH
8685      ;;
8686    siemens)
8687      need_lib_prefix=no
8688      ;;
8689    motorola)
8690      need_lib_prefix=no
8691      need_version=no
8692      shlibpath_overrides_runpath=no
8693      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8694      ;;
8695  esac
8696  ;;
8697
8698sysv4*MP*)
8699  if test -d /usr/nec ;then
8700    version_type=linux
8701    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8702    soname_spec='$libname${shared_ext}.$major'
8703    shlibpath_var=LD_LIBRARY_PATH
8704  fi
8705  ;;
8706
8707sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8708  version_type=freebsd-elf
8709  need_lib_prefix=no
8710  need_version=no
8711  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8712  soname_spec='${libname}${release}${shared_ext}$major'
8713  shlibpath_var=LD_LIBRARY_PATH
8714  hardcode_into_libs=yes
8715  if test "$with_gnu_ld" = yes; then
8716    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8717    shlibpath_overrides_runpath=no
8718  else
8719    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8720    shlibpath_overrides_runpath=yes
8721    case $host_os in
8722      sco3.2v5*)
8723        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8724        ;;
8725    esac
8726  fi
8727  sys_lib_dlsearch_path_spec='/usr/lib'
8728  ;;
8729
8730uts4*)
8731  version_type=linux
8732  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8733  soname_spec='${libname}${release}${shared_ext}$major'
8734  shlibpath_var=LD_LIBRARY_PATH
8735  ;;
8736
8737*)
8738  dynamic_linker=no
8739  ;;
8740esac
8741echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8742echo "${ECHO_T}$dynamic_linker" >&6
8743test "$dynamic_linker" = no && can_build_shared=no
8744
8745variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8746if test "$GCC" = yes; then
8747  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8748fi
8749
8750echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8751echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8752hardcode_action=
8753if test -n "$hardcode_libdir_flag_spec" || \
8754   test -n "$runpath_var" || \
8755   test "X$hardcode_automatic" = "Xyes" ; then
8756
8757  # We can hardcode non-existant directories.
8758  if test "$hardcode_direct" != no &&
8759     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8760     # have to relink, otherwise we might link with an installed library
8761     # when we should be linking with a yet-to-be-installed one
8762     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8763     test "$hardcode_minus_L" != no; then
8764    # Linking always hardcodes the temporary library directory.
8765    hardcode_action=relink
8766  else
8767    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8768    hardcode_action=immediate
8769  fi
8770else
8771  # We cannot hardcode anything, or else we can only hardcode existing
8772  # directories.
8773  hardcode_action=unsupported
8774fi
8775echo "$as_me:$LINENO: result: $hardcode_action" >&5
8776echo "${ECHO_T}$hardcode_action" >&6
8777
8778if test "$hardcode_action" = relink; then
8779  # Fast installation is not supported
8780  enable_fast_install=no
8781elif test "$shlibpath_overrides_runpath" = yes ||
8782     test "$enable_shared" = no; then
8783  # Fast installation is not necessary
8784  enable_fast_install=needless
8785fi
8786
8787striplib=
8788old_striplib=
8789echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8790echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8791if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8792  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8793  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8794  echo "$as_me:$LINENO: result: yes" >&5
8795echo "${ECHO_T}yes" >&6
8796else
8797# FIXME - insert some real tests, host_os isn't really good enough
8798  case $host_os in
8799   darwin*)
8800       if test -n "$STRIP" ; then
8801         striplib="$STRIP -x"
8802         echo "$as_me:$LINENO: result: yes" >&5
8803echo "${ECHO_T}yes" >&6
8804       else
8805  echo "$as_me:$LINENO: result: no" >&5
8806echo "${ECHO_T}no" >&6
8807fi
8808       ;;
8809   *)
8810  echo "$as_me:$LINENO: result: no" >&5
8811echo "${ECHO_T}no" >&6
8812    ;;
8813  esac
8814fi
8815
8816if test "x$enable_dlopen" != xyes; then
8817  enable_dlopen=unknown
8818  enable_dlopen_self=unknown
8819  enable_dlopen_self_static=unknown
8820else
8821  lt_cv_dlopen=no
8822  lt_cv_dlopen_libs=
8823
8824  case $host_os in
8825  beos*)
8826    lt_cv_dlopen="load_add_on"
8827    lt_cv_dlopen_libs=
8828    lt_cv_dlopen_self=yes
8829    ;;
8830
8831  mingw* | pw32*)
8832    lt_cv_dlopen="LoadLibrary"
8833    lt_cv_dlopen_libs=
8834   ;;
8835
8836  cygwin*)
8837    lt_cv_dlopen="dlopen"
8838    lt_cv_dlopen_libs=
8839   ;;
8840
8841  darwin*)
8842  # if libdl is installed we need to link against it
8843    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8844echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8845if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8846  echo $ECHO_N "(cached) $ECHO_C" >&6
8847else
8848  ac_check_lib_save_LIBS=$LIBS
8849LIBS="-ldl  $LIBS"
8850cat >conftest.$ac_ext <<_ACEOF
8851/* confdefs.h.  */
8852_ACEOF
8853cat confdefs.h >>conftest.$ac_ext
8854cat >>conftest.$ac_ext <<_ACEOF
8855/* end confdefs.h.  */
8856
8857/* Override any gcc2 internal prototype to avoid an error.  */
8858#ifdef __cplusplus
8859extern "C"
8860#endif
8861/* We use char because int might match the return type of a gcc2
8862   builtin and then its argument prototype would still apply.  */
8863char dlopen ();
8864int
8865main ()
8866{
8867dlopen ();
8868  ;
8869  return 0;
8870}
8871_ACEOF
8872rm -f conftest.$ac_objext conftest$ac_exeext
8873if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8874  (eval $ac_link) 2>conftest.er1
8875  ac_status=$?
8876  grep -v '^ *+' conftest.er1 >conftest.err
8877  rm -f conftest.er1
8878  cat conftest.err >&5
8879  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8880  (exit $ac_status); } &&
8881         { ac_try='test -z "$ac_c_werror_flag"
8882                         || test ! -s conftest.err'
8883  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8884  (eval $ac_try) 2>&5
8885  ac_status=$?
8886  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8887  (exit $ac_status); }; } &&
8888         { ac_try='test -s conftest$ac_exeext'
8889  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8890  (eval $ac_try) 2>&5
8891  ac_status=$?
8892  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8893  (exit $ac_status); }; }; then
8894  ac_cv_lib_dl_dlopen=yes
8895else
8896  echo "$as_me: failed program was:" >&5
8897sed 's/^/| /' conftest.$ac_ext >&5
8898
8899ac_cv_lib_dl_dlopen=no
8900fi
8901rm -f conftest.err conftest.$ac_objext \
8902      conftest$ac_exeext conftest.$ac_ext
8903LIBS=$ac_check_lib_save_LIBS
8904fi
8905echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8906echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8907if test $ac_cv_lib_dl_dlopen = yes; then
8908  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8909else
8910
8911    lt_cv_dlopen="dyld"
8912    lt_cv_dlopen_libs=
8913    lt_cv_dlopen_self=yes
8914
8915fi
8916
8917   ;;
8918
8919  *)
8920    echo "$as_me:$LINENO: checking for shl_load" >&5
8921echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8922if test "${ac_cv_func_shl_load+set}" = set; then
8923  echo $ECHO_N "(cached) $ECHO_C" >&6
8924else
8925  cat >conftest.$ac_ext <<_ACEOF
8926/* confdefs.h.  */
8927_ACEOF
8928cat confdefs.h >>conftest.$ac_ext
8929cat >>conftest.$ac_ext <<_ACEOF
8930/* end confdefs.h.  */
8931/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8932   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8933#define shl_load innocuous_shl_load
8934
8935/* System header to define __stub macros and hopefully few prototypes,
8936    which can conflict with char shl_load (); below.
8937    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8938    <limits.h> exists even on freestanding compilers.  */
8939
8940#ifdef __STDC__
8941# include <limits.h>
8942#else
8943# include <assert.h>
8944#endif
8945
8946#undef shl_load
8947
8948/* Override any gcc2 internal prototype to avoid an error.  */
8949#ifdef __cplusplus
8950extern "C"
8951{
8952#endif
8953/* We use char because int might match the return type of a gcc2
8954   builtin and then its argument prototype would still apply.  */
8955char shl_load ();
8956/* The GNU C library defines this for functions which it implements
8957    to always fail with ENOSYS.  Some functions are actually named
8958    something starting with __ and the normal name is an alias.  */
8959#if defined (__stub_shl_load) || defined (__stub___shl_load)
8960choke me
8961#else
8962char (*f) () = shl_load;
8963#endif
8964#ifdef __cplusplus
8965}
8966#endif
8967
8968int
8969main ()
8970{
8971return f != shl_load;
8972  ;
8973  return 0;
8974}
8975_ACEOF
8976rm -f conftest.$ac_objext conftest$ac_exeext
8977if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8978  (eval $ac_link) 2>conftest.er1
8979  ac_status=$?
8980  grep -v '^ *+' conftest.er1 >conftest.err
8981  rm -f conftest.er1
8982  cat conftest.err >&5
8983  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8984  (exit $ac_status); } &&
8985         { ac_try='test -z "$ac_c_werror_flag"
8986                         || test ! -s conftest.err'
8987  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8988  (eval $ac_try) 2>&5
8989  ac_status=$?
8990  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991  (exit $ac_status); }; } &&
8992         { ac_try='test -s conftest$ac_exeext'
8993  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8994  (eval $ac_try) 2>&5
8995  ac_status=$?
8996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997  (exit $ac_status); }; }; then
8998  ac_cv_func_shl_load=yes
8999else
9000  echo "$as_me: failed program was:" >&5
9001sed 's/^/| /' conftest.$ac_ext >&5
9002
9003ac_cv_func_shl_load=no
9004fi
9005rm -f conftest.err conftest.$ac_objext \
9006      conftest$ac_exeext conftest.$ac_ext
9007fi
9008echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9009echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9010if test $ac_cv_func_shl_load = yes; then
9011  lt_cv_dlopen="shl_load"
9012else
9013  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9014echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9015if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9016  echo $ECHO_N "(cached) $ECHO_C" >&6
9017else
9018  ac_check_lib_save_LIBS=$LIBS
9019LIBS="-ldld  $LIBS"
9020cat >conftest.$ac_ext <<_ACEOF
9021/* confdefs.h.  */
9022_ACEOF
9023cat confdefs.h >>conftest.$ac_ext
9024cat >>conftest.$ac_ext <<_ACEOF
9025/* end confdefs.h.  */
9026
9027/* Override any gcc2 internal prototype to avoid an error.  */
9028#ifdef __cplusplus
9029extern "C"
9030#endif
9031/* We use char because int might match the return type of a gcc2
9032   builtin and then its argument prototype would still apply.  */
9033char shl_load ();
9034int
9035main ()
9036{
9037shl_load ();
9038  ;
9039  return 0;
9040}
9041_ACEOF
9042rm -f conftest.$ac_objext conftest$ac_exeext
9043if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9044  (eval $ac_link) 2>conftest.er1
9045  ac_status=$?
9046  grep -v '^ *+' conftest.er1 >conftest.err
9047  rm -f conftest.er1
9048  cat conftest.err >&5
9049  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050  (exit $ac_status); } &&
9051         { ac_try='test -z "$ac_c_werror_flag"
9052                         || test ! -s conftest.err'
9053  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9054  (eval $ac_try) 2>&5
9055  ac_status=$?
9056  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057  (exit $ac_status); }; } &&
9058         { ac_try='test -s conftest$ac_exeext'
9059  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9060  (eval $ac_try) 2>&5
9061  ac_status=$?
9062  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9063  (exit $ac_status); }; }; then
9064  ac_cv_lib_dld_shl_load=yes
9065else
9066  echo "$as_me: failed program was:" >&5
9067sed 's/^/| /' conftest.$ac_ext >&5
9068
9069ac_cv_lib_dld_shl_load=no
9070fi
9071rm -f conftest.err conftest.$ac_objext \
9072      conftest$ac_exeext conftest.$ac_ext
9073LIBS=$ac_check_lib_save_LIBS
9074fi
9075echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9076echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9077if test $ac_cv_lib_dld_shl_load = yes; then
9078  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9079else
9080  echo "$as_me:$LINENO: checking for dlopen" >&5
9081echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9082if test "${ac_cv_func_dlopen+set}" = set; then
9083  echo $ECHO_N "(cached) $ECHO_C" >&6
9084else
9085  cat >conftest.$ac_ext <<_ACEOF
9086/* confdefs.h.  */
9087_ACEOF
9088cat confdefs.h >>conftest.$ac_ext
9089cat >>conftest.$ac_ext <<_ACEOF
9090/* end confdefs.h.  */
9091/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9092   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9093#define dlopen innocuous_dlopen
9094
9095/* System header to define __stub macros and hopefully few prototypes,
9096    which can conflict with char dlopen (); below.
9097    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9098    <limits.h> exists even on freestanding compilers.  */
9099
9100#ifdef __STDC__
9101# include <limits.h>
9102#else
9103# include <assert.h>
9104#endif
9105
9106#undef dlopen
9107
9108/* Override any gcc2 internal prototype to avoid an error.  */
9109#ifdef __cplusplus
9110extern "C"
9111{
9112#endif
9113/* We use char because int might match the return type of a gcc2
9114   builtin and then its argument prototype would still apply.  */
9115char dlopen ();
9116/* The GNU C library defines this for functions which it implements
9117    to always fail with ENOSYS.  Some functions are actually named
9118    something starting with __ and the normal name is an alias.  */
9119#if defined (__stub_dlopen) || defined (__stub___dlopen)
9120choke me
9121#else
9122char (*f) () = dlopen;
9123#endif
9124#ifdef __cplusplus
9125}
9126#endif
9127
9128int
9129main ()
9130{
9131return f != dlopen;
9132  ;
9133  return 0;
9134}
9135_ACEOF
9136rm -f conftest.$ac_objext conftest$ac_exeext
9137if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9138  (eval $ac_link) 2>conftest.er1
9139  ac_status=$?
9140  grep -v '^ *+' conftest.er1 >conftest.err
9141  rm -f conftest.er1
9142  cat conftest.err >&5
9143  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9144  (exit $ac_status); } &&
9145         { ac_try='test -z "$ac_c_werror_flag"
9146                         || test ! -s conftest.err'
9147  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9148  (eval $ac_try) 2>&5
9149  ac_status=$?
9150  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9151  (exit $ac_status); }; } &&
9152         { ac_try='test -s conftest$ac_exeext'
9153  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9154  (eval $ac_try) 2>&5
9155  ac_status=$?
9156  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157  (exit $ac_status); }; }; then
9158  ac_cv_func_dlopen=yes
9159else
9160  echo "$as_me: failed program was:" >&5
9161sed 's/^/| /' conftest.$ac_ext >&5
9162
9163ac_cv_func_dlopen=no
9164fi
9165rm -f conftest.err conftest.$ac_objext \
9166      conftest$ac_exeext conftest.$ac_ext
9167fi
9168echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9169echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9170if test $ac_cv_func_dlopen = yes; then
9171  lt_cv_dlopen="dlopen"
9172else
9173  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9174echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9175if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9176  echo $ECHO_N "(cached) $ECHO_C" >&6
9177else
9178  ac_check_lib_save_LIBS=$LIBS
9179LIBS="-ldl  $LIBS"
9180cat >conftest.$ac_ext <<_ACEOF
9181/* confdefs.h.  */
9182_ACEOF
9183cat confdefs.h >>conftest.$ac_ext
9184cat >>conftest.$ac_ext <<_ACEOF
9185/* end confdefs.h.  */
9186
9187/* Override any gcc2 internal prototype to avoid an error.  */
9188#ifdef __cplusplus
9189extern "C"
9190#endif
9191/* We use char because int might match the return type of a gcc2
9192   builtin and then its argument prototype would still apply.  */
9193char dlopen ();
9194int
9195main ()
9196{
9197dlopen ();
9198  ;
9199  return 0;
9200}
9201_ACEOF
9202rm -f conftest.$ac_objext conftest$ac_exeext
9203if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9204  (eval $ac_link) 2>conftest.er1
9205  ac_status=$?
9206  grep -v '^ *+' conftest.er1 >conftest.err
9207  rm -f conftest.er1
9208  cat conftest.err >&5
9209  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9210  (exit $ac_status); } &&
9211         { ac_try='test -z "$ac_c_werror_flag"
9212                         || test ! -s conftest.err'
9213  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9214  (eval $ac_try) 2>&5
9215  ac_status=$?
9216  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9217  (exit $ac_status); }; } &&
9218         { ac_try='test -s conftest$ac_exeext'
9219  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9220  (eval $ac_try) 2>&5
9221  ac_status=$?
9222  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9223  (exit $ac_status); }; }; then
9224  ac_cv_lib_dl_dlopen=yes
9225else
9226  echo "$as_me: failed program was:" >&5
9227sed 's/^/| /' conftest.$ac_ext >&5
9228
9229ac_cv_lib_dl_dlopen=no
9230fi
9231rm -f conftest.err conftest.$ac_objext \
9232      conftest$ac_exeext conftest.$ac_ext
9233LIBS=$ac_check_lib_save_LIBS
9234fi
9235echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9236echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9237if test $ac_cv_lib_dl_dlopen = yes; then
9238  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9239else
9240  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9241echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9242if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9243  echo $ECHO_N "(cached) $ECHO_C" >&6
9244else
9245  ac_check_lib_save_LIBS=$LIBS
9246LIBS="-lsvld  $LIBS"
9247cat >conftest.$ac_ext <<_ACEOF
9248/* confdefs.h.  */
9249_ACEOF
9250cat confdefs.h >>conftest.$ac_ext
9251cat >>conftest.$ac_ext <<_ACEOF
9252/* end confdefs.h.  */
9253
9254/* Override any gcc2 internal prototype to avoid an error.  */
9255#ifdef __cplusplus
9256extern "C"
9257#endif
9258/* We use char because int might match the return type of a gcc2
9259   builtin and then its argument prototype would still apply.  */
9260char dlopen ();
9261int
9262main ()
9263{
9264dlopen ();
9265  ;
9266  return 0;
9267}
9268_ACEOF
9269rm -f conftest.$ac_objext conftest$ac_exeext
9270if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9271  (eval $ac_link) 2>conftest.er1
9272  ac_status=$?
9273  grep -v '^ *+' conftest.er1 >conftest.err
9274  rm -f conftest.er1
9275  cat conftest.err >&5
9276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277  (exit $ac_status); } &&
9278         { ac_try='test -z "$ac_c_werror_flag"
9279                         || test ! -s conftest.err'
9280  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9281  (eval $ac_try) 2>&5
9282  ac_status=$?
9283  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284  (exit $ac_status); }; } &&
9285         { ac_try='test -s conftest$ac_exeext'
9286  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9287  (eval $ac_try) 2>&5
9288  ac_status=$?
9289  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290  (exit $ac_status); }; }; then
9291  ac_cv_lib_svld_dlopen=yes
9292else
9293  echo "$as_me: failed program was:" >&5
9294sed 's/^/| /' conftest.$ac_ext >&5
9295
9296ac_cv_lib_svld_dlopen=no
9297fi
9298rm -f conftest.err conftest.$ac_objext \
9299      conftest$ac_exeext conftest.$ac_ext
9300LIBS=$ac_check_lib_save_LIBS
9301fi
9302echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9303echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9304if test $ac_cv_lib_svld_dlopen = yes; then
9305  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9306else
9307  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9308echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9309if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9310  echo $ECHO_N "(cached) $ECHO_C" >&6
9311else
9312  ac_check_lib_save_LIBS=$LIBS
9313LIBS="-ldld  $LIBS"
9314cat >conftest.$ac_ext <<_ACEOF
9315/* confdefs.h.  */
9316_ACEOF
9317cat confdefs.h >>conftest.$ac_ext
9318cat >>conftest.$ac_ext <<_ACEOF
9319/* end confdefs.h.  */
9320
9321/* Override any gcc2 internal prototype to avoid an error.  */
9322#ifdef __cplusplus
9323extern "C"
9324#endif
9325/* We use char because int might match the return type of a gcc2
9326   builtin and then its argument prototype would still apply.  */
9327char dld_link ();
9328int
9329main ()
9330{
9331dld_link ();
9332  ;
9333  return 0;
9334}
9335_ACEOF
9336rm -f conftest.$ac_objext conftest$ac_exeext
9337if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9338  (eval $ac_link) 2>conftest.er1
9339  ac_status=$?
9340  grep -v '^ *+' conftest.er1 >conftest.err
9341  rm -f conftest.er1
9342  cat conftest.err >&5
9343  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9344  (exit $ac_status); } &&
9345         { ac_try='test -z "$ac_c_werror_flag"
9346                         || test ! -s conftest.err'
9347  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9348  (eval $ac_try) 2>&5
9349  ac_status=$?
9350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9351  (exit $ac_status); }; } &&
9352         { ac_try='test -s conftest$ac_exeext'
9353  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9354  (eval $ac_try) 2>&5
9355  ac_status=$?
9356  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357  (exit $ac_status); }; }; then
9358  ac_cv_lib_dld_dld_link=yes
9359else
9360  echo "$as_me: failed program was:" >&5
9361sed 's/^/| /' conftest.$ac_ext >&5
9362
9363ac_cv_lib_dld_dld_link=no
9364fi
9365rm -f conftest.err conftest.$ac_objext \
9366      conftest$ac_exeext conftest.$ac_ext
9367LIBS=$ac_check_lib_save_LIBS
9368fi
9369echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9370echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9371if test $ac_cv_lib_dld_dld_link = yes; then
9372  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9373fi
9374
9375
9376fi
9377
9378
9379fi
9380
9381
9382fi
9383
9384
9385fi
9386
9387
9388fi
9389
9390    ;;
9391  esac
9392
9393  if test "x$lt_cv_dlopen" != xno; then
9394    enable_dlopen=yes
9395  else
9396    enable_dlopen=no
9397  fi
9398
9399  case $lt_cv_dlopen in
9400  dlopen)
9401    save_CPPFLAGS="$CPPFLAGS"
9402    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9403
9404    save_LDFLAGS="$LDFLAGS"
9405    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9406
9407    save_LIBS="$LIBS"
9408    LIBS="$lt_cv_dlopen_libs $LIBS"
9409
9410    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9411echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9412if test "${lt_cv_dlopen_self+set}" = set; then
9413  echo $ECHO_N "(cached) $ECHO_C" >&6
9414else
9415          if test "$cross_compiling" = yes; then :
9416  lt_cv_dlopen_self=cross
9417else
9418  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9419  lt_status=$lt_dlunknown
9420  cat > conftest.$ac_ext <<EOF
9421#line 9421 "configure"
9422#include "confdefs.h"
9423
9424#if HAVE_DLFCN_H
9425#include <dlfcn.h>
9426#endif
9427
9428#include <stdio.h>
9429
9430#ifdef RTLD_GLOBAL
9431#  define LT_DLGLOBAL           RTLD_GLOBAL
9432#else
9433#  ifdef DL_GLOBAL
9434#    define LT_DLGLOBAL         DL_GLOBAL
9435#  else
9436#    define LT_DLGLOBAL         0
9437#  endif
9438#endif
9439
9440/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9441   find out it does not work in some platform. */
9442#ifndef LT_DLLAZY_OR_NOW
9443#  ifdef RTLD_LAZY
9444#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9445#  else
9446#    ifdef DL_LAZY
9447#      define LT_DLLAZY_OR_NOW          DL_LAZY
9448#    else
9449#      ifdef RTLD_NOW
9450#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9451#      else
9452#        ifdef DL_NOW
9453#          define LT_DLLAZY_OR_NOW      DL_NOW
9454#        else
9455#          define LT_DLLAZY_OR_NOW      0
9456#        endif
9457#      endif
9458#    endif
9459#  endif
9460#endif
9461
9462#ifdef __cplusplus
9463extern "C" void exit (int);
9464#endif
9465
9466void fnord() { int i=42;}
9467int main ()
9468{
9469  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9470  int status = $lt_dlunknown;
9471
9472  if (self)
9473    {
9474      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9475      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9476      /* dlclose (self); */
9477    }
9478  else
9479    puts (dlerror ());
9480
9481    exit (status);
9482}
9483EOF
9484  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9485  (eval $ac_link) 2>&5
9486  ac_status=$?
9487  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9489    (./conftest; exit; ) >&5 2>/dev/null
9490    lt_status=$?
9491    case x$lt_status in
9492      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9493      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9494      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9495    esac
9496  else :
9497    # compilation failed
9498    lt_cv_dlopen_self=no
9499  fi
9500fi
9501rm -fr conftest*
9502
9503
9504fi
9505echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9506echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9507
9508    if test "x$lt_cv_dlopen_self" = xyes; then
9509      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9510      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9511echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9512if test "${lt_cv_dlopen_self_static+set}" = set; then
9513  echo $ECHO_N "(cached) $ECHO_C" >&6
9514else
9515          if test "$cross_compiling" = yes; then :
9516  lt_cv_dlopen_self_static=cross
9517else
9518  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9519  lt_status=$lt_dlunknown
9520  cat > conftest.$ac_ext <<EOF
9521#line 9521 "configure"
9522#include "confdefs.h"
9523
9524#if HAVE_DLFCN_H
9525#include <dlfcn.h>
9526#endif
9527
9528#include <stdio.h>
9529
9530#ifdef RTLD_GLOBAL
9531#  define LT_DLGLOBAL           RTLD_GLOBAL
9532#else
9533#  ifdef DL_GLOBAL
9534#    define LT_DLGLOBAL         DL_GLOBAL
9535#  else
9536#    define LT_DLGLOBAL         0
9537#  endif
9538#endif
9539
9540/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9541   find out it does not work in some platform. */
9542#ifndef LT_DLLAZY_OR_NOW
9543#  ifdef RTLD_LAZY
9544#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9545#  else
9546#    ifdef DL_LAZY
9547#      define LT_DLLAZY_OR_NOW          DL_LAZY
9548#    else
9549#      ifdef RTLD_NOW
9550#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9551#      else
9552#        ifdef DL_NOW
9553#          define LT_DLLAZY_OR_NOW      DL_NOW
9554#        else
9555#          define LT_DLLAZY_OR_NOW      0
9556#        endif
9557#      endif
9558#    endif
9559#  endif
9560#endif
9561
9562#ifdef __cplusplus
9563extern "C" void exit (int);
9564#endif
9565
9566void fnord() { int i=42;}
9567int main ()
9568{
9569  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9570  int status = $lt_dlunknown;
9571
9572  if (self)
9573    {
9574      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9575      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9576      /* dlclose (self); */
9577    }
9578  else
9579    puts (dlerror ());
9580
9581    exit (status);
9582}
9583EOF
9584  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9585  (eval $ac_link) 2>&5
9586  ac_status=$?
9587  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9588  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9589    (./conftest; exit; ) >&5 2>/dev/null
9590    lt_status=$?
9591    case x$lt_status in
9592      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9593      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9594      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9595    esac
9596  else :
9597    # compilation failed
9598    lt_cv_dlopen_self_static=no
9599  fi
9600fi
9601rm -fr conftest*
9602
9603
9604fi
9605echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9606echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9607    fi
9608
9609    CPPFLAGS="$save_CPPFLAGS"
9610    LDFLAGS="$save_LDFLAGS"
9611    LIBS="$save_LIBS"
9612    ;;
9613  esac
9614
9615  case $lt_cv_dlopen_self in
9616  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9617  *) enable_dlopen_self=unknown ;;
9618  esac
9619
9620  case $lt_cv_dlopen_self_static in
9621  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9622  *) enable_dlopen_self_static=unknown ;;
9623  esac
9624fi
9625
9626
9627# Report which library types will actually be built
9628echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9629echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9630echo "$as_me:$LINENO: result: $can_build_shared" >&5
9631echo "${ECHO_T}$can_build_shared" >&6
9632
9633echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9634echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9635test "$can_build_shared" = "no" && enable_shared=no
9636
9637# On AIX, shared libraries and static libraries use the same namespace, and
9638# are all built from PIC.
9639case $host_os in
9640aix3*)
9641  test "$enable_shared" = yes && enable_static=no
9642  if test -n "$RANLIB"; then
9643    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9644    postinstall_cmds='$RANLIB $lib'
9645  fi
9646  ;;
9647
9648aix4* | aix5*)
9649  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9650    test "$enable_shared" = yes && enable_static=no
9651  fi
9652    ;;
9653esac
9654echo "$as_me:$LINENO: result: $enable_shared" >&5
9655echo "${ECHO_T}$enable_shared" >&6
9656
9657echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9658echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9659# Make sure either enable_shared or enable_static is yes.
9660test "$enable_shared" = yes || enable_static=yes
9661echo "$as_me:$LINENO: result: $enable_static" >&5
9662echo "${ECHO_T}$enable_static" >&6
9663
9664# The else clause should only fire when bootstrapping the
9665# libtool distribution, otherwise you forgot to ship ltmain.sh
9666# with your package, and you will get complaints that there are
9667# no rules to generate ltmain.sh.
9668if test -f "$ltmain"; then
9669  # See if we are running on zsh, and set the options which allow our commands through
9670  # without removal of \ escapes.
9671  if test -n "${ZSH_VERSION+set}" ; then
9672    setopt NO_GLOB_SUBST
9673  fi
9674  # Now quote all the things that may contain metacharacters while being
9675  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9676  # variables and quote the copies for generation of the libtool script.
9677  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9678    SED SHELL STRIP \
9679    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9680    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9681    deplibs_check_method reload_flag reload_cmds need_locks \
9682    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9683    lt_cv_sys_global_symbol_to_c_name_address \
9684    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9685    old_postinstall_cmds old_postuninstall_cmds \
9686    compiler \
9687    CC \
9688    LD \
9689    lt_prog_compiler_wl \
9690    lt_prog_compiler_pic \
9691    lt_prog_compiler_static \
9692    lt_prog_compiler_no_builtin_flag \
9693    export_dynamic_flag_spec \
9694    thread_safe_flag_spec \
9695    whole_archive_flag_spec \
9696    enable_shared_with_static_runtimes \
9697    old_archive_cmds \
9698    old_archive_from_new_cmds \
9699    predep_objects \
9700    postdep_objects \
9701    predeps \
9702    postdeps \
9703    compiler_lib_search_path \
9704    archive_cmds \
9705    archive_expsym_cmds \
9706    postinstall_cmds \
9707    postuninstall_cmds \
9708    old_archive_from_expsyms_cmds \
9709    allow_undefined_flag \
9710    no_undefined_flag \
9711    export_symbols_cmds \
9712    hardcode_libdir_flag_spec \
9713    hardcode_libdir_flag_spec_ld \
9714    hardcode_libdir_separator \
9715    hardcode_automatic \
9716    module_cmds \
9717    module_expsym_cmds \
9718    lt_cv_prog_compiler_c_o \
9719    exclude_expsyms \
9720    include_expsyms; do
9721
9722    case $var in
9723    old_archive_cmds | \
9724    old_archive_from_new_cmds | \
9725    archive_cmds | \
9726    archive_expsym_cmds | \
9727    module_cmds | \
9728    module_expsym_cmds | \
9729    old_archive_from_expsyms_cmds | \
9730    export_symbols_cmds | \
9731    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9732    postinstall_cmds | postuninstall_cmds | \
9733    old_postinstall_cmds | old_postuninstall_cmds | \
9734    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9735      # Double-quote double-evaled strings.
9736      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9737      ;;
9738    *)
9739      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9740      ;;
9741    esac
9742  done
9743
9744  case $lt_echo in
9745  *'\$0 --fallback-echo"')
9746    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9747    ;;
9748  esac
9749
9750cfgfile="${ofile}T"
9751  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9752  $rm -f "$cfgfile"
9753  { echo "$as_me:$LINENO: creating $ofile" >&5
9754echo "$as_me: creating $ofile" >&6;}
9755
9756  cat <<__EOF__ >> "$cfgfile"
9757#! $SHELL
9758
9759# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9760# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9761# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9762#
9763# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9764# Free Software Foundation, Inc.
9765#
9766# This file is part of GNU Libtool:
9767# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9768#
9769# This program is free software; you can redistribute it and/or modify
9770# it under the terms of the GNU General Public License as published by
9771# the Free Software Foundation; either version 2 of the License, or
9772# (at your option) any later version.
9773#
9774# This program is distributed in the hope that it will be useful, but
9775# WITHOUT ANY WARRANTY; without even the implied warranty of
9776# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9777# General Public License for more details.
9778#
9779# You should have received a copy of the GNU General Public License
9780# along with this program; if not, write to the Free Software
9781# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9782#
9783# As a special exception to the GNU General Public License, if you
9784# distribute this file as part of a program that contains a
9785# configuration script generated by Autoconf, you may include it under
9786# the same distribution terms that you use for the rest of that program.
9787
9788# A sed program that does not truncate output.
9789SED=$lt_SED
9790
9791# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9792Xsed="$SED -e 1s/^X//"
9793
9794# The HP-UX ksh and POSIX shell print the target directory to stdout
9795# if CDPATH is set.
9796(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9797
9798# The names of the tagged configurations supported by this script.
9799available_tags=
9800
9801# ### BEGIN LIBTOOL CONFIG
9802
9803# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9804
9805# Shell to use when invoking shell scripts.
9806SHELL=$lt_SHELL
9807
9808# Whether or not to build shared libraries.
9809build_libtool_libs=$enable_shared
9810
9811# Whether or not to build static libraries.
9812build_old_libs=$enable_static
9813
9814# Whether or not to add -lc for building shared libraries.
9815build_libtool_need_lc=$archive_cmds_need_lc
9816
9817# Whether or not to disallow shared libs when runtime libs are static
9818allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9819
9820# Whether or not to optimize for fast installation.
9821fast_install=$enable_fast_install
9822
9823# The host system.
9824host_alias=$host_alias
9825host=$host
9826host_os=$host_os
9827
9828# The build system.
9829build_alias=$build_alias
9830build=$build
9831build_os=$build_os
9832
9833# An echo program that does not interpret backslashes.
9834echo=$lt_echo
9835
9836# The archiver.
9837AR=$lt_AR
9838AR_FLAGS=$lt_AR_FLAGS
9839
9840# A C compiler.
9841LTCC=$lt_LTCC
9842
9843# LTCC compiler flags.
9844LTCFLAGS=$lt_LTCFLAGS
9845
9846# A language-specific compiler.
9847CC=$lt_compiler
9848
9849# Is the compiler the GNU C compiler?
9850with_gcc=$GCC
9851
9852# An ERE matcher.
9853EGREP=$lt_EGREP
9854
9855# The linker used to build libraries.
9856LD=$lt_LD
9857
9858# Whether we need hard or soft links.
9859LN_S=$lt_LN_S
9860
9861# A BSD-compatible nm program.
9862NM=$lt_NM
9863
9864# A symbol stripping program
9865STRIP=$lt_STRIP
9866
9867# Used to examine libraries when file_magic_cmd begins "file"
9868MAGIC_CMD=$MAGIC_CMD
9869
9870# Used on cygwin: DLL creation program.
9871DLLTOOL="$DLLTOOL"
9872
9873# Used on cygwin: object dumper.
9874OBJDUMP="$OBJDUMP"
9875
9876# Used on cygwin: assembler.
9877AS="$AS"
9878
9879# The name of the directory that contains temporary libtool files.
9880objdir=$objdir
9881
9882# How to create reloadable object files.
9883reload_flag=$lt_reload_flag
9884reload_cmds=$lt_reload_cmds
9885
9886# How to pass a linker flag through the compiler.
9887wl=$lt_lt_prog_compiler_wl
9888
9889# Object file suffix (normally "o").
9890objext="$ac_objext"
9891
9892# Old archive suffix (normally "a").
9893libext="$libext"
9894
9895# Shared library suffix (normally ".so").
9896shrext_cmds='$shrext_cmds'
9897
9898# Executable file suffix (normally "").
9899exeext="$exeext"
9900
9901# Additional compiler flags for building library objects.
9902pic_flag=$lt_lt_prog_compiler_pic
9903pic_mode=$pic_mode
9904
9905# What is the maximum length of a command?
9906max_cmd_len=$lt_cv_sys_max_cmd_len
9907
9908# Does compiler simultaneously support -c and -o options?
9909compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9910
9911# Must we lock files when doing compilation?
9912need_locks=$lt_need_locks
9913
9914# Do we need the lib prefix for modules?
9915need_lib_prefix=$need_lib_prefix
9916
9917# Do we need a version for libraries?
9918need_version=$need_version
9919
9920# Whether dlopen is supported.
9921dlopen_support=$enable_dlopen
9922
9923# Whether dlopen of programs is supported.
9924dlopen_self=$enable_dlopen_self
9925
9926# Whether dlopen of statically linked programs is supported.
9927dlopen_self_static=$enable_dlopen_self_static
9928
9929# Compiler flag to prevent dynamic linking.
9930link_static_flag=$lt_lt_prog_compiler_static
9931
9932# Compiler flag to turn off builtin functions.
9933no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9934
9935# Compiler flag to allow reflexive dlopens.
9936export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9937
9938# Compiler flag to generate shared objects directly from archives.
9939whole_archive_flag_spec=$lt_whole_archive_flag_spec
9940
9941# Compiler flag to generate thread-safe objects.
9942thread_safe_flag_spec=$lt_thread_safe_flag_spec
9943
9944# Library versioning type.
9945version_type=$version_type
9946
9947# Format of library name prefix.
9948libname_spec=$lt_libname_spec
9949
9950# List of archive names.  First name is the real one, the rest are links.
9951# The last name is the one that the linker finds with -lNAME.
9952library_names_spec=$lt_library_names_spec
9953
9954# The coded name of the library, if different from the real name.
9955soname_spec=$lt_soname_spec
9956
9957# Commands used to build and install an old-style archive.
9958RANLIB=$lt_RANLIB
9959old_archive_cmds=$lt_old_archive_cmds
9960old_postinstall_cmds=$lt_old_postinstall_cmds
9961old_postuninstall_cmds=$lt_old_postuninstall_cmds
9962
9963# Create an old-style archive from a shared archive.
9964old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9965
9966# Create a temporary old-style archive to link instead of a shared archive.
9967old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9968
9969# Commands used to build and install a shared archive.
9970archive_cmds=$lt_archive_cmds
9971archive_expsym_cmds=$lt_archive_expsym_cmds
9972postinstall_cmds=$lt_postinstall_cmds
9973postuninstall_cmds=$lt_postuninstall_cmds
9974
9975# Commands used to build a loadable module (assumed same as above if empty)
9976module_cmds=$lt_module_cmds
9977module_expsym_cmds=$lt_module_expsym_cmds
9978
9979# Commands to strip libraries.
9980old_striplib=$lt_old_striplib
9981striplib=$lt_striplib
9982
9983# Dependencies to place before the objects being linked to create a
9984# shared library.
9985predep_objects=$lt_predep_objects
9986
9987# Dependencies to place after the objects being linked to create a
9988# shared library.
9989postdep_objects=$lt_postdep_objects
9990
9991# Dependencies to place before the objects being linked to create a
9992# shared library.
9993predeps=$lt_predeps
9994
9995# Dependencies to place after the objects being linked to create a
9996# shared library.
9997postdeps=$lt_postdeps
9998
9999# The library search path used internally by the compiler when linking
10000# a shared library.
10001compiler_lib_search_path=$lt_compiler_lib_search_path
10002
10003# Method to check whether dependent libraries are shared objects.
10004deplibs_check_method=$lt_deplibs_check_method
10005
10006# Command to use when deplibs_check_method == file_magic.
10007file_magic_cmd=$lt_file_magic_cmd
10008
10009# Flag that allows shared libraries with undefined symbols to be built.
10010allow_undefined_flag=$lt_allow_undefined_flag
10011
10012# Flag that forces no undefined symbols.
10013no_undefined_flag=$lt_no_undefined_flag
10014
10015# Commands used to finish a libtool library installation in a directory.
10016finish_cmds=$lt_finish_cmds
10017
10018# Same as above, but a single script fragment to be evaled but not shown.
10019finish_eval=$lt_finish_eval
10020
10021# Take the output of nm and produce a listing of raw symbols and C names.
10022global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10023
10024# Transform the output of nm in a proper C declaration
10025global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10026
10027# Transform the output of nm in a C name address pair
10028global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10029
10030# This is the shared library runtime path variable.
10031runpath_var=$runpath_var
10032
10033# This is the shared library path variable.
10034shlibpath_var=$shlibpath_var
10035
10036# Is shlibpath searched before the hard-coded library search path?
10037shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10038
10039# How to hardcode a shared library path into an executable.
10040hardcode_action=$hardcode_action
10041
10042# Whether we should hardcode library paths into libraries.
10043hardcode_into_libs=$hardcode_into_libs
10044
10045# Flag to hardcode \$libdir into a binary during linking.
10046# This must work even if \$libdir does not exist.
10047hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10048
10049# If ld is used when linking, flag to hardcode \$libdir into
10050# a binary during linking. This must work even if \$libdir does
10051# not exist.
10052hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10053
10054# Whether we need a single -rpath flag with a separated argument.
10055hardcode_libdir_separator=$lt_hardcode_libdir_separator
10056
10057# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10058# resulting binary.
10059hardcode_direct=$hardcode_direct
10060
10061# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10062# resulting binary.
10063hardcode_minus_L=$hardcode_minus_L
10064
10065# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10066# the resulting binary.
10067hardcode_shlibpath_var=$hardcode_shlibpath_var
10068
10069# Set to yes if building a shared library automatically hardcodes DIR into the library
10070# and all subsequent libraries and executables linked against it.
10071hardcode_automatic=$hardcode_automatic
10072
10073# Variables whose values should be saved in libtool wrapper scripts and
10074# restored at relink time.
10075variables_saved_for_relink="$variables_saved_for_relink"
10076
10077# Whether libtool must link a program against all its dependency libraries.
10078link_all_deplibs=$link_all_deplibs
10079
10080# Compile-time system search path for libraries
10081sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10082
10083# Run-time system search path for libraries
10084sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10085
10086# Fix the shell variable \$srcfile for the compiler.
10087fix_srcfile_path="$fix_srcfile_path"
10088
10089# Set to yes if exported symbols are required.
10090always_export_symbols=$always_export_symbols
10091
10092# The commands to list exported symbols.
10093export_symbols_cmds=$lt_export_symbols_cmds
10094
10095# The commands to extract the exported symbol list from a shared archive.
10096extract_expsyms_cmds=$lt_extract_expsyms_cmds
10097
10098# Symbols that should not be listed in the preloaded symbols.
10099exclude_expsyms=$lt_exclude_expsyms
10100
10101# Symbols that must always be exported.
10102include_expsyms=$lt_include_expsyms
10103
10104# ### END LIBTOOL CONFIG
10105
10106__EOF__
10107
10108
10109  case $host_os in
10110  aix3*)
10111    cat <<\EOF >> "$cfgfile"
10112
10113# AIX sometimes has problems with the GCC collect2 program.  For some
10114# reason, if we set the COLLECT_NAMES environment variable, the problems
10115# vanish in a puff of smoke.
10116if test "X${COLLECT_NAMES+set}" != Xset; then
10117  COLLECT_NAMES=
10118  export COLLECT_NAMES
10119fi
10120EOF
10121    ;;
10122  esac
10123
10124  # We use sed instead of cat because bash on DJGPP gets confused if
10125  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10126  # text mode, it properly converts lines to CR/LF.  This bash problem
10127  # is reportedly fixed, but why not run on old versions too?
10128  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10129
10130  mv -f "$cfgfile" "$ofile" || \
10131    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10132  chmod +x "$ofile"
10133
10134else
10135  # If there is no Makefile yet, we rely on a make rule to execute
10136  # `config.status --recheck' to rerun these tests and create the
10137  # libtool script then.
10138  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10139  if test -f "$ltmain_in"; then
10140    test -f Makefile && make "$ltmain"
10141  fi
10142fi
10143
10144
10145ac_ext=cc
10146ac_cpp='$CXXCPP $CPPFLAGS'
10147ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10148ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10149ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10150
10151CC="$lt_save_CC"
10152
10153
10154# Check whether --with-tags or --without-tags was given.
10155if test "${with_tags+set}" = set; then
10156  withval="$with_tags"
10157  tagnames="$withval"
10158fi;
10159
10160if test -f "$ltmain" && test -n "$tagnames"; then
10161  if test ! -f "${ofile}"; then
10162    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10163echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10164  fi
10165
10166  if test -z "$LTCC"; then
10167    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10168    if test -z "$LTCC"; then
10169      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10170echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10171    else
10172      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10173echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10174    fi
10175  fi
10176  if test -z "$LTCFLAGS"; then
10177    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10178  fi
10179
10180  # Extract list of available tagged configurations in $ofile.
10181  # Note that this assumes the entire list is on one line.
10182  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10183
10184  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10185  for tagname in $tagnames; do
10186    IFS="$lt_save_ifs"
10187    # Check whether tagname contains only valid characters
10188    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10189    "") ;;
10190    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10191echo "$as_me: error: invalid tag name: $tagname" >&2;}
10192   { (exit 1); exit 1; }; }
10193        ;;
10194    esac
10195
10196    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10197    then
10198      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10199echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10200   { (exit 1); exit 1; }; }
10201    fi
10202
10203    # Update the list of available tags.
10204    if test -n "$tagname"; then
10205      echo appending configuration tag \"$tagname\" to $ofile
10206
10207      case $tagname in
10208      CXX)
10209        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10210            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10211            (test "X$CXX" != "Xg++"))) ; then
10212          ac_ext=cc
10213ac_cpp='$CXXCPP $CPPFLAGS'
10214ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10215ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10216ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10217
10218
10219
10220
10221archive_cmds_need_lc_CXX=no
10222allow_undefined_flag_CXX=
10223always_export_symbols_CXX=no
10224archive_expsym_cmds_CXX=
10225export_dynamic_flag_spec_CXX=
10226hardcode_direct_CXX=no
10227hardcode_libdir_flag_spec_CXX=
10228hardcode_libdir_flag_spec_ld_CXX=
10229hardcode_libdir_separator_CXX=
10230hardcode_minus_L_CXX=no
10231hardcode_shlibpath_var_CXX=unsupported
10232hardcode_automatic_CXX=no
10233module_cmds_CXX=
10234module_expsym_cmds_CXX=
10235link_all_deplibs_CXX=unknown
10236old_archive_cmds_CXX=$old_archive_cmds
10237no_undefined_flag_CXX=
10238whole_archive_flag_spec_CXX=
10239enable_shared_with_static_runtimes_CXX=no
10240
10241# Dependencies to place before and after the object being linked:
10242predep_objects_CXX=
10243postdep_objects_CXX=
10244predeps_CXX=
10245postdeps_CXX=
10246compiler_lib_search_path_CXX=
10247
10248# Source file extension for C++ test sources.
10249ac_ext=cpp
10250
10251# Object file extension for compiled C++ test sources.
10252objext=o
10253objext_CXX=$objext
10254
10255# Code to be used in simple compile tests
10256lt_simple_compile_test_code="int some_variable = 0;\n"
10257
10258# Code to be used in simple link tests
10259lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10260
10261# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10262
10263# If no C compiler was specified, use CC.
10264LTCC=${LTCC-"$CC"}
10265
10266# If no C compiler flags were specified, use CFLAGS.
10267LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10268
10269# Allow CC to be a program name with arguments.
10270compiler=$CC
10271
10272
10273# save warnings/boilerplate of simple test code
10274ac_outfile=conftest.$ac_objext
10275printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10276eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10277_lt_compiler_boilerplate=`cat conftest.err`
10278$rm conftest*
10279
10280ac_outfile=conftest.$ac_objext
10281printf "$lt_simple_link_test_code" >conftest.$ac_ext
10282eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10283_lt_linker_boilerplate=`cat conftest.err`
10284$rm conftest*
10285
10286
10287# Allow CC to be a program name with arguments.
10288lt_save_CC=$CC
10289lt_save_LD=$LD
10290lt_save_GCC=$GCC
10291GCC=$GXX
10292lt_save_with_gnu_ld=$with_gnu_ld
10293lt_save_path_LD=$lt_cv_path_LD
10294if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10295  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10296else
10297  $as_unset lt_cv_prog_gnu_ld
10298fi
10299if test -n "${lt_cv_path_LDCXX+set}"; then
10300  lt_cv_path_LD=$lt_cv_path_LDCXX
10301else
10302  $as_unset lt_cv_path_LD
10303fi
10304test -z "${LDCXX+set}" || LD=$LDCXX
10305CC=${CXX-"c++"}
10306compiler=$CC
10307compiler_CXX=$CC
10308for cc_temp in $compiler""; do
10309  case $cc_temp in
10310    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10311    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10312    \-*) ;;
10313    *) break;;
10314  esac
10315done
10316cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10317
10318
10319# We don't want -fno-exception wen compiling C++ code, so set the
10320# no_builtin_flag separately
10321if test "$GXX" = yes; then
10322  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10323else
10324  lt_prog_compiler_no_builtin_flag_CXX=
10325fi
10326
10327if test "$GXX" = yes; then
10328  # Set up default GNU C++ configuration
10329
10330
10331# Check whether --with-gnu-ld or --without-gnu-ld was given.
10332if test "${with_gnu_ld+set}" = set; then
10333  withval="$with_gnu_ld"
10334  test "$withval" = no || with_gnu_ld=yes
10335else
10336  with_gnu_ld=no
10337fi;
10338ac_prog=ld
10339if test "$GCC" = yes; then
10340  # Check if gcc -print-prog-name=ld gives a path.
10341  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10342echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10343  case $host in
10344  *-*-mingw*)
10345    # gcc leaves a trailing carriage return which upsets mingw
10346    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10347  *)
10348    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10349  esac
10350  case $ac_prog in
10351    # Accept absolute paths.
10352    [\\/]* | ?:[\\/]*)
10353      re_direlt='/[^/][^/]*/\.\./'
10354      # Canonicalize the pathname of ld
10355      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10356      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10357        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10358      done
10359      test -z "$LD" && LD="$ac_prog"
10360      ;;
10361  "")
10362    # If it fails, then pretend we aren't using GCC.
10363    ac_prog=ld
10364    ;;
10365  *)
10366    # If it is relative, then search for the first ld in PATH.
10367    with_gnu_ld=unknown
10368    ;;
10369  esac
10370elif test "$with_gnu_ld" = yes; then
10371  echo "$as_me:$LINENO: checking for GNU ld" >&5
10372echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10373else
10374  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10375echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10376fi
10377if test "${lt_cv_path_LD+set}" = set; then
10378  echo $ECHO_N "(cached) $ECHO_C" >&6
10379else
10380  if test -z "$LD"; then
10381  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10382  for ac_dir in $PATH; do
10383    IFS="$lt_save_ifs"
10384    test -z "$ac_dir" && ac_dir=.
10385    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10386      lt_cv_path_LD="$ac_dir/$ac_prog"
10387      # Check to see if the program is GNU ld.  I'd rather use --version,
10388      # but apparently some variants of GNU ld only accept -v.
10389      # Break only if it was the GNU/non-GNU ld that we prefer.
10390      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10391      *GNU* | *'with BFD'*)
10392        test "$with_gnu_ld" != no && break
10393        ;;
10394      *)
10395        test "$with_gnu_ld" != yes && break
10396        ;;
10397      esac
10398    fi
10399  done
10400  IFS="$lt_save_ifs"
10401else
10402  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10403fi
10404fi
10405
10406LD="$lt_cv_path_LD"
10407if test -n "$LD"; then
10408  echo "$as_me:$LINENO: result: $LD" >&5
10409echo "${ECHO_T}$LD" >&6
10410else
10411  echo "$as_me:$LINENO: result: no" >&5
10412echo "${ECHO_T}no" >&6
10413fi
10414test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10415echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10416   { (exit 1); exit 1; }; }
10417echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10418echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10419if test "${lt_cv_prog_gnu_ld+set}" = set; then
10420  echo $ECHO_N "(cached) $ECHO_C" >&6
10421else
10422  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10423case `$LD -v 2>&1 </dev/null` in
10424*GNU* | *'with BFD'*)
10425  lt_cv_prog_gnu_ld=yes
10426  ;;
10427*)
10428  lt_cv_prog_gnu_ld=no
10429  ;;
10430esac
10431fi
10432echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10433echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10434with_gnu_ld=$lt_cv_prog_gnu_ld
10435
10436
10437
10438  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10439  # archiving commands below assume that GNU ld is being used.
10440  if test "$with_gnu_ld" = yes; then
10441    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10442    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'
10443
10444    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10445    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10446
10447    # If archive_cmds runs LD, not CC, wlarc should be empty
10448    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10449    #     investigate it a little bit more. (MM)
10450    wlarc='${wl}'
10451
10452    # ancient GNU ld didn't support --whole-archive et. al.
10453    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10454        grep 'no-whole-archive' > /dev/null; then
10455      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10456    else
10457      whole_archive_flag_spec_CXX=
10458    fi
10459  else
10460    with_gnu_ld=no
10461    wlarc=
10462
10463    # A generic and very simple default shared library creation
10464    # command for GNU C++ for the case where it uses the native
10465    # linker, instead of GNU ld.  If possible, this setting should
10466    # overridden to take advantage of the native linker features on
10467    # the platform it is being used on.
10468    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10469  fi
10470
10471  # Commands to make compiler produce verbose output that lists
10472  # what "hidden" libraries, object files and flags are used when
10473  # linking a shared library.
10474  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10475
10476else
10477  GXX=no
10478  with_gnu_ld=no
10479  wlarc=
10480fi
10481
10482# PORTME: fill in a description of your system's C++ link characteristics
10483echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10484echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10485ld_shlibs_CXX=yes
10486case $host_os in
10487  aix3*)
10488    # FIXME: insert proper C++ library support
10489    ld_shlibs_CXX=no
10490    ;;
10491  aix4* | aix5*)
10492    if test "$host_cpu" = ia64; then
10493      # On IA64, the linker does run time linking by default, so we don't
10494      # have to do anything special.
10495      aix_use_runtimelinking=no
10496      exp_sym_flag='-Bexport'
10497      no_entry_flag=""
10498    else
10499      aix_use_runtimelinking=no
10500
10501      # Test if we are trying to use run time linking or normal
10502      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10503      # need to do runtime linking.
10504      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10505        for ld_flag in $LDFLAGS; do
10506          case $ld_flag in
10507          *-brtl*)
10508            aix_use_runtimelinking=yes
10509            break
10510            ;;
10511          esac
10512        done
10513        ;;
10514      esac
10515
10516      exp_sym_flag='-bexport'
10517      no_entry_flag='-bnoentry'
10518    fi
10519
10520    # When large executables or shared objects are built, AIX ld can
10521    # have problems creating the table of contents.  If linking a library
10522    # or program results in "error TOC overflow" add -mminimal-toc to
10523    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10524    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10525
10526    archive_cmds_CXX=''
10527    hardcode_direct_CXX=yes
10528    hardcode_libdir_separator_CXX=':'
10529    link_all_deplibs_CXX=yes
10530
10531    if test "$GXX" = yes; then
10532      case $host_os in aix4.[012]|aix4.[012].*)
10533      # We only want to do this on AIX 4.2 and lower, the check
10534      # below for broken collect2 doesn't work under 4.3+
10535        collect2name=`${CC} -print-prog-name=collect2`
10536        if test -f "$collect2name" && \
10537           strings "$collect2name" | grep resolve_lib_name >/dev/null
10538        then
10539          # We have reworked collect2
10540          hardcode_direct_CXX=yes
10541        else
10542          # We have old collect2
10543          hardcode_direct_CXX=unsupported
10544          # It fails to find uninstalled libraries when the uninstalled
10545          # path is not listed in the libpath.  Setting hardcode_minus_L
10546          # to unsupported forces relinking
10547          hardcode_minus_L_CXX=yes
10548          hardcode_libdir_flag_spec_CXX='-L$libdir'
10549          hardcode_libdir_separator_CXX=
10550        fi
10551        ;;
10552      esac
10553      shared_flag='-shared'
10554      if test "$aix_use_runtimelinking" = yes; then
10555        shared_flag="$shared_flag "'${wl}-G'
10556      fi
10557    else
10558      # not using gcc
10559      if test "$host_cpu" = ia64; then
10560        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10561        # chokes on -Wl,-G. The following line is correct:
10562        shared_flag='-G'
10563      else
10564        if test "$aix_use_runtimelinking" = yes; then
10565          shared_flag='${wl}-G'
10566        else
10567          shared_flag='${wl}-bM:SRE'
10568        fi
10569      fi
10570    fi
10571
10572    # It seems that -bexpall does not export symbols beginning with
10573    # underscore (_), so it is better to generate a list of symbols to export.
10574    always_export_symbols_CXX=yes
10575    if test "$aix_use_runtimelinking" = yes; then
10576      # Warning - without using the other runtime loading flags (-brtl),
10577      # -berok will link without error, but may produce a broken library.
10578      allow_undefined_flag_CXX='-berok'
10579      # Determine the default libpath from the value encoded in an empty executable.
10580      cat >conftest.$ac_ext <<_ACEOF
10581/* confdefs.h.  */
10582_ACEOF
10583cat confdefs.h >>conftest.$ac_ext
10584cat >>conftest.$ac_ext <<_ACEOF
10585/* end confdefs.h.  */
10586
10587int
10588main ()
10589{
10590
10591  ;
10592  return 0;
10593}
10594_ACEOF
10595rm -f conftest.$ac_objext conftest$ac_exeext
10596if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10597  (eval $ac_link) 2>conftest.er1
10598  ac_status=$?
10599  grep -v '^ *+' conftest.er1 >conftest.err
10600  rm -f conftest.er1
10601  cat conftest.err >&5
10602  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10603  (exit $ac_status); } &&
10604         { ac_try='test -z "$ac_cxx_werror_flag"
10605                         || test ! -s conftest.err'
10606  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10607  (eval $ac_try) 2>&5
10608  ac_status=$?
10609  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10610  (exit $ac_status); }; } &&
10611         { ac_try='test -s conftest$ac_exeext'
10612  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10613  (eval $ac_try) 2>&5
10614  ac_status=$?
10615  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10616  (exit $ac_status); }; }; then
10617
10618aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10619}'`
10620# Check for a 64-bit object if we didn't find anything.
10621if 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; }
10622}'`; fi
10623else
10624  echo "$as_me: failed program was:" >&5
10625sed 's/^/| /' conftest.$ac_ext >&5
10626
10627fi
10628rm -f conftest.err conftest.$ac_objext \
10629      conftest$ac_exeext conftest.$ac_ext
10630if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10631
10632      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10633
10634      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"
10635     else
10636      if test "$host_cpu" = ia64; then
10637        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10638        allow_undefined_flag_CXX="-z nodefs"
10639        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"
10640      else
10641        # Determine the default libpath from the value encoded in an empty executable.
10642        cat >conftest.$ac_ext <<_ACEOF
10643/* confdefs.h.  */
10644_ACEOF
10645cat confdefs.h >>conftest.$ac_ext
10646cat >>conftest.$ac_ext <<_ACEOF
10647/* end confdefs.h.  */
10648
10649int
10650main ()
10651{
10652
10653  ;
10654  return 0;
10655}
10656_ACEOF
10657rm -f conftest.$ac_objext conftest$ac_exeext
10658if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10659  (eval $ac_link) 2>conftest.er1
10660  ac_status=$?
10661  grep -v '^ *+' conftest.er1 >conftest.err
10662  rm -f conftest.er1
10663  cat conftest.err >&5
10664  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10665  (exit $ac_status); } &&
10666         { ac_try='test -z "$ac_cxx_werror_flag"
10667                         || test ! -s conftest.err'
10668  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10669  (eval $ac_try) 2>&5
10670  ac_status=$?
10671  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10672  (exit $ac_status); }; } &&
10673         { ac_try='test -s conftest$ac_exeext'
10674  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10675  (eval $ac_try) 2>&5
10676  ac_status=$?
10677  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678  (exit $ac_status); }; }; then
10679
10680aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10681}'`
10682# Check for a 64-bit object if we didn't find anything.
10683if 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; }
10684}'`; fi
10685else
10686  echo "$as_me: failed program was:" >&5
10687sed 's/^/| /' conftest.$ac_ext >&5
10688
10689fi
10690rm -f conftest.err conftest.$ac_objext \
10691      conftest$ac_exeext conftest.$ac_ext
10692if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10693
10694        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10695        # Warning - without using the other run time loading flags,
10696        # -berok will link without error, but may produce a broken library.
10697        no_undefined_flag_CXX=' ${wl}-bernotok'
10698        allow_undefined_flag_CXX=' ${wl}-berok'
10699        # Exported symbols can be pulled into shared objects from archives
10700        whole_archive_flag_spec_CXX='$convenience'
10701        archive_cmds_need_lc_CXX=yes
10702        # This is similar to how AIX traditionally builds its shared libraries.
10703        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'
10704      fi
10705    fi
10706    ;;
10707
10708  beos*)
10709    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10710      allow_undefined_flag_CXX=unsupported
10711      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10712      # support --undefined.  This deserves some investigation.  FIXME
10713      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10714    else
10715      ld_shlibs_CXX=no
10716    fi
10717    ;;
10718
10719  chorus*)
10720    case $cc_basename in
10721      *)
10722        # FIXME: insert proper C++ library support
10723        ld_shlibs_CXX=no
10724        ;;
10725    esac
10726    ;;
10727
10728  cygwin* | mingw* | pw32*)
10729    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10730    # as there is no search path for DLLs.
10731    hardcode_libdir_flag_spec_CXX='-L$libdir'
10732    allow_undefined_flag_CXX=unsupported
10733    always_export_symbols_CXX=no
10734    enable_shared_with_static_runtimes_CXX=yes
10735
10736    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10737      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'
10738      # If the export-symbols file already is a .def file (1st line
10739      # is EXPORTS), use it as is; otherwise, prepend...
10740      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10741        cp $export_symbols $output_objdir/$soname.def;
10742      else
10743        echo EXPORTS > $output_objdir/$soname.def;
10744        cat $export_symbols >> $output_objdir/$soname.def;
10745      fi~
10746      $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'
10747    else
10748      ld_shlibs_CXX=no
10749    fi
10750  ;;
10751      darwin* | rhapsody*)
10752        case $host_os in
10753        rhapsody* | darwin1.[012])
10754         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10755         ;;
10756       *) # Darwin 1.3 on
10757         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10758           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10759         else
10760           case ${MACOSX_DEPLOYMENT_TARGET} in
10761             10.[012])
10762               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10763               ;;
10764             10.*)
10765               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10766               ;;
10767           esac
10768         fi
10769         ;;
10770        esac
10771      archive_cmds_need_lc_CXX=no
10772      hardcode_direct_CXX=no
10773      hardcode_automatic_CXX=yes
10774      hardcode_shlibpath_var