source: trunk/Cbc/configure @ 326

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

several fixes for Cygwin; corrected -no-undefined for Darwin

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