source: trunk/Cbc/configure @ 312

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

finished (for now) conversion of Cbc to autotools

  • Property svn:executable set to *
File size: 734.9 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 COINBASESRCDIR COINBASEOBJDIR COIN_HAS_COINBASE_TRUE COIN_HAS_COINBASE_FALSE DYLPSRCDIR DYLPOBJDIR COIN_HAS_DYLP_TRUE COIN_HAS_DYLP_FALSE OSISRCDIR OSIOBJDIR COIN_HAS_OSI_TRUE COIN_HAS_OSI_FALSE SYMSRCDIR SYMOBJDIR COIN_HAS_SYM_TRUE COIN_HAS_SYM_FALSE VOLSRCDIR VOLOBJDIR COIN_HAS_VOL_TRUE COIN_HAS_VOL_FALSE CPXINCDIR CPXLIBDIR COIN_HAS_CPX_TRUE COIN_HAS_CPX_FALSE GLPKINCDIR GLPKLIBDIR COIN_HAS_GLPK_TRUE COIN_HAS_GLPK_FALSE FMPINCDIR FMPLIBDIR COIN_HAS_FMP_TRUE COIN_HAS_FMP_FALSE MSKINCDIR MSKLIBDIR COIN_HAS_MSK_TRUE COIN_HAS_MSK_FALSE OSLINCDIR OSLLIBDIR COIN_HAS_OSL_TRUE COIN_HAS_OSL_FALSE SPXINCDIR SPXLIBDIR COIN_HAS_SPX_TRUE COIN_HAS_SPX_FALSE XPRINCDIR XPRLIBDIR COIN_HAS_XPR_TRUE COIN_HAS_XPR_FALSE LIBOBJS LTLIBOBJS'
477ac_subst_files=''
478
479# Initialize some variables set by options.
480ac_init_help=
481ac_init_version=false
482# The variables have the same names as the options, with
483# dashes changed to underlines.
484cache_file=/dev/null
485exec_prefix=NONE
486no_create=
487no_recursion=
488prefix=NONE
489program_prefix=NONE
490program_suffix=NONE
491program_transform_name=s,x,x,
492silent=
493site=
494srcdir=
495verbose=
496x_includes=NONE
497x_libraries=NONE
498
499# Installation directory options.
500# These are left unexpanded so users can "make install exec_prefix=/foo"
501# and all the variables that are supposed to be based on exec_prefix
502# by default will actually change.
503# Use braces instead of parens because sh, perl, etc. also accept them.
504bindir='${exec_prefix}/bin'
505sbindir='${exec_prefix}/sbin'
506libexecdir='${exec_prefix}/libexec'
507datadir='${prefix}/share'
508sysconfdir='${prefix}/etc'
509sharedstatedir='${prefix}/com'
510localstatedir='${prefix}/var'
511libdir='${exec_prefix}/lib'
512includedir='${prefix}/include'
513oldincludedir='/usr/include'
514infodir='${prefix}/info'
515mandir='${prefix}/man'
516
517ac_prev=
518for ac_option
519do
520  # If the previous option needs an argument, assign it.
521  if test -n "$ac_prev"; then
522    eval "$ac_prev=\$ac_option"
523    ac_prev=
524    continue
525  fi
526
527  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
528
529  # Accept the important Cygnus configure options, so we can diagnose typos.
530
531  case $ac_option in
532
533  -bindir | --bindir | --bindi | --bind | --bin | --bi)
534    ac_prev=bindir ;;
535  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
536    bindir=$ac_optarg ;;
537
538  -build | --build | --buil | --bui | --bu)
539    ac_prev=build_alias ;;
540  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
541    build_alias=$ac_optarg ;;
542
543  -cache-file | --cache-file | --cache-fil | --cache-fi \
544  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
545    ac_prev=cache_file ;;
546  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
547  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
548    cache_file=$ac_optarg ;;
549
550  --config-cache | -C)
551    cache_file=config.cache ;;
552
553  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
554    ac_prev=datadir ;;
555  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
556  | --da=*)
557    datadir=$ac_optarg ;;
558
559  -disable-* | --disable-*)
560    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
561    # Reject names that are not valid shell variable names.
562    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
563      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
564   { (exit 1); exit 1; }; }
565    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
566    eval "enable_$ac_feature=no" ;;
567
568  -enable-* | --enable-*)
569    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
570    # Reject names that are not valid shell variable names.
571    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
572      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
573   { (exit 1); exit 1; }; }
574    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
575    case $ac_option in
576      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
577      *) ac_optarg=yes ;;
578    esac
579    eval "enable_$ac_feature='$ac_optarg'" ;;
580
581  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
582  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
583  | --exec | --exe | --ex)
584    ac_prev=exec_prefix ;;
585  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
586  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
587  | --exec=* | --exe=* | --ex=*)
588    exec_prefix=$ac_optarg ;;
589
590  -gas | --gas | --ga | --g)
591    # Obsolete; use --with-gas.
592    with_gas=yes ;;
593
594  -help | --help | --hel | --he | -h)
595    ac_init_help=long ;;
596  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
597    ac_init_help=recursive ;;
598  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
599    ac_init_help=short ;;
600
601  -host | --host | --hos | --ho)
602    ac_prev=host_alias ;;
603  -host=* | --host=* | --hos=* | --ho=*)
604    host_alias=$ac_optarg ;;
605
606  -includedir | --includedir | --includedi | --included | --include \
607  | --includ | --inclu | --incl | --inc)
608    ac_prev=includedir ;;
609  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
610  | --includ=* | --inclu=* | --incl=* | --inc=*)
611    includedir=$ac_optarg ;;
612
613  -infodir | --infodir | --infodi | --infod | --info | --inf)
614    ac_prev=infodir ;;
615  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
616    infodir=$ac_optarg ;;
617
618  -libdir | --libdir | --libdi | --libd)
619    ac_prev=libdir ;;
620  -libdir=* | --libdir=* | --libdi=* | --libd=*)
621    libdir=$ac_optarg ;;
622
623  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
624  | --libexe | --libex | --libe)
625    ac_prev=libexecdir ;;
626  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
627  | --libexe=* | --libex=* | --libe=*)
628    libexecdir=$ac_optarg ;;
629
630  -localstatedir | --localstatedir | --localstatedi | --localstated \
631  | --localstate | --localstat | --localsta | --localst \
632  | --locals | --local | --loca | --loc | --lo)
633    ac_prev=localstatedir ;;
634  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
635  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
636  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
637    localstatedir=$ac_optarg ;;
638
639  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
640    ac_prev=mandir ;;
641  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
642    mandir=$ac_optarg ;;
643
644  -nfp | --nfp | --nf)
645    # Obsolete; use --without-fp.
646    with_fp=no ;;
647
648  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
649  | --no-cr | --no-c | -n)
650    no_create=yes ;;
651
652  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
653  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
654    no_recursion=yes ;;
655
656  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
657  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
658  | --oldin | --oldi | --old | --ol | --o)
659    ac_prev=oldincludedir ;;
660  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
661  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
662  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
663    oldincludedir=$ac_optarg ;;
664
665  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
666    ac_prev=prefix ;;
667  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
668    prefix=$ac_optarg ;;
669
670  -program-prefix | --program-prefix | --program-prefi | --program-pref \
671  | --program-pre | --program-pr | --program-p)
672    ac_prev=program_prefix ;;
673  -program-prefix=* | --program-prefix=* | --program-prefi=* \
674  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
675    program_prefix=$ac_optarg ;;
676
677  -program-suffix | --program-suffix | --program-suffi | --program-suff \
678  | --program-suf | --program-su | --program-s)
679    ac_prev=program_suffix ;;
680  -program-suffix=* | --program-suffix=* | --program-suffi=* \
681  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
682    program_suffix=$ac_optarg ;;
683
684  -program-transform-name | --program-transform-name \
685  | --program-transform-nam | --program-transform-na \
686  | --program-transform-n | --program-transform- \
687  | --program-transform | --program-transfor \
688  | --program-transfo | --program-transf \
689  | --program-trans | --program-tran \
690  | --progr-tra | --program-tr | --program-t)
691    ac_prev=program_transform_name ;;
692  -program-transform-name=* | --program-transform-name=* \
693  | --program-transform-nam=* | --program-transform-na=* \
694  | --program-transform-n=* | --program-transform-=* \
695  | --program-transform=* | --program-transfor=* \
696  | --program-transfo=* | --program-transf=* \
697  | --program-trans=* | --program-tran=* \
698  | --progr-tra=* | --program-tr=* | --program-t=*)
699    program_transform_name=$ac_optarg ;;
700
701  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
702  | -silent | --silent | --silen | --sile | --sil)
703    silent=yes ;;
704
705  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
706    ac_prev=sbindir ;;
707  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
708  | --sbi=* | --sb=*)
709    sbindir=$ac_optarg ;;
710
711  -sharedstatedir | --sharedstatedir | --sharedstatedi \
712  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
713  | --sharedst | --shareds | --shared | --share | --shar \
714  | --sha | --sh)
715    ac_prev=sharedstatedir ;;
716  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
717  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
718  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
719  | --sha=* | --sh=*)
720    sharedstatedir=$ac_optarg ;;
721
722  -site | --site | --sit)
723    ac_prev=site ;;
724  -site=* | --site=* | --sit=*)
725    site=$ac_optarg ;;
726
727  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
728    ac_prev=srcdir ;;
729  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
730    srcdir=$ac_optarg ;;
731
732  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
733  | --syscon | --sysco | --sysc | --sys | --sy)
734    ac_prev=sysconfdir ;;
735  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
736  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
737    sysconfdir=$ac_optarg ;;
738
739  -target | --target | --targe | --targ | --tar | --ta | --t)
740    ac_prev=target_alias ;;
741  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
742    target_alias=$ac_optarg ;;
743
744  -v | -verbose | --verbose | --verbos | --verbo | --verb)
745    verbose=yes ;;
746
747  -version | --version | --versio | --versi | --vers | -V)
748    ac_init_version=: ;;
749
750  -with-* | --with-*)
751    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
752    # Reject names that are not valid shell variable names.
753    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
754      { echo "$as_me: error: invalid package name: $ac_package" >&2
755   { (exit 1); exit 1; }; }
756    ac_package=`echo $ac_package| sed 's/-/_/g'`
757    case $ac_option in
758      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
759      *) ac_optarg=yes ;;
760    esac
761    eval "with_$ac_package='$ac_optarg'" ;;
762
763  -without-* | --without-*)
764    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
765    # Reject names that are not valid shell variable names.
766    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
767      { echo "$as_me: error: invalid package name: $ac_package" >&2
768   { (exit 1); exit 1; }; }
769    ac_package=`echo $ac_package | sed 's/-/_/g'`
770    eval "with_$ac_package=no" ;;
771
772  --x)
773    # Obsolete; use --with-x.
774    with_x=yes ;;
775
776  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
777  | --x-incl | --x-inc | --x-in | --x-i)
778    ac_prev=x_includes ;;
779  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
780  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
781    x_includes=$ac_optarg ;;
782
783  -x-libraries | --x-libraries | --x-librarie | --x-librari \
784  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
785    ac_prev=x_libraries ;;
786  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
787  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
788    x_libraries=$ac_optarg ;;
789
790  -*) { echo "$as_me: error: unrecognized option: $ac_option
791Try \`$0 --help' for more information." >&2
792   { (exit 1); exit 1; }; }
793    ;;
794
795  *=*)
796    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
797    # Reject names that are not valid shell variable names.
798    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
799      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
800   { (exit 1); exit 1; }; }
801    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
802    eval "$ac_envvar='$ac_optarg'"
803    export $ac_envvar ;;
804
805  *)
806    # FIXME: should be removed in autoconf 3.0.
807    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
808    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
809      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
810    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
811    ;;
812
813  esac
814done
815
816if test -n "$ac_prev"; then
817  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
818  { echo "$as_me: error: missing argument to $ac_option" >&2
819   { (exit 1); exit 1; }; }
820fi
821
822# Be sure to have absolute paths.
823for ac_var in exec_prefix prefix
824do
825  eval ac_val=$`echo $ac_var`
826  case $ac_val in
827    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
828    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
829   { (exit 1); exit 1; }; };;
830  esac
831done
832
833# Be sure to have absolute paths.
834for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
835              localstatedir libdir includedir oldincludedir infodir mandir
836do
837  eval ac_val=$`echo $ac_var`
838  case $ac_val in
839    [\\/$]* | ?:[\\/]* ) ;;
840    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
841   { (exit 1); exit 1; }; };;
842  esac
843done
844
845# There might be people who depend on the old broken behavior: `$host'
846# used to hold the argument of --host etc.
847# FIXME: To remove some day.
848build=$build_alias
849host=$host_alias
850target=$target_alias
851
852# FIXME: To remove some day.
853if test "x$host_alias" != x; then
854  if test "x$build_alias" = x; then
855    cross_compiling=maybe
856    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
857    If a cross compiler is detected then cross compile mode will be used." >&2
858  elif test "x$build_alias" != "x$host_alias"; then
859    cross_compiling=yes
860  fi
861fi
862
863ac_tool_prefix=
864test -n "$host_alias" && ac_tool_prefix=$host_alias-
865
866test "$silent" = yes && exec 6>/dev/null
867
868
869# Find the source files, if location was not specified.
870if test -z "$srcdir"; then
871  ac_srcdir_defaulted=yes
872  # Try the directory containing this script, then its parent.
873  ac_confdir=`(dirname "$0") 2>/dev/null ||
874$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
875         X"$0" : 'X\(//\)[^/]' \| \
876         X"$0" : 'X\(//\)$' \| \
877         X"$0" : 'X\(/\)' \| \
878         .     : '\(.\)' 2>/dev/null ||
879echo X"$0" |
880    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
881          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
882          /^X\(\/\/\)$/{ s//\1/; q; }
883          /^X\(\/\).*/{ s//\1/; q; }
884          s/.*/./; q'`
885  srcdir=$ac_confdir
886  if test ! -r $srcdir/$ac_unique_file; then
887    srcdir=..
888  fi
889else
890  ac_srcdir_defaulted=no
891fi
892if test ! -r $srcdir/$ac_unique_file; then
893  if test "$ac_srcdir_defaulted" = yes; then
894    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
895   { (exit 1); exit 1; }; }
896  else
897    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
898   { (exit 1); exit 1; }; }
899  fi
900fi
901(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
902  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
903   { (exit 1); exit 1; }; }
904srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
905ac_env_build_alias_set=${build_alias+set}
906ac_env_build_alias_value=$build_alias
907ac_cv_env_build_alias_set=${build_alias+set}
908ac_cv_env_build_alias_value=$build_alias
909ac_env_host_alias_set=${host_alias+set}
910ac_env_host_alias_value=$host_alias
911ac_cv_env_host_alias_set=${host_alias+set}
912ac_cv_env_host_alias_value=$host_alias
913ac_env_target_alias_set=${target_alias+set}
914ac_env_target_alias_value=$target_alias
915ac_cv_env_target_alias_set=${target_alias+set}
916ac_cv_env_target_alias_value=$target_alias
917ac_env_CXXDEFS_set=${CXXDEFS+set}
918ac_env_CXXDEFS_value=$CXXDEFS
919ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
920ac_cv_env_CXXDEFS_value=$CXXDEFS
921ac_env_CXX_set=${CXX+set}
922ac_env_CXX_value=$CXX
923ac_cv_env_CXX_set=${CXX+set}
924ac_cv_env_CXX_value=$CXX
925ac_env_CXXFLAGS_set=${CXXFLAGS+set}
926ac_env_CXXFLAGS_value=$CXXFLAGS
927ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
928ac_cv_env_CXXFLAGS_value=$CXXFLAGS
929ac_env_LDFLAGS_set=${LDFLAGS+set}
930ac_env_LDFLAGS_value=$LDFLAGS
931ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
932ac_cv_env_LDFLAGS_value=$LDFLAGS
933ac_env_CPPFLAGS_set=${CPPFLAGS+set}
934ac_env_CPPFLAGS_value=$CPPFLAGS
935ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
936ac_cv_env_CPPFLAGS_value=$CPPFLAGS
937ac_env_CC_set=${CC+set}
938ac_env_CC_value=$CC
939ac_cv_env_CC_set=${CC+set}
940ac_cv_env_CC_value=$CC
941ac_env_CFLAGS_set=${CFLAGS+set}
942ac_env_CFLAGS_value=$CFLAGS
943ac_cv_env_CFLAGS_set=${CFLAGS+set}
944ac_cv_env_CFLAGS_value=$CFLAGS
945ac_env_CPP_set=${CPP+set}
946ac_env_CPP_value=$CPP
947ac_cv_env_CPP_set=${CPP+set}
948ac_cv_env_CPP_value=$CPP
949ac_env_CXXCPP_set=${CXXCPP+set}
950ac_env_CXXCPP_value=$CXXCPP
951ac_cv_env_CXXCPP_set=${CXXCPP+set}
952ac_cv_env_CXXCPP_value=$CXXCPP
953ac_env_F77_set=${F77+set}
954ac_env_F77_value=$F77
955ac_cv_env_F77_set=${F77+set}
956ac_cv_env_F77_value=$F77
957ac_env_FFLAGS_set=${FFLAGS+set}
958ac_env_FFLAGS_value=$FFLAGS
959ac_cv_env_FFLAGS_set=${FFLAGS+set}
960ac_cv_env_FFLAGS_value=$FFLAGS
961
962#
963# Report the --help message.
964#
965if test "$ac_init_help" = "long"; then
966  # Omit some internal or obsolete options to make the list less imposing.
967  # This message is too long to be a string in the A/UX 3.1 sh.
968  cat <<_ACEOF
969\`configure' configures Cbc 0.1 to adapt to many kinds of systems.
970
971Usage: $0 [OPTION]... [VAR=VALUE]...
972
973To assign environment variables (e.g., CC, CFLAGS...), specify them as
974VAR=VALUE.  See below for descriptions of some of the useful variables.
975
976Defaults for the options are specified in brackets.
977
978Configuration:
979  -h, --help              display this help and exit
980      --help=short        display options specific to this package
981      --help=recursive    display the short help of all the included packages
982  -V, --version           display version information and exit
983  -q, --quiet, --silent   do not print \`checking...' messages
984      --cache-file=FILE   cache test results in FILE [disabled]
985  -C, --config-cache      alias for \`--cache-file=config.cache'
986  -n, --no-create         do not create output files
987      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
988
989_ACEOF
990
991  cat <<_ACEOF
992Installation directories:
993  --prefix=PREFIX         install architecture-independent files in PREFIX
994                          [$ac_default_prefix]
995  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
996                          [PREFIX]
997
998By default, \`make install' will install all the files in
999\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1000an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1001for instance \`--prefix=\$HOME'.
1002
1003For better control, use the options below.
1004
1005Fine tuning of the installation directories:
1006  --bindir=DIR           user executables [EPREFIX/bin]
1007  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1008  --libexecdir=DIR       program executables [EPREFIX/libexec]
1009  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1010  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1011  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1012  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1013  --libdir=DIR           object code libraries [EPREFIX/lib]
1014  --includedir=DIR       C header files [PREFIX/include]
1015  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1016  --infodir=DIR          info documentation [PREFIX/info]
1017  --mandir=DIR           man documentation [PREFIX/man]
1018_ACEOF
1019
1020  cat <<\_ACEOF
1021
1022Program names:
1023  --program-prefix=PREFIX            prepend PREFIX to installed program names
1024  --program-suffix=SUFFIX            append SUFFIX to installed program names
1025  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1026
1027System types:
1028  --build=BUILD     configure for building on BUILD [guessed]
1029  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1030_ACEOF
1031fi
1032
1033if test -n "$ac_init_help"; then
1034  case $ac_init_help in
1035     short | recursive ) echo "Configuration of Cbc 0.1:";;
1036   esac
1037  cat <<\_ACEOF
1038
1039Optional Features:
1040  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1041  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1042  --enable-debug          compile with debug options and runtime tests
1043  --enable-static[=PKGS]
1044                          build static libraries [default=no]
1045  --disable-dependency-tracking  speeds up one-time build
1046  --enable-dependency-tracking   do not reject slow dependency extractors
1047  --enable-maintainer-mode  enable make rules and dependencies not useful
1048                          (and sometimes confusing) to the casual installer
1049  --enable-shared[=PKGS]
1050                          build shared libraries [default=yes]
1051  --enable-fast-install[=PKGS]
1052                          optimize for fast installation [default=yes]
1053  --disable-libtool-lock  avoid locking (might break parallel builds)
1054
1055Optional Packages:
1056  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1057  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1058  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1059  --with-pic              try to use only PIC/non-PIC objects [default=use
1060                          both]
1061  --with-tags[=TAGS]
1062                          include additional configurations [automatic]
1063  --with-cbc-default-solver
1064                          specify default solver for Cbc in lower case letters
1065                          (if not given, clp is assumed)
1066  --with-cplex-incdir specify the directory with the header files for library
1067                          Cplex
1068  --with-cplex-libdir specify the directory with the library Cplex
1069  --with-glpk-incdir specify the directory with the header files for library
1070                          Glpk
1071  --with-glpk-libdir specify the directory with the library Glpk
1072  --with-fortmp-incdir specify the directory with the header files for library
1073                          FortMP
1074  --with-fortmp-libdir specify the directory with the library FortMP
1075  --with-mosek-incdir specify the directory with the header files for library
1076                          Mosek
1077  --with-mosek-libdir specify the directory with the library Mosek
1078  --with-osl-incdir specify the directory with the header files for library
1079                          Osl
1080  --with-osl-libdir specify the directory with the library Osl
1081  --with-soplex-incdir specify the directory with the header files for library
1082                          Soplex
1083  --with-soplex-libdir specify the directory with the library Soplex
1084  --with-xpress-incdir specify the directory with the header files for library
1085                          Xpress
1086  --with-xpress-libdir specify the directory with the library Xpress
1087
1088Some influential environment variables:
1089  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1090  CXX         C++ compiler command
1091  CXXFLAGS    C++ compiler flags
1092  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1093              nonstandard directory <lib dir>
1094  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1095              headers in a nonstandard directory <include dir>
1096  CC          C compiler command
1097  CFLAGS      C compiler flags
1098  CPP         C preprocessor
1099  CXXCPP      C++ preprocessor
1100  F77         Fortran 77 compiler command
1101  FFLAGS      Fortran 77 compiler flags
1102
1103Use these variables to override the choices made by `configure' or to help
1104it to find libraries and programs with nonstandard names/locations.
1105
1106Report bugs to <coin-cbc@list.coin-or.org>.
1107_ACEOF
1108fi
1109
1110if test "$ac_init_help" = "recursive"; then
1111  # If there are subdirs, report their specific --help.
1112  ac_popdir=`pwd`
1113  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1114    test -d $ac_dir || continue
1115    ac_builddir=.
1116
1117if test "$ac_dir" != .; then
1118  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1119  # A "../" for each directory in $ac_dir_suffix.
1120  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1121else
1122  ac_dir_suffix= ac_top_builddir=
1123fi
1124
1125case $srcdir in
1126  .)  # No --srcdir option.  We are building in place.
1127    ac_srcdir=.
1128    if test -z "$ac_top_builddir"; then
1129       ac_top_srcdir=.
1130    else
1131       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1132    fi ;;
1133  [\\/]* | ?:[\\/]* )  # Absolute path.
1134    ac_srcdir=$srcdir$ac_dir_suffix;
1135    ac_top_srcdir=$srcdir ;;
1136  *) # Relative path.
1137    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1138    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1139esac
1140
1141# Do not use `cd foo && pwd` to compute absolute paths, because
1142# the directories may not exist.
1143case `pwd` in
1144.) ac_abs_builddir="$ac_dir";;
1145*)
1146  case "$ac_dir" in
1147  .) ac_abs_builddir=`pwd`;;
1148  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1149  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1150  esac;;
1151esac
1152case $ac_abs_builddir in
1153.) ac_abs_top_builddir=${ac_top_builddir}.;;
1154*)
1155  case ${ac_top_builddir}. in
1156  .) ac_abs_top_builddir=$ac_abs_builddir;;
1157  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1158  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1159  esac;;
1160esac
1161case $ac_abs_builddir in
1162.) ac_abs_srcdir=$ac_srcdir;;
1163*)
1164  case $ac_srcdir in
1165  .) ac_abs_srcdir=$ac_abs_builddir;;
1166  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1167  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1168  esac;;
1169esac
1170case $ac_abs_builddir in
1171.) ac_abs_top_srcdir=$ac_top_srcdir;;
1172*)
1173  case $ac_top_srcdir in
1174  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1175  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1176  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1177  esac;;
1178esac
1179
1180    cd $ac_dir
1181    # Check for guested configure; otherwise get Cygnus style configure.
1182    if test -f $ac_srcdir/configure.gnu; then
1183      echo
1184      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1185    elif test -f $ac_srcdir/configure; then
1186      echo
1187      $SHELL $ac_srcdir/configure  --help=recursive
1188    elif test -f $ac_srcdir/configure.ac ||
1189           test -f $ac_srcdir/configure.in; then
1190      echo
1191      $ac_configure --help
1192    else
1193      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1194    fi
1195    cd $ac_popdir
1196  done
1197fi
1198
1199test -n "$ac_init_help" && exit 0
1200if $ac_init_version; then
1201  cat <<\_ACEOF
1202Cbc configure 0.1
1203generated by GNU Autoconf 2.59
1204
1205Copyright (C) 2003 Free Software Foundation, Inc.
1206This configure script is free software; the Free Software Foundation
1207gives unlimited permission to copy, distribute and modify it.
1208
1209
1210Copyright 2006 International Business Machines and others.
1211All Rights Reserved.
1212This file is part of the open source package Coin which is distributed
1213under the Common Public License.
1214_ACEOF
1215  exit 0
1216fi
1217exec 5>config.log
1218cat >&5 <<_ACEOF
1219This file contains any messages produced by compilers while
1220running configure, to aid debugging if configure makes a mistake.
1221
1222It was created by Cbc $as_me 0.1, which was
1223generated by GNU Autoconf 2.59.  Invocation command line was
1224
1225  $ $0 $@
1226
1227_ACEOF
1228{
1229cat <<_ASUNAME
1230## --------- ##
1231## Platform. ##
1232## --------- ##
1233
1234hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1235uname -m = `(uname -m) 2>/dev/null || echo unknown`
1236uname -r = `(uname -r) 2>/dev/null || echo unknown`
1237uname -s = `(uname -s) 2>/dev/null || echo unknown`
1238uname -v = `(uname -v) 2>/dev/null || echo unknown`
1239
1240/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1241/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1242
1243/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1244/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1245/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1246hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1247/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1248/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1249/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1250
1251_ASUNAME
1252
1253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1254for as_dir in $PATH
1255do
1256  IFS=$as_save_IFS
1257  test -z "$as_dir" && as_dir=.
1258  echo "PATH: $as_dir"
1259done
1260
1261} >&5
1262
1263cat >&5 <<_ACEOF
1264
1265
1266## ----------- ##
1267## Core tests. ##
1268## ----------- ##
1269
1270_ACEOF
1271
1272
1273# Keep a trace of the command line.
1274# Strip out --no-create and --no-recursion so they do not pile up.
1275# Strip out --silent because we don't want to record it for future runs.
1276# Also quote any args containing shell meta-characters.
1277# Make two passes to allow for proper duplicate-argument suppression.
1278ac_configure_args=
1279ac_configure_args0=
1280ac_configure_args1=
1281ac_sep=
1282ac_must_keep_next=false
1283for ac_pass in 1 2
1284do
1285  for ac_arg
1286  do
1287    case $ac_arg in
1288    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1289    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1290    | -silent | --silent | --silen | --sile | --sil)
1291      continue ;;
1292    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1293      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1294    esac
1295    case $ac_pass in
1296    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1297    2)
1298      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1299      if test $ac_must_keep_next = true; then
1300        ac_must_keep_next=false # Got value, back to normal.
1301      else
1302        case $ac_arg in
1303          *=* | --config-cache | -C | -disable-* | --disable-* \
1304          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1305          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1306          | -with-* | --with-* | -without-* | --without-* | --x)
1307            case "$ac_configure_args0 " in
1308              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1309            esac
1310            ;;
1311          -* ) ac_must_keep_next=true ;;
1312        esac
1313      fi
1314      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1315      # Get rid of the leading space.
1316      ac_sep=" "
1317      ;;
1318    esac
1319  done
1320done
1321$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1322$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1323
1324# When interrupted or exit'd, cleanup temporary files, and complete
1325# config.log.  We remove comments because anyway the quotes in there
1326# would cause problems or look ugly.
1327# WARNING: Be sure not to use single quotes in there, as some shells,
1328# such as our DU 5.0 friend, will then `close' the trap.
1329trap 'exit_status=$?
1330  # Save into config.log some information that might help in debugging.
1331  {
1332    echo
1333
1334    cat <<\_ASBOX
1335## ---------------- ##
1336## Cache variables. ##
1337## ---------------- ##
1338_ASBOX
1339    echo
1340    # The following way of writing the cache mishandles newlines in values,
1341{
1342  (set) 2>&1 |
1343    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1344    *ac_space=\ *)
1345      sed -n \
1346        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1347          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1348      ;;
1349    *)
1350      sed -n \
1351        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1352      ;;
1353    esac;
1354}
1355    echo
1356
1357    cat <<\_ASBOX
1358## ----------------- ##
1359## Output variables. ##
1360## ----------------- ##
1361_ASBOX
1362    echo
1363    for ac_var in $ac_subst_vars
1364    do
1365      eval ac_val=$`echo $ac_var`
1366      echo "$ac_var='"'"'$ac_val'"'"'"
1367    done | sort
1368    echo
1369
1370    if test -n "$ac_subst_files"; then
1371      cat <<\_ASBOX
1372## ------------- ##
1373## Output files. ##
1374## ------------- ##
1375_ASBOX
1376      echo
1377      for ac_var in $ac_subst_files
1378      do
1379        eval ac_val=$`echo $ac_var`
1380        echo "$ac_var='"'"'$ac_val'"'"'"
1381      done | sort
1382      echo
1383    fi
1384
1385    if test -s confdefs.h; then
1386      cat <<\_ASBOX
1387## ----------- ##
1388## confdefs.h. ##
1389## ----------- ##
1390_ASBOX
1391      echo
1392      sed "/^$/d" confdefs.h | sort
1393      echo
1394    fi
1395    test "$ac_signal" != 0 &&
1396      echo "$as_me: caught signal $ac_signal"
1397    echo "$as_me: exit $exit_status"
1398  } >&5
1399  rm -f core *.core &&
1400  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1401    exit $exit_status
1402     ' 0
1403for ac_signal in 1 2 13 15; do
1404  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1405done
1406ac_signal=0
1407
1408# confdefs.h avoids OS command line length limits that DEFS can exceed.
1409rm -rf conftest* confdefs.h
1410# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1411echo >confdefs.h
1412
1413# Predefined preprocessor variables.
1414
1415cat >>confdefs.h <<_ACEOF
1416#define PACKAGE_NAME "$PACKAGE_NAME"
1417_ACEOF
1418
1419
1420cat >>confdefs.h <<_ACEOF
1421#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1422_ACEOF
1423
1424
1425cat >>confdefs.h <<_ACEOF
1426#define PACKAGE_VERSION "$PACKAGE_VERSION"
1427_ACEOF
1428
1429
1430cat >>confdefs.h <<_ACEOF
1431#define PACKAGE_STRING "$PACKAGE_STRING"
1432_ACEOF
1433
1434
1435cat >>confdefs.h <<_ACEOF
1436#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1437_ACEOF
1438
1439
1440# Let the site file select an alternate cache file if it wants to.
1441# Prefer explicitly selected file to automatically selected ones.
1442if test -z "$CONFIG_SITE"; then
1443  if test "x$prefix" != xNONE; then
1444    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1445  else
1446    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1447  fi
1448fi
1449for ac_site_file in $CONFIG_SITE; do
1450  if test -r "$ac_site_file"; then
1451    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1452echo "$as_me: loading site script $ac_site_file" >&6;}
1453    sed 's/^/| /' "$ac_site_file" >&5
1454    . "$ac_site_file"
1455  fi
1456done
1457
1458if test -r "$cache_file"; then
1459  # Some versions of bash will fail to source /dev/null (special
1460  # files actually), so we avoid doing that.
1461  if test -f "$cache_file"; then
1462    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1463echo "$as_me: loading cache $cache_file" >&6;}
1464    case $cache_file in
1465      [\\/]* | ?:[\\/]* ) . $cache_file;;
1466      *)                      . ./$cache_file;;
1467    esac
1468  fi
1469else
1470  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1471echo "$as_me: creating cache $cache_file" >&6;}
1472  >$cache_file
1473fi
1474
1475# Check that the precious variables saved in the cache have kept the same
1476# value.
1477ac_cache_corrupted=false
1478for ac_var in `(set) 2>&1 |
1479               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1480  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1481  eval ac_new_set=\$ac_env_${ac_var}_set
1482  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1483  eval ac_new_val="\$ac_env_${ac_var}_value"
1484  case $ac_old_set,$ac_new_set in
1485    set,)
1486      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1487echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1488      ac_cache_corrupted=: ;;
1489    ,set)
1490      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1491echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1492      ac_cache_corrupted=: ;;
1493    ,);;
1494    *)
1495      if test "x$ac_old_val" != "x$ac_new_val"; then
1496        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1497echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1498        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1499echo "$as_me:   former value:  $ac_old_val" >&2;}
1500        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1501echo "$as_me:   current value: $ac_new_val" >&2;}
1502        ac_cache_corrupted=:
1503      fi;;
1504  esac
1505  # Pass precious variables to config.status.
1506  if test "$ac_new_set" = set; then
1507    case $ac_new_val in
1508    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1509      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1510    *) ac_arg=$ac_var=$ac_new_val ;;
1511    esac
1512    case " $ac_configure_args " in
1513      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1514      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1515    esac
1516  fi
1517done
1518if $ac_cache_corrupted; then
1519  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1520echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1521  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1522echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1523   { (exit 1); exit 1; }; }
1524fi
1525
1526ac_ext=c
1527ac_cpp='$CPP $CPPFLAGS'
1528ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1529ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1530ac_compiler_gnu=$ac_cv_c_compiler_gnu
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563# List one file in the package so that the configure script can test
1564# whether the package is actually there
1565
1566
1567#############################################################################
1568#                         Standard build tool stuff                         #
1569#############################################################################
1570
1571# Get the system type
1572ac_aux_dir=
1573for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1574  if test -f $ac_dir/install-sh; then
1575    ac_aux_dir=$ac_dir
1576    ac_install_sh="$ac_aux_dir/install-sh -c"
1577    break
1578  elif test -f $ac_dir/install.sh; then
1579    ac_aux_dir=$ac_dir
1580    ac_install_sh="$ac_aux_dir/install.sh -c"
1581    break
1582  elif test -f $ac_dir/shtool; then
1583    ac_aux_dir=$ac_dir
1584    ac_install_sh="$ac_aux_dir/shtool install -c"
1585    break
1586  fi
1587done
1588if test -z "$ac_aux_dir"; then
1589  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1590echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1591   { (exit 1); exit 1; }; }
1592fi
1593ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1594ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1595ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1596
1597# Make sure we can run config.sub.
1598$ac_config_sub sun4 >/dev/null 2>&1 ||
1599  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1600echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1601   { (exit 1); exit 1; }; }
1602
1603echo "$as_me:$LINENO: checking build system type" >&5
1604echo $ECHO_N "checking build system type... $ECHO_C" >&6
1605if test "${ac_cv_build+set}" = set; then
1606  echo $ECHO_N "(cached) $ECHO_C" >&6
1607else
1608  ac_cv_build_alias=$build_alias
1609test -z "$ac_cv_build_alias" &&
1610  ac_cv_build_alias=`$ac_config_guess`
1611test -z "$ac_cv_build_alias" &&
1612  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1613echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1614   { (exit 1); exit 1; }; }
1615ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1616  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1617echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1618   { (exit 1); exit 1; }; }
1619
1620fi
1621echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1622echo "${ECHO_T}$ac_cv_build" >&6
1623build=$ac_cv_build
1624build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1625build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1626build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1627
1628
1629
1630# Where should everything be installed by default?  Here, we want it
1631# to be installed directly in 'bin', 'lib', 'include' subdirectories
1632# of the directory where configure is run.  The default would be
1633# /usr/local.
1634
1635
1636# If this project depends on external projects, the Externals file in
1637# the source root directory contains definition of where to find those
1638# externals.  The following macro ensures that those externals are
1639# retrieved by svn if they are not there yet.
1640# Initialize the ADDLIBS variable (a number of library require -lm)
1641ADDLIBS="-lm"
1642
1643
1644# A useful makefile conditional that is always false
1645
1646
1647if false; then
1648  ALWAYS_FALSE_TRUE=
1649  ALWAYS_FALSE_FALSE='#'
1650else
1651  ALWAYS_FALSE_TRUE='#'
1652  ALWAYS_FALSE_FALSE=
1653fi
1654
1655
1656# A makefile conditional that is set to true if
1657
1658
1659# Check if user wants to produce debugging code
1660
1661echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1662echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1663
1664# Check whether --enable-debug or --disable-debug was given.
1665if test "${enable_debug+set}" = set; then
1666  enableval="$enable_debug"
1667  case "${enableval}" in
1668                   yes) coin_debug_compile=true
1669
1670cat >>confdefs.h <<\_ACEOF
1671#define COIN_DEBUG 1
1672_ACEOF
1673
1674                     ;;
1675                   no)  coin_debug_compile=false
1676                     ;;
1677                    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1678echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1679   { (exit 1); exit 1; }; }
1680                     ;;
1681                 esac
1682else
1683  coin_debug_compile=false
1684fi;
1685
1686if test $coin_debug_compile = true; then
1687  echo "$as_me:$LINENO: result: yes" >&5
1688echo "${ECHO_T}yes" >&6
1689else
1690  echo "$as_me:$LINENO: result: no" >&5
1691echo "${ECHO_T}no" >&6
1692fi
1693
1694
1695
1696if test "$coin_debug_compile" = true; then
1697  COIN_DEBUG_TRUE=
1698  COIN_DEBUG_FALSE='#'
1699else
1700  COIN_DEBUG_TRUE='#'
1701  COIN_DEBUG_FALSE=
1702fi
1703
1704
1705
1706# Get the name of the C++ compiler and appropriate compiler options
1707
1708ac_ext=cc
1709ac_cpp='$CXXCPP $CPPFLAGS'
1710ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1711ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1712ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1713
1714
1715
1716
1717coin_has_cxx=yes
1718
1719save_cxxflags="$CXXFLAGS"
1720case $build in
1721  *-cygwin*) comps="g++ cl" ;;
1722  *-mingw*)  comps="g++ cl" ;;
1723  *-darwin*) comps="g++ c++ CC" ;;
1724          *) comps="xlC aCC CC g++ c++ pgCC icpc" ;;
1725esac
1726ac_ext=cc
1727ac_cpp='$CXXCPP $CPPFLAGS'
1728ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1729ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1730ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
1731if test -n "$ac_tool_prefix"; then
1732  for ac_prog in $CCC $comps
1733  do
1734    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1735set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1736echo "$as_me:$LINENO: checking for $ac_word" >&5
1737echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1738if test "${ac_cv_prog_CXX+set}" = set; then
1739  echo $ECHO_N "(cached) $ECHO_C" >&6
1740else
1741  if test -n "$CXX"; then
1742  ac_cv_prog_CXX="$CXX" # Let the user override the test.
1743else
1744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1745for as_dir in $PATH
1746do
1747  IFS=$as_save_IFS
1748  test -z "$as_dir" && as_dir=.
1749  for ac_exec_ext in '' $ac_executable_extensions; do
1750  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1751    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
1752    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1753    break 2
1754  fi
1755done
1756done
1757
1758fi
1759fi
1760CXX=$ac_cv_prog_CXX
1761if test -n "$CXX"; then
1762  echo "$as_me:$LINENO: result: $CXX" >&5
1763echo "${ECHO_T}$CXX" >&6
1764else
1765  echo "$as_me:$LINENO: result: no" >&5
1766echo "${ECHO_T}no" >&6
1767fi
1768
1769    test -n "$CXX" && break
1770  done
1771fi
1772if test -z "$CXX"; then
1773  ac_ct_CXX=$CXX
1774  for ac_prog in $CCC $comps
1775do
1776  # Extract the first word of "$ac_prog", so it can be a program name with args.
1777set dummy $ac_prog; ac_word=$2
1778echo "$as_me:$LINENO: checking for $ac_word" >&5
1779echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1780if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
1781  echo $ECHO_N "(cached) $ECHO_C" >&6
1782else
1783  if test -n "$ac_ct_CXX"; then
1784  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
1785else
1786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1787for as_dir in $PATH
1788do
1789  IFS=$as_save_IFS
1790  test -z "$as_dir" && as_dir=.
1791  for ac_exec_ext in '' $ac_executable_extensions; do
1792  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1793    ac_cv_prog_ac_ct_CXX="$ac_prog"
1794    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1795    break 2
1796  fi
1797done
1798done
1799
1800fi
1801fi
1802ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
1803if test -n "$ac_ct_CXX"; then
1804  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
1805echo "${ECHO_T}$ac_ct_CXX" >&6
1806else
1807  echo "$as_me:$LINENO: result: no" >&5
1808echo "${ECHO_T}no" >&6
1809fi
1810
1811  test -n "$ac_ct_CXX" && break
1812done
1813test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
1814
1815  CXX=$ac_ct_CXX
1816fi
1817
1818
1819# Provide some information about the compiler.
1820echo "$as_me:$LINENO:" \
1821     "checking for C++ compiler version" >&5
1822ac_compiler=`set X $ac_compile; echo $2`
1823{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1824  (eval $ac_compiler --version </dev/null >&5) 2>&5
1825  ac_status=$?
1826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1827  (exit $ac_status); }
1828{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1829  (eval $ac_compiler -v </dev/null >&5) 2>&5
1830  ac_status=$?
1831  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1832  (exit $ac_status); }
1833{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1834  (eval $ac_compiler -V </dev/null >&5) 2>&5
1835  ac_status=$?
1836  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1837  (exit $ac_status); }
1838
1839cat >conftest.$ac_ext <<_ACEOF
1840/* confdefs.h.  */
1841_ACEOF
1842cat confdefs.h >>conftest.$ac_ext
1843cat >>conftest.$ac_ext <<_ACEOF
1844/* end confdefs.h.  */
1845
1846int
1847main ()
1848{
1849
1850  ;
1851  return 0;
1852}
1853_ACEOF
1854ac_clean_files_save=$ac_clean_files
1855ac_clean_files="$ac_clean_files a.out a.exe b.out"
1856# Try to create an executable without -o first, disregard a.out.
1857# It will help us diagnose broken compilers, and finding out an intuition
1858# of exeext.
1859echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
1860echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6
1861ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1862if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1863  (eval $ac_link_default) 2>&5
1864  ac_status=$?
1865  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1866  (exit $ac_status); }; then
1867  # Find the output, starting from the most likely.  This scheme is
1868# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1869# resort.
1870
1871# Be careful to initialize this variable, since it used to be cached.
1872# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1873ac_cv_exeext=
1874# b.out is created by i960 compilers.
1875for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1876do
1877  test -f "$ac_file" || continue
1878  case $ac_file in
1879    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1880        ;;
1881    conftest.$ac_ext )
1882        # This is the source file.
1883        ;;
1884    [ab].out )
1885        # We found the default executable, but exeext='' is most
1886        # certainly right.
1887        break;;
1888    *.* )
1889        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1890        # FIXME: I believe we export ac_cv_exeext for Libtool,
1891        # but it would be cool to find out if it's true.  Does anybody
1892        # maintain Libtool? --akim.
1893        export ac_cv_exeext
1894        break;;
1895    * )
1896        break;;
1897  esac
1898done
1899else
1900  echo "$as_me: failed program was:" >&5
1901sed 's/^/| /' conftest.$ac_ext >&5
1902
1903{ { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
1904See \`config.log' for more details." >&5
1905echo "$as_me: error: C++ compiler cannot create executables
1906See \`config.log' for more details." >&2;}
1907   { (exit 77); exit 77; }; }
1908fi
1909
1910ac_exeext=$ac_cv_exeext
1911echo "$as_me:$LINENO: result: $ac_file" >&5
1912echo "${ECHO_T}$ac_file" >&6
1913
1914# Check the compiler produces executables we can run.  If not, either
1915# the compiler is broken, or we cross compile.
1916echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
1917echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6
1918# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1919# If not cross compiling, check that we can run a simple program.
1920if test "$cross_compiling" != yes; then
1921  if { ac_try='./$ac_file'
1922  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1923  (eval $ac_try) 2>&5
1924  ac_status=$?
1925  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1926  (exit $ac_status); }; }; then
1927    cross_compiling=no
1928  else
1929    if test "$cross_compiling" = maybe; then
1930        cross_compiling=yes
1931    else
1932        { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
1933If you meant to cross compile, use \`--host'.
1934See \`config.log' for more details." >&5
1935echo "$as_me: error: cannot run C++ compiled programs.
1936If you meant to cross compile, use \`--host'.
1937See \`config.log' for more details." >&2;}
1938   { (exit 1); exit 1; }; }
1939    fi
1940  fi
1941fi
1942echo "$as_me:$LINENO: result: yes" >&5
1943echo "${ECHO_T}yes" >&6
1944
1945rm -f a.out a.exe conftest$ac_cv_exeext b.out
1946ac_clean_files=$ac_clean_files_save
1947# Check the compiler produces executables we can run.  If not, either
1948# the compiler is broken, or we cross compile.
1949echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1950echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1951echo "$as_me:$LINENO: result: $cross_compiling" >&5
1952echo "${ECHO_T}$cross_compiling" >&6
1953
1954echo "$as_me:$LINENO: checking for suffix of executables" >&5
1955echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1956if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1957  (eval $ac_link) 2>&5
1958  ac_status=$?
1959  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1960  (exit $ac_status); }; then
1961  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1962# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1963# work properly (i.e., refer to `conftest.exe'), while it won't with
1964# `rm'.
1965for ac_file in conftest.exe conftest conftest.*; do
1966  test -f "$ac_file" || continue
1967  case $ac_file in
1968    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1969    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1970          export ac_cv_exeext
1971          break;;
1972    * ) break;;
1973  esac
1974done
1975else
1976  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1977See \`config.log' for more details." >&5
1978echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1979See \`config.log' for more details." >&2;}
1980   { (exit 1); exit 1; }; }
1981fi
1982
1983rm -f conftest$ac_cv_exeext
1984echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1985echo "${ECHO_T}$ac_cv_exeext" >&6
1986
1987rm -f conftest.$ac_ext
1988EXEEXT=$ac_cv_exeext
1989ac_exeext=$EXEEXT
1990echo "$as_me:$LINENO: checking for suffix of object files" >&5
1991echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1992if test "${ac_cv_objext+set}" = set; then
1993  echo $ECHO_N "(cached) $ECHO_C" >&6
1994else
1995  cat >conftest.$ac_ext <<_ACEOF
1996/* confdefs.h.  */
1997_ACEOF
1998cat confdefs.h >>conftest.$ac_ext
1999cat >>conftest.$ac_ext <<_ACEOF
2000/* end confdefs.h.  */
2001
2002int
2003main ()
2004{
2005
2006  ;
2007  return 0;
2008}
2009_ACEOF
2010rm -f conftest.o conftest.obj
2011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2012  (eval $ac_compile) 2>&5
2013  ac_status=$?
2014  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2015  (exit $ac_status); }; then
2016  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2017  case $ac_file in
2018    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2019    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2020       break;;
2021  esac
2022done
2023else
2024  echo "$as_me: failed program was:" >&5
2025sed 's/^/| /' conftest.$ac_ext >&5
2026
2027{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2028See \`config.log' for more details." >&5
2029echo "$as_me: error: cannot compute suffix of object files: cannot compile
2030See \`config.log' for more details." >&2;}
2031   { (exit 1); exit 1; }; }
2032fi
2033
2034rm -f conftest.$ac_cv_objext conftest.$ac_ext
2035fi
2036echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2037echo "${ECHO_T}$ac_cv_objext" >&6
2038OBJEXT=$ac_cv_objext
2039ac_objext=$OBJEXT
2040echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2041echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2042if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2043  echo $ECHO_N "(cached) $ECHO_C" >&6
2044else
2045  cat >conftest.$ac_ext <<_ACEOF
2046/* confdefs.h.  */
2047_ACEOF
2048cat confdefs.h >>conftest.$ac_ext
2049cat >>conftest.$ac_ext <<_ACEOF
2050/* end confdefs.h.  */
2051
2052int
2053main ()
2054{
2055#ifndef __GNUC__
2056       choke me
2057#endif
2058
2059  ;
2060  return 0;
2061}
2062_ACEOF
2063rm -f conftest.$ac_objext
2064if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2065  (eval $ac_compile) 2>conftest.er1
2066  ac_status=$?
2067  grep -v '^ *+' conftest.er1 >conftest.err
2068  rm -f conftest.er1
2069  cat conftest.err >&5
2070  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2071  (exit $ac_status); } &&
2072         { ac_try='test -z "$ac_cxx_werror_flag"
2073                         || test ! -s conftest.err'
2074  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2075  (eval $ac_try) 2>&5
2076  ac_status=$?
2077  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2078  (exit $ac_status); }; } &&
2079         { ac_try='test -s conftest.$ac_objext'
2080  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2081  (eval $ac_try) 2>&5
2082  ac_status=$?
2083  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2084  (exit $ac_status); }; }; then
2085  ac_compiler_gnu=yes
2086else
2087  echo "$as_me: failed program was:" >&5
2088sed 's/^/| /' conftest.$ac_ext >&5
2089
2090ac_compiler_gnu=no
2091fi
2092rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2093ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2094
2095fi
2096echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2097echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
2098GXX=`test $ac_compiler_gnu = yes && echo yes`
2099ac_test_CXXFLAGS=${CXXFLAGS+set}
2100ac_save_CXXFLAGS=$CXXFLAGS
2101CXXFLAGS="-g"
2102echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2103echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2104if test "${ac_cv_prog_cxx_g+set}" = set; then
2105  echo $ECHO_N "(cached) $ECHO_C" >&6
2106else
2107  cat >conftest.$ac_ext <<_ACEOF
2108/* confdefs.h.  */
2109_ACEOF
2110cat confdefs.h >>conftest.$ac_ext
2111cat >>conftest.$ac_ext <<_ACEOF
2112/* end confdefs.h.  */
2113
2114int
2115main ()
2116{
2117
2118  ;
2119  return 0;
2120}
2121_ACEOF
2122rm -f conftest.$ac_objext
2123if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2124  (eval $ac_compile) 2>conftest.er1
2125  ac_status=$?
2126  grep -v '^ *+' conftest.er1 >conftest.err
2127  rm -f conftest.er1
2128  cat conftest.err >&5
2129  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2130  (exit $ac_status); } &&
2131         { ac_try='test -z "$ac_cxx_werror_flag"
2132                         || test ! -s conftest.err'
2133  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2134  (eval $ac_try) 2>&5
2135  ac_status=$?
2136  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2137  (exit $ac_status); }; } &&
2138         { ac_try='test -s conftest.$ac_objext'
2139  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2140  (eval $ac_try) 2>&5
2141  ac_status=$?
2142  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2143  (exit $ac_status); }; }; then
2144  ac_cv_prog_cxx_g=yes
2145else
2146  echo "$as_me: failed program was:" >&5
2147sed 's/^/| /' conftest.$ac_ext >&5
2148
2149ac_cv_prog_cxx_g=no
2150fi
2151rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2152fi
2153echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2154echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
2155if test "$ac_test_CXXFLAGS" = set; then
2156  CXXFLAGS=$ac_save_CXXFLAGS
2157elif test $ac_cv_prog_cxx_g = yes; then
2158  if test "$GXX" = yes; then
2159    CXXFLAGS="-g -O2"
2160  else
2161    CXXFLAGS="-g"
2162  fi
2163else
2164  if test "$GXX" = yes; then
2165    CXXFLAGS="-O2"
2166  else
2167    CXXFLAGS=
2168  fi
2169fi
2170for ac_declaration in \
2171   '' \
2172   'extern "C" void std::exit (int) throw (); using std::exit;' \
2173   'extern "C" void std::exit (int); using std::exit;' \
2174   'extern "C" void exit (int) throw ();' \
2175   'extern "C" void exit (int);' \
2176   'void exit (int);'
2177do
2178  cat >conftest.$ac_ext <<_ACEOF
2179/* confdefs.h.  */
2180_ACEOF
2181cat confdefs.h >>conftest.$ac_ext
2182cat >>conftest.$ac_ext <<_ACEOF
2183/* end confdefs.h.  */
2184$ac_declaration
2185#include <stdlib.h>
2186int
2187main ()
2188{
2189exit (42);
2190  ;
2191  return 0;
2192}
2193_ACEOF
2194rm -f conftest.$ac_objext
2195if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2196  (eval $ac_compile) 2>conftest.er1
2197  ac_status=$?
2198  grep -v '^ *+' conftest.er1 >conftest.err
2199  rm -f conftest.er1
2200  cat conftest.err >&5
2201  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2202  (exit $ac_status); } &&
2203         { ac_try='test -z "$ac_cxx_werror_flag"
2204                         || test ! -s conftest.err'
2205  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2206  (eval $ac_try) 2>&5
2207  ac_status=$?
2208  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2209  (exit $ac_status); }; } &&
2210         { ac_try='test -s conftest.$ac_objext'
2211  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2212  (eval $ac_try) 2>&5
2213  ac_status=$?
2214  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215  (exit $ac_status); }; }; then
2216  :
2217else
2218  echo "$as_me: failed program was:" >&5
2219sed 's/^/| /' conftest.$ac_ext >&5
2220
2221continue
2222fi
2223rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2224  cat >conftest.$ac_ext <<_ACEOF
2225/* confdefs.h.  */
2226_ACEOF
2227cat confdefs.h >>conftest.$ac_ext
2228cat >>conftest.$ac_ext <<_ACEOF
2229/* end confdefs.h.  */
2230$ac_declaration
2231int
2232main ()
2233{
2234exit (42);
2235  ;
2236  return 0;
2237}
2238_ACEOF
2239rm -f conftest.$ac_objext
2240if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2241  (eval $ac_compile) 2>conftest.er1
2242  ac_status=$?
2243  grep -v '^ *+' conftest.er1 >conftest.err
2244  rm -f conftest.er1
2245  cat conftest.err >&5
2246  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2247  (exit $ac_status); } &&
2248         { ac_try='test -z "$ac_cxx_werror_flag"
2249                         || test ! -s conftest.err'
2250  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2251  (eval $ac_try) 2>&5
2252  ac_status=$?
2253  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2254  (exit $ac_status); }; } &&
2255         { ac_try='test -s conftest.$ac_objext'
2256  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2257  (eval $ac_try) 2>&5
2258  ac_status=$?
2259  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2260  (exit $ac_status); }; }; then
2261  break
2262else
2263  echo "$as_me: failed program was:" >&5
2264sed 's/^/| /' conftest.$ac_ext >&5
2265
2266fi
2267rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2268done
2269rm -f conftest*
2270if test -n "$ac_declaration"; then
2271  echo '#ifdef __cplusplus' >>confdefs.h
2272  echo $ac_declaration      >>confdefs.h
2273  echo '#endif'             >>confdefs.h
2274fi
2275
2276ac_ext=cc
2277ac_cpp='$CXXCPP $CPPFLAGS'
2278ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2279ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2280ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2281
2282CXXFLAGS="$save_cxxflags"
2283
2284echo "$as_me:$LINENO: checking for C++ compiler options" >&5
2285echo $ECHO_N "checking for C++ compiler options... $ECHO_C" >&6
2286if test "${coin_cv_cxxflags+set}" = set; then
2287  echo $ECHO_N "(cached) $ECHO_C" >&6
2288else
2289  if test x"$CXXFLAGS" = x; then
2290
2291# ToDo decide whether we want -DNDEBUG for optimization
2292  coin_add_cxxflags=
2293  coin_opt_cxxflags=
2294  coin_dbg_cxxflags=
2295  coin_warn_cxxflags=
2296
2297  if test "$GXX" = "yes"; then
2298    case "$CXX" in
2299      icpc | */icpc)
2300        ;;
2301      *)
2302# ToDo decide about unroll-loops
2303        coin_opt_cxxflags="-O3"
2304        coin_add_cxxflags="-pipe"
2305        coin_dbg_cxxflags="-g"
2306        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion -Wconversion"
2307
2308        case $build in
2309          *-cygwin*)
2310            CXXFLAGS="-mno-cygwin"
2311            cat >conftest.$ac_ext <<_ACEOF
2312/* confdefs.h.  */
2313_ACEOF
2314cat confdefs.h >>conftest.$ac_ext
2315cat >>conftest.$ac_ext <<_ACEOF
2316/* end confdefs.h.  */
2317
2318int
2319main ()
2320{
2321int i=0; i++;
2322  ;
2323  return 0;
2324}
2325_ACEOF
2326rm -f conftest.$ac_objext conftest$ac_exeext
2327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2328  (eval $ac_link) 2>conftest.er1
2329  ac_status=$?
2330  grep -v '^ *+' conftest.er1 >conftest.err
2331  rm -f conftest.er1
2332  cat conftest.err >&5
2333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2334  (exit $ac_status); } &&
2335         { ac_try='test -z "$ac_cxx_werror_flag"
2336                         || test ! -s conftest.err'
2337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2338  (eval $ac_try) 2>&5
2339  ac_status=$?
2340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2341  (exit $ac_status); }; } &&
2342         { ac_try='test -s conftest$ac_exeext'
2343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2344  (eval $ac_try) 2>&5
2345  ac_status=$?
2346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2347  (exit $ac_status); }; }; then
2348  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
2349else
2350  echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353fi
2354rm -f conftest.err conftest.$ac_objext \
2355      conftest$ac_exeext conftest.$ac_ext
2356            CXXFLAGS=
2357            ;;
2358        esac
2359        ;;
2360    esac
2361  fi
2362  if test -z "$coin_opt_cxxflags"; then
2363    case $build in
2364      *-cygwin*)
2365        case "$CXX" in
2366          cl | */cl)
2367            coin_opt_cxxflags='-Ot1'
2368            coin_add_cxxflags='-nologo -EHsc -GR -MT'
2369            coin_dbg_cxxflags='-Yd'
2370            ;;
2371        esac
2372        ;;
2373      *-linux-*)
2374        case "$CXX" in
2375          icpc | */icpc)
2376            coin_opt_cxxflags="-O3 -ip"
2377            coin_add_cxxflags=""
2378            coin_dbg_cxxflags="-g"
2379            # Check if -i_dynamic is necessary (for new glibc library)
2380            CXXFLAGS=
2381            cat >conftest.$ac_ext <<_ACEOF
2382/* confdefs.h.  */
2383_ACEOF
2384cat confdefs.h >>conftest.$ac_ext
2385cat >>conftest.$ac_ext <<_ACEOF
2386/* end confdefs.h.  */
2387
2388int
2389main ()
2390{
2391int i=0; i++;
2392  ;
2393  return 0;
2394}
2395_ACEOF
2396rm -f conftest.$ac_objext conftest$ac_exeext
2397if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2398  (eval $ac_link) 2>conftest.er1
2399  ac_status=$?
2400  grep -v '^ *+' conftest.er1 >conftest.err
2401  rm -f conftest.er1
2402  cat conftest.err >&5
2403  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404  (exit $ac_status); } &&
2405         { ac_try='test -z "$ac_cxx_werror_flag"
2406                         || test ! -s conftest.err'
2407  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2408  (eval $ac_try) 2>&5
2409  ac_status=$?
2410  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411  (exit $ac_status); }; } &&
2412         { ac_try='test -s conftest$ac_exeext'
2413  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2414  (eval $ac_try) 2>&5
2415  ac_status=$?
2416  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2417  (exit $ac_status); }; }; then
2418  :
2419else
2420  echo "$as_me: failed program was:" >&5
2421sed 's/^/| /' conftest.$ac_ext >&5
2422
2423coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
2424fi
2425rm -f conftest.err conftest.$ac_objext \
2426      conftest$ac_exeext conftest.$ac_ext
2427            ;;
2428          pgCC | */pgCC)
2429            coin_opt_cxxflags="-fast"
2430            coin_add_cxxflags="-Kieee -pc 64"
2431            coin_dbg_cxxflags="-g"
2432            ;;
2433        esac
2434        ;;
2435      *-ibm-*)
2436        case "$CXX" in
2437          xlC* | */xlC* | mpxlC* | */mpxlC*)
2438            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
2439            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
2440            coin_dbg_cxxflags="-g"
2441            ;;
2442        esac
2443        ;;
2444      *-hp-*)
2445        case "$CXX" in
2446          aCC | */aCC )
2447            coin_opt_cxxflags="-O"
2448            coin_add_cxxflags="-AA"
2449            coin_dbg_cxxflags="-g"
2450            ;;
2451        esac
2452        ;;
2453      *-sun-*)
2454          coin_opt_cxxflags="-O4 -xtarget=native"
2455          coin_dbg_cxxflags="-g"
2456        ;;
2457    esac
2458  fi
2459
2460  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
2461    coin_dbg_cxxflags="-g"
2462  fi
2463
2464  if test "$coin_debug_compile" = "true"; then
2465    CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
2466  else
2467    if test -z "$coin_opt_cxxflags"; then
2468      # Try if -O option works if nothing else is set
2469      CXXFLAGS="-O"
2470      cat >conftest.$ac_ext <<_ACEOF
2471/* confdefs.h.  */
2472_ACEOF
2473cat confdefs.h >>conftest.$ac_ext
2474cat >>conftest.$ac_ext <<_ACEOF
2475/* end confdefs.h.  */
2476
2477int
2478main ()
2479{
2480int i=0; i++;
2481  ;
2482  return 0;
2483}
2484_ACEOF
2485rm -f conftest.$ac_objext conftest$ac_exeext
2486if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2487  (eval $ac_link) 2>conftest.er1
2488  ac_status=$?
2489  grep -v '^ *+' conftest.er1 >conftest.err
2490  rm -f conftest.er1
2491  cat conftest.err >&5
2492  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2493  (exit $ac_status); } &&
2494         { ac_try='test -z "$ac_cxx_werror_flag"
2495                         || test ! -s conftest.err'
2496  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2497  (eval $ac_try) 2>&5
2498  ac_status=$?
2499  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2500  (exit $ac_status); }; } &&
2501         { ac_try='test -s conftest$ac_exeext'
2502  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2503  (eval $ac_try) 2>&5
2504  ac_status=$?
2505  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2506  (exit $ac_status); }; }; then
2507  coin_opt_cxxflags="-O"
2508else
2509  echo "$as_me: failed program was:" >&5
2510sed 's/^/| /' conftest.$ac_ext >&5
2511
2512fi
2513rm -f conftest.err conftest.$ac_objext \
2514      conftest$ac_exeext conftest.$ac_ext
2515    fi
2516    CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $CXXDEFS $coin_warn_cxxflags"
2517  fi
2518fi
2519
2520# Try if CXXFLAGS works
2521cat >conftest.$ac_ext <<_ACEOF
2522/* confdefs.h.  */
2523_ACEOF
2524cat confdefs.h >>conftest.$ac_ext
2525cat >>conftest.$ac_ext <<_ACEOF
2526/* end confdefs.h.  */
2527
2528int
2529main ()
2530{
2531int i=0; i++;
2532  ;
2533  return 0;
2534}
2535_ACEOF
2536rm -f conftest.$ac_objext conftest$ac_exeext
2537if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2538  (eval $ac_link) 2>conftest.er1
2539  ac_status=$?
2540  grep -v '^ *+' conftest.er1 >conftest.err
2541  rm -f conftest.er1
2542  cat conftest.err >&5
2543  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2544  (exit $ac_status); } &&
2545         { ac_try='test -z "$ac_cxx_werror_flag"
2546                         || test ! -s conftest.err'
2547  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2548  (eval $ac_try) 2>&5
2549  ac_status=$?
2550  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2551  (exit $ac_status); }; } &&
2552         { ac_try='test -s conftest$ac_exeext'
2553  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2554  (eval $ac_try) 2>&5
2555  ac_status=$?
2556  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2557  (exit $ac_status); }; }; then
2558  :
2559else
2560  echo "$as_me: failed program was:" >&5
2561sed 's/^/| /' conftest.$ac_ext >&5
2562
2563CXXFLAGS=
2564fi
2565rm -f conftest.err conftest.$ac_objext \
2566      conftest$ac_exeext conftest.$ac_ext
2567if test -z "$CXXFLAGS"; then
2568  { 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
2569echo "$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;}
2570  CXXFLAGS='-O'
2571  cat >conftest.$ac_ext <<_ACEOF
2572/* confdefs.h.  */
2573_ACEOF
2574cat confdefs.h >>conftest.$ac_ext
2575cat >>conftest.$ac_ext <<_ACEOF
2576/* end confdefs.h.  */
2577
2578int
2579main ()
2580{
2581int i=0; i++;
2582  ;
2583  return 0;
2584}
2585_ACEOF
2586rm -f conftest.$ac_objext conftest$ac_exeext
2587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2588  (eval $ac_link) 2>conftest.er1
2589  ac_status=$?
2590  grep -v '^ *+' conftest.er1 >conftest.err
2591  rm -f conftest.er1
2592  cat conftest.err >&5
2593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2594  (exit $ac_status); } &&
2595         { ac_try='test -z "$ac_cxx_werror_flag"
2596                         || test ! -s conftest.err'
2597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2598  (eval $ac_try) 2>&5
2599  ac_status=$?
2600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2601  (exit $ac_status); }; } &&
2602         { ac_try='test -s conftest$ac_exeext'
2603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2604  (eval $ac_try) 2>&5
2605  ac_status=$?
2606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2607  (exit $ac_status); }; }; then
2608  :
2609else
2610  echo "$as_me: failed program was:" >&5
2611sed 's/^/| /' conftest.$ac_ext >&5
2612
2613CXXFLAGS=
2614fi
2615rm -f conftest.err conftest.$ac_objext \
2616      conftest$ac_exeext conftest.$ac_ext
2617  if test -z "$CXXFLAGS"; then
2618    { 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
2619echo "$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;}
2620  fi
2621fi
2622coin_cv_cxxflags="$CXXFLAGS"
2623
2624fi
2625echo "$as_me:$LINENO: result: $coin_cv_cxxflags" >&5
2626echo "${ECHO_T}$coin_cv_cxxflags" >&6 # AC_CACHE_CHECK([for C++ compiler options CXXFLAGS]
2627CXXFLAGS="$coin_cv_cxxflags"
2628
2629ac_ext=c
2630ac_cpp='$CPP $CPPFLAGS'
2631ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2632ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2633ac_compiler_gnu=$ac_cv_c_compiler_gnu
2634
2635
2636
2637# Initialize automake and libtool
2638
2639# On Cygwin, building DLLs doesn't work
2640case $build in
2641  *-cygwin*)
2642    if test x"$enable_shared" = xyes; then
2643      { echo "$as_me:$LINENO: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&5
2644echo "$as_me: WARNING: On Cygwin, shared objects are not supported. I'm disabling your choice." >&2;}
2645    fi
2646    enable_shared=no
2647  ;;
2648esac
2649# By default, we only want the shared objects to be compiled
2650# Check whether --enable-static or --disable-static was given.
2651if test "${enable_static+set}" = set; then
2652  enableval="$enable_static"
2653  p=${PACKAGE-default}
2654    case $enableval in
2655    yes) enable_static=yes ;;
2656    no) enable_static=no ;;
2657    *)
2658     enable_static=no
2659      # Look at the argument we got.  We use all the common list separators.
2660      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
2661      for pkg in $enableval; do
2662        IFS="$lt_save_ifs"
2663        if test "X$pkg" = "X$p"; then
2664          enable_static=yes
2665        fi
2666      done
2667      IFS="$lt_save_ifs"
2668      ;;
2669    esac
2670else
2671  enable_static=no
2672fi;
2673
2674
2675
2676echo "$as_me:$LINENO: checking for egrep" >&5
2677echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2678if test "${ac_cv_prog_egrep+set}" = set; then
2679  echo $ECHO_N "(cached) $ECHO_C" >&6
2680else
2681  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2682    then ac_cv_prog_egrep='grep -E'
2683    else ac_cv_prog_egrep='egrep'
2684    fi
2685fi
2686echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2687echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2688 EGREP=$ac_cv_prog_egrep
2689
2690
2691am__api_version="1.9"
2692# Find a good install program.  We prefer a C program (faster),
2693# so one script is as good as another.  But avoid the broken or
2694# incompatible versions:
2695# SysV /etc/install, /usr/sbin/install
2696# SunOS /usr/etc/install
2697# IRIX /sbin/install
2698# AIX /bin/install
2699# AmigaOS /C/install, which installs bootblocks on floppy discs
2700# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2701# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2702# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2703# OS/2's system install, which has a completely different semantic
2704# ./install, which can be erroneously created by make from ./install.sh.
2705echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2706echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2707if test -z "$INSTALL"; then
2708if test "${ac_cv_path_install+set}" = set; then
2709  echo $ECHO_N "(cached) $ECHO_C" >&6
2710else
2711  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2712for as_dir in $PATH
2713do
2714  IFS=$as_save_IFS
2715  test -z "$as_dir" && as_dir=.
2716  # Account for people who put trailing slashes in PATH elements.
2717case $as_dir/ in
2718  ./ | .// | /cC/* | \
2719  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2720  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2721  /usr/ucb/* ) ;;
2722  *)
2723    # OSF1 and SCO ODT 3.0 have their own names for install.
2724    # Don't use installbsd from OSF since it installs stuff as root
2725    # by default.
2726    for ac_prog in ginstall scoinst install; do
2727      for ac_exec_ext in '' $ac_executable_extensions; do
2728        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2729          if test $ac_prog = install &&
2730            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2731            # AIX install.  It has an incompatible calling convention.
2732            :
2733          elif test $ac_prog = install &&
2734            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2735            # program-specific install script used by HP pwplus--don't use.
2736            :
2737          else
2738            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2739            break 3
2740          fi
2741        fi
2742      done
2743    done
2744    ;;
2745esac
2746done
2747
2748
2749fi
2750  if test "${ac_cv_path_install+set}" = set; then
2751    INSTALL=$ac_cv_path_install
2752  else
2753    # As a last resort, use the slow shell script.  We don't cache a
2754    # path for INSTALL within a source directory, because that will
2755    # break other packages using the cache if that directory is
2756    # removed, or if the path is relative.
2757    INSTALL=$ac_install_sh
2758  fi
2759fi
2760echo "$as_me:$LINENO: result: $INSTALL" >&5
2761echo "${ECHO_T}$INSTALL" >&6
2762
2763# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2764# It thinks the first close brace ends the variable substitution.
2765test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2766
2767test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2768
2769test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2770
2771echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2772echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
2773# Just in case
2774sleep 1
2775echo timestamp > conftest.file
2776# Do `set' in a subshell so we don't clobber the current shell's
2777# arguments.  Must try -L first in case configure is actually a
2778# symlink; some systems play weird games with the mod time of symlinks
2779# (eg FreeBSD returns the mod time of the symlink's containing
2780# directory).
2781if (
2782   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2783   if test "$*" = "X"; then
2784      # -L didn't work.
2785      set X `ls -t $srcdir/configure conftest.file`
2786   fi
2787   rm -f conftest.file
2788   if test "$*" != "X $srcdir/configure conftest.file" \
2789      && test "$*" != "X conftest.file $srcdir/configure"; then
2790
2791      # If neither matched, then we have a broken ls.  This can happen
2792      # if, for instance, CONFIG_SHELL is bash and it inherits a
2793      # broken ls alias from the environment.  This has actually
2794      # happened.  Such a system could not be considered "sane".
2795      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
2796alias in your environment" >&5
2797echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
2798alias in your environment" >&2;}
2799   { (exit 1); exit 1; }; }
2800   fi
2801
2802   test "$2" = conftest.file
2803   )
2804then
2805   # Ok.
2806   :
2807else
2808   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2809Check your system clock" >&5
2810echo "$as_me: error: newly created file is older than distributed files!
2811Check your system clock" >&2;}
2812   { (exit 1); exit 1; }; }
2813fi
2814echo "$as_me:$LINENO: result: yes" >&5
2815echo "${ECHO_T}yes" >&6
2816test "$program_prefix" != NONE &&
2817  program_transform_name="s,^,$program_prefix,;$program_transform_name"
2818# Use a double $ so make ignores it.
2819test "$program_suffix" != NONE &&
2820  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
2821# Double any \ or $.  echo might interpret backslashes.
2822# By default was `s,x,x', remove it if useless.
2823cat <<\_ACEOF >conftest.sed
2824s/[\\$]/&&/g;s/;s,x,x,$//
2825_ACEOF
2826program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2827rm conftest.sed
2828
2829# expand $ac_aux_dir to an absolute path
2830am_aux_dir=`cd $ac_aux_dir && pwd`
2831
2832test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2833# Use eval to expand $SHELL
2834if eval "$MISSING --run true"; then
2835  am_missing_run="$MISSING --run "
2836else
2837  am_missing_run=
2838  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2839echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2840fi
2841
2842if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2843  # We used to keeping the `.' as first argument, in order to
2844  # allow $(mkdir_p) to be used without argument.  As in
2845  #   $(mkdir_p) $(somedir)
2846  # where $(somedir) is conditionally defined.  However this is wrong
2847  # for two reasons:
2848  #  1. if the package is installed by a user who cannot write `.'
2849  #     make install will fail,
2850  #  2. the above comment should most certainly read
2851  #     $(mkdir_p) $(DESTDIR)$(somedir)
2852  #     so it does not work when $(somedir) is undefined and
2853  #     $(DESTDIR) is not.
2854  #  To support the latter case, we have to write
2855  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2856  #  so the `.' trick is pointless.
2857  mkdir_p='mkdir -p --'
2858else
2859  # On NextStep and OpenStep, the `mkdir' command does not
2860  # recognize any option.  It will interpret all options as
2861  # directories to create, and then abort because `.' already
2862  # exists.
2863  for d in ./-p ./--version;
2864  do
2865    test -d $d && rmdir $d
2866  done
2867  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2868  if test -f "$ac_aux_dir/mkinstalldirs"; then
2869    mkdir_p='$(mkinstalldirs)'
2870  else
2871    mkdir_p='$(install_sh) -d'
2872  fi
2873fi
2874
2875for ac_prog in gawk mawk nawk awk
2876do
2877  # Extract the first word of "$ac_prog", so it can be a program name with args.
2878set dummy $ac_prog; ac_word=$2
2879echo "$as_me:$LINENO: checking for $ac_word" >&5
2880echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2881if test "${ac_cv_prog_AWK+set}" = set; then
2882  echo $ECHO_N "(cached) $ECHO_C" >&6
2883else
2884  if test -n "$AWK"; then
2885  ac_cv_prog_AWK="$AWK" # Let the user override the test.
2886else
2887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2888for as_dir in $PATH
2889do
2890  IFS=$as_save_IFS
2891  test -z "$as_dir" && as_dir=.
2892  for ac_exec_ext in '' $ac_executable_extensions; do
2893  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2894    ac_cv_prog_AWK="$ac_prog"
2895    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2896    break 2
2897  fi
2898done
2899done
2900
2901fi
2902fi
2903AWK=$ac_cv_prog_AWK
2904if test -n "$AWK"; then
2905  echo "$as_me:$LINENO: result: $AWK" >&5
2906echo "${ECHO_T}$AWK" >&6
2907else
2908  echo "$as_me:$LINENO: result: no" >&5
2909echo "${ECHO_T}no" >&6
2910fi
2911
2912  test -n "$AWK" && break
2913done
2914
2915echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2916echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
2917set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
2918if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
2919  echo $ECHO_N "(cached) $ECHO_C" >&6
2920else
2921  cat >conftest.make <<\_ACEOF
2922all:
2923        @echo 'ac_maketemp="$(MAKE)"'
2924_ACEOF
2925# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2926eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
2927if test -n "$ac_maketemp"; then
2928  eval ac_cv_prog_make_${ac_make}_set=yes
2929else
2930  eval ac_cv_prog_make_${ac_make}_set=no
2931fi
2932rm -f conftest.make
2933fi
2934if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
2935  echo "$as_me:$LINENO: result: yes" >&5
2936echo "${ECHO_T}yes" >&6
2937  SET_MAKE=
2938else
2939  echo "$as_me:$LINENO: result: no" >&5
2940echo "${ECHO_T}no" >&6
2941  SET_MAKE="MAKE=${MAKE-make}"
2942fi
2943
2944rm -rf .tst 2>/dev/null
2945mkdir .tst 2>/dev/null
2946if test -d .tst; then
2947  am__leading_dot=.
2948else
2949  am__leading_dot=_
2950fi
2951rmdir .tst 2>/dev/null
2952
2953DEPDIR="${am__leading_dot}deps"
2954
2955          ac_config_commands="$ac_config_commands depfiles"
2956
2957
2958am_make=${MAKE-make}
2959cat > confinc << 'END'
2960am__doit:
2961        @echo done
2962.PHONY: am__doit
2963END
2964# If we don't find an include directive, just comment out the code.
2965echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2966echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
2967am__include="#"
2968am__quote=
2969_am_result=none
2970# First try GNU make style include.
2971echo "include confinc" > confmf
2972# We grep out `Entering directory' and `Leaving directory'
2973# messages which can occur if `w' ends up in MAKEFLAGS.
2974# In particular we don't look at `^make:' because GNU make might
2975# be invoked under some other name (usually "gmake"), in which
2976# case it prints its new name instead of `make'.
2977if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
2978   am__include=include
2979   am__quote=
2980   _am_result=GNU
2981fi
2982# Now try BSD make style include.
2983if test "$am__include" = "#"; then
2984   echo '.include "confinc"' > confmf
2985   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
2986      am__include=.include
2987      am__quote="\""
2988      _am_result=BSD
2989   fi
2990fi
2991
2992
2993echo "$as_me:$LINENO: result: $_am_result" >&5
2994echo "${ECHO_T}$_am_result" >&6
2995rm -f confinc confmf
2996
2997# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2998if test "${enable_dependency_tracking+set}" = set; then
2999  enableval="$enable_dependency_tracking"
3000
3001fi;
3002if test "x$enable_dependency_tracking" != xno; then
3003  am_depcomp="$ac_aux_dir/depcomp"
3004  AMDEPBACKSLASH='\'
3005fi
3006
3007
3008if test "x$enable_dependency_tracking" != xno; then
3009  AMDEP_TRUE=
3010  AMDEP_FALSE='#'
3011else
3012  AMDEP_TRUE='#'
3013  AMDEP_FALSE=
3014fi
3015
3016
3017
3018ac_ext=c
3019ac_cpp='$CPP $CPPFLAGS'
3020ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3021ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3022ac_compiler_gnu=$ac_cv_c_compiler_gnu
3023if test -n "$ac_tool_prefix"; then
3024  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3025set dummy ${ac_tool_prefix}gcc; ac_word=$2
3026echo "$as_me:$LINENO: checking for $ac_word" >&5
3027echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3028if test "${ac_cv_prog_CC+set}" = set; then
3029  echo $ECHO_N "(cached) $ECHO_C" >&6
3030else
3031  if test -n "$CC"; then
3032  ac_cv_prog_CC="$CC" # Let the user override the test.
3033else
3034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3035for as_dir in $PATH
3036do
3037  IFS=$as_save_IFS
3038  test -z "$as_dir" && as_dir=.
3039  for ac_exec_ext in '' $ac_executable_extensions; do
3040  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3041    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3042    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3043    break 2
3044  fi
3045done
3046done
3047
3048fi
3049fi
3050CC=$ac_cv_prog_CC
3051if test -n "$CC"; then
3052  echo "$as_me:$LINENO: result: $CC" >&5
3053echo "${ECHO_T}$CC" >&6
3054else
3055  echo "$as_me:$LINENO: result: no" >&5
3056echo "${ECHO_T}no" >&6
3057fi
3058
3059fi
3060if test -z "$ac_cv_prog_CC"; then
3061  ac_ct_CC=$CC
3062  # Extract the first word of "gcc", so it can be a program name with args.
3063set dummy gcc; ac_word=$2
3064echo "$as_me:$LINENO: checking for $ac_word" >&5
3065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3066if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3067  echo $ECHO_N "(cached) $ECHO_C" >&6
3068else
3069  if test -n "$ac_ct_CC"; then
3070  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071else
3072as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073for as_dir in $PATH
3074do
3075  IFS=$as_save_IFS
3076  test -z "$as_dir" && as_dir=.
3077  for ac_exec_ext in '' $ac_executable_extensions; do
3078  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3079    ac_cv_prog_ac_ct_CC="gcc"
3080    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081    break 2
3082  fi
3083done
3084done
3085
3086fi
3087fi
3088ac_ct_CC=$ac_cv_prog_ac_ct_CC
3089if test -n "$ac_ct_CC"; then
3090  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3091echo "${ECHO_T}$ac_ct_CC" >&6
3092else
3093  echo "$as_me:$LINENO: result: no" >&5
3094echo "${ECHO_T}no" >&6
3095fi
3096
3097  CC=$ac_ct_CC
3098else
3099  CC="$ac_cv_prog_CC"
3100fi
3101
3102if test -z "$CC"; then
3103  if test -n "$ac_tool_prefix"; then
3104  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3105set dummy ${ac_tool_prefix}cc; ac_word=$2
3106echo "$as_me:$LINENO: checking for $ac_word" >&5
3107echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3108if test "${ac_cv_prog_CC+set}" = set; then
3109  echo $ECHO_N "(cached) $ECHO_C" >&6
3110else
3111  if test -n "$CC"; then
3112  ac_cv_prog_CC="$CC" # Let the user override the test.
3113else
3114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115for as_dir in $PATH
3116do
3117  IFS=$as_save_IFS
3118  test -z "$as_dir" && as_dir=.
3119  for ac_exec_ext in '' $ac_executable_extensions; do
3120  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3121    ac_cv_prog_CC="${ac_tool_prefix}cc"
3122    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123    break 2
3124  fi
3125done
3126done
3127
3128fi
3129fi
3130CC=$ac_cv_prog_CC
3131if test -n "$CC"; then
3132  echo "$as_me:$LINENO: result: $CC" >&5
3133echo "${ECHO_T}$CC" >&6
3134else
3135  echo "$as_me:$LINENO: result: no" >&5
3136echo "${ECHO_T}no" >&6
3137fi
3138
3139fi
3140if test -z "$ac_cv_prog_CC"; then
3141  ac_ct_CC=$CC
3142  # Extract the first word of "cc", so it can be a program name with args.
3143set dummy cc; ac_word=$2
3144echo "$as_me:$LINENO: checking for $ac_word" >&5
3145echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3146if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3147  echo $ECHO_N "(cached) $ECHO_C" >&6
3148else
3149  if test -n "$ac_ct_CC"; then
3150  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3151else
3152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3153for as_dir in $PATH
3154do
3155  IFS=$as_save_IFS
3156  test -z "$as_dir" && as_dir=.
3157  for ac_exec_ext in '' $ac_executable_extensions; do
3158  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3159    ac_cv_prog_ac_ct_CC="cc"
3160    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3161    break 2
3162  fi
3163done
3164done
3165
3166fi
3167fi
3168ac_ct_CC=$ac_cv_prog_ac_ct_CC
3169if test -n "$ac_ct_CC"; then
3170  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3171echo "${ECHO_T}$ac_ct_CC" >&6
3172else
3173  echo "$as_me:$LINENO: result: no" >&5
3174echo "${ECHO_T}no" >&6
3175fi
3176
3177  CC=$ac_ct_CC
3178else
3179  CC="$ac_cv_prog_CC"
3180fi
3181
3182fi
3183if test -z "$CC"; then
3184  # Extract the first word of "cc", so it can be a program name with args.
3185set dummy cc; ac_word=$2
3186echo "$as_me:$LINENO: checking for $ac_word" >&5
3187echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3188if test "${ac_cv_prog_CC+set}" = set; then
3189  echo $ECHO_N "(cached) $ECHO_C" >&6
3190else
3191  if test -n "$CC"; then
3192  ac_cv_prog_CC="$CC" # Let the user override the test.
3193else
3194  ac_prog_rejected=no
3195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196for as_dir in $PATH
3197do
3198  IFS=$as_save_IFS
3199  test -z "$as_dir" && as_dir=.
3200  for ac_exec_ext in '' $ac_executable_extensions; do
3201  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3203       ac_prog_rejected=yes
3204       continue
3205     fi
3206    ac_cv_prog_CC="cc"
3207    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3208    break 2
3209  fi
3210done
3211done
3212
3213if test $ac_prog_rejected = yes; then
3214  # We found a bogon in the path, so make sure we never use it.
3215  set dummy $ac_cv_prog_CC
3216  shift
3217  if test $# != 0; then
3218    # We chose a different compiler from the bogus one.
3219    # However, it has the same basename, so the bogon will be chosen
3220    # first if we set CC to just the basename; use the full file name.
3221    shift
3222    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3223  fi
3224fi
3225fi
3226fi
3227CC=$ac_cv_prog_CC
3228if test -n "$CC"; then
3229  echo "$as_me:$LINENO: result: $CC" >&5
3230echo "${ECHO_T}$CC" >&6
3231else
3232  echo "$as_me:$LINENO: result: no" >&5
3233echo "${ECHO_T}no" >&6
3234fi
3235
3236fi
3237if test -z "$CC"; then
3238  if test -n "$ac_tool_prefix"; then
3239  for ac_prog in cl
3240  do
3241    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3242set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3243echo "$as_me:$LINENO: checking for $ac_word" >&5
3244echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3245if test "${ac_cv_prog_CC+set}" = set; then
3246  echo $ECHO_N "(cached) $ECHO_C" >&6
3247else
3248  if test -n "$CC"; then
3249  ac_cv_prog_CC="$CC" # Let the user override the test.
3250else
3251as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3252for as_dir in $PATH
3253do
3254  IFS=$as_save_IFS
3255  test -z "$as_dir" && as_dir=.
3256  for ac_exec_ext in '' $ac_executable_extensions; do
3257  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3258    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3259    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260    break 2
3261  fi
3262done
3263done
3264
3265fi
3266fi
3267CC=$ac_cv_prog_CC
3268if test -n "$CC"; then
3269  echo "$as_me:$LINENO: result: $CC" >&5
3270echo "${ECHO_T}$CC" >&6
3271else
3272  echo "$as_me:$LINENO: result: no" >&5
3273echo "${ECHO_T}no" >&6
3274fi
3275
3276    test -n "$CC" && break
3277  done
3278fi
3279if test -z "$CC"; then
3280  ac_ct_CC=$CC
3281  for ac_prog in cl
3282do
3283  # Extract the first word of "$ac_prog", so it can be a program name with args.
3284set dummy $ac_prog; ac_word=$2
3285echo "$as_me:$LINENO: checking for $ac_word" >&5
3286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3287if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3288  echo $ECHO_N "(cached) $ECHO_C" >&6
3289else
3290  if test -n "$ac_ct_CC"; then
3291  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3292else
3293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3294for as_dir in $PATH
3295do
3296  IFS=$as_save_IFS
3297  test -z "$as_dir" && as_dir=.
3298  for ac_exec_ext in '' $ac_executable_extensions; do
3299  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3300    ac_cv_prog_ac_ct_CC="$ac_prog"
3301    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3302    break 2
3303  fi
3304done
3305done
3306
3307fi
3308fi
3309ac_ct_CC=$ac_cv_prog_ac_ct_CC
3310if test -n "$ac_ct_CC"; then
3311  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3312echo "${ECHO_T}$ac_ct_CC" >&6
3313else
3314  echo "$as_me:$LINENO: result: no" >&5
3315echo "${ECHO_T}no" >&6
3316fi
3317
3318  test -n "$ac_ct_CC" && break
3319done
3320
3321  CC=$ac_ct_CC
3322fi
3323
3324fi
3325
3326
3327test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3328See \`config.log' for more details." >&5
3329echo "$as_me: error: no acceptable C compiler found in \$PATH
3330See \`config.log' for more details." >&2;}
3331   { (exit 1); exit 1; }; }
3332
3333# Provide some information about the compiler.
3334echo "$as_me:$LINENO:" \
3335     "checking for C compiler version" >&5
3336ac_compiler=`set X $ac_compile; echo $2`
3337{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3338  (eval $ac_compiler --version </dev/null >&5) 2>&5
3339  ac_status=$?
3340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341  (exit $ac_status); }
3342{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3343  (eval $ac_compiler -v </dev/null >&5) 2>&5
3344  ac_status=$?
3345  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3346  (exit $ac_status); }
3347{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3348  (eval $ac_compiler -V </dev/null >&5) 2>&5
3349  ac_status=$?
3350  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3351  (exit $ac_status); }
3352
3353echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3354echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
3355if test "${ac_cv_c_compiler_gnu+set}" = set; then
3356  echo $ECHO_N "(cached) $ECHO_C" >&6
3357else
3358  cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h.  */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h.  */
3364
3365int
3366main ()
3367{
3368#ifndef __GNUC__
3369       choke me
3370#endif
3371
3372  ;
3373  return 0;
3374}
3375_ACEOF
3376rm -f conftest.$ac_objext
3377if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3378  (eval $ac_compile) 2>conftest.er1
3379  ac_status=$?
3380  grep -v '^ *+' conftest.er1 >conftest.err
3381  rm -f conftest.er1
3382  cat conftest.err >&5
3383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3384  (exit $ac_status); } &&
3385         { ac_try='test -z "$ac_c_werror_flag"
3386                         || test ! -s conftest.err'
3387  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3388  (eval $ac_try) 2>&5
3389  ac_status=$?
3390  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3391  (exit $ac_status); }; } &&
3392         { ac_try='test -s conftest.$ac_objext'
3393  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3394  (eval $ac_try) 2>&5
3395  ac_status=$?
3396  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3397  (exit $ac_status); }; }; then
3398  ac_compiler_gnu=yes
3399else
3400  echo "$as_me: failed program was:" >&5
3401sed 's/^/| /' conftest.$ac_ext >&5
3402
3403ac_compiler_gnu=no
3404fi
3405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3406ac_cv_c_compiler_gnu=$ac_compiler_gnu
3407
3408fi
3409echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3410echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
3411GCC=`test $ac_compiler_gnu = yes && echo yes`
3412ac_test_CFLAGS=${CFLAGS+set}
3413ac_save_CFLAGS=$CFLAGS
3414CFLAGS="-g"
3415echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3416echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
3417if test "${ac_cv_prog_cc_g+set}" = set; then
3418  echo $ECHO_N "(cached) $ECHO_C" >&6
3419else
3420  cat >conftest.$ac_ext <<_ACEOF
3421/* confdefs.h.  */
3422_ACEOF
3423cat confdefs.h >>conftest.$ac_ext
3424cat >>conftest.$ac_ext <<_ACEOF
3425/* end confdefs.h.  */
3426
3427int
3428main ()
3429{
3430
3431  ;
3432  return 0;
3433}
3434_ACEOF
3435rm -f conftest.$ac_objext
3436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3437  (eval $ac_compile) 2>conftest.er1
3438  ac_status=$?
3439  grep -v '^ *+' conftest.er1 >conftest.err
3440  rm -f conftest.er1
3441  cat conftest.err >&5
3442  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3443  (exit $ac_status); } &&
3444         { ac_try='test -z "$ac_c_werror_flag"
3445                         || test ! -s conftest.err'
3446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3447  (eval $ac_try) 2>&5
3448  ac_status=$?
3449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3450  (exit $ac_status); }; } &&
3451         { ac_try='test -s conftest.$ac_objext'
3452  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3453  (eval $ac_try) 2>&5
3454  ac_status=$?
3455  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3456  (exit $ac_status); }; }; then
3457  ac_cv_prog_cc_g=yes
3458else
3459  echo "$as_me: failed program was:" >&5
3460sed 's/^/| /' conftest.$ac_ext >&5
3461
3462ac_cv_prog_cc_g=no
3463fi
3464rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3465fi
3466echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3467echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
3468if test "$ac_test_CFLAGS" = set; then
3469  CFLAGS=$ac_save_CFLAGS
3470elif test $ac_cv_prog_cc_g = yes; then
3471  if test "$GCC" = yes; then
3472    CFLAGS="-g -O2"
3473  else
3474    CFLAGS="-g"
3475  fi
3476else
3477  if test "$GCC" = yes; then
3478    CFLAGS="-O2"
3479  else
3480    CFLAGS=
3481  fi
3482fi
3483echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
3484echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
3485if test "${ac_cv_prog_cc_stdc+set}" = set; then
3486  echo $ECHO_N "(cached) $ECHO_C" >&6
3487else
3488  ac_cv_prog_cc_stdc=no
3489ac_save_CC=$CC
3490cat >conftest.$ac_ext <<_ACEOF
3491/* confdefs.h.  */
3492_ACEOF
3493cat confdefs.h >>conftest.$ac_ext
3494cat >>conftest.$ac_ext <<_ACEOF
3495/* end confdefs.h.  */
3496#include <stdarg.h>
3497#include <stdio.h>
3498#include <sys/types.h>
3499#include <sys/stat.h>
3500/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3501struct buf { int x; };
3502FILE * (*rcsopen) (struct buf *, struct stat *, int);
3503static char *e (p, i)
3504     char **p;
3505     int i;
3506{
3507  return p[i];
3508}
3509static char *f (char * (*g) (char **, int), char **p, ...)
3510{
3511  char *s;
3512  va_list v;
3513  va_start (v,p);
3514  s = g (p, va_arg (v,int));
3515  va_end (v);
3516  return s;
3517}
3518
3519/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3520   function prototypes and stuff, but not '\xHH' hex character constants.
3521   These don't provoke an error unfortunately, instead are silently treated
3522   as 'x'.  The following induces an error, until -std1 is added to get
3523   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3524   array size at least.  It's necessary to write '\x00'==0 to get something
3525   that's true only with -std1.  */
3526int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3527
3528int test (int i, double x);
3529struct s1 {int (*f) (int a);};
3530struct s2 {int (*f) (double a);};
3531int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3532int argc;
3533char **argv;
3534int
3535main ()
3536{
3537return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3538  ;
3539  return 0;
3540}
3541_ACEOF
3542# Don't try gcc -ansi; that turns off useful extensions and
3543# breaks some systems' header files.
3544# AIX                   -qlanglvl=ansi
3545# Ultrix and OSF/1      -std1
3546# HP-UX 10.20 and later -Ae
3547# HP-UX older versions  -Aa -D_HPUX_SOURCE
3548# SVR4                  -Xc -D__EXTENSIONS__
3549for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3550do
3551  CC="$ac_save_CC $ac_arg"
3552  rm -f conftest.$ac_objext
3553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3554  (eval $ac_compile) 2>conftest.er1
3555  ac_status=$?
3556  grep -v '^ *+' conftest.er1 >conftest.err
3557  rm -f conftest.er1
3558  cat conftest.err >&5
3559  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3560  (exit $ac_status); } &&
3561         { ac_try='test -z "$ac_c_werror_flag"
3562                         || test ! -s conftest.err'
3563  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3564  (eval $ac_try) 2>&5
3565  ac_status=$?
3566  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567  (exit $ac_status); }; } &&
3568         { ac_try='test -s conftest.$ac_objext'
3569  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3570  (eval $ac_try) 2>&5
3571  ac_status=$?
3572  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573  (exit $ac_status); }; }; then
3574  ac_cv_prog_cc_stdc=$ac_arg
3575break
3576else
3577  echo "$as_me: failed program was:" >&5
3578sed 's/^/| /' conftest.$ac_ext >&5
3579
3580fi
3581rm -f conftest.err conftest.$ac_objext
3582done
3583rm -f conftest.$ac_ext conftest.$ac_objext
3584CC=$ac_save_CC
3585
3586fi
3587
3588case "x$ac_cv_prog_cc_stdc" in
3589  x|xno)
3590    echo "$as_me:$LINENO: result: none needed" >&5
3591echo "${ECHO_T}none needed" >&6 ;;
3592  *)
3593    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
3594echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
3595    CC="$CC $ac_cv_prog_cc_stdc" ;;
3596esac
3597
3598# Some people use a C++ compiler to compile C.  Since we use `exit',
3599# in C++ we need to declare it.  In case someone uses the same compiler
3600# for both compiling C and C++ we need to have the C++ compiler decide
3601# the declaration of exit, since it's the most demanding environment.
3602cat >conftest.$ac_ext <<_ACEOF
3603#ifndef __cplusplus
3604  choke me
3605#endif
3606_ACEOF
3607rm -f conftest.$ac_objext
3608if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3609  (eval $ac_compile) 2>conftest.er1
3610  ac_status=$?
3611  grep -v '^ *+' conftest.er1 >conftest.err
3612  rm -f conftest.er1
3613  cat conftest.err >&5
3614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3615  (exit $ac_status); } &&
3616         { ac_try='test -z "$ac_c_werror_flag"
3617                         || test ! -s conftest.err'
3618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619  (eval $ac_try) 2>&5
3620  ac_status=$?
3621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622  (exit $ac_status); }; } &&
3623         { ac_try='test -s conftest.$ac_objext'
3624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625  (eval $ac_try) 2>&5
3626  ac_status=$?
3627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628  (exit $ac_status); }; }; then
3629  for ac_declaration in \
3630   '' \
3631   'extern "C" void std::exit (int) throw (); using std::exit;' \
3632   'extern "C" void std::exit (int); using std::exit;' \
3633   'extern "C" void exit (int) throw ();' \
3634   'extern "C" void exit (int);' \
3635   'void exit (int);'
3636do
3637  cat >conftest.$ac_ext <<_ACEOF
3638/* confdefs.h.  */
3639_ACEOF
3640cat confdefs.h >>conftest.$ac_ext
3641cat >>conftest.$ac_ext <<_ACEOF
3642/* end confdefs.h.  */
3643$ac_declaration
3644#include <stdlib.h>
3645int
3646main ()
3647{
3648exit (42);
3649  ;
3650  return 0;
3651}
3652_ACEOF
3653rm -f conftest.$ac_objext
3654if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3655  (eval $ac_compile) 2>conftest.er1
3656  ac_status=$?
3657  grep -v '^ *+' conftest.er1 >conftest.err
3658  rm -f conftest.er1
3659  cat conftest.err >&5
3660  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3661  (exit $ac_status); } &&
3662         { ac_try='test -z "$ac_c_werror_flag"
3663                         || test ! -s conftest.err'
3664  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3665  (eval $ac_try) 2>&5
3666  ac_status=$?
3667  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668  (exit $ac_status); }; } &&
3669         { ac_try='test -s conftest.$ac_objext'
3670  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3671  (eval $ac_try) 2>&5
3672  ac_status=$?
3673  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3674  (exit $ac_status); }; }; then
3675  :
3676else
3677  echo "$as_me: failed program was:" >&5
3678sed 's/^/| /' conftest.$ac_ext >&5
3679
3680continue
3681fi
3682rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3683  cat >conftest.$ac_ext <<_ACEOF
3684/* confdefs.h.  */
3685_ACEOF
3686cat confdefs.h >>conftest.$ac_ext
3687cat >>conftest.$ac_ext <<_ACEOF
3688/* end confdefs.h.  */
3689$ac_declaration
3690int
3691main ()
3692{
3693exit (42);
3694  ;
3695  return 0;
3696}
3697_ACEOF
3698rm -f conftest.$ac_objext
3699if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3700  (eval $ac_compile) 2>conftest.er1
3701  ac_status=$?
3702  grep -v '^ *+' conftest.er1 >conftest.err
3703  rm -f conftest.er1
3704  cat conftest.err >&5
3705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3706  (exit $ac_status); } &&
3707         { ac_try='test -z "$ac_c_werror_flag"
3708                         || test ! -s conftest.err'
3709  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3710  (eval $ac_try) 2>&5
3711  ac_status=$?
3712  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3713  (exit $ac_status); }; } &&
3714         { ac_try='test -s conftest.$ac_objext'
3715  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3716  (eval $ac_try) 2>&5
3717  ac_status=$?
3718  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719  (exit $ac_status); }; }; then
3720  break
3721else
3722  echo "$as_me: failed program was:" >&5
3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725fi
3726rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3727done
3728rm -f conftest*
3729if test -n "$ac_declaration"; then
3730  echo '#ifdef __cplusplus' >>confdefs.h
3731  echo $ac_declaration      >>confdefs.h
3732  echo '#endif'             >>confdefs.h
3733fi
3734
3735else
3736  echo "$as_me: failed program was:" >&5
3737sed 's/^/| /' conftest.$ac_ext >&5
3738
3739fi
3740rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3741ac_ext=c
3742ac_cpp='$CPP $CPPFLAGS'
3743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746
3747depcc="$CC"   am_compiler_list=
3748
3749echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3750echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3751if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3752  echo $ECHO_N "(cached) $ECHO_C" >&6
3753else
3754  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3755  # We make a subdir and do the tests there.  Otherwise we can end up
3756  # making bogus files that we don't know about and never remove.  For
3757  # instance it was reported that on HP-UX the gcc test will end up
3758  # making a dummy file named `D' -- because `-MD' means `put the output
3759  # in D'.
3760  mkdir conftest.dir
3761  # Copy depcomp to subdir because otherwise we won't find it if we're
3762  # using a relative directory.
3763  cp "$am_depcomp" conftest.dir
3764  cd conftest.dir
3765  # We will build objects and dependencies in a subdirectory because
3766  # it helps to detect inapplicable dependency modes.  For instance
3767  # both Tru64's cc and ICC support -MD to output dependencies as a
3768  # side effect of compilation, but ICC will put the dependencies in
3769  # the current directory while Tru64 will put them in the object
3770  # directory.
3771  mkdir sub
3772
3773  am_cv_CC_dependencies_compiler_type=none
3774  if test "$am_compiler_list" = ""; then
3775     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3776  fi
3777  for depmode in $am_compiler_list; do
3778    # Setup a source with many dependencies, because some compilers
3779    # like to wrap large dependency lists on column 80 (with \), and
3780    # we should not choose a depcomp mode which is confused by this.
3781    #
3782    # We need to recreate these files for each test, as the compiler may
3783    # overwrite some of them when testing with obscure command lines.
3784    # This happens at least with the AIX C compiler.
3785    : > sub/conftest.c
3786    for i in 1 2 3 4 5 6; do
3787      echo '#include "conftst'$i'.h"' >> sub/conftest.c
3788      # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3789      # Solaris 8's {/usr,}/bin/sh.
3790      touch sub/conftst$i.h
3791    done
3792    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3793
3794    case $depmode in
3795    nosideeffect)
3796      # after this tag, mechanisms are not by side-effect, so they'll
3797      # only be used when explicitly requested
3798      if test "x$enable_dependency_tracking" = xyes; then
3799        continue
3800      else
3801        break
3802      fi
3803      ;;
3804    none) break ;;
3805    esac
3806    # We check with `-c' and `-o' for the sake of the "dashmstdout"
3807    # mode.  It turns out that the SunPro C++ compiler does not properly
3808    # handle `-M -o', and we need to detect this.
3809    if depmode=$depmode \
3810       source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3811       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3812       $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3813         >/dev/null 2>conftest.err &&
3814       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3815       grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3816       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3817      # icc doesn't choke on unknown options, it will just issue warnings
3818      # or remarks (even with -Werror).  So we grep stderr for any message
3819      # that says an option was ignored or not supported.
3820      # When given -MP, icc 7.0 and 7.1 complain thusly:
3821      #   icc: Command line warning: ignoring option '-M'; no argument required
3822      # The diagnosis changed in icc 8.0:
3823      #   icc: Command line remark: option '-MP' not supported
3824      if (grep 'ignoring option' conftest.err ||
3825          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3826        am_cv_CC_dependencies_compiler_type=$depmode
3827        break
3828      fi
3829    fi
3830  done
3831
3832  cd ..
3833  rm -rf conftest.dir
3834else
3835  am_cv_CC_dependencies_compiler_type=none
3836fi
3837
3838fi
3839echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3840echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3841CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3842
3843
3844
3845if
3846  test "x$enable_dependency_tracking" != xno \
3847  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3848  am__fastdepCC_TRUE=
3849  am__fastdepCC_FALSE='#'
3850else
3851  am__fastdepCC_TRUE='#'
3852  am__fastdepCC_FALSE=
3853fi
3854
3855
3856
3857ac_ext=c
3858ac_cpp='$CPP $CPPFLAGS'
3859ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3860ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3861ac_compiler_gnu=$ac_cv_c_compiler_gnu
3862
3863if test x"" = x; then
3864  hdr="#include <dlfcn.h>"
3865else
3866  hdr=""
3867fi
3868
3869for ac_header in dlfcn.h
3870do
3871as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3872echo "$as_me:$LINENO: checking for $ac_header" >&5
3873echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3874if eval "test \"\${$as_ac_Header+set}\" = set"; then
3875  echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877  cat >conftest.$ac_ext <<_ACEOF
3878/* confdefs.h.  */
3879_ACEOF
3880cat confdefs.h >>conftest.$ac_ext
3881cat >>conftest.$ac_ext <<_ACEOF
3882/* end confdefs.h.  */
3883$hdr
3884
3885#include <$ac_header>
3886_ACEOF
3887rm -f conftest.$ac_objext
3888if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3889  (eval $ac_compile) 2>conftest.er1
3890  ac_status=$?
3891  grep -v '^ *+' conftest.er1 >conftest.err
3892  rm -f conftest.er1
3893  cat conftest.err >&5
3894  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3895  (exit $ac_status); } &&
3896         { ac_try='test -z "$ac_c_werror_flag"
3897                         || test ! -s conftest.err'
3898  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3899  (eval $ac_try) 2>&5
3900  ac_status=$?
3901  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3902  (exit $ac_status); }; } &&
3903         { ac_try='test -s conftest.$ac_objext'
3904  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3905  (eval $ac_try) 2>&5
3906  ac_status=$?
3907  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3908  (exit $ac_status); }; }; then
3909  eval "$as_ac_Header=yes"
3910else
3911  echo "$as_me: failed program was:" >&5
3912sed 's/^/| /' conftest.$ac_ext >&5
3913
3914eval "$as_ac_Header=no"
3915fi
3916rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3917fi
3918echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3919echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3920if test `eval echo '${'$as_ac_Header'}'` = yes; then
3921  cat >>confdefs.h <<_ACEOF
3922#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3923_ACEOF
3924
3925fi
3926
3927done
3928
3929
3930ac_ext=c
3931ac_cpp='$CPP $CPPFLAGS'
3932ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3933ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3934ac_compiler_gnu=$ac_cv_c_compiler_gnu
3935
3936
3937# Check whether --enable-shared or --disable-shared was given.
3938if test "${enable_shared+set}" = set; then
3939  enableval="$enable_shared"
3940  p=${PACKAGE-default}
3941    case $enableval in
3942    yes) enable_shared=yes ;;
3943    no) enable_shared=no ;;
3944    *)
3945      enable_shared=no
3946      # Look at the argument we got.  We use all the common list separators.
3947      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3948      for pkg in $enableval; do
3949        IFS="$lt_save_ifs"
3950        if test "X$pkg" = "X$p"; then
3951          enable_shared=yes
3952        fi
3953      done
3954      IFS="$lt_save_ifs"
3955      ;;
3956    esac
3957else
3958  enable_shared=yes
3959fi;
3960
3961# Check whether --enable-fast-install or --disable-fast-install was given.
3962if test "${enable_fast_install+set}" = set; then
3963  enableval="$enable_fast_install"
3964  p=${PACKAGE-default}
3965    case $enableval in
3966    yes) enable_fast_install=yes ;;
3967    no) enable_fast_install=no ;;
3968    *)
3969      enable_fast_install=no
3970      # Look at the argument we got.  We use all the common list separators.
3971      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3972      for pkg in $enableval; do
3973        IFS="$lt_save_ifs"
3974        if test "X$pkg" = "X$p"; then
3975          enable_fast_install=yes
3976        fi
3977      done
3978      IFS="$lt_save_ifs"
3979      ;;
3980    esac
3981else
3982  enable_fast_install=yes
3983fi;
3984
3985echo "$as_me:$LINENO: checking host system type" >&5
3986echo $ECHO_N "checking host system type... $ECHO_C" >&6
3987if test "${ac_cv_host+set}" = set; then
3988  echo $ECHO_N "(cached) $ECHO_C" >&6
3989else
3990  ac_cv_host_alias=$host_alias
3991test -z "$ac_cv_host_alias" &&
3992  ac_cv_host_alias=$ac_cv_build_alias
3993ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3994  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3995echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3996   { (exit 1); exit 1; }; }
3997
3998fi
3999echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4000echo "${ECHO_T}$ac_cv_host" >&6
4001host=$ac_cv_host
4002host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4003host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4004host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4005
4006
4007echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4008echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4009if test "${lt_cv_path_SED+set}" = set; then
4010  echo $ECHO_N "(cached) $ECHO_C" >&6
4011else
4012  # Loop through the user's path and test for sed and gsed.
4013# Then use that list of sed's as ones to test for truncation.
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017  IFS=$as_save_IFS
4018  test -z "$as_dir" && as_dir=.
4019  for lt_ac_prog in sed gsed; do
4020    for ac_exec_ext in '' $ac_executable_extensions; do
4021      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4022        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4023      fi
4024    done
4025  done
4026done
4027lt_ac_max=0
4028lt_ac_count=0
4029# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4030# along with /bin/sed that truncates output.
4031for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4032  test ! -f $lt_ac_sed && continue
4033  cat /dev/null > conftest.in
4034  lt_ac_count=0
4035  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4036  # Check for GNU sed and select it if it is found.
4037  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4038    lt_cv_path_SED=$lt_ac_sed
4039    break
4040  fi
4041  while true; do
4042    cat conftest.in conftest.in >conftest.tmp
4043    mv conftest.tmp conftest.in
4044    cp conftest.in conftest.nl
4045    echo >>conftest.nl
4046    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4047    cmp -s conftest.out conftest.nl || break
4048    # 10000 chars as input seems more than enough
4049    test $lt_ac_count -gt 10 && break
4050    lt_ac_count=`expr $lt_ac_count + 1`
4051    if test $lt_ac_count -gt $lt_ac_max; then
4052      lt_ac_max=$lt_ac_count
4053      lt_cv_path_SED=$lt_ac_sed
4054    fi
4055  done
4056done
4057
4058fi
4059
4060SED=$lt_cv_path_SED
4061echo "$as_me:$LINENO: result: $SED" >&5
4062echo "${ECHO_T}$SED" >&6
4063
4064
4065# Check whether --with-gnu-ld or --without-gnu-ld was given.
4066if test "${with_gnu_ld+set}" = set; then
4067  withval="$with_gnu_ld"
4068  test "$withval" = no || with_gnu_ld=yes
4069else
4070  with_gnu_ld=no
4071fi;
4072ac_prog=ld
4073if test "$GCC" = yes; then
4074  # Check if gcc -print-prog-name=ld gives a path.
4075  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4076echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4077  case $host in
4078  *-*-mingw*)
4079    # gcc leaves a trailing carriage return which upsets mingw
4080    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4081  *)
4082    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4083  esac
4084  case $ac_prog in
4085    # Accept absolute paths.
4086    [\\/]* | ?:[\\/]*)
4087      re_direlt='/[^/][^/]*/\.\./'
4088      # Canonicalize the pathname of ld
4089      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4090      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4091        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4092      done
4093      test -z "$LD" && LD="$ac_prog"
4094      ;;
4095  "")
4096    # If it fails, then pretend we aren't using GCC.
4097    ac_prog=ld
4098    ;;
4099  *)
4100    # If it is relative, then search for the first ld in PATH.
4101    with_gnu_ld=unknown
4102    ;;
4103  esac
4104elif test "$with_gnu_ld" = yes; then
4105  echo "$as_me:$LINENO: checking for GNU ld" >&5
4106echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4107else
4108  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4109echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4110fi
4111if test "${lt_cv_path_LD+set}" = set; then
4112  echo $ECHO_N "(cached) $ECHO_C" >&6
4113else
4114  if test -z "$LD"; then
4115  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4116  for ac_dir in $PATH; do
4117    IFS="$lt_save_ifs"
4118    test -z "$ac_dir" && ac_dir=.
4119    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4120      lt_cv_path_LD="$ac_dir/$ac_prog"
4121      # Check to see if the program is GNU ld.  I'd rather use --version,
4122      # but apparently some variants of GNU ld only accept -v.
4123      # Break only if it was the GNU/non-GNU ld that we prefer.
4124      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4125      *GNU* | *'with BFD'*)
4126        test "$with_gnu_ld" != no && break
4127        ;;
4128      *)
4129        test "$with_gnu_ld" != yes && break
4130        ;;
4131      esac
4132    fi
4133  done
4134  IFS="$lt_save_ifs"
4135else
4136  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4137fi
4138fi
4139
4140LD="$lt_cv_path_LD"
4141if test -n "$LD"; then
4142  echo "$as_me:$LINENO: result: $LD" >&5
4143echo "${ECHO_T}$LD" >&6
4144else
4145  echo "$as_me:$LINENO: result: no" >&5
4146echo "${ECHO_T}no" >&6
4147fi
4148test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4149echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4150   { (exit 1); exit 1; }; }
4151echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4152echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4153if test "${lt_cv_prog_gnu_ld+set}" = set; then
4154  echo $ECHO_N "(cached) $ECHO_C" >&6
4155else
4156  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4157case `$LD -v 2>&1 </dev/null` in
4158*GNU* | *'with BFD'*)
4159  lt_cv_prog_gnu_ld=yes
4160  ;;
4161*)
4162  lt_cv_prog_gnu_ld=no
4163  ;;
4164esac
4165fi
4166echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4167echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4168with_gnu_ld=$lt_cv_prog_gnu_ld
4169
4170
4171echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4172echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4173if test "${lt_cv_ld_reload_flag+set}" = set; then
4174  echo $ECHO_N "(cached) $ECHO_C" >&6
4175else
4176  lt_cv_ld_reload_flag='-r'
4177fi
4178echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4179echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4180reload_flag=$lt_cv_ld_reload_flag
4181case $reload_flag in
4182"" | " "*) ;;
4183*) reload_flag=" $reload_flag" ;;
4184esac
4185reload_cmds='$LD$reload_flag -o $output$reload_objs'
4186case $host_os in
4187  darwin*)
4188    if test "$GCC" = yes; then
4189      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4190    else
4191      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4192    fi
4193    ;;
4194esac
4195
4196echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4197echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4198if test "${lt_cv_path_NM+set}" = set; then
4199  echo $ECHO_N "(cached) $ECHO_C" >&6
4200else
4201  if test -n "$NM"; then
4202  # Let the user override the test.
4203  lt_cv_path_NM="$NM"
4204else
4205  lt_nm_to_check="${ac_tool_prefix}nm"
4206  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4207    lt_nm_to_check="$lt_nm_to_check nm"
4208  fi
4209  for lt_tmp_nm in $lt_nm_to_check; do
4210    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4211    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4212      IFS="$lt_save_ifs"
4213      test -z "$ac_dir" && ac_dir=.
4214      tmp_nm="$ac_dir/$lt_tmp_nm"
4215      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4216        # Check to see if the nm accepts a BSD-compat flag.
4217        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4218        #   nm: unknown option "B" ignored
4219        # Tru64's nm complains that /dev/null is an invalid object file
4220        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4221        */dev/null* | *'Invalid file or object type'*)
4222          lt_cv_path_NM="$tmp_nm -B"
4223          break
4224          ;;
4225        *)
4226          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4227          */dev/null*)
4228            lt_cv_path_NM="$tmp_nm -p"
4229            break
4230            ;;
4231          *)
4232            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4233            continue # so that we can try to find one that supports BSD flags
4234            ;;
4235          esac
4236          ;;
4237        esac
4238      fi
4239    done
4240    IFS="$lt_save_ifs"
4241  done
4242  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4243fi
4244fi
4245echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4246echo "${ECHO_T}$lt_cv_path_NM" >&6
4247NM="$lt_cv_path_NM"
4248
4249echo "$as_me:$LINENO: checking whether ln -s works" >&5
4250echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4251LN_S=$as_ln_s
4252if test "$LN_S" = "ln -s"; then
4253  echo "$as_me:$LINENO: result: yes" >&5
4254echo "${ECHO_T}yes" >&6
4255else
4256  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4257echo "${ECHO_T}no, using $LN_S" >&6
4258fi
4259
4260echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4261echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4262if test "${lt_cv_deplibs_check_method+set}" = set; then
4263  echo $ECHO_N "(cached) $ECHO_C" >&6
4264else
4265  lt_cv_file_magic_cmd='$MAGIC_CMD'
4266lt_cv_file_magic_test_file=
4267lt_cv_deplibs_check_method='unknown'
4268# Need to set the preceding variable on all platforms that support
4269# interlibrary dependencies.
4270# 'none' -- dependencies not supported.
4271# `unknown' -- same as none, but documents that we really don't know.
4272# 'pass_all' -- all dependencies passed with no checks.
4273# 'test_compile' -- check by making test program.
4274# 'file_magic [[regex]]' -- check by looking for files in library path
4275# which responds to the $file_magic_cmd with a given extended regex.
4276# If you have `file' or equivalent on your system and you're not sure
4277# whether `pass_all' will *always* work, you probably want this one.
4278
4279case $host_os in
4280aix4* | aix5*)
4281  lt_cv_deplibs_check_method=pass_all
4282  ;;
4283
4284beos*)
4285  lt_cv_deplibs_check_method=pass_all
4286  ;;
4287
4288bsdi[45]*)
4289  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4290  lt_cv_file_magic_cmd='/usr/bin/file -L'
4291  lt_cv_file_magic_test_file=/shlib/libc.so
4292  ;;
4293
4294cygwin*)
4295  # func_win32_libid is a shell function defined in ltmain.sh
4296  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4297  lt_cv_file_magic_cmd='func_win32_libid'
4298  ;;
4299
4300mingw* | pw32*)
4301  # Base MSYS/MinGW do not provide the 'file' command needed by
4302  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4303  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4304  lt_cv_file_magic_cmd='$OBJDUMP -f'
4305  ;;
4306
4307darwin* | rhapsody*)
4308  lt_cv_deplibs_check_method=pass_all
4309  ;;
4310
4311freebsd* | kfreebsd*-gnu | dragonfly*)
4312  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4313    case $host_cpu in
4314    i*86 )
4315      # Not sure whether the presence of OpenBSD here was a mistake.
4316      # Let's accept both of them until this is cleared up.
4317      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4318      lt_cv_file_magic_cmd=/usr/bin/file
4319      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4320      ;;
4321    esac
4322  else
4323    lt_cv_deplibs_check_method=pass_all
4324  fi
4325  ;;
4326
4327gnu*)
4328  lt_cv_deplibs_check_method=pass_all
4329  ;;
4330
4331hpux10.20* | hpux11*)
4332  lt_cv_file_magic_cmd=/usr/bin/file
4333  case $host_cpu in
4334  ia64*)
4335    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4336    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4337    ;;
4338  hppa*64*)
4339    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]'
4340    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4341    ;;
4342  *)
4343    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4344    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4345    ;;
4346  esac
4347  ;;
4348
4349interix3*)
4350  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4351  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4352  ;;
4353
4354irix5* | irix6* | nonstopux*)
4355  case $LD in
4356  *-32|*"-32 ") libmagic=32-bit;;
4357  *-n32|*"-n32 ") libmagic=N32;;
4358  *-64|*"-64 ") libmagic=64-bit;;
4359  *) libmagic=never-match;;
4360  esac
4361  lt_cv_deplibs_check_method=pass_all
4362  ;;
4363
4364# This must be Linux ELF.
4365linux*)
4366  lt_cv_deplibs_check_method=pass_all
4367  ;;
4368
4369netbsd*)
4370  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4371    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4372  else
4373    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4374  fi
4375  ;;
4376
4377newos6*)
4378  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4379  lt_cv_file_magic_cmd=/usr/bin/file
4380  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4381  ;;
4382
4383nto-qnx*)
4384  lt_cv_deplibs_check_method=unknown
4385  ;;
4386
4387openbsd*)
4388  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4389    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4390  else
4391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4392  fi
4393  ;;
4394
4395osf3* | osf4* | osf5*)
4396  lt_cv_deplibs_check_method=pass_all
4397  ;;
4398
4399solaris*)
4400  lt_cv_deplibs_check_method=pass_all
4401  ;;
4402
4403sysv4 | sysv4.3*)
4404  case $host_vendor in
4405  motorola)
4406    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]'
4407    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4408    ;;
4409  ncr)
4410    lt_cv_deplibs_check_method=pass_all
4411    ;;
4412  sequent)
4413    lt_cv_file_magic_cmd='/bin/file'
4414    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4415    ;;
4416  sni)
4417    lt_cv_file_magic_cmd='/bin/file'
4418    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4419    lt_cv_file_magic_test_file=/lib/libc.so
4420    ;;
4421  siemens)
4422    lt_cv_deplibs_check_method=pass_all
4423    ;;
4424  pc)
4425    lt_cv_deplibs_check_method=pass_all
4426    ;;
4427  esac
4428  ;;
4429
4430sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4431  lt_cv_deplibs_check_method=pass_all
4432  ;;
4433esac
4434
4435fi
4436echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4437echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4438file_magic_cmd=$lt_cv_file_magic_cmd
4439deplibs_check_method=$lt_cv_deplibs_check_method
4440test -z "$deplibs_check_method" && deplibs_check_method=unknown
4441
4442
4443
4444
4445# If no C compiler was specified, use CC.
4446LTCC=${LTCC-"$CC"}
4447
4448# If no C compiler flags were specified, use CFLAGS.
4449LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4450
4451# Allow CC to be a program name with arguments.
4452compiler=$CC
4453
4454# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4455if test "${enable_libtool_lock+set}" = set; then
4456  enableval="$enable_libtool_lock"
4457
4458fi;
4459test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4460
4461# Some flags need to be propagated to the compiler or linker for good
4462# libtool support.
4463case $host in
4464ia64-*-hpux*)
4465  # Find out which ABI we are using.
4466  echo 'int i;' > conftest.$ac_ext
4467  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4468  (eval $ac_compile) 2>&5
4469  ac_status=$?
4470  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471  (exit $ac_status); }; then
4472    case `/usr/bin/file conftest.$ac_objext` in
4473    *ELF-32*)
4474      HPUX_IA64_MODE="32"
4475      ;;
4476    *ELF-64*)
4477      HPUX_IA64_MODE="64"
4478      ;;
4479    esac
4480  fi
4481  rm -rf conftest*
4482  ;;
4483*-*-irix6*)
4484  # Find out which ABI we are using.
4485  echo '#line 4485 "configure"' > conftest.$ac_ext
4486  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4487  (eval $ac_compile) 2>&5
4488  ac_status=$?
4489  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490  (exit $ac_status); }; then
4491   if test "$lt_cv_prog_gnu_ld" = yes; then
4492    case `/usr/bin/file conftest.$ac_objext` in
4493    *32-bit*)
4494      LD="${LD-ld} -melf32bsmip"
4495      ;;
4496    *N32*)
4497      LD="${LD-ld} -melf32bmipn32"
4498      ;;
4499    *64-bit*)
4500      LD="${LD-ld} -melf64bmip"
4501      ;;
4502    esac
4503   else
4504    case `/usr/bin/file conftest.$ac_objext` in
4505    *32-bit*)
4506      LD="${LD-ld} -32"
4507      ;;
4508    *N32*)
4509      LD="${LD-ld} -n32"
4510      ;;
4511    *64-bit*)
4512      LD="${LD-ld} -64"
4513      ;;
4514    esac
4515   fi
4516  fi
4517  rm -rf conftest*
4518  ;;
4519
4520x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4521  # Find out which ABI we are using.
4522  echo 'int i;' > conftest.$ac_ext
4523  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4524  (eval $ac_compile) 2>&5
4525  ac_status=$?
4526  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527  (exit $ac_status); }; then
4528    case `/usr/bin/file conftest.o` in
4529    *32-bit*)
4530      case $host in
4531        x86_64-*linux*)
4532          LD="${LD-ld} -m elf_i386"
4533          ;;
4534        ppc64-*linux*|powerpc64-*linux*)
4535          LD="${LD-ld} -m elf32ppclinux"
4536          ;;
4537        s390x-*linux*)
4538          LD="${LD-ld} -m elf_s390"
4539          ;;
4540        sparc64-*linux*)
4541          LD="${LD-ld} -m elf32_sparc"
4542          ;;
4543      esac
4544      ;;
4545    *64-bit*)
4546      case $host in
4547        x86_64-*linux*)
4548          LD="${LD-ld} -m elf_x86_64"
4549          ;;
4550        ppc*-*linux*|powerpc*-*linux*)
4551          LD="${LD-ld} -m elf64ppc"
4552          ;;
4553        s390*-*linux*)
4554          LD="${LD-ld} -m elf64_s390"
4555          ;;
4556        sparc*-*linux*)
4557          LD="${LD-ld} -m elf64_sparc"
4558          ;;
4559      esac
4560      ;;
4561    esac
4562  fi
4563  rm -rf conftest*
4564  ;;
4565
4566*-*-sco3.2v5*)
4567  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4568  SAVE_CFLAGS="$CFLAGS"
4569  CFLAGS="$CFLAGS -belf"
4570  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4571echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4572if test "${lt_cv_cc_needs_belf+set}" = set; then
4573  echo $ECHO_N "(cached) $ECHO_C" >&6
4574else
4575  ac_ext=c
4576ac_cpp='$CPP $CPPFLAGS'
4577ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581     cat >conftest.$ac_ext <<_ACEOF
4582/* confdefs.h.  */
4583_ACEOF
4584cat confdefs.h >>conftest.$ac_ext
4585cat >>conftest.$ac_ext <<_ACEOF
4586/* end confdefs.h.  */
4587
4588int
4589main ()
4590{
4591
4592  ;
4593  return 0;
4594}
4595_ACEOF
4596rm -f conftest.$ac_objext conftest$ac_exeext
4597if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4598  (eval $ac_link) 2>conftest.er1
4599  ac_status=$?
4600  grep -v '^ *+' conftest.er1 >conftest.err
4601  rm -f conftest.er1
4602  cat conftest.err >&5
4603  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4604  (exit $ac_status); } &&
4605         { ac_try='test -z "$ac_c_werror_flag"
4606                         || test ! -s conftest.err'
4607  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4608  (eval $ac_try) 2>&5
4609  ac_status=$?
4610  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611  (exit $ac_status); }; } &&
4612         { ac_try='test -s conftest$ac_exeext'
4613  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4614  (eval $ac_try) 2>&5
4615  ac_status=$?
4616  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617  (exit $ac_status); }; }; then
4618  lt_cv_cc_needs_belf=yes
4619else
4620  echo "$as_me: failed program was:" >&5
4621sed 's/^/| /' conftest.$ac_ext >&5
4622
4623lt_cv_cc_needs_belf=no
4624fi
4625rm -f conftest.err conftest.$ac_objext \
4626      conftest$ac_exeext conftest.$ac_ext
4627     ac_ext=c
4628ac_cpp='$CPP $CPPFLAGS'
4629ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4630ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4631ac_compiler_gnu=$ac_cv_c_compiler_gnu
4632
4633fi
4634echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4635echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4636  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4637    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4638    CFLAGS="$SAVE_CFLAGS"
4639  fi
4640  ;;
4641sparc*-*solaris*)
4642  # Find out which ABI we are using.
4643  echo 'int i;' > conftest.$ac_ext
4644  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4645  (eval $ac_compile) 2>&5
4646  ac_status=$?
4647  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648  (exit $ac_status); }; then
4649    case `/usr/bin/file conftest.o` in
4650    *64-bit*)
4651      case $lt_cv_prog_gnu_ld in
4652      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4653      *)    LD="${LD-ld} -64" ;;
4654      esac
4655      ;;
4656    esac
4657  fi
4658  rm -rf conftest*
4659  ;;
4660
4661
4662esac
4663
4664need_locks="$enable_libtool_lock"
4665
4666
4667ac_ext=c
4668ac_cpp='$CPP $CPPFLAGS'
4669ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4670ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4671ac_compiler_gnu=$ac_cv_c_compiler_gnu
4672echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4673echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4674# On Suns, sometimes $CPP names a directory.
4675if test -n "$CPP" && test -d "$CPP"; then
4676  CPP=
4677fi
4678if test -z "$CPP"; then
4679  if test "${ac_cv_prog_CPP+set}" = set; then
4680  echo $ECHO_N "(cached) $ECHO_C" >&6
4681else
4682      # Double quotes because CPP needs to be expanded
4683    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4684    do
4685      ac_preproc_ok=false
4686for ac_c_preproc_warn_flag in '' yes
4687do
4688  # Use a header file that comes with gcc, so configuring glibc
4689  # with a fresh cross-compiler works.
4690  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4691  # <limits.h> exists even on freestanding compilers.
4692  # On the NeXT, cc -E runs the code through the compiler's parser,
4693  # not just through cpp. "Syntax error" is here to catch this case.
4694  cat >conftest.$ac_ext <<_ACEOF
4695/* confdefs.h.  */
4696_ACEOF
4697cat confdefs.h >>conftest.$ac_ext
4698cat >>conftest.$ac_ext <<_ACEOF
4699/* end confdefs.h.  */
4700#ifdef __STDC__
4701# include <limits.h>
4702#else
4703# include <assert.h>
4704#endif
4705                     Syntax error
4706_ACEOF
4707if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4708  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4709  ac_status=$?
4710  grep -v '^ *+' conftest.er1 >conftest.err
4711  rm -f conftest.er1
4712  cat conftest.err >&5
4713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4714  (exit $ac_status); } >/dev/null; then
4715  if test -s conftest.err; then
4716    ac_cpp_err=$ac_c_preproc_warn_flag
4717    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4718  else
4719    ac_cpp_err=
4720  fi
4721else
4722  ac_cpp_err=yes
4723fi
4724if test -z "$ac_cpp_err"; then
4725  :
4726else
4727  echo "$as_me: failed program was:" >&5
4728sed 's/^/| /' conftest.$ac_ext >&5
4729
4730  # Broken: fails on valid input.
4731continue
4732fi
4733rm -f conftest.err conftest.$ac_ext
4734
4735  # OK, works on sane cases.  Now check whether non-existent headers
4736  # can be detected and how.
4737  cat >conftest.$ac_ext <<_ACEOF
4738/* confdefs.h.  */
4739_ACEOF
4740cat confdefs.h >>conftest.$ac_ext
4741cat >>conftest.$ac_ext <<_ACEOF
4742/* end confdefs.h.  */
4743#include <ac_nonexistent.h>
4744_ACEOF
4745if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4746  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4747  ac_status=$?
4748  grep -v '^ *+' conftest.er1 >conftest.err
4749  rm -f conftest.er1
4750  cat conftest.err >&5
4751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752  (exit $ac_status); } >/dev/null; then
4753  if test -s conftest.err; then
4754    ac_cpp_err=$ac_c_preproc_warn_flag
4755    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4756  else
4757    ac_cpp_err=
4758  fi
4759else
4760  ac_cpp_err=yes
4761fi
4762if test -z "$ac_cpp_err"; then
4763  # Broken: success on invalid input.
4764continue
4765else
4766  echo "$as_me: failed program was:" >&5
4767sed 's/^/| /' conftest.$ac_ext >&5
4768
4769  # Passes both tests.
4770ac_preproc_ok=:
4771break
4772fi
4773rm -f conftest.err conftest.$ac_ext
4774
4775done
4776# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4777rm -f conftest.err conftest.$ac_ext
4778if $ac_preproc_ok; then
4779  break
4780fi
4781
4782    done
4783    ac_cv_prog_CPP=$CPP
4784
4785fi
4786  CPP=$ac_cv_prog_CPP
4787else
4788  ac_cv_prog_CPP=$CPP
4789fi
4790echo "$as_me:$LINENO: result: $CPP" >&5
4791echo "${ECHO_T}$CPP" >&6
4792ac_preproc_ok=false
4793for ac_c_preproc_warn_flag in '' yes
4794do
4795  # Use a header file that comes with gcc, so configuring glibc
4796  # with a fresh cross-compiler works.
4797  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4798  # <limits.h> exists even on freestanding compilers.
4799  # On the NeXT, cc -E runs the code through the compiler's parser,
4800  # not just through cpp. "Syntax error" is here to catch this case.
4801  cat >conftest.$ac_ext <<_ACEOF
4802/* confdefs.h.  */
4803_ACEOF
4804cat confdefs.h >>conftest.$ac_ext
4805cat >>conftest.$ac_ext <<_ACEOF
4806/* end confdefs.h.  */
4807#ifdef __STDC__
4808# include <limits.h>
4809#else
4810# include <assert.h>
4811#endif
4812                     Syntax error
4813_ACEOF
4814if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4815  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4816  ac_status=$?
4817  grep -v '^ *+' conftest.er1 >conftest.err
4818  rm -f conftest.er1
4819  cat conftest.err >&5
4820  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4821  (exit $ac_status); } >/dev/null; then
4822  if test -s conftest.err; then
4823    ac_cpp_err=$ac_c_preproc_warn_flag
4824    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4825  else
4826    ac_cpp_err=
4827  fi
4828else
4829  ac_cpp_err=yes
4830fi
4831if test -z "$ac_cpp_err"; then
4832  :
4833else
4834  echo "$as_me: failed program was:" >&5
4835sed 's/^/| /' conftest.$ac_ext >&5
4836
4837  # Broken: fails on valid input.
4838continue
4839fi
4840rm -f conftest.err conftest.$ac_ext
4841
4842  # OK, works on sane cases.  Now check whether non-existent headers
4843  # can be detected and how.
4844  cat >conftest.$ac_ext <<_ACEOF
4845/* confdefs.h.  */
4846_ACEOF
4847cat confdefs.h >>conftest.$ac_ext
4848cat >>conftest.$ac_ext <<_ACEOF
4849/* end confdefs.h.  */
4850#include <ac_nonexistent.h>
4851_ACEOF
4852if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4853  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4854  ac_status=$?
4855  grep -v '^ *+' conftest.er1 >conftest.err
4856  rm -f conftest.er1
4857  cat conftest.err >&5
4858  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4859  (exit $ac_status); } >/dev/null; then
4860  if test -s conftest.err; then
4861    ac_cpp_err=$ac_c_preproc_warn_flag
4862    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4863  else
4864    ac_cpp_err=
4865  fi
4866else
4867  ac_cpp_err=yes
4868fi
4869if test -z "$ac_cpp_err"; then
4870  # Broken: success on invalid input.
4871continue
4872else
4873  echo "$as_me: failed program was:" >&5
4874sed 's/^/| /' conftest.$ac_ext >&5
4875
4876  # Passes both tests.
4877ac_preproc_ok=:
4878break
4879fi
4880rm -f conftest.err conftest.$ac_ext
4881
4882done
4883# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4884rm -f conftest.err conftest.$ac_ext
4885if $ac_preproc_ok; then
4886  :
4887else
4888  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4889See \`config.log' for more details." >&5
4890echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4891See \`config.log' for more details." >&2;}
4892   { (exit 1); exit 1; }; }
4893fi
4894
4895ac_ext=c
4896ac_cpp='$CPP $CPPFLAGS'
4897ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4898ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4899ac_compiler_gnu=$ac_cv_c_compiler_gnu
4900
4901
4902echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4903echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4904if test "${ac_cv_header_stdc+set}" = set; then
4905  echo $ECHO_N "(cached) $ECHO_C" >&6
4906else
4907  cat >conftest.$ac_ext <<_ACEOF
4908/* confdefs.h.  */
4909_ACEOF
4910cat confdefs.h >>conftest.$ac_ext
4911cat >>conftest.$ac_ext <<_ACEOF
4912/* end confdefs.h.  */
4913#include <stdlib.h>
4914#include <stdarg.h>
4915#include <string.h>
4916#include <float.h>
4917
4918int
4919main ()
4920{
4921
4922  ;
4923  return 0;
4924}
4925_ACEOF
4926rm -f conftest.$ac_objext
4927if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4928  (eval $ac_compile) 2>conftest.er1
4929  ac_status=$?
4930  grep -v '^ *+' conftest.er1 >conftest.err
4931  rm -f conftest.er1
4932  cat conftest.err >&5
4933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934  (exit $ac_status); } &&
4935         { ac_try='test -z "$ac_c_werror_flag"
4936                         || test ! -s conftest.err'
4937  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4938  (eval $ac_try) 2>&5
4939  ac_status=$?
4940  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941  (exit $ac_status); }; } &&
4942         { ac_try='test -s conftest.$ac_objext'
4943  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4944  (eval $ac_try) 2>&5
4945  ac_status=$?
4946  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947  (exit $ac_status); }; }; then
4948  ac_cv_header_stdc=yes
4949else
4950  echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953ac_cv_header_stdc=no
4954fi
4955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4956
4957if test $ac_cv_header_stdc = yes; then
4958  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4959  cat >conftest.$ac_ext <<_ACEOF
4960/* confdefs.h.  */
4961_ACEOF
4962cat confdefs.h >>conftest.$ac_ext
4963cat >>conftest.$ac_ext <<_ACEOF
4964/* end confdefs.h.  */
4965#include <string.h>
4966
4967_ACEOF
4968if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4969  $EGREP "memchr" >/dev/null 2>&1; then
4970  :
4971else
4972  ac_cv_header_stdc=no
4973fi
4974rm -f conftest*
4975
4976fi
4977
4978if test $ac_cv_header_stdc = yes; then
4979  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4980  cat >conftest.$ac_ext <<_ACEOF
4981/* confdefs.h.  */
4982_ACEOF
4983cat confdefs.h >>conftest.$ac_ext
4984cat >>conftest.$ac_ext <<_ACEOF
4985/* end confdefs.h.  */
4986#include <stdlib.h>
4987
4988_ACEOF
4989if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4990  $EGREP "free" >/dev/null 2>&1; then
4991  :
4992else
4993  ac_cv_header_stdc=no
4994fi
4995rm -f conftest*
4996
4997fi
4998
4999if test $ac_cv_header_stdc = yes; then
5000  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5001  if test "$cross_compiling" = yes; then
5002  :
5003else
5004  cat >conftest.$ac_ext <<_ACEOF
5005/* confdefs.h.  */
5006_ACEOF
5007cat confdefs.h >>conftest.$ac_ext
5008cat >>conftest.$ac_ext <<_ACEOF
5009/* end confdefs.h.  */
5010#include <ctype.h>
5011#if ((' ' & 0x0FF) == 0x020)
5012# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5013# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5014#else
5015# define ISLOWER(c) \
5016                   (('a' <= (c) && (c) <= 'i') \
5017                     || ('j' <= (c) && (c) <= 'r') \
5018                     || ('s' <= (c) && (c) <= 'z'))
5019# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5020#endif
5021
5022#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5023int
5024main ()
5025{
5026  int i;
5027  for (i = 0; i < 256; i++)
5028    if (XOR (islower (i), ISLOWER (i))
5029        || toupper (i) != TOUPPER (i))
5030      exit(2);
5031  exit (0);
5032}
5033_ACEOF
5034rm -f conftest$ac_exeext
5035if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5036  (eval $ac_link) 2>&5
5037  ac_status=$?
5038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5039  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5040  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5041  (eval $ac_try) 2>&5
5042  ac_status=$?
5043  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5044  (exit $ac_status); }; }; then
5045  :
5046else
5047  echo "$as_me: program exited with status $ac_status" >&5
5048echo "$as_me: failed program was:" >&5
5049sed 's/^/| /' conftest.$ac_ext >&5
5050
5051( exit $ac_status )
5052ac_cv_header_stdc=no
5053fi
5054rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5055fi
5056fi
5057fi
5058echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5059echo "${ECHO_T}$ac_cv_header_stdc" >&6
5060if test $ac_cv_header_stdc = yes; then
5061
5062cat >>confdefs.h <<\_ACEOF
5063#define STDC_HEADERS 1
5064_ACEOF
5065
5066fi
5067
5068# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5069
5070
5071
5072
5073
5074
5075
5076
5077
5078for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5079                  inttypes.h stdint.h unistd.h
5080do
5081as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5082echo "$as_me:$LINENO: checking for $ac_header" >&5
5083echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5084if eval "test \"\${$as_ac_Header+set}\" = set"; then
5085  echo $ECHO_N "(cached) $ECHO_C" >&6
5086else
5087  cat >conftest.$ac_ext <<_ACEOF
5088/* confdefs.h.  */
5089_ACEOF
5090cat confdefs.h >>conftest.$ac_ext
5091cat >>conftest.$ac_ext <<_ACEOF
5092/* end confdefs.h.  */
5093$ac_includes_default
5094
5095#include <$ac_header>
5096_ACEOF
5097rm -f conftest.$ac_objext
5098if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5099  (eval $ac_compile) 2>conftest.er1
5100  ac_status=$?
5101  grep -v '^ *+' conftest.er1 >conftest.err
5102  rm -f conftest.er1
5103  cat conftest.err >&5
5104  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5105  (exit $ac_status); } &&
5106         { ac_try='test -z "$ac_c_werror_flag"
5107                         || test ! -s conftest.err'
5108  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5109  (eval $ac_try) 2>&5
5110  ac_status=$?
5111  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5112  (exit $ac_status); }; } &&
5113         { ac_try='test -s conftest.$ac_objext'
5114  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5115  (eval $ac_try) 2>&5
5116  ac_status=$?
5117  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118  (exit $ac_status); }; }; then
5119  eval "$as_ac_Header=yes"
5120else
5121  echo "$as_me: failed program was:" >&5
5122sed 's/^/| /' conftest.$ac_ext >&5
5123
5124eval "$as_ac_Header=no"
5125fi
5126rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5127fi
5128echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5129echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5130if test `eval echo '${'$as_ac_Header'}'` = yes; then
5131  cat >>confdefs.h <<_ACEOF
5132#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5133_ACEOF
5134
5135fi
5136
5137done
5138
5139
5140
5141for ac_header in dlfcn.h
5142do
5143as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5144if eval "test \"\${$as_ac_Header+set}\" = set"; then
5145  echo "$as_me:$LINENO: checking for $ac_header" >&5
5146echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5147if eval "test \"\${$as_ac_Header+set}\" = set"; then
5148  echo $ECHO_N "(cached) $ECHO_C" >&6
5149fi
5150echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5151echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5152else
5153  # Is the header compilable?
5154echo "$as_me:$LINENO: checking $ac_header usability" >&5
5155echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5156cat >conftest.$ac_ext <<_ACEOF
5157/* confdefs.h.  */
5158_ACEOF
5159cat confdefs.h >>conftest.$ac_ext
5160cat >>conftest.$ac_ext <<_ACEOF
5161/* end confdefs.h.  */
5162$ac_includes_default
5163#include <$ac_header>
5164_ACEOF
5165rm -f conftest.$ac_objext
5166if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5167  (eval $ac_compile) 2>conftest.er1
5168  ac_status=$?
5169  grep -v '^ *+' conftest.er1 >conftest.err
5170  rm -f conftest.er1
5171  cat conftest.err >&5
5172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5173  (exit $ac_status); } &&
5174         { ac_try='test -z "$ac_c_werror_flag"
5175                         || test ! -s conftest.err'
5176  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5177  (eval $ac_try) 2>&5
5178  ac_status=$?
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); }; } &&
5181         { ac_try='test -s conftest.$ac_objext'
5182  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5183  (eval $ac_try) 2>&5
5184  ac_status=$?
5185  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186  (exit $ac_status); }; }; then
5187  ac_header_compiler=yes
5188else
5189  echo "$as_me: failed program was:" >&5
5190sed 's/^/| /' conftest.$ac_ext >&5
5191
5192ac_header_compiler=no
5193fi
5194rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5195echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5196echo "${ECHO_T}$ac_header_compiler" >&6
5197
5198# Is the header present?
5199echo "$as_me:$LINENO: checking $ac_header presence" >&5
5200echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5201cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h.  */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
5206/* end confdefs.h.  */
5207#include <$ac_header>
5208_ACEOF
5209if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5210  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5211  ac_status=$?
5212  grep -v '^ *+' conftest.er1 >conftest.err
5213  rm -f conftest.er1
5214  cat conftest.err >&5
5215  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5216  (exit $ac_status); } >/dev/null; then
5217  if test -s conftest.err; then
5218    ac_cpp_err=$ac_c_preproc_warn_flag
5219    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5220  else
5221    ac_cpp_err=
5222  fi
5223else
5224  ac_cpp_err=yes
5225fi
5226if test -z "$ac_cpp_err"; then
5227  ac_header_preproc=yes
5228else
5229  echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
5232  ac_header_preproc=no
5233fi
5234rm -f conftest.err conftest.$ac_ext
5235echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5236echo "${ECHO_T}$ac_header_preproc" >&6
5237
5238# So?  What about this header?
5239case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5240  yes:no: )
5241    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5242echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5243    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5244echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5245    ac_header_preproc=yes
5246    ;;
5247  no:yes:* )
5248    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5249echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5250    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5251echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5252    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5253echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5254    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5255echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5256    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5257echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5258    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5259echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5260    (
5261      cat <<\_ASBOX
5262## ---------------------------------------- ##
5263## Report this to coin-cbc@list.coin-or.org ##
5264## ---------------------------------------- ##
5265_ASBOX
5266    ) |
5267      sed "s/^/$as_me: WARNING:     /" >&2
5268    ;;
5269esac
5270echo "$as_me:$LINENO: checking for $ac_header" >&5
5271echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5272if eval "test \"\${$as_ac_Header+set}\" = set"; then
5273  echo $ECHO_N "(cached) $ECHO_C" >&6
5274else
5275  eval "$as_ac_Header=\$ac_header_preproc"
5276fi
5277echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5278echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5279
5280fi
5281if test `eval echo '${'$as_ac_Header'}'` = yes; then
5282  cat >>confdefs.h <<_ACEOF
5283#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5284_ACEOF
5285
5286fi
5287
5288done
5289
5290
5291
5292if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5293    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5294    (test "X$CXX" != "Xg++"))) ; then
5295  ac_ext=cc
5296ac_cpp='$CXXCPP $CPPFLAGS'
5297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5300echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5301echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5302if test -z "$CXXCPP"; then
5303  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5304  echo $ECHO_N "(cached) $ECHO_C" >&6
5305else
5306      # Double quotes because CXXCPP needs to be expanded
5307    for CXXCPP in "$CXX -E" "/lib/cpp"
5308    do
5309      ac_preproc_ok=false
5310for ac_cxx_preproc_warn_flag in '' yes
5311do
5312  # Use a header file that comes with gcc, so configuring glibc
5313  # with a fresh cross-compiler works.
5314  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5315  # <limits.h> exists even on freestanding compilers.
5316  # On the NeXT, cc -E runs the code through the compiler's parser,
5317  # not just through cpp. "Syntax error" is here to catch this case.
5318  cat >conftest.$ac_ext <<_ACEOF
5319/* confdefs.h.  */
5320_ACEOF
5321cat confdefs.h >>conftest.$ac_ext
5322cat >>conftest.$ac_ext <<_ACEOF
5323/* end confdefs.h.  */
5324#ifdef __STDC__
5325# include <limits.h>
5326#else
5327# include <assert.h>
5328#endif
5329                     Syntax error
5330_ACEOF
5331if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5332  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5333  ac_status=$?
5334  grep -v '^ *+' conftest.er1 >conftest.err
5335  rm -f conftest.er1
5336  cat conftest.err >&5
5337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338  (exit $ac_status); } >/dev/null; then
5339  if test -s conftest.err; then
5340    ac_cpp_err=$ac_cxx_preproc_warn_flag
5341    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5342  else
5343    ac_cpp_err=
5344  fi
5345else
5346  ac_cpp_err=yes
5347fi
5348if test -z "$ac_cpp_err"; then
5349  :
5350else
5351  echo "$as_me: failed program was:" >&5
5352sed 's/^/| /' conftest.$ac_ext >&5
5353
5354  # Broken: fails on valid input.
5355continue
5356fi
5357rm -f conftest.err conftest.$ac_ext
5358
5359  # OK, works on sane cases.  Now check whether non-existent headers
5360  # can be detected and how.
5361  cat >conftest.$ac_ext <<_ACEOF
5362/* confdefs.h.  */
5363_ACEOF
5364cat confdefs.h >>conftest.$ac_ext
5365cat >>conftest.$ac_ext <<_ACEOF
5366/* end confdefs.h.  */
5367#include <ac_nonexistent.h>
5368_ACEOF
5369if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5370  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5371  ac_status=$?
5372  grep -v '^ *+' conftest.er1 >conftest.err
5373  rm -f conftest.er1
5374  cat conftest.err >&5
5375  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5376  (exit $ac_status); } >/dev/null; then
5377  if test -s conftest.err; then
5378    ac_cpp_err=$ac_cxx_preproc_warn_flag
5379    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5380  else
5381    ac_cpp_err=
5382  fi
5383else
5384  ac_cpp_err=yes
5385fi
5386if test -z "$ac_cpp_err"; then
5387  # Broken: success on invalid input.
5388continue
5389else
5390  echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393  # Passes both tests.
5394ac_preproc_ok=:
5395break
5396fi
5397rm -f conftest.err conftest.$ac_ext
5398
5399done
5400# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5401rm -f conftest.err conftest.$ac_ext
5402if $ac_preproc_ok; then
5403  break
5404fi
5405
5406    done
5407    ac_cv_prog_CXXCPP=$CXXCPP
5408
5409fi
5410  CXXCPP=$ac_cv_prog_CXXCPP
5411else
5412  ac_cv_prog_CXXCPP=$CXXCPP
5413fi
5414echo "$as_me:$LINENO: result: $CXXCPP" >&5
5415echo "${ECHO_T}$CXXCPP" >&6
5416ac_preproc_ok=false
5417for ac_cxx_preproc_warn_flag in '' yes
5418do
5419  # Use a header file that comes with gcc, so configuring glibc
5420  # with a fresh cross-compiler works.
5421  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5422  # <limits.h> exists even on freestanding compilers.
5423  # On the NeXT, cc -E runs the code through the compiler's parser,
5424  # not just through cpp. "Syntax error" is here to catch this case.
5425  cat >conftest.$ac_ext <<_ACEOF
5426/* confdefs.h.  */
5427_ACEOF
5428cat confdefs.h >>conftest.$ac_ext
5429cat >>conftest.$ac_ext <<_ACEOF
5430/* end confdefs.h.  */
5431#ifdef __STDC__
5432# include <limits.h>
5433#else
5434# include <assert.h>
5435#endif
5436                     Syntax error
5437_ACEOF
5438if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5439  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5440  ac_status=$?
5441  grep -v '^ *+' conftest.er1 >conftest.err
5442  rm -f conftest.er1
5443  cat conftest.err >&5
5444  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5445  (exit $ac_status); } >/dev/null; then
5446  if test -s conftest.err; then
5447    ac_cpp_err=$ac_cxx_preproc_warn_flag
5448    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5449  else
5450    ac_cpp_err=
5451  fi
5452else
5453  ac_cpp_err=yes
5454fi
5455if test -z "$ac_cpp_err"; then
5456  :
5457else
5458  echo "$as_me: failed program was:" >&5
5459sed 's/^/| /' conftest.$ac_ext >&5
5460
5461  # Broken: fails on valid input.
5462continue
5463fi
5464rm -f conftest.err conftest.$ac_ext
5465
5466  # OK, works on sane cases.  Now check whether non-existent headers
5467  # can be detected and how.
5468  cat >conftest.$ac_ext <<_ACEOF
5469/* confdefs.h.  */
5470_ACEOF
5471cat confdefs.h >>conftest.$ac_ext
5472cat >>conftest.$ac_ext <<_ACEOF
5473/* end confdefs.h.  */
5474#include <ac_nonexistent.h>
5475_ACEOF
5476if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5477  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5478  ac_status=$?
5479  grep -v '^ *+' conftest.er1 >conftest.err
5480  rm -f conftest.er1
5481  cat conftest.err >&5
5482  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483  (exit $ac_status); } >/dev/null; then
5484  if test -s conftest.err; then
5485    ac_cpp_err=$ac_cxx_preproc_warn_flag
5486    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5487  else
5488    ac_cpp_err=
5489  fi
5490else
5491  ac_cpp_err=yes
5492fi
5493if test -z "$ac_cpp_err"; then
5494  # Broken: success on invalid input.
5495continue
5496else
5497  echo "$as_me: failed program was:" >&5
5498sed 's/^/| /' conftest.$ac_ext >&5
5499
5500  # Passes both tests.
5501ac_preproc_ok=:
5502break
5503fi
5504rm -f conftest.err conftest.$ac_ext
5505
5506done
5507# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5508rm -f conftest.err conftest.$ac_ext
5509if $ac_preproc_ok; then
5510  :
5511else
5512  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5513See \`config.log' for more details." >&5
5514echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5515See \`config.log' for more details." >&2;}
5516   { (exit 1); exit 1; }; }
5517fi
5518
5519ac_ext=cc
5520ac_cpp='$CXXCPP $CPPFLAGS'
5521ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5522ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5523ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5524
5525fi
5526
5527ac_ext=f
5528ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5529ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5530ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5531if test -n "$ac_tool_prefix"; then
5532  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5533  do
5534    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5535set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5536echo "$as_me:$LINENO: checking for $ac_word" >&5
5537echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5538if test "${ac_cv_prog_F77+set}" = set; then
5539  echo $ECHO_N "(cached) $ECHO_C" >&6
5540else
5541  if test -n "$F77"; then
5542  ac_cv_prog_F77="$F77" # Let the user override the test.
5543else
5544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5545for as_dir in $PATH
5546do
5547  IFS=$as_save_IFS
5548  test -z "$as_dir" && as_dir=.
5549  for ac_exec_ext in '' $ac_executable_extensions; do
5550  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5551    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5552    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5553    break 2
5554  fi
5555done
5556done
5557
5558fi
5559fi
5560F77=$ac_cv_prog_F77
5561if test -n "$F77"; then
5562  echo "$as_me:$LINENO: result: $F77" >&5
5563echo "${ECHO_T}$F77" >&6
5564else
5565  echo "$as_me:$LINENO: result: no" >&5
5566echo "${ECHO_T}no" >&6
5567fi
5568
5569    test -n "$F77" && break
5570  done
5571fi
5572if test -z "$F77"; then
5573  ac_ct_F77=$F77
5574  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5575do
5576  # Extract the first word of "$ac_prog", so it can be a program name with args.
5577set dummy $ac_prog; ac_word=$2
5578echo "$as_me:$LINENO: checking for $ac_word" >&5
5579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5580if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5581  echo $ECHO_N "(cached) $ECHO_C" >&6
5582else
5583  if test -n "$ac_ct_F77"; then
5584  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5585else
5586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5587for as_dir in $PATH
5588do
5589  IFS=$as_save_IFS
5590  test -z "$as_dir" && as_dir=.
5591  for ac_exec_ext in '' $ac_executable_extensions; do
5592  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5593    ac_cv_prog_ac_ct_F77="$ac_prog"
5594    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5595    break 2
5596  fi
5597done
5598done
5599
5600fi
5601fi
5602ac_ct_F77=$ac_cv_prog_ac_ct_F77
5603if test -n "$ac_ct_F77"; then
5604  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5605echo "${ECHO_T}$ac_ct_F77" >&6
5606else
5607  echo "$as_me:$LINENO: result: no" >&5
5608echo "${ECHO_T}no" >&6
5609fi
5610
5611  test -n "$ac_ct_F77" && break
5612done
5613
5614  F77=$ac_ct_F77
5615fi
5616
5617
5618# Provide some information about the compiler.
5619echo "$as_me:5619:" \
5620     "checking for Fortran 77 compiler version" >&5
5621ac_compiler=`set X $ac_compile; echo $2`
5622{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5623  (eval $ac_compiler --version </dev/null >&5) 2>&5
5624  ac_status=$?
5625  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626  (exit $ac_status); }
5627{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5628  (eval $ac_compiler -v </dev/null >&5) 2>&5
5629  ac_status=$?
5630  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5631  (exit $ac_status); }
5632{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5633  (eval $ac_compiler -V </dev/null >&5) 2>&5
5634  ac_status=$?
5635  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5636  (exit $ac_status); }
5637rm -f a.out
5638
5639# If we don't use `.F' as extension, the preprocessor is not run on the
5640# input file.  (Note that this only needs to work for GNU compilers.)
5641ac_save_ext=$ac_ext
5642ac_ext=F
5643echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5644echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5645if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5646  echo $ECHO_N "(cached) $ECHO_C" >&6
5647else
5648  cat >conftest.$ac_ext <<_ACEOF
5649      program main
5650#ifndef __GNUC__
5651       choke me
5652#endif
5653
5654      end
5655_ACEOF
5656rm -f conftest.$ac_objext
5657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5658  (eval $ac_compile) 2>conftest.er1
5659  ac_status=$?
5660  grep -v '^ *+' conftest.er1 >conftest.err
5661  rm -f conftest.er1
5662  cat conftest.err >&5
5663  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5664  (exit $ac_status); } &&
5665         { ac_try='test -z "$ac_f77_werror_flag"
5666                         || test ! -s conftest.err'
5667  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5668  (eval $ac_try) 2>&5
5669  ac_status=$?
5670  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671  (exit $ac_status); }; } &&
5672         { ac_try='test -s conftest.$ac_objext'
5673  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674  (eval $ac_try) 2>&5
5675  ac_status=$?
5676  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677  (exit $ac_status); }; }; then
5678  ac_compiler_gnu=yes
5679else
5680  echo "$as_me: failed program was:" >&5
5681sed 's/^/| /' conftest.$ac_ext >&5
5682
5683ac_compiler_gnu=no
5684fi
5685rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5686ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5687
5688fi
5689echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5690echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5691ac_ext=$ac_save_ext
5692ac_test_FFLAGS=${FFLAGS+set}
5693ac_save_FFLAGS=$FFLAGS
5694FFLAGS=
5695echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5696echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5697if test "${ac_cv_prog_f77_g+set}" = set; then
5698  echo $ECHO_N "(cached) $ECHO_C" >&6
5699else
5700  FFLAGS=-g
5701cat >conftest.$ac_ext <<_ACEOF
5702      program main
5703
5704      end
5705_ACEOF
5706rm -f conftest.$ac_objext
5707if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5708  (eval $ac_compile) 2>conftest.er1
5709  ac_status=$?
5710  grep -v '^ *+' conftest.er1 >conftest.err
5711  rm -f conftest.er1
5712  cat conftest.err >&5
5713  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714  (exit $ac_status); } &&
5715         { ac_try='test -z "$ac_f77_werror_flag"
5716                         || test ! -s conftest.err'
5717  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5718  (eval $ac_try) 2>&5
5719  ac_status=$?
5720  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721  (exit $ac_status); }; } &&
5722         { ac_try='test -s conftest.$ac_objext'
5723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5724  (eval $ac_try) 2>&5
5725  ac_status=$?
5726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5727  (exit $ac_status); }; }; then
5728  ac_cv_prog_f77_g=yes
5729else
5730  echo "$as_me: failed program was:" >&5
5731sed 's/^/| /' conftest.$ac_ext >&5
5732
5733ac_cv_prog_f77_g=no
5734fi
5735rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5736
5737fi
5738echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5739echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5740if test "$ac_test_FFLAGS" = set; then
5741  FFLAGS=$ac_save_FFLAGS
5742elif test $ac_cv_prog_f77_g = yes; then
5743  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5744    FFLAGS="-g -O2"
5745  else
5746    FFLAGS="-g"
5747  fi
5748else
5749  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5750    FFLAGS="-O2"
5751  else
5752    FFLAGS=
5753  fi
5754fi
5755
5756G77=`test $ac_compiler_gnu = yes && echo yes`
5757ac_ext=c
5758ac_cpp='$CPP $CPPFLAGS'
5759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5761ac_compiler_gnu=$ac_cv_c_compiler_gnu
5762
5763
5764
5765# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5766
5767# find the maximum length of command line arguments
5768echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5769echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5770if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5771  echo $ECHO_N "(cached) $ECHO_C" >&6
5772else
5773    i=0
5774  teststring="ABCD"
5775
5776  case $build_os in
5777  msdosdjgpp*)
5778    # On DJGPP, this test can blow up pretty badly due to problems in libc
5779    # (any single argument exceeding 2000 bytes causes a buffer overrun
5780    # during glob expansion).  Even if it were fixed, the result of this
5781    # check would be larger than it should be.
5782    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5783    ;;
5784
5785  gnu*)
5786    # Under GNU Hurd, this test is not required because there is
5787    # no limit to the length of command line arguments.
5788    # Libtool will interpret -1 as no limit whatsoever
5789    lt_cv_sys_max_cmd_len=-1;
5790    ;;
5791
5792  cygwin* | mingw*)
5793    # On Win9x/ME, this test blows up -- it succeeds, but takes
5794    # about 5 minutes as the teststring grows exponentially.
5795    # Worse, since 9x/ME are not pre-emptively multitasking,
5796    # you end up with a "frozen" computer, even though with patience
5797    # the test eventually succeeds (with a max line length of 256k).
5798    # Instead, let's just punt: use the minimum linelength reported by
5799    # all of the supported platforms: 8192 (on NT/2K/XP).
5800    lt_cv_sys_max_cmd_len=8192;
5801    ;;
5802
5803  amigaos*)
5804    # On AmigaOS with pdksh, this test takes hours, literally.
5805    # So we just punt and use a minimum line length of 8192.
5806    lt_cv_sys_max_cmd_len=8192;
5807    ;;
5808
5809  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5810    # This has been around since 386BSD, at least.  Likely further.
5811    if test -x /sbin/sysctl; then
5812      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5813    elif test -x /usr/sbin/sysctl; then
5814      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5815    else
5816      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5817    fi
5818    # And add a safety zone
5819    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5820    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5821    ;;
5822
5823  interix*)
5824    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5825    lt_cv_sys_max_cmd_len=196608
5826    ;;
5827
5828  osf*)
5829    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5830    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5831    # nice to cause kernel panics so lets avoid the loop below.
5832    # First set a reasonable default.
5833    lt_cv_sys_max_cmd_len=16384
5834    #
5835    if test -x /sbin/sysconfig; then
5836      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5837        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5838      esac
5839    fi
5840    ;;
5841  sco3.2v5*)
5842    lt_cv_sys_max_cmd_len=102400
5843    ;;
5844  sysv5* | sco5v6* | sysv4.2uw2*)
5845    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5846    if test -n "$kargmax"; then
5847      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5848    else
5849      lt_cv_sys_max_cmd_len=32768
5850    fi
5851    ;;
5852  *)
5853    # If test is not a shell built-in, we'll probably end up computing a
5854    # maximum length that is only half of the actual maximum length, but
5855    # we can't tell.
5856    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5857    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5858               = "XX$teststring") >/dev/null 2>&1 &&
5859            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5860            lt_cv_sys_max_cmd_len=$new_result &&
5861            test $i != 17 # 1/2 MB should be enough
5862    do
5863      i=`expr $i + 1`
5864      teststring=$teststring$teststring
5865    done
5866    teststring=
5867    # Add a significant safety factor because C++ compilers can tack on massive
5868    # amounts of additional arguments before passing them to the linker.
5869    # It appears as though 1/2 is a usable value.
5870    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5871    ;;
5872  esac
5873
5874fi
5875
5876if test -n $lt_cv_sys_max_cmd_len ; then
5877  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5878echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5879else
5880  echo "$as_me:$LINENO: result: none" >&5
5881echo "${ECHO_T}none" >&6
5882fi
5883
5884
5885
5886
5887# Check for command to grab the raw symbol name followed by C symbol from nm.
5888echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5889echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5890if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5891  echo $ECHO_N "(cached) $ECHO_C" >&6
5892else
5893
5894# These are sane defaults that work on at least a few old systems.
5895# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5896
5897# Character class describing NM global symbol codes.
5898symcode='[BCDEGRST]'
5899
5900# Regexp to match symbols that can be accessed directly from C.
5901sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5902
5903# Transform an extracted symbol line into a proper C declaration
5904lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5905
5906# Transform an extracted symbol line into symbol name and symbol address
5907lt_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'"
5908
5909# Define system-specific variables.
5910case $host_os in
5911aix*)
5912  symcode='[BCDT]'
5913  ;;
5914cygwin* | mingw* | pw32*)
5915  symcode='[ABCDGISTW]'
5916  ;;
5917hpux*) # Its linker distinguishes data from code symbols
5918  if test "$host_cpu" = ia64; then
5919    symcode='[ABCDEGRST]'
5920  fi
5921  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5922  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'"
5923  ;;
5924linux*)
5925  if test "$host_cpu" = ia64; then
5926    symcode='[ABCDGIRSTW]'
5927    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5928    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'"
5929  fi
5930  ;;
5931irix* | nonstopux*)
5932  symcode='[BCDEGRST]'
5933  ;;
5934osf*)
5935  symcode='[BCDEGQRST]'
5936  ;;
5937solaris*)
5938  symcode='[BDRT]'
5939  ;;
5940sco3.2v5*)
5941  symcode='[DT]'
5942  ;;
5943sysv4.2uw2*)
5944  symcode='[DT]'
5945  ;;
5946sysv5* | sco5v6* | unixware* | OpenUNIX*)
5947  symcode='[ABDT]'
5948  ;;
5949sysv4)
5950  symcode='[DFNSTU]'
5951  ;;
5952esac
5953
5954# Handle CRLF in mingw tool chain
5955opt_cr=
5956case $build_os in
5957mingw*)
5958  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5959  ;;
5960esac
5961
5962# If we're using GNU nm, then use its standard symbol codes.
5963case `$NM -V 2>&1` in
5964*GNU* | *'with BFD'*)
5965  symcode='[ABCDGIRSTW]' ;;
5966esac
5967
5968# Try without a prefix undercore, then with it.
5969for ac_symprfx in "" "_"; do
5970
5971  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5972  symxfrm="\\1 $ac_symprfx\\2 \\2"
5973
5974  # Write the raw and C identifiers.
5975  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5976
5977  # Check to see that the pipe works correctly.
5978  pipe_works=no
5979
5980  rm -f conftest*
5981  cat > conftest.$ac_ext <<EOF
5982#ifdef __cplusplus
5983extern "C" {
5984#endif
5985char nm_test_var;
5986void nm_test_func(){}
5987#ifdef __cplusplus
5988}
5989#endif
5990int main(){nm_test_var='a';nm_test_func();return(0);}
5991EOF
5992
5993  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5994  (eval $ac_compile) 2>&5
5995  ac_status=$?
5996  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997  (exit $ac_status); }; then
5998    # Now try to grab the symbols.
5999    nlist=conftest.nm
6000    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6001  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6002  ac_status=$?
6003  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004  (exit $ac_status); } && test -s "$nlist"; then
6005      # Try sorting and uniquifying the output.
6006      if sort "$nlist" | uniq > "$nlist"T; then
6007        mv -f "$nlist"T "$nlist"
6008      else
6009        rm -f "$nlist"T
6010      fi
6011
6012      # Make sure that we snagged all the symbols we need.
6013      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6014        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6015          cat <<EOF > conftest.$ac_ext
6016#ifdef __cplusplus
6017extern "C" {
6018#endif
6019
6020EOF
6021          # Now generate the symbol file.
6022          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6023
6024          cat <<EOF >> conftest.$ac_ext
6025#if defined (__STDC__) && __STDC__
6026# define lt_ptr_t void *
6027#else
6028# define lt_ptr_t char *
6029# define const
6030#endif
6031
6032/* The mapping between symbol names and symbols. */
6033const struct {
6034  const char *name;
6035  lt_ptr_t address;
6036}
6037lt_preloaded_symbols[] =
6038{
6039EOF
6040          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6041          cat <<\EOF >> conftest.$ac_ext
6042  {0, (lt_ptr_t) 0}
6043};
6044
6045#ifdef __cplusplus
6046}
6047#endif
6048EOF
6049          # Now try linking the two files.
6050          mv conftest.$ac_objext conftstm.$ac_objext
6051          lt_save_LIBS="$LIBS"
6052          lt_save_CFLAGS="$CFLAGS"
6053          LIBS="conftstm.$ac_objext"
6054          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6055          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6056  (eval $ac_link) 2>&5
6057  ac_status=$?
6058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6060            pipe_works=yes
6061          fi
6062          LIBS="$lt_save_LIBS"
6063          CFLAGS="$lt_save_CFLAGS"
6064        else
6065          echo "cannot find nm_test_func in $nlist" >&5
6066        fi
6067      else
6068        echo "cannot find nm_test_var in $nlist" >&5
6069      fi
6070    else
6071      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6072    fi
6073  else
6074    echo "$progname: failed program was:" >&5
6075    cat conftest.$ac_ext >&5
6076  fi
6077  rm -f conftest* conftst*
6078
6079  # Do not use the global_symbol_pipe unless it works.
6080  if test "$pipe_works" = yes; then
6081    break
6082  else
6083    lt_cv_sys_global_symbol_pipe=
6084  fi
6085done
6086
6087fi
6088
6089if test -z "$lt_cv_sys_global_symbol_pipe"; then
6090  lt_cv_sys_global_symbol_to_cdecl=
6091fi
6092if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6093  echo "$as_me:$LINENO: result: failed" >&5
6094echo "${ECHO_T}failed" >&6
6095else
6096  echo "$as_me:$LINENO: result: ok" >&5
6097echo "${ECHO_T}ok" >&6
6098fi
6099
6100echo "$as_me:$LINENO: checking for objdir" >&5
6101echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6102if test "${lt_cv_objdir+set}" = set; then
6103  echo $ECHO_N "(cached) $ECHO_C" >&6
6104else
6105  rm -f .libs 2>/dev/null
6106mkdir .libs 2>/dev/null
6107if test -d .libs; then
6108  lt_cv_objdir=.libs
6109else
6110  # MS-DOS does not allow filenames that begin with a dot.
6111  lt_cv_objdir=_libs
6112fi
6113rmdir .libs 2>/dev/null
6114fi
6115echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6116echo "${ECHO_T}$lt_cv_objdir" >&6
6117objdir=$lt_cv_objdir
6118
6119
6120
6121
6122
6123case $host_os in
6124aix3*)
6125  # AIX sometimes has problems with the GCC collect2 program.  For some
6126  # reason, if we set the COLLECT_NAMES environment variable, the problems
6127  # vanish in a puff of smoke.
6128  if test "X${COLLECT_NAMES+set}" != Xset; then
6129    COLLECT_NAMES=
6130    export COLLECT_NAMES
6131  fi
6132  ;;
6133esac
6134
6135# Sed substitution that helps us do robust quoting.  It backslashifies
6136# metacharacters that are still active within double-quoted strings.
6137Xsed='sed -e 1s/^X//'
6138sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6139
6140# Same as above, but do not quote variable references.
6141double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6142
6143# Sed substitution to delay expansion of an escaped shell variable in a
6144# double_quote_subst'ed string.
6145delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6146
6147# Sed substitution to avoid accidental globbing in evaled expressions
6148no_glob_subst='s/\*/\\\*/g'
6149
6150# Constants:
6151rm="rm -f"
6152
6153# Global variables:
6154default_ofile=libtool
6155can_build_shared=yes
6156
6157# All known linkers require a `.a' archive for static linking (except MSVC,
6158# which needs '.lib').
6159libext=a
6160ltmain="$ac_aux_dir/ltmain.sh"
6161ofile="$default_ofile"
6162with_gnu_ld="$lt_cv_prog_gnu_ld"
6163
6164if test -n "$ac_tool_prefix"; then
6165  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6166set dummy ${ac_tool_prefix}ar; ac_word=$2
6167echo "$as_me:$LINENO: checking for $ac_word" >&5
6168echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6169if test "${ac_cv_prog_AR+set}" = set; then
6170  echo $ECHO_N "(cached) $ECHO_C" >&6
6171else
6172  if test -n "$AR"; then
6173  ac_cv_prog_AR="$AR" # Let the user override the test.
6174else
6175as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6176for as_dir in $PATH
6177do
6178  IFS=$as_save_IFS
6179  test -z "$as_dir" && as_dir=.
6180  for ac_exec_ext in '' $ac_executable_extensions; do
6181  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6182    ac_cv_prog_AR="${ac_tool_prefix}ar"
6183    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6184    break 2
6185  fi
6186done
6187done
6188
6189fi
6190fi
6191AR=$ac_cv_prog_AR
6192if test -n "$AR"; then
6193  echo "$as_me:$LINENO: result: $AR" >&5
6194echo "${ECHO_T}$AR" >&6
6195else
6196  echo "$as_me:$LINENO: result: no" >&5
6197echo "${ECHO_T}no" >&6
6198fi
6199
6200fi
6201if test -z "$ac_cv_prog_AR"; then
6202  ac_ct_AR=$AR
6203  # Extract the first word of "ar", so it can be a program name with args.
6204set dummy ar; ac_word=$2
6205echo "$as_me:$LINENO: checking for $ac_word" >&5
6206echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6207if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6208  echo $ECHO_N "(cached) $ECHO_C" >&6
6209else
6210  if test -n "$ac_ct_AR"; then
6211  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6212else
6213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214for as_dir in $PATH
6215do
6216  IFS=$as_save_IFS
6217  test -z "$as_dir" && as_dir=.
6218  for ac_exec_ext in '' $ac_executable_extensions; do
6219  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6220    ac_cv_prog_ac_ct_AR="ar"
6221    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6222    break 2
6223  fi
6224done
6225done
6226
6227  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6228fi
6229fi
6230ac_ct_AR=$ac_cv_prog_ac_ct_AR
6231if test -n "$ac_ct_AR"; then
6232  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6233echo "${ECHO_T}$ac_ct_AR" >&6
6234else
6235  echo "$as_me:$LINENO: result: no" >&5
6236echo "${ECHO_T}no" >&6
6237fi
6238
6239  AR=$ac_ct_AR
6240else
6241  AR="$ac_cv_prog_AR"
6242fi
6243
6244if test -n "$ac_tool_prefix"; then
6245  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6246set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6247echo "$as_me:$LINENO: checking for $ac_word" >&5
6248echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6249if test "${ac_cv_prog_RANLIB+set}" = set; then
6250  echo $ECHO_N "(cached) $ECHO_C" >&6
6251else
6252  if test -n "$RANLIB"; then
6253  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6254else
6255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256for as_dir in $PATH
6257do
6258  IFS=$as_save_IFS
6259  test -z "$as_dir" && as_dir=.
6260  for ac_exec_ext in '' $ac_executable_extensions; do
6261  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6262    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6263    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6264    break 2
6265  fi
6266done
6267done
6268
6269fi
6270fi
6271RANLIB=$ac_cv_prog_RANLIB
6272if test -n "$RANLIB"; then
6273  echo "$as_me:$LINENO: result: $RANLIB" >&5
6274echo "${ECHO_T}$RANLIB" >&6
6275else
6276  echo "$as_me:$LINENO: result: no" >&5
6277echo "${ECHO_T}no" >&6
6278fi
6279
6280fi
6281if test -z "$ac_cv_prog_RANLIB"; then
6282  ac_ct_RANLIB=$RANLIB
6283  # Extract the first word of "ranlib", so it can be a program name with args.
6284set dummy ranlib; ac_word=$2
6285echo "$as_me:$LINENO: checking for $ac_word" >&5
6286echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6287if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6288  echo $ECHO_N "(cached) $ECHO_C" >&6
6289else
6290  if test -n "$ac_ct_RANLIB"; then
6291  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6292else
6293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6294for as_dir in $PATH
6295do
6296  IFS=$as_save_IFS
6297  test -z "$as_dir" && as_dir=.
6298  for ac_exec_ext in '' $ac_executable_extensions; do
6299  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6300    ac_cv_prog_ac_ct_RANLIB="ranlib"
6301    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6302    break 2
6303  fi
6304done
6305done
6306
6307  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6308fi
6309fi
6310ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6311if test -n "$ac_ct_RANLIB"; then
6312  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6313echo "${ECHO_T}$ac_ct_RANLIB" >&6
6314else
6315  echo "$as_me:$LINENO: result: no" >&5
6316echo "${ECHO_T}no" >&6
6317fi
6318
6319  RANLIB=$ac_ct_RANLIB
6320else
6321  RANLIB="$ac_cv_prog_RANLIB"
6322fi
6323
6324if test -n "$ac_tool_prefix"; then
6325  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6326set dummy ${ac_tool_prefix}strip; ac_word=$2
6327echo "$as_me:$LINENO: checking for $ac_word" >&5
6328echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6329if test "${ac_cv_prog_STRIP+set}" = set; then
6330  echo $ECHO_N "(cached) $ECHO_C" >&6
6331else
6332  if test -n "$STRIP"; then
6333  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6334else
6335as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336for as_dir in $PATH
6337do
6338  IFS=$as_save_IFS
6339  test -z "$as_dir" && as_dir=.
6340  for ac_exec_ext in '' $ac_executable_extensions; do
6341  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6342    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6343    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6344    break 2
6345  fi
6346done
6347done
6348
6349fi
6350fi
6351STRIP=$ac_cv_prog_STRIP
6352if test -n "$STRIP"; then
6353  echo "$as_me:$LINENO: result: $STRIP" >&5
6354echo "${ECHO_T}$STRIP" >&6
6355else
6356  echo "$as_me:$LINENO: result: no" >&5
6357echo "${ECHO_T}no" >&6
6358fi
6359
6360fi
6361if test -z "$ac_cv_prog_STRIP"; then
6362  ac_ct_STRIP=$STRIP
6363  # Extract the first word of "strip", so it can be a program name with args.
6364set dummy strip; ac_word=$2
6365echo "$as_me:$LINENO: checking for $ac_word" >&5
6366echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6367if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6368  echo $ECHO_N "(cached) $ECHO_C" >&6
6369else
6370  if test -n "$ac_ct_STRIP"; then
6371  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6372else
6373as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6374for as_dir in $PATH
6375do
6376  IFS=$as_save_IFS
6377  test -z "$as_dir" && as_dir=.
6378  for ac_exec_ext in '' $ac_executable_extensions; do
6379  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6380    ac_cv_prog_ac_ct_STRIP="strip"
6381    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6382    break 2
6383  fi
6384done
6385done
6386
6387  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6388fi
6389fi
6390ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6391if test -n "$ac_ct_STRIP"; then
6392  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6393echo "${ECHO_T}$ac_ct_STRIP" >&6
6394else
6395  echo "$as_me:$LINENO: result: no" >&5
6396echo "${ECHO_T}no" >&6
6397fi
6398
6399  STRIP=$ac_ct_STRIP
6400else
6401  STRIP="$ac_cv_prog_STRIP"
6402fi
6403
6404
6405old_CC="$CC"
6406old_CFLAGS="$CFLAGS"
6407
6408# Set sane defaults for various variables
6409test -z "$AR" && AR=ar
6410test -z "$AR_FLAGS" && AR_FLAGS=cru
6411test -z "$AS" && AS=as
6412test -z "$CC" && CC=cc
6413test -z "$LTCC" && LTCC=$CC
6414test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6415test -z "$DLLTOOL" && DLLTOOL=dlltool
6416test -z "$LD" && LD=ld
6417test -z "$LN_S" && LN_S="ln -s"
6418test -z "$MAGIC_CMD" && MAGIC_CMD=file
6419test -z "$NM" && NM=nm
6420test -z "$SED" && SED=sed
6421test -z "$OBJDUMP" && OBJDUMP=objdump
6422test -z "$RANLIB" && RANLIB=:
6423test -z "$STRIP" && STRIP=:
6424test -z "$ac_objext" && ac_objext=o
6425
6426# Determine commands to create old-style static archives.
6427old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6428old_postinstall_cmds='chmod 644 $oldlib'
6429old_postuninstall_cmds=
6430
6431if test -n "$RANLIB"; then
6432  case $host_os in
6433  openbsd*)
6434    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6435    ;;
6436  *)
6437    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6438    ;;
6439  esac
6440  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6441fi
6442
6443for cc_temp in $compiler""; do
6444  case $cc_temp in
6445    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6446    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6447    \-*) ;;
6448    *) break;;
6449  esac
6450done
6451cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6452
6453
6454# Only perform the check for file, if the check method requires it
6455case $deplibs_check_method in
6456file_magic*)
6457  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6458    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6459echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6460if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6461  echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463  case $MAGIC_CMD in
6464[\\/*] |  ?:[\\/]*)
6465  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6466  ;;
6467*)
6468  lt_save_MAGIC_CMD="$MAGIC_CMD"
6469  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6470  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6471  for ac_dir in $ac_dummy; do
6472    IFS="$lt_save_ifs"
6473    test -z "$ac_dir" && ac_dir=.
6474    if test -f $ac_dir/${ac_tool_prefix}file; then
6475      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6476      if test -n "$file_magic_test_file"; then
6477        case $deplibs_check_method in
6478        "file_magic "*)
6479          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6480          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6481          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6482            $EGREP "$file_magic_regex" > /dev/null; then
6483            :
6484          else
6485            cat <<EOF 1>&2
6486
6487*** Warning: the command libtool uses to detect shared libraries,
6488*** $file_magic_cmd, produces output that libtool cannot recognize.
6489*** The result is that libtool may fail to recognize shared libraries
6490*** as such.  This will affect the creation of libtool libraries that
6491*** depend on shared libraries, but programs linked with such libtool
6492*** libraries will work regardless of this problem.  Nevertheless, you
6493*** may want to report the problem to your system manager and/or to
6494*** bug-libtool@gnu.org
6495
6496EOF
6497          fi ;;
6498        esac
6499      fi
6500      break
6501    fi
6502  done
6503  IFS="$lt_save_ifs"
6504  MAGIC_CMD="$lt_save_MAGIC_CMD"
6505  ;;
6506esac
6507fi
6508
6509MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6510if test -n "$MAGIC_CMD"; then
6511  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6512echo "${ECHO_T}$MAGIC_CMD" >&6
6513else
6514  echo "$as_me:$LINENO: result: no" >&5
6515echo "${ECHO_T}no" >&6
6516fi
6517
6518if test -z "$lt_cv_path_MAGIC_CMD"; then
6519  if test -n "$ac_tool_prefix"; then
6520    echo "$as_me:$LINENO: checking for file" >&5
6521echo $ECHO_N "checking for file... $ECHO_C" >&6
6522if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6523  echo $ECHO_N "(cached) $ECHO_C" >&6
6524else
6525  case $MAGIC_CMD in
6526[\\/*] |  ?:[\\/]*)
6527  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6528  ;;
6529*)
6530  lt_save_MAGIC_CMD="$MAGIC_CMD"
6531  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6532  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6533  for ac_dir in $ac_dummy; do
6534    IFS="$lt_save_ifs"
6535    test -z "$ac_dir" && ac_dir=.
6536    if test -f $ac_dir/file; then
6537      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6538      if test -n "$file_magic_test_file"; then
6539        case $deplibs_check_method in
6540        "file_magic "*)
6541          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6542          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6543          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6544            $EGREP "$file_magic_regex" > /dev/null; then
6545            :
6546          else
6547            cat <<EOF 1>&2
6548
6549*** Warning: the command libtool uses to detect shared libraries,
6550*** $file_magic_cmd, produces output that libtool cannot recognize.
6551*** The result is that libtool may fail to recognize shared libraries
6552*** as such.  This will affect the creation of libtool libraries that
6553*** depend on shared libraries, but programs linked with such libtool
6554*** libraries will work regardless of this problem.  Nevertheless, you
6555*** may want to report the problem to your system manager and/or to
6556*** bug-libtool@gnu.org
6557
6558EOF
6559          fi ;;
6560        esac
6561      fi
6562      break
6563    fi
6564  done
6565  IFS="$lt_save_ifs"
6566  MAGIC_CMD="$lt_save_MAGIC_CMD"
6567  ;;
6568esac
6569fi
6570
6571MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6572if test -n "$MAGIC_CMD"; then
6573  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6574echo "${ECHO_T}$MAGIC_CMD" >&6
6575else
6576  echo "$as_me:$LINENO: result: no" >&5
6577echo "${ECHO_T}no" >&6
6578fi
6579
6580  else
6581    MAGIC_CMD=:
6582  fi
6583fi
6584
6585  fi
6586  ;;
6587esac
6588
6589enable_dlopen=no
6590enable_win32_dll=no
6591
6592# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6593if test "${enable_libtool_lock+set}" = set; then
6594  enableval="$enable_libtool_lock"
6595
6596fi;
6597test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6598
6599
6600# Check whether --with-pic or --without-pic was given.
6601if test "${with_pic+set}" = set; then
6602  withval="$with_pic"
6603  pic_mode="$withval"
6604else
6605  pic_mode=default
6606fi;
6607test -z "$pic_mode" && pic_mode=default
6608
6609# Use C for the default configuration in the libtool script
6610tagname=
6611lt_save_CC="$CC"
6612ac_ext=c
6613ac_cpp='$CPP $CPPFLAGS'
6614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6616ac_compiler_gnu=$ac_cv_c_compiler_gnu
6617
6618
6619# Source file extension for C test sources.
6620ac_ext=c
6621
6622# Object file extension for compiled C test sources.
6623objext=o
6624objext=$objext
6625
6626# Code to be used in simple compile tests
6627lt_simple_compile_test_code="int some_variable = 0;\n"
6628
6629# Code to be used in simple link tests
6630lt_simple_link_test_code='int main(){return(0);}\n'
6631
6632
6633# If no C compiler was specified, use CC.
6634LTCC=${LTCC-"$CC"}
6635
6636# If no C compiler flags were specified, use CFLAGS.
6637LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6638
6639# Allow CC to be a program name with arguments.
6640compiler=$CC
6641
6642
6643# save warnings/boilerplate of simple test code
6644ac_outfile=conftest.$ac_objext
6645printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6646eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6647_lt_compiler_boilerplate=`cat conftest.err`
6648$rm conftest*
6649
6650ac_outfile=conftest.$ac_objext
6651printf "$lt_simple_link_test_code" >conftest.$ac_ext
6652eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6653_lt_linker_boilerplate=`cat conftest.err`
6654$rm conftest*
6655
6656
6657## CAVEAT EMPTOR:
6658## There is no encapsulation within the following macros, do not change
6659## the running order or otherwise move them around unless you know exactly
6660## what you are doing...
6661
6662lt_prog_compiler_no_builtin_flag=
6663
6664if test "$GCC" = yes; then
6665  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6666
6667
6668echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6669echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6670if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6671  echo $ECHO_N "(cached) $ECHO_C" >&6
6672else
6673  lt_cv_prog_compiler_rtti_exceptions=no
6674  ac_outfile=conftest.$ac_objext
6675   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6676   lt_compiler_flag="-fno-rtti -fno-exceptions"
6677   # Insert the option either (1) after the last *FLAGS variable, or
6678   # (2) before a word containing "conftest.", or (3) at the end.
6679   # Note that $ac_compile itself does not contain backslashes and begins
6680   # with a dollar sign (not a hyphen), so the echo should work correctly.
6681   # The option is referenced via a variable to avoid confusing sed.
6682   lt_compile=`echo "$ac_compile" | $SED \
6683   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6684   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6685   -e 's:$: $lt_compiler_flag:'`
6686   (eval echo "\"\$as_me:6686: $lt_compile\"" >&5)
6687   (eval "$lt_compile" 2>conftest.err)
6688   ac_status=$?
6689   cat conftest.err >&5
6690   echo "$as_me:6690: \$? = $ac_status" >&5
6691   if (exit $ac_status) && test -s "$ac_outfile"; then
6692     # The compiler can only warn and ignore the option if not recognized
6693     # So say no if there are warnings other than the usual output.
6694     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6695     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6696     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6697       lt_cv_prog_compiler_rtti_exceptions=yes
6698     fi
6699   fi
6700   $rm conftest*
6701
6702fi
6703echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6704echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6705
6706if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6707    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6708else
6709    :
6710fi
6711
6712fi
6713
6714lt_prog_compiler_wl=
6715lt_prog_compiler_pic=
6716lt_prog_compiler_static=
6717
6718echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6719echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6720
6721  if test "$GCC" = yes; then
6722    lt_prog_compiler_wl='-Wl,'
6723    lt_prog_compiler_static='-static'
6724
6725    case $host_os in
6726      aix*)
6727      # All AIX code is PIC.
6728      if test "$host_cpu" = ia64; then
6729        # AIX 5 now supports IA64 processor
6730        lt_prog_compiler_static='-Bstatic'
6731      fi
6732      ;;
6733
6734    amigaos*)
6735      # FIXME: we need at least 68020 code to build shared libraries, but
6736      # adding the `-m68020' flag to GCC prevents building anything better,
6737      # like `-m68040'.
6738      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6739      ;;
6740
6741    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6742      # PIC is the default for these OSes.
6743      ;;
6744
6745    mingw* | pw32* | os2*)
6746      # This hack is so that the source file can tell whether it is being
6747      # built for inclusion in a dll (and should export symbols for example).
6748      lt_prog_compiler_pic='-DDLL_EXPORT'
6749      ;;
6750
6751    darwin* | rhapsody*)
6752      # PIC is the default on this platform
6753      # Common symbols not allowed in MH_DYLIB files
6754      lt_prog_compiler_pic='-fno-common'
6755      ;;
6756
6757    interix3*)
6758      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6759      # Instead, we relocate shared libraries at runtime.
6760      ;;
6761
6762    msdosdjgpp*)
6763      # Just because we use GCC doesn't mean we suddenly get shared libraries
6764      # on systems that don't support them.
6765      lt_prog_compiler_can_build_shared=no
6766      enable_shared=no
6767      ;;
6768
6769    sysv4*MP*)
6770      if test -d /usr/nec; then
6771        lt_prog_compiler_pic=-Kconform_pic
6772      fi
6773      ;;
6774
6775    hpux*)
6776      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6777      # not for PA HP-UX.
6778      case $host_cpu in
6779      hppa*64*|ia64*)
6780        # +Z the default
6781        ;;
6782      *)
6783        lt_prog_compiler_pic='-fPIC'
6784        ;;
6785      esac
6786      ;;
6787
6788    *)
6789      lt_prog_compiler_pic='-fPIC'
6790      ;;
6791    esac
6792  else
6793    # PORTME Check for flag to pass linker flags through the system compiler.
6794    case $host_os in
6795    aix*)
6796      lt_prog_compiler_wl='-Wl,'
6797      if test "$host_cpu" = ia64; then
6798        # AIX 5 now supports IA64 processor
6799        lt_prog_compiler_static='-Bstatic'
6800      else
6801        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6802      fi
6803      ;;
6804      darwin*)
6805        # PIC is the default on this platform
6806        # Common symbols not allowed in MH_DYLIB files
6807       case $cc_basename in
6808         xlc*)
6809         lt_prog_compiler_pic='-qnocommon'
6810         lt_prog_compiler_wl='-Wl,'
6811         ;;
6812       esac
6813       ;;
6814
6815    mingw* | pw32* | os2*)
6816      # This hack is so that the source file can tell whether it is being
6817      # built for inclusion in a dll (and should export symbols for example).
6818      lt_prog_compiler_pic='-DDLL_EXPORT'
6819      ;;
6820
6821    hpux9* | hpux10* | hpux11*)
6822      lt_prog_compiler_wl='-Wl,'
6823      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6824      # not for PA HP-UX.
6825      case $host_cpu in
6826      hppa*64*|ia64*)
6827        # +Z the default
6828        ;;
6829      *)
6830        lt_prog_compiler_pic='+Z'
6831        ;;
6832      esac
6833      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6834      lt_prog_compiler_static='${wl}-a ${wl}archive'
6835      ;;
6836
6837    irix5* | irix6* | nonstopux*)
6838      lt_prog_compiler_wl='-Wl,'
6839      # PIC (with -KPIC) is the default.
6840      lt_prog_compiler_static='-non_shared'
6841      ;;
6842
6843    newsos6)
6844      lt_prog_compiler_pic='-KPIC'
6845      lt_prog_compiler_static='-Bstatic'
6846      ;;
6847
6848    linux*)
6849      case $cc_basename in
6850      icc* | ecc*)
6851        lt_prog_compiler_wl='-Wl,'
6852        lt_prog_compiler_pic='-KPIC'
6853        lt_prog_compiler_static='-static'
6854        ;;
6855      pgcc* | pgf77* | pgf90* | pgf95*)
6856        # Portland Group compilers (*not* the Pentium gcc compiler,
6857        # which looks to be a dead project)
6858        lt_prog_compiler_wl='-Wl,'
6859        lt_prog_compiler_pic='-fpic'
6860        lt_prog_compiler_static='-Bstatic'
6861        ;;
6862      ccc*)
6863        lt_prog_compiler_wl='-Wl,'
6864        # All Alpha code is PIC.
6865        lt_prog_compiler_static='-non_shared'
6866        ;;
6867      esac
6868      ;;
6869
6870    osf3* | osf4* | osf5*)
6871      lt_prog_compiler_wl='-Wl,'
6872      # All OSF/1 code is PIC.
6873      lt_prog_compiler_static='-non_shared'
6874      ;;
6875
6876    solaris*)
6877      lt_prog_compiler_pic='-KPIC'
6878      lt_prog_compiler_static='-Bstatic'
6879      case $cc_basename in
6880      f77* | f90* | f95*)
6881        lt_prog_compiler_wl='-Qoption ld ';;
6882      *)
6883        lt_prog_compiler_wl='-Wl,';;
6884      esac
6885      ;;
6886
6887    sunos4*)
6888      lt_prog_compiler_wl='-Qoption ld '
6889      lt_prog_compiler_pic='-PIC'
6890      lt_prog_compiler_static='-Bstatic'
6891      ;;
6892
6893    sysv4 | sysv4.2uw2* | sysv4.3*)
6894      lt_prog_compiler_wl='-Wl,'
6895      lt_prog_compiler_pic='-KPIC'
6896      lt_prog_compiler_static='-Bstatic'
6897      ;;
6898
6899    sysv4*MP*)
6900      if test -d /usr/nec ;then
6901        lt_prog_compiler_pic='-Kconform_pic'
6902        lt_prog_compiler_static='-Bstatic'
6903      fi
6904      ;;
6905
6906    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6907      lt_prog_compiler_wl='-Wl,'
6908      lt_prog_compiler_pic='-KPIC'
6909      lt_prog_compiler_static='-Bstatic'
6910      ;;
6911
6912    unicos*)
6913      lt_prog_compiler_wl='-Wl,'
6914      lt_prog_compiler_can_build_shared=no
6915      ;;
6916
6917    uts4*)
6918      lt_prog_compiler_pic='-pic'
6919      lt_prog_compiler_static='-Bstatic'
6920      ;;
6921
6922    *)
6923      lt_prog_compiler_can_build_shared=no
6924      ;;
6925    esac
6926  fi
6927
6928echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
6929echo "${ECHO_T}$lt_prog_compiler_pic" >&6
6930
6931#
6932# Check to make sure the PIC flag actually works.
6933#
6934if test -n "$lt_prog_compiler_pic"; then
6935
6936echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
6937echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
6938if test "${lt_prog_compiler_pic_works+set}" = set; then
6939  echo $ECHO_N "(cached) $ECHO_C" >&6
6940else
6941  lt_prog_compiler_pic_works=no
6942  ac_outfile=conftest.$ac_objext
6943   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6944   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
6945   # Insert the option either (1) after the last *FLAGS variable, or
6946   # (2) before a word containing "conftest.", or (3) at the end.
6947   # Note that $ac_compile itself does not contain backslashes and begins
6948   # with a dollar sign (not a hyphen), so the echo should work correctly.
6949   # The option is referenced via a variable to avoid confusing sed.
6950   lt_compile=`echo "$ac_compile" | $SED \
6951   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6952   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6953   -e 's:$: $lt_compiler_flag:'`
6954   (eval echo "\"\$as_me:6954: $lt_compile\"" >&5)
6955   (eval "$lt_compile" 2>conftest.err)
6956   ac_status=$?
6957   cat conftest.err >&5
6958   echo "$as_me:6958: \$? = $ac_status" >&5
6959   if (exit $ac_status) && test -s "$ac_outfile"; then
6960     # The compiler can only warn and ignore the option if not recognized
6961     # So say no if there are warnings other than the usual output.
6962     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6963     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6964     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6965       lt_prog_compiler_pic_works=yes
6966     fi
6967   fi
6968   $rm conftest*
6969
6970fi
6971echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
6972echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
6973
6974if test x"$lt_prog_compiler_pic_works" = xyes; then
6975    case $lt_prog_compiler_pic in
6976     "" | " "*) ;;
6977     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
6978     esac
6979else
6980    lt_prog_compiler_pic=
6981     lt_prog_compiler_can_build_shared=no
6982fi
6983
6984fi
6985case $host_os in
6986  # For platforms which do not support PIC, -DPIC is meaningless:
6987  *djgpp*)
6988    lt_prog_compiler_pic=
6989    ;;
6990  *)
6991    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
6992    ;;
6993esac
6994
6995#
6996# Check to make sure the static flag actually works.
6997#
6998wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
6999echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7000echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7001if test "${lt_prog_compiler_static_works+set}" = set; then
7002  echo $ECHO_N "(cached) $ECHO_C" >&6
7003else
7004  lt_prog_compiler_static_works=no
7005   save_LDFLAGS="$LDFLAGS"
7006   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7007   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7008   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7009     # The linker can only warn and ignore the option if not recognized
7010     # So say no if there are warnings
7011     if test -s conftest.err; then
7012       # Append any errors to the config.log.
7013       cat conftest.err 1>&5
7014       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7015       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7016       if diff conftest.exp conftest.er2 >/dev/null; then
7017         lt_prog_compiler_static_works=yes
7018       fi
7019     else
7020       lt_prog_compiler_static_works=yes
7021     fi
7022   fi
7023   $rm conftest*
7024   LDFLAGS="$save_LDFLAGS"
7025
7026fi
7027echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7028echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7029
7030if test x"$lt_prog_compiler_static_works" = xyes; then
7031    :
7032else
7033    lt_prog_compiler_static=
7034fi
7035
7036
7037echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7038echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7039if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7040  echo $ECHO_N "(cached) $ECHO_C" >&6
7041else
7042  lt_cv_prog_compiler_c_o=no
7043   $rm -r conftest 2>/dev/null
7044   mkdir conftest
7045   cd conftest
7046   mkdir out
7047   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7048
7049   lt_compiler_flag="-o out/conftest2.$ac_objext"
7050   # Insert the option either (1) after the last *FLAGS variable, or
7051   # (2) before a word containing "conftest.", or (3) at the end.
7052   # Note that $ac_compile itself does not contain backslashes and begins
7053   # with a dollar sign (not a hyphen), so the echo should work correctly.
7054   lt_compile=`echo "$ac_compile" | $SED \
7055   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7056   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7057   -e 's:$: $lt_compiler_flag:'`
7058   (eval echo "\"\$as_me:7058: $lt_compile\"" >&5)
7059   (eval "$lt_compile" 2>out/conftest.err)
7060   ac_status=$?
7061   cat out/conftest.err >&5
7062   echo "$as_me:7062: \$? = $ac_status" >&5
7063   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7064   then
7065     # The compiler can only warn and ignore the option if not recognized
7066     # So say no if there are warnings
7067     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7068     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7069     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7070       lt_cv_prog_compiler_c_o=yes
7071     fi
7072   fi
7073   chmod u+w . 2>&5
7074   $rm conftest*
7075   # SGI C++ compiler will create directory out/ii_files/ for
7076   # template instantiation
7077   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7078   $rm out/* && rmdir out
7079   cd ..
7080   rmdir conftest
7081   $rm conftest*
7082
7083fi
7084echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7085echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7086
7087
7088hard_links="nottested"
7089if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7090  # do not overwrite the value of need_locks provided by the user
7091  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7092echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7093  hard_links=yes
7094  $rm conftest*
7095  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7096  touch conftest.a
7097  ln conftest.a conftest.b 2>&5 || hard_links=no
7098  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7099  echo "$as_me:$LINENO: result: $hard_links" >&5
7100echo "${ECHO_T}$hard_links" >&6
7101  if test "$hard_links" = no; then
7102    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7103echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7104    need_locks=warn
7105  fi
7106else
7107  need_locks=no
7108fi
7109
7110echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7111echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7112
7113  runpath_var=
7114  allow_undefined_flag=
7115  enable_shared_with_static_runtimes=no
7116  archive_cmds=
7117  archive_expsym_cmds=
7118  old_archive_From_new_cmds=
7119  old_archive_from_expsyms_cmds=
7120  export_dynamic_flag_spec=
7121  whole_archive_flag_spec=
7122  thread_safe_flag_spec=
7123  hardcode_libdir_flag_spec=
7124  hardcode_libdir_flag_spec_ld=
7125  hardcode_libdir_separator=
7126  hardcode_direct=no
7127  hardcode_minus_L=no
7128  hardcode_shlibpath_var=unsupported
7129  link_all_deplibs=unknown
7130  hardcode_automatic=no
7131  module_cmds=
7132  module_expsym_cmds=
7133  always_export_symbols=no
7134  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7135  # include_expsyms should be a list of space-separated symbols to be *always*
7136  # included in the symbol list
7137  include_expsyms=
7138  # exclude_expsyms can be an extended regexp of symbols to exclude
7139  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7140  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7141  # as well as any symbol that contains `d'.
7142  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7143  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7144  # platforms (ab)use it in PIC code, but their linkers get confused if
7145  # the symbol is explicitly referenced.  Since portable code cannot
7146  # rely on this symbol name, it's probably fine to never include it in
7147  # preloaded symbol tables.
7148  extract_expsyms_cmds=
7149  # Just being paranoid about ensuring that cc_basename is set.
7150  for cc_temp in $compiler""; do
7151  case $cc_temp in
7152    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7153    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7154    \-*) ;;
7155    *) break;;
7156  esac
7157done
7158cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7159
7160  case $host_os in
7161  cygwin* | mingw* | pw32*)
7162    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7163    # When not using gcc, we currently assume that we are using
7164    # Microsoft Visual C++.
7165    if test "$GCC" != yes; then
7166      with_gnu_ld=no
7167    fi
7168    ;;
7169  interix*)
7170    # we just hope/assume this is gcc and not c89 (= MSVC++)
7171    with_gnu_ld=yes
7172    ;;
7173  openbsd*)
7174    with_gnu_ld=no
7175    ;;
7176  esac
7177
7178  ld_shlibs=yes
7179  if test "$with_gnu_ld" = yes; then
7180    # If archive_cmds runs LD, not CC, wlarc should be empty
7181    wlarc='${wl}'
7182
7183    # Set some defaults for GNU ld with shared library support. These
7184    # are reset later if shared libraries are not supported. Putting them
7185    # here allows them to be overridden if necessary.
7186    runpath_var=LD_RUN_PATH
7187    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7188    export_dynamic_flag_spec='${wl}--export-dynamic'
7189    # ancient GNU ld didn't support --whole-archive et. al.
7190    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7191        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7192      else
7193        whole_archive_flag_spec=
7194    fi
7195    supports_anon_versioning=no
7196    case `$LD -v 2>/dev/null` in
7197      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7198      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7199      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7200      *\ 2.11.*) ;; # other 2.11 versions
7201      *) supports_anon_versioning=yes ;;
7202    esac
7203
7204    # See if GNU ld supports shared libraries.
7205    case $host_os in
7206    aix3* | aix4* | aix5*)
7207      # On AIX/PPC, the GNU linker is very broken
7208      if test "$host_cpu" != ia64; then
7209        ld_shlibs=no
7210        cat <<EOF 1>&2
7211
7212*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7213*** to be unable to reliably create shared libraries on AIX.
7214*** Therefore, libtool is disabling shared libraries support.  If you
7215*** really care for shared libraries, you may want to modify your PATH
7216*** so that a non-GNU linker is found, and then restart.
7217
7218EOF
7219      fi
7220      ;;
7221
7222    amigaos*)
7223      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)'
7224      hardcode_libdir_flag_spec='-L$libdir'
7225      hardcode_minus_L=yes
7226
7227      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7228      # that the semantics of dynamic libraries on AmigaOS, at least up
7229      # to version 4, is to share data among multiple programs linked
7230      # with the same dynamic library.  Since this doesn't match the
7231      # behavior of shared libraries on other platforms, we can't use
7232      # them.
7233      ld_shlibs=no
7234      ;;
7235
7236    beos*)
7237      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7238        allow_undefined_flag=unsupported
7239        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7240        # support --undefined.  This deserves some investigation.  FIXME
7241        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7242      else
7243        ld_shlibs=no
7244      fi
7245      ;;
7246
7247    cygwin* | mingw* | pw32*)
7248      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7249      # as there is no search path for DLLs.
7250      hardcode_libdir_flag_spec='-L$libdir'
7251      allow_undefined_flag=unsupported
7252      always_export_symbols=no
7253      enable_shared_with_static_runtimes=yes
7254      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7255
7256      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7257        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7258        # If the export-symbols file already is a .def file (1st line
7259        # is EXPORTS), use it as is; otherwise, prepend...
7260        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7261          cp $export_symbols $output_objdir/$soname.def;
7262        else
7263          echo EXPORTS > $output_objdir/$soname.def;
7264          cat $export_symbols >> $output_objdir/$soname.def;
7265        fi~
7266        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7267      else
7268        ld_shlibs=no
7269      fi
7270      ;;
7271
7272    interix3*)
7273      hardcode_direct=no
7274      hardcode_shlibpath_var=no
7275      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7276      export_dynamic_flag_spec='${wl}-E'
7277      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7278      # Instead, shared libraries are loaded at an image base (0x10000000 by
7279      # default) and relocated if they conflict, which is a slow very memory
7280      # consuming and fragmenting process.  To avoid this, we pick a random,
7281      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7282      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7283      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7284      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'
7285      ;;
7286
7287    linux*)
7288      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7289        tmp_addflag=
7290        case $cc_basename,$host_cpu in
7291        pgcc*)                          # Portland Group C compiler
7292          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'
7293          tmp_addflag=' $pic_flag'
7294          ;;
7295        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7296          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'
7297          tmp_addflag=' $pic_flag -Mnomain' ;;
7298        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7299          tmp_addflag=' -i_dynamic' ;;
7300        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7301          tmp_addflag=' -i_dynamic -nofor_main' ;;
7302        ifc* | ifort*)                  # Intel Fortran compiler
7303          tmp_addflag=' -nofor_main' ;;
7304        esac
7305        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7306
7307        if test $supports_anon_versioning = yes; then
7308          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7309  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7310  $echo "local: *; };" >> $output_objdir/$libname.ver~
7311          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7312        fi
7313      else
7314        ld_shlibs=no
7315      fi
7316      ;;
7317
7318    netbsd*)
7319      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7320        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7321        wlarc=
7322      else
7323        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7324        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7325      fi
7326      ;;
7327
7328    solaris*)
7329      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7330        ld_shlibs=no
7331        cat <<EOF 1>&2
7332
7333*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7334*** create shared libraries on Solaris systems.  Therefore, libtool
7335*** is disabling shared libraries support.  We urge you to upgrade GNU
7336*** binutils to release 2.9.1 or newer.  Another option is to modify
7337*** your PATH or compiler configuration so that the native linker is
7338*** used, and then restart.
7339
7340EOF
7341      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7342        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7343        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7344      else
7345        ld_shlibs=no
7346      fi
7347      ;;
7348
7349    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7350      case `$LD -v 2>&1` in
7351        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7352        ld_shlibs=no
7353        cat <<_LT_EOF 1>&2
7354
7355*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7356*** reliably create shared libraries on SCO systems.  Therefore, libtool
7357*** is disabling shared libraries support.  We urge you to upgrade GNU
7358*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7359*** your PATH or compiler configuration so that the native linker is
7360*** used, and then restart.
7361
7362_LT_EOF
7363        ;;
7364        *)
7365          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7366            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7367            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7368            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7369          else
7370            ld_shlibs=no
7371          fi
7372        ;;
7373      esac
7374      ;;
7375
7376    sunos4*)
7377      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7378      wlarc=
7379      hardcode_direct=yes
7380      hardcode_shlibpath_var=no
7381      ;;
7382
7383    *)
7384      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7385        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7386        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7387      else
7388        ld_shlibs=no
7389      fi
7390      ;;
7391    esac
7392
7393    if test "$ld_shlibs" = no; then
7394      runpath_var=
7395      hardcode_libdir_flag_spec=
7396      export_dynamic_flag_spec=
7397      whole_archive_flag_spec=
7398    fi
7399  else
7400    # PORTME fill in a description of your system's linker (not GNU ld)
7401    case $host_os in
7402    aix3*)
7403      allow_undefined_flag=unsupported
7404      always_export_symbols=yes
7405      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'
7406      # Note: this linker hardcodes the directories in LIBPATH if there
7407      # are no directories specified by -L.
7408      hardcode_minus_L=yes
7409      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7410        # Neither direct hardcoding nor static linking is supported with a
7411        # broken collect2.
7412        hardcode_direct=unsupported
7413      fi
7414      ;;
7415
7416    aix4* | aix5*)
7417      if test "$host_cpu" = ia64; then
7418        # On IA64, the linker does run time linking by default, so we don't
7419        # have to do anything special.
7420        aix_use_runtimelinking=no
7421        exp_sym_flag='-Bexport'
7422        no_entry_flag=""
7423      else
7424        # If we're using GNU nm, then we don't want the "-C" option.
7425        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7426        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7427          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'
7428        else
7429          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'
7430        fi
7431        aix_use_runtimelinking=no
7432
7433        # Test if we are trying to use run time linking or normal
7434        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7435        # need to do runtime linking.
7436        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7437          for ld_flag in $LDFLAGS; do
7438          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7439            aix_use_runtimelinking=yes
7440            break
7441          fi
7442          done
7443          ;;
7444        esac
7445
7446        exp_sym_flag='-bexport'
7447        no_entry_flag='-bnoentry'
7448      fi
7449
7450      # When large executables or shared objects are built, AIX ld can
7451      # have problems creating the table of contents.  If linking a library
7452      # or program results in "error TOC overflow" add -mminimal-toc to
7453      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7454      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7455
7456      archive_cmds=''
7457      hardcode_direct=yes
7458      hardcode_libdir_separator=':'
7459      link_all_deplibs=yes
7460
7461      if test "$GCC" = yes; then
7462        case $host_os in aix4.[012]|aix4.[012].*)
7463        # We only want to do this on AIX 4.2 and lower, the check
7464        # below for broken collect2 doesn't work under 4.3+
7465          collect2name=`${CC} -print-prog-name=collect2`
7466          if test -f "$collect2name" && \
7467           strings "$collect2name" | grep resolve_lib_name >/dev/null
7468          then
7469          # We have reworked collect2
7470          hardcode_direct=yes
7471          else
7472          # We have old collect2
7473          hardcode_direct=unsupported
7474          # It fails to find uninstalled libraries when the uninstalled
7475          # path is not listed in the libpath.  Setting hardcode_minus_L
7476          # to unsupported forces relinking
7477          hardcode_minus_L=yes
7478          hardcode_libdir_flag_spec='-L$libdir'
7479          hardcode_libdir_separator=
7480          fi
7481          ;;
7482        esac
7483        shared_flag='-shared'
7484        if test "$aix_use_runtimelinking" = yes; then
7485          shared_flag="$shared_flag "'${wl}-G'
7486        fi
7487      else
7488        # not using gcc
7489        if test "$host_cpu" = ia64; then
7490        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7491        # chokes on -Wl,-G. The following line is correct:
7492          shared_flag='-G'
7493        else
7494          if test "$aix_use_runtimelinking" = yes; then
7495            shared_flag='${wl}-G'
7496          else
7497            shared_flag='${wl}-bM:SRE'
7498          fi
7499        fi
7500      fi
7501
7502      # It seems that -bexpall does not export symbols beginning with
7503      # underscore (_), so it is better to generate a list of symbols to export.
7504      always_export_symbols=yes
7505      if test "$aix_use_runtimelinking" = yes; then
7506        # Warning - without using the other runtime loading flags (-brtl),
7507        # -berok will link without error, but may produce a broken library.
7508        allow_undefined_flag='-berok'
7509       # Determine the default libpath from the value encoded in an empty executable.
7510       cat >conftest.$ac_ext <<_ACEOF
7511/* confdefs.h.  */
7512_ACEOF
7513cat confdefs.h >>conftest.$ac_ext
7514cat >>conftest.$ac_ext <<_ACEOF
7515/* end confdefs.h.  */
7516
7517int
7518main ()
7519{
7520
7521  ;
7522  return 0;
7523}
7524_ACEOF
7525rm -f conftest.$ac_objext conftest$ac_exeext
7526if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7527  (eval $ac_link) 2>conftest.er1
7528  ac_status=$?
7529  grep -v '^ *+' conftest.er1 >conftest.err
7530  rm -f conftest.er1
7531  cat conftest.err >&5
7532  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7533  (exit $ac_status); } &&
7534         { ac_try='test -z "$ac_c_werror_flag"
7535                         || test ! -s conftest.err'
7536  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7537  (eval $ac_try) 2>&5
7538  ac_status=$?
7539  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7540  (exit $ac_status); }; } &&
7541         { ac_try='test -s conftest$ac_exeext'
7542  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7543  (eval $ac_try) 2>&5
7544  ac_status=$?
7545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7546  (exit $ac_status); }; }; then
7547
7548aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7549}'`
7550# Check for a 64-bit object if we didn't find anything.
7551if 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; }
7552}'`; fi
7553else
7554  echo "$as_me: failed program was:" >&5
7555sed 's/^/| /' conftest.$ac_ext >&5
7556
7557fi
7558rm -f conftest.err conftest.$ac_objext \
7559      conftest$ac_exeext conftest.$ac_ext
7560if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7561
7562       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7563        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"
7564       else
7565        if test "$host_cpu" = ia64; then
7566          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7567          allow_undefined_flag="-z nodefs"
7568          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"
7569        else
7570         # Determine the default libpath from the value encoded in an empty executable.
7571         cat >conftest.$ac_ext <<_ACEOF
7572/* confdefs.h.  */
7573_ACEOF
7574cat confdefs.h >>conftest.$ac_ext
7575cat >>conftest.$ac_ext <<_ACEOF
7576/* end confdefs.h.  */
7577
7578int
7579main ()
7580{
7581
7582  ;
7583  return 0;
7584}
7585_ACEOF
7586rm -f conftest.$ac_objext conftest$ac_exeext
7587if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7588  (eval $ac_link) 2>conftest.er1
7589  ac_status=$?
7590  grep -v '^ *+' conftest.er1 >conftest.err
7591  rm -f conftest.er1
7592  cat conftest.err >&5
7593  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594  (exit $ac_status); } &&
7595         { ac_try='test -z "$ac_c_werror_flag"
7596                         || test ! -s conftest.err'
7597  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7598  (eval $ac_try) 2>&5
7599  ac_status=$?
7600  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7601  (exit $ac_status); }; } &&
7602         { ac_try='test -s conftest$ac_exeext'
7603  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604  (eval $ac_try) 2>&5
7605  ac_status=$?
7606  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607  (exit $ac_status); }; }; then
7608
7609aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7610}'`
7611# Check for a 64-bit object if we didn't find anything.
7612if 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; }
7613}'`; fi
7614else
7615  echo "$as_me: failed program was:" >&5
7616sed 's/^/| /' conftest.$ac_ext >&5
7617
7618fi
7619rm -f conftest.err conftest.$ac_objext \
7620      conftest$ac_exeext conftest.$ac_ext
7621if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7622
7623         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7624          # Warning - without using the other run time loading flags,
7625          # -berok will link without error, but may produce a broken library.
7626          no_undefined_flag=' ${wl}-bernotok'
7627          allow_undefined_flag=' ${wl}-berok'
7628          # Exported symbols can be pulled into shared objects from archives
7629          whole_archive_flag_spec='$convenience'
7630          archive_cmds_need_lc=yes
7631          # This is similar to how AIX traditionally builds its shared libraries.
7632          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'
7633        fi
7634      fi
7635      ;;
7636
7637    amigaos*)
7638      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)'
7639      hardcode_libdir_flag_spec='-L$libdir'
7640      hardcode_minus_L=yes
7641      # see comment about different semantics on the GNU ld section
7642      ld_shlibs=no
7643      ;;
7644
7645    bsdi[45]*)
7646      export_dynamic_flag_spec=-rdynamic
7647      ;;
7648
7649    cygwin* | mingw* | pw32*)
7650      # When not using gcc, we currently assume that we are using
7651      # Microsoft Visual C++.
7652      # hardcode_libdir_flag_spec is actually meaningless, as there is
7653      # no search path for DLLs.
7654      hardcode_libdir_flag_spec=' '
7655      allow_undefined_flag=unsupported
7656      # Tell ltmain to make .lib files, not .a files.
7657      libext=lib
7658      # Tell ltmain to make .dll files, not .so files.
7659      shrext_cmds=".dll"
7660      # FIXME: Setting linknames here is a bad hack.
7661      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7662      # The linker will automatically build a .lib file if we build a DLL.
7663      old_archive_From_new_cmds='true'
7664      # FIXME: Should let the user specify the lib program.
7665      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7666      fix_srcfile_path='`cygpath -w "$srcfile"`'
7667      enable_shared_with_static_runtimes=yes
7668      ;;
7669
7670    darwin* | rhapsody*)
7671      case $host_os in
7672        rhapsody* | darwin1.[012])
7673         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7674         ;;
7675       *) # Darwin 1.3 on
7676         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7677           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7678         else
7679           case ${MACOSX_DEPLOYMENT_TARGET} in
7680             10.[012])
7681               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7682               ;;
7683             10.*)
7684               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7685               ;;
7686           esac
7687         fi
7688         ;;
7689      esac
7690      archive_cmds_need_lc=no
7691      hardcode_direct=no
7692      hardcode_automatic=yes
7693      hardcode_shlibpath_var=unsupported
7694      whole_archive_flag_spec=''
7695      link_all_deplibs=yes
7696    if test "$GCC" = yes ; then
7697        output_verbose_link_cmd='echo'
7698        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7699      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7700      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7701      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}'
7702      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}'
7703    else
7704      case $cc_basename in
7705        xlc*)
7706         output_verbose_link_cmd='echo'
7707         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7708         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7709          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7710         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}'
7711          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}'
7712          ;;
7713       *)
7714         ld_shlibs=no
7715          ;;
7716      esac
7717    fi
7718      ;;
7719
7720    dgux*)
7721      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7722      hardcode_libdir_flag_spec='-L$libdir'
7723      hardcode_shlibpath_var=no
7724      ;;
7725
7726    freebsd1*)
7727      ld_shlibs=no
7728      ;;
7729
7730    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7731    # support.  Future versions do this automatically, but an explicit c++rt0.o
7732    # does not break anything, and helps significantly (at the cost of a little
7733    # extra space).
7734    freebsd2.2*)
7735      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7736      hardcode_libdir_flag_spec='-R$libdir'
7737      hardcode_direct=yes
7738      hardcode_shlibpath_var=no
7739      ;;
7740
7741    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7742    freebsd2*)
7743      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7744      hardcode_direct=yes
7745      hardcode_minus_L=yes
7746      hardcode_shlibpath_var=no
7747      ;;
7748
7749    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7750    freebsd* | kfreebsd*-gnu | dragonfly*)
7751      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7752      hardcode_libdir_flag_spec='-R$libdir'
7753      hardcode_direct=yes
7754      hardcode_shlibpath_var=no
7755      ;;
7756
7757    hpux9*)
7758      if test "$GCC" = yes; then
7759        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'
7760      else
7761        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'
7762      fi
7763      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7764      hardcode_libdir_separator=:
7765      hardcode_direct=yes
7766
7767      # hardcode_minus_L: Not really in the search PATH,
7768      # but as the default location of the library.
7769      hardcode_minus_L=yes
7770      export_dynamic_flag_spec='${wl}-E'
7771      ;;
7772
7773    hpux10*)
7774      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7775        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7776      else
7777        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7778      fi
7779      if test "$with_gnu_ld" = no; then
7780        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7781        hardcode_libdir_separator=:
7782
7783        hardcode_direct=yes
7784        export_dynamic_flag_spec='${wl}-E'
7785
7786        # hardcode_minus_L: Not really in the search PATH,
7787        # but as the default location of the library.
7788        hardcode_minus_L=yes
7789      fi
7790      ;;
7791
7792    hpux11*)
7793      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7794        case $host_cpu in
7795        hppa*64*)
7796          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7797          ;;
7798        ia64*)
7799          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7800          ;;
7801        *)
7802          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7803          ;;
7804        esac
7805      else
7806        case $host_cpu in
7807        hppa*64*)
7808          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7809          ;;
7810        ia64*)
7811          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7812          ;;
7813        *)
7814          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7815          ;;
7816        esac
7817      fi
7818      if test "$with_gnu_ld" = no; then
7819        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7820        hardcode_libdir_separator=:
7821
7822        case $host_cpu in
7823        hppa*64*|ia64*)
7824          hardcode_libdir_flag_spec_ld='+b $libdir'
7825          hardcode_direct=no
7826          hardcode_shlibpath_var=no
7827          ;;
7828        *)
7829          hardcode_direct=yes
7830          export_dynamic_flag_spec='${wl}-E'
7831
7832          # hardcode_minus_L: Not really in the search PATH,
7833          # but as the default location of the library.
7834          hardcode_minus_L=yes
7835          ;;
7836        esac
7837      fi
7838      ;;
7839
7840    irix5* | irix6* | nonstopux*)
7841      if test "$GCC" = yes; then
7842        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'
7843      else
7844        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'
7845        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7846      fi
7847      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7848      hardcode_libdir_separator=:
7849      link_all_deplibs=yes
7850      ;;
7851
7852    netbsd*)
7853      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7854        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7855      else
7856        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7857      fi
7858      hardcode_libdir_flag_spec='-R$libdir'
7859      hardcode_direct=yes
7860      hardcode_shlibpath_var=no
7861      ;;
7862
7863    newsos6)
7864      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7865      hardcode_direct=yes
7866      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7867      hardcode_libdir_separator=:
7868      hardcode_shlibpath_var=no
7869      ;;
7870
7871    openbsd*)
7872      hardcode_direct=yes
7873      hardcode_shlibpath_var=no
7874      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7875        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7876        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7877        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7878        export_dynamic_flag_spec='${wl}-E'
7879      else
7880       case $host_os in
7881         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7882           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7883           hardcode_libdir_flag_spec='-R$libdir'
7884           ;;
7885         *)
7886           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7887           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7888           ;;
7889       esac
7890      fi
7891      ;;
7892
7893    os2*)
7894      hardcode_libdir_flag_spec='-L$libdir'
7895      hardcode_minus_L=yes
7896      allow_undefined_flag=unsupported
7897      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'
7898      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7899      ;;
7900
7901    osf3*)
7902      if test "$GCC" = yes; then
7903        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7904        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'
7905      else
7906        allow_undefined_flag=' -expect_unresolved \*'
7907        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'
7908      fi
7909      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7910      hardcode_libdir_separator=:
7911      ;;
7912
7913    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7914      if test "$GCC" = yes; then
7915        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7916        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'
7917        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7918      else
7919        allow_undefined_flag=' -expect_unresolved \*'
7920        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'
7921        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7922        $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'
7923
7924        # Both c and cxx compiler support -rpath directly
7925        hardcode_libdir_flag_spec='-rpath $libdir'
7926      fi
7927      hardcode_libdir_separator=:
7928      ;;
7929
7930    solaris*)
7931      no_undefined_flag=' -z text'
7932      if test "$GCC" = yes; then
7933        wlarc='${wl}'
7934        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7935        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7936          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
7937      else
7938        wlarc=''
7939        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
7940        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
7941        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
7942      fi
7943      hardcode_libdir_flag_spec='-R$libdir'
7944      hardcode_shlibpath_var=no
7945      case $host_os in
7946      solaris2.[0-5] | solaris2.[0-5].*) ;;
7947      *)
7948        # The compiler driver will combine linker options so we
7949        # cannot just pass the convience library names through
7950        # without $wl, iff we do not link with $LD.
7951        # Luckily, gcc supports the same syntax we need for Sun Studio.
7952        # Supported since Solaris 2.6 (maybe 2.5.1?)
7953        case $wlarc in
7954        '')
7955          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
7956        *)
7957          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' ;;
7958        esac ;;
7959      esac
7960      link_all_deplibs=yes
7961      ;;
7962
7963    sunos4*)
7964      if test "x$host_vendor" = xsequent; then
7965        # Use $CC to link under sequent, because it throws in some extra .o
7966        # files that make .init and .fini sections work.
7967        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
7968      else
7969        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
7970      fi
7971      hardcode_libdir_flag_spec='-L$libdir'
7972      hardcode_direct=yes
7973      hardcode_minus_L=yes
7974      hardcode_shlibpath_var=no
7975      ;;
7976
7977    sysv4)
7978      case $host_vendor in
7979        sni)
7980          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7981          hardcode_direct=yes # is this really true???
7982        ;;
7983        siemens)
7984          ## LD is ld it makes a PLAMLIB
7985          ## CC just makes a GrossModule.
7986          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
7987          reload_cmds='$CC -r -o $output$reload_objs'
7988          hardcode_direct=no
7989        ;;
7990        motorola)
7991          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7992          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
7993        ;;
7994      esac
7995      runpath_var='LD_RUN_PATH'
7996      hardcode_shlibpath_var=no
7997      ;;
7998
7999    sysv4.3*)
8000      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8001      hardcode_shlibpath_var=no
8002      export_dynamic_flag_spec='-Bexport'
8003      ;;
8004
8005    sysv4*MP*)
8006      if test -d /usr/nec; then
8007        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8008        hardcode_shlibpath_var=no
8009        runpath_var=LD_RUN_PATH
8010        hardcode_runpath_var=yes
8011        ld_shlibs=yes
8012      fi
8013      ;;
8014
8015    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8016      no_undefined_flag='${wl}-z,text'
8017      archive_cmds_need_lc=no
8018      hardcode_shlibpath_var=no
8019      runpath_var='LD_RUN_PATH'
8020
8021      if test "$GCC" = yes; then
8022        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8023        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8024      else
8025        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8026        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8027      fi
8028      ;;
8029
8030    sysv5* | sco3.2v5* | sco5v6*)
8031      # Note: We can NOT use -z defs as we might desire, because we do not
8032      # link with -lc, and that would cause any symbols used from libc to
8033      # always be unresolved, which means just about no library would
8034      # ever link correctly.  If we're not using GNU ld we use -z text
8035      # though, which does catch some bad symbols but isn't as heavy-handed
8036      # as -z defs.
8037      no_undefined_flag='${wl}-z,text'
8038      allow_undefined_flag='${wl}-z,nodefs'
8039      archive_cmds_need_lc=no
8040      hardcode_shlibpath_var=no
8041      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8042      hardcode_libdir_separator=':'
8043      link_all_deplibs=yes
8044      export_dynamic_flag_spec='${wl}-Bexport'
8045      runpath_var='LD_RUN_PATH'
8046
8047      if test "$GCC" = yes; then
8048        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8049        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8050      else
8051        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8052        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8053      fi
8054      ;;
8055
8056    uts4*)
8057      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8058      hardcode_libdir_flag_spec='-L$libdir'
8059      hardcode_shlibpath_var=no
8060      ;;
8061
8062    *)
8063      ld_shlibs=no
8064      ;;
8065    esac
8066  fi
8067
8068echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8069echo "${ECHO_T}$ld_shlibs" >&6
8070test "$ld_shlibs" = no && can_build_shared=no
8071
8072#
8073# Do we need to explicitly link libc?
8074#
8075case "x$archive_cmds_need_lc" in
8076x|xyes)
8077  # Assume -lc should be added
8078  archive_cmds_need_lc=yes
8079
8080  if test "$enable_shared" = yes && test "$GCC" = yes; then
8081    case $archive_cmds in
8082    *'~'*)
8083      # FIXME: we may have to deal with multi-command sequences.
8084      ;;
8085    '$CC '*)
8086      # Test whether the compiler implicitly links with -lc since on some
8087      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8088      # to ld, don't add -lc before -lgcc.
8089      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8090echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8091      $rm conftest*
8092      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8093
8094      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8095  (eval $ac_compile) 2>&5
8096  ac_status=$?
8097  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8098  (exit $ac_status); } 2>conftest.err; then
8099        soname=conftest
8100        lib=conftest
8101        libobjs=conftest.$ac_objext
8102        deplibs=
8103        wl=$lt_prog_compiler_wl
8104        pic_flag=$lt_prog_compiler_pic
8105        compiler_flags=-v
8106        linker_flags=-v
8107        verstring=
8108        output_objdir=.
8109        libname=conftest
8110        lt_save_allow_undefined_flag=$allow_undefined_flag
8111        allow_undefined_flag=
8112        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8113  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8114  ac_status=$?
8115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116  (exit $ac_status); }
8117        then
8118          archive_cmds_need_lc=no
8119        else
8120          archive_cmds_need_lc=yes
8121        fi
8122        allow_undefined_flag=$lt_save_allow_undefined_flag
8123      else
8124        cat conftest.err 1>&5
8125      fi
8126      $rm conftest*
8127      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8128echo "${ECHO_T}$archive_cmds_need_lc" >&6
8129      ;;
8130    esac
8131  fi
8132  ;;
8133esac
8134
8135echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8136echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8137library_names_spec=
8138libname_spec='lib$name'
8139soname_spec=
8140shrext_cmds=".so"
8141postinstall_cmds=
8142postuninstall_cmds=
8143finish_cmds=
8144finish_eval=
8145shlibpath_var=
8146shlibpath_overrides_runpath=unknown
8147version_type=none
8148dynamic_linker="$host_os ld.so"
8149sys_lib_dlsearch_path_spec="/lib /usr/lib"
8150if test "$GCC" = yes; then
8151  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8152  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8153    # if the path contains ";" then we assume it to be the separator
8154    # otherwise default to the standard path separator (i.e. ":") - it is
8155    # assumed that no part of a normal pathname contains ";" but that should
8156    # okay in the real world where ";" in dirpaths is itself problematic.
8157    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8158  else
8159    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8160  fi
8161else
8162  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8163fi
8164need_lib_prefix=unknown
8165hardcode_into_libs=no
8166
8167# when you set need_version to no, make sure it does not cause -set_version
8168# flags to be left without arguments
8169need_version=unknown
8170
8171case $host_os in
8172aix3*)
8173  version_type=linux
8174  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8175  shlibpath_var=LIBPATH
8176
8177  # AIX 3 has no versioning support, so we append a major version to the name.
8178  soname_spec='${libname}${release}${shared_ext}$major'
8179  ;;
8180
8181aix4* | aix5*)
8182  version_type=linux
8183  need_lib_prefix=no
8184  need_version=no
8185  hardcode_into_libs=yes
8186  if test "$host_cpu" = ia64; then
8187    # AIX 5 supports IA64
8188    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8189    shlibpath_var=LD_LIBRARY_PATH
8190  else
8191    # With GCC up to 2.95.x, collect2 would create an import file
8192    # for dependence libraries.  The import file would start with
8193    # the line `#! .'.  This would cause the generated library to
8194    # depend on `.', always an invalid library.  This was fixed in
8195    # development snapshots of GCC prior to 3.0.
8196    case $host_os in
8197      aix4 | aix4.[01] | aix4.[01].*)
8198      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8199           echo ' yes '
8200           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8201        :
8202      else
8203        can_build_shared=no
8204      fi
8205      ;;
8206    esac
8207    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8208    # soname into executable. Probably we can add versioning support to
8209    # collect2, so additional links can be useful in future.
8210    if test "$aix_use_runtimelinking" = yes; then
8211      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8212      # instead of lib<name>.a to let people know that these are not
8213      # typical AIX shared libraries.
8214      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8215    else
8216      # We preserve .a as extension for shared libraries through AIX4.2
8217      # and later when we are not doing run time linking.
8218      library_names_spec='${libname}${release}.a $libname.a'
8219      soname_spec='${libname}${release}${shared_ext}$major'
8220    fi
8221    shlibpath_var=LIBPATH
8222  fi
8223  ;;
8224
8225amigaos*)
8226  library_names_spec='$libname.ixlibrary $libname.a'
8227  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8228  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'
8229  ;;
8230
8231beos*)
8232  library_names_spec='${libname}${shared_ext}'
8233  dynamic_linker="$host_os ld.so"
8234  shlibpath_var=LIBRARY_PATH
8235  ;;
8236
8237bsdi[45]*)
8238  version_type=linux
8239  need_version=no
8240  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8241  soname_spec='${libname}${release}${shared_ext}$major'
8242  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8243  shlibpath_var=LD_LIBRARY_PATH
8244  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8245  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8246  # the default ld.so.conf also contains /usr/contrib/lib and
8247  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8248  # libtool to hard-code these into programs
8249  ;;
8250
8251cygwin* | mingw* | pw32*)
8252  version_type=windows
8253  shrext_cmds=".dll"
8254  need_version=no
8255  need_lib_prefix=no
8256
8257  case $GCC,$host_os in
8258  yes,cygwin* | yes,mingw* | yes,pw32*)
8259    library_names_spec='$libname.dll.a'
8260    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8261    postinstall_cmds='base_file=`basename \${file}`~
8262      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8263      dldir=$destdir/`dirname \$dlpath`~
8264      test -d \$dldir || mkdir -p \$dldir~
8265      $install_prog $dir/$dlname \$dldir/$dlname~
8266      chmod a+x \$dldir/$dlname'
8267    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8268      dlpath=$dir/\$dldll~
8269       $rm \$dlpath'
8270    shlibpath_overrides_runpath=yes
8271
8272    case $host_os in
8273    cygwin*)
8274      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8275      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8276      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8277      ;;
8278    mingw*)
8279      # MinGW DLLs use traditional 'lib' prefix
8280      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8281      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8282      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8283        # It is most probably a Windows format PATH printed by
8284        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8285        # path with ; separators, and with drive letters. We can handle the
8286        # drive letters (cygwin fileutils understands them), so leave them,
8287        # especially as we might pass files found there to a mingw objdump,
8288        # which wouldn't understand a cygwinified path. Ahh.
8289        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8290      else
8291        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8292      fi
8293      ;;
8294    pw32*)
8295      # pw32 DLLs use 'pw' prefix rather than 'lib'
8296      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8297      ;;
8298    esac
8299    ;;
8300
8301  *)
8302    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8303    ;;
8304  esac
8305  dynamic_linker='Win32 ld.exe'
8306  # FIXME: first we should search . and the directory the executable is in
8307  shlibpath_var=PATH
8308  ;;
8309
8310darwin* | rhapsody*)
8311  dynamic_linker="$host_os dyld"
8312  version_type=darwin
8313  need_lib_prefix=no
8314  need_version=no
8315  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8316  soname_spec='${libname}${release}${major}$shared_ext'
8317  shlibpath_overrides_runpath=yes
8318  shlibpath_var=DYLD_LIBRARY_PATH
8319  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8320  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8321  if test "$GCC" = yes; then
8322    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"`
8323  else
8324    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8325  fi
8326  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8327  ;;
8328
8329dgux*)
8330  version_type=linux
8331  need_lib_prefix=no
8332  need_version=no
8333  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8334  soname_spec='${libname}${release}${shared_ext}$major'
8335  shlibpath_var=LD_LIBRARY_PATH
8336  ;;
8337
8338freebsd1*)
8339  dynamic_linker=no
8340  ;;
8341
8342kfreebsd*-gnu)
8343  version_type=linux
8344  need_lib_prefix=no
8345  need_version=no
8346  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8347  soname_spec='${libname}${release}${shared_ext}$major'
8348  shlibpath_var=LD_LIBRARY_PATH
8349  shlibpath_overrides_runpath=no
8350  hardcode_into_libs=yes
8351  dynamic_linker='GNU ld.so'
8352  ;;
8353
8354freebsd* | dragonfly*)
8355  # DragonFly does not have aout.  When/if they implement a new
8356  # versioning mechanism, adjust this.
8357  if test -x /usr/bin/objformat; then
8358    objformat=`/usr/bin/objformat`
8359  else
8360    case $host_os in
8361    freebsd[123]*) objformat=aout ;;
8362    *) objformat=elf ;;
8363    esac
8364  fi
8365  version_type=freebsd-$objformat
8366  case $version_type in
8367    freebsd-elf*)
8368      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8369      need_version=no
8370      need_lib_prefix=no
8371      ;;
8372    freebsd-*)
8373      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8374      need_version=yes
8375      ;;
8376  esac
8377  shlibpath_var=LD_LIBRARY_PATH
8378  case $host_os in
8379  freebsd2*)
8380    shlibpath_overrides_runpath=yes
8381    ;;
8382  freebsd3.[01]* | freebsdelf3.[01]*)
8383    shlibpath_overrides_runpath=yes
8384    hardcode_into_libs=yes
8385    ;;
8386  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8387  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8388    shlibpath_overrides_runpath=no
8389    hardcode_into_libs=yes
8390    ;;
8391  freebsd*) # from 4.6 on
8392    shlibpath_overrides_runpath=yes
8393    hardcode_into_libs=yes
8394    ;;
8395  esac
8396  ;;
8397
8398gnu*)
8399  version_type=linux
8400  need_lib_prefix=no
8401  need_version=no
8402  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8403  soname_spec='${libname}${release}${shared_ext}$major'
8404  shlibpath_var=LD_LIBRARY_PATH
8405  hardcode_into_libs=yes
8406  ;;
8407
8408hpux9* | hpux10* | hpux11*)
8409  # Give a soname corresponding to the major version so that dld.sl refuses to
8410  # link against other versions.
8411  version_type=sunos
8412  need_lib_prefix=no
8413  need_version=no
8414  case $host_cpu in
8415  ia64*)
8416    shrext_cmds='.so'
8417    hardcode_into_libs=yes
8418    dynamic_linker="$host_os dld.so"
8419    shlibpath_var=LD_LIBRARY_PATH
8420    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8421    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8422    soname_spec='${libname}${release}${shared_ext}$major'
8423    if test "X$HPUX_IA64_MODE" = X32; then
8424      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8425    else
8426      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8427    fi
8428    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8429    ;;
8430   hppa*64*)
8431     shrext_cmds='.sl'
8432     hardcode_into_libs=yes
8433     dynamic_linker="$host_os dld.sl"
8434     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8435     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8436     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8437     soname_spec='${libname}${release}${shared_ext}$major'
8438     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8439     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8440     ;;
8441   *)
8442    shrext_cmds='.sl'
8443    dynamic_linker="$host_os dld.sl"
8444    shlibpath_var=SHLIB_PATH
8445    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8446    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8447    soname_spec='${libname}${release}${shared_ext}$major'
8448    ;;
8449  esac
8450  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8451  postinstall_cmds='chmod 555 $lib'
8452  ;;
8453
8454interix3*)
8455  version_type=linux
8456  need_lib_prefix=no
8457  need_version=no
8458  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8459  soname_spec='${libname}${release}${shared_ext}$major'
8460  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8461  shlibpath_var=LD_LIBRARY_PATH
8462  shlibpath_overrides_runpath=no
8463  hardcode_into_libs=yes
8464  ;;
8465
8466irix5* | irix6* | nonstopux*)
8467  case $host_os in
8468    nonstopux*) version_type=nonstopux ;;
8469    *)
8470        if test "$lt_cv_prog_gnu_ld" = yes; then
8471                version_type=linux
8472        else
8473                version_type=irix
8474        fi ;;
8475  esac
8476  need_lib_prefix=no
8477  need_version=no
8478  soname_spec='${libname}${release}${shared_ext}$major'
8479  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8480  case $host_os in
8481  irix5* | nonstopux*)
8482    libsuff= shlibsuff=
8483    ;;
8484  *)
8485    case $LD in # libtool.m4 will add one of these switches to LD
8486    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8487      libsuff= shlibsuff= libmagic=32-bit;;
8488    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8489      libsuff=32 shlibsuff=N32 libmagic=N32;;
8490    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8491      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8492    *) libsuff= shlibsuff= libmagic=never-match;;
8493    esac
8494    ;;
8495  esac
8496  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8497  shlibpath_overrides_runpath=no
8498  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8499  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8500  hardcode_into_libs=yes
8501  ;;
8502
8503# No shared lib support for Linux oldld, aout, or coff.
8504linux*oldld* | linux*aout* | linux*coff*)
8505  dynamic_linker=no
8506  ;;
8507
8508# This must be Linux ELF.
8509linux*)
8510  version_type=linux
8511  need_lib_prefix=no
8512  need_version=no
8513  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8514  soname_spec='${libname}${release}${shared_ext}$major'
8515  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8516  shlibpath_var=LD_LIBRARY_PATH
8517  shlibpath_overrides_runpath=no
8518  # This implies no fast_install, which is unacceptable.
8519  # Some rework will be needed to allow for fast_install
8520  # before this can be enabled.
8521  hardcode_into_libs=yes
8522
8523  # Append ld.so.conf contents to the search path
8524  if test -f /etc/ld.so.conf; then
8525    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' ' '`
8526    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8527  fi
8528
8529  # We used to test for /lib/ld.so.1 and disable shared libraries on
8530  # powerpc, because MkLinux only supported shared libraries with the
8531  # GNU dynamic linker.  Since this was broken with cross compilers,
8532  # most powerpc-linux boxes support dynamic linking these days and
8533  # people can always --disable-shared, the test was removed, and we
8534  # assume the GNU/Linux dynamic linker is in use.
8535  dynamic_linker='GNU/Linux ld.so'
8536  ;;
8537
8538knetbsd*-gnu)
8539  version_type=linux
8540  need_lib_prefix=no
8541  need_version=no
8542  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8543  soname_spec='${libname}${release}${shared_ext}$major'
8544  shlibpath_var=LD_LIBRARY_PATH
8545  shlibpath_overrides_runpath=no
8546  hardcode_into_libs=yes
8547  dynamic_linker='GNU ld.so'
8548  ;;
8549
8550netbsd*)
8551  version_type=sunos
8552  need_lib_prefix=no
8553  need_version=no
8554  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8555    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8556    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8557    dynamic_linker='NetBSD (a.out) ld.so'
8558  else
8559    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8560    soname_spec='${libname}${release}${shared_ext}$major'
8561    dynamic_linker='NetBSD ld.elf_so'
8562  fi
8563  shlibpath_var=LD_LIBRARY_PATH
8564  shlibpath_overrides_runpath=yes
8565  hardcode_into_libs=yes
8566  ;;
8567
8568newsos6)
8569  version_type=linux
8570  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8571  shlibpath_var=LD_LIBRARY_PATH
8572  shlibpath_overrides_runpath=yes
8573  ;;
8574
8575nto-qnx*)
8576  version_type=linux
8577  need_lib_prefix=no
8578  need_version=no
8579  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8580  soname_spec='${libname}${release}${shared_ext}$major'
8581  shlibpath_var=LD_LIBRARY_PATH
8582  shlibpath_overrides_runpath=yes
8583  ;;
8584
8585openbsd*)
8586  version_type=sunos
8587  sys_lib_dlsearch_path_spec="/usr/lib"
8588  need_lib_prefix=no
8589  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8590  case $host_os in
8591    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8592    *)                         need_version=no  ;;
8593  esac
8594  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8595  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8596  shlibpath_var=LD_LIBRARY_PATH
8597  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8598    case $host_os in
8599      openbsd2.[89] | openbsd2.[89].*)
8600        shlibpath_overrides_runpath=no
8601        ;;
8602      *)
8603        shlibpath_overrides_runpath=yes
8604        ;;
8605      esac
8606  else
8607    shlibpath_overrides_runpath=yes
8608  fi
8609  ;;
8610
8611os2*)
8612  libname_spec='$name'
8613  shrext_cmds=".dll"
8614  need_lib_prefix=no
8615  library_names_spec='$libname${shared_ext} $libname.a'
8616  dynamic_linker='OS/2 ld.exe'
8617  shlibpath_var=LIBPATH
8618  ;;
8619
8620osf3* | osf4* | osf5*)
8621  version_type=osf
8622  need_lib_prefix=no
8623  need_version=no
8624  soname_spec='${libname}${release}${shared_ext}$major'
8625  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8626  shlibpath_var=LD_LIBRARY_PATH
8627  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8628  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8629  ;;
8630
8631solaris*)
8632  version_type=linux
8633  need_lib_prefix=no
8634  need_version=no
8635  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8636  soname_spec='${libname}${release}${shared_ext}$major'
8637  shlibpath_var=LD_LIBRARY_PATH
8638  shlibpath_overrides_runpath=yes
8639  hardcode_into_libs=yes
8640  # ldd complains unless libraries are executable
8641  postinstall_cmds='chmod +x $lib'
8642  ;;
8643
8644sunos4*)
8645  version_type=sunos
8646  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8647  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8648  shlibpath_var=LD_LIBRARY_PATH
8649  shlibpath_overrides_runpath=yes
8650  if test "$with_gnu_ld" = yes; then
8651    need_lib_prefix=no
8652  fi
8653  need_version=yes
8654  ;;
8655
8656sysv4 | sysv4.3*)
8657  version_type=linux
8658  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8659  soname_spec='${libname}${release}${shared_ext}$major'
8660  shlibpath_var=LD_LIBRARY_PATH
8661  case $host_vendor in
8662    sni)
8663      shlibpath_overrides_runpath=no
8664      need_lib_prefix=no
8665      export_dynamic_flag_spec='${wl}-Blargedynsym'
8666      runpath_var=LD_RUN_PATH
8667      ;;
8668    siemens)
8669      need_lib_prefix=no
8670      ;;
8671    motorola)
8672      need_lib_prefix=no
8673      need_version=no
8674      shlibpath_overrides_runpath=no
8675      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8676      ;;
8677  esac
8678  ;;
8679
8680sysv4*MP*)
8681  if test -d /usr/nec ;then
8682    version_type=linux
8683    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8684    soname_spec='$libname${shared_ext}.$major'
8685    shlibpath_var=LD_LIBRARY_PATH
8686  fi
8687  ;;
8688
8689sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8690  version_type=freebsd-elf
8691  need_lib_prefix=no
8692  need_version=no
8693  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8694  soname_spec='${libname}${release}${shared_ext}$major'
8695  shlibpath_var=LD_LIBRARY_PATH
8696  hardcode_into_libs=yes
8697  if test "$with_gnu_ld" = yes; then
8698    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8699    shlibpath_overrides_runpath=no
8700  else
8701    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8702    shlibpath_overrides_runpath=yes
8703    case $host_os in
8704      sco3.2v5*)
8705        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8706        ;;
8707    esac
8708  fi
8709  sys_lib_dlsearch_path_spec='/usr/lib'
8710  ;;
8711
8712uts4*)
8713  version_type=linux
8714  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8715  soname_spec='${libname}${release}${shared_ext}$major'
8716  shlibpath_var=LD_LIBRARY_PATH
8717  ;;
8718
8719*)
8720  dynamic_linker=no
8721  ;;
8722esac
8723echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8724echo "${ECHO_T}$dynamic_linker" >&6
8725test "$dynamic_linker" = no && can_build_shared=no
8726
8727variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8728if test "$GCC" = yes; then
8729  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8730fi
8731
8732echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8733echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8734hardcode_action=
8735if test -n "$hardcode_libdir_flag_spec" || \
8736   test -n "$runpath_var" || \
8737   test "X$hardcode_automatic" = "Xyes" ; then
8738
8739  # We can hardcode non-existant directories.
8740  if test "$hardcode_direct" != no &&
8741     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8742     # have to relink, otherwise we might link with an installed library
8743     # when we should be linking with a yet-to-be-installed one
8744     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8745     test "$hardcode_minus_L" != no; then
8746    # Linking always hardcodes the temporary library directory.
8747    hardcode_action=relink
8748  else
8749    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8750    hardcode_action=immediate
8751  fi
8752else
8753  # We cannot hardcode anything, or else we can only hardcode existing
8754  # directories.
8755  hardcode_action=unsupported
8756fi
8757echo "$as_me:$LINENO: result: $hardcode_action" >&5
8758echo "${ECHO_T}$hardcode_action" >&6
8759
8760if test "$hardcode_action" = relink; then
8761  # Fast installation is not supported
8762  enable_fast_install=no
8763elif test "$shlibpath_overrides_runpath" = yes ||
8764     test "$enable_shared" = no; then
8765  # Fast installation is not necessary
8766  enable_fast_install=needless
8767fi
8768
8769striplib=
8770old_striplib=
8771echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8772echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8773if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8774  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8775  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8776  echo "$as_me:$LINENO: result: yes" >&5
8777echo "${ECHO_T}yes" >&6
8778else
8779# FIXME - insert some real tests, host_os isn't really good enough
8780  case $host_os in
8781   darwin*)
8782       if test -n "$STRIP" ; then
8783         striplib="$STRIP -x"
8784         echo "$as_me:$LINENO: result: yes" >&5
8785echo "${ECHO_T}yes" >&6
8786       else
8787  echo "$as_me:$LINENO: result: no" >&5
8788echo "${ECHO_T}no" >&6
8789fi
8790       ;;
8791   *)
8792  echo "$as_me:$LINENO: result: no" >&5
8793echo "${ECHO_T}no" >&6
8794    ;;
8795  esac
8796fi
8797
8798if test "x$enable_dlopen" != xyes; then
8799  enable_dlopen=unknown
8800  enable_dlopen_self=unknown
8801  enable_dlopen_self_static=unknown
8802else
8803  lt_cv_dlopen=no
8804  lt_cv_dlopen_libs=
8805
8806  case $host_os in
8807  beos*)
8808    lt_cv_dlopen="load_add_on"
8809    lt_cv_dlopen_libs=
8810    lt_cv_dlopen_self=yes
8811    ;;
8812
8813  mingw* | pw32*)
8814    lt_cv_dlopen="LoadLibrary"
8815    lt_cv_dlopen_libs=
8816   ;;
8817
8818  cygwin*)
8819    lt_cv_dlopen="dlopen"
8820    lt_cv_dlopen_libs=
8821   ;;
8822
8823  darwin*)
8824  # if libdl is installed we need to link against it
8825    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8826echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8827if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8828  echo $ECHO_N "(cached) $ECHO_C" >&6
8829else
8830  ac_check_lib_save_LIBS=$LIBS
8831LIBS="-ldl  $LIBS"
8832cat >conftest.$ac_ext <<_ACEOF
8833/* confdefs.h.  */
8834_ACEOF
8835cat confdefs.h >>conftest.$ac_ext
8836cat >>conftest.$ac_ext <<_ACEOF
8837/* end confdefs.h.  */
8838
8839/* Override any gcc2 internal prototype to avoid an error.  */
8840#ifdef __cplusplus
8841extern "C"
8842#endif
8843/* We use char because int might match the return type of a gcc2
8844   builtin and then its argument prototype would still apply.  */
8845char dlopen ();
8846int
8847main ()
8848{
8849dlopen ();
8850  ;
8851  return 0;
8852}
8853_ACEOF
8854rm -f conftest.$ac_objext conftest$ac_exeext
8855if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8856  (eval $ac_link) 2>conftest.er1
8857  ac_status=$?
8858  grep -v '^ *+' conftest.er1 >conftest.err
8859  rm -f conftest.er1
8860  cat conftest.err >&5
8861  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8862  (exit $ac_status); } &&
8863         { ac_try='test -z "$ac_c_werror_flag"
8864                         || test ! -s conftest.err'
8865  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8866  (eval $ac_try) 2>&5
8867  ac_status=$?
8868  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869  (exit $ac_status); }; } &&
8870         { ac_try='test -s conftest$ac_exeext'
8871  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872  (eval $ac_try) 2>&5
8873  ac_status=$?
8874  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875  (exit $ac_status); }; }; then
8876  ac_cv_lib_dl_dlopen=yes
8877else
8878  echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881ac_cv_lib_dl_dlopen=no
8882fi
8883rm -f conftest.err conftest.$ac_objext \
8884      conftest$ac_exeext conftest.$ac_ext
8885LIBS=$ac_check_lib_save_LIBS
8886fi
8887echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8888echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8889if test $ac_cv_lib_dl_dlopen = yes; then
8890  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8891else
8892
8893    lt_cv_dlopen="dyld"
8894    lt_cv_dlopen_libs=
8895    lt_cv_dlopen_self=yes
8896
8897fi
8898
8899   ;;
8900
8901  *)
8902    echo "$as_me:$LINENO: checking for shl_load" >&5
8903echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8904if test "${ac_cv_func_shl_load+set}" = set; then
8905  echo $ECHO_N "(cached) $ECHO_C" >&6
8906else
8907  cat >conftest.$ac_ext <<_ACEOF
8908/* confdefs.h.  */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h.  */
8913/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8914   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8915#define shl_load innocuous_shl_load
8916
8917/* System header to define __stub macros and hopefully few prototypes,
8918    which can conflict with char shl_load (); below.
8919    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8920    <limits.h> exists even on freestanding compilers.  */
8921
8922#ifdef __STDC__
8923# include <limits.h>
8924#else
8925# include <assert.h>
8926#endif
8927
8928#undef shl_load
8929
8930/* Override any gcc2 internal prototype to avoid an error.  */
8931#ifdef __cplusplus
8932extern "C"
8933{
8934#endif
8935/* We use char because int might match the return type of a gcc2
8936   builtin and then its argument prototype would still apply.  */
8937char shl_load ();
8938/* The GNU C library defines this for functions which it implements
8939    to always fail with ENOSYS.  Some functions are actually named
8940    something starting with __ and the normal name is an alias.  */
8941#if defined (__stub_shl_load) || defined (__stub___shl_load)
8942choke me
8943#else
8944char (*f) () = shl_load;
8945#endif
8946#ifdef __cplusplus
8947}
8948#endif
8949
8950int
8951main ()
8952{
8953return f != shl_load;
8954  ;
8955  return 0;
8956}
8957_ACEOF
8958rm -f conftest.$ac_objext conftest$ac_exeext
8959if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8960  (eval $ac_link) 2>conftest.er1
8961  ac_status=$?
8962  grep -v '^ *+' conftest.er1 >conftest.err
8963  rm -f conftest.er1
8964  cat conftest.err >&5
8965  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966  (exit $ac_status); } &&
8967         { ac_try='test -z "$ac_c_werror_flag"
8968                         || test ! -s conftest.err'
8969  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8970  (eval $ac_try) 2>&5
8971  ac_status=$?
8972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973  (exit $ac_status); }; } &&
8974         { ac_try='test -s conftest$ac_exeext'
8975  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8976  (eval $ac_try) 2>&5
8977  ac_status=$?
8978  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8979  (exit $ac_status); }; }; then
8980  ac_cv_func_shl_load=yes
8981else
8982  echo "$as_me: failed program was:" >&5
8983sed 's/^/| /' conftest.$ac_ext >&5
8984
8985ac_cv_func_shl_load=no
8986fi
8987rm -f conftest.err conftest.$ac_objext \
8988      conftest$ac_exeext conftest.$ac_ext
8989fi
8990echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
8991echo "${ECHO_T}$ac_cv_func_shl_load" >&6
8992if test $ac_cv_func_shl_load = yes; then
8993  lt_cv_dlopen="shl_load"
8994else
8995  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
8996echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
8997if test "${ac_cv_lib_dld_shl_load+set}" = set; then
8998  echo $ECHO_N "(cached) $ECHO_C" >&6
8999else
9000  ac_check_lib_save_LIBS=$LIBS
9001LIBS="-ldld  $LIBS"
9002cat >conftest.$ac_ext <<_ACEOF
9003/* confdefs.h.  */
9004_ACEOF
9005cat confdefs.h >>conftest.$ac_ext
9006cat >>conftest.$ac_ext <<_ACEOF
9007/* end confdefs.h.  */
9008
9009/* Override any gcc2 internal prototype to avoid an error.  */
9010#ifdef __cplusplus
9011extern "C"
9012#endif
9013/* We use char because int might match the return type of a gcc2
9014   builtin and then its argument prototype would still apply.  */
9015char shl_load ();
9016int
9017main ()
9018{
9019shl_load ();
9020  ;
9021  return 0;
9022}
9023_ACEOF
9024rm -f conftest.$ac_objext conftest$ac_exeext
9025if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9026  (eval $ac_link) 2>conftest.er1
9027  ac_status=$?
9028  grep -v '^ *+' conftest.er1 >conftest.err
9029  rm -f conftest.er1
9030  cat conftest.err >&5
9031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032  (exit $ac_status); } &&
9033         { ac_try='test -z "$ac_c_werror_flag"
9034                         || test ! -s conftest.err'
9035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9036  (eval $ac_try) 2>&5
9037  ac_status=$?
9038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9039  (exit $ac_status); }; } &&
9040         { ac_try='test -s conftest$ac_exeext'
9041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9042  (eval $ac_try) 2>&5
9043  ac_status=$?
9044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045  (exit $ac_status); }; }; then
9046  ac_cv_lib_dld_shl_load=yes
9047else
9048  echo "$as_me: failed program was:" >&5
9049sed 's/^/| /' conftest.$ac_ext >&5
9050
9051ac_cv_lib_dld_shl_load=no
9052fi
9053rm -f conftest.err conftest.$ac_objext \
9054      conftest$ac_exeext conftest.$ac_ext
9055LIBS=$ac_check_lib_save_LIBS
9056fi
9057echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9058echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9059if test $ac_cv_lib_dld_shl_load = yes; then
9060  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9061else
9062  echo "$as_me:$LINENO: checking for dlopen" >&5
9063echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9064if test "${ac_cv_func_dlopen+set}" = set; then
9065  echo $ECHO_N "(cached) $ECHO_C" >&6
9066else
9067  cat >conftest.$ac_ext <<_ACEOF
9068/* confdefs.h.  */
9069_ACEOF
9070cat confdefs.h >>conftest.$ac_ext
9071cat >>conftest.$ac_ext <<_ACEOF
9072/* end confdefs.h.  */
9073/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9074   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9075#define dlopen innocuous_dlopen
9076
9077/* System header to define __stub macros and hopefully few prototypes,
9078    which can conflict with char dlopen (); below.
9079    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9080    <limits.h> exists even on freestanding compilers.  */
9081
9082#ifdef __STDC__
9083# include <limits.h>
9084#else
9085# include <assert.h>
9086#endif
9087
9088#undef dlopen
9089
9090/* Override any gcc2 internal prototype to avoid an error.  */
9091#ifdef __cplusplus
9092extern "C"
9093{
9094#endif
9095/* We use char because int might match the return type of a gcc2
9096   builtin and then its argument prototype would still apply.  */
9097char dlopen ();
9098/* The GNU C library defines this for functions which it implements
9099    to always fail with ENOSYS.  Some functions are actually named
9100    something starting with __ and the normal name is an alias.  */
9101#if defined (__stub_dlopen) || defined (__stub___dlopen)
9102choke me
9103#else
9104char (*f) () = dlopen;
9105#endif
9106#ifdef __cplusplus
9107}
9108#endif
9109
9110int
9111main ()
9112{
9113return f != dlopen;
9114  ;
9115  return 0;
9116}
9117_ACEOF
9118rm -f conftest.$ac_objext conftest$ac_exeext
9119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9120  (eval $ac_link) 2>conftest.er1
9121  ac_status=$?
9122  grep -v '^ *+' conftest.er1 >conftest.err
9123  rm -f conftest.er1
9124  cat conftest.err >&5
9125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9126  (exit $ac_status); } &&
9127         { ac_try='test -z "$ac_c_werror_flag"
9128                         || test ! -s conftest.err'
9129  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9130  (eval $ac_try) 2>&5
9131  ac_status=$?
9132  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133  (exit $ac_status); }; } &&
9134         { ac_try='test -s conftest$ac_exeext'
9135  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136  (eval $ac_try) 2>&5
9137  ac_status=$?
9138  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139  (exit $ac_status); }; }; then
9140  ac_cv_func_dlopen=yes
9141else
9142  echo "$as_me: failed program was:" >&5
9143sed 's/^/| /' conftest.$ac_ext >&5
9144
9145ac_cv_func_dlopen=no
9146fi
9147rm -f conftest.err conftest.$ac_objext \
9148      conftest$ac_exeext conftest.$ac_ext
9149fi
9150echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9151echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9152if test $ac_cv_func_dlopen = yes; then
9153  lt_cv_dlopen="dlopen"
9154else
9155  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9156echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9157if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9158  echo $ECHO_N "(cached) $ECHO_C" >&6
9159else
9160  ac_check_lib_save_LIBS=$LIBS
9161LIBS="-ldl  $LIBS"
9162cat >conftest.$ac_ext <<_ACEOF
9163/* confdefs.h.  */
9164_ACEOF
9165cat confdefs.h >>conftest.$ac_ext
9166cat >>conftest.$ac_ext <<_ACEOF
9167/* end confdefs.h.  */
9168
9169/* Override any gcc2 internal prototype to avoid an error.  */
9170#ifdef __cplusplus
9171extern "C"
9172#endif
9173/* We use char because int might match the return type of a gcc2
9174   builtin and then its argument prototype would still apply.  */
9175char dlopen ();
9176int
9177main ()
9178{
9179dlopen ();
9180  ;
9181  return 0;
9182}
9183_ACEOF
9184rm -f conftest.$ac_objext conftest$ac_exeext
9185if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9186  (eval $ac_link) 2>conftest.er1
9187  ac_status=$?
9188  grep -v '^ *+' conftest.er1 >conftest.err
9189  rm -f conftest.er1
9190  cat conftest.err >&5
9191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192  (exit $ac_status); } &&
9193         { ac_try='test -z "$ac_c_werror_flag"
9194                         || test ! -s conftest.err'
9195  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9196  (eval $ac_try) 2>&5
9197  ac_status=$?
9198  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199  (exit $ac_status); }; } &&
9200         { ac_try='test -s conftest$ac_exeext'
9201  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9202  (eval $ac_try) 2>&5
9203  ac_status=$?
9204  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205  (exit $ac_status); }; }; then
9206  ac_cv_lib_dl_dlopen=yes
9207else
9208  echo "$as_me: failed program was:" >&5
9209sed 's/^/| /' conftest.$ac_ext >&5
9210
9211ac_cv_lib_dl_dlopen=no
9212fi
9213rm -f conftest.err conftest.$ac_objext \
9214      conftest$ac_exeext conftest.$ac_ext
9215LIBS=$ac_check_lib_save_LIBS
9216fi
9217echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9218echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9219if test $ac_cv_lib_dl_dlopen = yes; then
9220  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9221else
9222  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9223echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9224if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9225  echo $ECHO_N "(cached) $ECHO_C" >&6
9226else
9227  ac_check_lib_save_LIBS=$LIBS
9228LIBS="-lsvld  $LIBS"
9229cat >conftest.$ac_ext <<_ACEOF
9230/* confdefs.h.  */
9231_ACEOF
9232cat confdefs.h >>conftest.$ac_ext
9233cat >>conftest.$ac_ext <<_ACEOF
9234/* end confdefs.h.  */
9235
9236/* Override any gcc2 internal prototype to avoid an error.  */
9237#ifdef __cplusplus
9238extern "C"
9239#endif
9240/* We use char because int might match the return type of a gcc2
9241   builtin and then its argument prototype would still apply.  */
9242char dlopen ();
9243int
9244main ()
9245{
9246dlopen ();
9247  ;
9248  return 0;
9249}
9250_ACEOF
9251rm -f conftest.$ac_objext conftest$ac_exeext
9252if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9253  (eval $ac_link) 2>conftest.er1
9254  ac_status=$?
9255  grep -v '^ *+' conftest.er1 >conftest.err
9256  rm -f conftest.er1
9257  cat conftest.err >&5
9258  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259  (exit $ac_status); } &&
9260         { ac_try='test -z "$ac_c_werror_flag"
9261                         || test ! -s conftest.err'
9262  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9263  (eval $ac_try) 2>&5
9264  ac_status=$?
9265  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266  (exit $ac_status); }; } &&
9267         { ac_try='test -s conftest$ac_exeext'
9268  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9269  (eval $ac_try) 2>&5
9270  ac_status=$?
9271  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272  (exit $ac_status); }; }; then
9273  ac_cv_lib_svld_dlopen=yes
9274else
9275  echo "$as_me: failed program was:" >&5
9276sed 's/^/| /' conftest.$ac_ext >&5
9277
9278ac_cv_lib_svld_dlopen=no
9279fi
9280rm -f conftest.err conftest.$ac_objext \
9281      conftest$ac_exeext conftest.$ac_ext
9282LIBS=$ac_check_lib_save_LIBS
9283fi
9284echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9285echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9286if test $ac_cv_lib_svld_dlopen = yes; then
9287  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9288else
9289  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9290echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9291if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9292  echo $ECHO_N "(cached) $ECHO_C" >&6
9293else
9294  ac_check_lib_save_LIBS=$LIBS
9295LIBS="-ldld  $LIBS"
9296cat >conftest.$ac_ext <<_ACEOF
9297/* confdefs.h.  */
9298_ACEOF
9299cat confdefs.h >>conftest.$ac_ext
9300cat >>conftest.$ac_ext <<_ACEOF
9301/* end confdefs.h.  */
9302
9303/* Override any gcc2 internal prototype to avoid an error.  */
9304#ifdef __cplusplus
9305extern "C"
9306#endif
9307/* We use char because int might match the return type of a gcc2
9308   builtin and then its argument prototype would still apply.  */
9309char dld_link ();
9310int
9311main ()
9312{
9313dld_link ();
9314  ;
9315  return 0;
9316}
9317_ACEOF
9318rm -f conftest.$ac_objext conftest$ac_exeext
9319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9320  (eval $ac_link) 2>conftest.er1
9321  ac_status=$?
9322  grep -v '^ *+' conftest.er1 >conftest.err
9323  rm -f conftest.er1
9324  cat conftest.err >&5
9325  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9326  (exit $ac_status); } &&
9327         { ac_try='test -z "$ac_c_werror_flag"
9328                         || test ! -s conftest.err'
9329  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9330  (eval $ac_try) 2>&5
9331  ac_status=$?
9332  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9333  (exit $ac_status); }; } &&
9334         { ac_try='test -s conftest$ac_exeext'
9335  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9336  (eval $ac_try) 2>&5
9337  ac_status=$?
9338  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9339  (exit $ac_status); }; }; then
9340  ac_cv_lib_dld_dld_link=yes
9341else
9342  echo "$as_me: failed program was:" >&5
9343sed 's/^/| /' conftest.$ac_ext >&5
9344
9345ac_cv_lib_dld_dld_link=no
9346fi
9347rm -f conftest.err conftest.$ac_objext \
9348      conftest$ac_exeext conftest.$ac_ext
9349LIBS=$ac_check_lib_save_LIBS
9350fi
9351echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9352echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9353if test $ac_cv_lib_dld_dld_link = yes; then
9354  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9355fi
9356
9357
9358fi
9359
9360
9361fi
9362
9363
9364fi
9365
9366
9367fi
9368
9369
9370fi
9371
9372    ;;
9373  esac
9374
9375  if test "x$lt_cv_dlopen" != xno; then
9376    enable_dlopen=yes
9377  else
9378    enable_dlopen=no
9379  fi
9380
9381  case $lt_cv_dlopen in
9382  dlopen)
9383    save_CPPFLAGS="$CPPFLAGS"
9384    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9385
9386    save_LDFLAGS="$LDFLAGS"
9387    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9388
9389    save_LIBS="$LIBS"
9390    LIBS="$lt_cv_dlopen_libs $LIBS"
9391
9392    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9393echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9394if test "${lt_cv_dlopen_self+set}" = set; then
9395  echo $ECHO_N "(cached) $ECHO_C" >&6
9396else
9397          if test "$cross_compiling" = yes; then :
9398  lt_cv_dlopen_self=cross
9399else
9400  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9401  lt_status=$lt_dlunknown
9402  cat > conftest.$ac_ext <<EOF
9403#line 9403 "configure"
9404#include "confdefs.h"
9405
9406#if HAVE_DLFCN_H
9407#include <dlfcn.h>
9408#endif
9409
9410#include <stdio.h>
9411
9412#ifdef RTLD_GLOBAL
9413#  define LT_DLGLOBAL           RTLD_GLOBAL
9414#else
9415#  ifdef DL_GLOBAL
9416#    define LT_DLGLOBAL         DL_GLOBAL
9417#  else
9418#    define LT_DLGLOBAL         0
9419#  endif
9420#endif
9421
9422/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9423   find out it does not work in some platform. */
9424#ifndef LT_DLLAZY_OR_NOW
9425#  ifdef RTLD_LAZY
9426#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9427#  else
9428#    ifdef DL_LAZY
9429#      define LT_DLLAZY_OR_NOW          DL_LAZY
9430#    else
9431#      ifdef RTLD_NOW
9432#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9433#      else
9434#        ifdef DL_NOW
9435#          define LT_DLLAZY_OR_NOW      DL_NOW
9436#        else
9437#          define LT_DLLAZY_OR_NOW      0
9438#        endif
9439#      endif
9440#    endif
9441#  endif
9442#endif
9443
9444#ifdef __cplusplus
9445extern "C" void exit (int);
9446#endif
9447
9448void fnord() { int i=42;}
9449int main ()
9450{
9451  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9452  int status = $lt_dlunknown;
9453
9454  if (self)
9455    {
9456      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9457      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9458      /* dlclose (self); */
9459    }
9460  else
9461    puts (dlerror ());
9462
9463    exit (status);
9464}
9465EOF
9466  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9467  (eval $ac_link) 2>&5
9468  ac_status=$?
9469  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9470  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9471    (./conftest; exit; ) >&5 2>/dev/null
9472    lt_status=$?
9473    case x$lt_status in
9474      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9475      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9476      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9477    esac
9478  else :
9479    # compilation failed
9480    lt_cv_dlopen_self=no
9481  fi
9482fi
9483rm -fr conftest*
9484
9485
9486fi
9487echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9488echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9489
9490    if test "x$lt_cv_dlopen_self" = xyes; then
9491      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9492      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9493echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9494if test "${lt_cv_dlopen_self_static+set}" = set; then
9495  echo $ECHO_N "(cached) $ECHO_C" >&6
9496else
9497          if test "$cross_compiling" = yes; then :
9498  lt_cv_dlopen_self_static=cross
9499else
9500  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9501  lt_status=$lt_dlunknown
9502  cat > conftest.$ac_ext <<EOF
9503#line 9503 "configure"
9504#include "confdefs.h"
9505
9506#if HAVE_DLFCN_H
9507#include <dlfcn.h>
9508#endif
9509
9510#include <stdio.h>
9511
9512#ifdef RTLD_GLOBAL
9513#  define LT_DLGLOBAL           RTLD_GLOBAL
9514#else
9515#  ifdef DL_GLOBAL
9516#    define LT_DLGLOBAL         DL_GLOBAL
9517#  else
9518#    define LT_DLGLOBAL         0
9519#  endif
9520#endif
9521
9522/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9523   find out it does not work in some platform. */
9524#ifndef LT_DLLAZY_OR_NOW
9525#  ifdef RTLD_LAZY
9526#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9527#  else
9528#    ifdef DL_LAZY
9529#      define LT_DLLAZY_OR_NOW          DL_LAZY
9530#    else
9531#      ifdef RTLD_NOW
9532#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9533#      else
9534#        ifdef DL_NOW
9535#          define LT_DLLAZY_OR_NOW      DL_NOW
9536#        else
9537#          define LT_DLLAZY_OR_NOW      0
9538#        endif
9539#      endif
9540#    endif
9541#  endif
9542#endif
9543
9544#ifdef __cplusplus
9545extern "C" void exit (int);
9546#endif
9547
9548void fnord() { int i=42;}
9549int main ()
9550{
9551  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9552  int status = $lt_dlunknown;
9553
9554  if (self)
9555    {
9556      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9557      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9558      /* dlclose (self); */
9559    }
9560  else
9561    puts (dlerror ());
9562
9563    exit (status);
9564}
9565EOF
9566  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9567  (eval $ac_link) 2>&5
9568  ac_status=$?
9569  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9570  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9571    (./conftest; exit; ) >&5 2>/dev/null
9572    lt_status=$?
9573    case x$lt_status in
9574      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9575      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9576      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9577    esac
9578  else :
9579    # compilation failed
9580    lt_cv_dlopen_self_static=no
9581  fi
9582fi
9583rm -fr conftest*
9584
9585
9586fi
9587echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9588echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9589    fi
9590
9591    CPPFLAGS="$save_CPPFLAGS"
9592    LDFLAGS="$save_LDFLAGS"
9593    LIBS="$save_LIBS"
9594    ;;
9595  esac
9596
9597  case $lt_cv_dlopen_self in
9598  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9599  *) enable_dlopen_self=unknown ;;
9600  esac
9601
9602  case $lt_cv_dlopen_self_static in
9603  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9604  *) enable_dlopen_self_static=unknown ;;
9605  esac
9606fi
9607
9608
9609# Report which library types will actually be built
9610echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9611echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9612echo "$as_me:$LINENO: result: $can_build_shared" >&5
9613echo "${ECHO_T}$can_build_shared" >&6
9614
9615echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9616echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9617test "$can_build_shared" = "no" && enable_shared=no
9618
9619# On AIX, shared libraries and static libraries use the same namespace, and
9620# are all built from PIC.
9621case $host_os in
9622aix3*)
9623  test "$enable_shared" = yes && enable_static=no
9624  if test -n "$RANLIB"; then
9625    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9626    postinstall_cmds='$RANLIB $lib'
9627  fi
9628  ;;
9629
9630aix4* | aix5*)
9631  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9632    test "$enable_shared" = yes && enable_static=no
9633  fi
9634    ;;
9635esac
9636echo "$as_me:$LINENO: result: $enable_shared" >&5
9637echo "${ECHO_T}$enable_shared" >&6
9638
9639echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9640echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9641# Make sure either enable_shared or enable_static is yes.
9642test "$enable_shared" = yes || enable_static=yes
9643echo "$as_me:$LINENO: result: $enable_static" >&5
9644echo "${ECHO_T}$enable_static" >&6
9645
9646# The else clause should only fire when bootstrapping the
9647# libtool distribution, otherwise you forgot to ship ltmain.sh
9648# with your package, and you will get complaints that there are
9649# no rules to generate ltmain.sh.
9650if test -f "$ltmain"; then
9651  # See if we are running on zsh, and set the options which allow our commands through
9652  # without removal of \ escapes.
9653  if test -n "${ZSH_VERSION+set}" ; then
9654    setopt NO_GLOB_SUBST
9655  fi
9656  # Now quote all the things that may contain metacharacters while being
9657  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9658  # variables and quote the copies for generation of the libtool script.
9659  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9660    SED SHELL STRIP \
9661    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9662    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9663    deplibs_check_method reload_flag reload_cmds need_locks \
9664    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9665    lt_cv_sys_global_symbol_to_c_name_address \
9666    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9667    old_postinstall_cmds old_postuninstall_cmds \
9668    compiler \
9669    CC \
9670    LD \
9671    lt_prog_compiler_wl \
9672    lt_prog_compiler_pic \
9673    lt_prog_compiler_static \
9674    lt_prog_compiler_no_builtin_flag \
9675    export_dynamic_flag_spec \
9676    thread_safe_flag_spec \
9677    whole_archive_flag_spec \
9678    enable_shared_with_static_runtimes \
9679    old_archive_cmds \
9680    old_archive_from_new_cmds \
9681    predep_objects \
9682    postdep_objects \
9683    predeps \
9684    postdeps \
9685    compiler_lib_search_path \
9686    archive_cmds \
9687    archive_expsym_cmds \
9688    postinstall_cmds \
9689    postuninstall_cmds \
9690    old_archive_from_expsyms_cmds \
9691    allow_undefined_flag \
9692    no_undefined_flag \
9693    export_symbols_cmds \
9694    hardcode_libdir_flag_spec \
9695    hardcode_libdir_flag_spec_ld \
9696    hardcode_libdir_separator \
9697    hardcode_automatic \
9698    module_cmds \
9699    module_expsym_cmds \
9700    lt_cv_prog_compiler_c_o \
9701    exclude_expsyms \
9702    include_expsyms; do
9703
9704    case $var in
9705    old_archive_cmds | \
9706    old_archive_from_new_cmds | \
9707    archive_cmds | \
9708    archive_expsym_cmds | \
9709    module_cmds | \
9710    module_expsym_cmds | \
9711    old_archive_from_expsyms_cmds | \
9712    export_symbols_cmds | \
9713    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9714    postinstall_cmds | postuninstall_cmds | \
9715    old_postinstall_cmds | old_postuninstall_cmds | \
9716    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9717      # Double-quote double-evaled strings.
9718      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9719      ;;
9720    *)
9721      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9722      ;;
9723    esac
9724  done
9725
9726  case $lt_echo in
9727  *'\$0 --fallback-echo"')
9728    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9729    ;;
9730  esac
9731
9732cfgfile="${ofile}T"
9733  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9734  $rm -f "$cfgfile"
9735  { echo "$as_me:$LINENO: creating $ofile" >&5
9736echo "$as_me: creating $ofile" >&6;}
9737
9738  cat <<__EOF__ >> "$cfgfile"
9739#! $SHELL
9740
9741# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9742# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9743# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9744#
9745# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9746# Free Software Foundation, Inc.
9747#
9748# This file is part of GNU Libtool:
9749# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9750#
9751# This program is free software; you can redistribute it and/or modify
9752# it under the terms of the GNU General Public License as published by
9753# the Free Software Foundation; either version 2 of the License, or
9754# (at your option) any later version.
9755#
9756# This program is distributed in the hope that it will be useful, but
9757# WITHOUT ANY WARRANTY; without even the implied warranty of
9758# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9759# General Public License for more details.
9760#
9761# You should have received a copy of the GNU General Public License
9762# along with this program; if not, write to the Free Software
9763# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9764#
9765# As a special exception to the GNU General Public License, if you
9766# distribute this file as part of a program that contains a
9767# configuration script generated by Autoconf, you may include it under
9768# the same distribution terms that you use for the rest of that program.
9769
9770# A sed program that does not truncate output.
9771SED=$lt_SED
9772
9773# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9774Xsed="$SED -e 1s/^X//"
9775
9776# The HP-UX ksh and POSIX shell print the target directory to stdout
9777# if CDPATH is set.
9778(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9779
9780# The names of the tagged configurations supported by this script.
9781available_tags=
9782
9783# ### BEGIN LIBTOOL CONFIG
9784
9785# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9786
9787# Shell to use when invoking shell scripts.
9788SHELL=$lt_SHELL
9789
9790# Whether or not to build shared libraries.
9791build_libtool_libs=$enable_shared
9792
9793# Whether or not to build static libraries.
9794build_old_libs=$enable_static
9795
9796# Whether or not to add -lc for building shared libraries.
9797build_libtool_need_lc=$archive_cmds_need_lc
9798
9799# Whether or not to disallow shared libs when runtime libs are static
9800allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9801
9802# Whether or not to optimize for fast installation.
9803fast_install=$enable_fast_install
9804
9805# The host system.
9806host_alias=$host_alias
9807host=$host
9808host_os=$host_os
9809
9810# The build system.
9811build_alias=$build_alias
9812build=$build
9813build_os=$build_os
9814
9815# An echo program that does not interpret backslashes.
9816echo=$lt_echo
9817
9818# The archiver.
9819AR=$lt_AR
9820AR_FLAGS=$lt_AR_FLAGS
9821
9822# A C compiler.
9823LTCC=$lt_LTCC
9824
9825# LTCC compiler flags.
9826LTCFLAGS=$lt_LTCFLAGS
9827
9828# A language-specific compiler.
9829CC=$lt_compiler
9830
9831# Is the compiler the GNU C compiler?
9832with_gcc=$GCC
9833
9834# An ERE matcher.
9835EGREP=$lt_EGREP
9836
9837# The linker used to build libraries.
9838LD=$lt_LD
9839
9840# Whether we need hard or soft links.
9841LN_S=$lt_LN_S
9842
9843# A BSD-compatible nm program.
9844NM=$lt_NM
9845
9846# A symbol stripping program
9847STRIP=$lt_STRIP
9848
9849# Used to examine libraries when file_magic_cmd begins "file"
9850MAGIC_CMD=$MAGIC_CMD
9851
9852# Used on cygwin: DLL creation program.
9853DLLTOOL="$DLLTOOL"
9854
9855# Used on cygwin: object dumper.
9856OBJDUMP="$OBJDUMP"
9857
9858# Used on cygwin: assembler.
9859AS="$AS"
9860
9861# The name of the directory that contains temporary libtool files.
9862objdir=$objdir
9863
9864# How to create reloadable object files.
9865reload_flag=$lt_reload_flag
9866reload_cmds=$lt_reload_cmds
9867
9868# How to pass a linker flag through the compiler.
9869wl=$lt_lt_prog_compiler_wl
9870
9871# Object file suffix (normally "o").
9872objext="$ac_objext"
9873
9874# Old archive suffix (normally "a").
9875libext="$libext"
9876
9877# Shared library suffix (normally ".so").
9878shrext_cmds='$shrext_cmds'
9879
9880# Executable file suffix (normally "").
9881exeext="$exeext"
9882
9883# Additional compiler flags for building library objects.
9884pic_flag=$lt_lt_prog_compiler_pic
9885pic_mode=$pic_mode
9886
9887# What is the maximum length of a command?
9888max_cmd_len=$lt_cv_sys_max_cmd_len
9889
9890# Does compiler simultaneously support -c and -o options?
9891compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9892
9893# Must we lock files when doing compilation?
9894need_locks=$lt_need_locks
9895
9896# Do we need the lib prefix for modules?
9897need_lib_prefix=$need_lib_prefix
9898
9899# Do we need a version for libraries?
9900need_version=$need_version
9901
9902# Whether dlopen is supported.
9903dlopen_support=$enable_dlopen
9904
9905# Whether dlopen of programs is supported.
9906dlopen_self=$enable_dlopen_self
9907
9908# Whether dlopen of statically linked programs is supported.
9909dlopen_self_static=$enable_dlopen_self_static
9910
9911# Compiler flag to prevent dynamic linking.
9912link_static_flag=$lt_lt_prog_compiler_static
9913
9914# Compiler flag to turn off builtin functions.
9915no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9916
9917# Compiler flag to allow reflexive dlopens.
9918export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9919
9920# Compiler flag to generate shared objects directly from archives.
9921whole_archive_flag_spec=$lt_whole_archive_flag_spec
9922
9923# Compiler flag to generate thread-safe objects.
9924thread_safe_flag_spec=$lt_thread_safe_flag_spec
9925
9926# Library versioning type.
9927version_type=$version_type
9928
9929# Format of library name prefix.
9930libname_spec=$lt_libname_spec
9931
9932# List of archive names.  First name is the real one, the rest are links.
9933# The last name is the one that the linker finds with -lNAME.
9934library_names_spec=$lt_library_names_spec
9935
9936# The coded name of the library, if different from the real name.
9937soname_spec=$lt_soname_spec
9938
9939# Commands used to build and install an old-style archive.
9940RANLIB=$lt_RANLIB
9941old_archive_cmds=$lt_old_archive_cmds
9942old_postinstall_cmds=$lt_old_postinstall_cmds
9943old_postuninstall_cmds=$lt_old_postuninstall_cmds
9944
9945# Create an old-style archive from a shared archive.
9946old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9947
9948# Create a temporary old-style archive to link instead of a shared archive.
9949old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9950
9951# Commands used to build and install a shared archive.
9952archive_cmds=$lt_archive_cmds
9953archive_expsym_cmds=$lt_archive_expsym_cmds
9954postinstall_cmds=$lt_postinstall_cmds
9955postuninstall_cmds=$lt_postuninstall_cmds
9956
9957# Commands used to build a loadable module (assumed same as above if empty)
9958module_cmds=$lt_module_cmds
9959module_expsym_cmds=$lt_module_expsym_cmds
9960
9961# Commands to strip libraries.
9962old_striplib=$lt_old_striplib
9963striplib=$lt_striplib
9964
9965# Dependencies to place before the objects being linked to create a
9966# shared library.
9967predep_objects=$lt_predep_objects
9968
9969# Dependencies to place after the objects being linked to create a
9970# shared library.
9971postdep_objects=$lt_postdep_objects
9972
9973# Dependencies to place before the objects being linked to create a
9974# shared library.
9975predeps=$lt_predeps
9976
9977# Dependencies to place after the objects being linked to create a
9978# shared library.
9979postdeps=$lt_postdeps
9980
9981# The library search path used internally by the compiler when linking
9982# a shared library.
9983compiler_lib_search_path=$lt_compiler_lib_search_path
9984
9985# Method to check whether dependent libraries are shared objects.
9986deplibs_check_method=$lt_deplibs_check_method
9987
9988# Command to use when deplibs_check_method == file_magic.
9989file_magic_cmd=$lt_file_magic_cmd
9990
9991# Flag that allows shared libraries with undefined symbols to be built.
9992allow_undefined_flag=$lt_allow_undefined_flag
9993
9994# Flag that forces no undefined symbols.
9995no_undefined_flag=$lt_no_undefined_flag
9996
9997# Commands used to finish a libtool library installation in a directory.
9998finish_cmds=$lt_finish_cmds
9999
10000# Same as above, but a single script fragment to be evaled but not shown.
10001finish_eval=$lt_finish_eval
10002
10003# Take the output of nm and produce a listing of raw symbols and C names.
10004global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10005
10006# Transform the output of nm in a proper C declaration
10007global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10008
10009# Transform the output of nm in a C name address pair
10010global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10011
10012# This is the shared library runtime path variable.
10013runpath_var=$runpath_var
10014
10015# This is the shared library path variable.
10016shlibpath_var=$shlibpath_var
10017
10018# Is shlibpath searched before the hard-coded library search path?
10019shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10020
10021# How to hardcode a shared library path into an executable.
10022hardcode_action=$hardcode_action
10023
10024# Whether we should hardcode library paths into libraries.
10025hardcode_into_libs=$hardcode_into_libs
10026
10027# Flag to hardcode \$libdir into a binary during linking.
10028# This must work even if \$libdir does not exist.
10029hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10030
10031# If ld is used when linking, flag to hardcode \$libdir into
10032# a binary during linking. This must work even if \$libdir does
10033# not exist.
10034hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10035
10036# Whether we need a single -rpath flag with a separated argument.
10037hardcode_libdir_separator=$lt_hardcode_libdir_separator
10038
10039# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10040# resulting binary.
10041hardcode_direct=$hardcode_direct
10042
10043# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10044# resulting binary.
10045hardcode_minus_L=$hardcode_minus_L
10046
10047# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10048# the resulting binary.
10049hardcode_shlibpath_var=$hardcode_shlibpath_var
10050
10051# Set to yes if building a shared library automatically hardcodes DIR into the library
10052# and all subsequent libraries and executables linked against it.
10053hardcode_automatic=$hardcode_automatic
10054
10055# Variables whose values should be saved in libtool wrapper scripts and
10056# restored at relink time.
10057variables_saved_for_relink="$variables_saved_for_relink"
10058
10059# Whether libtool must link a program against all its dependency libraries.
10060link_all_deplibs=$link_all_deplibs
10061
10062# Compile-time system search path for libraries
10063sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10064
10065# Run-time system search path for libraries
10066sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10067
10068# Fix the shell variable \$srcfile for the compiler.
10069fix_srcfile_path="$fix_srcfile_path"
10070
10071# Set to yes if exported symbols are required.
10072always_export_symbols=$always_export_symbols
10073
10074# The commands to list exported symbols.
10075export_symbols_cmds=$lt_export_symbols_cmds
10076
10077# The commands to extract the exported symbol list from a shared archive.
10078extract_expsyms_cmds=$lt_extract_expsyms_cmds
10079
10080# Symbols that should not be listed in the preloaded symbols.
10081exclude_expsyms=$lt_exclude_expsyms
10082
10083# Symbols that must always be exported.
10084include_expsyms=$lt_include_expsyms
10085
10086# ### END LIBTOOL CONFIG
10087
10088__EOF__
10089
10090
10091  case $host_os in
10092  aix3*)
10093    cat <<\EOF >> "$cfgfile"
10094
10095# AIX sometimes has problems with the GCC collect2 program.  For some
10096# reason, if we set the COLLECT_NAMES environment variable, the problems
10097# vanish in a puff of smoke.
10098if test "X${COLLECT_NAMES+set}" != Xset; then
10099  COLLECT_NAMES=
10100  export COLLECT_NAMES
10101fi
10102EOF
10103    ;;
10104  esac
10105
10106  # We use sed instead of cat because bash on DJGPP gets confused if
10107  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10108  # text mode, it properly converts lines to CR/LF.  This bash problem
10109  # is reportedly fixed, but why not run on old versions too?
10110  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10111
10112  mv -f "$cfgfile" "$ofile" || \
10113    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10114  chmod +x "$ofile"
10115
10116else
10117  # If there is no Makefile yet, we rely on a make rule to execute
10118  # `config.status --recheck' to rerun these tests and create the
10119  # libtool script then.
10120  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10121  if test -f "$ltmain_in"; then
10122    test -f Makefile && make "$ltmain"
10123  fi
10124fi
10125
10126
10127ac_ext=c
10128ac_cpp='$CPP $CPPFLAGS'
10129ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10130ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10131ac_compiler_gnu=$ac_cv_c_compiler_gnu
10132
10133CC="$lt_save_CC"
10134
10135
10136# Check whether --with-tags or --without-tags was given.
10137if test "${with_tags+set}" = set; then
10138  withval="$with_tags"
10139  tagnames="$withval"
10140fi;
10141
10142if test -f "$ltmain" && test -n "$tagnames"; then
10143  if test ! -f "${ofile}"; then
10144    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10145echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10146  fi
10147
10148  if test -z "$LTCC"; then
10149    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10150    if test -z "$LTCC"; then
10151      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10152echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10153    else
10154      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10155echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10156    fi
10157  fi
10158  if test -z "$LTCFLAGS"; then
10159    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10160  fi
10161
10162  # Extract list of available tagged configurations in $ofile.
10163  # Note that this assumes the entire list is on one line.
10164  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10165
10166  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10167  for tagname in $tagnames; do
10168    IFS="$lt_save_ifs"
10169    # Check whether tagname contains only valid characters
10170    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10171    "") ;;
10172    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10173echo "$as_me: error: invalid tag name: $tagname" >&2;}
10174   { (exit 1); exit 1; }; }
10175        ;;
10176    esac
10177
10178    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10179    then
10180      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10181echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10182   { (exit 1); exit 1; }; }
10183    fi
10184
10185    # Update the list of available tags.
10186    if test -n "$tagname"; then
10187      echo appending configuration tag \"$tagname\" to $ofile
10188
10189      case $tagname in
10190      CXX)
10191        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10192            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10193            (test "X$CXX" != "Xg++"))) ; then
10194          ac_ext=cc
10195ac_cpp='$CXXCPP $CPPFLAGS'
10196ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10197ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10198ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10199
10200
10201
10202
10203archive_cmds_need_lc_CXX=no
10204allow_undefined_flag_CXX=
10205always_export_symbols_CXX=no
10206archive_expsym_cmds_CXX=
10207export_dynamic_flag_spec_CXX=
10208hardcode_direct_CXX=no
10209hardcode_libdir_flag_spec_CXX=
10210hardcode_libdir_flag_spec_ld_CXX=
10211hardcode_libdir_separator_CXX=
10212hardcode_minus_L_CXX=no
10213hardcode_shlibpath_var_CXX=unsupported
10214hardcode_automatic_CXX=no
10215module_cmds_CXX=
10216module_expsym_cmds_CXX=
10217link_all_deplibs_CXX=unknown
10218old_archive_cmds_CXX=$old_archive_cmds
10219no_undefined_flag_CXX=
10220whole_archive_flag_spec_CXX=
10221enable_shared_with_static_runtimes_CXX=no
10222
10223# Dependencies to place before and after the object being linked:
10224predep_objects_CXX=
10225postdep_objects_CXX=
10226predeps_CXX=
10227postdeps_CXX=
10228compiler_lib_search_path_CXX=
10229
10230# Source file extension for C++ test sources.
10231ac_ext=cpp
10232
10233# Object file extension for compiled C++ test sources.
10234objext=o
10235objext_CXX=$objext
10236
10237# Code to be used in simple compile tests
10238lt_simple_compile_test_code="int some_variable = 0;\n"
10239
10240# Code to be used in simple link tests
10241lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10242
10243# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10244
10245# If no C compiler was specified, use CC.
10246LTCC=${LTCC-"$CC"}
10247
10248# If no C compiler flags were specified, use CFLAGS.
10249LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10250
10251# Allow CC to be a program name with arguments.
10252compiler=$CC
10253
10254
10255# save warnings/boilerplate of simple test code
10256ac_outfile=conftest.$ac_objext
10257printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10258eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10259_lt_compiler_boilerplate=`cat conftest.err`
10260$rm conftest*
10261
10262ac_outfile=conftest.$ac_objext
10263printf "$lt_simple_link_test_code" >conftest.$ac_ext
10264eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10265_lt_linker_boilerplate=`cat conftest.err`
10266$rm conftest*
10267
10268
10269# Allow CC to be a program name with arguments.
10270lt_save_CC=$CC
10271lt_save_LD=$LD
10272lt_save_GCC=$GCC
10273GCC=$GXX
10274lt_save_with_gnu_ld=$with_gnu_ld
10275lt_save_path_LD=$lt_cv_path_LD
10276if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10277  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10278else
10279  $as_unset lt_cv_prog_gnu_ld
10280fi
10281if test -n "${lt_cv_path_LDCXX+set}"; then
10282  lt_cv_path_LD=$lt_cv_path_LDCXX
10283else
10284  $as_unset lt_cv_path_LD
10285fi
10286test -z "${LDCXX+set}" || LD=$LDCXX
10287CC=${CXX-"c++"}
10288compiler=$CC
10289compiler_CXX=$CC
10290for cc_temp in $compiler""; do
10291  case $cc_temp in
10292    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10293    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10294    \-*) ;;
10295    *) break;;
10296  esac
10297done
10298cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10299
10300
10301# We don't want -fno-exception wen compiling C++ code, so set the
10302# no_builtin_flag separately
10303if test "$GXX" = yes; then
10304  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10305else
10306  lt_prog_compiler_no_builtin_flag_CXX=
10307fi
10308
10309if test "$GXX" = yes; then
10310  # Set up default GNU C++ configuration
10311
10312
10313# Check whether --with-gnu-ld or --without-gnu-ld was given.
10314if test "${with_gnu_ld+set}" = set; then
10315  withval="$with_gnu_ld"
10316  test "$withval" = no || with_gnu_ld=yes
10317else
10318  with_gnu_ld=no
10319fi;
10320ac_prog=ld
10321if test "$GCC" = yes; then
10322  # Check if gcc -print-prog-name=ld gives a path.
10323  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10324echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10325  case $host in
10326  *-*-mingw*)
10327    # gcc leaves a trailing carriage return which upsets mingw
10328    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10329  *)
10330    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10331  esac
10332  case $ac_prog in
10333    # Accept absolute paths.
10334    [\\/]* | ?:[\\/]*)
10335      re_direlt='/[^/][^/]*/\.\./'
10336      # Canonicalize the pathname of ld
10337      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10338      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10339        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10340      done
10341      test -z "$LD" && LD="$ac_prog"
10342      ;;
10343  "")
10344    # If it fails, then pretend we aren't using GCC.
10345    ac_prog=ld
10346    ;;
10347  *)
10348    # If it is relative, then search for the first ld in PATH.
10349    with_gnu_ld=unknown
10350    ;;
10351  esac
10352elif test "$with_gnu_ld" = yes; then
10353  echo "$as_me:$LINENO: checking for GNU ld" >&5
10354echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10355else
10356  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10357echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10358fi
10359if test "${lt_cv_path_LD+set}" = set; then
10360  echo $ECHO_N "(cached) $ECHO_C" >&6
10361else
10362  if test -z "$LD"; then
10363  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10364  for ac_dir in $PATH; do
10365    IFS="$lt_save_ifs"
10366    test -z "$ac_dir" && ac_dir=.
10367    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10368      lt_cv_path_LD="$ac_dir/$ac_prog"
10369      # Check to see if the program is GNU ld.  I'd rather use --version,
10370      # but apparently some variants of GNU ld only accept -v.
10371      # Break only if it was the GNU/non-GNU ld that we prefer.
10372      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10373      *GNU* | *'with BFD'*)
10374        test "$with_gnu_ld" != no && break
10375        ;;
10376      *)
10377        test "$with_gnu_ld" != yes && break
10378        ;;
10379      esac
10380    fi
10381  done
10382  IFS="$lt_save_ifs"
10383else
10384  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10385fi
10386fi
10387
10388LD="$lt_cv_path_LD"
10389if test -n "$LD"; then
10390  echo "$as_me:$LINENO: result: $LD" >&5
10391echo "${ECHO_T}$LD" >&6
10392else
10393  echo "$as_me:$LINENO: result: no" >&5
10394echo "${ECHO_T}no" >&6
10395fi
10396test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10397echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10398   { (exit 1); exit 1; }; }
10399echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10400echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10401if test "${lt_cv_prog_gnu_ld+set}" = set; then
10402  echo $ECHO_N "(cached) $ECHO_C" >&6
10403else
10404  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10405case `$LD -v 2>&1 </dev/null` in
10406*GNU* | *'with BFD'*)
10407  lt_cv_prog_gnu_ld=yes
10408  ;;
10409*)
10410  lt_cv_prog_gnu_ld=no
10411  ;;
10412esac
10413fi
10414echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10415echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10416with_gnu_ld=$lt_cv_prog_gnu_ld
10417
10418
10419
10420  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10421  # archiving commands below assume that GNU ld is being used.
10422  if test "$with_gnu_ld" = yes; then
10423    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10424    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'
10425
10426    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10427    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10428
10429    # If archive_cmds runs LD, not CC, wlarc should be empty
10430    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10431    #     investigate it a little bit more. (MM)
10432    wlarc='${wl}'
10433
10434    # ancient GNU ld didn't support --whole-archive et. al.
10435    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10436        grep 'no-whole-archive' > /dev/null; then
10437      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10438    else
10439      whole_archive_flag_spec_CXX=
10440    fi
10441  else
10442    with_gnu_ld=no
10443    wlarc=
10444
10445    # A generic and very simple default shared library creation
10446    # command for GNU C++ for the case where it uses the native
10447    # linker, instead of GNU ld.  If possible, this setting should
10448    # overridden to take advantage of the native linker features on
10449    # the platform it is being used on.
10450    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10451  fi
10452
10453  # Commands to make compiler produce verbose output that lists
10454  # what "hidden" libraries, object files and flags are used when
10455  # linking a shared library.
10456  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10457
10458else
10459  GXX=no
10460  with_gnu_ld=no
10461  wlarc=
10462fi
10463
10464# PORTME: fill in a description of your system's C++ link characteristics
10465echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10466echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10467ld_shlibs_CXX=yes
10468case $host_os in
10469  aix3*)
10470    # FIXME: insert proper C++ library support
10471    ld_shlibs_CXX=no
10472    ;;
10473  aix4* | aix5*)
10474    if test "$host_cpu" = ia64; then
10475      # On IA64, the linker does run time linking by default, so we don't
10476      # have to do anything special.
10477      aix_use_runtimelinking=no
10478      exp_sym_flag='-Bexport'
10479      no_entry_flag=""
10480    else
10481      aix_use_runtimelinking=no
10482
10483      # Test if we are trying to use run time linking or normal
10484      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10485      # need to do runtime linking.
10486      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10487        for ld_flag in $LDFLAGS; do
10488          case $ld_flag in
10489          *-brtl*)
10490            aix_use_runtimelinking=yes
10491            break
10492            ;;
10493          esac
10494        done
10495        ;;
10496      esac
10497
10498      exp_sym_flag='-bexport'
10499      no_entry_flag='-bnoentry'
10500    fi
10501
10502    # When large executables or shared objects are built, AIX ld can
10503    # have problems creating the table of contents.  If linking a library
10504    # or program results in "error TOC overflow" add -mminimal-toc to
10505    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10506    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10507
10508    archive_cmds_CXX=''
10509    hardcode_direct_CXX=yes
10510    hardcode_libdir_separator_CXX=':'
10511    link_all_deplibs_CXX=yes
10512
10513    if test "$GXX" = yes; then
10514      case $host_os in aix4.[012]|aix4.[012].*)
10515      # We only want to do this on AIX 4.2 and lower, the check
10516      # below for broken collect2 doesn't work under 4.3+
10517        collect2name=`${CC} -print-prog-name=collect2`
10518        if test -f "$collect2name" && \
10519           strings "$collect2name" | grep resolve_lib_name >/dev/null
10520        then
10521          # We have reworked collect2
10522          hardcode_direct_CXX=yes
10523        else
10524          # We have old collect2
10525          hardcode_direct_CXX=unsupported
10526          # It fails to find uninstalled libraries when the uninstalled
10527          # path is not listed in the libpath.  Setting hardcode_minus_L
10528          # to unsupported forces relinking
10529          hardcode_minus_L_CXX=yes
10530          hardcode_libdir_flag_spec_CXX='-L$libdir'
10531          hardcode_libdir_separator_CXX=
10532        fi
10533        ;;
10534      esac
10535      shared_flag='-shared'
10536      if test "$aix_use_runtimelinking" = yes; then
10537        shared_flag="$shared_flag "'${wl}-G'
10538      fi
10539    else
10540      # not using gcc
10541      if test "$host_cpu" = ia64; then
10542        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10543        # chokes on -Wl,-G. The following line is correct:
10544        shared_flag='-G'
10545      else
10546        if test "$aix_use_runtimelinking" = yes; then
10547          shared_flag='${wl}-G'
10548        else
10549          shared_flag='${wl}-bM:SRE'
10550        fi
10551      fi
10552    fi
10553
10554    # It seems that -bexpall does not export symbols beginning with
10555    # underscore (_), so it is better to generate a list of symbols to export.
10556    always_export_symbols_CXX=yes
10557    if test "$aix_use_runtimelinking" = yes; then
10558      # Warning - without using the other runtime loading flags (-brtl),
10559      # -berok will link without error, but may produce a broken library.
10560      allow_undefined_flag_CXX='-berok'
10561      # Determine the default libpath from the value encoded in an empty executable.
10562      cat >conftest.$ac_ext <<_ACEOF
10563/* confdefs.h.  */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h.  */
10568
10569int
10570main ()
10571{
10572
10573  ;
10574  return 0;
10575}
10576_ACEOF
10577rm -f conftest.$ac_objext conftest$ac_exeext
10578if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10579  (eval $ac_link) 2>conftest.er1
10580  ac_status=$?
10581  grep -v '^ *+' conftest.er1 >conftest.err
10582  rm -f conftest.er1
10583  cat conftest.err >&5
10584  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585  (exit $ac_status); } &&
10586         { ac_try='test -z "$ac_cxx_werror_flag"
10587                         || test ! -s conftest.err'
10588  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10589  (eval $ac_try) 2>&5
10590  ac_status=$?
10591  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10592  (exit $ac_status); }; } &&
10593         { ac_try='test -s conftest$ac_exeext'
10594  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10595  (eval $ac_try) 2>&5
10596  ac_status=$?
10597  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10598  (exit $ac_status); }; }; then
10599
10600aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10601}'`
10602# Check for a 64-bit object if we didn't find anything.
10603if 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; }
10604}'`; fi
10605else
10606  echo "$as_me: failed program was:" >&5
10607sed 's/^/| /' conftest.$ac_ext >&5
10608
10609fi
10610rm -f conftest.err conftest.$ac_objext \
10611      conftest$ac_exeext conftest.$ac_ext
10612if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10613
10614      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10615
10616      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"
10617     else
10618      if test "$host_cpu" = ia64; then
10619        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10620        allow_undefined_flag_CXX="-z nodefs"
10621        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"
10622      else
10623        # Determine the default libpath from the value encoded in an empty executable.
10624        cat >conftest.$ac_ext <<_ACEOF
10625/* confdefs.h.  */
10626_ACEOF
10627cat confdefs.h >>conftest.$ac_ext
10628cat >>conftest.$ac_ext <<_ACEOF
10629/* end confdefs.h.  */
10630
10631int
10632main ()
10633{
10634
10635  ;
10636  return 0;
10637}
10638_ACEOF
10639rm -f conftest.$ac_objext conftest$ac_exeext
10640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10641  (eval $ac_link) 2>conftest.er1
10642  ac_status=$?
10643  grep -v '^ *+' conftest.er1 >conftest.err
10644  rm -f conftest.er1
10645  cat conftest.err >&5
10646  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647  (exit $ac_status); } &&
10648         { ac_try='test -z "$ac_cxx_werror_flag"
10649                         || test ! -s conftest.err'
10650  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10651  (eval $ac_try) 2>&5
10652  ac_status=$?
10653  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654  (exit $ac_status); }; } &&
10655         { ac_try='test -s conftest$ac_exeext'
10656  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10657  (eval $ac_try) 2>&5
10658  ac_status=$?
10659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660  (exit $ac_status); }; }; then
10661
10662aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10663}'`
10664# Check for a 64-bit object if we didn't find anything.
10665if 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; }
10666}'`; fi
10667else
10668  echo "$as_me: failed program was:" >&5
10669sed 's/^/| /' conftest.$ac_ext >&5
10670
10671fi
10672rm -f conftest.err conftest.$ac_objext \
10673      conftest$ac_exeext conftest.$ac_ext
10674if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10675
10676        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10677        # Warning - without using the other run time loading flags,
10678        # -berok will link without error, but may produce a broken library.
10679        no_undefined_flag_CXX=' ${wl}-bernotok'
10680        allow_undefined_flag_CXX=' ${wl}-berok'
10681        # Exported symbols can be pulled into shared objects from archives
10682        whole_archive_flag_spec_CXX='$convenience'
10683        archive_cmds_need_lc_CXX=yes
10684        # This is similar to how AIX traditionally builds its shared libraries.
10685        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'
10686      fi
10687    fi
10688    ;;
10689
10690  beos*)
10691    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10692      allow_undefined_flag_CXX=unsupported
10693      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10694      # support --undefined.  This deserves some investigation.  FIXME
10695      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10696    else
10697      ld_shlibs_CXX=no
10698    fi
10699    ;;
10700
10701  chorus*)
10702    case $cc_basename in
10703      *)
10704        # FIXME: insert proper C++ library support
10705        ld_shlibs_CXX=no
10706        ;;
10707    esac
10708    ;;
10709
10710  cygwin* | mingw* | pw32*)
10711    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10712    # as there is no search path for DLLs.
10713    hardcode_libdir_flag_spec_CXX='-L$libdir'
10714    allow_undefined_flag_CXX=unsupported
10715    always_export_symbols_CXX=no
10716    enable_shared_with_static_runtimes_CXX=yes
10717
10718    if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10719      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'
10720      # If the export-symbols file already is a .def file (1st line
10721      # is EXPORTS), use it as is; otherwise, prepend...
10722      archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10723        cp $export_symbols $output_objdir/$soname.def;
10724      else
10725        echo EXPORTS > $output_objdir/$soname.def;
10726        cat $export_symbols >> $output_objdir/$soname.def;
10727      fi~
10728      $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'
10729    else
10730      ld_shlibs_CXX=no
10731    fi
10732  ;;
10733      darwin* | rhapsody*)
10734        case $host_os in
10735        rhapsody* | darwin1.[012])
10736         allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10737         ;;
10738       *) # Darwin 1.3 on
10739         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10740           allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10741         else
10742           case ${MACOSX_DEPLOYMENT_TARGET} in
10743             10.[012])
10744               allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10745               ;;
10746             10.*)
10747               allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10748               ;;
10749           esac
10750         fi
10751         ;;
10752        esac
10753      archive_cmds_need_lc_CXX=no
10754      hardcode_direct_CXX=no
10755      hardcode_automatic_CXX=yes
10756      hardcode_shlibpath_var_CXX=unsupported
10757      whole_archive_flag_spec_CXX=''
10758      link_all_deplibs_CXX=yes
10759
10760    if test "$GXX" = yes ; then
10761      lt_int_apple_cc_single_mod=no
10762      output_verbose_link_cmd='echo'
10763      if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10764       lt_int_apple_cc_single_mod=yes
10765      fi
10766      if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10767       archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10768      else
10769          archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10770        fi