source: trunk/Clp/configure @ 1720

Last change on this file since 1720 was 1720, checked in by stefan, 10 years ago

rerun autotools

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