source: trunk/Cbc/configure @ 1566

Last change on this file since 1566 was 1566, checked in by stefan, 8 years ago

add URL into .pc field; rerun autotools

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