source: trunk/Cbc/configure @ 347

Last change on this file since 347 was 347, checked in by andreasw, 13 years ago

improved check for correct version of autotools

  • Property svn:executable set to *
File size: 741.3 KB
Line 
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.59 for Cbc 0.1.
4#
5# Report bugs to <coin-cbc@list.coin-or.org>.
6#
7# Copyright (C) 2003 Free Software Foundation, Inc.
8# This configure script is free software; the Free Software Foundation
9# gives unlimited permission to copy, distribute and modify it.
10#
11#
12# Copyright 2006 International Business Machines and others.
13# All Rights Reserved.
14# This file is part of the open source package Coin which is distributed
15# under the Common Public License.
16## --------------------- ##
17## M4sh Initialization.  ##
18## --------------------- ##
19
20# Be Bourne compatible
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22  emulate sh
23  NULLCMD=:
24  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
28  set -o posix
29fi
30DUALCASE=1; export DUALCASE # for MKS sh
31
32# Support unset when possible.
33if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
34  as_unset=unset
35else
36  as_unset=false
37fi
38
39
40# Work around bugs in pre-3.0 UWIN ksh.
41$as_unset ENV MAIL MAILPATH
42PS1='$ '
43PS2='> '
44PS4='+ '
45
46# NLS nuisances.
47for as_var in \
48  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
49  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
50  LC_TELEPHONE LC_TIME
51do
52  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
53    eval $as_var=C; export $as_var
54  else
55    $as_unset $as_var
56  fi
57done
58
59# Required to use basename.
60if expr a : '\(a\)' >/dev/null 2>&1; then
61  as_expr=expr
62else
63  as_expr=false
64fi
65
66if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
67  as_basename=basename
68else
69  as_basename=false
70fi
71
72
73# Name of the executable.
74as_me=`$as_basename "$0" ||
75$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
76         X"$0" : 'X\(//\)$' \| \
77         X"$0" : 'X\(/\)$' \| \
78         .     : '\(.\)' 2>/dev/null ||
79echo X/"$0" |
80    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
81          /^X\/\(\/\/\)$/{ s//\1/; q; }
82          /^X\/\(\/\).*/{ s//\1/; q; }
83          s/.*/./; q'`
84
85
86# PATH needs CR, and LINENO needs CR and PATH.
87# Avoid depending upon Character Ranges.
88as_cr_letters='abcdefghijklmnopqrstuvwxyz'
89as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
90as_cr_Letters=$as_cr_letters$as_cr_LETTERS
91as_cr_digits='0123456789'
92as_cr_alnum=$as_cr_Letters$as_cr_digits
93
94# The user is always right.
95if test "${PATH_SEPARATOR+set}" != set; then
96  echo "#! /bin/sh" >conf$$.sh
97  echo  "exit 0"   >>conf$$.sh
98  chmod +x conf$$.sh
99  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
100    PATH_SEPARATOR=';'
101  else
102    PATH_SEPARATOR=:
103  fi
104  rm -f conf$$.sh
105fi
106
107
108  as_lineno_1=$LINENO
109  as_lineno_2=$LINENO
110  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
111  test "x$as_lineno_1" != "x$as_lineno_2" &&
112  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
113  # Find who we are.  Look in the path if we contain no path at all
114  # relative or not.
115  case $0 in
116    *[\\/]* ) as_myself=$0 ;;
117    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118for as_dir in $PATH
119do
120  IFS=$as_save_IFS
121  test -z "$as_dir" && as_dir=.
122  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
123done
124
125       ;;
126  esac
127  # We did not find ourselves, most probably we were run as `sh COMMAND'
128  # in which case we are not to be found in the path.
129  if test "x$as_myself" = x; then
130    as_myself=$0
131  fi
132  if test ! -f "$as_myself"; then
133    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
134   { (exit 1); exit 1; }; }
135  fi
136  case $CONFIG_SHELL in
137  '')
138    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
140do
141  IFS=$as_save_IFS
142  test -z "$as_dir" && as_dir=.
143  for as_base in sh bash ksh sh5; do
144         case $as_dir in
145         /*)
146           if ("$as_dir/$as_base" -c '
147  as_lineno_1=$LINENO
148  as_lineno_2=$LINENO
149  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
150  test "x$as_lineno_1" != "x$as_lineno_2" &&
151  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
152             $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
153             $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
154             CONFIG_SHELL=$as_dir/$as_base
155             export CONFIG_SHELL
156             exec "$CONFIG_SHELL" "$0" ${1+"$@"}
157           fi;;
158         esac
159       done
160done
161;;
162  esac
163
164  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
165  # uniformly replaced by the line number.  The first 'sed' inserts a
166  # line-number line before each line; the second 'sed' does the real
167  # work.  The second script uses 'N' to pair each line-number line
168  # with the numbered line, and appends trailing '-' during
169  # substitution so that $LINENO is not a special case at line end.
170  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
171  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
172  sed '=' <$as_myself |
173    sed '
174      N
175      s,$,-,
176      : loop
177      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
178      t loop
179      s,-$,,
180      s,^['$as_cr_digits']*\n,,
181    ' >$as_me.lineno &&
182  chmod +x $as_me.lineno ||
183    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
184   { (exit 1); exit 1; }; }
185
186  # Don't try to exec as it changes $[0], causing all sort of problems
187  # (the dirname of $[0] is not the place where we might find the
188  # original and so on.  Autoconf is especially sensible to this).
189  . ./$as_me.lineno
190  # Exit status is that of the last command.
191  exit
192}
193
194
195case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
196  *c*,-n*) ECHO_N= ECHO_C='
197' ECHO_T='      ' ;;
198  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
199  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
200esac
201
202if expr a : '\(a\)' >/dev/null 2>&1; then
203  as_expr=expr
204else
205  as_expr=false
206fi
207
208rm -f conf$$ conf$$.exe conf$$.file
209echo >conf$$.file
210if ln -s conf$$.file conf$$ 2>/dev/null; then
211  # We could just check for DJGPP; but this test a) works b) is more generic
212  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
213  if test -f conf$$.exe; then
214    # Don't use ln at all; we don't have any links
215    as_ln_s='cp -p'
216  else
217    as_ln_s='ln -s'
218  fi
219elif ln conf$$.file conf$$ 2>/dev/null; then
220  as_ln_s=ln
221else
222  as_ln_s='cp -p'
223fi
224rm -f conf$$ conf$$.exe conf$$.file
225
226if mkdir -p . 2>/dev/null; then
227  as_mkdir_p=:
228else
229  test -d ./-p && rmdir ./-p
230  as_mkdir_p=false
231fi
232
233as_executable_p="test -f"
234
235# Sed expression to map a string onto a valid CPP name.
236as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
237
238# Sed expression to map a string onto a valid variable name.
239as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
240
241
242# IFS
243# We need space, tab and new line, in precisely that order.
244as_nl='
245'
246IFS="   $as_nl"
247
248# CDPATH.
249$as_unset CDPATH
250
251
252
253# Check that we are running under the correct shell.
254SHELL=${CONFIG_SHELL-/bin/sh}
255
256case X$ECHO in
257X*--fallback-echo)
258  # Remove one level of quotation (which was required for Make).
259  ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
260  ;;
261esac
262
263echo=${ECHO-echo}
264if test "X$1" = X--no-reexec; then
265  # Discard the --no-reexec flag, and continue.
266  shift
267elif test "X$1" = X--fallback-echo; then
268  # Avoid inline document here, it may be left over
269  :
270elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
271  # Yippee, $echo works!
272  :
273else
274  # Restart under the correct shell.
275  exec $SHELL "$0" --no-reexec ${1+"$@"}
276fi
277
278if test "X$1" = X--fallback-echo; then
279  # used as fallback echo
280  shift
281  cat <<EOF
282$*
283EOF
284  exit 0
285fi
286
287# The HP-UX ksh and POSIX shell print the target directory to stdout
288# if CDPATH is set.
289(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
290
291if test -z "$ECHO"; then
292if test "X${echo_test_string+set}" != Xset; then
293# find a string as large as possible, as long as the shell can cope with it
294  for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
295    # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
296    if (echo_test_string=`eval $cmd`) 2>/dev/null &&
297       echo_test_string=`eval $cmd` &&
298       (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
299    then
300      break
301    fi
302  done
303fi
304
305if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
306   echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
307   test "X$echo_testing_string" = "X$echo_test_string"; then
308  :
309else
310  # The Solaris, AIX, and Digital Unix default echo programs unquote
311  # backslashes.  This makes it impossible to quote backslashes using
312  #   echo "$something" | sed 's/\\/\\\\/g'
313  #
314  # So, first we look for a working echo in the user's PATH.
315
316  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
317  for dir in $PATH /usr/ucb; do
318    IFS="$lt_save_ifs"
319    if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
320       test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
321       echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
322       test "X$echo_testing_string" = "X$echo_test_string"; then
323      echo="$dir/echo"
324      break
325    fi
326  done
327  IFS="$lt_save_ifs"
328
329  if test "X$echo" = Xecho; then
330    # We didn't find a better echo, so look for alternatives.
331    if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
332       echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
333       test "X$echo_testing_string" = "X$echo_test_string"; then
334      # This shell has a builtin print -r that does the trick.
335      echo='print -r'
336    elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
337         test "X$CONFIG_SHELL" != X/bin/ksh; then
338      # If we have ksh, try running configure again with it.
339      ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
340      export ORIGINAL_CONFIG_SHELL
341      CONFIG_SHELL=/bin/ksh
342      export CONFIG_SHELL
343      exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
344    else
345      # Try using printf.
346      echo='printf %s\n'
347      if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
348         echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
349         test "X$echo_testing_string" = "X$echo_test_string"; then
350        # Cool, printf works
351        :
352      elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
353           test "X$echo_testing_string" = 'X\t' &&
354           echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
355           test "X$echo_testing_string" = "X$echo_test_string"; then
356        CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
357        export CONFIG_SHELL
358        SHELL="$CONFIG_SHELL"
359        export SHELL
360        echo="$CONFIG_SHELL $0 --fallback-echo"
361      elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
362           test "X$echo_testing_string" = 'X\t' &&
363           echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
364           test "X$echo_testing_string" = "X$echo_test_string"; then
365        echo="$CONFIG_SHELL $0 --fallback-echo"
366      else
367        # maybe with a smaller string...
368        prev=:
369
370        for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
371          if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
372          then
373            break
374          fi
375          prev="$cmd"
376        done
377
378        if test "$prev" != 'sed 50q "$0"'; then
379          echo_test_string=`eval $prev`
380          export echo_test_string
381          exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
382        else
383          # Oops.  We lost completely, so just stick with echo.
384          echo=echo
385        fi
386      fi
387    fi
388  fi
389fi
390fi
391
392# Copy echo and quote the copy suitably for passing to libtool from
393# the Makefile, instead of quoting the original, which is used later.
394ECHO=$echo
395if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
396   ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
397fi
398
399
400
401
402tagnames=${tagnames+${tagnames},}CXX
403
404tagnames=${tagnames+${tagnames},}F77
405
406# Name of the host.
407# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
408# so uname gets run too.
409ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
410
411exec 6>&1
412
413#
414# Initializations.
415#
416ac_default_prefix=/usr/local
417ac_config_libobj_dir=.
418cross_compiling=no
419subdirs=
420MFLAGS=
421MAKEFLAGS=
422SHELL=${CONFIG_SHELL-/bin/sh}
423
424# Maximum number of lines to put in a shell here document.
425# This variable seems obsolete.  It should probably be removed, and
426# only ac_max_sed_lines should be used.
427: ${ac_max_here_lines=38}
428
429# Identity of this package.
430PACKAGE_NAME='Cbc'
431PACKAGE_TARNAME='cbc'
432PACKAGE_VERSION='0.1'
433PACKAGE_STRING='Cbc 0.1'
434PACKAGE_BUGREPORT='coin-cbc@list.coin-or.org'
435
436ac_unique_file="src/CbcTree.hpp"
437ac_default_prefix=`pwd`
438# Factoring default headers for most tests.
439ac_includes_default="\
440#include <stdio.h>
441#if HAVE_SYS_TYPES_H
442# include <sys/types.h>
443#endif
444#if HAVE_SYS_STAT_H
445# include <sys/stat.h>
446#endif
447#if STDC_HEADERS
448# include <stdlib.h>
449# include <stddef.h>
450#else
451# if HAVE_STDLIB_H
452#  include <stdlib.h>
453# endif
454#endif
455#if HAVE_STRING_H
456# if !STDC_HEADERS && HAVE_MEMORY_H
457#  include <memory.h>
458# endif
459# include <string.h>
460#endif
461#if HAVE_STRINGS_H
462# include <strings.h>
463#endif
464#if HAVE_INTTYPES_H
465# include <inttypes.h>
466#else
467# if HAVE_STDINT_H
468#  include <stdint.h>
469# endif
470#endif
471#if HAVE_UNISTD_H
472# include <unistd.h>
473#endif"
474
475ac_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 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 LT_LDFLAGS abs_lib_dir abs_include_dir abs_bin_dir RPATH_FLAGS 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 VPATH_DISTCLEANFILES'
476ac_subst_files=''
477
478# Initialize some variables set by options.
479ac_init_help=
480ac_init_version=false
481# The variables have the same names as the options, with
482# dashes changed to underlines.
483cache_file=/dev/null
484exec_prefix=NONE
485no_create=
486no_recursion=
487prefix=NONE
488program_prefix=NONE
489program_suffix=NONE
490program_transform_name=s,x,x,
491silent=
492site=
493srcdir=
494verbose=
495x_includes=NONE
496x_libraries=NONE
497
498# Installation directory options.
499# These are left unexpanded so users can "make install exec_prefix=/foo"
500# and all the variables that are supposed to be based on exec_prefix
501# by default will actually change.
502# Use braces instead of parens because sh, perl, etc. also accept them.
503bindir='${exec_prefix}/bin'
504sbindir='${exec_prefix}/sbin'
505libexecdir='${exec_prefix}/libexec'
506datadir='${prefix}/share'
507sysconfdir='${prefix}/etc'
508sharedstatedir='${prefix}/com'
509localstatedir='${prefix}/var'
510libdir='${exec_prefix}/lib'
511includedir='${prefix}/include'
512oldincludedir='/usr/include'
513infodir='${prefix}/info'
514mandir='${prefix}/man'
515
516ac_prev=
517for ac_option
518do
519  # If the previous option needs an argument, assign it.
520  if test -n "$ac_prev"; then
521    eval "$ac_prev=\$ac_option"
522    ac_prev=
523    continue
524  fi
525
526  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
527
528  # Accept the important Cygnus configure options, so we can diagnose typos.
529
530  case $ac_option in
531
532  -bindir | --bindir | --bindi | --bind | --bin | --bi)
533    ac_prev=bindir ;;
534  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
535    bindir=$ac_optarg ;;
536
537  -build | --build | --buil | --bui | --bu)
538    ac_prev=build_alias ;;
539  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
540    build_alias=$ac_optarg ;;
541
542  -cache-file | --cache-file | --cache-fil | --cache-fi \
543  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
544    ac_prev=cache_file ;;
545  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
546  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
547    cache_file=$ac_optarg ;;
548
549  --config-cache | -C)
550    cache_file=config.cache ;;
551
552  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
553    ac_prev=datadir ;;
554  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
555  | --da=*)
556    datadir=$ac_optarg ;;
557
558  -disable-* | --disable-*)
559    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
560    # Reject names that are not valid shell variable names.
561    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563   { (exit 1); exit 1; }; }
564    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565    eval "enable_$ac_feature=no" ;;
566
567  -enable-* | --enable-*)
568    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
569    # Reject names that are not valid shell variable names.
570    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
571      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
572   { (exit 1); exit 1; }; }
573    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
574    case $ac_option in
575      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
576      *) ac_optarg=yes ;;
577    esac
578    eval "enable_$ac_feature='$ac_optarg'" ;;
579
580  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
581  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
582  | --exec | --exe | --ex)
583    ac_prev=exec_prefix ;;
584  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
585  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
586  | --exec=* | --exe=* | --ex=*)
587    exec_prefix=$ac_optarg ;;
588
589  -gas | --gas | --ga | --g)
590    # Obsolete; use --with-gas.
591    with_gas=yes ;;
592
593  -help | --help | --hel | --he | -h)
594    ac_init_help=long ;;
595  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
596    ac_init_help=recursive ;;
597  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
598    ac_init_help=short ;;
599
600  -host | --host | --hos | --ho)
601    ac_prev=host_alias ;;
602  -host=* | --host=* | --hos=* | --ho=*)
603    host_alias=$ac_optarg ;;
604
605  -includedir | --includedir | --includedi | --included | --include \
606  | --includ | --inclu | --incl | --inc)
607    ac_prev=includedir ;;
608  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
609  | --includ=* | --inclu=* | --incl=* | --inc=*)
610    includedir=$ac_optarg ;;
611
612  -infodir | --infodir | --infodi | --infod | --info | --inf)
613    ac_prev=infodir ;;
614  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
615    infodir=$ac_optarg ;;
616
617  -libdir | --libdir | --libdi | --libd)
618    ac_prev=libdir ;;
619  -libdir=* | --libdir=* | --libdi=* | --libd=*)
620    libdir=$ac_optarg ;;
621
622  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
623  | --libexe | --libex | --libe)
624    ac_prev=libexecdir ;;
625  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
626  | --libexe=* | --libex=* | --libe=*)
627    libexecdir=$ac_optarg ;;
628
629  -localstatedir | --localstatedir | --localstatedi | --localstated \
630  | --localstate | --localstat | --localsta | --localst \
631  | --locals | --local | --loca | --loc | --lo)
632    ac_prev=localstatedir ;;
633  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
634  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
635  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
636    localstatedir=$ac_optarg ;;
637
638  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
639    ac_prev=mandir ;;
640  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
641    mandir=$ac_optarg ;;
642
643  -nfp | --nfp | --nf)
644    # Obsolete; use --without-fp.
645    with_fp=no ;;
646
647  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
648  | --no-cr | --no-c | -n)
649    no_create=yes ;;
650
651  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
652  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
653    no_recursion=yes ;;
654
655  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
656  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
657  | --oldin | --oldi | --old | --ol | --o)
658    ac_prev=oldincludedir ;;
659  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
660  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
661  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
662    oldincludedir=$ac_optarg ;;
663
664  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
665    ac_prev=prefix ;;
666  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
667    prefix=$ac_optarg ;;
668
669  -program-prefix | --program-prefix | --program-prefi | --program-pref \
670  | --program-pre | --program-pr | --program-p)
671    ac_prev=program_prefix ;;
672  -program-prefix=* | --program-prefix=* | --program-prefi=* \
673  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
674    program_prefix=$ac_optarg ;;
675
676  -program-suffix | --program-suffix | --program-suffi | --program-suff \
677  | --program-suf | --program-su | --program-s)
678    ac_prev=program_suffix ;;
679  -program-suffix=* | --program-suffix=* | --program-suffi=* \
680  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
681    program_suffix=$ac_optarg ;;
682
683  -program-transform-name | --program-transform-name \
684  | --program-transform-nam | --program-transform-na \
685  | --program-transform-n | --program-transform- \
686  | --program-transform | --program-transfor \
687  | --program-transfo | --program-transf \
688  | --program-trans | --program-tran \
689  | --progr-tra | --program-tr | --program-t)
690    ac_prev=program_transform_name ;;
691  -program-transform-name=* | --program-transform-name=* \
692  | --program-transform-nam=* | --program-transform-na=* \
693  | --program-transform-n=* | --program-transform-=* \
694  | --program-transform=* | --program-transfor=* \
695  | --program-transfo=* | --program-transf=* \
696  | --program-trans=* | --program-tran=* \
697  | --progr-tra=* | --program-tr=* | --program-t=*)
698    program_transform_name=$ac_optarg ;;
699
700  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
701  | -silent | --silent | --silen | --sile | --sil)
702    silent=yes ;;
703
704  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
705    ac_prev=sbindir ;;
706  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
707  | --sbi=* | --sb=*)
708    sbindir=$ac_optarg ;;
709
710  -sharedstatedir | --sharedstatedir | --sharedstatedi \
711  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
712  | --sharedst | --shareds | --shared | --share | --shar \
713  | --sha | --sh)
714    ac_prev=sharedstatedir ;;
715  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
716  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
717  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
718  | --sha=* | --sh=*)
719    sharedstatedir=$ac_optarg ;;
720
721  -site | --site | --sit)
722    ac_prev=site ;;
723  -site=* | --site=* | --sit=*)
724    site=$ac_optarg ;;
725
726  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
727    ac_prev=srcdir ;;
728  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
729    srcdir=$ac_optarg ;;
730
731  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
732  | --syscon | --sysco | --sysc | --sys | --sy)
733    ac_prev=sysconfdir ;;
734  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
735  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
736    sysconfdir=$ac_optarg ;;
737
738  -target | --target | --targe | --targ | --tar | --ta | --t)
739    ac_prev=target_alias ;;
740  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
741    target_alias=$ac_optarg ;;
742
743  -v | -verbose | --verbose | --verbos | --verbo | --verb)
744    verbose=yes ;;
745
746  -version | --version | --versio | --versi | --vers | -V)
747    ac_init_version=: ;;
748
749  -with-* | --with-*)
750    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
751    # Reject names that are not valid shell variable names.
752    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
753      { echo "$as_me: error: invalid package name: $ac_package" >&2
754   { (exit 1); exit 1; }; }
755    ac_package=`echo $ac_package| sed 's/-/_/g'`
756    case $ac_option in
757      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
758      *) ac_optarg=yes ;;
759    esac
760    eval "with_$ac_package='$ac_optarg'" ;;
761
762  -without-* | --without-*)
763    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
764    # Reject names that are not valid shell variable names.
765    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
766      { echo "$as_me: error: invalid package name: $ac_package" >&2
767   { (exit 1); exit 1; }; }
768    ac_package=`echo $ac_package | sed 's/-/_/g'`
769    eval "with_$ac_package=no" ;;
770
771  --x)
772    # Obsolete; use --with-x.
773    with_x=yes ;;
774
775  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
776  | --x-incl | --x-inc | --x-in | --x-i)
777    ac_prev=x_includes ;;
778  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
779  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
780    x_includes=$ac_optarg ;;
781
782  -x-libraries | --x-libraries | --x-librarie | --x-librari \
783  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
784    ac_prev=x_libraries ;;
785  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
786  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
787    x_libraries=$ac_optarg ;;
788
789  -*) { echo "$as_me: error: unrecognized option: $ac_option
790Try \`$0 --help' for more information." >&2
791   { (exit 1); exit 1; }; }
792    ;;
793
794  *=*)
795    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
796    # Reject names that are not valid shell variable names.
797    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
798      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
799   { (exit 1); exit 1; }; }
800    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
801    eval "$ac_envvar='$ac_optarg'"
802    export $ac_envvar ;;
803
804  *)
805    # FIXME: should be removed in autoconf 3.0.
806    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
807    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
808      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
809    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
810    ;;
811
812  esac
813done
814
815if test -n "$ac_prev"; then
816  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
817  { echo "$as_me: error: missing argument to $ac_option" >&2
818   { (exit 1); exit 1; }; }
819fi
820
821# Be sure to have absolute paths.
822for ac_var in exec_prefix prefix
823do
824  eval ac_val=$`echo $ac_var`
825  case $ac_val in
826    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
827    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
828   { (exit 1); exit 1; }; };;
829  esac
830done
831
832# Be sure to have absolute paths.
833for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
834              localstatedir libdir includedir oldincludedir infodir mandir
835do
836  eval ac_val=$`echo $ac_var`
837  case $ac_val in
838    [\\/$]* | ?:[\\/]* ) ;;
839    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
840   { (exit 1); exit 1; }; };;
841  esac
842done
843
844# There might be people who depend on the old broken behavior: `$host'
845# used to hold the argument of --host etc.
846# FIXME: To remove some day.
847build=$build_alias
848host=$host_alias
849target=$target_alias
850
851# FIXME: To remove some day.
852if test "x$host_alias" != x; then
853  if test "x$build_alias" = x; then
854    cross_compiling=maybe
855    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
856    If a cross compiler is detected then cross compile mode will be used." >&2
857  elif test "x$build_alias" != "x$host_alias"; then
858    cross_compiling=yes
859  fi
860fi
861
862ac_tool_prefix=
863test -n "$host_alias" && ac_tool_prefix=$host_alias-
864
865test "$silent" = yes && exec 6>/dev/null
866
867
868# Find the source files, if location was not specified.
869if test -z "$srcdir"; then
870  ac_srcdir_defaulted=yes
871  # Try the directory containing this script, then its parent.
872  ac_confdir=`(dirname "$0") 2>/dev/null ||
873$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
874         X"$0" : 'X\(//\)[^/]' \| \
875         X"$0" : 'X\(//\)$' \| \
876         X"$0" : 'X\(/\)' \| \
877         .     : '\(.\)' 2>/dev/null ||
878echo X"$0" |
879    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
880          /^X\(\/\/\)[^/].*/{ s//\1/; q; }
881          /^X\(\/\/\)$/{ s//\1/; q; }
882          /^X\(\/\).*/{ s//\1/; q; }
883          s/.*/./; q'`
884  srcdir=$ac_confdir
885  if test ! -r $srcdir/$ac_unique_file; then
886    srcdir=..
887  fi
888else
889  ac_srcdir_defaulted=no
890fi
891if test ! -r $srcdir/$ac_unique_file; then
892  if test "$ac_srcdir_defaulted" = yes; then
893    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
894   { (exit 1); exit 1; }; }
895  else
896    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
897   { (exit 1); exit 1; }; }
898  fi
899fi
900(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
901  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
902   { (exit 1); exit 1; }; }
903srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
904ac_env_build_alias_set=${build_alias+set}
905ac_env_build_alias_value=$build_alias
906ac_cv_env_build_alias_set=${build_alias+set}
907ac_cv_env_build_alias_value=$build_alias
908ac_env_host_alias_set=${host_alias+set}
909ac_env_host_alias_value=$host_alias
910ac_cv_env_host_alias_set=${host_alias+set}
911ac_cv_env_host_alias_value=$host_alias
912ac_env_target_alias_set=${target_alias+set}
913ac_env_target_alias_value=$target_alias
914ac_cv_env_target_alias_set=${target_alias+set}
915ac_cv_env_target_alias_value=$target_alias
916ac_env_CDEFS_set=${CDEFS+set}
917ac_env_CDEFS_value=$CDEFS
918ac_cv_env_CDEFS_set=${CDEFS+set}
919ac_cv_env_CDEFS_value=$CDEFS
920ac_env_CC_set=${CC+set}
921ac_env_CC_value=$CC
922ac_cv_env_CC_set=${CC+set}
923ac_cv_env_CC_value=$CC
924ac_env_CFLAGS_set=${CFLAGS+set}
925ac_env_CFLAGS_value=$CFLAGS
926ac_cv_env_CFLAGS_set=${CFLAGS+set}
927ac_cv_env_CFLAGS_value=$CFLAGS
928ac_env_LDFLAGS_set=${LDFLAGS+set}
929ac_env_LDFLAGS_value=$LDFLAGS
930ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
931ac_cv_env_LDFLAGS_value=$LDFLAGS
932ac_env_CPPFLAGS_set=${CPPFLAGS+set}
933ac_env_CPPFLAGS_value=$CPPFLAGS
934ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
935ac_cv_env_CPPFLAGS_value=$CPPFLAGS
936ac_env_CXXDEFS_set=${CXXDEFS+set}
937ac_env_CXXDEFS_value=$CXXDEFS
938ac_cv_env_CXXDEFS_set=${CXXDEFS+set}
939ac_cv_env_CXXDEFS_value=$CXXDEFS
940ac_env_CXX_set=${CXX+set}
941ac_env_CXX_value=$CXX
942ac_cv_env_CXX_set=${CXX+set}
943ac_cv_env_CXX_value=$CXX
944ac_env_CXXFLAGS_set=${CXXFLAGS+set}
945ac_env_CXXFLAGS_value=$CXXFLAGS
946ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
947ac_cv_env_CXXFLAGS_value=$CXXFLAGS
948ac_env_CPP_set=${CPP+set}
949ac_env_CPP_value=$CPP
950ac_cv_env_CPP_set=${CPP+set}
951ac_cv_env_CPP_value=$CPP
952ac_env_CXXCPP_set=${CXXCPP+set}
953ac_env_CXXCPP_value=$CXXCPP
954ac_cv_env_CXXCPP_set=${CXXCPP+set}
955ac_cv_env_CXXCPP_value=$CXXCPP
956ac_env_F77_set=${F77+set}
957ac_env_F77_value=$F77
958ac_cv_env_F77_set=${F77+set}
959ac_cv_env_F77_value=$F77
960ac_env_FFLAGS_set=${FFLAGS+set}
961ac_env_FFLAGS_value=$FFLAGS
962ac_cv_env_FFLAGS_set=${FFLAGS+set}
963ac_cv_env_FFLAGS_value=$FFLAGS
964
965#
966# Report the --help message.
967#
968if test "$ac_init_help" = "long"; then
969  # Omit some internal or obsolete options to make the list less imposing.
970  # This message is too long to be a string in the A/UX 3.1 sh.
971  cat <<_ACEOF
972\`configure' configures Cbc 0.1 to adapt to many kinds of systems.
973
974Usage: $0 [OPTION]... [VAR=VALUE]...
975
976To assign environment variables (e.g., CC, CFLAGS...), specify them as
977VAR=VALUE.  See below for descriptions of some of the useful variables.
978
979Defaults for the options are specified in brackets.
980
981Configuration:
982  -h, --help              display this help and exit
983      --help=short        display options specific to this package
984      --help=recursive    display the short help of all the included packages
985  -V, --version           display version information and exit
986  -q, --quiet, --silent   do not print \`checking...' messages
987      --cache-file=FILE   cache test results in FILE [disabled]
988  -C, --config-cache      alias for \`--cache-file=config.cache'
989  -n, --no-create         do not create output files
990      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
991
992_ACEOF
993
994  cat <<_ACEOF
995Installation directories:
996  --prefix=PREFIX         install architecture-independent files in PREFIX
997                          [$ac_default_prefix]
998  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
999                          [PREFIX]
1000
1001By default, \`make install' will install all the files in
1002\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1003an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1004for instance \`--prefix=\$HOME'.
1005
1006For better control, use the options below.
1007
1008Fine tuning of the installation directories:
1009  --bindir=DIR           user executables [EPREFIX/bin]
1010  --sbindir=DIR          system admin executables [EPREFIX/sbin]
1011  --libexecdir=DIR       program executables [EPREFIX/libexec]
1012  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
1013  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1014  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1015  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1016  --libdir=DIR           object code libraries [EPREFIX/lib]
1017  --includedir=DIR       C header files [PREFIX/include]
1018  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1019  --infodir=DIR          info documentation [PREFIX/info]
1020  --mandir=DIR           man documentation [PREFIX/man]
1021_ACEOF
1022
1023  cat <<\_ACEOF
1024
1025Program names:
1026  --program-prefix=PREFIX            prepend PREFIX to installed program names
1027  --program-suffix=SUFFIX            append SUFFIX to installed program names
1028  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1029
1030System types:
1031  --build=BUILD     configure for building on BUILD [guessed]
1032  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1033_ACEOF
1034fi
1035
1036if test -n "$ac_init_help"; then
1037  case $ac_init_help in
1038     short | recursive ) echo "Configuration of Cbc 0.1:";;
1039   esac
1040  cat <<\_ACEOF
1041
1042Optional Features:
1043  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1044  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1045  --enable-debug          compile with debug options and runtime tests
1046  --enable-static[=PKGS]
1047                          build static libraries [default=no]
1048  --disable-dependency-tracking  speeds up one-time build
1049  --enable-dependency-tracking   do not reject slow dependency extractors
1050  --enable-maintainer-mode  enable make rules and dependencies not useful
1051                          (and sometimes confusing) to the casual installer
1052  --enable-shared[=PKGS]
1053                          build shared libraries [default=yes]
1054  --enable-fast-install[=PKGS]
1055                          optimize for fast installation [default=yes]
1056  --disable-libtool-lock  avoid locking (might break parallel builds)
1057
1058Optional Packages:
1059  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1060  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1061  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1062  --with-pic              try to use only PIC/non-PIC objects [default=use
1063                          both]
1064  --with-tags[=TAGS]
1065                          include additional configurations [automatic]
1066  --with-cbc-default-solver
1067                          specify default solver for Cbc in lower case letters
1068                          (if not given, clp is assumed)
1069  --with-cplex-incdir specify the directory with the header files for library
1070                          Cplex
1071  --with-cplex-lib specify the flags to link with the library Cplex
1072  --with-glpk-incdir specify the directory with the header files for library
1073                          Glpk
1074  --with-glpk-lib specify the flags to link with the library Glpk
1075  --with-fortmp-incdir specify the directory with the header files for library
1076                          FortMP
1077  --with-fortmp-lib specify the flags to link with the library FortMP
1078  --with-mosek-incdir specify the directory with the header files for library
1079                          Mosek
1080  --with-mosek-lib specify the flags to link with the library Mosek
1081  --with-osl-incdir specify the directory with the header files for library
1082                          Osl
1083  --with-osl-lib specify the flags to link with the library Osl
1084  --with-soplex-incdir specify the directory with the header files for library
1085                          Soplex
1086  --with-soplex-lib specify the flags to link with the library Soplex
1087  --with-xpress-incdir specify the directory with the header files for library
1088                          Xpress
1089  --with-xpress-lib specify the flags to link with the library Xpress
1090
1091Some influential environment variables:
1092  CDEFS       Additional -D flags to be used when compiling C code.
1093  CC          C compiler command
1094  CFLAGS      C compiler flags
1095  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1096              nonstandard directory <lib dir>
1097  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
1098              headers in a nonstandard directory <include dir>
1099  CXXDEFS     Additional -D flags to be used when compiling C++ code.
1100  CXX         C++ compiler command
1101  CXXFLAGS    C++ compiler flags
1102  CPP         C preprocessor
1103  CXXCPP      C++ preprocessor
1104  F77         Fortran 77 compiler command
1105  FFLAGS      Fortran 77 compiler flags
1106
1107Use these variables to override the choices made by `configure' or to help
1108it to find libraries and programs with nonstandard names/locations.
1109
1110Report bugs to <coin-cbc@list.coin-or.org>.
1111_ACEOF
1112fi
1113
1114if test "$ac_init_help" = "recursive"; then
1115  # If there are subdirs, report their specific --help.
1116  ac_popdir=`pwd`
1117  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1118    test -d $ac_dir || continue
1119    ac_builddir=.
1120
1121if test "$ac_dir" != .; then
1122  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1123  # A "../" for each directory in $ac_dir_suffix.
1124  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1125else
1126  ac_dir_suffix= ac_top_builddir=
1127fi
1128
1129case $srcdir in
1130  .)  # No --srcdir option.  We are building in place.
1131    ac_srcdir=.
1132    if test -z "$ac_top_builddir"; then
1133       ac_top_srcdir=.
1134    else
1135       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1136    fi ;;
1137  [\\/]* | ?:[\\/]* )  # Absolute path.
1138    ac_srcdir=$srcdir$ac_dir_suffix;
1139    ac_top_srcdir=$srcdir ;;
1140  *) # Relative path.
1141    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1142    ac_top_srcdir=$ac_top_builddir$srcdir ;;
1143esac
1144
1145# Do not use `cd foo && pwd` to compute absolute paths, because
1146# the directories may not exist.
1147case `pwd` in
1148.) ac_abs_builddir="$ac_dir";;
1149*)
1150  case "$ac_dir" in
1151  .) ac_abs_builddir=`pwd`;;
1152  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1153  *) ac_abs_builddir=`pwd`/"$ac_dir";;
1154  esac;;
1155esac
1156case $ac_abs_builddir in
1157.) ac_abs_top_builddir=${ac_top_builddir}.;;
1158*)
1159  case ${ac_top_builddir}. in
1160  .) ac_abs_top_builddir=$ac_abs_builddir;;
1161  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1162  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1163  esac;;
1164esac
1165case $ac_abs_builddir in
1166.) ac_abs_srcdir=$ac_srcdir;;
1167*)
1168  case $ac_srcdir in
1169  .) ac_abs_srcdir=$ac_abs_builddir;;
1170  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1171  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1172  esac;;
1173esac
1174case $ac_abs_builddir in
1175.) ac_abs_top_srcdir=$ac_top_srcdir;;
1176*)
1177  case $ac_top_srcdir in
1178  .) ac_abs_top_srcdir=$ac_abs_builddir;;
1179  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1180  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1181  esac;;
1182esac
1183
1184    cd $ac_dir
1185    # Check for guested configure; otherwise get Cygnus style configure.
1186    if test -f $ac_srcdir/configure.gnu; then
1187      echo
1188      $SHELL $ac_srcdir/configure.gnu  --help=recursive
1189    elif test -f $ac_srcdir/configure; then
1190      echo
1191      $SHELL $ac_srcdir/configure  --help=recursive
1192    elif test -f $ac_srcdir/configure.ac ||
1193           test -f $ac_srcdir/configure.in; then
1194      echo
1195      $ac_configure --help
1196    else
1197      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1198    fi
1199    cd $ac_popdir
1200  done
1201fi
1202
1203test -n "$ac_init_help" && exit 0
1204if $ac_init_version; then
1205  cat <<\_ACEOF
1206Cbc configure 0.1
1207generated by GNU Autoconf 2.59
1208
1209Copyright (C) 2003 Free Software Foundation, Inc.
1210This configure script is free software; the Free Software Foundation
1211gives unlimited permission to copy, distribute and modify it.
1212
1213
1214Copyright 2006 International Business Machines and others.
1215All Rights Reserved.
1216This file is part of the open source package Coin which is distributed
1217under the Common Public License.
1218_ACEOF
1219  exit 0
1220fi
1221exec 5>config.log
1222cat >&5 <<_ACEOF
1223This file contains any messages produced by compilers while
1224running configure, to aid debugging if configure makes a mistake.
1225
1226It was created by Cbc $as_me 0.1, which was
1227generated by GNU Autoconf 2.59.  Invocation command line was
1228
1229  $ $0 $@
1230
1231_ACEOF
1232{
1233cat <<_ASUNAME
1234## --------- ##
1235## Platform. ##
1236## --------- ##
1237
1238hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1239uname -m = `(uname -m) 2>/dev/null || echo unknown`
1240uname -r = `(uname -r) 2>/dev/null || echo unknown`
1241uname -s = `(uname -s) 2>/dev/null || echo unknown`
1242uname -v = `(uname -v) 2>/dev/null || echo unknown`
1243
1244/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1245/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1246
1247/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1248/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1249/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1250hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
1251/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1252/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1253/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1254
1255_ASUNAME
1256
1257as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1258for as_dir in $PATH
1259do
1260  IFS=$as_save_IFS
1261  test -z "$as_dir" && as_dir=.
1262  echo "PATH: $as_dir"
1263done
1264
1265} >&5
1266
1267cat >&5 <<_ACEOF
1268
1269
1270## ----------- ##
1271## Core tests. ##
1272## ----------- ##
1273
1274_ACEOF
1275
1276
1277# Keep a trace of the command line.
1278# Strip out --no-create and --no-recursion so they do not pile up.
1279# Strip out --silent because we don't want to record it for future runs.
1280# Also quote any args containing shell meta-characters.
1281# Make two passes to allow for proper duplicate-argument suppression.
1282ac_configure_args=
1283ac_configure_args0=
1284ac_configure_args1=
1285ac_sep=
1286ac_must_keep_next=false
1287for ac_pass in 1 2
1288do
1289  for ac_arg
1290  do
1291    case $ac_arg in
1292    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1293    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1294    | -silent | --silent | --silen | --sile | --sil)
1295      continue ;;
1296    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1297      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1298    esac
1299    case $ac_pass in
1300    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1301    2)
1302      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1303      if test $ac_must_keep_next = true; then
1304        ac_must_keep_next=false # Got value, back to normal.
1305      else
1306        case $ac_arg in
1307          *=* | --config-cache | -C | -disable-* | --disable-* \
1308          | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1309          | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1310          | -with-* | --with-* | -without-* | --without-* | --x)
1311            case "$ac_configure_args0 " in
1312              "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1313            esac
1314            ;;
1315          -* ) ac_must_keep_next=true ;;
1316        esac
1317      fi
1318      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1319      # Get rid of the leading space.
1320      ac_sep=" "
1321      ;;
1322    esac
1323  done
1324done
1325$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1326$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1327
1328# When interrupted or exit'd, cleanup temporary files, and complete
1329# config.log.  We remove comments because anyway the quotes in there
1330# would cause problems or look ugly.
1331# WARNING: Be sure not to use single quotes in there, as some shells,
1332# such as our DU 5.0 friend, will then `close' the trap.
1333trap 'exit_status=$?
1334  # Save into config.log some information that might help in debugging.
1335  {
1336    echo
1337
1338    cat <<\_ASBOX
1339## ---------------- ##
1340## Cache variables. ##
1341## ---------------- ##
1342_ASBOX
1343    echo
1344    # The following way of writing the cache mishandles newlines in values,
1345{
1346  (set) 2>&1 |
1347    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1348    *ac_space=\ *)
1349      sed -n \
1350        "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1351          s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1352      ;;
1353    *)
1354      sed -n \
1355        "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1356      ;;
1357    esac;
1358}
1359    echo
1360
1361    cat <<\_ASBOX
1362## ----------------- ##
1363## Output variables. ##
1364## ----------------- ##
1365_ASBOX
1366    echo
1367    for ac_var in $ac_subst_vars
1368    do
1369      eval ac_val=$`echo $ac_var`
1370      echo "$ac_var='"'"'$ac_val'"'"'"
1371    done | sort
1372    echo
1373
1374    if test -n "$ac_subst_files"; then
1375      cat <<\_ASBOX
1376## ------------- ##
1377## Output files. ##
1378## ------------- ##
1379_ASBOX
1380      echo
1381      for ac_var in $ac_subst_files
1382      do
1383        eval ac_val=$`echo $ac_var`
1384        echo "$ac_var='"'"'$ac_val'"'"'"
1385      done | sort
1386      echo
1387    fi
1388
1389    if test -s confdefs.h; then
1390      cat <<\_ASBOX
1391## ----------- ##
1392## confdefs.h. ##
1393## ----------- ##
1394_ASBOX
1395      echo
1396      sed "/^$/d" confdefs.h | sort
1397      echo
1398    fi
1399    test "$ac_signal" != 0 &&
1400      echo "$as_me: caught signal $ac_signal"
1401    echo "$as_me: exit $exit_status"
1402  } >&5
1403  rm -f core *.core &&
1404  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1405    exit $exit_status
1406     ' 0
1407for ac_signal in 1 2 13 15; do
1408  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1409done
1410ac_signal=0
1411
1412# confdefs.h avoids OS command line length limits that DEFS can exceed.
1413rm -rf conftest* confdefs.h
1414# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1415echo >confdefs.h
1416
1417# Predefined preprocessor variables.
1418
1419cat >>confdefs.h <<_ACEOF
1420#define PACKAGE_NAME "$PACKAGE_NAME"
1421_ACEOF
1422
1423
1424cat >>confdefs.h <<_ACEOF
1425#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1426_ACEOF
1427
1428
1429cat >>confdefs.h <<_ACEOF
1430#define PACKAGE_VERSION "$PACKAGE_VERSION"
1431_ACEOF
1432
1433
1434cat >>confdefs.h <<_ACEOF
1435#define PACKAGE_STRING "$PACKAGE_STRING"
1436_ACEOF
1437
1438
1439cat >>confdefs.h <<_ACEOF
1440#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1441_ACEOF
1442
1443
1444# Let the site file select an alternate cache file if it wants to.
1445# Prefer explicitly selected file to automatically selected ones.
1446if test -z "$CONFIG_SITE"; then
1447  if test "x$prefix" != xNONE; then
1448    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1449  else
1450    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1451  fi
1452fi
1453for ac_site_file in $CONFIG_SITE; do
1454  if test -r "$ac_site_file"; then
1455    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1456echo "$as_me: loading site script $ac_site_file" >&6;}
1457    sed 's/^/| /' "$ac_site_file" >&5
1458    . "$ac_site_file"
1459  fi
1460done
1461
1462if test -r "$cache_file"; then
1463  # Some versions of bash will fail to source /dev/null (special
1464  # files actually), so we avoid doing that.
1465  if test -f "$cache_file"; then
1466    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1467echo "$as_me: loading cache $cache_file" >&6;}
1468    case $cache_file in
1469      [\\/]* | ?:[\\/]* ) . $cache_file;;
1470      *)                      . ./$cache_file;;
1471    esac
1472  fi
1473else
1474  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1475echo "$as_me: creating cache $cache_file" >&6;}
1476  >$cache_file
1477fi
1478
1479# Check that the precious variables saved in the cache have kept the same
1480# value.
1481ac_cache_corrupted=false
1482for ac_var in `(set) 2>&1 |
1483               sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1484  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1485  eval ac_new_set=\$ac_env_${ac_var}_set
1486  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1487  eval ac_new_val="\$ac_env_${ac_var}_value"
1488  case $ac_old_set,$ac_new_set in
1489    set,)
1490      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1491echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1492      ac_cache_corrupted=: ;;
1493    ,set)
1494      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1495echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1496      ac_cache_corrupted=: ;;
1497    ,);;
1498    *)
1499      if test "x$ac_old_val" != "x$ac_new_val"; then
1500        { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1501echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1502        { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1503echo "$as_me:   former value:  $ac_old_val" >&2;}
1504        { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1505echo "$as_me:   current value: $ac_new_val" >&2;}
1506        ac_cache_corrupted=:
1507      fi;;
1508  esac
1509  # Pass precious variables to config.status.
1510  if test "$ac_new_set" = set; then
1511    case $ac_new_val in
1512    *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1513      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1514    *) ac_arg=$ac_var=$ac_new_val ;;
1515    esac
1516    case " $ac_configure_args " in
1517      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1518      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1519    esac
1520  fi
1521done
1522if $ac_cache_corrupted; then
1523  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1524echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1525  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1526echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1527   { (exit 1); exit 1; }; }
1528fi
1529
1530ac_ext=c
1531ac_cpp='$CPP $CPPFLAGS'
1532ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1533ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1534ac_compiler_gnu=$ac_cv_c_compiler_gnu
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565# List one file in the package so that the configure script can test
1566# whether the package is actually there
1567
1568
1569# Where should everything be installed by default?  Here, we want it
1570# to be installed directly in 'bin', 'lib', 'include' subdirectories
1571# of the directory where configure is run.  The default would be
1572# /usr/local.
1573
1574
1575#############################################################################
1576#                         Standard build tool stuff                         #
1577#############################################################################
1578
1579# Get the system type
1580ac_aux_dir=
1581for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1582  if test -f $ac_dir/install-sh; then
1583    ac_aux_dir=$ac_dir
1584    ac_install_sh="$ac_aux_dir/install-sh -c"
1585    break
1586  elif test -f $ac_dir/install.sh; then
1587    ac_aux_dir=$ac_dir
1588    ac_install_sh="$ac_aux_dir/install.sh -c"
1589    break
1590  elif test -f $ac_dir/shtool; then
1591    ac_aux_dir=$ac_dir
1592    ac_install_sh="$ac_aux_dir/shtool install -c"
1593    break
1594  fi
1595done
1596if test -z "$ac_aux_dir"; then
1597  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1598echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1599   { (exit 1); exit 1; }; }
1600fi
1601ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1602ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1603ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1604
1605# Make sure we can run config.sub.
1606$ac_config_sub sun4 >/dev/null 2>&1 ||
1607  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1608echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1609   { (exit 1); exit 1; }; }
1610
1611echo "$as_me:$LINENO: checking build system type" >&5
1612echo $ECHO_N "checking build system type... $ECHO_C" >&6
1613if test "${ac_cv_build+set}" = set; then
1614  echo $ECHO_N "(cached) $ECHO_C" >&6
1615else
1616  ac_cv_build_alias=$build_alias
1617test -z "$ac_cv_build_alias" &&
1618  ac_cv_build_alias=`$ac_config_guess`
1619test -z "$ac_cv_build_alias" &&
1620  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1621echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1622   { (exit 1); exit 1; }; }
1623ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1624  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1625echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1626   { (exit 1); exit 1; }; }
1627
1628fi
1629echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1630echo "${ECHO_T}$ac_cv_build" >&6
1631build=$ac_cv_build
1632build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1633build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1634build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1635
1636
1637
1638# If this project depends on external projects, the Externals file in
1639# the source root directory contains definition of where to find those
1640# externals.  The following macro ensures that those externals are
1641# retrieved by svn if they are not there yet.
1642# Initialize the ADDLIBS variable
1643ADDLIBS=
1644
1645
1646# A useful makefile conditional that is always false
1647
1648
1649if false; then
1650  ALWAYS_FALSE_TRUE=
1651  ALWAYS_FALSE_FALSE='#'
1652else
1653  ALWAYS_FALSE_TRUE='#'
1654  ALWAYS_FALSE_FALSE=
1655fi
1656
1657
1658# We set the following variable so that we know later in AC_COIN_FINALIZE
1659# that we are in a project main directory
1660coin_projectdir=yes
1661
1662
1663# Check if user wants to produce debugging code
1664
1665echo "$as_me:$LINENO: checking whether we want to compile in debug mode" >&5
1666echo $ECHO_N "checking whether we want to compile in debug mode... $ECHO_C" >&6
1667
1668# Check whether --enable-debug or --disable-debug was given.
1669if test "${enable_debug+set}" = set; then
1670  enableval="$enable_debug"
1671  case "${enableval}" in
1672                   yes) coin_debug_compile=true
1673
1674cat >>confdefs.h <<\_ACEOF
1675#define COIN_DEBUG 1
1676_ACEOF
1677
1678                     ;;
1679                   no)  coin_debug_compile=false
1680                     ;;
1681                    *) { { echo "$as_me:$LINENO: error: bad value ${enableval} for --enable-debug" >&5
1682echo "$as_me: error: bad value ${enableval} for --enable-debug" >&2;}
1683   { (exit 1); exit 1; }; }
1684                     ;;
1685                 esac
1686else
1687  coin_debug_compile=false
1688fi;
1689
1690if test $coin_debug_compile = true; then
1691  echo "$as_me:$LINENO: result: yes" >&5
1692echo "${ECHO_T}yes" >&6
1693else
1694  echo "$as_me:$LINENO: result: no" >&5
1695echo "${ECHO_T}no" >&6
1696fi
1697
1698
1699
1700if test "$coin_debug_compile" = true; then
1701  COIN_DEBUG_TRUE=
1702  COIN_DEBUG_FALSE='#'
1703else
1704  COIN_DEBUG_TRUE='#'
1705  COIN_DEBUG_FALSE=
1706fi
1707
1708
1709
1710# Get the name of the C++ compiler and appropriate compiler options
1711
1712ac_ext=c
1713ac_cpp='$CPP $CPPFLAGS'
1714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1716ac_compiler_gnu=$ac_cv_c_compiler_gnu
1717
1718
1719# For consistency, we set the C compiler to the same value of the C++
1720# compiler, if the C++ is set, but the C compiler isn't (only for CXX=cl)
1721if test x"$CXX" != x; then
1722  case $CXX in
1723    cl*)
1724      if test x"$CC" = x; then
1725        CC="$CXX"
1726        { echo "$as_me:$LINENO: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&5
1727echo "$as_me: WARNING: C++ compiler name provided as $CXX, but CC is unset. Setting CC to $CXX" >&2;}
1728      fi
1729      ;;
1730  esac
1731fi
1732
1733
1734
1735coin_has_cc=yes
1736
1737save_cflags="$CFLAGS"
1738case $build in
1739  *-cygwin* | *-mingw*)
1740             comps="gcc cl" ;;
1741  *-linux-*) comps="xlc gcc cc pgcc icc" ;;
1742  *)         comps="xlc cc gcc pgcc icc" ;;
1743esac
1744ac_ext=c
1745ac_cpp='$CPP $CPPFLAGS'
1746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1748ac_compiler_gnu=$ac_cv_c_compiler_gnu
1749if test -n "$ac_tool_prefix"; then
1750  for ac_prog in $comps
1751  do
1752    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1753set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1754echo "$as_me:$LINENO: checking for $ac_word" >&5
1755echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1756if test "${ac_cv_prog_CC+set}" = set; then
1757  echo $ECHO_N "(cached) $ECHO_C" >&6
1758else
1759  if test -n "$CC"; then
1760  ac_cv_prog_CC="$CC" # Let the user override the test.
1761else
1762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1763for as_dir in $PATH
1764do
1765  IFS=$as_save_IFS
1766  test -z "$as_dir" && as_dir=.
1767  for ac_exec_ext in '' $ac_executable_extensions; do
1768  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1769    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1770    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1771    break 2
1772  fi
1773done
1774done
1775
1776fi
1777fi
1778CC=$ac_cv_prog_CC
1779if test -n "$CC"; then
1780  echo "$as_me:$LINENO: result: $CC" >&5
1781echo "${ECHO_T}$CC" >&6
1782else
1783  echo "$as_me:$LINENO: result: no" >&5
1784echo "${ECHO_T}no" >&6
1785fi
1786
1787    test -n "$CC" && break
1788  done
1789fi
1790if test -z "$CC"; then
1791  ac_ct_CC=$CC
1792  for ac_prog in $comps
1793do
1794  # Extract the first word of "$ac_prog", so it can be a program name with args.
1795set dummy $ac_prog; ac_word=$2
1796echo "$as_me:$LINENO: checking for $ac_word" >&5
1797echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1798if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1799  echo $ECHO_N "(cached) $ECHO_C" >&6
1800else
1801  if test -n "$ac_ct_CC"; then
1802  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1803else
1804as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1805for as_dir in $PATH
1806do
1807  IFS=$as_save_IFS
1808  test -z "$as_dir" && as_dir=.
1809  for ac_exec_ext in '' $ac_executable_extensions; do
1810  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1811    ac_cv_prog_ac_ct_CC="$ac_prog"
1812    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1813    break 2
1814  fi
1815done
1816done
1817
1818fi
1819fi
1820ac_ct_CC=$ac_cv_prog_ac_ct_CC
1821if test -n "$ac_ct_CC"; then
1822  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1823echo "${ECHO_T}$ac_ct_CC" >&6
1824else
1825  echo "$as_me:$LINENO: result: no" >&5
1826echo "${ECHO_T}no" >&6
1827fi
1828
1829  test -n "$ac_ct_CC" && break
1830done
1831
1832  CC=$ac_ct_CC
1833fi
1834
1835
1836test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1837See \`config.log' for more details." >&5
1838echo "$as_me: error: no acceptable C compiler found in \$PATH
1839See \`config.log' for more details." >&2;}
1840   { (exit 1); exit 1; }; }
1841
1842# Provide some information about the compiler.
1843echo "$as_me:$LINENO:" \
1844     "checking for C compiler version" >&5
1845ac_compiler=`set X $ac_compile; echo $2`
1846{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1847  (eval $ac_compiler --version </dev/null >&5) 2>&5
1848  ac_status=$?
1849  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1850  (exit $ac_status); }
1851{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1852  (eval $ac_compiler -v </dev/null >&5) 2>&5
1853  ac_status=$?
1854  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1855  (exit $ac_status); }
1856{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1857  (eval $ac_compiler -V </dev/null >&5) 2>&5
1858  ac_status=$?
1859  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1860  (exit $ac_status); }
1861
1862cat >conftest.$ac_ext <<_ACEOF
1863/* confdefs.h.  */
1864_ACEOF
1865cat confdefs.h >>conftest.$ac_ext
1866cat >>conftest.$ac_ext <<_ACEOF
1867/* end confdefs.h.  */
1868
1869int
1870main ()
1871{
1872
1873  ;
1874  return 0;
1875}
1876_ACEOF
1877ac_clean_files_save=$ac_clean_files
1878ac_clean_files="$ac_clean_files a.out a.exe b.out"
1879# Try to create an executable without -o first, disregard a.out.
1880# It will help us diagnose broken compilers, and finding out an intuition
1881# of exeext.
1882echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1883echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1884ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1885if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1886  (eval $ac_link_default) 2>&5
1887  ac_status=$?
1888  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1889  (exit $ac_status); }; then
1890  # Find the output, starting from the most likely.  This scheme is
1891# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1892# resort.
1893
1894# Be careful to initialize this variable, since it used to be cached.
1895# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1896ac_cv_exeext=
1897# b.out is created by i960 compilers.
1898for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1899do
1900  test -f "$ac_file" || continue
1901  case $ac_file in
1902    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1903        ;;
1904    conftest.$ac_ext )
1905        # This is the source file.
1906        ;;
1907    [ab].out )
1908        # We found the default executable, but exeext='' is most
1909        # certainly right.
1910        break;;
1911    *.* )
1912        ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1913        # FIXME: I believe we export ac_cv_exeext for Libtool,
1914        # but it would be cool to find out if it's true.  Does anybody
1915        # maintain Libtool? --akim.
1916        export ac_cv_exeext
1917        break;;
1918    * )
1919        break;;
1920  esac
1921done
1922else
1923  echo "$as_me: failed program was:" >&5
1924sed 's/^/| /' conftest.$ac_ext >&5
1925
1926{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1927See \`config.log' for more details." >&5
1928echo "$as_me: error: C compiler cannot create executables
1929See \`config.log' for more details." >&2;}
1930   { (exit 77); exit 77; }; }
1931fi
1932
1933ac_exeext=$ac_cv_exeext
1934echo "$as_me:$LINENO: result: $ac_file" >&5
1935echo "${ECHO_T}$ac_file" >&6
1936
1937# Check the compiler produces executables we can run.  If not, either
1938# the compiler is broken, or we cross compile.
1939echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1940echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1941# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1942# If not cross compiling, check that we can run a simple program.
1943if test "$cross_compiling" != yes; then
1944  if { ac_try='./$ac_file'
1945  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1946  (eval $ac_try) 2>&5
1947  ac_status=$?
1948  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1949  (exit $ac_status); }; }; then
1950    cross_compiling=no
1951  else
1952    if test "$cross_compiling" = maybe; then
1953        cross_compiling=yes
1954    else
1955        { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1956If you meant to cross compile, use \`--host'.
1957See \`config.log' for more details." >&5
1958echo "$as_me: error: cannot run C compiled programs.
1959If you meant to cross compile, use \`--host'.
1960See \`config.log' for more details." >&2;}
1961   { (exit 1); exit 1; }; }
1962    fi
1963  fi
1964fi
1965echo "$as_me:$LINENO: result: yes" >&5
1966echo "${ECHO_T}yes" >&6
1967
1968rm -f a.out a.exe conftest$ac_cv_exeext b.out
1969ac_clean_files=$ac_clean_files_save
1970# Check the compiler produces executables we can run.  If not, either
1971# the compiler is broken, or we cross compile.
1972echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1973echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1974echo "$as_me:$LINENO: result: $cross_compiling" >&5
1975echo "${ECHO_T}$cross_compiling" >&6
1976
1977echo "$as_me:$LINENO: checking for suffix of executables" >&5
1978echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1979if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1980  (eval $ac_link) 2>&5
1981  ac_status=$?
1982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1983  (exit $ac_status); }; then
1984  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1985# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1986# work properly (i.e., refer to `conftest.exe'), while it won't with
1987# `rm'.
1988for ac_file in conftest.exe conftest conftest.*; do
1989  test -f "$ac_file" || continue
1990  case $ac_file in
1991    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1992    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1993          export ac_cv_exeext
1994          break;;
1995    * ) break;;
1996  esac
1997done
1998else
1999  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2000See \`config.log' for more details." >&5
2001echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2002See \`config.log' for more details." >&2;}
2003   { (exit 1); exit 1; }; }
2004fi
2005
2006rm -f conftest$ac_cv_exeext
2007echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2008echo "${ECHO_T}$ac_cv_exeext" >&6
2009
2010rm -f conftest.$ac_ext
2011EXEEXT=$ac_cv_exeext
2012ac_exeext=$EXEEXT
2013echo "$as_me:$LINENO: checking for suffix of object files" >&5
2014echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2015if test "${ac_cv_objext+set}" = set; then
2016  echo $ECHO_N "(cached) $ECHO_C" >&6
2017else
2018  cat >conftest.$ac_ext <<_ACEOF
2019/* confdefs.h.  */
2020_ACEOF
2021cat confdefs.h >>conftest.$ac_ext
2022cat >>conftest.$ac_ext <<_ACEOF
2023/* end confdefs.h.  */
2024
2025int
2026main ()
2027{
2028
2029  ;
2030  return 0;
2031}
2032_ACEOF
2033rm -f conftest.o conftest.obj
2034if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2035  (eval $ac_compile) 2>&5
2036  ac_status=$?
2037  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2038  (exit $ac_status); }; then
2039  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2040  case $ac_file in
2041    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2042    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2043       break;;
2044  esac
2045done
2046else
2047  echo "$as_me: failed program was:" >&5
2048sed 's/^/| /' conftest.$ac_ext >&5
2049
2050{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2051See \`config.log' for more details." >&5
2052echo "$as_me: error: cannot compute suffix of object files: cannot compile
2053See \`config.log' for more details." >&2;}
2054   { (exit 1); exit 1; }; }
2055fi
2056
2057rm -f conftest.$ac_cv_objext conftest.$ac_ext
2058fi
2059echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2060echo "${ECHO_T}$ac_cv_objext" >&6
2061OBJEXT=$ac_cv_objext
2062ac_objext=$OBJEXT
2063echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2064echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2065if test "${ac_cv_c_compiler_gnu+set}" = set; then
2066  echo $ECHO_N "(cached) $ECHO_C" >&6
2067else
2068  cat >conftest.$ac_ext <<_ACEOF
2069/* confdefs.h.  */
2070_ACEOF
2071cat confdefs.h >>conftest.$ac_ext
2072cat >>conftest.$ac_ext <<_ACEOF
2073/* end confdefs.h.  */
2074
2075int
2076main ()
2077{
2078#ifndef __GNUC__
2079       choke me
2080#endif
2081
2082  ;
2083  return 0;
2084}
2085_ACEOF
2086rm -f conftest.$ac_objext
2087if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2088  (eval $ac_compile) 2>conftest.er1
2089  ac_status=$?
2090  grep -v '^ *+' conftest.er1 >conftest.err
2091  rm -f conftest.er1
2092  cat conftest.err >&5
2093  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094  (exit $ac_status); } &&
2095         { ac_try='test -z "$ac_c_werror_flag"
2096                         || test ! -s conftest.err'
2097  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2098  (eval $ac_try) 2>&5
2099  ac_status=$?
2100  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101  (exit $ac_status); }; } &&
2102         { ac_try='test -s conftest.$ac_objext'
2103  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2104  (eval $ac_try) 2>&5
2105  ac_status=$?
2106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2107  (exit $ac_status); }; }; then
2108  ac_compiler_gnu=yes
2109else
2110  echo "$as_me: failed program was:" >&5
2111sed 's/^/| /' conftest.$ac_ext >&5
2112
2113ac_compiler_gnu=no
2114fi
2115rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2116ac_cv_c_compiler_gnu=$ac_compiler_gnu
2117
2118fi
2119echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2120echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2121GCC=`test $ac_compiler_gnu = yes && echo yes`
2122ac_test_CFLAGS=${CFLAGS+set}
2123ac_save_CFLAGS=$CFLAGS
2124CFLAGS="-g"
2125echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2126echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2127if test "${ac_cv_prog_cc_g+set}" = set; then
2128  echo $ECHO_N "(cached) $ECHO_C" >&6
2129else
2130  cat >conftest.$ac_ext <<_ACEOF
2131/* confdefs.h.  */
2132_ACEOF
2133cat confdefs.h >>conftest.$ac_ext
2134cat >>conftest.$ac_ext <<_ACEOF
2135/* end confdefs.h.  */
2136
2137int
2138main ()
2139{
2140
2141  ;
2142  return 0;
2143}
2144_ACEOF
2145rm -f conftest.$ac_objext
2146if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2147  (eval $ac_compile) 2>conftest.er1
2148  ac_status=$?
2149  grep -v '^ *+' conftest.er1 >conftest.err
2150  rm -f conftest.er1
2151  cat conftest.err >&5
2152  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2153  (exit $ac_status); } &&
2154         { ac_try='test -z "$ac_c_werror_flag"
2155                         || test ! -s conftest.err'
2156  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2157  (eval $ac_try) 2>&5
2158  ac_status=$?
2159  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2160  (exit $ac_status); }; } &&
2161         { ac_try='test -s conftest.$ac_objext'
2162  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2163  (eval $ac_try) 2>&5
2164  ac_status=$?
2165  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166  (exit $ac_status); }; }; then
2167  ac_cv_prog_cc_g=yes
2168else
2169  echo "$as_me: failed program was:" >&5
2170sed 's/^/| /' conftest.$ac_ext >&5
2171
2172ac_cv_prog_cc_g=no
2173fi
2174rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2175fi
2176echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2177echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2178if test "$ac_test_CFLAGS" = set; then
2179  CFLAGS=$ac_save_CFLAGS
2180elif test $ac_cv_prog_cc_g = yes; then
2181  if test "$GCC" = yes; then
2182    CFLAGS="-g -O2"
2183  else
2184    CFLAGS="-g"
2185  fi
2186else
2187  if test "$GCC" = yes; then
2188    CFLAGS="-O2"
2189  else
2190    CFLAGS=
2191  fi
2192fi
2193echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2194echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2195if test "${ac_cv_prog_cc_stdc+set}" = set; then
2196  echo $ECHO_N "(cached) $ECHO_C" >&6
2197else
2198  ac_cv_prog_cc_stdc=no
2199ac_save_CC=$CC
2200cat >conftest.$ac_ext <<_ACEOF
2201/* confdefs.h.  */
2202_ACEOF
2203cat confdefs.h >>conftest.$ac_ext
2204cat >>conftest.$ac_ext <<_ACEOF
2205/* end confdefs.h.  */
2206#include <stdarg.h>
2207#include <stdio.h>
2208#include <sys/types.h>
2209#include <sys/stat.h>
2210/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2211struct buf { int x; };
2212FILE * (*rcsopen) (struct buf *, struct stat *, int);
2213static char *e (p, i)
2214     char **p;
2215     int i;
2216{
2217  return p[i];
2218}
2219static char *f (char * (*g) (char **, int), char **p, ...)
2220{
2221  char *s;
2222  va_list v;
2223  va_start (v,p);
2224  s = g (p, va_arg (v,int));
2225  va_end (v);
2226  return s;
2227}
2228
2229/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2230   function prototypes and stuff, but not '\xHH' hex character constants.
2231   These don't provoke an error unfortunately, instead are silently treated
2232   as 'x'.  The following induces an error, until -std1 is added to get
2233   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2234   array size at least.  It's necessary to write '\x00'==0 to get something
2235   that's true only with -std1.  */
2236int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2237
2238int test (int i, double x);
2239struct s1 {int (*f) (int a);};
2240struct s2 {int (*f) (double a);};
2241int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2242int argc;
2243char **argv;
2244int
2245main ()
2246{
2247return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2248  ;
2249  return 0;
2250}
2251_ACEOF
2252# Don't try gcc -ansi; that turns off useful extensions and
2253# breaks some systems' header files.
2254# AIX                   -qlanglvl=ansi
2255# Ultrix and OSF/1      -std1
2256# HP-UX 10.20 and later -Ae
2257# HP-UX older versions  -Aa -D_HPUX_SOURCE
2258# SVR4                  -Xc -D__EXTENSIONS__
2259for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2260do
2261  CC="$ac_save_CC $ac_arg"
2262  rm -f conftest.$ac_objext
2263if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2264  (eval $ac_compile) 2>conftest.er1
2265  ac_status=$?
2266  grep -v '^ *+' conftest.er1 >conftest.err
2267  rm -f conftest.er1
2268  cat conftest.err >&5
2269  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270  (exit $ac_status); } &&
2271         { ac_try='test -z "$ac_c_werror_flag"
2272                         || test ! -s conftest.err'
2273  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2274  (eval $ac_try) 2>&5
2275  ac_status=$?
2276  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277  (exit $ac_status); }; } &&
2278         { ac_try='test -s conftest.$ac_objext'
2279  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2280  (eval $ac_try) 2>&5
2281  ac_status=$?
2282  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283  (exit $ac_status); }; }; then
2284  ac_cv_prog_cc_stdc=$ac_arg
2285break
2286else
2287  echo "$as_me: failed program was:" >&5
2288sed 's/^/| /' conftest.$ac_ext >&5
2289
2290fi
2291rm -f conftest.err conftest.$ac_objext
2292done
2293rm -f conftest.$ac_ext conftest.$ac_objext
2294CC=$ac_save_CC
2295
2296fi
2297
2298case "x$ac_cv_prog_cc_stdc" in
2299  x|xno)
2300    echo "$as_me:$LINENO: result: none needed" >&5
2301echo "${ECHO_T}none needed" >&6 ;;
2302  *)
2303    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2304echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2305    CC="$CC $ac_cv_prog_cc_stdc" ;;
2306esac
2307
2308# Some people use a C++ compiler to compile C.  Since we use `exit',
2309# in C++ we need to declare it.  In case someone uses the same compiler
2310# for both compiling C and C++ we need to have the C++ compiler decide
2311# the declaration of exit, since it's the most demanding environment.
2312cat >conftest.$ac_ext <<_ACEOF
2313#ifndef __cplusplus
2314  choke me
2315#endif
2316_ACEOF
2317rm -f conftest.$ac_objext
2318if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2319  (eval $ac_compile) 2>conftest.er1
2320  ac_status=$?
2321  grep -v '^ *+' conftest.er1 >conftest.err
2322  rm -f conftest.er1
2323  cat conftest.err >&5
2324  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2325  (exit $ac_status); } &&
2326         { ac_try='test -z "$ac_c_werror_flag"
2327                         || test ! -s conftest.err'
2328  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2329  (eval $ac_try) 2>&5
2330  ac_status=$?
2331  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2332  (exit $ac_status); }; } &&
2333         { ac_try='test -s conftest.$ac_objext'
2334  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2335  (eval $ac_try) 2>&5
2336  ac_status=$?
2337  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2338  (exit $ac_status); }; }; then
2339  for ac_declaration in \
2340   '' \
2341   'extern "C" void std::exit (int) throw (); using std::exit;' \
2342   'extern "C" void std::exit (int); using std::exit;' \
2343   'extern "C" void exit (int) throw ();' \
2344   'extern "C" void exit (int);' \
2345   'void exit (int);'
2346do
2347  cat >conftest.$ac_ext <<_ACEOF
2348/* confdefs.h.  */
2349_ACEOF
2350cat confdefs.h >>conftest.$ac_ext
2351cat >>conftest.$ac_ext <<_ACEOF
2352/* end confdefs.h.  */
2353$ac_declaration
2354#include <stdlib.h>
2355int
2356main ()
2357{
2358exit (42);
2359  ;
2360  return 0;
2361}
2362_ACEOF
2363rm -f conftest.$ac_objext
2364if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2365  (eval $ac_compile) 2>conftest.er1
2366  ac_status=$?
2367  grep -v '^ *+' conftest.er1 >conftest.err
2368  rm -f conftest.er1
2369  cat conftest.err >&5
2370  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2371  (exit $ac_status); } &&
2372         { ac_try='test -z "$ac_c_werror_flag"
2373                         || test ! -s conftest.err'
2374  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2375  (eval $ac_try) 2>&5
2376  ac_status=$?
2377  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2378  (exit $ac_status); }; } &&
2379         { ac_try='test -s conftest.$ac_objext'
2380  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2381  (eval $ac_try) 2>&5
2382  ac_status=$?
2383  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2384  (exit $ac_status); }; }; then
2385  :
2386else
2387  echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390continue
2391fi
2392rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2393  cat >conftest.$ac_ext <<_ACEOF
2394/* confdefs.h.  */
2395_ACEOF
2396cat confdefs.h >>conftest.$ac_ext
2397cat >>conftest.$ac_ext <<_ACEOF
2398/* end confdefs.h.  */
2399$ac_declaration
2400int
2401main ()
2402{
2403exit (42);
2404  ;
2405  return 0;
2406}
2407_ACEOF
2408rm -f conftest.$ac_objext
2409if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2410  (eval $ac_compile) 2>conftest.er1
2411  ac_status=$?
2412  grep -v '^ *+' conftest.er1 >conftest.err
2413  rm -f conftest.er1
2414  cat conftest.err >&5
2415  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416  (exit $ac_status); } &&
2417         { ac_try='test -z "$ac_c_werror_flag"
2418                         || test ! -s conftest.err'
2419  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2420  (eval $ac_try) 2>&5
2421  ac_status=$?
2422  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2423  (exit $ac_status); }; } &&
2424         { ac_try='test -s conftest.$ac_objext'
2425  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2426  (eval $ac_try) 2>&5
2427  ac_status=$?
2428  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2429  (exit $ac_status); }; }; then
2430  break
2431else
2432  echo "$as_me: failed program was:" >&5
2433sed 's/^/| /' conftest.$ac_ext >&5
2434
2435fi
2436rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2437done
2438rm -f conftest*
2439if test -n "$ac_declaration"; then
2440  echo '#ifdef __cplusplus' >>confdefs.h
2441  echo $ac_declaration      >>confdefs.h
2442  echo '#endif'             >>confdefs.h
2443fi
2444
2445else
2446  echo "$as_me: failed program was:" >&5
2447sed 's/^/| /' conftest.$ac_ext >&5
2448
2449fi
2450rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451ac_ext=c
2452ac_cpp='$CPP $CPPFLAGS'
2453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2455ac_compiler_gnu=$ac_cv_c_compiler_gnu
2456
2457CFLAGS="$save_cflags"
2458
2459echo "$as_me:$LINENO: checking for C compiler options" >&5
2460echo $ECHO_N "checking for C compiler options... $ECHO_C" >&6
2461if test "${coin_cv_cflags+set}" = set; then
2462  echo $ECHO_N "(cached) $ECHO_C" >&6
2463else
2464  if test x"$CFLAGS" = x; then
2465
2466  coin_add_cflags=
2467  coin_opt_cflags=
2468  coin_dbg_cflags=
2469  coin_warn_cflags=
2470
2471  if test "$GCC" = "yes"; then
2472    case "$CC" in
2473      icc | */icc)
2474        ;;
2475      *)
2476        coin_opt_cflags="-O3 -fomit-frame-pointer"
2477        coin_add_cflags="-pipe"
2478        coin_dbg_cflags="-g"
2479        coin_warn_cflags="-pedantic-errors -Wimplicit -Wparentheses -Wsequence-point -Wreturn-type -Wcast-qual -Wall"
2480
2481        case $build in
2482          *-cygwin*)
2483            CFLAGS="-mno-cygwin"
2484            cat >conftest.$ac_ext <<_ACEOF
2485/* confdefs.h.  */
2486_ACEOF
2487cat confdefs.h >>conftest.$ac_ext
2488cat >>conftest.$ac_ext <<_ACEOF
2489/* end confdefs.h.  */
2490
2491int
2492main ()
2493{
2494int i=0; i++;
2495  ;
2496  return 0;
2497}
2498_ACEOF
2499rm -f conftest.$ac_objext conftest$ac_exeext
2500if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2501  (eval $ac_link) 2>conftest.er1
2502  ac_status=$?
2503  grep -v '^ *+' conftest.er1 >conftest.err
2504  rm -f conftest.er1
2505  cat conftest.err >&5
2506  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2507  (exit $ac_status); } &&
2508         { ac_try='test -z "$ac_c_werror_flag"
2509                         || test ! -s conftest.err'
2510  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2511  (eval $ac_try) 2>&5
2512  ac_status=$?
2513  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2514  (exit $ac_status); }; } &&
2515         { ac_try='test -s conftest$ac_exeext'
2516  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2517  (eval $ac_try) 2>&5
2518  ac_status=$?
2519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520  (exit $ac_status); }; }; then
2521  coin_add_cflags="-mno-cygwin $coin_add_cflags"
2522else
2523  echo "$as_me: failed program was:" >&5
2524sed 's/^/| /' conftest.$ac_ext >&5
2525
2526fi
2527rm -f conftest.err conftest.$ac_objext \
2528      conftest$ac_exeext conftest.$ac_ext
2529            CFLAGS=
2530          ;;
2531        esac
2532        ;;
2533    esac
2534  fi
2535  if test -z "$coin_opt_cflags"; then
2536    case $build in
2537      *-cygwin* | *-mingw*)
2538        case "$CC" in
2539          cl | */cl)
2540            coin_opt_cflags='-O2'
2541            coin_add_cflags='-nologo'
2542            coin_dbg_cflags='-Yd'
2543            ;;
2544        esac
2545        ;;
2546      *-linux-*)
2547        case "$CC" in
2548          icc | */icc)
2549            coin_opt_cflags="-O3 -ip"
2550            coin_add_cflags=""
2551            coin_dbg_cflags="-g"
2552            # Check if -i_dynamic is necessary (for new glibc library)
2553            CFLAGS=
2554            cat >conftest.$ac_ext <<_ACEOF
2555/* confdefs.h.  */
2556_ACEOF
2557cat confdefs.h >>conftest.$ac_ext
2558cat >>conftest.$ac_ext <<_ACEOF
2559/* end confdefs.h.  */
2560
2561int
2562main ()
2563{
2564int i=0; i++;
2565  ;
2566  return 0;
2567}
2568_ACEOF
2569rm -f conftest.$ac_objext conftest$ac_exeext
2570if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2571  (eval $ac_link) 2>conftest.er1
2572  ac_status=$?
2573  grep -v '^ *+' conftest.er1 >conftest.err
2574  rm -f conftest.er1
2575  cat conftest.err >&5
2576  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577  (exit $ac_status); } &&
2578         { ac_try='test -z "$ac_c_werror_flag"
2579                         || test ! -s conftest.err'
2580  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2581  (eval $ac_try) 2>&5
2582  ac_status=$?
2583  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2584  (exit $ac_status); }; } &&
2585         { ac_try='test -s conftest$ac_exeext'
2586  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2587  (eval $ac_try) 2>&5
2588  ac_status=$?
2589  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2590  (exit $ac_status); }; }; then
2591  :
2592else
2593  echo "$as_me: failed program was:" >&5
2594sed 's/^/| /' conftest.$ac_ext >&5
2595
2596coin_add_cflags="-i_dynamic $coin_add_cflags"
2597fi
2598rm -f conftest.err conftest.$ac_objext \
2599      conftest$ac_exeext conftest.$ac_ext
2600            ;;
2601          pgcc | */pgcc)
2602            coin_opt_cflags="-fast"
2603            coin_add_cflags="-Kieee -pc 64"
2604            coin_dbg_cflags="-g"
2605            ;;
2606        esac
2607        ;;
2608      *-ibm-*)
2609        case "$CC" in
2610          xlc* | */xlc* | mpxlc* | */mpxlc*)
2611            coin_opt_cflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
2612            coin_add_cflags="-bmaxdata:0x80000000"
2613            coin_dbg_cflags="-g"
2614          ;;
2615        esac
2616        ;;
2617      *-hp-*)
2618        coin_opt_cflags="-O"
2619        coin_add_cflags="-Ae"
2620        coin_dbg_cflags="-g"
2621        ;;
2622      *-sun-*)
2623        coin_opt_cflags="-xO4"
2624        coin_dbg_cflags="-g"
2625        ;;
2626      *-sgi-*)
2627        coin_opt_cflags="-O -OPT:Olimit=0"
2628        coin_dbg_cflags="-g"
2629        ;;
2630    esac
2631  fi
2632
2633  if test "$ac_cv_prog_cc_g" = yes && test -z "$coin_dbg_cflags" ; then
2634    coin_dbg_cflags="-g"
2635  fi
2636
2637  if test "$coin_debug_compile" = "true"; then
2638    CFLAGS="$coin_dbg_cflags $coin_add_cflags $coin_warn_cflags"
2639  else
2640    if test -z "$coin_opt_cflags"; then
2641      # Try if -O option works if nothing else is set
2642      CFLAGS="-O"
2643      cat >conftest.$ac_ext <<_ACEOF
2644/* confdefs.h.  */
2645_ACEOF
2646cat confdefs.h >>conftest.$ac_ext
2647cat >>conftest.$ac_ext <<_ACEOF
2648/* end confdefs.h.  */
2649
2650int
2651main ()
2652{
2653int i=0; i++;
2654  ;
2655  return 0;
2656}
2657_ACEOF
2658rm -f conftest.$ac_objext conftest$ac_exeext
2659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2660  (eval $ac_link) 2>conftest.er1
2661  ac_status=$?
2662  grep -v '^ *+' conftest.er1 >conftest.err
2663  rm -f conftest.er1
2664  cat conftest.err >&5
2665  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2666  (exit $ac_status); } &&
2667         { ac_try='test -z "$ac_c_werror_flag"
2668                         || test ! -s conftest.err'
2669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2670  (eval $ac_try) 2>&5
2671  ac_status=$?
2672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673  (exit $ac_status); }; } &&
2674         { ac_try='test -s conftest$ac_exeext'
2675  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2676  (eval $ac_try) 2>&5
2677  ac_status=$?
2678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2679  (exit $ac_status); }; }; then
2680  coin_opt_cflags="-O"
2681else
2682  echo "$as_me: failed program was:" >&5
2683sed 's/^/| /' conftest.$ac_ext >&5
2684
2685fi
2686rm -f conftest.err conftest.$ac_objext \
2687      conftest$ac_exeext conftest.$ac_ext
2688    fi
2689    CFLAGS="$coin_opt_cflags $coin_add_cflags -DNDEBUG $CDEFS $coin_warn_cflags"
2690  fi
2691fi
2692
2693# Try if CFLAGS works
2694cat >conftest.$ac_ext <<_ACEOF
2695/* confdefs.h.  */
2696_ACEOF
2697cat confdefs.h >>conftest.$ac_ext
2698cat >>conftest.$ac_ext <<_ACEOF
2699/* end confdefs.h.  */
2700
2701int
2702main ()
2703{
2704int i=0; i++;
2705  ;
2706  return 0;
2707}
2708_ACEOF
2709rm -f conftest.$ac_objext conftest$ac_exeext
2710if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2711  (eval $ac_link) 2>conftest.er1
2712  ac_status=$?
2713  grep -v '^ *+' conftest.er1 >conftest.err
2714  rm -f conftest.er1
2715  cat conftest.err >&5
2716  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2717  (exit $ac_status); } &&
2718         { ac_try='test -z "$ac_c_werror_flag"
2719                         || test ! -s conftest.err'
2720  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2721  (eval $ac_try) 2>&5
2722  ac_status=$?
2723  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2724  (exit $ac_status); }; } &&
2725         { ac_try='test -s conftest$ac_exeext'
2726  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2727  (eval $ac_try) 2>&5
2728  ac_status=$?
2729  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730  (exit $ac_status); }; }; then
2731  :
2732else
2733  echo "$as_me: failed program was:" >&5
2734sed 's/^/| /' conftest.$ac_ext >&5
2735
2736CFLAGS=
2737fi
2738rm -f conftest.err conftest.$ac_objext \
2739      conftest$ac_exeext conftest.$ac_ext
2740if test -z "$CFLAGS"; then
2741  { 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
2742echo "$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;}
2743  CFLAGS='-O'
2744  cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h.  */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h.  */
2750
2751int
2752main ()
2753{
2754int i=0; i++;
2755  ;
2756  return 0;
2757}
2758_ACEOF
2759rm -f conftest.$ac_objext conftest$ac_exeext
2760if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2761  (eval $ac_link) 2>conftest.er1
2762  ac_status=$?
2763  grep -v '^ *+' conftest.er1 >conftest.err
2764  rm -f conftest.er1
2765  cat conftest.err >&5
2766  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2767  (exit $ac_status); } &&
2768         { ac_try='test -z "$ac_c_werror_flag"
2769                         || test ! -s conftest.err'
2770  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2771  (eval $ac_try) 2>&5
2772  ac_status=$?
2773  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774  (exit $ac_status); }; } &&
2775         { ac_try='test -s conftest$ac_exeext'
2776  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2777  (eval $ac_try) 2>&5
2778  ac_status=$?
2779  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2780  (exit $ac_status); }; }; then
2781  :
2782else
2783  echo "$as_me: failed program was:" >&5
2784sed 's/^/| /' conftest.$ac_ext >&5
2785
2786CFLAGS=
2787fi
2788rm -f conftest.err conftest.$ac_objext \
2789      conftest$ac_exeext conftest.$ac_ext
2790  if test -z "$CFLAGS"; then
2791    { 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
2792echo "$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;}
2793  fi
2794fi
2795coin_cv_cflags="$CFLAGS"
2796
2797fi
2798echo "$as_me:$LINENO: result: $coin_cv_cflags" >&5
2799echo "${ECHO_T}$coin_cv_cflags" >&6 # AC_CACHE_CHECK([for C compiler options CXXFLAGS]
2800CFLAGS="$coin_cv_cflags"
2801
2802ac_ext=c
2803ac_cpp='$CPP $CPPFLAGS'
2804ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2805ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2806ac_compiler_gnu=$ac_cv_c_compiler_gnu
2807
2808
2809
2810 #Let's try if that overcomes configuration problem with VC++ 6.0
2811ac_ext=cc
2812ac_cpp='$CXXCPP $CPPFLAGS'
2813ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2814ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2815ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2816
2817
2818
2819
2820coin_has_cxx=yes
2821
2822save_cxxflags="$CXXFLAGS"
2823case $build in
2824  *-cygwin* | *-mingw*)
2825             comps="g++ cl" ;;
2826  *-darwin*) comps="g++ c++ CC" ;;
2827          *) comps="xlC aCC CC g++ c++ pgCC icpc" ;;
2828esac
2829ac_ext=cc
2830ac_cpp='$CXXCPP $CPPFLAGS'
2831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2834if test -n "$ac_tool_prefix"; then
2835  for ac_prog in $CCC $comps
2836  do
2837    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2838set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2839echo "$as_me:$LINENO: checking for $ac_word" >&5
2840echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2841if test "${ac_cv_prog_CXX+set}" = set; then
2842  echo $ECHO_N "(cached) $ECHO_C" >&6
2843else
2844  if test -n "$CXX"; then
2845  ac_cv_prog_CXX="$CXX" # Let the user override the test.
2846else
2847as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2848for as_dir in $PATH
2849do
2850  IFS=$as_save_IFS
2851  test -z "$as_dir" && as_dir=.
2852  for ac_exec_ext in '' $ac_executable_extensions; do
2853  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2854    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2855    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2856    break 2
2857  fi
2858done
2859done
2860
2861fi
2862fi
2863CXX=$ac_cv_prog_CXX
2864if test -n "$CXX"; then
2865  echo "$as_me:$LINENO: result: $CXX" >&5
2866echo "${ECHO_T}$CXX" >&6
2867else
2868  echo "$as_me:$LINENO: result: no" >&5
2869echo "${ECHO_T}no" >&6
2870fi
2871
2872    test -n "$CXX" && break
2873  done
2874fi
2875if test -z "$CXX"; then
2876  ac_ct_CXX=$CXX
2877  for ac_prog in $CCC $comps
2878do
2879  # Extract the first word of "$ac_prog", so it can be a program name with args.
2880set dummy $ac_prog; ac_word=$2
2881echo "$as_me:$LINENO: checking for $ac_word" >&5
2882echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2883if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2884  echo $ECHO_N "(cached) $ECHO_C" >&6
2885else
2886  if test -n "$ac_ct_CXX"; then
2887  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2888else
2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2890for as_dir in $PATH
2891do
2892  IFS=$as_save_IFS
2893  test -z "$as_dir" && as_dir=.
2894  for ac_exec_ext in '' $ac_executable_extensions; do
2895  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2896    ac_cv_prog_ac_ct_CXX="$ac_prog"
2897    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2898    break 2
2899  fi
2900done
2901done
2902
2903fi
2904fi
2905ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2906if test -n "$ac_ct_CXX"; then
2907  echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2908echo "${ECHO_T}$ac_ct_CXX" >&6
2909else
2910  echo "$as_me:$LINENO: result: no" >&5
2911echo "${ECHO_T}no" >&6
2912fi
2913
2914  test -n "$ac_ct_CXX" && break
2915done
2916test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2917
2918  CXX=$ac_ct_CXX
2919fi
2920
2921
2922# Provide some information about the compiler.
2923echo "$as_me:$LINENO:" \
2924     "checking for C++ compiler version" >&5
2925ac_compiler=`set X $ac_compile; echo $2`
2926{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2927  (eval $ac_compiler --version </dev/null >&5) 2>&5
2928  ac_status=$?
2929  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930  (exit $ac_status); }
2931{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2932  (eval $ac_compiler -v </dev/null >&5) 2>&5
2933  ac_status=$?
2934  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935  (exit $ac_status); }
2936{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2937  (eval $ac_compiler -V </dev/null >&5) 2>&5
2938  ac_status=$?
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); }
2941
2942echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2943echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
2944if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2945  echo $ECHO_N "(cached) $ECHO_C" >&6
2946else
2947  cat >conftest.$ac_ext <<_ACEOF
2948/* confdefs.h.  */
2949_ACEOF
2950cat confdefs.h >>conftest.$ac_ext
2951cat >>conftest.$ac_ext <<_ACEOF
2952/* end confdefs.h.  */
2953
2954int
2955main ()
2956{
2957#ifndef __GNUC__
2958       choke me
2959#endif
2960
2961  ;
2962  return 0;
2963}
2964_ACEOF
2965rm -f conftest.$ac_objext
2966if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2967  (eval $ac_compile) 2>conftest.er1
2968  ac_status=$?
2969  grep -v '^ *+' conftest.er1 >conftest.err
2970  rm -f conftest.er1
2971  cat conftest.err >&5
2972  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973  (exit $ac_status); } &&
2974         { ac_try='test -z "$ac_cxx_werror_flag"
2975                         || test ! -s conftest.err'
2976  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2977  (eval $ac_try) 2>&5
2978  ac_status=$?
2979  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980  (exit $ac_status); }; } &&
2981         { ac_try='test -s conftest.$ac_objext'
2982  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2983  (eval $ac_try) 2>&5
2984  ac_status=$?
2985  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2986  (exit $ac_status); }; }; then
2987  ac_compiler_gnu=yes
2988else
2989  echo "$as_me: failed program was:" >&5
2990sed 's/^/| /' conftest.$ac_ext >&5
2991
2992ac_compiler_gnu=no
2993fi
2994rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2995ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2996
2997fi
2998echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2999echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3000GXX=`test $ac_compiler_gnu = yes && echo yes`
3001ac_test_CXXFLAGS=${CXXFLAGS+set}
3002ac_save_CXXFLAGS=$CXXFLAGS
3003CXXFLAGS="-g"
3004echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3005echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3006if test "${ac_cv_prog_cxx_g+set}" = set; then
3007  echo $ECHO_N "(cached) $ECHO_C" >&6
3008else
3009  cat >conftest.$ac_ext <<_ACEOF
3010/* confdefs.h.  */
3011_ACEOF
3012cat confdefs.h >>conftest.$ac_ext
3013cat >>conftest.$ac_ext <<_ACEOF
3014/* end confdefs.h.  */
3015
3016int
3017main ()
3018{
3019
3020  ;
3021  return 0;
3022}
3023_ACEOF
3024rm -f conftest.$ac_objext
3025if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3026  (eval $ac_compile) 2>conftest.er1
3027  ac_status=$?
3028  grep -v '^ *+' conftest.er1 >conftest.err
3029  rm -f conftest.er1
3030  cat conftest.err >&5
3031  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3032  (exit $ac_status); } &&
3033         { ac_try='test -z "$ac_cxx_werror_flag"
3034                         || test ! -s conftest.err'
3035  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3036  (eval $ac_try) 2>&5
3037  ac_status=$?
3038  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039  (exit $ac_status); }; } &&
3040         { ac_try='test -s conftest.$ac_objext'
3041  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3042  (eval $ac_try) 2>&5
3043  ac_status=$?
3044  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045  (exit $ac_status); }; }; then
3046  ac_cv_prog_cxx_g=yes
3047else
3048  echo "$as_me: failed program was:" >&5
3049sed 's/^/| /' conftest.$ac_ext >&5
3050
3051ac_cv_prog_cxx_g=no
3052fi
3053rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3054fi
3055echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3056echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3057if test "$ac_test_CXXFLAGS" = set; then
3058  CXXFLAGS=$ac_save_CXXFLAGS
3059elif test $ac_cv_prog_cxx_g = yes; then
3060  if test "$GXX" = yes; then
3061    CXXFLAGS="-g -O2"
3062  else
3063    CXXFLAGS="-g"
3064  fi
3065else
3066  if test "$GXX" = yes; then
3067    CXXFLAGS="-O2"
3068  else
3069    CXXFLAGS=
3070  fi
3071fi
3072for ac_declaration in \
3073   '' \
3074   'extern "C" void std::exit (int) throw (); using std::exit;' \
3075   'extern "C" void std::exit (int); using std::exit;' \
3076   'extern "C" void exit (int) throw ();' \
3077   'extern "C" void exit (int);' \
3078   'void exit (int);'
3079do
3080  cat >conftest.$ac_ext <<_ACEOF
3081/* confdefs.h.  */
3082_ACEOF
3083cat confdefs.h >>conftest.$ac_ext
3084cat >>conftest.$ac_ext <<_ACEOF
3085/* end confdefs.h.  */
3086$ac_declaration
3087#include <stdlib.h>
3088int
3089main ()
3090{
3091exit (42);
3092  ;
3093  return 0;
3094}
3095_ACEOF
3096rm -f conftest.$ac_objext
3097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3098  (eval $ac_compile) 2>conftest.er1
3099  ac_status=$?
3100  grep -v '^ *+' conftest.er1 >conftest.err
3101  rm -f conftest.er1
3102  cat conftest.err >&5
3103  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104  (exit $ac_status); } &&
3105         { ac_try='test -z "$ac_cxx_werror_flag"
3106                         || test ! -s conftest.err'
3107  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3108  (eval $ac_try) 2>&5
3109  ac_status=$?
3110  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3111  (exit $ac_status); }; } &&
3112         { ac_try='test -s conftest.$ac_objext'
3113  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3114  (eval $ac_try) 2>&5
3115  ac_status=$?
3116  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3117  (exit $ac_status); }; }; then
3118  :
3119else
3120  echo "$as_me: failed program was:" >&5
3121sed 's/^/| /' conftest.$ac_ext >&5
3122
3123continue
3124fi
3125rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3126  cat >conftest.$ac_ext <<_ACEOF
3127/* confdefs.h.  */
3128_ACEOF
3129cat confdefs.h >>conftest.$ac_ext
3130cat >>conftest.$ac_ext <<_ACEOF
3131/* end confdefs.h.  */
3132$ac_declaration
3133int
3134main ()
3135{
3136exit (42);
3137  ;
3138  return 0;
3139}
3140_ACEOF
3141rm -f conftest.$ac_objext
3142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3143  (eval $ac_compile) 2>conftest.er1
3144  ac_status=$?
3145  grep -v '^ *+' conftest.er1 >conftest.err
3146  rm -f conftest.er1
3147  cat conftest.err >&5
3148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149  (exit $ac_status); } &&
3150         { ac_try='test -z "$ac_cxx_werror_flag"
3151                         || test ! -s conftest.err'
3152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3153  (eval $ac_try) 2>&5
3154  ac_status=$?
3155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156  (exit $ac_status); }; } &&
3157         { ac_try='test -s conftest.$ac_objext'
3158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3159  (eval $ac_try) 2>&5
3160  ac_status=$?
3161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3162  (exit $ac_status); }; }; then
3163  break
3164else
3165  echo "$as_me: failed program was:" >&5
3166sed 's/^/| /' conftest.$ac_ext >&5
3167
3168fi
3169rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3170done
3171rm -f conftest*
3172if test -n "$ac_declaration"; then
3173  echo '#ifdef __cplusplus' >>confdefs.h
3174  echo $ac_declaration      >>confdefs.h
3175  echo '#endif'             >>confdefs.h
3176fi
3177
3178ac_ext=cc
3179ac_cpp='$CXXCPP $CPPFLAGS'
3180ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3181ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3182ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3183
3184CXXFLAGS="$save_cxxflags"
3185
3186echo "$as_me:$LINENO: checking for C++ compiler options" >&5
3187echo $ECHO_N "checking for C++ compiler options... $ECHO_C" >&6
3188if test "${coin_cv_cxxflags+set}" = set; then
3189  echo $ECHO_N "(cached) $ECHO_C" >&6
3190else
3191  if test x"$CXXFLAGS" = x; then
3192
3193# ToDo decide whether we want -DNDEBUG for optimization
3194  coin_add_cxxflags=
3195  coin_opt_cxxflags=
3196  coin_dbg_cxxflags=
3197  coin_warn_cxxflags=
3198
3199  if test "$GXX" = "yes"; then
3200    case "$CXX" in
3201      icpc | */icpc)
3202        ;;
3203      *)
3204# ToDo decide about unroll-loops
3205        coin_opt_cxxflags="-O3 -fomit-frame-pointer"
3206        coin_add_cxxflags="-pipe"
3207        coin_dbg_cxxflags="-g"
3208        coin_warn_cxxflags="-pedantic-errors -Wimplicit -Wparentheses -Wreturn-type -Wcast-qual -Wall -Wpointer-arith -Wwrite-strings -Wconversion"
3209
3210        case $build in
3211          *-cygwin*)
3212            CXXFLAGS="-mno-cygwin"
3213            cat >conftest.$ac_ext <<_ACEOF
3214/* confdefs.h.  */
3215_ACEOF
3216cat confdefs.h >>conftest.$ac_ext
3217cat >>conftest.$ac_ext <<_ACEOF
3218/* end confdefs.h.  */
3219
3220int
3221main ()
3222{
3223int i=0; i++;
3224  ;
3225  return 0;
3226}
3227_ACEOF
3228rm -f conftest.$ac_objext conftest$ac_exeext
3229if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3230  (eval $ac_link) 2>conftest.er1
3231  ac_status=$?
3232  grep -v '^ *+' conftest.er1 >conftest.err
3233  rm -f conftest.er1
3234  cat conftest.err >&5
3235  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3236  (exit $ac_status); } &&
3237         { ac_try='test -z "$ac_cxx_werror_flag"
3238                         || test ! -s conftest.err'
3239  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3240  (eval $ac_try) 2>&5
3241  ac_status=$?
3242  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3243  (exit $ac_status); }; } &&
3244         { ac_try='test -s conftest$ac_exeext'
3245  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3246  (eval $ac_try) 2>&5
3247  ac_status=$?
3248  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249  (exit $ac_status); }; }; then
3250  coin_add_cxxflags="-mno-cygwin $coin_add_cxxflags"
3251else
3252  echo "$as_me: failed program was:" >&5
3253sed 's/^/| /' conftest.$ac_ext >&5
3254
3255fi
3256rm -f conftest.err conftest.$ac_objext \
3257      conftest$ac_exeext conftest.$ac_ext
3258            CXXFLAGS=
3259            ;;
3260        esac
3261        ;;
3262    esac
3263  fi
3264  if test -z "$coin_opt_cxxflags"; then
3265    case $build in
3266      *-cygwin* | *-mingw*)
3267        case "$CXX" in
3268          cl | */cl)
3269            coin_opt_cxxflags='-O2'
3270            coin_add_cxxflags='-nologo -EHsc -GR -MT'
3271            coin_dbg_cxxflags='-Yd'
3272            ;;
3273        esac
3274        ;;
3275      *-linux-*)
3276        case "$CXX" in
3277          icpc | */icpc)
3278            coin_opt_cxxflags="-O3 -ip"
3279            coin_add_cxxflags=""
3280            coin_dbg_cxxflags="-g"
3281            # Check if -i_dynamic is necessary (for new glibc library)
3282            CXXFLAGS=
3283            cat >conftest.$ac_ext <<_ACEOF
3284/* confdefs.h.  */
3285_ACEOF
3286cat confdefs.h >>conftest.$ac_ext
3287cat >>conftest.$ac_ext <<_ACEOF
3288/* end confdefs.h.  */
3289
3290int
3291main ()
3292{
3293int i=0; i++;
3294  ;
3295  return 0;
3296}
3297_ACEOF
3298rm -f conftest.$ac_objext conftest$ac_exeext
3299if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3300  (eval $ac_link) 2>conftest.er1
3301  ac_status=$?
3302  grep -v '^ *+' conftest.er1 >conftest.err
3303  rm -f conftest.er1
3304  cat conftest.err >&5
3305  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3306  (exit $ac_status); } &&
3307         { ac_try='test -z "$ac_cxx_werror_flag"
3308                         || test ! -s conftest.err'
3309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3310  (eval $ac_try) 2>&5
3311  ac_status=$?
3312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3313  (exit $ac_status); }; } &&
3314         { ac_try='test -s conftest$ac_exeext'
3315  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3316  (eval $ac_try) 2>&5
3317  ac_status=$?
3318  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3319  (exit $ac_status); }; }; then
3320  :
3321else
3322  echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325coin_add_cxxflags="-i_dynamic $coin_add_cxxflags"
3326fi
3327rm -f conftest.err conftest.$ac_objext \
3328      conftest$ac_exeext conftest.$ac_ext
3329            ;;
3330          pgCC | */pgCC)
3331            coin_opt_cxxflags="-fast"
3332            coin_add_cxxflags="-Kieee -pc 64"
3333            coin_dbg_cxxflags="-g"
3334            ;;
3335        esac
3336        ;;
3337      *-ibm-*)
3338        case "$CXX" in
3339          xlC* | */xlC* | mpxlC* | */mpxlC*)
3340            coin_opt_cxxflags="-O3 -qarch=auto -qcache=auto -qhot -qtune=auto -qmaxmem=-1"
3341            coin_add_cxxflags="-bmaxdata:0x80000000 -qrtti=dyna"
3342            coin_dbg_cxxflags="-g"
3343            ;;
3344        esac
3345        ;;
3346      *-hp-*)
3347        case "$CXX" in
3348          aCC | */aCC )
3349            coin_opt_cxxflags="-O"
3350            coin_add_cxxflags="-AA"
3351            coin_dbg_cxxflags="-g"
3352            ;;
3353        esac
3354        ;;
3355      *-sun-*)
3356          coin_opt_cxxflags="-O4"
3357          coin_dbg_cxxflags="-g"
3358        ;;
3359    esac
3360  fi
3361
3362  if test "$ac_cv_prog_cxx_g" = yes && test -z "$coin_dbg_cxxflags" ; then
3363    coin_dbg_cxxflags="-g"
3364  fi
3365
3366  if test "$coin_debug_compile" = "true"; then
3367    CXXFLAGS="$coin_dbg_cxxflags $coin_add_cxxflags $coin_warn_cxxflags"
3368  else
3369    if test -z "$coin_opt_cxxflags"; then
3370      # Try if -O option works if nothing else is set
3371      CXXFLAGS="-O"
3372      cat >conftest.$ac_ext <<_ACEOF
3373/* confdefs.h.  */
3374_ACEOF
3375cat confdefs.h >>conftest.$ac_ext
3376cat >>conftest.$ac_ext <<_ACEOF
3377/* end confdefs.h.  */
3378
3379int
3380main ()
3381{
3382int i=0; i++;
3383  ;
3384  return 0;
3385}
3386_ACEOF
3387rm -f conftest.$ac_objext conftest$ac_exeext
3388if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3389  (eval $ac_link) 2>conftest.er1
3390  ac_status=$?
3391  grep -v '^ *+' conftest.er1 >conftest.err
3392  rm -f conftest.er1
3393  cat conftest.err >&5
3394  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3395  (exit $ac_status); } &&
3396         { ac_try='test -z "$ac_cxx_werror_flag"
3397                         || test ! -s conftest.err'
3398  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399  (eval $ac_try) 2>&5
3400  ac_status=$?
3401  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402  (exit $ac_status); }; } &&
3403         { ac_try='test -s conftest$ac_exeext'
3404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3405  (eval $ac_try) 2>&5
3406  ac_status=$?
3407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3408  (exit $ac_status); }; }; then
3409  coin_opt_cxxflags="-O"
3410else
3411  echo "$as_me: failed program was:" >&5
3412sed 's/^/| /' conftest.$ac_ext >&5
3413
3414fi
3415rm -f conftest.err conftest.$ac_objext \
3416      conftest$ac_exeext conftest.$ac_ext
3417    fi
3418    CXXFLAGS="$coin_opt_cxxflags $coin_add_cxxflags -DNDEBUG $CXXDEFS $coin_warn_cxxflags"
3419  fi
3420fi
3421
3422# Try if CXXFLAGS works
3423cat >conftest.$ac_ext <<_ACEOF
3424/* confdefs.h.  */
3425_ACEOF
3426cat confdefs.h >>conftest.$ac_ext
3427cat >>conftest.$ac_ext <<_ACEOF
3428/* end confdefs.h.  */
3429
3430int
3431main ()
3432{
3433int i=0; i++;
3434  ;
3435  return 0;
3436}
3437_ACEOF
3438rm -f conftest.$ac_objext conftest$ac_exeext
3439if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3440  (eval $ac_link) 2>conftest.er1
3441  ac_status=$?
3442  grep -v '^ *+' conftest.er1 >conftest.err
3443  rm -f conftest.er1
3444  cat conftest.err >&5
3445  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3446  (exit $ac_status); } &&
3447         { ac_try='test -z "$ac_cxx_werror_flag"
3448                         || test ! -s conftest.err'
3449  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3450  (eval $ac_try) 2>&5
3451  ac_status=$?
3452  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3453  (exit $ac_status); }; } &&
3454         { ac_try='test -s conftest$ac_exeext'
3455  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3456  (eval $ac_try) 2>&5
3457  ac_status=$?
3458  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3459  (exit $ac_status); }; }; then
3460  :
3461else
3462  echo "$as_me: failed program was:" >&5
3463sed 's/^/| /' conftest.$ac_ext >&5
3464
3465CXXFLAGS=
3466fi
3467rm -f conftest.err conftest.$ac_objext \
3468      conftest$ac_exeext conftest.$ac_ext
3469if test -z "$CXXFLAGS"; then
3470  { 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
3471echo "$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;}
3472  CXXFLAGS='-O'
3473  cat >conftest.$ac_ext <<_ACEOF
3474/* confdefs.h.  */
3475_ACEOF
3476cat confdefs.h >>conftest.$ac_ext
3477cat >>conftest.$ac_ext <<_ACEOF
3478/* end confdefs.h.  */
3479
3480int
3481main ()
3482{
3483int i=0; i++;
3484  ;
3485  return 0;
3486}
3487_ACEOF
3488rm -f conftest.$ac_objext conftest$ac_exeext
3489if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3490  (eval $ac_link) 2>conftest.er1
3491  ac_status=$?
3492  grep -v '^ *+' conftest.er1 >conftest.err
3493  rm -f conftest.er1
3494  cat conftest.err >&5
3495  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3496  (exit $ac_status); } &&
3497         { ac_try='test -z "$ac_cxx_werror_flag"
3498                         || test ! -s conftest.err'
3499  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3500  (eval $ac_try) 2>&5
3501  ac_status=$?
3502  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3503  (exit $ac_status); }; } &&
3504         { ac_try='test -s conftest$ac_exeext'
3505  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3506  (eval $ac_try) 2>&5
3507  ac_status=$?
3508  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3509  (exit $ac_status); }; }; then
3510  :
3511else
3512  echo "$as_me: failed program was:" >&5
3513sed 's/^/| /' conftest.$ac_ext >&5
3514
3515CXXFLAGS=
3516fi
3517rm -f conftest.err conftest.$ac_objext \
3518      conftest$ac_exeext conftest.$ac_ext
3519  if test -z "$CXXFLAGS"; then
3520    { 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
3521echo "$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;}
3522  fi
3523fi
3524coin_cv_cxxflags="$CXXFLAGS"
3525
3526fi
3527echo "$as_me:$LINENO: result: $coin_cv_cxxflags" >&5
3528echo "${ECHO_T}$coin_cv_cxxflags" >&6 # AC_CACHE_CHECK([for C++ compiler options CXXFLAGS]
3529CXXFLAGS="$coin_cv_cxxflags"
3530
3531ac_ext=c
3532ac_cpp='$CPP $CPPFLAGS'
3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3535ac_compiler_gnu=$ac_cv_c_compiler_gnu
3536
3537
3538
3539# Initialize automake and libtool
3540
3541# On Cygwin, building DLLs doesn't work
3542case $build in
3543  *-cygwin*)
3544    coin_disable_shared=yes
3545    platform=Cygwin
3546  ;;
3547  *-mingw*)
3548    case $CXX in
3549      cl)
3550        coin_disable_shared=yes
3551        platform="Msys with cl"
3552    ;;
3553    esac
3554  ;;
3555esac
3556if test x"$coin_disable_shared" = xyes; then
3557  if test x"$enable_shared" = xyes; then
3558    { echo "$as_me:$LINENO: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&5
3559echo "$as_me: WARNING: On $platform, shared objects are not supported. I'm disabling your choice." >&2;}
3560  fi
3561#  enable_shared=no
3562fi
3563# By default, we only want the shared objects to be compiled
3564# Check whether --enable-static or --disable-static was given.
3565if test "${enable_static+set}" = set; then
3566  enableval="$enable_static"
3567  p=${PACKAGE-default}
3568    case $enableval in
3569    yes) enable_static=yes ;;
3570    no) enable_static=no ;;
3571    *)
3572     enable_static=no
3573      # Look at the argument we got.  We use all the common list separators.
3574      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3575      for pkg in $enableval; do
3576        IFS="$lt_save_ifs"
3577        if test "X$pkg" = "X$p"; then
3578          enable_static=yes
3579        fi
3580      done
3581      IFS="$lt_save_ifs"
3582      ;;
3583    esac
3584else
3585  enable_static=no
3586fi;
3587
3588
3589
3590echo "$as_me:$LINENO: checking for egrep" >&5
3591echo $ECHO_N "checking for egrep... $ECHO_C" >&6
3592if test "${ac_cv_prog_egrep+set}" = set; then
3593  echo $ECHO_N "(cached) $ECHO_C" >&6
3594else
3595  if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3596    then ac_cv_prog_egrep='grep -E'
3597    else ac_cv_prog_egrep='egrep'
3598    fi
3599fi
3600echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3601echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3602 EGREP=$ac_cv_prog_egrep
3603
3604
3605am__api_version="1.9"
3606# Find a good install program.  We prefer a C program (faster),
3607# so one script is as good as another.  But avoid the broken or
3608# incompatible versions:
3609# SysV /etc/install, /usr/sbin/install
3610# SunOS /usr/etc/install
3611# IRIX /sbin/install
3612# AIX /bin/install
3613# AmigaOS /C/install, which installs bootblocks on floppy discs
3614# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3615# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3616# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3617# OS/2's system install, which has a completely different semantic
3618# ./install, which can be erroneously created by make from ./install.sh.
3619echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3620echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3621if test -z "$INSTALL"; then
3622if test "${ac_cv_path_install+set}" = set; then
3623  echo $ECHO_N "(cached) $ECHO_C" >&6
3624else
3625  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626for as_dir in $PATH
3627do
3628  IFS=$as_save_IFS
3629  test -z "$as_dir" && as_dir=.
3630  # Account for people who put trailing slashes in PATH elements.
3631case $as_dir/ in
3632  ./ | .// | /cC/* | \
3633  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3634  ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3635  /usr/ucb/* ) ;;
3636  *)
3637    # OSF1 and SCO ODT 3.0 have their own names for install.
3638    # Don't use installbsd from OSF since it installs stuff as root
3639    # by default.
3640    for ac_prog in ginstall scoinst install; do
3641      for ac_exec_ext in '' $ac_executable_extensions; do
3642        if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3643          if test $ac_prog = install &&
3644            grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3645            # AIX install.  It has an incompatible calling convention.
3646            :
3647          elif test $ac_prog = install &&
3648            grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3649            # program-specific install script used by HP pwplus--don't use.
3650            :
3651          else
3652            ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3653            break 3
3654          fi
3655        fi
3656      done
3657    done
3658    ;;
3659esac
3660done
3661
3662
3663fi
3664  if test "${ac_cv_path_install+set}" = set; then
3665    INSTALL=$ac_cv_path_install
3666  else
3667    # As a last resort, use the slow shell script.  We don't cache a
3668    # path for INSTALL within a source directory, because that will
3669    # break other packages using the cache if that directory is
3670    # removed, or if the path is relative.
3671    INSTALL=$ac_install_sh
3672  fi
3673fi
3674echo "$as_me:$LINENO: result: $INSTALL" >&5
3675echo "${ECHO_T}$INSTALL" >&6
3676
3677# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3678# It thinks the first close brace ends the variable substitution.
3679test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3680
3681test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3682
3683test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3684
3685echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3686echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3687# Just in case
3688sleep 1
3689echo timestamp > conftest.file
3690# Do `set' in a subshell so we don't clobber the current shell's
3691# arguments.  Must try -L first in case configure is actually a
3692# symlink; some systems play weird games with the mod time of symlinks
3693# (eg FreeBSD returns the mod time of the symlink's containing
3694# directory).
3695if (
3696   set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3697   if test "$*" = "X"; then
3698      # -L didn't work.
3699      set X `ls -t $srcdir/configure conftest.file`
3700   fi
3701   rm -f conftest.file
3702   if test "$*" != "X $srcdir/configure conftest.file" \
3703      && test "$*" != "X conftest.file $srcdir/configure"; then
3704
3705      # If neither matched, then we have a broken ls.  This can happen
3706      # if, for instance, CONFIG_SHELL is bash and it inherits a
3707      # broken ls alias from the environment.  This has actually
3708      # happened.  Such a system could not be considered "sane".
3709      { { echo "$as_me:$LINENO: error: ls -t appears to fail.  Make sure there is not a broken
3710alias in your environment" >&5
3711echo "$as_me: error: ls -t appears to fail.  Make sure there is not a broken
3712alias in your environment" >&2;}
3713   { (exit 1); exit 1; }; }
3714   fi
3715
3716   test "$2" = conftest.file
3717   )
3718then
3719   # Ok.
3720   :
3721else
3722   { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3723Check your system clock" >&5
3724echo "$as_me: error: newly created file is older than distributed files!
3725Check your system clock" >&2;}
3726   { (exit 1); exit 1; }; }
3727fi
3728echo "$as_me:$LINENO: result: yes" >&5
3729echo "${ECHO_T}yes" >&6
3730test "$program_prefix" != NONE &&
3731  program_transform_name="s,^,$program_prefix,;$program_transform_name"
3732# Use a double $ so make ignores it.
3733test "$program_suffix" != NONE &&
3734  program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3735# Double any \ or $.  echo might interpret backslashes.
3736# By default was `s,x,x', remove it if useless.
3737cat <<\_ACEOF >conftest.sed
3738s/[\\$]/&&/g;s/;s,x,x,$//
3739_ACEOF
3740program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3741rm conftest.sed
3742
3743# expand $ac_aux_dir to an absolute path
3744am_aux_dir=`cd $ac_aux_dir && pwd`
3745
3746test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3747# Use eval to expand $SHELL
3748if eval "$MISSING --run true"; then
3749  am_missing_run="$MISSING --run "
3750else
3751  am_missing_run=
3752  { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3753echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3754fi
3755
3756if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3757  # We used to keeping the `.' as first argument, in order to
3758  # allow $(mkdir_p) to be used without argument.  As in
3759  #   $(mkdir_p) $(somedir)
3760  # where $(somedir) is conditionally defined.  However this is wrong
3761  # for two reasons:
3762  #  1. if the package is installed by a user who cannot write `.'
3763  #     make install will fail,
3764  #  2. the above comment should most certainly read
3765  #     $(mkdir_p) $(DESTDIR)$(somedir)
3766  #     so it does not work when $(somedir) is undefined and
3767  #     $(DESTDIR) is not.
3768  #  To support the latter case, we have to write
3769  #     test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3770  #  so the `.' trick is pointless.
3771  mkdir_p='mkdir -p --'
3772else
3773  # On NextStep and OpenStep, the `mkdir' command does not
3774  # recognize any option.  It will interpret all options as
3775  # directories to create, and then abort because `.' already
3776  # exists.
3777  for d in ./-p ./--version;
3778  do
3779    test -d $d && rmdir $d
3780  done
3781  # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3782  if test -f "$ac_aux_dir/mkinstalldirs"; then
3783    mkdir_p='$(mkinstalldirs)'
3784  else
3785    mkdir_p='$(install_sh) -d'
3786  fi
3787fi
3788
3789for ac_prog in gawk mawk nawk awk
3790do
3791  # Extract the first word of "$ac_prog", so it can be a program name with args.
3792set dummy $ac_prog; ac_word=$2
3793echo "$as_me:$LINENO: checking for $ac_word" >&5
3794echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3795if test "${ac_cv_prog_AWK+set}" = set; then
3796  echo $ECHO_N "(cached) $ECHO_C" >&6
3797else
3798  if test -n "$AWK"; then
3799  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3800else
3801as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3802for as_dir in $PATH
3803do
3804  IFS=$as_save_IFS
3805  test -z "$as_dir" && as_dir=.
3806  for ac_exec_ext in '' $ac_executable_extensions; do
3807  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3808    ac_cv_prog_AWK="$ac_prog"
3809    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3810    break 2
3811  fi
3812done
3813done
3814
3815fi
3816fi
3817AWK=$ac_cv_prog_AWK
3818if test -n "$AWK"; then
3819  echo "$as_me:$LINENO: result: $AWK" >&5
3820echo "${ECHO_T}$AWK" >&6
3821else
3822  echo "$as_me:$LINENO: result: no" >&5
3823echo "${ECHO_T}no" >&6
3824fi
3825
3826  test -n "$AWK" && break
3827done
3828
3829echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3830echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3831set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3832if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3833  echo $ECHO_N "(cached) $ECHO_C" >&6
3834else
3835  cat >conftest.make <<\_ACEOF
3836all:
3837        @echo 'ac_maketemp="$(MAKE)"'
3838_ACEOF
3839# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3840eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3841if test -n "$ac_maketemp"; then
3842  eval ac_cv_prog_make_${ac_make}_set=yes
3843else
3844  eval ac_cv_prog_make_${ac_make}_set=no
3845fi
3846rm -f conftest.make
3847fi
3848if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3849  echo "$as_me:$LINENO: result: yes" >&5
3850echo "${ECHO_T}yes" >&6
3851  SET_MAKE=
3852else
3853  echo "$as_me:$LINENO: result: no" >&5
3854echo "${ECHO_T}no" >&6
3855  SET_MAKE="MAKE=${MAKE-make}"
3856fi
3857
3858rm -rf .tst 2>/dev/null
3859mkdir .tst 2>/dev/null
3860if test -d .tst; then
3861  am__leading_dot=.
3862else
3863  am__leading_dot=_
3864fi
3865rmdir .tst 2>/dev/null
3866
3867DEPDIR="${am__leading_dot}deps"
3868
3869          ac_config_commands="$ac_config_commands depfiles"
3870
3871
3872am_make=${MAKE-make}
3873cat > confinc << 'END'
3874am__doit:
3875        @echo done
3876.PHONY: am__doit
3877END
3878# If we don't find an include directive, just comment out the code.
3879echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3880echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3881am__include="#"
3882am__quote=
3883_am_result=none
3884# First try GNU make style include.
3885echo "include confinc" > confmf
3886# We grep out `Entering directory' and `Leaving directory'
3887# messages which can occur if `w' ends up in MAKEFLAGS.
3888# In particular we don't look at `^make:' because GNU make might
3889# be invoked under some other name (usually "gmake"), in which
3890# case it prints its new name instead of `make'.
3891if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3892   am__include=include
3893   am__quote=
3894   _am_result=GNU
3895fi
3896# Now try BSD make style include.
3897if test "$am__include" = "#"; then
3898   echo '.include "confinc"' > confmf
3899   if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3900      am__include=.include
3901      am__quote="\""
3902      _am_result=BSD
3903   fi
3904fi
3905
3906
3907echo "$as_me:$LINENO: result: $_am_result" >&5
3908echo "${ECHO_T}$_am_result" >&6
3909rm -f confinc confmf
3910
3911# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3912if test "${enable_dependency_tracking+set}" = set; then
3913  enableval="$enable_dependency_tracking"
3914
3915fi;
3916if test "x$enable_dependency_tracking" != xno; then
3917  am_depcomp="$ac_aux_dir/depcomp"
3918  AMDEPBACKSLASH='\'
3919fi
3920
3921
3922if test "x$enable_dependency_tracking" != xno; then
3923  AMDEP_TRUE=
3924  AMDEP_FALSE='#'
3925else
3926  AMDEP_TRUE='#'
3927  AMDEP_FALSE=
3928fi
3929
3930
3931
3932ac_ext=c
3933ac_cpp='$CPP $CPPFLAGS'
3934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3936ac_compiler_gnu=$ac_cv_c_compiler_gnu
3937
3938if test x"" = x; then
3939  hdr="#include <dlfcn.h>"
3940else
3941  hdr=""
3942fi
3943
3944for ac_header in dlfcn.h
3945do
3946as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3947echo "$as_me:$LINENO: checking for $ac_header" >&5
3948echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3949if eval "test \"\${$as_ac_Header+set}\" = set"; then
3950  echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952  cat >conftest.$ac_ext <<_ACEOF
3953/* confdefs.h.  */
3954_ACEOF
3955cat confdefs.h >>conftest.$ac_ext
3956cat >>conftest.$ac_ext <<_ACEOF
3957/* end confdefs.h.  */
3958$hdr
3959
3960#include <$ac_header>
3961_ACEOF
3962rm -f conftest.$ac_objext
3963if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3964  (eval $ac_compile) 2>conftest.er1
3965  ac_status=$?
3966  grep -v '^ *+' conftest.er1 >conftest.err
3967  rm -f conftest.er1
3968  cat conftest.err >&5
3969  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3970  (exit $ac_status); } &&
3971         { ac_try='test -z "$ac_c_werror_flag"
3972                         || test ! -s conftest.err'
3973  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3974  (eval $ac_try) 2>&5
3975  ac_status=$?
3976  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977  (exit $ac_status); }; } &&
3978         { ac_try='test -s conftest.$ac_objext'
3979  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3980  (eval $ac_try) 2>&5
3981  ac_status=$?
3982  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3983  (exit $ac_status); }; }; then
3984  eval "$as_ac_Header=yes"
3985else
3986  echo "$as_me: failed program was:" >&5
3987sed 's/^/| /' conftest.$ac_ext >&5
3988
3989eval "$as_ac_Header=no"
3990fi
3991rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3992fi
3993echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3994echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3995if test `eval echo '${'$as_ac_Header'}'` = yes; then
3996  cat >>confdefs.h <<_ACEOF
3997#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3998_ACEOF
3999
4000fi
4001
4002done
4003
4004
4005ac_ext=c
4006ac_cpp='$CPP $CPPFLAGS'
4007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4009ac_compiler_gnu=$ac_cv_c_compiler_gnu
4010
4011
4012# Check whether --enable-shared or --disable-shared was given.
4013if test "${enable_shared+set}" = set; then
4014  enableval="$enable_shared"
4015  p=${PACKAGE-default}
4016    case $enableval in
4017    yes) enable_shared=yes ;;
4018    no) enable_shared=no ;;
4019    *)
4020      enable_shared=no
4021      # Look at the argument we got.  We use all the common list separators.
4022      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4023      for pkg in $enableval; do
4024        IFS="$lt_save_ifs"
4025        if test "X$pkg" = "X$p"; then
4026          enable_shared=yes
4027        fi
4028      done
4029      IFS="$lt_save_ifs"
4030      ;;
4031    esac
4032else
4033  enable_shared=yes
4034fi;
4035
4036# Check whether --enable-fast-install or --disable-fast-install was given.
4037if test "${enable_fast_install+set}" = set; then
4038  enableval="$enable_fast_install"
4039  p=${PACKAGE-default}
4040    case $enableval in
4041    yes) enable_fast_install=yes ;;
4042    no) enable_fast_install=no ;;
4043    *)
4044      enable_fast_install=no
4045      # Look at the argument we got.  We use all the common list separators.
4046      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4047      for pkg in $enableval; do
4048        IFS="$lt_save_ifs"
4049        if test "X$pkg" = "X$p"; then
4050          enable_fast_install=yes
4051        fi
4052      done
4053      IFS="$lt_save_ifs"
4054      ;;
4055    esac
4056else
4057  enable_fast_install=yes
4058fi;
4059
4060echo "$as_me:$LINENO: checking host system type" >&5
4061echo $ECHO_N "checking host system type... $ECHO_C" >&6
4062if test "${ac_cv_host+set}" = set; then
4063  echo $ECHO_N "(cached) $ECHO_C" >&6
4064else
4065  ac_cv_host_alias=$host_alias
4066test -z "$ac_cv_host_alias" &&
4067  ac_cv_host_alias=$ac_cv_build_alias
4068ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
4069  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
4070echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
4071   { (exit 1); exit 1; }; }
4072
4073fi
4074echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4075echo "${ECHO_T}$ac_cv_host" >&6
4076host=$ac_cv_host
4077host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
4078host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
4079host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
4080
4081
4082echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4083echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4084if test "${lt_cv_path_SED+set}" = set; then
4085  echo $ECHO_N "(cached) $ECHO_C" >&6
4086else
4087  # Loop through the user's path and test for sed and gsed.
4088# Then use that list of sed's as ones to test for truncation.
4089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4090for as_dir in $PATH
4091do
4092  IFS=$as_save_IFS
4093  test -z "$as_dir" && as_dir=.
4094  for lt_ac_prog in sed gsed; do
4095    for ac_exec_ext in '' $ac_executable_extensions; do
4096      if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4097        lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4098      fi
4099    done
4100  done
4101done
4102lt_ac_max=0
4103lt_ac_count=0
4104# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4105# along with /bin/sed that truncates output.
4106for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4107  test ! -f $lt_ac_sed && continue
4108  cat /dev/null > conftest.in
4109  lt_ac_count=0
4110  echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4111  # Check for GNU sed and select it if it is found.
4112  if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4113    lt_cv_path_SED=$lt_ac_sed
4114    break
4115  fi
4116  while true; do
4117    cat conftest.in conftest.in >conftest.tmp
4118    mv conftest.tmp conftest.in
4119    cp conftest.in conftest.nl
4120    echo >>conftest.nl
4121    $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4122    cmp -s conftest.out conftest.nl || break
4123    # 10000 chars as input seems more than enough
4124    test $lt_ac_count -gt 10 && break
4125    lt_ac_count=`expr $lt_ac_count + 1`
4126    if test $lt_ac_count -gt $lt_ac_max; then
4127      lt_ac_max=$lt_ac_count
4128      lt_cv_path_SED=$lt_ac_sed
4129    fi
4130  done
4131done
4132
4133fi
4134
4135SED=$lt_cv_path_SED
4136echo "$as_me:$LINENO: result: $SED" >&5
4137echo "${ECHO_T}$SED" >&6
4138
4139
4140# Check whether --with-gnu-ld or --without-gnu-ld was given.
4141if test "${with_gnu_ld+set}" = set; then
4142  withval="$with_gnu_ld"
4143  test "$withval" = no || with_gnu_ld=yes
4144else
4145  with_gnu_ld=no
4146fi;
4147ac_prog=ld
4148if test "$GCC" = yes; then
4149  # Check if gcc -print-prog-name=ld gives a path.
4150  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4151echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4152  case $host in
4153  *-*-mingw*)
4154    # gcc leaves a trailing carriage return which upsets mingw
4155    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4156  *)
4157    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4158  esac
4159  case $ac_prog in
4160    # Accept absolute paths.
4161    [\\/]* | ?:[\\/]*)
4162      re_direlt='/[^/][^/]*/\.\./'
4163      # Canonicalize the pathname of ld
4164      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4165      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4166        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4167      done
4168      test -z "$LD" && LD="$ac_prog"
4169      ;;
4170  "")
4171    # If it fails, then pretend we aren't using GCC.
4172    ac_prog=ld
4173    ;;
4174  *)
4175    # If it is relative, then search for the first ld in PATH.
4176    with_gnu_ld=unknown
4177    ;;
4178  esac
4179elif test "$with_gnu_ld" = yes; then
4180  echo "$as_me:$LINENO: checking for GNU ld" >&5
4181echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4182else
4183  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4184echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4185fi
4186if test "${lt_cv_path_LD+set}" = set; then
4187  echo $ECHO_N "(cached) $ECHO_C" >&6
4188else
4189  if test -z "$LD"; then
4190  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4191  for ac_dir in $PATH; do
4192    IFS="$lt_save_ifs"
4193    test -z "$ac_dir" && ac_dir=.
4194    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4195      lt_cv_path_LD="$ac_dir/$ac_prog"
4196      # Check to see if the program is GNU ld.  I'd rather use --version,
4197      # but apparently some variants of GNU ld only accept -v.
4198      # Break only if it was the GNU/non-GNU ld that we prefer.
4199      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4200      *GNU* | *'with BFD'*)
4201        test "$with_gnu_ld" != no && break
4202        ;;
4203      *)
4204        test "$with_gnu_ld" != yes && break
4205        ;;
4206      esac
4207    fi
4208  done
4209  IFS="$lt_save_ifs"
4210else
4211  lt_cv_path_LD="$LD" # Let the user override the test with a path.
4212fi
4213fi
4214
4215LD="$lt_cv_path_LD"
4216if test -n "$LD"; then
4217  echo "$as_me:$LINENO: result: $LD" >&5
4218echo "${ECHO_T}$LD" >&6
4219else
4220  echo "$as_me:$LINENO: result: no" >&5
4221echo "${ECHO_T}no" >&6
4222fi
4223test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4224echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4225   { (exit 1); exit 1; }; }
4226echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4227echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4228if test "${lt_cv_prog_gnu_ld+set}" = set; then
4229  echo $ECHO_N "(cached) $ECHO_C" >&6
4230else
4231  # I'd rather use --version here, but apparently some GNU lds only accept -v.
4232case `$LD -v 2>&1 </dev/null` in
4233*GNU* | *'with BFD'*)
4234  lt_cv_prog_gnu_ld=yes
4235  ;;
4236*)
4237  lt_cv_prog_gnu_ld=no
4238  ;;
4239esac
4240fi
4241echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4242echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4243with_gnu_ld=$lt_cv_prog_gnu_ld
4244
4245
4246echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4247echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4248if test "${lt_cv_ld_reload_flag+set}" = set; then
4249  echo $ECHO_N "(cached) $ECHO_C" >&6
4250else
4251  lt_cv_ld_reload_flag='-r'
4252fi
4253echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4254echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4255reload_flag=$lt_cv_ld_reload_flag
4256case $reload_flag in
4257"" | " "*) ;;
4258*) reload_flag=" $reload_flag" ;;
4259esac
4260reload_cmds='$LD$reload_flag -o $output$reload_objs'
4261case $host_os in
4262  darwin*)
4263    if test "$GCC" = yes; then
4264      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4265    else
4266      reload_cmds='$LD$reload_flag -o $output$reload_objs'
4267    fi
4268    ;;
4269esac
4270
4271echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4272echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4273if test "${lt_cv_path_NM+set}" = set; then
4274  echo $ECHO_N "(cached) $ECHO_C" >&6
4275else
4276  if test -n "$NM"; then
4277  # Let the user override the test.
4278  lt_cv_path_NM="$NM"
4279else
4280  lt_nm_to_check="${ac_tool_prefix}nm"
4281  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4282    lt_nm_to_check="$lt_nm_to_check nm"
4283  fi
4284  for lt_tmp_nm in $lt_nm_to_check; do
4285    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4286    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4287      IFS="$lt_save_ifs"
4288      test -z "$ac_dir" && ac_dir=.
4289      tmp_nm="$ac_dir/$lt_tmp_nm"
4290      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4291        # Check to see if the nm accepts a BSD-compat flag.
4292        # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4293        #   nm: unknown option "B" ignored
4294        # Tru64's nm complains that /dev/null is an invalid object file
4295        case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4296        */dev/null* | *'Invalid file or object type'*)
4297          lt_cv_path_NM="$tmp_nm -B"
4298          break
4299          ;;
4300        *)
4301          case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4302          */dev/null*)
4303            lt_cv_path_NM="$tmp_nm -p"
4304            break
4305            ;;
4306          *)
4307            lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4308            continue # so that we can try to find one that supports BSD flags
4309            ;;
4310          esac
4311          ;;
4312        esac
4313      fi
4314    done
4315    IFS="$lt_save_ifs"
4316  done
4317  test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4318fi
4319fi
4320echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4321echo "${ECHO_T}$lt_cv_path_NM" >&6
4322NM="$lt_cv_path_NM"
4323
4324echo "$as_me:$LINENO: checking whether ln -s works" >&5
4325echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4326LN_S=$as_ln_s
4327if test "$LN_S" = "ln -s"; then
4328  echo "$as_me:$LINENO: result: yes" >&5
4329echo "${ECHO_T}yes" >&6
4330else
4331  echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4332echo "${ECHO_T}no, using $LN_S" >&6
4333fi
4334
4335echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
4336echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
4337if test "${lt_cv_deplibs_check_method+set}" = set; then
4338  echo $ECHO_N "(cached) $ECHO_C" >&6
4339else
4340  lt_cv_file_magic_cmd='$MAGIC_CMD'
4341lt_cv_file_magic_test_file=
4342lt_cv_deplibs_check_method='unknown'
4343# Need to set the preceding variable on all platforms that support
4344# interlibrary dependencies.
4345# 'none' -- dependencies not supported.
4346# `unknown' -- same as none, but documents that we really don't know.
4347# 'pass_all' -- all dependencies passed with no checks.
4348# 'test_compile' -- check by making test program.
4349# 'file_magic [[regex]]' -- check by looking for files in library path
4350# which responds to the $file_magic_cmd with a given extended regex.
4351# If you have `file' or equivalent on your system and you're not sure
4352# whether `pass_all' will *always* work, you probably want this one.
4353
4354case $host_os in
4355aix4* | aix5*)
4356  lt_cv_deplibs_check_method=pass_all
4357  ;;
4358
4359beos*)
4360  lt_cv_deplibs_check_method=pass_all
4361  ;;
4362
4363bsdi[45]*)
4364  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4365  lt_cv_file_magic_cmd='/usr/bin/file -L'
4366  lt_cv_file_magic_test_file=/shlib/libc.so
4367  ;;
4368
4369cygwin*)
4370  # func_win32_libid is a shell function defined in ltmain.sh
4371  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4372  lt_cv_file_magic_cmd='func_win32_libid'
4373  ;;
4374
4375mingw* | pw32*)
4376  # Base MSYS/MinGW do not provide the 'file' command needed by
4377  # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4378  lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4379  lt_cv_file_magic_cmd='$OBJDUMP -f'
4380  ;;
4381
4382darwin* | rhapsody*)
4383  lt_cv_deplibs_check_method=pass_all
4384  ;;
4385
4386freebsd* | kfreebsd*-gnu | dragonfly*)
4387  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4388    case $host_cpu in
4389    i*86 )
4390      # Not sure whether the presence of OpenBSD here was a mistake.
4391      # Let's accept both of them until this is cleared up.
4392      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4393      lt_cv_file_magic_cmd=/usr/bin/file
4394      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4395      ;;
4396    esac
4397  else
4398    lt_cv_deplibs_check_method=pass_all
4399  fi
4400  ;;
4401
4402gnu*)
4403  lt_cv_deplibs_check_method=pass_all
4404  ;;
4405
4406hpux10.20* | hpux11*)
4407  lt_cv_file_magic_cmd=/usr/bin/file
4408  case $host_cpu in
4409  ia64*)
4410    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4411    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4412    ;;
4413  hppa*64*)
4414    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]'
4415    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4416    ;;
4417  *)
4418    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4419    lt_cv_file_magic_test_file=/usr/lib/libc.sl
4420    ;;
4421  esac
4422  ;;
4423
4424interix3*)
4425  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4426  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4427  ;;
4428
4429irix5* | irix6* | nonstopux*)
4430  case $LD in
4431  *-32|*"-32 ") libmagic=32-bit;;
4432  *-n32|*"-n32 ") libmagic=N32;;
4433  *-64|*"-64 ") libmagic=64-bit;;
4434  *) libmagic=never-match;;
4435  esac
4436  lt_cv_deplibs_check_method=pass_all
4437  ;;
4438
4439# This must be Linux ELF.
4440linux*)
4441  lt_cv_deplibs_check_method=pass_all
4442  ;;
4443
4444netbsd*)
4445  if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4446    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4447  else
4448    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4449  fi
4450  ;;
4451
4452newos6*)
4453  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4454  lt_cv_file_magic_cmd=/usr/bin/file
4455  lt_cv_file_magic_test_file=/usr/lib/libnls.so
4456  ;;
4457
4458nto-qnx*)
4459  lt_cv_deplibs_check_method=unknown
4460  ;;
4461
4462openbsd*)
4463  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4464    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4465  else
4466    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4467  fi
4468  ;;
4469
4470osf3* | osf4* | osf5*)
4471  lt_cv_deplibs_check_method=pass_all
4472  ;;
4473
4474solaris*)
4475  lt_cv_deplibs_check_method=pass_all
4476  ;;
4477
4478sysv4 | sysv4.3*)
4479  case $host_vendor in
4480  motorola)
4481    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]'
4482    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4483    ;;
4484  ncr)
4485    lt_cv_deplibs_check_method=pass_all
4486    ;;
4487  sequent)
4488    lt_cv_file_magic_cmd='/bin/file'
4489    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4490    ;;
4491  sni)
4492    lt_cv_file_magic_cmd='/bin/file'
4493    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4494    lt_cv_file_magic_test_file=/lib/libc.so
4495    ;;
4496  siemens)
4497    lt_cv_deplibs_check_method=pass_all
4498    ;;
4499  pc)
4500    lt_cv_deplibs_check_method=pass_all
4501    ;;
4502  esac
4503  ;;
4504
4505sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4506  lt_cv_deplibs_check_method=pass_all
4507  ;;
4508esac
4509
4510fi
4511echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4512echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4513file_magic_cmd=$lt_cv_file_magic_cmd
4514deplibs_check_method=$lt_cv_deplibs_check_method
4515test -z "$deplibs_check_method" && deplibs_check_method=unknown
4516
4517
4518
4519
4520# If no C compiler was specified, use CC.
4521LTCC=${LTCC-"$CC"}
4522
4523# If no C compiler flags were specified, use CFLAGS.
4524LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4525
4526# Allow CC to be a program name with arguments.
4527compiler=$CC
4528
4529# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4530if test "${enable_libtool_lock+set}" = set; then
4531  enableval="$enable_libtool_lock"
4532
4533fi;
4534test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4535
4536# Some flags need to be propagated to the compiler or linker for good
4537# libtool support.
4538case $host in
4539ia64-*-hpux*)
4540  # Find out which ABI we are using.
4541  echo 'int i;' > conftest.$ac_ext
4542  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4543  (eval $ac_compile) 2>&5
4544  ac_status=$?
4545  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4546  (exit $ac_status); }; then
4547    case `/usr/bin/file conftest.$ac_objext` in
4548    *ELF-32*)
4549      HPUX_IA64_MODE="32"
4550      ;;
4551    *ELF-64*)
4552      HPUX_IA64_MODE="64"
4553      ;;
4554    esac
4555  fi
4556  rm -rf conftest*
4557  ;;
4558*-*-irix6*)
4559  # Find out which ABI we are using.
4560  echo '#line 4560 "configure"' > conftest.$ac_ext
4561  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4562  (eval $ac_compile) 2>&5
4563  ac_status=$?
4564  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4565  (exit $ac_status); }; then
4566   if test "$lt_cv_prog_gnu_ld" = yes; then
4567    case `/usr/bin/file conftest.$ac_objext` in
4568    *32-bit*)
4569      LD="${LD-ld} -melf32bsmip"
4570      ;;
4571    *N32*)
4572      LD="${LD-ld} -melf32bmipn32"
4573      ;;
4574    *64-bit*)
4575      LD="${LD-ld} -melf64bmip"
4576      ;;
4577    esac
4578   else
4579    case `/usr/bin/file conftest.$ac_objext` in
4580    *32-bit*)
4581      LD="${LD-ld} -32"
4582      ;;
4583    *N32*)
4584      LD="${LD-ld} -n32"
4585      ;;
4586    *64-bit*)
4587      LD="${LD-ld} -64"
4588      ;;
4589    esac
4590   fi
4591  fi
4592  rm -rf conftest*
4593  ;;
4594
4595x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4596  # Find out which ABI we are using.
4597  echo 'int i;' > conftest.$ac_ext
4598  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4599  (eval $ac_compile) 2>&5
4600  ac_status=$?
4601  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602  (exit $ac_status); }; then
4603    case `/usr/bin/file conftest.o` in
4604    *32-bit*)
4605      case $host in
4606        x86_64-*linux*)
4607          LD="${LD-ld} -m elf_i386"
4608          ;;
4609        ppc64-*linux*|powerpc64-*linux*)
4610          LD="${LD-ld} -m elf32ppclinux"
4611          ;;
4612        s390x-*linux*)
4613          LD="${LD-ld} -m elf_s390"
4614          ;;
4615        sparc64-*linux*)
4616          LD="${LD-ld} -m elf32_sparc"
4617          ;;
4618      esac
4619      ;;
4620    *64-bit*)
4621      case $host in
4622        x86_64-*linux*)
4623          LD="${LD-ld} -m elf_x86_64"
4624          ;;
4625        ppc*-*linux*|powerpc*-*linux*)
4626          LD="${LD-ld} -m elf64ppc"
4627          ;;
4628        s390*-*linux*)
4629          LD="${LD-ld} -m elf64_s390"
4630          ;;
4631        sparc*-*linux*)
4632          LD="${LD-ld} -m elf64_sparc"
4633          ;;
4634      esac
4635      ;;
4636    esac
4637  fi
4638  rm -rf conftest*
4639  ;;
4640
4641*-*-sco3.2v5*)
4642  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4643  SAVE_CFLAGS="$CFLAGS"
4644  CFLAGS="$CFLAGS -belf"
4645  echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4646echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4647if test "${lt_cv_cc_needs_belf+set}" = set; then
4648  echo $ECHO_N "(cached) $ECHO_C" >&6
4649else
4650  ac_ext=c
4651ac_cpp='$CPP $CPPFLAGS'
4652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4654ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655
4656     cat >conftest.$ac_ext <<_ACEOF
4657/* confdefs.h.  */
4658_ACEOF
4659cat confdefs.h >>conftest.$ac_ext
4660cat >>conftest.$ac_ext <<_ACEOF
4661/* end confdefs.h.  */
4662
4663int
4664main ()
4665{
4666
4667  ;
4668  return 0;
4669}
4670_ACEOF
4671rm -f conftest.$ac_objext conftest$ac_exeext
4672if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4673  (eval $ac_link) 2>conftest.er1
4674  ac_status=$?
4675  grep -v '^ *+' conftest.er1 >conftest.err
4676  rm -f conftest.er1
4677  cat conftest.err >&5
4678  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4679  (exit $ac_status); } &&
4680         { ac_try='test -z "$ac_c_werror_flag"
4681                         || test ! -s conftest.err'
4682  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4683  (eval $ac_try) 2>&5
4684  ac_status=$?
4685  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4686  (exit $ac_status); }; } &&
4687         { ac_try='test -s conftest$ac_exeext'
4688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4689  (eval $ac_try) 2>&5
4690  ac_status=$?
4691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4692  (exit $ac_status); }; }; then
4693  lt_cv_cc_needs_belf=yes
4694else
4695  echo "$as_me: failed program was:" >&5
4696sed 's/^/| /' conftest.$ac_ext >&5
4697
4698lt_cv_cc_needs_belf=no
4699fi
4700rm -f conftest.err conftest.$ac_objext \
4701      conftest$ac_exeext conftest.$ac_ext
4702     ac_ext=c
4703ac_cpp='$CPP $CPPFLAGS'
4704ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706ac_compiler_gnu=$ac_cv_c_compiler_gnu
4707
4708fi
4709echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4710echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4711  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4712    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4713    CFLAGS="$SAVE_CFLAGS"
4714  fi
4715  ;;
4716sparc*-*solaris*)
4717  # Find out which ABI we are using.
4718  echo 'int i;' > conftest.$ac_ext
4719  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4720  (eval $ac_compile) 2>&5
4721  ac_status=$?
4722  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4723  (exit $ac_status); }; then
4724    case `/usr/bin/file conftest.o` in
4725    *64-bit*)
4726      case $lt_cv_prog_gnu_ld in
4727      yes*) LD="${LD-ld} -m elf64_sparc" ;;
4728      *)    LD="${LD-ld} -64" ;;
4729      esac
4730      ;;
4731    esac
4732  fi
4733  rm -rf conftest*
4734  ;;
4735
4736
4737esac
4738
4739need_locks="$enable_libtool_lock"
4740
4741
4742ac_ext=c
4743ac_cpp='$CPP $CPPFLAGS'
4744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4746ac_compiler_gnu=$ac_cv_c_compiler_gnu
4747echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4748echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
4749# On Suns, sometimes $CPP names a directory.
4750if test -n "$CPP" && test -d "$CPP"; then
4751  CPP=
4752fi
4753if test -z "$CPP"; then
4754  if test "${ac_cv_prog_CPP+set}" = set; then
4755  echo $ECHO_N "(cached) $ECHO_C" >&6
4756else
4757      # Double quotes because CPP needs to be expanded
4758    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4759    do
4760      ac_preproc_ok=false
4761for ac_c_preproc_warn_flag in '' yes
4762do
4763  # Use a header file that comes with gcc, so configuring glibc
4764  # with a fresh cross-compiler works.
4765  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766  # <limits.h> exists even on freestanding compilers.
4767  # On the NeXT, cc -E runs the code through the compiler's parser,
4768  # not just through cpp. "Syntax error" is here to catch this case.
4769  cat >conftest.$ac_ext <<_ACEOF
4770/* confdefs.h.  */
4771_ACEOF
4772cat confdefs.h >>conftest.$ac_ext
4773cat >>conftest.$ac_ext <<_ACEOF
4774/* end confdefs.h.  */
4775#ifdef __STDC__
4776# include <limits.h>
4777#else
4778# include <assert.h>
4779#endif
4780                     Syntax error
4781_ACEOF
4782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4783  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4784  ac_status=$?
4785  grep -v '^ *+' conftest.er1 >conftest.err
4786  rm -f conftest.er1
4787  cat conftest.err >&5
4788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789  (exit $ac_status); } >/dev/null; then
4790  if test -s conftest.err; then
4791    ac_cpp_err=$ac_c_preproc_warn_flag
4792    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4793  else
4794    ac_cpp_err=
4795  fi
4796else
4797  ac_cpp_err=yes
4798fi
4799if test -z "$ac_cpp_err"; then
4800  :
4801else
4802  echo "$as_me: failed program was:" >&5
4803sed 's/^/| /' conftest.$ac_ext >&5
4804
4805  # Broken: fails on valid input.
4806continue
4807fi
4808rm -f conftest.err conftest.$ac_ext
4809
4810  # OK, works on sane cases.  Now check whether non-existent headers
4811  # can be detected and how.
4812  cat >conftest.$ac_ext <<_ACEOF
4813/* confdefs.h.  */
4814_ACEOF
4815cat confdefs.h >>conftest.$ac_ext
4816cat >>conftest.$ac_ext <<_ACEOF
4817/* end confdefs.h.  */
4818#include <ac_nonexistent.h>
4819_ACEOF
4820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4821  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4822  ac_status=$?
4823  grep -v '^ *+' conftest.er1 >conftest.err
4824  rm -f conftest.er1
4825  cat conftest.err >&5
4826  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4827  (exit $ac_status); } >/dev/null; then
4828  if test -s conftest.err; then
4829    ac_cpp_err=$ac_c_preproc_warn_flag
4830    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4831  else
4832    ac_cpp_err=
4833  fi
4834else
4835  ac_cpp_err=yes
4836fi
4837if test -z "$ac_cpp_err"; then
4838  # Broken: success on invalid input.
4839continue
4840else
4841  echo "$as_me: failed program was:" >&5
4842sed 's/^/| /' conftest.$ac_ext >&5
4843
4844  # Passes both tests.
4845ac_preproc_ok=:
4846break
4847fi
4848rm -f conftest.err conftest.$ac_ext
4849
4850done
4851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4852rm -f conftest.err conftest.$ac_ext
4853if $ac_preproc_ok; then
4854  break
4855fi
4856
4857    done
4858    ac_cv_prog_CPP=$CPP
4859
4860fi
4861  CPP=$ac_cv_prog_CPP
4862else
4863  ac_cv_prog_CPP=$CPP
4864fi
4865echo "$as_me:$LINENO: result: $CPP" >&5
4866echo "${ECHO_T}$CPP" >&6
4867ac_preproc_ok=false
4868for ac_c_preproc_warn_flag in '' yes
4869do
4870  # Use a header file that comes with gcc, so configuring glibc
4871  # with a fresh cross-compiler works.
4872  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4873  # <limits.h> exists even on freestanding compilers.
4874  # On the NeXT, cc -E runs the code through the compiler's parser,
4875  # not just through cpp. "Syntax error" is here to catch this case.
4876  cat >conftest.$ac_ext <<_ACEOF
4877/* confdefs.h.  */
4878_ACEOF
4879cat confdefs.h >>conftest.$ac_ext
4880cat >>conftest.$ac_ext <<_ACEOF
4881/* end confdefs.h.  */
4882#ifdef __STDC__
4883# include <limits.h>
4884#else
4885# include <assert.h>
4886#endif
4887                     Syntax error
4888_ACEOF
4889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4890  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4891  ac_status=$?
4892  grep -v '^ *+' conftest.er1 >conftest.err
4893  rm -f conftest.er1
4894  cat conftest.err >&5
4895  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4896  (exit $ac_status); } >/dev/null; then
4897  if test -s conftest.err; then
4898    ac_cpp_err=$ac_c_preproc_warn_flag
4899    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4900  else
4901    ac_cpp_err=
4902  fi
4903else
4904  ac_cpp_err=yes
4905fi
4906if test -z "$ac_cpp_err"; then
4907  :
4908else
4909  echo "$as_me: failed program was:" >&5
4910sed 's/^/| /' conftest.$ac_ext >&5
4911
4912  # Broken: fails on valid input.
4913continue
4914fi
4915rm -f conftest.err conftest.$ac_ext
4916
4917  # OK, works on sane cases.  Now check whether non-existent headers
4918  # can be detected and how.
4919  cat >conftest.$ac_ext <<_ACEOF
4920/* confdefs.h.  */
4921_ACEOF
4922cat confdefs.h >>conftest.$ac_ext
4923cat >>conftest.$ac_ext <<_ACEOF
4924/* end confdefs.h.  */
4925#include <ac_nonexistent.h>
4926_ACEOF
4927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4928  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4929  ac_status=$?
4930  grep -v '^ *+' conftest.er1 >conftest.err
4931  rm -f conftest.er1
4932  cat conftest.err >&5
4933  echo "$as_me:$LINENO: \$? = $ac_status" >&5
4934  (exit $ac_status); } >/dev/null; then
4935  if test -s conftest.err; then
4936    ac_cpp_err=$ac_c_preproc_warn_flag
4937    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4938  else
4939    ac_cpp_err=
4940  fi
4941else
4942  ac_cpp_err=yes
4943fi
4944if test -z "$ac_cpp_err"; then
4945  # Broken: success on invalid input.
4946continue
4947else
4948  echo "$as_me: failed program was:" >&5
4949sed 's/^/| /' conftest.$ac_ext >&5
4950
4951  # Passes both tests.
4952ac_preproc_ok=:
4953break
4954fi
4955rm -f conftest.err conftest.$ac_ext
4956
4957done
4958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959rm -f conftest.err conftest.$ac_ext
4960if $ac_preproc_ok; then
4961  :
4962else
4963  { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4964See \`config.log' for more details." >&5
4965echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4966See \`config.log' for more details." >&2;}
4967   { (exit 1); exit 1; }; }
4968fi
4969
4970ac_ext=c
4971ac_cpp='$CPP $CPPFLAGS'
4972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4974ac_compiler_gnu=$ac_cv_c_compiler_gnu
4975
4976
4977echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4978echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4979if test "${ac_cv_header_stdc+set}" = set; then
4980  echo $ECHO_N "(cached) $ECHO_C" >&6
4981else
4982  cat >conftest.$ac_ext <<_ACEOF
4983/* confdefs.h.  */
4984_ACEOF
4985cat confdefs.h >>conftest.$ac_ext
4986cat >>conftest.$ac_ext <<_ACEOF
4987/* end confdefs.h.  */
4988#include <stdlib.h>
4989#include <stdarg.h>
4990#include <string.h>
4991#include <float.h>
4992
4993int
4994main ()
4995{
4996
4997  ;
4998  return 0;
4999}
5000_ACEOF
5001rm -f conftest.$ac_objext
5002if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5003  (eval $ac_compile) 2>conftest.er1
5004  ac_status=$?
5005  grep -v '^ *+' conftest.er1 >conftest.err
5006  rm -f conftest.er1
5007  cat conftest.err >&5
5008  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5009  (exit $ac_status); } &&
5010         { ac_try='test -z "$ac_c_werror_flag"
5011                         || test ! -s conftest.err'
5012  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5013  (eval $ac_try) 2>&5
5014  ac_status=$?
5015  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5016  (exit $ac_status); }; } &&
5017         { ac_try='test -s conftest.$ac_objext'
5018  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5019  (eval $ac_try) 2>&5
5020  ac_status=$?
5021  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5022  (exit $ac_status); }; }; then
5023  ac_cv_header_stdc=yes
5024else
5025  echo "$as_me: failed program was:" >&5
5026sed 's/^/| /' conftest.$ac_ext >&5
5027
5028ac_cv_header_stdc=no
5029fi
5030rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5031
5032if test $ac_cv_header_stdc = yes; then
5033  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5034  cat >conftest.$ac_ext <<_ACEOF
5035/* confdefs.h.  */
5036_ACEOF
5037cat confdefs.h >>conftest.$ac_ext
5038cat >>conftest.$ac_ext <<_ACEOF
5039/* end confdefs.h.  */
5040#include <string.h>
5041
5042_ACEOF
5043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5044  $EGREP "memchr" >/dev/null 2>&1; then
5045  :
5046else
5047  ac_cv_header_stdc=no
5048fi
5049rm -f conftest*
5050
5051fi
5052
5053if test $ac_cv_header_stdc = yes; then
5054  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5055  cat >conftest.$ac_ext <<_ACEOF
5056/* confdefs.h.  */
5057_ACEOF
5058cat confdefs.h >>conftest.$ac_ext
5059cat >>conftest.$ac_ext <<_ACEOF
5060/* end confdefs.h.  */
5061#include <stdlib.h>
5062
5063_ACEOF
5064if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5065  $EGREP "free" >/dev/null 2>&1; then
5066  :
5067else
5068  ac_cv_header_stdc=no
5069fi
5070rm -f conftest*
5071
5072fi
5073
5074if test $ac_cv_header_stdc = yes; then
5075  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5076  if test "$cross_compiling" = yes; then
5077  :
5078else
5079  cat >conftest.$ac_ext <<_ACEOF
5080/* confdefs.h.  */
5081_ACEOF
5082cat confdefs.h >>conftest.$ac_ext
5083cat >>conftest.$ac_ext <<_ACEOF
5084/* end confdefs.h.  */
5085#include <ctype.h>
5086#if ((' ' & 0x0FF) == 0x020)
5087# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5088# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5089#else
5090# define ISLOWER(c) \
5091                   (('a' <= (c) && (c) <= 'i') \
5092                     || ('j' <= (c) && (c) <= 'r') \
5093                     || ('s' <= (c) && (c) <= 'z'))
5094# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5095#endif
5096
5097#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5098int
5099main ()
5100{
5101  int i;
5102  for (i = 0; i < 256; i++)
5103    if (XOR (islower (i), ISLOWER (i))
5104        || toupper (i) != TOUPPER (i))
5105      exit(2);
5106  exit (0);
5107}
5108_ACEOF
5109rm -f conftest$ac_exeext
5110if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5111  (eval $ac_link) 2>&5
5112  ac_status=$?
5113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5114  (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5115  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5116  (eval $ac_try) 2>&5
5117  ac_status=$?
5118  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5119  (exit $ac_status); }; }; then
5120  :
5121else
5122  echo "$as_me: program exited with status $ac_status" >&5
5123echo "$as_me: failed program was:" >&5
5124sed 's/^/| /' conftest.$ac_ext >&5
5125
5126( exit $ac_status )
5127ac_cv_header_stdc=no
5128fi
5129rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5130fi
5131fi
5132fi
5133echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5134echo "${ECHO_T}$ac_cv_header_stdc" >&6
5135if test $ac_cv_header_stdc = yes; then
5136
5137cat >>confdefs.h <<\_ACEOF
5138#define STDC_HEADERS 1
5139_ACEOF
5140
5141fi
5142
5143# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5144
5145
5146
5147
5148
5149
5150
5151
5152
5153for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5154                  inttypes.h stdint.h unistd.h
5155do
5156as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5157echo "$as_me:$LINENO: checking for $ac_header" >&5
5158echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5159if eval "test \"\${$as_ac_Header+set}\" = set"; then
5160  echo $ECHO_N "(cached) $ECHO_C" >&6
5161else
5162  cat >conftest.$ac_ext <<_ACEOF
5163/* confdefs.h.  */
5164_ACEOF
5165cat confdefs.h >>conftest.$ac_ext
5166cat >>conftest.$ac_ext <<_ACEOF
5167/* end confdefs.h.  */
5168$ac_includes_default
5169
5170#include <$ac_header>
5171_ACEOF
5172rm -f conftest.$ac_objext
5173if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5174  (eval $ac_compile) 2>conftest.er1
5175  ac_status=$?
5176  grep -v '^ *+' conftest.er1 >conftest.err
5177  rm -f conftest.er1
5178  cat conftest.err >&5
5179  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5180  (exit $ac_status); } &&
5181         { ac_try='test -z "$ac_c_werror_flag"
5182                         || test ! -s conftest.err'
5183  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5184  (eval $ac_try) 2>&5
5185  ac_status=$?
5186  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5187  (exit $ac_status); }; } &&
5188         { ac_try='test -s conftest.$ac_objext'
5189  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5190  (eval $ac_try) 2>&5
5191  ac_status=$?
5192  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5193  (exit $ac_status); }; }; then
5194  eval "$as_ac_Header=yes"
5195else
5196  echo "$as_me: failed program was:" >&5
5197sed 's/^/| /' conftest.$ac_ext >&5
5198
5199eval "$as_ac_Header=no"
5200fi
5201rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5202fi
5203echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5204echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5205if test `eval echo '${'$as_ac_Header'}'` = yes; then
5206  cat >>confdefs.h <<_ACEOF
5207#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5208_ACEOF
5209
5210fi
5211
5212done
5213
5214
5215
5216for ac_header in dlfcn.h
5217do
5218as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5219if eval "test \"\${$as_ac_Header+set}\" = set"; then
5220  echo "$as_me:$LINENO: checking for $ac_header" >&5
5221echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5222if eval "test \"\${$as_ac_Header+set}\" = set"; then
5223  echo $ECHO_N "(cached) $ECHO_C" >&6
5224fi
5225echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5226echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5227else
5228  # Is the header compilable?
5229echo "$as_me:$LINENO: checking $ac_header usability" >&5
5230echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5231cat >conftest.$ac_ext <<_ACEOF
5232/* confdefs.h.  */
5233_ACEOF
5234cat confdefs.h >>conftest.$ac_ext
5235cat >>conftest.$ac_ext <<_ACEOF
5236/* end confdefs.h.  */
5237$ac_includes_default
5238#include <$ac_header>
5239_ACEOF
5240rm -f conftest.$ac_objext
5241if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5242  (eval $ac_compile) 2>conftest.er1
5243  ac_status=$?
5244  grep -v '^ *+' conftest.er1 >conftest.err
5245  rm -f conftest.er1
5246  cat conftest.err >&5
5247  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248  (exit $ac_status); } &&
5249         { ac_try='test -z "$ac_c_werror_flag"
5250                         || test ! -s conftest.err'
5251  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5252  (eval $ac_try) 2>&5
5253  ac_status=$?
5254  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5255  (exit $ac_status); }; } &&
5256         { ac_try='test -s conftest.$ac_objext'
5257  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5258  (eval $ac_try) 2>&5
5259  ac_status=$?
5260  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261  (exit $ac_status); }; }; then
5262  ac_header_compiler=yes
5263else
5264  echo "$as_me: failed program was:" >&5
5265sed 's/^/| /' conftest.$ac_ext >&5
5266
5267ac_header_compiler=no
5268fi
5269rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5270echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5271echo "${ECHO_T}$ac_header_compiler" >&6
5272
5273# Is the header present?
5274echo "$as_me:$LINENO: checking $ac_header presence" >&5
5275echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5276cat >conftest.$ac_ext <<_ACEOF
5277/* confdefs.h.  */
5278_ACEOF
5279cat confdefs.h >>conftest.$ac_ext
5280cat >>conftest.$ac_ext <<_ACEOF
5281/* end confdefs.h.  */
5282#include <$ac_header>
5283_ACEOF
5284if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5285  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5286  ac_status=$?
5287  grep -v '^ *+' conftest.er1 >conftest.err
5288  rm -f conftest.er1
5289  cat conftest.err >&5
5290  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5291  (exit $ac_status); } >/dev/null; then
5292  if test -s conftest.err; then
5293    ac_cpp_err=$ac_c_preproc_warn_flag
5294    ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5295  else
5296    ac_cpp_err=
5297  fi
5298else
5299  ac_cpp_err=yes
5300fi
5301if test -z "$ac_cpp_err"; then
5302  ac_header_preproc=yes
5303else
5304  echo "$as_me: failed program was:" >&5
5305sed 's/^/| /' conftest.$ac_ext >&5
5306
5307  ac_header_preproc=no
5308fi
5309rm -f conftest.err conftest.$ac_ext
5310echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5311echo "${ECHO_T}$ac_header_preproc" >&6
5312
5313# So?  What about this header?
5314case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5315  yes:no: )
5316    { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5317echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5318    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5319echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5320    ac_header_preproc=yes
5321    ;;
5322  no:yes:* )
5323    { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5324echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5325    { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
5326echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
5327    { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5328echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5329    { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
5330echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
5331    { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5332echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5333    { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5334echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5335    (
5336      cat <<\_ASBOX
5337## ---------------------------------------- ##
5338## Report this to coin-cbc@list.coin-or.org ##
5339## ---------------------------------------- ##
5340_ASBOX
5341    ) |
5342      sed "s/^/$as_me: WARNING:     /" >&2
5343    ;;
5344esac
5345echo "$as_me:$LINENO: checking for $ac_header" >&5
5346echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5347if eval "test \"\${$as_ac_Header+set}\" = set"; then
5348  echo $ECHO_N "(cached) $ECHO_C" >&6
5349else
5350  eval "$as_ac_Header=\$ac_header_preproc"
5351fi
5352echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5353echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5354
5355fi
5356if test `eval echo '${'$as_ac_Header'}'` = yes; then
5357  cat >>confdefs.h <<_ACEOF
5358#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5359_ACEOF
5360
5361fi
5362
5363done
5364
5365
5366
5367if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5368    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5369    (test "X$CXX" != "Xg++"))) ; then
5370  ac_ext=cc
5371ac_cpp='$CXXCPP $CPPFLAGS'
5372ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5373ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5374ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5375echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5376echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5377if test -z "$CXXCPP"; then
5378  if test "${ac_cv_prog_CXXCPP+set}" = set; then
5379  echo $ECHO_N "(cached) $ECHO_C" >&6
5380else
5381      # Double quotes because CXXCPP needs to be expanded
5382    for CXXCPP in "$CXX -E" "/lib/cpp"
5383    do
5384      ac_preproc_ok=false
5385for ac_cxx_preproc_warn_flag in '' yes
5386do
5387  # Use a header file that comes with gcc, so configuring glibc
5388  # with a fresh cross-compiler works.
5389  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5390  # <limits.h> exists even on freestanding compilers.
5391  # On the NeXT, cc -E runs the code through the compiler's parser,
5392  # not just through cpp. "Syntax error" is here to catch this case.
5393  cat >conftest.$ac_ext <<_ACEOF
5394/* confdefs.h.  */
5395_ACEOF
5396cat confdefs.h >>conftest.$ac_ext
5397cat >>conftest.$ac_ext <<_ACEOF
5398/* end confdefs.h.  */
5399#ifdef __STDC__
5400# include <limits.h>
5401#else
5402# include <assert.h>
5403#endif
5404                     Syntax error
5405_ACEOF
5406if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5407  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5408  ac_status=$?
5409  grep -v '^ *+' conftest.er1 >conftest.err
5410  rm -f conftest.er1
5411  cat conftest.err >&5
5412  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413  (exit $ac_status); } >/dev/null; then
5414  if test -s conftest.err; then
5415    ac_cpp_err=$ac_cxx_preproc_warn_flag
5416    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5417  else
5418    ac_cpp_err=
5419  fi
5420else
5421  ac_cpp_err=yes
5422fi
5423if test -z "$ac_cpp_err"; then
5424  :
5425else
5426  echo "$as_me: failed program was:" >&5
5427sed 's/^/| /' conftest.$ac_ext >&5
5428
5429  # Broken: fails on valid input.
5430continue
5431fi
5432rm -f conftest.err conftest.$ac_ext
5433
5434  # OK, works on sane cases.  Now check whether non-existent headers
5435  # can be detected and how.
5436  cat >conftest.$ac_ext <<_ACEOF
5437/* confdefs.h.  */
5438_ACEOF
5439cat confdefs.h >>conftest.$ac_ext
5440cat >>conftest.$ac_ext <<_ACEOF
5441/* end confdefs.h.  */
5442#include <ac_nonexistent.h>
5443_ACEOF
5444if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5445  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5446  ac_status=$?
5447  grep -v '^ *+' conftest.er1 >conftest.err
5448  rm -f conftest.er1
5449  cat conftest.err >&5
5450  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5451  (exit $ac_status); } >/dev/null; then
5452  if test -s conftest.err; then
5453    ac_cpp_err=$ac_cxx_preproc_warn_flag
5454    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5455  else
5456    ac_cpp_err=
5457  fi
5458else
5459  ac_cpp_err=yes
5460fi
5461if test -z "$ac_cpp_err"; then
5462  # Broken: success on invalid input.
5463continue
5464else
5465  echo "$as_me: failed program was:" >&5
5466sed 's/^/| /' conftest.$ac_ext >&5
5467
5468  # Passes both tests.
5469ac_preproc_ok=:
5470break
5471fi
5472rm -f conftest.err conftest.$ac_ext
5473
5474done
5475# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5476rm -f conftest.err conftest.$ac_ext
5477if $ac_preproc_ok; then
5478  break
5479fi
5480
5481    done
5482    ac_cv_prog_CXXCPP=$CXXCPP
5483
5484fi
5485  CXXCPP=$ac_cv_prog_CXXCPP
5486else
5487  ac_cv_prog_CXXCPP=$CXXCPP
5488fi
5489echo "$as_me:$LINENO: result: $CXXCPP" >&5
5490echo "${ECHO_T}$CXXCPP" >&6
5491ac_preproc_ok=false
5492for ac_cxx_preproc_warn_flag in '' yes
5493do
5494  # Use a header file that comes with gcc, so configuring glibc
5495  # with a fresh cross-compiler works.
5496  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5497  # <limits.h> exists even on freestanding compilers.
5498  # On the NeXT, cc -E runs the code through the compiler's parser,
5499  # not just through cpp. "Syntax error" is here to catch this case.
5500  cat >conftest.$ac_ext <<_ACEOF
5501/* confdefs.h.  */
5502_ACEOF
5503cat confdefs.h >>conftest.$ac_ext
5504cat >>conftest.$ac_ext <<_ACEOF
5505/* end confdefs.h.  */
5506#ifdef __STDC__
5507# include <limits.h>
5508#else
5509# include <assert.h>
5510#endif
5511                     Syntax error
5512_ACEOF
5513if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5514  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5515  ac_status=$?
5516  grep -v '^ *+' conftest.er1 >conftest.err
5517  rm -f conftest.er1
5518  cat conftest.err >&5
5519  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5520  (exit $ac_status); } >/dev/null; then
5521  if test -s conftest.err; then
5522    ac_cpp_err=$ac_cxx_preproc_warn_flag
5523    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5524  else
5525    ac_cpp_err=
5526  fi
5527else
5528  ac_cpp_err=yes
5529fi
5530if test -z "$ac_cpp_err"; then
5531  :
5532else
5533  echo "$as_me: failed program was:" >&5
5534sed 's/^/| /' conftest.$ac_ext >&5
5535
5536  # Broken: fails on valid input.
5537continue
5538fi
5539rm -f conftest.err conftest.$ac_ext
5540
5541  # OK, works on sane cases.  Now check whether non-existent headers
5542  # can be detected and how.
5543  cat >conftest.$ac_ext <<_ACEOF
5544/* confdefs.h.  */
5545_ACEOF
5546cat confdefs.h >>conftest.$ac_ext
5547cat >>conftest.$ac_ext <<_ACEOF
5548/* end confdefs.h.  */
5549#include <ac_nonexistent.h>
5550_ACEOF
5551if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5552  (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5553  ac_status=$?
5554  grep -v '^ *+' conftest.er1 >conftest.err
5555  rm -f conftest.er1
5556  cat conftest.err >&5
5557  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558  (exit $ac_status); } >/dev/null; then
5559  if test -s conftest.err; then
5560    ac_cpp_err=$ac_cxx_preproc_warn_flag
5561    ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5562  else
5563    ac_cpp_err=
5564  fi
5565else
5566  ac_cpp_err=yes
5567fi
5568if test -z "$ac_cpp_err"; then
5569  # Broken: success on invalid input.
5570continue
5571else
5572  echo "$as_me: failed program was:" >&5
5573sed 's/^/| /' conftest.$ac_ext >&5
5574
5575  # Passes both tests.
5576ac_preproc_ok=:
5577break
5578fi
5579rm -f conftest.err conftest.$ac_ext
5580
5581done
5582# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5583rm -f conftest.err conftest.$ac_ext
5584if $ac_preproc_ok; then
5585  :
5586else
5587  { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5588See \`config.log' for more details." >&5
5589echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5590See \`config.log' for more details." >&2;}
5591   { (exit 1); exit 1; }; }
5592fi
5593
5594ac_ext=cc
5595ac_cpp='$CXXCPP $CPPFLAGS'
5596ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5597ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5598ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5599
5600fi
5601
5602ac_ext=f
5603ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5604ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5605ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5606if test -n "$ac_tool_prefix"; then
5607  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5608  do
5609    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5610set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5611echo "$as_me:$LINENO: checking for $ac_word" >&5
5612echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5613if test "${ac_cv_prog_F77+set}" = set; then
5614  echo $ECHO_N "(cached) $ECHO_C" >&6
5615else
5616  if test -n "$F77"; then
5617  ac_cv_prog_F77="$F77" # Let the user override the test.
5618else
5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5620for as_dir in $PATH
5621do
5622  IFS=$as_save_IFS
5623  test -z "$as_dir" && as_dir=.
5624  for ac_exec_ext in '' $ac_executable_extensions; do
5625  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5626    ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5627    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5628    break 2
5629  fi
5630done
5631done
5632
5633fi
5634fi
5635F77=$ac_cv_prog_F77
5636if test -n "$F77"; then
5637  echo "$as_me:$LINENO: result: $F77" >&5
5638echo "${ECHO_T}$F77" >&6
5639else
5640  echo "$as_me:$LINENO: result: no" >&5
5641echo "${ECHO_T}no" >&6
5642fi
5643
5644    test -n "$F77" && break
5645  done
5646fi
5647if test -z "$F77"; then
5648  ac_ct_F77=$F77
5649  for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5650do
5651  # Extract the first word of "$ac_prog", so it can be a program name with args.
5652set dummy $ac_prog; ac_word=$2
5653echo "$as_me:$LINENO: checking for $ac_word" >&5
5654echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5655if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5656  echo $ECHO_N "(cached) $ECHO_C" >&6
5657else
5658  if test -n "$ac_ct_F77"; then
5659  ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5660else
5661as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5662for as_dir in $PATH
5663do
5664  IFS=$as_save_IFS
5665  test -z "$as_dir" && as_dir=.
5666  for ac_exec_ext in '' $ac_executable_extensions; do
5667  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5668    ac_cv_prog_ac_ct_F77="$ac_prog"
5669    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670    break 2
5671  fi
5672done
5673done
5674
5675fi
5676fi
5677ac_ct_F77=$ac_cv_prog_ac_ct_F77
5678if test -n "$ac_ct_F77"; then
5679  echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5680echo "${ECHO_T}$ac_ct_F77" >&6
5681else
5682  echo "$as_me:$LINENO: result: no" >&5
5683echo "${ECHO_T}no" >&6
5684fi
5685
5686  test -n "$ac_ct_F77" && break
5687done
5688
5689  F77=$ac_ct_F77
5690fi
5691
5692
5693# Provide some information about the compiler.
5694echo "$as_me:5694:" \
5695     "checking for Fortran 77 compiler version" >&5
5696ac_compiler=`set X $ac_compile; echo $2`
5697{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5698  (eval $ac_compiler --version </dev/null >&5) 2>&5
5699  ac_status=$?
5700  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5701  (exit $ac_status); }
5702{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5703  (eval $ac_compiler -v </dev/null >&5) 2>&5
5704  ac_status=$?
5705  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5706  (exit $ac_status); }
5707{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5708  (eval $ac_compiler -V </dev/null >&5) 2>&5
5709  ac_status=$?
5710  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711  (exit $ac_status); }
5712rm -f a.out
5713
5714# If we don't use `.F' as extension, the preprocessor is not run on the
5715# input file.  (Note that this only needs to work for GNU compilers.)
5716ac_save_ext=$ac_ext
5717ac_ext=F
5718echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5719echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5720if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5721  echo $ECHO_N "(cached) $ECHO_C" >&6
5722else
5723  cat >conftest.$ac_ext <<_ACEOF
5724      program main
5725#ifndef __GNUC__
5726       choke me
5727#endif
5728
5729      end
5730_ACEOF
5731rm -f conftest.$ac_objext
5732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5733  (eval $ac_compile) 2>conftest.er1
5734  ac_status=$?
5735  grep -v '^ *+' conftest.er1 >conftest.err
5736  rm -f conftest.er1
5737  cat conftest.err >&5
5738  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739  (exit $ac_status); } &&
5740         { ac_try='test -z "$ac_f77_werror_flag"
5741                         || test ! -s conftest.err'
5742  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5743  (eval $ac_try) 2>&5
5744  ac_status=$?
5745  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5746  (exit $ac_status); }; } &&
5747         { ac_try='test -s conftest.$ac_objext'
5748  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5749  (eval $ac_try) 2>&5
5750  ac_status=$?
5751  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5752  (exit $ac_status); }; }; then
5753  ac_compiler_gnu=yes
5754else
5755  echo "$as_me: failed program was:" >&5
5756sed 's/^/| /' conftest.$ac_ext >&5
5757
5758ac_compiler_gnu=no
5759fi
5760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5761ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5762
5763fi
5764echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5765echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5766ac_ext=$ac_save_ext
5767ac_test_FFLAGS=${FFLAGS+set}
5768ac_save_FFLAGS=$FFLAGS
5769FFLAGS=
5770echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5771echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5772if test "${ac_cv_prog_f77_g+set}" = set; then
5773  echo $ECHO_N "(cached) $ECHO_C" >&6
5774else
5775  FFLAGS=-g
5776cat >conftest.$ac_ext <<_ACEOF
5777      program main
5778
5779      end
5780_ACEOF
5781rm -f conftest.$ac_objext
5782if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5783  (eval $ac_compile) 2>conftest.er1
5784  ac_status=$?
5785  grep -v '^ *+' conftest.er1 >conftest.err
5786  rm -f conftest.er1
5787  cat conftest.err >&5
5788  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789  (exit $ac_status); } &&
5790         { ac_try='test -z "$ac_f77_werror_flag"
5791                         || test ! -s conftest.err'
5792  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5793  (eval $ac_try) 2>&5
5794  ac_status=$?
5795  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5796  (exit $ac_status); }; } &&
5797         { ac_try='test -s conftest.$ac_objext'
5798  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5799  (eval $ac_try) 2>&5
5800  ac_status=$?
5801  echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802  (exit $ac_status); }; }; then
5803  ac_cv_prog_f77_g=yes
5804else
5805  echo "$as_me: failed program was:" >&5
5806sed 's/^/| /' conftest.$ac_ext >&5
5807
5808ac_cv_prog_f77_g=no
5809fi
5810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5811
5812fi
5813echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5814echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5815if test "$ac_test_FFLAGS" = set; then
5816  FFLAGS=$ac_save_FFLAGS
5817elif test $ac_cv_prog_f77_g = yes; then
5818  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5819    FFLAGS="-g -O2"
5820  else
5821    FFLAGS="-g"
5822  fi
5823else
5824  if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5825    FFLAGS="-O2"
5826  else
5827    FFLAGS=
5828  fi
5829fi
5830
5831G77=`test $ac_compiler_gnu = yes && echo yes`
5832ac_ext=c
5833ac_cpp='$CPP $CPPFLAGS'
5834ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5835ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5836ac_compiler_gnu=$ac_cv_c_compiler_gnu
5837
5838
5839
5840# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5841
5842# find the maximum length of command line arguments
5843echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5844echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5845if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5846  echo $ECHO_N "(cached) $ECHO_C" >&6
5847else
5848    i=0
5849  teststring="ABCD"
5850
5851  case $build_os in
5852  msdosdjgpp*)
5853    # On DJGPP, this test can blow up pretty badly due to problems in libc
5854    # (any single argument exceeding 2000 bytes causes a buffer overrun
5855    # during glob expansion).  Even if it were fixed, the result of this
5856    # check would be larger than it should be.
5857    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5858    ;;
5859
5860  gnu*)
5861    # Under GNU Hurd, this test is not required because there is
5862    # no limit to the length of command line arguments.
5863    # Libtool will interpret -1 as no limit whatsoever
5864    lt_cv_sys_max_cmd_len=-1;
5865    ;;
5866
5867  cygwin* | mingw*)
5868    # On Win9x/ME, this test blows up -- it succeeds, but takes
5869    # about 5 minutes as the teststring grows exponentially.
5870    # Worse, since 9x/ME are not pre-emptively multitasking,
5871    # you end up with a "frozen" computer, even though with patience
5872    # the test eventually succeeds (with a max line length of 256k).
5873    # Instead, let's just punt: use the minimum linelength reported by
5874    # all of the supported platforms: 8192 (on NT/2K/XP).
5875    lt_cv_sys_max_cmd_len=8192;
5876    ;;
5877
5878  amigaos*)
5879    # On AmigaOS with pdksh, this test takes hours, literally.
5880    # So we just punt and use a minimum line length of 8192.
5881    lt_cv_sys_max_cmd_len=8192;
5882    ;;
5883
5884  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5885    # This has been around since 386BSD, at least.  Likely further.
5886    if test -x /sbin/sysctl; then
5887      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5888    elif test -x /usr/sbin/sysctl; then
5889      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5890    else
5891      lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
5892    fi
5893    # And add a safety zone
5894    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5895    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5896    ;;
5897
5898  interix*)
5899    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5900    lt_cv_sys_max_cmd_len=196608
5901    ;;
5902
5903  osf*)
5904    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5905    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5906    # nice to cause kernel panics so lets avoid the loop below.
5907    # First set a reasonable default.
5908    lt_cv_sys_max_cmd_len=16384
5909    #
5910    if test -x /sbin/sysconfig; then
5911      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5912        *1*) lt_cv_sys_max_cmd_len=-1 ;;
5913      esac
5914    fi
5915    ;;
5916  sco3.2v5*)
5917    lt_cv_sys_max_cmd_len=102400
5918    ;;
5919  sysv5* | sco5v6* | sysv4.2uw2*)
5920    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5921    if test -n "$kargmax"; then
5922      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[         ]//'`
5923    else
5924      lt_cv_sys_max_cmd_len=32768
5925    fi
5926    ;;
5927  *)
5928    # If test is not a shell built-in, we'll probably end up computing a
5929    # maximum length that is only half of the actual maximum length, but
5930    # we can't tell.
5931    SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5932    while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5933               = "XX$teststring") >/dev/null 2>&1 &&
5934            new_result=`expr "X$teststring" : ".*" 2>&1` &&
5935            lt_cv_sys_max_cmd_len=$new_result &&
5936            test $i != 17 # 1/2 MB should be enough
5937    do
5938      i=`expr $i + 1`
5939      teststring=$teststring$teststring
5940    done
5941    teststring=
5942    # Add a significant safety factor because C++ compilers can tack on massive
5943    # amounts of additional arguments before passing them to the linker.
5944    # It appears as though 1/2 is a usable value.
5945    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5946    ;;
5947  esac
5948
5949fi
5950
5951if test -n $lt_cv_sys_max_cmd_len ; then
5952  echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5953echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5954else
5955  echo "$as_me:$LINENO: result: none" >&5
5956echo "${ECHO_T}none" >&6
5957fi
5958
5959
5960
5961
5962# Check for command to grab the raw symbol name followed by C symbol from nm.
5963echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5964echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5965if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5966  echo $ECHO_N "(cached) $ECHO_C" >&6
5967else
5968
5969# These are sane defaults that work on at least a few old systems.
5970# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
5971
5972# Character class describing NM global symbol codes.
5973symcode='[BCDEGRST]'
5974
5975# Regexp to match symbols that can be accessed directly from C.
5976sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5977
5978# Transform an extracted symbol line into a proper C declaration
5979lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5980
5981# Transform an extracted symbol line into symbol name and symbol address
5982lt_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'"
5983
5984# Define system-specific variables.
5985case $host_os in
5986aix*)
5987  symcode='[BCDT]'
5988  ;;
5989cygwin* | mingw* | pw32*)
5990  symcode='[ABCDGISTW]'
5991  ;;
5992hpux*) # Its linker distinguishes data from code symbols
5993  if test "$host_cpu" = ia64; then
5994    symcode='[ABCDEGRST]'
5995  fi
5996  lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5997  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'"
5998  ;;
5999linux*)
6000  if test "$host_cpu" = ia64; then
6001    symcode='[ABCDGIRSTW]'
6002    lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6003    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'"
6004  fi
6005  ;;
6006irix* | nonstopux*)
6007  symcode='[BCDEGRST]'
6008  ;;
6009osf*)
6010  symcode='[BCDEGQRST]'
6011  ;;
6012solaris*)
6013  symcode='[BDRT]'
6014  ;;
6015sco3.2v5*)
6016  symcode='[DT]'
6017  ;;
6018sysv4.2uw2*)
6019  symcode='[DT]'
6020  ;;
6021sysv5* | sco5v6* | unixware* | OpenUNIX*)
6022  symcode='[ABDT]'
6023  ;;
6024sysv4)
6025  symcode='[DFNSTU]'
6026  ;;
6027esac
6028
6029# Handle CRLF in mingw tool chain
6030opt_cr=
6031case $build_os in
6032mingw*)
6033  opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6034  ;;
6035esac
6036
6037# If we're using GNU nm, then use its standard symbol codes.
6038case `$NM -V 2>&1` in
6039*GNU* | *'with BFD'*)
6040  symcode='[ABCDGIRSTW]' ;;
6041esac
6042
6043# Try without a prefix undercore, then with it.
6044for ac_symprfx in "" "_"; do
6045
6046  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6047  symxfrm="\\1 $ac_symprfx\\2 \\2"
6048
6049  # Write the raw and C identifiers.
6050  lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6051
6052  # Check to see that the pipe works correctly.
6053  pipe_works=no
6054
6055  rm -f conftest*
6056  cat > conftest.$ac_ext <<EOF
6057#ifdef __cplusplus
6058extern "C" {
6059#endif
6060char nm_test_var;
6061void nm_test_func(){}
6062#ifdef __cplusplus
6063}
6064#endif
6065int main(){nm_test_var='a';nm_test_func();return(0);}
6066EOF
6067
6068  if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6069  (eval $ac_compile) 2>&5
6070  ac_status=$?
6071  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072  (exit $ac_status); }; then
6073    # Now try to grab the symbols.
6074    nlist=conftest.nm
6075    if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6076  (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6077  ac_status=$?
6078  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079  (exit $ac_status); } && test -s "$nlist"; then
6080      # Try sorting and uniquifying the output.
6081      if sort "$nlist" | uniq > "$nlist"T; then
6082        mv -f "$nlist"T "$nlist"
6083      else
6084        rm -f "$nlist"T
6085      fi
6086
6087      # Make sure that we snagged all the symbols we need.
6088      if grep ' nm_test_var$' "$nlist" >/dev/null; then
6089        if grep ' nm_test_func$' "$nlist" >/dev/null; then
6090          cat <<EOF > conftest.$ac_ext
6091#ifdef __cplusplus
6092extern "C" {
6093#endif
6094
6095EOF
6096          # Now generate the symbol file.
6097          eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6098
6099          cat <<EOF >> conftest.$ac_ext
6100#if defined (__STDC__) && __STDC__
6101# define lt_ptr_t void *
6102#else
6103# define lt_ptr_t char *
6104# define const
6105#endif
6106
6107/* The mapping between symbol names and symbols. */
6108const struct {
6109  const char *name;
6110  lt_ptr_t address;
6111}
6112lt_preloaded_symbols[] =
6113{
6114EOF
6115          $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6116          cat <<\EOF >> conftest.$ac_ext
6117  {0, (lt_ptr_t) 0}
6118};
6119
6120#ifdef __cplusplus
6121}
6122#endif
6123EOF
6124          # Now try linking the two files.
6125          mv conftest.$ac_objext conftstm.$ac_objext
6126          lt_save_LIBS="$LIBS"
6127          lt_save_CFLAGS="$CFLAGS"
6128          LIBS="conftstm.$ac_objext"
6129          CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6130          if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6131  (eval $ac_link) 2>&5
6132  ac_status=$?
6133  echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134  (exit $ac_status); } && test -s conftest${ac_exeext}; then
6135            pipe_works=yes
6136          fi
6137          LIBS="$lt_save_LIBS"
6138          CFLAGS="$lt_save_CFLAGS"
6139        else
6140          echo "cannot find nm_test_func in $nlist" >&5
6141        fi
6142      else
6143        echo "cannot find nm_test_var in $nlist" >&5
6144      fi
6145    else
6146      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6147    fi
6148  else
6149    echo "$progname: failed program was:" >&5
6150    cat conftest.$ac_ext >&5
6151  fi
6152  rm -f conftest* conftst*
6153
6154  # Do not use the global_symbol_pipe unless it works.
6155  if test "$pipe_works" = yes; then
6156    break
6157  else
6158    lt_cv_sys_global_symbol_pipe=
6159  fi
6160done
6161
6162fi
6163
6164if test -z "$lt_cv_sys_global_symbol_pipe"; then
6165  lt_cv_sys_global_symbol_to_cdecl=
6166fi
6167if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6168  echo "$as_me:$LINENO: result: failed" >&5
6169echo "${ECHO_T}failed" >&6
6170else
6171  echo "$as_me:$LINENO: result: ok" >&5
6172echo "${ECHO_T}ok" >&6
6173fi
6174
6175echo "$as_me:$LINENO: checking for objdir" >&5
6176echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6177if test "${lt_cv_objdir+set}" = set; then
6178  echo $ECHO_N "(cached) $ECHO_C" >&6
6179else
6180  rm -f .libs 2>/dev/null
6181mkdir .libs 2>/dev/null
6182if test -d .libs; then
6183  lt_cv_objdir=.libs
6184else
6185  # MS-DOS does not allow filenames that begin with a dot.
6186  lt_cv_objdir=_libs
6187fi
6188rmdir .libs 2>/dev/null
6189fi
6190echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6191echo "${ECHO_T}$lt_cv_objdir" >&6
6192objdir=$lt_cv_objdir
6193
6194
6195
6196
6197
6198case $host_os in
6199aix3*)
6200  # AIX sometimes has problems with the GCC collect2 program.  For some
6201  # reason, if we set the COLLECT_NAMES environment variable, the problems
6202  # vanish in a puff of smoke.
6203  if test "X${COLLECT_NAMES+set}" != Xset; then
6204    COLLECT_NAMES=
6205    export COLLECT_NAMES
6206  fi
6207  ;;
6208esac
6209
6210# Sed substitution that helps us do robust quoting.  It backslashifies
6211# metacharacters that are still active within double-quoted strings.
6212Xsed='sed -e 1s/^X//'
6213sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6214
6215# Same as above, but do not quote variable references.
6216double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6217
6218# Sed substitution to delay expansion of an escaped shell variable in a
6219# double_quote_subst'ed string.
6220delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6221
6222# Sed substitution to avoid accidental globbing in evaled expressions
6223no_glob_subst='s/\*/\\\*/g'
6224
6225# Constants:
6226rm="rm -f"
6227
6228# Global variables:
6229default_ofile=libtool
6230can_build_shared=yes
6231
6232# All known linkers require a `.a' archive for static linking (except MSVC,
6233# which needs '.lib').
6234libext=a
6235ltmain="$ac_aux_dir/ltmain.sh"
6236ofile="$default_ofile"
6237with_gnu_ld="$lt_cv_prog_gnu_ld"
6238
6239if test -n "$ac_tool_prefix"; then
6240  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6241set dummy ${ac_tool_prefix}ar; ac_word=$2
6242echo "$as_me:$LINENO: checking for $ac_word" >&5
6243echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6244if test "${ac_cv_prog_AR+set}" = set; then
6245  echo $ECHO_N "(cached) $ECHO_C" >&6
6246else
6247  if test -n "$AR"; then
6248  ac_cv_prog_AR="$AR" # Let the user override the test.
6249else
6250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6251for as_dir in $PATH
6252do
6253  IFS=$as_save_IFS
6254  test -z "$as_dir" && as_dir=.
6255  for ac_exec_ext in '' $ac_executable_extensions; do
6256  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6257    ac_cv_prog_AR="${ac_tool_prefix}ar"
6258    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6259    break 2
6260  fi
6261done
6262done
6263
6264fi
6265fi
6266AR=$ac_cv_prog_AR
6267if test -n "$AR"; then
6268  echo "$as_me:$LINENO: result: $AR" >&5
6269echo "${ECHO_T}$AR" >&6
6270else
6271  echo "$as_me:$LINENO: result: no" >&5
6272echo "${ECHO_T}no" >&6
6273fi
6274
6275fi
6276if test -z "$ac_cv_prog_AR"; then
6277  ac_ct_AR=$AR
6278  # Extract the first word of "ar", so it can be a program name with args.
6279set dummy ar; ac_word=$2
6280echo "$as_me:$LINENO: checking for $ac_word" >&5
6281echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6282if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6283  echo $ECHO_N "(cached) $ECHO_C" >&6
6284else
6285  if test -n "$ac_ct_AR"; then
6286  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6287else
6288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6289for as_dir in $PATH
6290do
6291  IFS=$as_save_IFS
6292  test -z "$as_dir" && as_dir=.
6293  for ac_exec_ext in '' $ac_executable_extensions; do
6294  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6295    ac_cv_prog_ac_ct_AR="ar"
6296    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6297    break 2
6298  fi
6299done
6300done
6301
6302  test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6303fi
6304fi
6305ac_ct_AR=$ac_cv_prog_ac_ct_AR
6306if test -n "$ac_ct_AR"; then
6307  echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6308echo "${ECHO_T}$ac_ct_AR" >&6
6309else
6310  echo "$as_me:$LINENO: result: no" >&5
6311echo "${ECHO_T}no" >&6
6312fi
6313
6314  AR=$ac_ct_AR
6315else
6316  AR="$ac_cv_prog_AR"
6317fi
6318
6319if test -n "$ac_tool_prefix"; then
6320  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6321set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6322echo "$as_me:$LINENO: checking for $ac_word" >&5
6323echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6324if test "${ac_cv_prog_RANLIB+set}" = set; then
6325  echo $ECHO_N "(cached) $ECHO_C" >&6
6326else
6327  if test -n "$RANLIB"; then
6328  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6329else
6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331for as_dir in $PATH
6332do
6333  IFS=$as_save_IFS
6334  test -z "$as_dir" && as_dir=.
6335  for ac_exec_ext in '' $ac_executable_extensions; do
6336  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6338    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6339    break 2
6340  fi
6341done
6342done
6343
6344fi
6345fi
6346RANLIB=$ac_cv_prog_RANLIB
6347if test -n "$RANLIB"; then
6348  echo "$as_me:$LINENO: result: $RANLIB" >&5
6349echo "${ECHO_T}$RANLIB" >&6
6350else
6351  echo "$as_me:$LINENO: result: no" >&5
6352echo "${ECHO_T}no" >&6
6353fi
6354
6355fi
6356if test -z "$ac_cv_prog_RANLIB"; then
6357  ac_ct_RANLIB=$RANLIB
6358  # Extract the first word of "ranlib", so it can be a program name with args.
6359set dummy ranlib; ac_word=$2
6360echo "$as_me:$LINENO: checking for $ac_word" >&5
6361echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6362if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6363  echo $ECHO_N "(cached) $ECHO_C" >&6
6364else
6365  if test -n "$ac_ct_RANLIB"; then
6366  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6367else
6368as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6369for as_dir in $PATH
6370do
6371  IFS=$as_save_IFS
6372  test -z "$as_dir" && as_dir=.
6373  for ac_exec_ext in '' $ac_executable_extensions; do
6374  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6375    ac_cv_prog_ac_ct_RANLIB="ranlib"
6376    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6377    break 2
6378  fi
6379done
6380done
6381
6382  test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6383fi
6384fi
6385ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6386if test -n "$ac_ct_RANLIB"; then
6387  echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6388echo "${ECHO_T}$ac_ct_RANLIB" >&6
6389else
6390  echo "$as_me:$LINENO: result: no" >&5
6391echo "${ECHO_T}no" >&6
6392fi
6393
6394  RANLIB=$ac_ct_RANLIB
6395else
6396  RANLIB="$ac_cv_prog_RANLIB"
6397fi
6398
6399if test -n "$ac_tool_prefix"; then
6400  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6401set dummy ${ac_tool_prefix}strip; ac_word=$2
6402echo "$as_me:$LINENO: checking for $ac_word" >&5
6403echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6404if test "${ac_cv_prog_STRIP+set}" = set; then
6405  echo $ECHO_N "(cached) $ECHO_C" >&6
6406else
6407  if test -n "$STRIP"; then
6408  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6409else
6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6411for as_dir in $PATH
6412do
6413  IFS=$as_save_IFS
6414  test -z "$as_dir" && as_dir=.
6415  for ac_exec_ext in '' $ac_executable_extensions; do
6416  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6417    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6418    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6419    break 2
6420  fi
6421done
6422done
6423
6424fi
6425fi
6426STRIP=$ac_cv_prog_STRIP
6427if test -n "$STRIP"; then
6428  echo "$as_me:$LINENO: result: $STRIP" >&5
6429echo "${ECHO_T}$STRIP" >&6
6430else
6431  echo "$as_me:$LINENO: result: no" >&5
6432echo "${ECHO_T}no" >&6
6433fi
6434
6435fi
6436if test -z "$ac_cv_prog_STRIP"; then
6437  ac_ct_STRIP=$STRIP
6438  # Extract the first word of "strip", so it can be a program name with args.
6439set dummy strip; ac_word=$2
6440echo "$as_me:$LINENO: checking for $ac_word" >&5
6441echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6442if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6443  echo $ECHO_N "(cached) $ECHO_C" >&6
6444else
6445  if test -n "$ac_ct_STRIP"; then
6446  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6447else
6448as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449for as_dir in $PATH
6450do
6451  IFS=$as_save_IFS
6452  test -z "$as_dir" && as_dir=.
6453  for ac_exec_ext in '' $ac_executable_extensions; do
6454  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455    ac_cv_prog_ac_ct_STRIP="strip"
6456    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6457    break 2
6458  fi
6459done
6460done
6461
6462  test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6463fi
6464fi
6465ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6466if test -n "$ac_ct_STRIP"; then
6467  echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6468echo "${ECHO_T}$ac_ct_STRIP" >&6
6469else
6470  echo "$as_me:$LINENO: result: no" >&5
6471echo "${ECHO_T}no" >&6
6472fi
6473
6474  STRIP=$ac_ct_STRIP
6475else
6476  STRIP="$ac_cv_prog_STRIP"
6477fi
6478
6479
6480old_CC="$CC"
6481old_CFLAGS="$CFLAGS"
6482
6483# Set sane defaults for various variables
6484test -z "$AR" && AR=ar
6485test -z "$AR_FLAGS" && AR_FLAGS=cru
6486test -z "$AS" && AS=as
6487test -z "$CC" && CC=cc
6488test -z "$LTCC" && LTCC=$CC
6489test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6490test -z "$DLLTOOL" && DLLTOOL=dlltool
6491test -z "$LD" && LD=ld
6492test -z "$LN_S" && LN_S="ln -s"
6493test -z "$MAGIC_CMD" && MAGIC_CMD=file
6494test -z "$NM" && NM=nm
6495test -z "$SED" && SED=sed
6496test -z "$OBJDUMP" && OBJDUMP=objdump
6497test -z "$RANLIB" && RANLIB=:
6498test -z "$STRIP" && STRIP=:
6499test -z "$ac_objext" && ac_objext=o
6500
6501# Determine commands to create old-style static archives.
6502old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6503old_postinstall_cmds='chmod 644 $oldlib'
6504old_postuninstall_cmds=
6505
6506if test -n "$RANLIB"; then
6507  case $host_os in
6508  openbsd*)
6509    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6510    ;;
6511  *)
6512    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6513    ;;
6514  esac
6515  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6516fi
6517
6518for cc_temp in $compiler""; do
6519  case $cc_temp in
6520    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6521    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6522    \-*) ;;
6523    *) break;;
6524  esac
6525done
6526cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6527
6528
6529# Only perform the check for file, if the check method requires it
6530case $deplibs_check_method in
6531file_magic*)
6532  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6533    echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6534echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6535if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6536  echo $ECHO_N "(cached) $ECHO_C" >&6
6537else
6538  case $MAGIC_CMD in
6539[\\/*] |  ?:[\\/]*)
6540  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6541  ;;
6542*)
6543  lt_save_MAGIC_CMD="$MAGIC_CMD"
6544  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6545  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6546  for ac_dir in $ac_dummy; do
6547    IFS="$lt_save_ifs"
6548    test -z "$ac_dir" && ac_dir=.
6549    if test -f $ac_dir/${ac_tool_prefix}file; then
6550      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6551      if test -n "$file_magic_test_file"; then
6552        case $deplibs_check_method in
6553        "file_magic "*)
6554          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6555          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6556          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6557            $EGREP "$file_magic_regex" > /dev/null; then
6558            :
6559          else
6560            cat <<EOF 1>&2
6561
6562*** Warning: the command libtool uses to detect shared libraries,
6563*** $file_magic_cmd, produces output that libtool cannot recognize.
6564*** The result is that libtool may fail to recognize shared libraries
6565*** as such.  This will affect the creation of libtool libraries that
6566*** depend on shared libraries, but programs linked with such libtool
6567*** libraries will work regardless of this problem.  Nevertheless, you
6568*** may want to report the problem to your system manager and/or to
6569*** bug-libtool@gnu.org
6570
6571EOF
6572          fi ;;
6573        esac
6574      fi
6575      break
6576    fi
6577  done
6578  IFS="$lt_save_ifs"
6579  MAGIC_CMD="$lt_save_MAGIC_CMD"
6580  ;;
6581esac
6582fi
6583
6584MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6585if test -n "$MAGIC_CMD"; then
6586  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6587echo "${ECHO_T}$MAGIC_CMD" >&6
6588else
6589  echo "$as_me:$LINENO: result: no" >&5
6590echo "${ECHO_T}no" >&6
6591fi
6592
6593if test -z "$lt_cv_path_MAGIC_CMD"; then
6594  if test -n "$ac_tool_prefix"; then
6595    echo "$as_me:$LINENO: checking for file" >&5
6596echo $ECHO_N "checking for file... $ECHO_C" >&6
6597if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6598  echo $ECHO_N "(cached) $ECHO_C" >&6
6599else
6600  case $MAGIC_CMD in
6601[\\/*] |  ?:[\\/]*)
6602  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6603  ;;
6604*)
6605  lt_save_MAGIC_CMD="$MAGIC_CMD"
6606  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6607  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6608  for ac_dir in $ac_dummy; do
6609    IFS="$lt_save_ifs"
6610    test -z "$ac_dir" && ac_dir=.
6611    if test -f $ac_dir/file; then
6612      lt_cv_path_MAGIC_CMD="$ac_dir/file"
6613      if test -n "$file_magic_test_file"; then
6614        case $deplibs_check_method in
6615        "file_magic "*)
6616          file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6617          MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6618          if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6619            $EGREP "$file_magic_regex" > /dev/null; then
6620            :
6621          else
6622            cat <<EOF 1>&2
6623
6624*** Warning: the command libtool uses to detect shared libraries,
6625*** $file_magic_cmd, produces output that libtool cannot recognize.
6626*** The result is that libtool may fail to recognize shared libraries
6627*** as such.  This will affect the creation of libtool libraries that
6628*** depend on shared libraries, but programs linked with such libtool
6629*** libraries will work regardless of this problem.  Nevertheless, you
6630*** may want to report the problem to your system manager and/or to
6631*** bug-libtool@gnu.org
6632
6633EOF
6634          fi ;;
6635        esac
6636      fi
6637      break
6638    fi
6639  done
6640  IFS="$lt_save_ifs"
6641  MAGIC_CMD="$lt_save_MAGIC_CMD"
6642  ;;
6643esac
6644fi
6645
6646MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6647if test -n "$MAGIC_CMD"; then
6648  echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6649echo "${ECHO_T}$MAGIC_CMD" >&6
6650else
6651  echo "$as_me:$LINENO: result: no" >&5
6652echo "${ECHO_T}no" >&6
6653fi
6654
6655  else
6656    MAGIC_CMD=:
6657  fi
6658fi
6659
6660  fi
6661  ;;
6662esac
6663
6664enable_dlopen=no
6665enable_win32_dll=no
6666
6667# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6668if test "${enable_libtool_lock+set}" = set; then
6669  enableval="$enable_libtool_lock"
6670
6671fi;
6672test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6673
6674
6675# Check whether --with-pic or --without-pic was given.
6676if test "${with_pic+set}" = set; then
6677  withval="$with_pic"
6678  pic_mode="$withval"
6679else
6680  pic_mode=default
6681fi;
6682test -z "$pic_mode" && pic_mode=default
6683
6684# Use C for the default configuration in the libtool script
6685tagname=
6686lt_save_CC="$CC"
6687ac_ext=c
6688ac_cpp='$CPP $CPPFLAGS'
6689ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6690ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6691ac_compiler_gnu=$ac_cv_c_compiler_gnu
6692
6693
6694# Source file extension for C test sources.
6695ac_ext=c
6696
6697# Object file extension for compiled C test sources.
6698objext=o
6699objext=$objext
6700
6701# Code to be used in simple compile tests
6702lt_simple_compile_test_code="int some_variable = 0;\n"
6703
6704# Code to be used in simple link tests
6705lt_simple_link_test_code='int main(){return(0);}\n'
6706
6707
6708# If no C compiler was specified, use CC.
6709LTCC=${LTCC-"$CC"}
6710
6711# If no C compiler flags were specified, use CFLAGS.
6712LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6713
6714# Allow CC to be a program name with arguments.
6715compiler=$CC
6716
6717
6718# save warnings/boilerplate of simple test code
6719ac_outfile=conftest.$ac_objext
6720printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6721eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6722_lt_compiler_boilerplate=`cat conftest.err`
6723$rm conftest*
6724
6725ac_outfile=conftest.$ac_objext
6726printf "$lt_simple_link_test_code" >conftest.$ac_ext
6727eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6728_lt_linker_boilerplate=`cat conftest.err`
6729$rm conftest*
6730
6731
6732## CAVEAT EMPTOR:
6733## There is no encapsulation within the following macros, do not change
6734## the running order or otherwise move them around unless you know exactly
6735## what you are doing...
6736
6737lt_prog_compiler_no_builtin_flag=
6738
6739if test "$GCC" = yes; then
6740  lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6741
6742
6743echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6744echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6745if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6746  echo $ECHO_N "(cached) $ECHO_C" >&6
6747else
6748  lt_cv_prog_compiler_rtti_exceptions=no
6749  ac_outfile=conftest.$ac_objext
6750   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6751   lt_compiler_flag="-fno-rtti -fno-exceptions"
6752   # Insert the option either (1) after the last *FLAGS variable, or
6753   # (2) before a word containing "conftest.", or (3) at the end.
6754   # Note that $ac_compile itself does not contain backslashes and begins
6755   # with a dollar sign (not a hyphen), so the echo should work correctly.
6756   # The option is referenced via a variable to avoid confusing sed.
6757   lt_compile=`echo "$ac_compile" | $SED \
6758   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6759   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6760   -e 's:$: $lt_compiler_flag:'`
6761   (eval echo "\"\$as_me:6761: $lt_compile\"" >&5)
6762   (eval "$lt_compile" 2>conftest.err)
6763   ac_status=$?
6764   cat conftest.err >&5
6765   echo "$as_me:6765: \$? = $ac_status" >&5
6766   if (exit $ac_status) && test -s "$ac_outfile"; then
6767     # The compiler can only warn and ignore the option if not recognized
6768     # So say no if there are warnings other than the usual output.
6769     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6770     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6771     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6772       lt_cv_prog_compiler_rtti_exceptions=yes
6773     fi
6774   fi
6775   $rm conftest*
6776
6777fi
6778echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6779echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6780
6781if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6782    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6783else
6784    :
6785fi
6786
6787fi
6788
6789lt_prog_compiler_wl=
6790lt_prog_compiler_pic=
6791lt_prog_compiler_static=
6792
6793echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6794echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6795
6796  if test "$GCC" = yes; then
6797    lt_prog_compiler_wl='-Wl,'
6798    lt_prog_compiler_static='-static'
6799
6800    case $host_os in
6801      aix*)
6802      # All AIX code is PIC.
6803      if test "$host_cpu" = ia64; then
6804        # AIX 5 now supports IA64 processor
6805        lt_prog_compiler_static='-Bstatic'
6806      fi
6807      ;;
6808
6809    amigaos*)
6810      # FIXME: we need at least 68020 code to build shared libraries, but
6811      # adding the `-m68020' flag to GCC prevents building anything better,
6812      # like `-m68040'.
6813      lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6814      ;;
6815
6816    beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6817      # PIC is the default for these OSes.
6818      ;;
6819
6820    mingw* | pw32* | os2*)
6821      # This hack is so that the source file can tell whether it is being
6822      # built for inclusion in a dll (and should export symbols for example).
6823      lt_prog_compiler_pic='-DDLL_EXPORT'
6824      ;;
6825
6826    darwin* | rhapsody*)
6827      # PIC is the default on this platform
6828      # Common symbols not allowed in MH_DYLIB files
6829      lt_prog_compiler_pic='-fno-common'
6830      ;;
6831
6832    interix3*)
6833      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6834      # Instead, we relocate shared libraries at runtime.
6835      ;;
6836
6837    msdosdjgpp*)
6838      # Just because we use GCC doesn't mean we suddenly get shared libraries
6839      # on systems that don't support them.
6840      lt_prog_compiler_can_build_shared=no
6841      enable_shared=no
6842      ;;
6843
6844    sysv4*MP*)
6845      if test -d /usr/nec; then
6846        lt_prog_compiler_pic=-Kconform_pic
6847      fi
6848      ;;
6849
6850    hpux*)
6851      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6852      # not for PA HP-UX.
6853      case $host_cpu in
6854      hppa*64*|ia64*)
6855        # +Z the default
6856        ;;
6857      *)
6858        lt_prog_compiler_pic='-fPIC'
6859        ;;
6860      esac
6861      ;;
6862
6863    *)
6864      lt_prog_compiler_pic='-fPIC'
6865      ;;
6866    esac
6867  else
6868    # PORTME Check for flag to pass linker flags through the system compiler.
6869    case $host_os in
6870    aix*)
6871      lt_prog_compiler_wl='-Wl,'
6872      if test "$host_cpu" = ia64; then
6873        # AIX 5 now supports IA64 processor
6874        lt_prog_compiler_static='-Bstatic'
6875      else
6876        lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
6877      fi
6878      ;;
6879      darwin*)
6880        # PIC is the default on this platform
6881        # Common symbols not allowed in MH_DYLIB files
6882       case $cc_basename in
6883         xlc*)
6884         lt_prog_compiler_pic='-qnocommon'
6885         lt_prog_compiler_wl='-Wl,'
6886         ;;
6887       esac
6888       ;;
6889
6890    mingw* | pw32* | os2*)
6891      # This hack is so that the source file can tell whether it is being
6892      # built for inclusion in a dll (and should export symbols for example).
6893      lt_prog_compiler_pic='-DDLL_EXPORT'
6894      ;;
6895
6896    hpux9* | hpux10* | hpux11*)
6897      lt_prog_compiler_wl='-Wl,'
6898      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6899      # not for PA HP-UX.
6900      case $host_cpu in
6901      hppa*64*|ia64*)
6902        # +Z the default
6903        ;;
6904      *)
6905        lt_prog_compiler_pic='+Z'
6906        ;;
6907      esac
6908      # Is there a better lt_prog_compiler_static that works with the bundled CC?
6909      lt_prog_compiler_static='${wl}-a ${wl}archive'
6910      ;;
6911
6912    irix5* | irix6* | nonstopux*)
6913      lt_prog_compiler_wl='-Wl,'
6914      # PIC (with -KPIC) is the default.
6915      lt_prog_compiler_static='-non_shared'
6916      ;;
6917
6918    newsos6)
6919      lt_prog_compiler_pic='-KPIC'
6920      lt_prog_compiler_static='-Bstatic'
6921      ;;
6922
6923    linux*)
6924      case $cc_basename in
6925      icc* | ecc*)
6926        lt_prog_compiler_wl='-Wl,'
6927        lt_prog_compiler_pic='-KPIC'
6928        lt_prog_compiler_static='-static'
6929        ;;
6930      pgcc* | pgf77* | pgf90* | pgf95*)
6931        # Portland Group compilers (*not* the Pentium gcc compiler,
6932        # which looks to be a dead project)
6933        lt_prog_compiler_wl='-Wl,'
6934        lt_prog_compiler_pic='-fpic'
6935        lt_prog_compiler_static='-Bstatic'
6936        ;;
6937      ccc*)
6938        lt_prog_compiler_wl='-Wl,'
6939        # All Alpha code is PIC.
6940        lt_prog_compiler_static='-non_shared'
6941        ;;
6942      esac
6943      ;;
6944
6945    osf3* | osf4* | osf5*)
6946      lt_prog_compiler_wl='-Wl,'
6947      # All OSF/1 code is PIC.
6948      lt_prog_compiler_static='-non_shared'
6949      ;;
6950
6951    solaris*)
6952      lt_prog_compiler_pic='-KPIC'
6953      lt_prog_compiler_static='-Bstatic'
6954      case $cc_basename in
6955      f77* | f90* | f95*)
6956        lt_prog_compiler_wl='-Qoption ld ';;
6957      *)
6958        lt_prog_compiler_wl='-Wl,';;
6959      esac
6960      ;;
6961
6962    sunos4*)
6963      lt_prog_compiler_wl='-Qoption ld '
6964      lt_prog_compiler_pic='-PIC'
6965      lt_prog_compiler_static='-Bstatic'
6966      ;;
6967
6968    sysv4 | sysv4.2uw2* | sysv4.3*)
6969      lt_prog_compiler_wl='-Wl,'
6970      lt_prog_compiler_pic='-KPIC'
6971      lt_prog_compiler_static='-Bstatic'
6972      ;;
6973
6974    sysv4*MP*)
6975      if test -d /usr/nec ;then
6976        lt_prog_compiler_pic='-Kconform_pic'
6977        lt_prog_compiler_static='-Bstatic'
6978      fi
6979      ;;
6980
6981    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
6982      lt_prog_compiler_wl='-Wl,'
6983      lt_prog_compiler_pic='-KPIC'
6984      lt_prog_compiler_static='-Bstatic'
6985      ;;
6986
6987    unicos*)
6988      lt_prog_compiler_wl='-Wl,'
6989      lt_prog_compiler_can_build_shared=no
6990      ;;
6991
6992    uts4*)
6993      lt_prog_compiler_pic='-pic'
6994      lt_prog_compiler_static='-Bstatic'
6995      ;;
6996
6997    *)
6998      lt_prog_compiler_can_build_shared=no
6999      ;;
7000    esac
7001  fi
7002
7003echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7004echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7005
7006#
7007# Check to make sure the PIC flag actually works.
7008#
7009if test -n "$lt_prog_compiler_pic"; then
7010
7011echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7012echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7013if test "${lt_prog_compiler_pic_works+set}" = set; then
7014  echo $ECHO_N "(cached) $ECHO_C" >&6
7015else
7016  lt_prog_compiler_pic_works=no
7017  ac_outfile=conftest.$ac_objext
7018   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7019   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7020   # Insert the option either (1) after the last *FLAGS variable, or
7021   # (2) before a word containing "conftest.", or (3) at the end.
7022   # Note that $ac_compile itself does not contain backslashes and begins
7023   # with a dollar sign (not a hyphen), so the echo should work correctly.
7024   # The option is referenced via a variable to avoid confusing sed.
7025   lt_compile=`echo "$ac_compile" | $SED \
7026   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7027   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7028   -e 's:$: $lt_compiler_flag:'`
7029   (eval echo "\"\$as_me:7029: $lt_compile\"" >&5)
7030   (eval "$lt_compile" 2>conftest.err)
7031   ac_status=$?
7032   cat conftest.err >&5
7033   echo "$as_me:7033: \$? = $ac_status" >&5
7034   if (exit $ac_status) && test -s "$ac_outfile"; then
7035     # The compiler can only warn and ignore the option if not recognized
7036     # So say no if there are warnings other than the usual output.
7037     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7038     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7039     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7040       lt_prog_compiler_pic_works=yes
7041     fi
7042   fi
7043   $rm conftest*
7044
7045fi
7046echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
7047echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
7048
7049if test x"$lt_prog_compiler_pic_works" = xyes; then
7050    case $lt_prog_compiler_pic in
7051     "" | " "*) ;;
7052     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7053     esac
7054else
7055    lt_prog_compiler_pic=
7056     lt_prog_compiler_can_build_shared=no
7057fi
7058
7059fi
7060case $host_os in
7061  # For platforms which do not support PIC, -DPIC is meaningless:
7062  *djgpp*)
7063    lt_prog_compiler_pic=
7064    ;;
7065  *)
7066    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7067    ;;
7068esac
7069
7070#
7071# Check to make sure the static flag actually works.
7072#
7073wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7074echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7075echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7076if test "${lt_prog_compiler_static_works+set}" = set; then
7077  echo $ECHO_N "(cached) $ECHO_C" >&6
7078else
7079  lt_prog_compiler_static_works=no
7080   save_LDFLAGS="$LDFLAGS"
7081   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7082   printf "$lt_simple_link_test_code" > conftest.$ac_ext
7083   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7084     # The linker can only warn and ignore the option if not recognized
7085     # So say no if there are warnings
7086     if test -s conftest.err; then
7087       # Append any errors to the config.log.
7088       cat conftest.err 1>&5
7089       $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7090       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7091       if diff conftest.exp conftest.er2 >/dev/null; then
7092         lt_prog_compiler_static_works=yes
7093       fi
7094     else
7095       lt_prog_compiler_static_works=yes
7096     fi
7097   fi
7098   $rm conftest*
7099   LDFLAGS="$save_LDFLAGS"
7100
7101fi
7102echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
7103echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
7104
7105if test x"$lt_prog_compiler_static_works" = xyes; then
7106    :
7107else
7108    lt_prog_compiler_static=
7109fi
7110
7111
7112echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7113echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7114if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7115  echo $ECHO_N "(cached) $ECHO_C" >&6
7116else
7117  lt_cv_prog_compiler_c_o=no
7118   $rm -r conftest 2>/dev/null
7119   mkdir conftest
7120   cd conftest
7121   mkdir out
7122   printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7123
7124   lt_compiler_flag="-o out/conftest2.$ac_objext"
7125   # Insert the option either (1) after the last *FLAGS variable, or
7126   # (2) before a word containing "conftest.", or (3) at the end.
7127   # Note that $ac_compile itself does not contain backslashes and begins
7128   # with a dollar sign (not a hyphen), so the echo should work correctly.
7129   lt_compile=`echo "$ac_compile" | $SED \
7130   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7131   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7132   -e 's:$: $lt_compiler_flag:'`
7133   (eval echo "\"\$as_me:7133: $lt_compile\"" >&5)
7134   (eval "$lt_compile" 2>out/conftest.err)
7135   ac_status=$?
7136   cat out/conftest.err >&5
7137   echo "$as_me:7137: \$? = $ac_status" >&5
7138   if (exit $ac_status) && test -s out/conftest2.$ac_objext
7139   then
7140     # The compiler can only warn and ignore the option if not recognized
7141     # So say no if there are warnings
7142     $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7143     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7144     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7145       lt_cv_prog_compiler_c_o=yes
7146     fi
7147   fi
7148   chmod u+w . 2>&5
7149   $rm conftest*
7150   # SGI C++ compiler will create directory out/ii_files/ for
7151   # template instantiation
7152   test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7153   $rm out/* && rmdir out
7154   cd ..
7155   rmdir conftest
7156   $rm conftest*
7157
7158fi
7159echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7160echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7161
7162
7163hard_links="nottested"
7164if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7165  # do not overwrite the value of need_locks provided by the user
7166  echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7167echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7168  hard_links=yes
7169  $rm conftest*
7170  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7171  touch conftest.a
7172  ln conftest.a conftest.b 2>&5 || hard_links=no
7173  ln conftest.a conftest.b 2>/dev/null && hard_links=no
7174  echo "$as_me:$LINENO: result: $hard_links" >&5
7175echo "${ECHO_T}$hard_links" >&6
7176  if test "$hard_links" = no; then
7177    { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7178echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7179    need_locks=warn
7180  fi
7181else
7182  need_locks=no
7183fi
7184
7185echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7186echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7187
7188  runpath_var=
7189  allow_undefined_flag=
7190  enable_shared_with_static_runtimes=no
7191  archive_cmds=
7192  archive_expsym_cmds=
7193  old_archive_From_new_cmds=
7194  old_archive_from_expsyms_cmds=
7195  export_dynamic_flag_spec=
7196  whole_archive_flag_spec=
7197  thread_safe_flag_spec=
7198  hardcode_libdir_flag_spec=
7199  hardcode_libdir_flag_spec_ld=
7200  hardcode_libdir_separator=
7201  hardcode_direct=no
7202  hardcode_minus_L=no
7203  hardcode_shlibpath_var=unsupported
7204  link_all_deplibs=unknown
7205  hardcode_automatic=no
7206  module_cmds=
7207  module_expsym_cmds=
7208  always_export_symbols=no
7209  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7210  # include_expsyms should be a list of space-separated symbols to be *always*
7211  # included in the symbol list
7212  include_expsyms=
7213  # exclude_expsyms can be an extended regexp of symbols to exclude
7214  # it will be wrapped by ` (' and `)$', so one must not match beginning or
7215  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7216  # as well as any symbol that contains `d'.
7217  exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7218  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7219  # platforms (ab)use it in PIC code, but their linkers get confused if
7220  # the symbol is explicitly referenced.  Since portable code cannot
7221  # rely on this symbol name, it's probably fine to never include it in
7222  # preloaded symbol tables.
7223  extract_expsyms_cmds=
7224  # Just being paranoid about ensuring that cc_basename is set.
7225  for cc_temp in $compiler""; do
7226  case $cc_temp in
7227    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7228    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7229    \-*) ;;
7230    *) break;;
7231  esac
7232done
7233cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7234
7235  case $host_os in
7236  cygwin* | mingw* | pw32*)
7237    # FIXME: the MSVC++ port hasn't been tested in a loooong time
7238    # When not using gcc, we currently assume that we are using
7239    # Microsoft Visual C++.
7240    if test "$GCC" != yes; then
7241      with_gnu_ld=no
7242    fi
7243    ;;
7244  interix*)
7245    # we just hope/assume this is gcc and not c89 (= MSVC++)
7246    with_gnu_ld=yes
7247    ;;
7248  openbsd*)
7249    with_gnu_ld=no
7250    ;;
7251  esac
7252
7253  ld_shlibs=yes
7254  if test "$with_gnu_ld" = yes; then
7255    # If archive_cmds runs LD, not CC, wlarc should be empty
7256    wlarc='${wl}'
7257
7258    # Set some defaults for GNU ld with shared library support. These
7259    # are reset later if shared libraries are not supported. Putting them
7260    # here allows them to be overridden if necessary.
7261    runpath_var=LD_RUN_PATH
7262    hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7263    export_dynamic_flag_spec='${wl}--export-dynamic'
7264    # ancient GNU ld didn't support --whole-archive et. al.
7265    if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7266        whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7267      else
7268        whole_archive_flag_spec=
7269    fi
7270    supports_anon_versioning=no
7271    case `$LD -v 2>/dev/null` in
7272      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7273      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7274      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7275      *\ 2.11.*) ;; # other 2.11 versions
7276      *) supports_anon_versioning=yes ;;
7277    esac
7278
7279    # See if GNU ld supports shared libraries.
7280    case $host_os in
7281    aix3* | aix4* | aix5*)
7282      # On AIX/PPC, the GNU linker is very broken
7283      if test "$host_cpu" != ia64; then
7284        ld_shlibs=no
7285        cat <<EOF 1>&2
7286
7287*** Warning: the GNU linker, at least up to release 2.9.1, is reported
7288*** to be unable to reliably create shared libraries on AIX.
7289*** Therefore, libtool is disabling shared libraries support.  If you
7290*** really care for shared libraries, you may want to modify your PATH
7291*** so that a non-GNU linker is found, and then restart.
7292
7293EOF
7294      fi
7295      ;;
7296
7297    amigaos*)
7298      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)'
7299      hardcode_libdir_flag_spec='-L$libdir'
7300      hardcode_minus_L=yes
7301
7302      # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7303      # that the semantics of dynamic libraries on AmigaOS, at least up
7304      # to version 4, is to share data among multiple programs linked
7305      # with the same dynamic library.  Since this doesn't match the
7306      # behavior of shared libraries on other platforms, we can't use
7307      # them.
7308      ld_shlibs=no
7309      ;;
7310
7311    beos*)
7312      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7313        allow_undefined_flag=unsupported
7314        # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7315        # support --undefined.  This deserves some investigation.  FIXME
7316        archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7317      else
7318        ld_shlibs=no
7319      fi
7320      ;;
7321
7322    cygwin* | mingw* | pw32*)
7323      # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7324      # as there is no search path for DLLs.
7325      hardcode_libdir_flag_spec='-L$libdir'
7326      allow_undefined_flag=unsupported
7327      always_export_symbols=no
7328      enable_shared_with_static_runtimes=yes
7329      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7330
7331      if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7332        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7333        # If the export-symbols file already is a .def file (1st line
7334        # is EXPORTS), use it as is; otherwise, prepend...
7335        archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7336          cp $export_symbols $output_objdir/$soname.def;
7337        else
7338          echo EXPORTS > $output_objdir/$soname.def;
7339          cat $export_symbols >> $output_objdir/$soname.def;
7340        fi~
7341        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7342      else
7343        ld_shlibs=no
7344      fi
7345      ;;
7346
7347    interix3*)
7348      hardcode_direct=no
7349      hardcode_shlibpath_var=no
7350      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7351      export_dynamic_flag_spec='${wl}-E'
7352      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7353      # Instead, shared libraries are loaded at an image base (0x10000000 by
7354      # default) and relocated if they conflict, which is a slow very memory
7355      # consuming and fragmenting process.  To avoid this, we pick a random,
7356      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7357      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
7358      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7359      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'
7360      ;;
7361
7362    linux*)
7363      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7364        tmp_addflag=
7365        case $cc_basename,$host_cpu in
7366        pgcc*)                          # Portland Group C compiler
7367          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'
7368          tmp_addflag=' $pic_flag'
7369          ;;
7370        pgf77* | pgf90* | pgf95*)       # Portland Group f77 and f90 compilers
7371          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'
7372          tmp_addflag=' $pic_flag -Mnomain' ;;
7373        ecc*,ia64* | icc*,ia64*)                # Intel C compiler on ia64
7374          tmp_addflag=' -i_dynamic' ;;
7375        efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
7376          tmp_addflag=' -i_dynamic -nofor_main' ;;
7377        ifc* | ifort*)                  # Intel Fortran compiler
7378          tmp_addflag=' -nofor_main' ;;
7379        esac
7380        archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7381
7382        if test $supports_anon_versioning = yes; then
7383          archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7384  cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7385  $echo "local: *; };" >> $output_objdir/$libname.ver~
7386          $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7387        fi
7388      else
7389        ld_shlibs=no
7390      fi
7391      ;;
7392
7393    netbsd*)
7394      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7395        archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7396        wlarc=
7397      else
7398        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7399        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7400      fi
7401      ;;
7402
7403    solaris*)
7404      if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7405        ld_shlibs=no
7406        cat <<EOF 1>&2
7407
7408*** Warning: The releases 2.8.* of the GNU linker cannot reliably
7409*** create shared libraries on Solaris systems.  Therefore, libtool
7410*** is disabling shared libraries support.  We urge you to upgrade GNU
7411*** binutils to release 2.9.1 or newer.  Another option is to modify
7412*** your PATH or compiler configuration so that the native linker is
7413*** used, and then restart.
7414
7415EOF
7416      elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7417        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7418        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7419      else
7420        ld_shlibs=no
7421      fi
7422      ;;
7423
7424    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7425      case `$LD -v 2>&1` in
7426        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7427        ld_shlibs=no
7428        cat <<_LT_EOF 1>&2
7429
7430*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7431*** reliably create shared libraries on SCO systems.  Therefore, libtool
7432*** is disabling shared libraries support.  We urge you to upgrade GNU
7433*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
7434*** your PATH or compiler configuration so that the native linker is
7435*** used, and then restart.
7436
7437_LT_EOF
7438        ;;
7439        *)
7440          if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7441            hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7442            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7443            archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7444          else
7445            ld_shlibs=no
7446          fi
7447        ;;
7448      esac
7449      ;;
7450
7451    sunos4*)
7452      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7453      wlarc=
7454      hardcode_direct=yes
7455      hardcode_shlibpath_var=no
7456      ;;
7457
7458    *)
7459      if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7460        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7461        archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7462      else
7463        ld_shlibs=no
7464      fi
7465      ;;
7466    esac
7467
7468    if test "$ld_shlibs" = no; then
7469      runpath_var=
7470      hardcode_libdir_flag_spec=
7471      export_dynamic_flag_spec=
7472      whole_archive_flag_spec=
7473    fi
7474  else
7475    # PORTME fill in a description of your system's linker (not GNU ld)
7476    case $host_os in
7477    aix3*)
7478      allow_undefined_flag=unsupported
7479      always_export_symbols=yes
7480      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'
7481      # Note: this linker hardcodes the directories in LIBPATH if there
7482      # are no directories specified by -L.
7483      hardcode_minus_L=yes
7484      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7485        # Neither direct hardcoding nor static linking is supported with a
7486        # broken collect2.
7487        hardcode_direct=unsupported
7488      fi
7489      ;;
7490
7491    aix4* | aix5*)
7492      if test "$host_cpu" = ia64; then
7493        # On IA64, the linker does run time linking by default, so we don't
7494        # have to do anything special.
7495        aix_use_runtimelinking=no
7496        exp_sym_flag='-Bexport'
7497        no_entry_flag=""
7498      else
7499        # If we're using GNU nm, then we don't want the "-C" option.
7500        # -C means demangle to AIX nm, but means don't demangle with GNU nm
7501        if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7502          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'
7503        else
7504          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'
7505        fi
7506        aix_use_runtimelinking=no
7507
7508        # Test if we are trying to use run time linking or normal
7509        # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7510        # need to do runtime linking.
7511        case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7512          for ld_flag in $LDFLAGS; do
7513          if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7514            aix_use_runtimelinking=yes
7515            break
7516          fi
7517          done
7518          ;;
7519        esac
7520
7521        exp_sym_flag='-bexport'
7522        no_entry_flag='-bnoentry'
7523      fi
7524
7525      # When large executables or shared objects are built, AIX ld can
7526      # have problems creating the table of contents.  If linking a library
7527      # or program results in "error TOC overflow" add -mminimal-toc to
7528      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
7529      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7530
7531      archive_cmds=''
7532      hardcode_direct=yes
7533      hardcode_libdir_separator=':'
7534      link_all_deplibs=yes
7535
7536      if test "$GCC" = yes; then
7537        case $host_os in aix4.[012]|aix4.[012].*)
7538        # We only want to do this on AIX 4.2 and lower, the check
7539        # below for broken collect2 doesn't work under 4.3+
7540          collect2name=`${CC} -print-prog-name=collect2`
7541          if test -f "$collect2name" && \
7542           strings "$collect2name" | grep resolve_lib_name >/dev/null
7543          then
7544          # We have reworked collect2
7545          hardcode_direct=yes
7546          else
7547          # We have old collect2
7548          hardcode_direct=unsupported
7549          # It fails to find uninstalled libraries when the uninstalled
7550          # path is not listed in the libpath.  Setting hardcode_minus_L
7551          # to unsupported forces relinking
7552          hardcode_minus_L=yes
7553          hardcode_libdir_flag_spec='-L$libdir'
7554          hardcode_libdir_separator=
7555          fi
7556          ;;
7557        esac
7558        shared_flag='-shared'
7559        if test "$aix_use_runtimelinking" = yes; then
7560          shared_flag="$shared_flag "'${wl}-G'
7561        fi
7562      else
7563        # not using gcc
7564        if test "$host_cpu" = ia64; then
7565        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7566        # chokes on -Wl,-G. The following line is correct:
7567          shared_flag='-G'
7568        else
7569          if test "$aix_use_runtimelinking" = yes; then
7570            shared_flag='${wl}-G'
7571          else
7572            shared_flag='${wl}-bM:SRE'
7573          fi
7574        fi
7575      fi
7576
7577      # It seems that -bexpall does not export symbols beginning with
7578      # underscore (_), so it is better to generate a list of symbols to export.
7579      always_export_symbols=yes
7580      if test "$aix_use_runtimelinking" = yes; then
7581        # Warning - without using the other runtime loading flags (-brtl),
7582        # -berok will link without error, but may produce a broken library.
7583        allow_undefined_flag='-berok'
7584       # Determine the default libpath from the value encoded in an empty executable.
7585       cat >conftest.$ac_ext <<_ACEOF
7586/* confdefs.h.  */
7587_ACEOF
7588cat confdefs.h >>conftest.$ac_ext
7589cat >>conftest.$ac_ext <<_ACEOF
7590/* end confdefs.h.  */
7591
7592int
7593main ()
7594{
7595
7596  ;
7597  return 0;
7598}
7599_ACEOF
7600rm -f conftest.$ac_objext conftest$ac_exeext
7601if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7602  (eval $ac_link) 2>conftest.er1
7603  ac_status=$?
7604  grep -v '^ *+' conftest.er1 >conftest.err
7605  rm -f conftest.er1
7606  cat conftest.err >&5
7607  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608  (exit $ac_status); } &&
7609         { ac_try='test -z "$ac_c_werror_flag"
7610                         || test ! -s conftest.err'
7611  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7612  (eval $ac_try) 2>&5
7613  ac_status=$?
7614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7615  (exit $ac_status); }; } &&
7616         { ac_try='test -s conftest$ac_exeext'
7617  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7618  (eval $ac_try) 2>&5
7619  ac_status=$?
7620  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621  (exit $ac_status); }; }; then
7622
7623aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7624}'`
7625# Check for a 64-bit object if we didn't find anything.
7626if 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; }
7627}'`; fi
7628else
7629  echo "$as_me: failed program was:" >&5
7630sed 's/^/| /' conftest.$ac_ext >&5
7631
7632fi
7633rm -f conftest.err conftest.$ac_objext \
7634      conftest$ac_exeext conftest.$ac_ext
7635if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7636
7637       hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7638        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"
7639       else
7640        if test "$host_cpu" = ia64; then
7641          hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7642          allow_undefined_flag="-z nodefs"
7643          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"
7644        else
7645         # Determine the default libpath from the value encoded in an empty executable.
7646         cat >conftest.$ac_ext <<_ACEOF
7647/* confdefs.h.  */
7648_ACEOF
7649cat confdefs.h >>conftest.$ac_ext
7650cat >>conftest.$ac_ext <<_ACEOF
7651/* end confdefs.h.  */
7652
7653int
7654main ()
7655{
7656
7657  ;
7658  return 0;
7659}
7660_ACEOF
7661rm -f conftest.$ac_objext conftest$ac_exeext
7662if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7663  (eval $ac_link) 2>conftest.er1
7664  ac_status=$?
7665  grep -v '^ *+' conftest.er1 >conftest.err
7666  rm -f conftest.er1
7667  cat conftest.err >&5
7668  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669  (exit $ac_status); } &&
7670         { ac_try='test -z "$ac_c_werror_flag"
7671                         || test ! -s conftest.err'
7672  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7673  (eval $ac_try) 2>&5
7674  ac_status=$?
7675  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7676  (exit $ac_status); }; } &&
7677         { ac_try='test -s conftest$ac_exeext'
7678  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7679  (eval $ac_try) 2>&5
7680  ac_status=$?
7681  echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682  (exit $ac_status); }; }; then
7683
7684aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
7685}'`
7686# Check for a 64-bit object if we didn't find anything.
7687if 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; }
7688}'`; fi
7689else
7690  echo "$as_me: failed program was:" >&5
7691sed 's/^/| /' conftest.$ac_ext >&5
7692
7693fi
7694rm -f conftest.err conftest.$ac_objext \
7695      conftest$ac_exeext conftest.$ac_ext
7696if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7697
7698         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7699          # Warning - without using the other run time loading flags,
7700          # -berok will link without error, but may produce a broken library.
7701          no_undefined_flag=' ${wl}-bernotok'
7702          allow_undefined_flag=' ${wl}-berok'
7703          # Exported symbols can be pulled into shared objects from archives
7704          whole_archive_flag_spec='$convenience'
7705          archive_cmds_need_lc=yes
7706          # This is similar to how AIX traditionally builds its shared libraries.
7707          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'
7708        fi
7709      fi
7710      ;;
7711
7712    amigaos*)
7713      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)'
7714      hardcode_libdir_flag_spec='-L$libdir'
7715      hardcode_minus_L=yes
7716      # see comment about different semantics on the GNU ld section
7717      ld_shlibs=no
7718      ;;
7719
7720    bsdi[45]*)
7721      export_dynamic_flag_spec=-rdynamic
7722      ;;
7723
7724    cygwin* | mingw* | pw32*)
7725      # When not using gcc, we currently assume that we are using
7726      # Microsoft Visual C++.
7727      # hardcode_libdir_flag_spec is actually meaningless, as there is
7728      # no search path for DLLs.
7729      hardcode_libdir_flag_spec=' '
7730      allow_undefined_flag=unsupported
7731      # Tell ltmain to make .lib files, not .a files.
7732      libext=lib
7733      # Tell ltmain to make .dll files, not .so files.
7734      shrext_cmds=".dll"
7735      # FIXME: Setting linknames here is a bad hack.
7736      archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7737      # The linker will automatically build a .lib file if we build a DLL.
7738      old_archive_From_new_cmds='true'
7739      # FIXME: Should let the user specify the lib program.
7740      old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7741      fix_srcfile_path='`cygpath -w "$srcfile"`'
7742      enable_shared_with_static_runtimes=yes
7743      ;;
7744
7745    darwin* | rhapsody*)
7746      case $host_os in
7747        rhapsody* | darwin1.[012])
7748         allow_undefined_flag='${wl}-undefined ${wl}suppress'
7749         ;;
7750       *) # Darwin 1.3 on
7751         if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7752           allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7753         else
7754           case ${MACOSX_DEPLOYMENT_TARGET} in
7755             10.[012])
7756               allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7757               ;;
7758             10.*)
7759               allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7760               ;;
7761           esac
7762         fi
7763         ;;
7764      esac
7765      archive_cmds_need_lc=no
7766      hardcode_direct=no
7767      hardcode_automatic=yes
7768      hardcode_shlibpath_var=unsupported
7769      whole_archive_flag_spec=''
7770      link_all_deplibs=yes
7771    if test "$GCC" = yes ; then
7772        output_verbose_link_cmd='echo'
7773        archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7774      module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7775      # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7776      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}'
7777      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}'
7778    else
7779      case $cc_basename in
7780        xlc*)
7781         output_verbose_link_cmd='echo'
7782         archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7783         module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7784          # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7785         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}'
7786          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}'
7787          ;;
7788       *)
7789         ld_shlibs=no
7790          ;;
7791      esac
7792    fi
7793      ;;
7794
7795    dgux*)
7796      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7797      hardcode_libdir_flag_spec='-L$libdir'
7798      hardcode_shlibpath_var=no
7799      ;;
7800
7801    freebsd1*)
7802      ld_shlibs=no
7803      ;;
7804
7805    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7806    # support.  Future versions do this automatically, but an explicit c++rt0.o
7807    # does not break anything, and helps significantly (at the cost of a little
7808    # extra space).
7809    freebsd2.2*)
7810      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7811      hardcode_libdir_flag_spec='-R$libdir'
7812      hardcode_direct=yes
7813      hardcode_shlibpath_var=no
7814      ;;
7815
7816    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7817    freebsd2*)
7818      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7819      hardcode_direct=yes
7820      hardcode_minus_L=yes
7821      hardcode_shlibpath_var=no
7822      ;;
7823
7824    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7825    freebsd* | kfreebsd*-gnu | dragonfly*)
7826      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7827      hardcode_libdir_flag_spec='-R$libdir'
7828      hardcode_direct=yes
7829      hardcode_shlibpath_var=no
7830      ;;
7831
7832    hpux9*)
7833      if test "$GCC" = yes; then
7834        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'
7835      else
7836        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'
7837      fi
7838      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7839      hardcode_libdir_separator=:
7840      hardcode_direct=yes
7841
7842      # hardcode_minus_L: Not really in the search PATH,
7843      # but as the default location of the library.
7844      hardcode_minus_L=yes
7845      export_dynamic_flag_spec='${wl}-E'
7846      ;;
7847
7848    hpux10*)
7849      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7850        archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7851      else
7852        archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7853      fi
7854      if test "$with_gnu_ld" = no; then
7855        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7856        hardcode_libdir_separator=:
7857
7858        hardcode_direct=yes
7859        export_dynamic_flag_spec='${wl}-E'
7860
7861        # hardcode_minus_L: Not really in the search PATH,
7862        # but as the default location of the library.
7863        hardcode_minus_L=yes
7864      fi
7865      ;;
7866
7867    hpux11*)
7868      if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7869        case $host_cpu in
7870        hppa*64*)
7871          archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7872          ;;
7873        ia64*)
7874          archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7875          ;;
7876        *)
7877          archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7878          ;;
7879        esac
7880      else
7881        case $host_cpu in
7882        hppa*64*)
7883          archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
7884          ;;
7885        ia64*)
7886          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
7887          ;;
7888        *)
7889          archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7890          ;;
7891        esac
7892      fi
7893      if test "$with_gnu_ld" = no; then
7894        hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7895        hardcode_libdir_separator=:
7896
7897        case $host_cpu in
7898        hppa*64*|ia64*)
7899          hardcode_libdir_flag_spec_ld='+b $libdir'
7900          hardcode_direct=no
7901          hardcode_shlibpath_var=no
7902          ;;
7903        *)
7904          hardcode_direct=yes
7905          export_dynamic_flag_spec='${wl}-E'
7906
7907          # hardcode_minus_L: Not really in the search PATH,
7908          # but as the default location of the library.
7909          hardcode_minus_L=yes
7910          ;;
7911        esac
7912      fi
7913      ;;
7914
7915    irix5* | irix6* | nonstopux*)
7916      if test "$GCC" = yes; then
7917        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'
7918      else
7919        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'
7920        hardcode_libdir_flag_spec_ld='-rpath $libdir'
7921      fi
7922      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7923      hardcode_libdir_separator=:
7924      link_all_deplibs=yes
7925      ;;
7926
7927    netbsd*)
7928      if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7929        archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
7930      else
7931        archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
7932      fi
7933      hardcode_libdir_flag_spec='-R$libdir'
7934      hardcode_direct=yes
7935      hardcode_shlibpath_var=no
7936      ;;
7937
7938    newsos6)
7939      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7940      hardcode_direct=yes
7941      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7942      hardcode_libdir_separator=:
7943      hardcode_shlibpath_var=no
7944      ;;
7945
7946    openbsd*)
7947      hardcode_direct=yes
7948      hardcode_shlibpath_var=no
7949      if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7950        archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7951        archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
7952        hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7953        export_dynamic_flag_spec='${wl}-E'
7954      else
7955       case $host_os in
7956         openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
7957           archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7958           hardcode_libdir_flag_spec='-R$libdir'
7959           ;;
7960         *)
7961           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
7962           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7963           ;;
7964       esac
7965      fi
7966      ;;
7967
7968    os2*)
7969      hardcode_libdir_flag_spec='-L$libdir'
7970      hardcode_minus_L=yes
7971      allow_undefined_flag=unsupported
7972      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'
7973      old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
7974      ;;
7975
7976    osf3*)
7977      if test "$GCC" = yes; then
7978        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7979        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'
7980      else
7981        allow_undefined_flag=' -expect_unresolved \*'
7982        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'
7983      fi
7984      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7985      hardcode_libdir_separator=:
7986      ;;
7987
7988    osf4* | osf5*)      # as osf3* with the addition of -msym flag
7989      if test "$GCC" = yes; then
7990        allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
7991        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'
7992        hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
7993      else
7994        allow_undefined_flag=' -expect_unresolved \*'
7995        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'
7996        archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
7997        $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'
7998
7999        # Both c and cxx compiler support -rpath directly
8000        hardcode_libdir_flag_spec='-rpath $libdir'
8001      fi
8002      hardcode_libdir_separator=:
8003      ;;
8004
8005    solaris*)
8006      no_undefined_flag=' -z text'
8007      if test "$GCC" = yes; then
8008        wlarc='${wl}'
8009        archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8010        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8011          $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8012      else
8013        wlarc=''
8014        archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8015        archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8016        $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8017      fi
8018      hardcode_libdir_flag_spec='-R$libdir'
8019      hardcode_shlibpath_var=no
8020      case $host_os in
8021      solaris2.[0-5] | solaris2.[0-5].*) ;;
8022      *)
8023        # The compiler driver will combine linker options so we
8024        # cannot just pass the convience library names through
8025        # without $wl, iff we do not link with $LD.
8026        # Luckily, gcc supports the same syntax we need for Sun Studio.
8027        # Supported since Solaris 2.6 (maybe 2.5.1?)
8028        case $wlarc in
8029        '')
8030          whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8031        *)
8032          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' ;;
8033        esac ;;
8034      esac
8035      link_all_deplibs=yes
8036      ;;
8037
8038    sunos4*)
8039      if test "x$host_vendor" = xsequent; then
8040        # Use $CC to link under sequent, because it throws in some extra .o
8041        # files that make .init and .fini sections work.
8042        archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8043      else
8044        archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8045      fi
8046      hardcode_libdir_flag_spec='-L$libdir'
8047      hardcode_direct=yes
8048      hardcode_minus_L=yes
8049      hardcode_shlibpath_var=no
8050      ;;
8051
8052    sysv4)
8053      case $host_vendor in
8054        sni)
8055          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8056          hardcode_direct=yes # is this really true???
8057        ;;
8058        siemens)
8059          ## LD is ld it makes a PLAMLIB
8060          ## CC just makes a GrossModule.
8061          archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8062          reload_cmds='$CC -r -o $output$reload_objs'
8063          hardcode_direct=no
8064        ;;
8065        motorola)
8066          archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8067          hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8068        ;;
8069      esac
8070      runpath_var='LD_RUN_PATH'
8071      hardcode_shlibpath_var=no
8072      ;;
8073
8074    sysv4.3*)
8075      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8076      hardcode_shlibpath_var=no
8077      export_dynamic_flag_spec='-Bexport'
8078      ;;
8079
8080    sysv4*MP*)
8081      if test -d /usr/nec; then
8082        archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8083        hardcode_shlibpath_var=no
8084        runpath_var=LD_RUN_PATH
8085        hardcode_runpath_var=yes
8086        ld_shlibs=yes
8087      fi
8088      ;;
8089
8090    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8091      no_undefined_flag='${wl}-z,text'
8092      archive_cmds_need_lc=no
8093      hardcode_shlibpath_var=no
8094      runpath_var='LD_RUN_PATH'
8095
8096      if test "$GCC" = yes; then
8097        archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8098        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8099      else
8100        archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8101        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8102      fi
8103      ;;
8104
8105    sysv5* | sco3.2v5* | sco5v6*)
8106      # Note: We can NOT use -z defs as we might desire, because we do not
8107      # link with -lc, and that would cause any symbols used from libc to
8108      # always be unresolved, which means just about no library would
8109      # ever link correctly.  If we're not using GNU ld we use -z text
8110      # though, which does catch some bad symbols but isn't as heavy-handed
8111      # as -z defs.
8112      no_undefined_flag='${wl}-z,text'
8113      allow_undefined_flag='${wl}-z,nodefs'
8114      archive_cmds_need_lc=no
8115      hardcode_shlibpath_var=no
8116      hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8117      hardcode_libdir_separator=':'
8118      link_all_deplibs=yes
8119      export_dynamic_flag_spec='${wl}-Bexport'
8120      runpath_var='LD_RUN_PATH'
8121
8122      if test "$GCC" = yes; then
8123        archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8124        archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8125      else
8126        archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8127        archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8128      fi
8129      ;;
8130
8131    uts4*)
8132      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8133      hardcode_libdir_flag_spec='-L$libdir'
8134      hardcode_shlibpath_var=no
8135      ;;
8136
8137    *)
8138      ld_shlibs=no
8139      ;;
8140    esac
8141  fi
8142
8143echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8144echo "${ECHO_T}$ld_shlibs" >&6
8145test "$ld_shlibs" = no && can_build_shared=no
8146
8147#
8148# Do we need to explicitly link libc?
8149#
8150case "x$archive_cmds_need_lc" in
8151x|xyes)
8152  # Assume -lc should be added
8153  archive_cmds_need_lc=yes
8154
8155  if test "$enable_shared" = yes && test "$GCC" = yes; then
8156    case $archive_cmds in
8157    *'~'*)
8158      # FIXME: we may have to deal with multi-command sequences.
8159      ;;
8160    '$CC '*)
8161      # Test whether the compiler implicitly links with -lc since on some
8162      # systems, -lgcc has to come before -lc. If gcc already passes -lc
8163      # to ld, don't add -lc before -lgcc.
8164      echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8165echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8166      $rm conftest*
8167      printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8168
8169      if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8170  (eval $ac_compile) 2>&5
8171  ac_status=$?
8172  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8173  (exit $ac_status); } 2>conftest.err; then
8174        soname=conftest
8175        lib=conftest
8176        libobjs=conftest.$ac_objext
8177        deplibs=
8178        wl=$lt_prog_compiler_wl
8179        pic_flag=$lt_prog_compiler_pic
8180        compiler_flags=-v
8181        linker_flags=-v
8182        verstring=
8183        output_objdir=.
8184        libname=conftest
8185        lt_save_allow_undefined_flag=$allow_undefined_flag
8186        allow_undefined_flag=
8187        if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8188  (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8189  ac_status=$?
8190  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191  (exit $ac_status); }
8192        then
8193          archive_cmds_need_lc=no
8194        else
8195          archive_cmds_need_lc=yes
8196        fi
8197        allow_undefined_flag=$lt_save_allow_undefined_flag
8198      else
8199        cat conftest.err 1>&5
8200      fi
8201      $rm conftest*
8202      echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8203echo "${ECHO_T}$archive_cmds_need_lc" >&6
8204      ;;
8205    esac
8206  fi
8207  ;;
8208esac
8209
8210echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8211echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8212library_names_spec=
8213libname_spec='lib$name'
8214soname_spec=
8215shrext_cmds=".so"
8216postinstall_cmds=
8217postuninstall_cmds=
8218finish_cmds=
8219finish_eval=
8220shlibpath_var=
8221shlibpath_overrides_runpath=unknown
8222version_type=none
8223dynamic_linker="$host_os ld.so"
8224sys_lib_dlsearch_path_spec="/lib /usr/lib"
8225if test "$GCC" = yes; then
8226  sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8227  if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8228    # if the path contains ";" then we assume it to be the separator
8229    # otherwise default to the standard path separator (i.e. ":") - it is
8230    # assumed that no part of a normal pathname contains ";" but that should
8231    # okay in the real world where ";" in dirpaths is itself problematic.
8232    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8233  else
8234    sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8235  fi
8236else
8237  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8238fi
8239need_lib_prefix=unknown
8240hardcode_into_libs=no
8241
8242# when you set need_version to no, make sure it does not cause -set_version
8243# flags to be left without arguments
8244need_version=unknown
8245
8246case $host_os in
8247aix3*)
8248  version_type=linux
8249  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8250  shlibpath_var=LIBPATH
8251
8252  # AIX 3 has no versioning support, so we append a major version to the name.
8253  soname_spec='${libname}${release}${shared_ext}$major'
8254  ;;
8255
8256aix4* | aix5*)
8257  version_type=linux
8258  need_lib_prefix=no
8259  need_version=no
8260  hardcode_into_libs=yes
8261  if test "$host_cpu" = ia64; then
8262    # AIX 5 supports IA64
8263    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8264    shlibpath_var=LD_LIBRARY_PATH
8265  else
8266    # With GCC up to 2.95.x, collect2 would create an import file
8267    # for dependence libraries.  The import file would start with
8268    # the line `#! .'.  This would cause the generated library to
8269    # depend on `.', always an invalid library.  This was fixed in
8270    # development snapshots of GCC prior to 3.0.
8271    case $host_os in
8272      aix4 | aix4.[01] | aix4.[01].*)
8273      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8274           echo ' yes '
8275           echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8276        :
8277      else
8278        can_build_shared=no
8279      fi
8280      ;;
8281    esac
8282    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8283    # soname into executable. Probably we can add versioning support to
8284    # collect2, so additional links can be useful in future.
8285    if test "$aix_use_runtimelinking" = yes; then
8286      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8287      # instead of lib<name>.a to let people know that these are not
8288      # typical AIX shared libraries.
8289      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8290    else
8291      # We preserve .a as extension for shared libraries through AIX4.2
8292      # and later when we are not doing run time linking.
8293      library_names_spec='${libname}${release}.a $libname.a'
8294      soname_spec='${libname}${release}${shared_ext}$major'
8295    fi
8296    shlibpath_var=LIBPATH
8297  fi
8298  ;;
8299
8300amigaos*)
8301  library_names_spec='$libname.ixlibrary $libname.a'
8302  # Create ${libname}_ixlibrary.a entries in /sys/libs.
8303  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'
8304  ;;
8305
8306beos*)
8307  library_names_spec='${libname}${shared_ext}'
8308  dynamic_linker="$host_os ld.so"
8309  shlibpath_var=LIBRARY_PATH
8310  ;;
8311
8312bsdi[45]*)
8313  version_type=linux
8314  need_version=no
8315  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8316  soname_spec='${libname}${release}${shared_ext}$major'
8317  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8318  shlibpath_var=LD_LIBRARY_PATH
8319  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8320  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8321  # the default ld.so.conf also contains /usr/contrib/lib and
8322  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8323  # libtool to hard-code these into programs
8324  ;;
8325
8326cygwin* | mingw* | pw32*)
8327  version_type=windows
8328  shrext_cmds=".dll"
8329  need_version=no
8330  need_lib_prefix=no
8331
8332  case $GCC,$host_os in
8333  yes,cygwin* | yes,mingw* | yes,pw32*)
8334    library_names_spec='$libname.dll.a'
8335    # DLL is installed to $(libdir)/../bin by postinstall_cmds
8336    postinstall_cmds='base_file=`basename \${file}`~
8337      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8338      dldir=$destdir/`dirname \$dlpath`~
8339      test -d \$dldir || mkdir -p \$dldir~
8340      $install_prog $dir/$dlname \$dldir/$dlname~
8341      chmod a+x \$dldir/$dlname'
8342    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8343      dlpath=$dir/\$dldll~
8344       $rm \$dlpath'
8345    shlibpath_overrides_runpath=yes
8346
8347    case $host_os in
8348    cygwin*)
8349      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8350      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8351      sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8352      ;;
8353    mingw*)
8354      # MinGW DLLs use traditional 'lib' prefix
8355      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8356      sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8357      if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8358        # It is most probably a Windows format PATH printed by
8359        # mingw gcc, but we are running on Cygwin. Gcc prints its search
8360        # path with ; separators, and with drive letters. We can handle the
8361        # drive letters (cygwin fileutils understands them), so leave them,
8362        # especially as we might pass files found there to a mingw objdump,
8363        # which wouldn't understand a cygwinified path. Ahh.
8364        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8365      else
8366        sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
8367      fi
8368      ;;
8369    pw32*)
8370      # pw32 DLLs use 'pw' prefix rather than 'lib'
8371      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8372      ;;
8373    esac
8374    ;;
8375
8376  *)
8377    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8378    ;;
8379  esac
8380  dynamic_linker='Win32 ld.exe'
8381  # FIXME: first we should search . and the directory the executable is in
8382  shlibpath_var=PATH
8383  ;;
8384
8385darwin* | rhapsody*)
8386  dynamic_linker="$host_os dyld"
8387  version_type=darwin
8388  need_lib_prefix=no
8389  need_version=no
8390  library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8391  soname_spec='${libname}${release}${major}$shared_ext'
8392  shlibpath_overrides_runpath=yes
8393  shlibpath_var=DYLD_LIBRARY_PATH
8394  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8395  # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8396  if test "$GCC" = yes; then
8397    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"`
8398  else
8399    sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8400  fi
8401  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8402  ;;
8403
8404dgux*)
8405  version_type=linux
8406  need_lib_prefix=no
8407  need_version=no
8408  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8409  soname_spec='${libname}${release}${shared_ext}$major'
8410  shlibpath_var=LD_LIBRARY_PATH
8411  ;;
8412
8413freebsd1*)
8414  dynamic_linker=no
8415  ;;
8416
8417kfreebsd*-gnu)
8418  version_type=linux
8419  need_lib_prefix=no
8420  need_version=no
8421  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8422  soname_spec='${libname}${release}${shared_ext}$major'
8423  shlibpath_var=LD_LIBRARY_PATH
8424  shlibpath_overrides_runpath=no
8425  hardcode_into_libs=yes
8426  dynamic_linker='GNU ld.so'
8427  ;;
8428
8429freebsd* | dragonfly*)
8430  # DragonFly does not have aout.  When/if they implement a new
8431  # versioning mechanism, adjust this.
8432  if test -x /usr/bin/objformat; then
8433    objformat=`/usr/bin/objformat`
8434  else
8435    case $host_os in
8436    freebsd[123]*) objformat=aout ;;
8437    *) objformat=elf ;;
8438    esac
8439  fi
8440  version_type=freebsd-$objformat
8441  case $version_type in
8442    freebsd-elf*)
8443      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8444      need_version=no
8445      need_lib_prefix=no
8446      ;;
8447    freebsd-*)
8448      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8449      need_version=yes
8450      ;;
8451  esac
8452  shlibpath_var=LD_LIBRARY_PATH
8453  case $host_os in
8454  freebsd2*)
8455    shlibpath_overrides_runpath=yes
8456    ;;
8457  freebsd3.[01]* | freebsdelf3.[01]*)
8458    shlibpath_overrides_runpath=yes
8459    hardcode_into_libs=yes
8460    ;;
8461  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8462  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8463    shlibpath_overrides_runpath=no
8464    hardcode_into_libs=yes
8465    ;;
8466  freebsd*) # from 4.6 on
8467    shlibpath_overrides_runpath=yes
8468    hardcode_into_libs=yes
8469    ;;
8470  esac
8471  ;;
8472
8473gnu*)
8474  version_type=linux
8475  need_lib_prefix=no
8476  need_version=no
8477  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8478  soname_spec='${libname}${release}${shared_ext}$major'
8479  shlibpath_var=LD_LIBRARY_PATH
8480  hardcode_into_libs=yes
8481  ;;
8482
8483hpux9* | hpux10* | hpux11*)
8484  # Give a soname corresponding to the major version so that dld.sl refuses to
8485  # link against other versions.
8486  version_type=sunos
8487  need_lib_prefix=no
8488  need_version=no
8489  case $host_cpu in
8490  ia64*)
8491    shrext_cmds='.so'
8492    hardcode_into_libs=yes
8493    dynamic_linker="$host_os dld.so"
8494    shlibpath_var=LD_LIBRARY_PATH
8495    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8496    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8497    soname_spec='${libname}${release}${shared_ext}$major'
8498    if test "X$HPUX_IA64_MODE" = X32; then
8499      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8500    else
8501      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8502    fi
8503    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8504    ;;
8505   hppa*64*)
8506     shrext_cmds='.sl'
8507     hardcode_into_libs=yes
8508     dynamic_linker="$host_os dld.sl"
8509     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8510     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8511     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8512     soname_spec='${libname}${release}${shared_ext}$major'
8513     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8514     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8515     ;;
8516   *)
8517    shrext_cmds='.sl'
8518    dynamic_linker="$host_os dld.sl"
8519    shlibpath_var=SHLIB_PATH
8520    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8521    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8522    soname_spec='${libname}${release}${shared_ext}$major'
8523    ;;
8524  esac
8525  # HP-UX runs *really* slowly unless shared libraries are mode 555.
8526  postinstall_cmds='chmod 555 $lib'
8527  ;;
8528
8529interix3*)
8530  version_type=linux
8531  need_lib_prefix=no
8532  need_version=no
8533  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8534  soname_spec='${libname}${release}${shared_ext}$major'
8535  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8536  shlibpath_var=LD_LIBRARY_PATH
8537  shlibpath_overrides_runpath=no
8538  hardcode_into_libs=yes
8539  ;;
8540
8541irix5* | irix6* | nonstopux*)
8542  case $host_os in
8543    nonstopux*) version_type=nonstopux ;;
8544    *)
8545        if test "$lt_cv_prog_gnu_ld" = yes; then
8546                version_type=linux
8547        else
8548                version_type=irix
8549        fi ;;
8550  esac
8551  need_lib_prefix=no
8552  need_version=no
8553  soname_spec='${libname}${release}${shared_ext}$major'
8554  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8555  case $host_os in
8556  irix5* | nonstopux*)
8557    libsuff= shlibsuff=
8558    ;;
8559  *)
8560    case $LD in # libtool.m4 will add one of these switches to LD
8561    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8562      libsuff= shlibsuff= libmagic=32-bit;;
8563    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8564      libsuff=32 shlibsuff=N32 libmagic=N32;;
8565    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8566      libsuff=64 shlibsuff=64 libmagic=64-bit;;
8567    *) libsuff= shlibsuff= libmagic=never-match;;
8568    esac
8569    ;;
8570  esac
8571  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8572  shlibpath_overrides_runpath=no
8573  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8574  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8575  hardcode_into_libs=yes
8576  ;;
8577
8578# No shared lib support for Linux oldld, aout, or coff.
8579linux*oldld* | linux*aout* | linux*coff*)
8580  dynamic_linker=no
8581  ;;
8582
8583# This must be Linux ELF.
8584linux*)
8585  version_type=linux
8586  need_lib_prefix=no
8587  need_version=no
8588  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8589  soname_spec='${libname}${release}${shared_ext}$major'
8590  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8591  shlibpath_var=LD_LIBRARY_PATH
8592  shlibpath_overrides_runpath=no
8593  # This implies no fast_install, which is unacceptable.
8594  # Some rework will be needed to allow for fast_install
8595  # before this can be enabled.
8596  hardcode_into_libs=yes
8597
8598  # Append ld.so.conf contents to the search path
8599  if test -f /etc/ld.so.conf; then
8600    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' ' '`
8601    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8602  fi
8603
8604  # We used to test for /lib/ld.so.1 and disable shared libraries on
8605  # powerpc, because MkLinux only supported shared libraries with the
8606  # GNU dynamic linker.  Since this was broken with cross compilers,
8607  # most powerpc-linux boxes support dynamic linking these days and
8608  # people can always --disable-shared, the test was removed, and we
8609  # assume the GNU/Linux dynamic linker is in use.
8610  dynamic_linker='GNU/Linux ld.so'
8611  ;;
8612
8613knetbsd*-gnu)
8614  version_type=linux
8615  need_lib_prefix=no
8616  need_version=no
8617  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8618  soname_spec='${libname}${release}${shared_ext}$major'
8619  shlibpath_var=LD_LIBRARY_PATH
8620  shlibpath_overrides_runpath=no
8621  hardcode_into_libs=yes
8622  dynamic_linker='GNU ld.so'
8623  ;;
8624
8625netbsd*)
8626  version_type=sunos
8627  need_lib_prefix=no
8628  need_version=no
8629  if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8630    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8631    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8632    dynamic_linker='NetBSD (a.out) ld.so'
8633  else
8634    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8635    soname_spec='${libname}${release}${shared_ext}$major'
8636    dynamic_linker='NetBSD ld.elf_so'
8637  fi
8638  shlibpath_var=LD_LIBRARY_PATH
8639  shlibpath_overrides_runpath=yes
8640  hardcode_into_libs=yes
8641  ;;
8642
8643newsos6)
8644  version_type=linux
8645  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8646  shlibpath_var=LD_LIBRARY_PATH
8647  shlibpath_overrides_runpath=yes
8648  ;;
8649
8650nto-qnx*)
8651  version_type=linux
8652  need_lib_prefix=no
8653  need_version=no
8654  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8655  soname_spec='${libname}${release}${shared_ext}$major'
8656  shlibpath_var=LD_LIBRARY_PATH
8657  shlibpath_overrides_runpath=yes
8658  ;;
8659
8660openbsd*)
8661  version_type=sunos
8662  sys_lib_dlsearch_path_spec="/usr/lib"
8663  need_lib_prefix=no
8664  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8665  case $host_os in
8666    openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8667    *)                         need_version=no  ;;
8668  esac
8669  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8670  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8671  shlibpath_var=LD_LIBRARY_PATH
8672  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8673    case $host_os in
8674      openbsd2.[89] | openbsd2.[89].*)
8675        shlibpath_overrides_runpath=no
8676        ;;
8677      *)
8678        shlibpath_overrides_runpath=yes
8679        ;;
8680      esac
8681  else
8682    shlibpath_overrides_runpath=yes
8683  fi
8684  ;;
8685
8686os2*)
8687  libname_spec='$name'
8688  shrext_cmds=".dll"
8689  need_lib_prefix=no
8690  library_names_spec='$libname${shared_ext} $libname.a'
8691  dynamic_linker='OS/2 ld.exe'
8692  shlibpath_var=LIBPATH
8693  ;;
8694
8695osf3* | osf4* | osf5*)
8696  version_type=osf
8697  need_lib_prefix=no
8698  need_version=no
8699  soname_spec='${libname}${release}${shared_ext}$major'
8700  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8701  shlibpath_var=LD_LIBRARY_PATH
8702  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8703  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8704  ;;
8705
8706solaris*)
8707  version_type=linux
8708  need_lib_prefix=no
8709  need_version=no
8710  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8711  soname_spec='${libname}${release}${shared_ext}$major'
8712  shlibpath_var=LD_LIBRARY_PATH
8713  shlibpath_overrides_runpath=yes
8714  hardcode_into_libs=yes
8715  # ldd complains unless libraries are executable
8716  postinstall_cmds='chmod +x $lib'
8717  ;;
8718
8719sunos4*)
8720  version_type=sunos
8721  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8722  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8723  shlibpath_var=LD_LIBRARY_PATH
8724  shlibpath_overrides_runpath=yes
8725  if test "$with_gnu_ld" = yes; then
8726    need_lib_prefix=no
8727  fi
8728  need_version=yes
8729  ;;
8730
8731sysv4 | sysv4.3*)
8732  version_type=linux
8733  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8734  soname_spec='${libname}${release}${shared_ext}$major'
8735  shlibpath_var=LD_LIBRARY_PATH
8736  case $host_vendor in
8737    sni)
8738      shlibpath_overrides_runpath=no
8739      need_lib_prefix=no
8740      export_dynamic_flag_spec='${wl}-Blargedynsym'
8741      runpath_var=LD_RUN_PATH
8742      ;;
8743    siemens)
8744      need_lib_prefix=no
8745      ;;
8746    motorola)
8747      need_lib_prefix=no
8748      need_version=no
8749      shlibpath_overrides_runpath=no
8750      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8751      ;;
8752  esac
8753  ;;
8754
8755sysv4*MP*)
8756  if test -d /usr/nec ;then
8757    version_type=linux
8758    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8759    soname_spec='$libname${shared_ext}.$major'
8760    shlibpath_var=LD_LIBRARY_PATH
8761  fi
8762  ;;
8763
8764sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8765  version_type=freebsd-elf
8766  need_lib_prefix=no
8767  need_version=no
8768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8769  soname_spec='${libname}${release}${shared_ext}$major'
8770  shlibpath_var=LD_LIBRARY_PATH
8771  hardcode_into_libs=yes
8772  if test "$with_gnu_ld" = yes; then
8773    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8774    shlibpath_overrides_runpath=no
8775  else
8776    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8777    shlibpath_overrides_runpath=yes
8778    case $host_os in
8779      sco3.2v5*)
8780        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8781        ;;
8782    esac
8783  fi
8784  sys_lib_dlsearch_path_spec='/usr/lib'
8785  ;;
8786
8787uts4*)
8788  version_type=linux
8789  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8790  soname_spec='${libname}${release}${shared_ext}$major'
8791  shlibpath_var=LD_LIBRARY_PATH
8792  ;;
8793
8794*)
8795  dynamic_linker=no
8796  ;;
8797esac
8798echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8799echo "${ECHO_T}$dynamic_linker" >&6
8800test "$dynamic_linker" = no && can_build_shared=no
8801
8802variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8803if test "$GCC" = yes; then
8804  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8805fi
8806
8807echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
8808echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
8809hardcode_action=
8810if test -n "$hardcode_libdir_flag_spec" || \
8811   test -n "$runpath_var" || \
8812   test "X$hardcode_automatic" = "Xyes" ; then
8813
8814  # We can hardcode non-existant directories.
8815  if test "$hardcode_direct" != no &&
8816     # If the only mechanism to avoid hardcoding is shlibpath_var, we
8817     # have to relink, otherwise we might link with an installed library
8818     # when we should be linking with a yet-to-be-installed one
8819     ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8820     test "$hardcode_minus_L" != no; then
8821    # Linking always hardcodes the temporary library directory.
8822    hardcode_action=relink
8823  else
8824    # We can link without hardcoding, and we can hardcode nonexisting dirs.
8825    hardcode_action=immediate
8826  fi
8827else
8828  # We cannot hardcode anything, or else we can only hardcode existing
8829  # directories.
8830  hardcode_action=unsupported
8831fi
8832echo "$as_me:$LINENO: result: $hardcode_action" >&5
8833echo "${ECHO_T}$hardcode_action" >&6
8834
8835if test "$hardcode_action" = relink; then
8836  # Fast installation is not supported
8837  enable_fast_install=no
8838elif test "$shlibpath_overrides_runpath" = yes ||
8839     test "$enable_shared" = no; then
8840  # Fast installation is not necessary
8841  enable_fast_install=needless
8842fi
8843
8844striplib=
8845old_striplib=
8846echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
8847echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
8848if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
8849  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
8850  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
8851  echo "$as_me:$LINENO: result: yes" >&5
8852echo "${ECHO_T}yes" >&6
8853else
8854# FIXME - insert some real tests, host_os isn't really good enough
8855  case $host_os in
8856   darwin*)
8857       if test -n "$STRIP" ; then
8858         striplib="$STRIP -x"
8859         echo "$as_me:$LINENO: result: yes" >&5
8860echo "${ECHO_T}yes" >&6
8861       else
8862  echo "$as_me:$LINENO: result: no" >&5
8863echo "${ECHO_T}no" >&6
8864fi
8865       ;;
8866   *)
8867  echo "$as_me:$LINENO: result: no" >&5
8868echo "${ECHO_T}no" >&6
8869    ;;
8870  esac
8871fi
8872
8873if test "x$enable_dlopen" != xyes; then
8874  enable_dlopen=unknown
8875  enable_dlopen_self=unknown
8876  enable_dlopen_self_static=unknown
8877else
8878  lt_cv_dlopen=no
8879  lt_cv_dlopen_libs=
8880
8881  case $host_os in
8882  beos*)
8883    lt_cv_dlopen="load_add_on"
8884    lt_cv_dlopen_libs=
8885    lt_cv_dlopen_self=yes
8886    ;;
8887
8888  mingw* | pw32*)
8889    lt_cv_dlopen="LoadLibrary"
8890    lt_cv_dlopen_libs=
8891   ;;
8892
8893  cygwin*)
8894    lt_cv_dlopen="dlopen"
8895    lt_cv_dlopen_libs=
8896   ;;
8897
8898  darwin*)
8899  # if libdl is installed we need to link against it
8900    echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
8901echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
8902if test "${ac_cv_lib_dl_dlopen+set}" = set; then
8903  echo $ECHO_N "(cached) $ECHO_C" >&6
8904else
8905  ac_check_lib_save_LIBS=$LIBS
8906LIBS="-ldl  $LIBS"
8907cat >conftest.$ac_ext <<_ACEOF
8908/* confdefs.h.  */
8909_ACEOF
8910cat confdefs.h >>conftest.$ac_ext
8911cat >>conftest.$ac_ext <<_ACEOF
8912/* end confdefs.h.  */
8913
8914/* Override any gcc2 internal prototype to avoid an error.  */
8915#ifdef __cplusplus
8916extern "C"
8917#endif
8918/* We use char because int might match the return type of a gcc2
8919   builtin and then its argument prototype would still apply.  */
8920char dlopen ();
8921int
8922main ()
8923{
8924dlopen ();
8925  ;
8926  return 0;
8927}
8928_ACEOF
8929rm -f conftest.$ac_objext conftest$ac_exeext
8930if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8931  (eval $ac_link) 2>conftest.er1
8932  ac_status=$?
8933  grep -v '^ *+' conftest.er1 >conftest.err
8934  rm -f conftest.er1
8935  cat conftest.err >&5
8936  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937  (exit $ac_status); } &&
8938         { ac_try='test -z "$ac_c_werror_flag"
8939                         || test ! -s conftest.err'
8940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8941  (eval $ac_try) 2>&5
8942  ac_status=$?
8943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944  (exit $ac_status); }; } &&
8945         { ac_try='test -s conftest$ac_exeext'
8946  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8947  (eval $ac_try) 2>&5
8948  ac_status=$?
8949  echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950  (exit $ac_status); }; }; then
8951  ac_cv_lib_dl_dlopen=yes
8952else
8953  echo "$as_me: failed program was:" >&5
8954sed 's/^/| /' conftest.$ac_ext >&5
8955
8956ac_cv_lib_dl_dlopen=no
8957fi
8958rm -f conftest.err conftest.$ac_objext \
8959      conftest$ac_exeext conftest.$ac_ext
8960LIBS=$ac_check_lib_save_LIBS
8961fi
8962echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
8963echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
8964if test $ac_cv_lib_dl_dlopen = yes; then
8965  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
8966else
8967
8968    lt_cv_dlopen="dyld"
8969    lt_cv_dlopen_libs=
8970    lt_cv_dlopen_self=yes
8971
8972fi
8973
8974   ;;
8975
8976  *)
8977    echo "$as_me:$LINENO: checking for shl_load" >&5
8978echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
8979if test "${ac_cv_func_shl_load+set}" = set; then
8980  echo $ECHO_N "(cached) $ECHO_C" >&6
8981else
8982  cat >conftest.$ac_ext <<_ACEOF
8983/* confdefs.h.  */
8984_ACEOF
8985cat confdefs.h >>conftest.$ac_ext
8986cat >>conftest.$ac_ext <<_ACEOF
8987/* end confdefs.h.  */
8988/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
8989   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
8990#define shl_load innocuous_shl_load
8991
8992/* System header to define __stub macros and hopefully few prototypes,
8993    which can conflict with char shl_load (); below.
8994    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8995    <limits.h> exists even on freestanding compilers.  */
8996
8997#ifdef __STDC__
8998# include <limits.h>
8999#else
9000# include <assert.h>
9001#endif
9002
9003#undef shl_load
9004
9005/* Override any gcc2 internal prototype to avoid an error.  */
9006#ifdef __cplusplus
9007extern "C"
9008{
9009#endif
9010/* We use char because int might match the return type of a gcc2
9011   builtin and then its argument prototype would still apply.  */
9012char shl_load ();
9013/* The GNU C library defines this for functions which it implements
9014    to always fail with ENOSYS.  Some functions are actually named
9015    something starting with __ and the normal name is an alias.  */
9016#if defined (__stub_shl_load) || defined (__stub___shl_load)
9017choke me
9018#else
9019char (*f) () = shl_load;
9020#endif
9021#ifdef __cplusplus
9022}
9023#endif
9024
9025int
9026main ()
9027{
9028return f != shl_load;
9029  ;
9030  return 0;
9031}
9032_ACEOF
9033rm -f conftest.$ac_objext conftest$ac_exeext
9034if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9035  (eval $ac_link) 2>conftest.er1
9036  ac_status=$?
9037  grep -v '^ *+' conftest.er1 >conftest.err
9038  rm -f conftest.er1
9039  cat conftest.err >&5
9040  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041  (exit $ac_status); } &&
9042         { ac_try='test -z "$ac_c_werror_flag"
9043                         || test ! -s conftest.err'
9044  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9045  (eval $ac_try) 2>&5
9046  ac_status=$?
9047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9048  (exit $ac_status); }; } &&
9049         { ac_try='test -s conftest$ac_exeext'
9050  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9051  (eval $ac_try) 2>&5
9052  ac_status=$?
9053  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054  (exit $ac_status); }; }; then
9055  ac_cv_func_shl_load=yes
9056else
9057  echo "$as_me: failed program was:" >&5
9058sed 's/^/| /' conftest.$ac_ext >&5
9059
9060ac_cv_func_shl_load=no
9061fi
9062rm -f conftest.err conftest.$ac_objext \
9063      conftest$ac_exeext conftest.$ac_ext
9064fi
9065echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9066echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9067if test $ac_cv_func_shl_load = yes; then
9068  lt_cv_dlopen="shl_load"
9069else
9070  echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9071echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9072if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9073  echo $ECHO_N "(cached) $ECHO_C" >&6
9074else
9075  ac_check_lib_save_LIBS=$LIBS
9076LIBS="-ldld  $LIBS"
9077cat >conftest.$ac_ext <<_ACEOF
9078/* confdefs.h.  */
9079_ACEOF
9080cat confdefs.h >>conftest.$ac_ext
9081cat >>conftest.$ac_ext <<_ACEOF
9082/* end confdefs.h.  */
9083
9084/* Override any gcc2 internal prototype to avoid an error.  */
9085#ifdef __cplusplus
9086extern "C"
9087#endif
9088/* We use char because int might match the return type of a gcc2
9089   builtin and then its argument prototype would still apply.  */
9090char shl_load ();
9091int
9092main ()
9093{
9094shl_load ();
9095  ;
9096  return 0;
9097}
9098_ACEOF
9099rm -f conftest.$ac_objext conftest$ac_exeext
9100if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9101  (eval $ac_link) 2>conftest.er1
9102  ac_status=$?
9103  grep -v '^ *+' conftest.er1 >conftest.err
9104  rm -f conftest.er1
9105  cat conftest.err >&5
9106  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107  (exit $ac_status); } &&
9108         { ac_try='test -z "$ac_c_werror_flag"
9109                         || test ! -s conftest.err'
9110  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9111  (eval $ac_try) 2>&5
9112  ac_status=$?
9113  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9114  (exit $ac_status); }; } &&
9115         { ac_try='test -s conftest$ac_exeext'
9116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9117  (eval $ac_try) 2>&5
9118  ac_status=$?
9119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120  (exit $ac_status); }; }; then
9121  ac_cv_lib_dld_shl_load=yes
9122else
9123  echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126ac_cv_lib_dld_shl_load=no
9127fi
9128rm -f conftest.err conftest.$ac_objext \
9129      conftest$ac_exeext conftest.$ac_ext
9130LIBS=$ac_check_lib_save_LIBS
9131fi
9132echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9133echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9134if test $ac_cv_lib_dld_shl_load = yes; then
9135  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9136else
9137  echo "$as_me:$LINENO: checking for dlopen" >&5
9138echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9139if test "${ac_cv_func_dlopen+set}" = set; then
9140  echo $ECHO_N "(cached) $ECHO_C" >&6
9141else
9142  cat >conftest.$ac_ext <<_ACEOF
9143/* confdefs.h.  */
9144_ACEOF
9145cat confdefs.h >>conftest.$ac_ext
9146cat >>conftest.$ac_ext <<_ACEOF
9147/* end confdefs.h.  */
9148/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9149   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
9150#define dlopen innocuous_dlopen
9151
9152/* System header to define __stub macros and hopefully few prototypes,
9153    which can conflict with char dlopen (); below.
9154    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9155    <limits.h> exists even on freestanding compilers.  */
9156
9157#ifdef __STDC__
9158# include <limits.h>
9159#else
9160# include <assert.h>
9161#endif
9162
9163#undef dlopen
9164
9165/* Override any gcc2 internal prototype to avoid an error.  */
9166#ifdef __cplusplus
9167extern "C"
9168{
9169#endif
9170/* We use char because int might match the return type of a gcc2
9171   builtin and then its argument prototype would still apply.  */
9172char dlopen ();
9173/* The GNU C library defines this for functions which it implements
9174    to always fail with ENOSYS.  Some functions are actually named
9175    something starting with __ and the normal name is an alias.  */
9176#if defined (__stub_dlopen) || defined (__stub___dlopen)
9177choke me
9178#else
9179char (*f) () = dlopen;
9180#endif
9181#ifdef __cplusplus
9182}
9183#endif
9184
9185int
9186main ()
9187{
9188return f != dlopen;
9189  ;
9190  return 0;
9191}
9192_ACEOF
9193rm -f conftest.$ac_objext conftest$ac_exeext
9194if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9195  (eval $ac_link) 2>conftest.er1
9196  ac_status=$?
9197  grep -v '^ *+' conftest.er1 >conftest.err
9198  rm -f conftest.er1
9199  cat conftest.err >&5
9200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201  (exit $ac_status); } &&
9202         { ac_try='test -z "$ac_c_werror_flag"
9203                         || test ! -s conftest.err'
9204  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205  (eval $ac_try) 2>&5
9206  ac_status=$?
9207  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208  (exit $ac_status); }; } &&
9209         { ac_try='test -s conftest$ac_exeext'
9210  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211  (eval $ac_try) 2>&5
9212  ac_status=$?
9213  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214  (exit $ac_status); }; }; then
9215  ac_cv_func_dlopen=yes
9216else
9217  echo "$as_me: failed program was:" >&5
9218sed 's/^/| /' conftest.$ac_ext >&5
9219
9220ac_cv_func_dlopen=no
9221fi
9222rm -f conftest.err conftest.$ac_objext \
9223      conftest$ac_exeext conftest.$ac_ext
9224fi
9225echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9226echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9227if test $ac_cv_func_dlopen = yes; then
9228  lt_cv_dlopen="dlopen"
9229else
9230  echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9231echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9232if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9233  echo $ECHO_N "(cached) $ECHO_C" >&6
9234else
9235  ac_check_lib_save_LIBS=$LIBS
9236LIBS="-ldl  $LIBS"
9237cat >conftest.$ac_ext <<_ACEOF
9238/* confdefs.h.  */
9239_ACEOF
9240cat confdefs.h >>conftest.$ac_ext
9241cat >>conftest.$ac_ext <<_ACEOF
9242/* end confdefs.h.  */
9243
9244/* Override any gcc2 internal prototype to avoid an error.  */
9245#ifdef __cplusplus
9246extern "C"
9247#endif
9248/* We use char because int might match the return type of a gcc2
9249   builtin and then its argument prototype would still apply.  */
9250char dlopen ();
9251int
9252main ()
9253{
9254dlopen ();
9255  ;
9256  return 0;
9257}
9258_ACEOF
9259rm -f conftest.$ac_objext conftest$ac_exeext
9260if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9261  (eval $ac_link) 2>conftest.er1
9262  ac_status=$?
9263  grep -v '^ *+' conftest.er1 >conftest.err
9264  rm -f conftest.er1
9265  cat conftest.err >&5
9266  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9267  (exit $ac_status); } &&
9268         { ac_try='test -z "$ac_c_werror_flag"
9269                         || test ! -s conftest.err'
9270  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271  (eval $ac_try) 2>&5
9272  ac_status=$?
9273  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274  (exit $ac_status); }; } &&
9275         { ac_try='test -s conftest$ac_exeext'
9276  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9277  (eval $ac_try) 2>&5
9278  ac_status=$?
9279  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280  (exit $ac_status); }; }; then
9281  ac_cv_lib_dl_dlopen=yes
9282else
9283  echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286ac_cv_lib_dl_dlopen=no
9287fi
9288rm -f conftest.err conftest.$ac_objext \
9289      conftest$ac_exeext conftest.$ac_ext
9290LIBS=$ac_check_lib_save_LIBS
9291fi
9292echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9293echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9294if test $ac_cv_lib_dl_dlopen = yes; then
9295  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9296else
9297  echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9298echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9299if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9300  echo $ECHO_N "(cached) $ECHO_C" >&6
9301else
9302  ac_check_lib_save_LIBS=$LIBS
9303LIBS="-lsvld  $LIBS"
9304cat >conftest.$ac_ext <<_ACEOF
9305/* confdefs.h.  */
9306_ACEOF
9307cat confdefs.h >>conftest.$ac_ext
9308cat >>conftest.$ac_ext <<_ACEOF
9309/* end confdefs.h.  */
9310
9311/* Override any gcc2 internal prototype to avoid an error.  */
9312#ifdef __cplusplus
9313extern "C"
9314#endif
9315/* We use char because int might match the return type of a gcc2
9316   builtin and then its argument prototype would still apply.  */
9317char dlopen ();
9318int
9319main ()
9320{
9321dlopen ();
9322  ;
9323  return 0;
9324}
9325_ACEOF
9326rm -f conftest.$ac_objext conftest$ac_exeext
9327if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9328  (eval $ac_link) 2>conftest.er1
9329  ac_status=$?
9330  grep -v '^ *+' conftest.er1 >conftest.err
9331  rm -f conftest.er1
9332  cat conftest.err >&5
9333  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334  (exit $ac_status); } &&
9335         { ac_try='test -z "$ac_c_werror_flag"
9336                         || test ! -s conftest.err'
9337  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9338  (eval $ac_try) 2>&5
9339  ac_status=$?
9340  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341  (exit $ac_status); }; } &&
9342         { ac_try='test -s conftest$ac_exeext'
9343  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344  (eval $ac_try) 2>&5
9345  ac_status=$?
9346  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347  (exit $ac_status); }; }; then
9348  ac_cv_lib_svld_dlopen=yes
9349else
9350  echo "$as_me: failed program was:" >&5
9351sed 's/^/| /' conftest.$ac_ext >&5
9352
9353ac_cv_lib_svld_dlopen=no
9354fi
9355rm -f conftest.err conftest.$ac_objext \
9356      conftest$ac_exeext conftest.$ac_ext
9357LIBS=$ac_check_lib_save_LIBS
9358fi
9359echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9360echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9361if test $ac_cv_lib_svld_dlopen = yes; then
9362  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9363else
9364  echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9365echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9366if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9367  echo $ECHO_N "(cached) $ECHO_C" >&6
9368else
9369  ac_check_lib_save_LIBS=$LIBS
9370LIBS="-ldld  $LIBS"
9371cat >conftest.$ac_ext <<_ACEOF
9372/* confdefs.h.  */
9373_ACEOF
9374cat confdefs.h >>conftest.$ac_ext
9375cat >>conftest.$ac_ext <<_ACEOF
9376/* end confdefs.h.  */
9377
9378/* Override any gcc2 internal prototype to avoid an error.  */
9379#ifdef __cplusplus
9380extern "C"
9381#endif
9382/* We use char because int might match the return type of a gcc2
9383   builtin and then its argument prototype would still apply.  */
9384char dld_link ();
9385int
9386main ()
9387{
9388dld_link ();
9389  ;
9390  return 0;
9391}
9392_ACEOF
9393rm -f conftest.$ac_objext conftest$ac_exeext
9394if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9395  (eval $ac_link) 2>conftest.er1
9396  ac_status=$?
9397  grep -v '^ *+' conftest.er1 >conftest.err
9398  rm -f conftest.er1
9399  cat conftest.err >&5
9400  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9401  (exit $ac_status); } &&
9402         { ac_try='test -z "$ac_c_werror_flag"
9403                         || test ! -s conftest.err'
9404  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9405  (eval $ac_try) 2>&5
9406  ac_status=$?
9407  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9408  (exit $ac_status); }; } &&
9409         { ac_try='test -s conftest$ac_exeext'
9410  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9411  (eval $ac_try) 2>&5
9412  ac_status=$?
9413  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9414  (exit $ac_status); }; }; then
9415  ac_cv_lib_dld_dld_link=yes
9416else
9417  echo "$as_me: failed program was:" >&5
9418sed 's/^/| /' conftest.$ac_ext >&5
9419
9420ac_cv_lib_dld_dld_link=no
9421fi
9422rm -f conftest.err conftest.$ac_objext \
9423      conftest$ac_exeext conftest.$ac_ext
9424LIBS=$ac_check_lib_save_LIBS
9425fi
9426echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9427echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9428if test $ac_cv_lib_dld_dld_link = yes; then
9429  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9430fi
9431
9432
9433fi
9434
9435
9436fi
9437
9438
9439fi
9440
9441
9442fi
9443
9444
9445fi
9446
9447    ;;
9448  esac
9449
9450  if test "x$lt_cv_dlopen" != xno; then
9451    enable_dlopen=yes
9452  else
9453    enable_dlopen=no
9454  fi
9455
9456  case $lt_cv_dlopen in
9457  dlopen)
9458    save_CPPFLAGS="$CPPFLAGS"
9459    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9460
9461    save_LDFLAGS="$LDFLAGS"
9462    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9463
9464    save_LIBS="$LIBS"
9465    LIBS="$lt_cv_dlopen_libs $LIBS"
9466
9467    echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9468echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9469if test "${lt_cv_dlopen_self+set}" = set; then
9470  echo $ECHO_N "(cached) $ECHO_C" >&6
9471else
9472          if test "$cross_compiling" = yes; then :
9473  lt_cv_dlopen_self=cross
9474else
9475  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9476  lt_status=$lt_dlunknown
9477  cat > conftest.$ac_ext <<EOF
9478#line 9478 "configure"
9479#include "confdefs.h"
9480
9481#if HAVE_DLFCN_H
9482#include <dlfcn.h>
9483#endif
9484
9485#include <stdio.h>
9486
9487#ifdef RTLD_GLOBAL
9488#  define LT_DLGLOBAL           RTLD_GLOBAL
9489#else
9490#  ifdef DL_GLOBAL
9491#    define LT_DLGLOBAL         DL_GLOBAL
9492#  else
9493#    define LT_DLGLOBAL         0
9494#  endif
9495#endif
9496
9497/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9498   find out it does not work in some platform. */
9499#ifndef LT_DLLAZY_OR_NOW
9500#  ifdef RTLD_LAZY
9501#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9502#  else
9503#    ifdef DL_LAZY
9504#      define LT_DLLAZY_OR_NOW          DL_LAZY
9505#    else
9506#      ifdef RTLD_NOW
9507#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9508#      else
9509#        ifdef DL_NOW
9510#          define LT_DLLAZY_OR_NOW      DL_NOW
9511#        else
9512#          define LT_DLLAZY_OR_NOW      0
9513#        endif
9514#      endif
9515#    endif
9516#  endif
9517#endif
9518
9519#ifdef __cplusplus
9520extern "C" void exit (int);
9521#endif
9522
9523void fnord() { int i=42;}
9524int main ()
9525{
9526  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9527  int status = $lt_dlunknown;
9528
9529  if (self)
9530    {
9531      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9532      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9533      /* dlclose (self); */
9534    }
9535  else
9536    puts (dlerror ());
9537
9538    exit (status);
9539}
9540EOF
9541  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9542  (eval $ac_link) 2>&5
9543  ac_status=$?
9544  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9546    (./conftest; exit; ) >&5 2>/dev/null
9547    lt_status=$?
9548    case x$lt_status in
9549      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9550      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9551      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9552    esac
9553  else :
9554    # compilation failed
9555    lt_cv_dlopen_self=no
9556  fi
9557fi
9558rm -fr conftest*
9559
9560
9561fi
9562echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9563echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9564
9565    if test "x$lt_cv_dlopen_self" = xyes; then
9566      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9567      echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9568echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9569if test "${lt_cv_dlopen_self_static+set}" = set; then
9570  echo $ECHO_N "(cached) $ECHO_C" >&6
9571else
9572          if test "$cross_compiling" = yes; then :
9573  lt_cv_dlopen_self_static=cross
9574else
9575  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9576  lt_status=$lt_dlunknown
9577  cat > conftest.$ac_ext <<EOF
9578#line 9578 "configure"
9579#include "confdefs.h"
9580
9581#if HAVE_DLFCN_H
9582#include <dlfcn.h>
9583#endif
9584
9585#include <stdio.h>
9586
9587#ifdef RTLD_GLOBAL
9588#  define LT_DLGLOBAL           RTLD_GLOBAL
9589#else
9590#  ifdef DL_GLOBAL
9591#    define LT_DLGLOBAL         DL_GLOBAL
9592#  else
9593#    define LT_DLGLOBAL         0
9594#  endif
9595#endif
9596
9597/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9598   find out it does not work in some platform. */
9599#ifndef LT_DLLAZY_OR_NOW
9600#  ifdef RTLD_LAZY
9601#    define LT_DLLAZY_OR_NOW            RTLD_LAZY
9602#  else
9603#    ifdef DL_LAZY
9604#      define LT_DLLAZY_OR_NOW          DL_LAZY
9605#    else
9606#      ifdef RTLD_NOW
9607#        define LT_DLLAZY_OR_NOW        RTLD_NOW
9608#      else
9609#        ifdef DL_NOW
9610#          define LT_DLLAZY_OR_NOW      DL_NOW
9611#        else
9612#          define LT_DLLAZY_OR_NOW      0
9613#        endif
9614#      endif
9615#    endif
9616#  endif
9617#endif
9618
9619#ifdef __cplusplus
9620extern "C" void exit (int);
9621#endif
9622
9623void fnord() { int i=42;}
9624int main ()
9625{
9626  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9627  int status = $lt_dlunknown;
9628
9629  if (self)
9630    {
9631      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
9632      else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9633      /* dlclose (self); */
9634    }
9635  else
9636    puts (dlerror ());
9637
9638    exit (status);
9639}
9640EOF
9641  if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9642  (eval $ac_link) 2>&5
9643  ac_status=$?
9644  echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645  (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9646    (./conftest; exit; ) >&5 2>/dev/null
9647    lt_status=$?
9648    case x$lt_status in
9649      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9650      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9651      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9652    esac
9653  else :
9654    # compilation failed
9655    lt_cv_dlopen_self_static=no
9656  fi
9657fi
9658rm -fr conftest*
9659
9660
9661fi
9662echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9663echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9664    fi
9665
9666    CPPFLAGS="$save_CPPFLAGS"
9667    LDFLAGS="$save_LDFLAGS"
9668    LIBS="$save_LIBS"
9669    ;;
9670  esac
9671
9672  case $lt_cv_dlopen_self in
9673  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9674  *) enable_dlopen_self=unknown ;;
9675  esac
9676
9677  case $lt_cv_dlopen_self_static in
9678  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9679  *) enable_dlopen_self_static=unknown ;;
9680  esac
9681fi
9682
9683
9684# Report which library types will actually be built
9685echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9686echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9687echo "$as_me:$LINENO: result: $can_build_shared" >&5
9688echo "${ECHO_T}$can_build_shared" >&6
9689
9690echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9691echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9692test "$can_build_shared" = "no" && enable_shared=no
9693
9694# On AIX, shared libraries and static libraries use the same namespace, and
9695# are all built from PIC.
9696case $host_os in
9697aix3*)
9698  test "$enable_shared" = yes && enable_static=no
9699  if test -n "$RANLIB"; then
9700    archive_cmds="$archive_cmds~\$RANLIB \$lib"
9701    postinstall_cmds='$RANLIB $lib'
9702  fi
9703  ;;
9704
9705aix4* | aix5*)
9706  if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9707    test "$enable_shared" = yes && enable_static=no
9708  fi
9709    ;;
9710esac
9711echo "$as_me:$LINENO: result: $enable_shared" >&5
9712echo "${ECHO_T}$enable_shared" >&6
9713
9714echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9715echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9716# Make sure either enable_shared or enable_static is yes.
9717test "$enable_shared" = yes || enable_static=yes
9718echo "$as_me:$LINENO: result: $enable_static" >&5
9719echo "${ECHO_T}$enable_static" >&6
9720
9721# The else clause should only fire when bootstrapping the
9722# libtool distribution, otherwise you forgot to ship ltmain.sh
9723# with your package, and you will get complaints that there are
9724# no rules to generate ltmain.sh.
9725if test -f "$ltmain"; then
9726  # See if we are running on zsh, and set the options which allow our commands through
9727  # without removal of \ escapes.
9728  if test -n "${ZSH_VERSION+set}" ; then
9729    setopt NO_GLOB_SUBST
9730  fi
9731  # Now quote all the things that may contain metacharacters while being
9732  # careful not to overquote the AC_SUBSTed values.  We take copies of the
9733  # variables and quote the copies for generation of the libtool script.
9734  for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9735    SED SHELL STRIP \
9736    libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9737    old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9738    deplibs_check_method reload_flag reload_cmds need_locks \
9739    lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9740    lt_cv_sys_global_symbol_to_c_name_address \
9741    sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9742    old_postinstall_cmds old_postuninstall_cmds \
9743    compiler \
9744    CC \
9745    LD \
9746    lt_prog_compiler_wl \
9747    lt_prog_compiler_pic \
9748    lt_prog_compiler_static \
9749    lt_prog_compiler_no_builtin_flag \
9750    export_dynamic_flag_spec \
9751    thread_safe_flag_spec \
9752    whole_archive_flag_spec \
9753    enable_shared_with_static_runtimes \
9754    old_archive_cmds \
9755    old_archive_from_new_cmds \
9756    predep_objects \
9757    postdep_objects \
9758    predeps \
9759    postdeps \
9760    compiler_lib_search_path \
9761    archive_cmds \
9762    archive_expsym_cmds \
9763    postinstall_cmds \
9764    postuninstall_cmds \
9765    old_archive_from_expsyms_cmds \
9766    allow_undefined_flag \
9767    no_undefined_flag \
9768    export_symbols_cmds \
9769    hardcode_libdir_flag_spec \
9770    hardcode_libdir_flag_spec_ld \
9771    hardcode_libdir_separator \
9772    hardcode_automatic \
9773    module_cmds \
9774    module_expsym_cmds \
9775    lt_cv_prog_compiler_c_o \
9776    exclude_expsyms \
9777    include_expsyms; do
9778
9779    case $var in
9780    old_archive_cmds | \
9781    old_archive_from_new_cmds | \
9782    archive_cmds | \
9783    archive_expsym_cmds | \
9784    module_cmds | \
9785    module_expsym_cmds | \
9786    old_archive_from_expsyms_cmds | \
9787    export_symbols_cmds | \
9788    extract_expsyms_cmds | reload_cmds | finish_cmds | \
9789    postinstall_cmds | postuninstall_cmds | \
9790    old_postinstall_cmds | old_postuninstall_cmds | \
9791    sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9792      # Double-quote double-evaled strings.
9793      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9794      ;;
9795    *)
9796      eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9797      ;;
9798    esac
9799  done
9800
9801  case $lt_echo in
9802  *'\$0 --fallback-echo"')
9803    lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9804    ;;
9805  esac
9806
9807cfgfile="${ofile}T"
9808  trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9809  $rm -f "$cfgfile"
9810  { echo "$as_me:$LINENO: creating $ofile" >&5
9811echo "$as_me: creating $ofile" >&6;}
9812
9813  cat <<__EOF__ >> "$cfgfile"
9814#! $SHELL
9815
9816# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9817# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9818# NOTE: Changes made to this file will be lost: look at ltmain.sh.
9819#
9820# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9821# Free Software Foundation, Inc.
9822#
9823# This file is part of GNU Libtool:
9824# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
9825#
9826# This program is free software; you can redistribute it and/or modify
9827# it under the terms of the GNU General Public License as published by
9828# the Free Software Foundation; either version 2 of the License, or
9829# (at your option) any later version.
9830#
9831# This program is distributed in the hope that it will be useful, but
9832# WITHOUT ANY WARRANTY; without even the implied warranty of
9833# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9834# General Public License for more details.
9835#
9836# You should have received a copy of the GNU General Public License
9837# along with this program; if not, write to the Free Software
9838# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9839#
9840# As a special exception to the GNU General Public License, if you
9841# distribute this file as part of a program that contains a
9842# configuration script generated by Autoconf, you may include it under
9843# the same distribution terms that you use for the rest of that program.
9844
9845# A sed program that does not truncate output.
9846SED=$lt_SED
9847
9848# Sed that helps us avoid accidentally triggering echo(1) options like -n.
9849Xsed="$SED -e 1s/^X//"
9850
9851# The HP-UX ksh and POSIX shell print the target directory to stdout
9852# if CDPATH is set.
9853(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9854
9855# The names of the tagged configurations supported by this script.
9856available_tags=
9857
9858# ### BEGIN LIBTOOL CONFIG
9859
9860# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9861
9862# Shell to use when invoking shell scripts.
9863SHELL=$lt_SHELL
9864
9865# Whether or not to build shared libraries.
9866build_libtool_libs=$enable_shared
9867
9868# Whether or not to build static libraries.
9869build_old_libs=$enable_static
9870
9871# Whether or not to add -lc for building shared libraries.
9872build_libtool_need_lc=$archive_cmds_need_lc
9873
9874# Whether or not to disallow shared libs when runtime libs are static
9875allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9876
9877# Whether or not to optimize for fast installation.
9878fast_install=$enable_fast_install
9879
9880# The host system.
9881host_alias=$host_alias
9882host=$host
9883host_os=$host_os
9884
9885# The build system.
9886build_alias=$build_alias
9887build=$build
9888build_os=$build_os
9889
9890# An echo program that does not interpret backslashes.
9891echo=$lt_echo
9892
9893# The archiver.
9894AR=$lt_AR
9895AR_FLAGS=$lt_AR_FLAGS
9896
9897# A C compiler.
9898LTCC=$lt_LTCC
9899
9900# LTCC compiler flags.
9901LTCFLAGS=$lt_LTCFLAGS
9902
9903# A language-specific compiler.
9904CC=$lt_compiler
9905
9906# Is the compiler the GNU C compiler?
9907with_gcc=$GCC
9908
9909# An ERE matcher.
9910EGREP=$lt_EGREP
9911
9912# The linker used to build libraries.
9913LD=$lt_LD
9914
9915# Whether we need hard or soft links.
9916LN_S=$lt_LN_S
9917
9918# A BSD-compatible nm program.
9919NM=$lt_NM
9920
9921# A symbol stripping program
9922STRIP=$lt_STRIP
9923
9924# Used to examine libraries when file_magic_cmd begins "file"
9925MAGIC_CMD=$MAGIC_CMD
9926
9927# Used on cygwin: DLL creation program.
9928DLLTOOL="$DLLTOOL"
9929
9930# Used on cygwin: object dumper.
9931OBJDUMP="$OBJDUMP"
9932
9933# Used on cygwin: assembler.
9934AS="$AS"
9935
9936# The name of the directory that contains temporary libtool files.
9937objdir=$objdir
9938
9939# How to create reloadable object files.
9940reload_flag=$lt_reload_flag
9941reload_cmds=$lt_reload_cmds
9942
9943# How to pass a linker flag through the compiler.
9944wl=$lt_lt_prog_compiler_wl
9945
9946# Object file suffix (normally "o").
9947objext="$ac_objext"
9948
9949# Old archive suffix (normally "a").
9950libext="$libext"
9951
9952# Shared library suffix (normally ".so").
9953shrext_cmds='$shrext_cmds'
9954
9955# Executable file suffix (normally "").
9956exeext="$exeext"
9957
9958# Additional compiler flags for building library objects.
9959pic_flag=$lt_lt_prog_compiler_pic
9960pic_mode=$pic_mode
9961
9962# What is the maximum length of a command?
9963max_cmd_len=$lt_cv_sys_max_cmd_len
9964
9965# Does compiler simultaneously support -c and -o options?
9966compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9967
9968# Must we lock files when doing compilation?
9969need_locks=$lt_need_locks
9970
9971# Do we need the lib prefix for modules?
9972need_lib_prefix=$need_lib_prefix
9973
9974# Do we need a version for libraries?
9975need_version=$need_version
9976
9977# Whether dlopen is supported.
9978dlopen_support=$enable_dlopen
9979
9980# Whether dlopen of programs is supported.
9981dlopen_self=$enable_dlopen_self
9982
9983# Whether dlopen of statically linked programs is supported.
9984dlopen_self_static=$enable_dlopen_self_static
9985
9986# Compiler flag to prevent dynamic linking.
9987link_static_flag=$lt_lt_prog_compiler_static
9988
9989# Compiler flag to turn off builtin functions.
9990no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9991
9992# Compiler flag to allow reflexive dlopens.
9993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9994
9995# Compiler flag to generate shared objects directly from archives.
9996whole_archive_flag_spec=$lt_whole_archive_flag_spec
9997
9998# Compiler flag to generate thread-safe objects.
9999thread_safe_flag_spec=$lt_thread_safe_flag_spec
10000
10001# Library versioning type.
10002version_type=$version_type
10003
10004# Format of library name prefix.
10005libname_spec=$lt_libname_spec
10006
10007# List of archive names.  First name is the real one, the rest are links.
10008# The last name is the one that the linker finds with -lNAME.
10009library_names_spec=$lt_library_names_spec
10010
10011# The coded name of the library, if different from the real name.
10012soname_spec=$lt_soname_spec
10013
10014# Commands used to build and install an old-style archive.
10015RANLIB=$lt_RANLIB
10016old_archive_cmds=$lt_old_archive_cmds
10017old_postinstall_cmds=$lt_old_postinstall_cmds
10018old_postuninstall_cmds=$lt_old_postuninstall_cmds
10019
10020# Create an old-style archive from a shared archive.
10021old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10022
10023# Create a temporary old-style archive to link instead of a shared archive.
10024old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10025
10026# Commands used to build and install a shared archive.
10027archive_cmds=$lt_archive_cmds
10028archive_expsym_cmds=$lt_archive_expsym_cmds
10029postinstall_cmds=$lt_postinstall_cmds
10030postuninstall_cmds=$lt_postuninstall_cmds
10031
10032# Commands used to build a loadable module (assumed same as above if empty)
10033module_cmds=$lt_module_cmds
10034module_expsym_cmds=$lt_module_expsym_cmds
10035
10036# Commands to strip libraries.
10037old_striplib=$lt_old_striplib
10038striplib=$lt_striplib
10039
10040# Dependencies to place before the objects being linked to create a
10041# shared library.
10042predep_objects=$lt_predep_objects
10043
10044# Dependencies to place after the objects being linked to create a
10045# shared library.
10046postdep_objects=$lt_postdep_objects
10047
10048# Dependencies to place before the objects being linked to create a
10049# shared library.
10050predeps=$lt_predeps
10051
10052# Dependencies to place after the objects being linked to create a
10053# shared library.
10054postdeps=$lt_postdeps
10055
10056# The library search path used internally by the compiler when linking
10057# a shared library.
10058compiler_lib_search_path=$lt_compiler_lib_search_path
10059
10060# Method to check whether dependent libraries are shared objects.
10061deplibs_check_method=$lt_deplibs_check_method
10062
10063# Command to use when deplibs_check_method == file_magic.
10064file_magic_cmd=$lt_file_magic_cmd
10065
10066# Flag that allows shared libraries with undefined symbols to be built.
10067allow_undefined_flag=$lt_allow_undefined_flag
10068
10069# Flag that forces no undefined symbols.
10070no_undefined_flag=$lt_no_undefined_flag
10071
10072# Commands used to finish a libtool library installation in a directory.
10073finish_cmds=$lt_finish_cmds
10074
10075# Same as above, but a single script fragment to be evaled but not shown.
10076finish_eval=$lt_finish_eval
10077
10078# Take the output of nm and produce a listing of raw symbols and C names.
10079global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10080
10081# Transform the output of nm in a proper C declaration
10082global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10083
10084# Transform the output of nm in a C name address pair
10085global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10086
10087# This is the shared library runtime path variable.
10088runpath_var=$runpath_var
10089
10090# This is the shared library path variable.
10091shlibpath_var=$shlibpath_var
10092
10093# Is shlibpath searched before the hard-coded library search path?
10094shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10095
10096# How to hardcode a shared library path into an executable.
10097hardcode_action=$hardcode_action
10098
10099# Whether we should hardcode library paths into libraries.
10100hardcode_into_libs=$hardcode_into_libs
10101
10102# Flag to hardcode \$libdir into a binary during linking.
10103# This must work even if \$libdir does not exist.
10104hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10105
10106# If ld is used when linking, flag to hardcode \$libdir into
10107# a binary during linking. This must work even if \$libdir does
10108# not exist.
10109hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10110
10111# Whether we need a single -rpath flag with a separated argument.
10112hardcode_libdir_separator=$lt_hardcode_libdir_separator
10113
10114# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10115# resulting binary.
10116hardcode_direct=$hardcode_direct
10117
10118# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10119# resulting binary.
10120hardcode_minus_L=$hardcode_minus_L
10121
10122# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10123# the resulting binary.
10124hardcode_shlibpath_var=$hardcode_shlibpath_var
10125
10126# Set to yes if building a shared library automatically hardcodes DIR into the library
10127# and all subsequent libraries and executables linked against it.
10128hardcode_automatic=$hardcode_automatic
10129
10130# Variables whose values should be saved in libtool wrapper scripts and
10131# restored at relink time.
10132variables_saved_for_relink="$variables_saved_for_relink"
10133
10134# Whether libtool must link a program against all its dependency libraries.
10135link_all_deplibs=$link_all_deplibs
10136
10137# Compile-time system search path for libraries
10138sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10139
10140# Run-time system search path for libraries
10141sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10142
10143# Fix the shell variable \$srcfile for the compiler.
10144fix_srcfile_path="$fix_srcfile_path"
10145
10146# Set to yes if exported symbols are required.
10147always_export_symbols=$always_export_symbols
10148
10149# The commands to list exported symbols.
10150export_symbols_cmds=$lt_export_symbols_cmds
10151
10152# The commands to extract the exported symbol list from a shared archive.
10153extract_expsyms_cmds=$lt_extract_expsyms_cmds
10154
10155# Symbols that should not be listed in the preloaded symbols.
10156exclude_expsyms=$lt_exclude_expsyms
10157
10158# Symbols that must always be exported.
10159include_expsyms=$lt_include_expsyms
10160
10161# ### END LIBTOOL CONFIG
10162
10163__EOF__
10164
10165
10166  case $host_os in
10167  aix3*)
10168    cat <<\EOF >> "$cfgfile"
10169
10170# AIX sometimes has problems with the GCC collect2 program.  For some
10171# reason, if we set the COLLECT_NAMES environment variable, the problems
10172# vanish in a puff of smoke.
10173if test "X${COLLECT_NAMES+set}" != Xset; then
10174  COLLECT_NAMES=
10175  export COLLECT_NAMES
10176fi
10177EOF
10178    ;;
10179  esac
10180
10181  # We use sed instead of cat because bash on DJGPP gets confused if
10182  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
10183  # text mode, it properly converts lines to CR/LF.  This bash problem
10184  # is reportedly fixed, but why not run on old versions too?
10185  sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10186
10187  mv -f "$cfgfile" "$ofile" || \
10188    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10189  chmod +x "$ofile"
10190
10191else
10192  # If there is no Makefile yet, we rely on a make rule to execute
10193  # `config.status --recheck' to rerun these tests and create the
10194  # libtool script then.
10195  ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10196  if test -f "$ltmain_in"; then
10197    test -f Makefile && make "$ltmain"
10198  fi
10199fi
10200
10201
10202ac_ext=c
10203ac_cpp='$CPP $CPPFLAGS'
10204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10206ac_compiler_gnu=$ac_cv_c_compiler_gnu
10207
10208CC="$lt_save_CC"
10209
10210
10211# Check whether --with-tags or --without-tags was given.
10212if test "${with_tags+set}" = set; then
10213  withval="$with_tags"
10214  tagnames="$withval"
10215fi;
10216
10217if test -f "$ltmain" && test -n "$tagnames"; then
10218  if test ! -f "${ofile}"; then
10219    { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10220echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10221  fi
10222
10223  if test -z "$LTCC"; then
10224    eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10225    if test -z "$LTCC"; then
10226      { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10227echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10228    else
10229      { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10230echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10231    fi
10232  fi
10233  if test -z "$LTCFLAGS"; then
10234    eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10235  fi
10236
10237  # Extract list of available tagged configurations in $ofile.
10238  # Note that this assumes the entire list is on one line.
10239  available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10240
10241  lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10242  for tagname in $tagnames; do
10243    IFS="$lt_save_ifs"
10244    # Check whether tagname contains only valid characters
10245    case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10246    "") ;;
10247    *)  { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10248echo "$as_me: error: invalid tag name: $tagname" >&2;}
10249   { (exit 1); exit 1; }; }
10250        ;;
10251    esac
10252
10253    if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10254    then
10255      { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10256echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10257   { (exit 1); exit 1; }; }
10258    fi
10259
10260    # Update the list of available tags.
10261    if test -n "$tagname"; then
10262      echo appending configuration tag \"$tagname\" to $ofile
10263
10264      case $tagname in
10265      CXX)
10266        if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10267            ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10268            (test "X$CXX" != "Xg++"))) ; then
10269          ac_ext=cc
10270ac_cpp='$CXXCPP $CPPFLAGS'
10271ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10272ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10273ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10274
10275
10276
10277
10278archive_cmds_need_lc_CXX=no
10279allow_undefined_flag_CXX=
10280always_export_symbols_CXX=no
10281archive_expsym_cmds_CXX=
10282export_dynamic_flag_spec_CXX=
10283hardcode_direct_CXX=no
10284hardcode_libdir_flag_spec_CXX=
10285hardcode_libdir_flag_spec_ld_CXX=
10286hardcode_libdir_separator_CXX=
10287hardcode_minus_L_CXX=no
10288hardcode_shlibpath_var_CXX=unsupported
10289hardcode_automatic_CXX=no
10290module_cmds_CXX=
10291module_expsym_cmds_CXX=
10292link_all_deplibs_CXX=unknown
10293old_archive_cmds_CXX=$old_archive_cmds
10294no_undefined_flag_CXX=
10295whole_archive_flag_spec_CXX=
10296enable_shared_with_static_runtimes_CXX=no
10297
10298# Dependencies to place before and after the object being linked:
10299predep_objects_CXX=
10300postdep_objects_CXX=
10301predeps_CXX=
10302postdeps_CXX=
10303compiler_lib_search_path_CXX=
10304
10305# Source file extension for C++ test sources.
10306ac_ext=cpp
10307
10308# Object file extension for compiled C++ test sources.
10309objext=o
10310objext_CXX=$objext
10311
10312# Code to be used in simple compile tests
10313lt_simple_compile_test_code="int some_variable = 0;\n"
10314
10315# Code to be used in simple link tests
10316lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10317
10318# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10319
10320# If no C compiler was specified, use CC.
10321LTCC=${LTCC-"$CC"}
10322
10323# If no C compiler flags were specified, use CFLAGS.
10324LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10325
10326# Allow CC to be a program name with arguments.
10327compiler=$CC
10328
10329
10330# save warnings/boilerplate of simple test code
10331ac_outfile=conftest.$ac_objext
10332printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10333eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10334_lt_compiler_boilerplate=`cat conftest.err`
10335$rm conftest*
10336
10337ac_outfile=conftest.$ac_objext
10338printf "$lt_simple_link_test_code" >conftest.$ac_ext
10339eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10340_lt_linker_boilerplate=`cat conftest.err`
10341$rm conftest*
10342
10343
10344# Allow CC to be a program name with arguments.
10345lt_save_CC=$CC
10346lt_save_LD=$LD
10347lt_save_GCC=$GCC
10348GCC=$GXX
10349lt_save_with_gnu_ld=$with_gnu_ld
10350lt_save_path_LD=$lt_cv_path_LD
10351if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10352  lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10353else
10354  $as_unset lt_cv_prog_gnu_ld
10355fi
10356if test -n "${lt_cv_path_LDCXX+set}"; then
10357  lt_cv_path_LD=$lt_cv_path_LDCXX
10358else
10359  $as_unset lt_cv_path_LD
10360fi
10361test -z "${LDCXX+set}" || LD=$LDCXX
10362CC=${CXX-"c++"}
10363compiler=$CC
10364compiler_CXX=$CC
10365for cc_temp in $compiler""; do
10366  case $cc_temp in
10367    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10368    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10369    \-*) ;;
10370    *) break;;
10371  esac
10372done
10373cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10374
10375
10376# We don't want -fno-exception wen compiling C++ code, so set the
10377# no_builtin_flag separately
10378if test "$GXX" = yes; then
10379  lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10380else
10381  lt_prog_compiler_no_builtin_flag_CXX=
10382fi
10383
10384if test "$GXX" = yes; then
10385  # Set up default GNU C++ configuration
10386
10387
10388# Check whether --with-gnu-ld or --without-gnu-ld was given.
10389if test "${with_gnu_ld+set}" = set; then
10390  withval="$with_gnu_ld"
10391  test "$withval" = no || with_gnu_ld=yes
10392else
10393  with_gnu_ld=no
10394fi;
10395ac_prog=ld
10396if test "$GCC" = yes; then
10397  # Check if gcc -print-prog-name=ld gives a path.
10398  echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10399echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10400  case $host in
10401  *-*-mingw*)
10402    # gcc leaves a trailing carriage return which upsets mingw
10403    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10404  *)
10405    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10406  esac
10407  case $ac_prog in
10408    # Accept absolute paths.
10409    [\\/]* | ?:[\\/]*)
10410      re_direlt='/[^/][^/]*/\.\./'
10411      # Canonicalize the pathname of ld
10412      ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10413      while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10414        ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10415      done
10416      test -z "$LD" && LD="$ac_prog"
10417      ;;
10418  "")
10419    # If it fails, then pretend we aren't using GCC.
10420    ac_prog=ld
10421    ;;
10422  *)
10423    # If it is relative, then search for the first ld in PATH.
10424    with_gnu_ld=unknown
10425    ;;
10426  esac
10427elif test "$with_gnu_ld" = yes; then
10428  echo "$as_me:$LINENO: checking for GNU ld" >&5
10429echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10430else
10431  echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10432echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10433fi
10434if test "${lt_cv_path_LD+set}" = set; then
10435  echo $ECHO_N "(cached) $ECHO_C" >&6
10436else
10437  if test -z "$LD"; then
10438  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10439  for ac_dir in $PATH; do
10440    IFS="$lt_save_ifs"
10441    test -z "$ac_dir" && ac_dir=.
10442    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10443      lt_cv_path_LD="$ac_dir/$ac_prog"
10444      # Check to see if the program is GNU ld.  I'd rather use --version,
10445      # but apparently some variants of GNU ld only accept -v.
10446      # Break only if it was the GNU/non-GNU ld that we prefer.
10447      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10448      *GNU* | *'with BFD'*)
10449        test "$with_gnu_ld" != no && break
10450        ;;
10451      *)
10452        test "$with_gnu_ld" != yes && break
10453        ;;
10454      esac
10455    fi
10456  done
10457  IFS="$lt_save_ifs"
10458else
10459  lt_cv_path_LD="$LD" # Let the user override the test with a path.
10460fi
10461fi
10462
10463LD="$lt_cv_path_LD"
10464if test -n "$LD"; then
10465  echo "$as_me:$LINENO: result: $LD" >&5
10466echo "${ECHO_T}$LD" >&6
10467else
10468  echo "$as_me:$LINENO: result: no" >&5
10469echo "${ECHO_T}no" >&6
10470fi
10471test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10472echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10473   { (exit 1); exit 1; }; }
10474echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10475echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10476if test "${lt_cv_prog_gnu_ld+set}" = set; then
10477  echo $ECHO_N "(cached) $ECHO_C" >&6
10478else
10479  # I'd rather use --version here, but apparently some GNU lds only accept -v.
10480case `$LD -v 2>&1 </dev/null` in
10481*GNU* | *'with BFD'*)
10482  lt_cv_prog_gnu_ld=yes
10483  ;;
10484*)
10485  lt_cv_prog_gnu_ld=no
10486  ;;
10487esac
10488fi
10489echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10490echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10491with_gnu_ld=$lt_cv_prog_gnu_ld
10492
10493
10494
10495  # Check if GNU C++ uses GNU ld as the underlying linker, since the
10496  # archiving commands below assume that GNU ld is being used.
10497  if test "$with_gnu_ld" = yes; then
10498    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10499    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'
10500
10501    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10502    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10503
10504    # If archive_cmds runs LD, not CC, wlarc should be empty
10505    # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10506    #     investigate it a little bit more. (MM)
10507    wlarc='${wl}'
10508
10509    # ancient GNU ld didn't support --whole-archive et. al.
10510    if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10511        grep 'no-whole-archive' > /dev/null; then
10512      whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10513    else
10514      whole_archive_flag_spec_CXX=
10515    fi
10516  else
10517    with_gnu_ld=no
10518    wlarc=
10519
10520    # A generic and very simple default shared library creation
10521    # command for GNU C++ for the case where it uses the native
10522    # linker, instead of GNU ld.  If possible, this setting should
10523    # overridden to take advantage of the native linker features on
10524    # the platform it is being used on.
10525    archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10526  fi
10527
10528  # Commands to make compiler produce verbose output that lists
10529  # what "hidden" libraries, object files and flags are used when
10530  # linking a shared library.
10531  output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10532
10533else
10534  GXX=no
10535  with_gnu_ld=no
10536  wlarc=
10537fi
10538
10539# PORTME: fill in a description of your system's C++ link characteristics
10540echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10541echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10542ld_shlibs_CXX=yes
10543case $host_os in
10544  aix3*)
10545    # FIXME: insert proper C++ library support
10546    ld_shlibs_CXX=no
10547    ;;
10548  aix4* | aix5*)
10549    if test "$host_cpu" = ia64; then
10550      # On IA64, the linker does run time linking by default, so we don't
10551      # have to do anything special.
10552      aix_use_runtimelinking=no
10553      exp_sym_flag='-Bexport'
10554      no_entry_flag=""
10555    else
10556      aix_use_runtimelinking=no
10557
10558      # Test if we are trying to use run time linking or normal
10559      # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10560      # need to do runtime linking.
10561      case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10562        for ld_flag in $LDFLAGS; do
10563          case $ld_flag in
10564          *-brtl*)
10565            aix_use_runtimelinking=yes
10566            break
10567            ;;
10568          esac
10569        done
10570        ;;
10571      esac
10572
10573      exp_sym_flag='-bexport'
10574      no_entry_flag='-bnoentry'
10575    fi
10576
10577    # When large executables or shared objects are built, AIX ld can
10578    # have problems creating the table of contents.  If linking a library
10579    # or program results in "error TOC overflow" add -mminimal-toc to
10580    # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
10581    # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10582
10583    archive_cmds_CXX=''
10584    hardcode_direct_CXX=yes
10585    hardcode_libdir_separator_CXX=':'
10586    link_all_deplibs_CXX=yes
10587
10588    if test "$GXX" = yes; then
10589      case $host_os in aix4.[012]|aix4.[012].*)
10590      # We only want to do this on AIX 4.2 and lower, the check
10591      # below for broken collect2 doesn't work under 4.3+
10592        collect2name=`${CC} -print-prog-name=collect2`
10593        if test -f "$collect2name" && \
10594           strings "$collect2name" | grep resolve_lib_name >/dev/null
10595        then
10596          # We have reworked collect2
10597          hardcode_direct_CXX=yes
10598        else
10599          # We have old collect2
10600          hardcode_direct_CXX=unsupported
10601          # It fails to find uninstalled libraries when the uninstalled
10602          # path is not listed in the libpath.  Setting hardcode_minus_L
10603          # to unsupported forces relinking
10604          hardcode_minus_L_CXX=yes
10605          hardcode_libdir_flag_spec_CXX='-L$libdir'
10606          hardcode_libdir_separator_CXX=
10607        fi
10608        ;;
10609      esac
10610      shared_flag='-shared'
10611      if test "$aix_use_runtimelinking" = yes; then
10612        shared_flag="$shared_flag "'${wl}-G'
10613      fi
10614    else
10615      # not using gcc
10616      if test "$host_cpu" = ia64; then
10617        # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10618        # chokes on -Wl,-G. The following line is correct:
10619        shared_flag='-G'
10620      else
10621        if test "$aix_use_runtimelinking" = yes; then
10622          shared_flag='${wl}-G'
10623        else
10624          shared_flag='${wl}-bM:SRE'
10625        fi
10626      fi
10627    fi
10628
10629    # It seems that -bexpall does not export symbols beginning with
10630    # underscore (_), so it is better to generate a list of symbols to export.
10631    always_export_symbols_CXX=yes
10632    if test "$aix_use_runtimelinking" = yes; then
10633      # Warning - without using the other runtime loading flags (-brtl),
10634      # -berok will link without error, but may produce a broken library.
10635      allow_undefined_flag_CXX='-berok'
10636      # Determine the default libpath from the value encoded in an empty executable.
10637      cat >conftest.$ac_ext <<_ACEOF
10638/* confdefs.h.  */
10639_ACEOF
10640cat confdefs.h >>conftest.$ac_ext
10641cat >>conftest.$ac_ext <<_ACEOF
10642/* end confdefs.h.  */
10643
10644int
10645main ()
10646{
10647
10648  ;
10649  return 0;
10650}
10651_ACEOF
10652rm -f conftest.$ac_objext conftest$ac_exeext
10653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10654  (eval $ac_link) 2>conftest.er1
10655  ac_status=$?
10656  grep -v '^ *+' conftest.er1 >conftest.err
10657  rm -f conftest.er1
10658  cat conftest.err >&5
10659  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10660  (exit $ac_status); } &&
10661         { ac_try='test -z "$ac_cxx_werror_flag"
10662                         || test ! -s conftest.err'
10663  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10664  (eval $ac_try) 2>&5
10665  ac_status=$?
10666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667  (exit $ac_status); }; } &&
10668         { ac_try='test -s conftest$ac_exeext'
10669  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10670  (eval $ac_try) 2>&5
10671  ac_status=$?
10672  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673  (exit $ac_status); }; }; then
10674
10675aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10676}'`
10677# Check for a 64-bit object if we didn't find anything.
10678if 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; }
10679}'`; fi
10680else
10681  echo "$as_me: failed program was:" >&5
10682sed 's/^/| /' conftest.$ac_ext >&5
10683
10684fi
10685rm -f conftest.err conftest.$ac_objext \
10686      conftest$ac_exeext conftest.$ac_ext
10687if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10688
10689      hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10690
10691      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"
10692     else
10693      if test "$host_cpu" = ia64; then
10694        hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10695        allow_undefined_flag_CXX="-z nodefs"
10696        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"
10697      else
10698        # Determine the default libpath from the value encoded in an empty executable.
10699        cat >conftest.$ac_ext <<_ACEOF
10700/* confdefs.h.  */
10701_ACEOF
10702cat confdefs.h >>conftest.$ac_ext
10703cat >>conftest.$ac_ext <<_ACEOF
10704/* end confdefs.h.  */
10705
10706int
10707main ()
10708{
10709
10710  ;
10711  return 0;
10712}
10713_ACEOF
10714rm -f conftest.$ac_objext conftest$ac_exeext
10715if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10716  (eval $ac_link) 2>conftest.er1
10717  ac_status=$?
10718  grep -v '^ *+' conftest.er1 >conftest.err
10719  rm -f conftest.er1
10720  cat conftest.err >&5
10721  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722  (exit $ac_status); } &&
10723         { ac_try='test -z "$ac_cxx_werror_flag"
10724                         || test ! -s conftest.err'
10725  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10726  (eval $ac_try) 2>&5
10727  ac_status=$?
10728  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729  (exit $ac_status); }; } &&
10730         { ac_try='test -s conftest$ac_exeext'
10731  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10732  (eval $ac_try) 2>&5
10733  ac_status=$?
10734  echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735  (exit $ac_status); }; }; then
10736
10737aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0  *\(.*\)$/\1/; p; }
10738}'`
10739# Check for a 64-bit object if we didn't find anything.
10740if 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; }
10741}'`; fi
10742else
10743  echo "$as_me: failed program was:" >&5
10744sed 's/^/| /' conftest.$ac_ext >&5
10745
10746fi
10747rm -f conftest.err conftest.$ac_objext \
10748      conftest$ac_exeext conftest.$ac_ext
10749if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10750
10751        hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10752        # Warning - without using the other run time loading flags,
10753        # -berok will link without error, but may produce a broken library.
10754        no_undefined_flag_CXX=' ${wl}-bernotok'
10755        allow_undefined_flag_CXX=' ${wl}-berok'
10756        # Exported symbols can be pulled into shared objects from archives
10757        whole_archive_flag_spec_CXX='$convenience'
10758        archive_cmds_need_lc_CXX=yes
10759        # This is similar to how AIX traditionally builds its shared libraries.
10760        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'
10761      fi
10762    fi
10763    ;;
10764
10765  beos*)
10766    if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10767      allow_undefined_flag_CXX=unsupported
10768      # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10769      # support --undefined.  This deserves some investigation.  FIXME
10770      archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10771    else
10772      ld_shlibs_CXX=no
10773    fi
10774    ;;
10775
10776  chorus*)
10777    case $cc_basename in
10778      *)
10779        # FIXME: insert proper C++ library support
10780        ld_shlibs_CXX=no
10781        ;;
10782    esac
10783    ;;
10784
10785  cygwin* | mingw* | pw32*)
10786    # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10787    # as there is no search path for DLLs.
10788    hardcode_libdir_flag