source: stable/1.14/Clp/configure @ 1807

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

restoring Clp/stable/1.14

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